Jetpack by WordPress.com - Version 5.5

Version Description

  • Release date: November 7, 2017
  • Release post: https://wp.me/p1moTy-6rk

Major Enhancements

  • Jetpack is now fully compatible with WordPress's new Gallery Widget. Your old Gallery widgets powered by Jetpack will switch to the new Widget when you update to WordPress 4.9.

Enhancements * We have improved the performance when loading the Jetpack Settings in the dashboard by optimizing the number of calls made when loading the page. * We have updated the plugin to do a better job of cleaning up after itself whenever you decide to remove Jetpack from your site. * We made some changes to reduce the number of connection issues that may happen on a site when switching from HTTP to HTTPs. * We made some performance improvements to the Jetpack dashboard interface, to make sure your options and settings are loaded faster there. * Error messages are also better in the Jetpack Dashboard; whenever you can't update settings, Jetpack will provide you with more information about why. * We improved the Jetpack update process to make sure updating Jetpack does not stress your database during it, even on high-traffic sites. * The next version of WordPress, 4.9, will be released very soon and will include a lot of changes to its code editors. Jetpack's Custom CSS will be fully compatible with the new editors and their syntax highlighting feature. * We also made changes to make sure Jetpack was fully compatible with the role and capability changes in WordPress 4.9. * We have made some performance improvements to the Carousel feature. * Contact Form: do not process shortcodes in widgets when WordPress itself does, starting in 4.9. * Contact Form: we have improved the "website" field to display better error messages when you don't supply a URL. We have also improved the look of the date picker for the date field. * Contact Form: avoid duplicate slashes when loading editor style. * Masterbar: update the "Plugins" menu item to match the updated design on WordPress.com. * Open Graph: do not display images smaller than Facebook's required size. * Sharing: use Google's minified libraries to improve performance when loading Google buttons. * Sharing: update Open Graph Image tags appearing on the home page to offer better alternatives based on your site settings in Appearance > Customize. * We improved the way sitemaps are built so they do not consume too much memory when they are generated. * WP.me Shorlinks: those links will now always use HTTPS. * Spellchecker: we improved the admin interface to make it more clear when adding ignored phrases and saving them. * Subscriptions: we added a filter so third party developers can track comment subscription activations. * Sync: synchronize plugin action links to add that information to WordPress.com. * Sync: improvements to better track theme and widget changes. * VideoPress: we removed Jetpack version locking for directly embedded VideoPress videos to ensure all users receive the newest version of the player. * We added a new filter (jetpack_google_translate_widget_layout) to the Google Translate Widget to allow you to change its layout. * WordPress.com REST API: improve comment management for all roles, including post authors. * WordPress.com REST API: allow site owners to manage comments on attachment pages from WordPress.com. * WordPress.com REST API: improve the response from the API when WordPress' autoupdates are disabled.

Improved compatibility * You can now use Jetpack's contact form and Yoast SEO's Focus keywords on the same page without any issues in the editor. * Top Posts Widget: avoid Fatal Errors when the widget is used on a site using WPML, and when a popular post cannot be found by WPML. * Sync: add more Custom Post Types from third-party plugins to the list of things we do not synchronize with WordPress.com, to improve sync performance. * Sharing: since Press This is now a plugin and not part of WordPress itself, we removed the Press This sharing button if you are not using the plugin.

Bug fixes * We now avoid displaying notices to user roles that cannot benefit or act based on the info in the notices. * Gravatar Hovercards: avoid PHP Notices when the user info is an object. * Infinite Scroll: avoid PHP notices when a site customizes galleries thanks to the post_gallery filter. * Mailchimp: make sure subscription forms can still be embedded in posts and pages. * Mailchimp: do not require the use of the shortcodes feature to use the Mailchimp widget. * Mailchimp: fix issue where Mailchimp form code could not be added to the Mailchimp widget. * Masterbar: avoid JavaScript errors by always loading jQuery. * Post By Email: do not display any content in the email address field if no email address has ever been set before. * Publicize: avoid errors when DOMDocument is not available. * Publicize: we now hide the feature activation toggle if you are not allowed to manage Jetpack features. * Search: make sure module cannot be activated when the site does not use a Plan. * SEO Tools: do not output any custom meta tags if another SEO plugin is already active. * Sharing: make sure Twitter Cards can be displayed even when a post does not include a title. * Sharing: fix alignment of sharing buttons in the admin preview when using custom sharing buttons. * Sitemaps: wait a minute before to generate sitemaps when the feature is activated, to avoid performance issues. * Sync: avoid synchronization issues on Multisite networks using custom domains. * Top Posts Widget: display the default title when it is set to empty. * Milestone Widget: make sure the widget is displayed properly and can easily be translated into other languages. * Verification Tools: avoid notices when saving changes on a Multisite network admin page. * VideoPress: avoid missing file warning in the editor when using an RTL language. * Upcoming events Widget: avoid PHP notices on sites using a custom timezone setting. * WordPress.com REST API: avoid errors when installing plugins via the WordPress.com API.

Download this release

Release Info

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

Code changes from version 5.5-beta3 to 5.5

Files changed (50) hide show
  1. _inc/build/admin.js +7 -7
  2. _inc/jetpack-strings.php +24 -23
  3. _inc/lib/class.core-rest-api-endpoints.php +1 -1
  4. functions.gallery.php +20 -0
  5. jetpack.php +2 -2
  6. languages/json/jetpack-ar.json +1 -1
  7. languages/json/jetpack-de_DE.json +1 -1
  8. languages/json/jetpack-de_DE_formal.json +1 -1
  9. languages/json/jetpack-el.json +1 -1
  10. languages/json/jetpack-en_AU.json +1 -1
  11. languages/json/jetpack-en_CA.json +1 -1
  12. languages/json/jetpack-en_GB.json +1 -1
  13. languages/json/jetpack-en_NZ.json +1 -1
  14. languages/json/jetpack-eo.json +1 -1
  15. languages/json/jetpack-es_AR.json +1 -1
  16. languages/json/jetpack-es_CL.json +1 -1
  17. languages/json/jetpack-es_CR.json +1 -1
  18. languages/json/jetpack-es_ES.json +1 -1
  19. languages/json/jetpack-es_VE.json +1 -1
  20. languages/json/jetpack-fa_IR.json +1 -1
  21. languages/json/jetpack-fi.json +1 -1
  22. languages/json/jetpack-fr_BE.json +1 -1
  23. languages/json/jetpack-fr_FR.json +1 -1
  24. languages/json/jetpack-he_IL.json +1 -1
  25. languages/json/jetpack-hr.json +1 -1
  26. languages/json/jetpack-id_ID.json +1 -1
  27. languages/json/jetpack-it_IT.json +1 -1
  28. languages/json/jetpack-ja.json +1 -1
  29. languages/json/jetpack-ko_KR.json +1 -1
  30. languages/json/jetpack-nl_NL.json +1 -1
  31. languages/json/jetpack-nl_NL_formal.json +1 -1
  32. languages/json/jetpack-pt_BR.json +1 -1
  33. languages/json/jetpack-ro_RO.json +1 -1
  34. languages/json/jetpack-ru_RU.json +1 -1
  35. languages/json/jetpack-sk_SK.json +1 -1
  36. languages/json/jetpack-sq.json +1 -1
  37. languages/json/jetpack-sv_SE.json +1 -1
  38. languages/json/jetpack-tr_TR.json +1 -1
  39. languages/json/jetpack-zh_CN.json +1 -1
  40. languages/json/jetpack-zh_HK.json +1 -1
  41. languages/json/jetpack-zh_TW.json +1 -1
  42. modules/carousel/jetpack-carousel.php +3 -0
  43. modules/sharedaddy/sharedaddy.php +0 -10
  44. modules/sharedaddy/sharing-service.php +5 -1
  45. modules/sharedaddy/sharing-sources.php +33 -21
  46. modules/tiled-gallery/tiled-gallery.php +0 -11
  47. modules/videopress/class.videopress-player.php +0 -2
  48. modules/widgets/migrate-to-core/gallery-widget.php +6 -0
  49. readme.txt +7 -1
  50. sync/class.jetpack-sync-module-callables.php +5 -1
_inc/build/admin.js CHANGED
@@ -29,12 +29,12 @@ t.FEATURE_BASIC_DESIGN="basic-design",t.FEATURE_ADVANCED_DESIGN="advanced-design
29
f.default)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return o.default.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},o.default.createElement(d.default,{icon:"info-outline",size:18}),this.props.screenReaderText?o.default.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",o.default.createElement(l.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,f.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";m.default.ga.recordEvent(t,"InfoPopover: "+n+r)}}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}(),c=n(142),l=r(c),u=n(1),d=r(u),p=n(725),f=r(p),h=n(756),m=r(h),_=n(902),M=r(_),g=n(921),v=r(g),b=n(276),y=r(b),A=n(944),E=r(A),T=n(945);n(948);var L=function(){},w=(0,f.default)("calypso:popover"),k=new Set,S=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(n),n.setPosition=n.setPosition.bind(n),n.onClickout=n.onClickout.bind(n),n.onKeydown=n.onKeydown.bind(n),n.onWindowChange=n.onWindowChange.bind(n),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,T.bindWindowListeners)()}},{key:"componentWillReceiveProps",value:function(e){if((0,T.isElement)(e.context)?this.domContext=e.context:this.domContext=d.default.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e){var t=this.props.isVisible;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after inject DOM"),void this.setPosition()):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,T.unbindWindowListeners)(),k.delete(this.id),w("current popover instances: ",k.size)}},{key:"bindEscKeyListener",value:function(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}},{key:"unbindEscKeyListener",value:function(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=(0,M.default)(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=d.default.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,T.isElement)(this.props.context)?this.domContext=this.props.context:this.domContext=d.default.findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}},{key:"getPositionClass",value:function(){return"is-"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position).replace(/\s+/g,"-")}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props.position;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=(0,T.suggested)(n,e,t),this.debug("suggested position: %o",r));var a=(0,y.default)({},(0,T.constrainLeft)((0,T.offset)(r,e,t),e),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",a),a}},{key:"debug",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];w.apply(void 0,["[%s] "+e,this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__"+(0,v.default)(16),k.add(this.id),this.debug("creating ..."),w("current popover instances: ",k.size)}},{key:"setPosition",value:function(){var e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",this.props.showDelay+"ms"),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=(0,m.default)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),l.default.createElement(E.default,{className:this.props.rootClassName},l.default.createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},l.default.createElement("div",{className:"dops-popover__arrow"}),l.default.createElement("div",{className:"dops-popover__inner"},this.props.children)))}}]),t}(c.Component);S.propTypes={autoPosition:c.PropTypes.bool,className:c.PropTypes.string,closeOnEsc:c.PropTypes.bool,id:c.PropTypes.string,ignoreContext:c.PropTypes.shape({getDOMNode:l.default.PropTypes.function}),position:c.PropTypes.string,rootClassName:c.PropTypes.string,showDelay:c.PropTypes.number,onClose:c.PropTypes.func.isRequired,onShow:c.PropTypes.func},S.defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:L},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return f.set(e,t),function(){f.delete(e)}}function o(e){f.forEach(function(t,n){(0,p.default)(n,e.target)||t.call(n,e)})}function i(e){e||(e=document),u.default.bind(e,"click",o)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(903),c=r(s);t.default=a;var l=n(919),u=r(l),d=n(920),p=r(d),f=new c.default;a.globalClick=o,a.install=i,"undefined"!=typeof document&&i(document),e.exports=t.default},function(e,t,n){e.exports={default:n(904),__esModule:!0}},function(e,t,n){n(384),n(323),n(367),n(905),n(912),n(915),n(917),e.exports=n(331).Map},function(e,t,n){"use strict";var r=n(906),a=n(907);e.exports=n(908)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(a(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(a(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(335).f,a=n(348),o=n(486),i=n(332),s=n(474),c=n(475),l=n(327),u=n(370),d=n(487),p=n(339),f=n(375).fastKey,h=n(907),m=p?"_s":"size",_=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e(function(e,r){s(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&c(r,n,e[l],e)});return o(u.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),r=_(n,e);if(r){var a=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=a),a&&(a.p=o),n._f==r&&(n._f=a),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){h(this,t);for(var n,r=i(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!_(h(this,t),e)}}),p&&r(u.prototype,"size",{get:function(){return h(this,t)[m]}}),u},def:function(e,t,n){var r,a,o=_(e,t);return o?o.v=n:(e._l=o={i:a=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==a&&(e._i[a]=o)),e},getEntry:_,setStrong:function(e,t,n){l(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?u(0,n.k):"values"==t?u(0,n.v):u(0,[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){var r=n(337);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(330),a=n(329),o=n(375),i=n(340),s=n(334),c=n(486),l=n(475),u=n(474),d=n(337),p=n(363),f=n(335).f,h=n(909)(0),m=n(339);e.exports=function(e,t,n,_,M,g){var v=r[e],b=v,y=M?"set":"add",A=b&&b.prototype,E={};return m&&"function"==typeof b&&(g||A.forEach&&!i(function(){(new b).entries().next()}))?(b=t(function(t,n){u(t,b,e,"_c"),t._c=new v,void 0!=n&&l(n,M,t[y],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in A&&(!g||"clear"!=e)&&s(b.prototype,e,function(n,r){if(u(this,b,e),!t&&g&&!d(n))return"get"==e&&void 0;var a=this._c[e](0===n?0:n,r);return t?this:a})}),g||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=_.getConstructor(t,e,M,y),c(b.prototype,n),o.NEED=!0),p(b,e),E[e]=b,a(a.G+a.W+a.F,E),g||_.setStrong(b,e,M),b}},function(e,t,n){var r=n(332),a=n(353),o=n(366),i=n(356),s=n(910);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,h){for(var m,_,M=o(t),g=a(M),v=r(s,h,3),b=i(g.length),y=0,A=n?f(t,b):c?f(t,0):void 0;b>y;y++)if((p||y in g)&&(m=g[y],_=v(m,y,M),e))if(n)A[y]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return y;case 2:A.push(m)}else if(u)return!1;return d?-1:l||u?u:A}}},function(e,t,n){var r=n(911);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(337),a=n(380),o=n(364)("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(329);r(r.P+r.R,"Map",{toJSON:n(913)("Map")})},function(e,t,n){var r=n(473),a=n(914);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},function(e,t,n){var r=n(475);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(916)("Map")},function(e,t,n){"use strict";var r=n(329);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(918)("Map")},function(e,t,n){"use strict";var r=n(329),a=n(333),o=n(332),i=n(475);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return a(this),t=void 0!==c,t&&a(c),void 0==e?new this:(n=[],t?(r=0,s=o(c,arguments[2],2),i(e,!1,function(e){n.push(s(e,r++))})):i(e,!1,n.push,n),new this(n))}})}},function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",a="addEventListener"!==n?"on":"";t.bind=function(e,t,r,o){return e[n](a+t,r,o||!1),r},t.unbind=function(e,t,n,o){return e[r](a+t,n,o||!1),n}},function(e,t){function n(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}e.exports=n},function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push(o[e[n]%64]);return t.join("")}function a(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),a=0;a<e;a++)t[a]=Math.floor(256*Math.random());return r(t)}var o=n(922);try{return r(o.randomBytes(e))}catch(t){return r(o.pseudoRandomBytes(e))}}var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";e.exports=a},function(e,t,n){(function(e){function r(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}var a=n(927);t.createHash=n(929),t.createHmac=n(941),t.randomBytes=function(t,n){if(!n||!n.call)return new e(a(t));try{n.call(this,void 0,new e(a(t)))}catch(e){n(e)}},t.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var o=n(942)(t);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync,function(e,t){for(var n in e)t(e[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(e){t[e]=function(){r("sorry,",e,"is not implemented yet")}})}).call(t,n(923).Buffer)},function(e,t,n){(function(e,r){"use strict";function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,n){if(a()<n)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n),t.__proto__=e.prototype):(null===t&&(t=new e(n)),t.length=n),t}function e(t,n,r){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(t,n,r);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return i(this,t,n,r)}function i(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?u(e,t,n):f(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function l(t,n){if(s(n),t=o(t,n<0?0:0|h(n)),!e.TYPED_ARRAY_SUPPORT)for(var r=0;r<n;++r)t[r]=0;return t}function u(t,n,r){if("string"==typeof r&&""!==r||(r="utf8"),!e.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var a=0|_(n,r);t=o(t,a);var i=t.write(n,r);return i!==a&&(t=t.slice(0,i)),t}function d(e,t){var n=t.length<0?0:0|h(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(t,n,r,a){if(n.byteLength,r<0||n.byteLength<r)throw new RangeError("'offset' is out of bounds");if(n.byteLength<r+(a||0))throw new RangeError("'length' is out of bounds");return n=void 0===r&&void 0===a?new Uint8Array(n):void 0===a?new Uint8Array(n,r):new Uint8Array(n,r,a),e.TYPED_ARRAY_SUPPORT?(t=n,t.__proto__=e.prototype):t=d(t,n),t}function f(t,n){if(e.isBuffer(n)){var r=0|h(n.length);return t=o(t,r),0===t.length?t:(n.copy(t,0,0,r),t)}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||K(n.length)?o(t,0):d(t,n);if("Buffer"===n.type&&Z(n.data))return d(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(t){return+t!=t&&(t=0),e.alloc(+t)}function _(t,n){if(e.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var a=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(t).length;default:if(a)return H(t).length;n=(""+n).toLowerCase(),a=!0}}function M(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return z(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(t,n,r,a,o){if(0===t.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof n&&(n=e.from(n,a)),e.isBuffer(n))return 0===n.length?-1:b(t,n,r,a,o);if("number"==typeof n)return n&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):b(t,[n],r,a,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){function o(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}var i=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,n/=2}var l;if(a){var u=-1;for(l=n;l<s;l++)if(o(e,l)===o(t,-1===u?0:l-u)){if(-1===u&&(u=l),l-u+1===c)return u*i}else-1!==u&&(l-=l-u),u=-1}else for(n+c>s&&(n=s-c),l=n;l>=0;l--){for(var d=!0,p=0;p<c;p++)if(o(e,l+p)!==o(t,p)){d=!1;break}if(d)return l}return-1}function y(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))return i;e[n+i]=s}return i}function A(e,t,n,r){return J(H(t,e.length-n),e,n,r)}function E(e,t,n,r){return J(F(t),e,n,r)}function T(e,t,n,r){return E(e,t,n,r)}function L(e,t,n,r){return J(V(t),e,n,r)}function w(e,t,n,r){return J(X(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o=e[a],i=null,s=o>239?4:o>223?3:o>191?2:1;if(a+s<=n){var c,l,u,d;switch(s){case 1:o<128&&(i=o);break;case 2:c=e[a+1],128==(192&c)&&(d=(31&o)<<6|63&c)>127&&(i=d);break;case 3:c=e[a+1],l=e[a+2],128==(192&c)&&128==(192&l)&&(d=(15&o)<<12|(63&c)<<6|63&l)>2047&&(d<55296||d>57343)&&(i=d);break;case 4:c=e[a+1],l=e[a+2],u=e[a+3],128==(192&c)&&128==(192&l)&&128==(192&u)&&(d=(15&o)<<18|(63&c)<<12|(63&l)<<6|63&u)>65535&&d<1114112&&(i=d)}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=s}return C(r)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=U(e[o]);return a}function P(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+256*r[o+1]);return a}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(t,n,r,a,o,i){if(!e.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)throw new RangeError('"value" argument is out of bounds');if(r+a>t.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a<o;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a<o;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function Y(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,n,r,a){return a||Y(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,a){return a||Y(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,n,r,52,8),n+8}function I(e){if(e=B(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function B(e){return e.trim?e.trim():e.replace(/^\s+|\s+#x2F;g,"")}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,a=null,o=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function X(e,t){for(var n,r,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function V(e){return G.toByteArray(I(e))}function J(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function K(e){return e!==e}var G=n(924),Q=n(925),Z=n(926);t.Buffer=e,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),e.poolSize=8192,e._augment=function(t){return t.__proto__=e.prototype,t},e.from=function(e,t,n){return i(null,e,t,n)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(e,t,n){return c(null,e,t,n)},e.allocUnsafe=function(e){return l(null,e)},e.allocUnsafeSlow=function(e){return l(null,e)},e.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.compare=function(t,n){if(!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,a=n.length,o=0,i=Math.min(r,a);o<i;++o)if(t[o]!==n[o]){r=t[o],a=n[o];break}return r<a?-1:a<r?1:0},e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(t,n){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return e.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var a=e.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!e.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(a,o),o+=i.length}return a},e.byteLength=_,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},e.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},e.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},e.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):M.apply(this,arguments)},e.prototype.equals=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===e.compare(this,t)},e.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},e.prototype.compare=function(t,n,r,a,o){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===a&&(a=0),void 0===o&&(o=this.length),n<0||r>t.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===t)return 0;for(var i=o-a,s=r-n,c=Math.min(i,s),l=this.slice(a,o),u=t.slice(n,r),d=0;d<c;++d)if(l[d]!==u[d]){i=l[d],s=u[d];break}return i<s?-1:s<i?1:0},e.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},e.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},e.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return L(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;e.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),n<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t);var a;if(e.TYPED_ARRAY_SUPPORT)a=this.subarray(t,n),a.__proto__=e.prototype;else{var o=n-t;a=new e(o,void 0);for(var i=0;i<o;++i)a[i]=this[i+t]}return a},e.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r},e.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},e.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},e.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,a=1,o=this[e+--r];r>0&&(a*=256);)o+=this[e+--r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},e.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},e.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),Q.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),Q.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),Q.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),Q.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},e.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},e.prototype.writeUInt8=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},e.prototype.writeUInt16LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):j(this,t,n,!0),n+2},e.prototype.writeUInt16BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,65535,0),
30
e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):j(this,t,n,!1),n+2},e.prototype.writeUInt32LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):R(this,t,n,!0),n+4},e.prototype.writeUInt32BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):R(this,t,n,!1),n+4},e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},e.prototype.writeInt8=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},e.prototype.writeInt16LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):j(this,t,n,!0),n+2},e.prototype.writeInt16BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):j(this,t,n,!1),n+2},e.prototype.writeInt32LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):R(this,t,n,!0),n+4},e.prototype.writeInt32BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):R(this,t,n,!1),n+4},e.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},e.prototype.copy=function(t,n,r,a){if(r||(r=0),a||0===a||(a=this.length),n>=t.length&&(n=t.length),n||(n=0),a>0&&a<r&&(a=r),a===r)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-n<a-r&&(a=t.length-n+r);var o,i=a-r;if(this===t&&r<n&&n<a)for(o=i-1;o>=0;--o)t[o+n]=this[o+r];else if(i<1e3||!e.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+n]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),n);return i},e.prototype.fill=function(t,n,r,a){if("string"==typeof t){if("string"==typeof n?(a=n,n=0,r=this.length):"string"==typeof r&&(a=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!e.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var i;if("number"==typeof t)for(i=n;i<r;++i)this[i]=t;else{var s=e.isBuffer(t)?t:H(new e(t,a).toString()),c=s.length;for(i=0;i<r-n;++i)this[i+n]=s[i%c]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(923).Buffer,function(){return this}())},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function a(e){var t,r,a,o,i,s=e.length;o=n(e),i=new u(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0;t<r;t+=4)a=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],i[c++]=a>>16&255,i[c++]=a>>8&255,i[c++]=255&a;return 2===o?(a=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,i[c++]=255&a):1===o&&(a=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,i[c++]=a>>8&255,i[c++]=255&a),i}function o(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function i(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(o(r));return a.join("")}function s(e){for(var t,n=e.length,r=n%3,a="",o=[],s=0,l=n-r;s<l;s+=16383)o.push(i(e,s,s+16383>l?l:s+16383));return 1===r?(t=e[n-1],a+=c[t>>2],a+=c[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=c[t>>10],a+=c[t>>4&63],a+=c[t<<2&63],a+="="),o.push(a),o.join("")}t.byteLength=r,t.toByteArray=a,t.fromByteArray=s;for(var c=[],l=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,f=d.length;p<f;++p)c[p]=d[p],l[d.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,a){var o,i,s=8*a-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?a-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(i=o&(1<<-u)-1,o>>=-u,u+=r;u>0;i=256*i+e[t+d],d+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,r),o-=l}return(f?-1:1)*i*Math.pow(2,o-r)},t.write=function(e,t,n,r,a,o){var i,s,c,l=8*o-a-1,u=(1<<l)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),t+=i+d>=1?p/c:p*Math.pow(2,1-d),t*c>=2&&(i++,c/=2),i+d>=u?(s=0,i=u):i+d>=1?(s=(t*c-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[n+f]=255&s,f+=h,s/=256,a-=8);for(i=i<<a|s,l+=a;l>0;e[n+f]=255&i,f+=h,i/=256,l-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t,r){!function(){var a=("undefined"==typeof window?t:window)||{};_crypto=a.crypto||a.msCrypto||n(928),e.exports=function(e){if(_crypto.getRandomValues){var t=new r(e);return _crypto.getRandomValues(t),t}if(_crypto.randomBytes)return _crypto.randomBytes(e);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(t,function(){return this}(),n(923).Buffer)},function(e,t){},function(e,t,n){(function(t){function r(e){return function(){var n=[];return{update:function(e,r){return t.isBuffer(e)||(e=new t(e,r)),n.push(e),this},digest:function(r){var a=t.concat(n),o=e(a);return n=null,r?o.toString(r):o}}}}var a=n(930),o=r(n(938)),i=r(n(940));e.exports=function(e){return"md5"===e?new o:"rmd160"===e?new i:a(e)}}).call(t,n(923).Buffer)},function(e,t,n){var t=e.exports=function(e){var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n},r=n(923).Buffer,a=n(931)(r);t.sha1=n(932)(r,a),t.sha256=n(936)(r,a),t.sha512=n(937)(r,a)},function(e,t){e.exports=function(e){function t(t,n){this._block=new e(t),this._finalSize=n,this._blockSize=t,this._len=0,this._s=0}return t.prototype.init=function(){this._s=0,this._len=0},t.prototype.update=function(t,n){"string"==typeof t&&(n=n||"utf8",t=new e(t,n));for(var r=this._len+=t.length,a=this._s=this._s||0,o=0,i=this._block;a<r;){for(var s=Math.min(t.length,o+this._blockSize-a%this._blockSize),c=s-o,l=0;l<c;l++)i[a%this._blockSize+l]=t[l+o];a+=c,o+=c,a%this._blockSize==0&&this._update(i)}return this._s=a,this},t.prototype.digest=function(e){var t=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),t%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var n=this._update(this._block)||this._hash();return e?n.toString(e):n},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t}},function(e,t,n){var r=n(933).inherits;e.exports=function(e,t){function n(){return l.length?l.pop().init():this instanceof n?(this._w=c,t.call(this,64,56),this._h=null,void this.init()):new n}function a(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function o(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function i(e,t){return e+t|0}function s(e,t){return e<<t|e>>>32-t}var c=new("undefined"==typeof Int32Array?Array:Int32Array)(80),l=[];return r(n,t),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,t.prototype.init.call(this),this},n.prototype._POOL=l,n.prototype._update=function(e){var t,n,r,c,l,u,d,p,f,h;t=u=this._a,n=d=this._b,r=p=this._c,c=f=this._d,l=h=this._e;for(var m=this._w,_=0;_<80;_++){var M=m[_]=_<16?e.readInt32BE(4*_):s(m[_-3]^m[_-8]^m[_-14]^m[_-16],1),g=i(i(s(t,5),a(_,n,r,c)),i(i(l,M),o(_)));l=c,c=r,r=s(n,30),n=t,t=g}this._a=i(t,u),this._b=i(n,d),this._c=i(r,p),this._d=i(c,f),this._e=i(l,h)},n.prototype._hash=function(){l.length<100&&l.push(this);var t=new e(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},n}},function(e,t,n){(function(e,r){function a(e,n){var r={seen:[],stylize:i};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),c(r,e,r.depth)}function o(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function i(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function c(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var a=n.inspect(r,e);return v(a)||(a=c(e,a,r)),a}var o=l(e,n);if(o)return o;var i=Object.keys(n),m=s(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),L(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return u(n);if(0===i.length){if(w(n)){var _=n.name?": "+n.name:"";return e.stylize("[Function"+_+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(L(n))return u(n)}var M="",g=!1,b=["{","}"];if(h(n)&&(g=!0,b=["[","]"]),w(n)){M=" [Function"+(n.name?": "+n.name:"")+"]"}if(A(n)&&(M=" "+RegExp.prototype.toString.call(n)),T(n)&&(M=" "+Date.prototype.toUTCString.call(n)),L(n)&&(M=" "+u(n)),0===i.length&&(!g||0==n.length))return b[0]+M+b[1];if(r<0)return A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var y;return y=g?d(e,n,r,m,i):i.map(function(t){return p(e,n,r,m,t,g)}),e.seen.pop(),f(y,M,b)}function l(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"#x2F;g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,a){for(var o=[],i=0,s=t.length;i<s;++i)z(t,String(i))?o.push(p(e,t,n,r,String(i),!0)):o.push("");return a.forEach(function(a){a.match(/^\d+#x2F;)||o.push(p(e,t,n,r,a,!0))}),o}function p(e,t,n,r,a,o){var i,s,l;if(l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),z(r,a)||(i="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=_(n)?c(e,l.value,null):c(e,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),y(i)){if(o&&a.match(/^\d+#x2F;))return s;i=JSON.stringify(""+a),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"#x2F;)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function f(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function _(e){return null===e}function M(e){return null==e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function y(e){return void 0===e}function A(e){return E(e)&&"[object RegExp]"===S(e)}function E(e){return"object"==typeof e&&null!==e}function T(e){return E(e)&&"[object Date]"===S(e)}function L(e){return E(e)&&("[object Error]"===S(e)||e instanceof Error)}function w(e){return"function"==typeof e}function k(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function S(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}function O(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var N=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(N,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])_(s)||!E(s)?i+=" "+s:i+=" "+a(s);return i},t.deprecate=function(n,a){function o(){if(!i){if(r.throwDeprecation)throw new Error(a);r.traceDeprecation?console.trace(a):console.error(a),i=!0}return n.apply(this,arguments)}if(y(e.process))return function(){return t.deprecate(n,a).apply(this,arguments)};if(!0===r.noDeprecation)return n;var i=!1;return o};var P,D={};t.debuglog=function(e){if(y(P)&&(P=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!D[e])if(new RegExp("\\b"+e+"\\b","i").test(P)){var n=r.pid;D[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else D[e]=function(){};return D[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=_,t.isNullOrUndefined=M,t.isNumber=g,t.isString=v,t.isSymbol=b,t.isUndefined=y,t.isRegExp=A,t.isObject=E,t.isDate=T,t.isError=L,t.isFunction=w,t.isPrimitive=k,t.isBuffer=n(934);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(935),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,function(){return this}(),n(509))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(933).inherits;e.exports=function(e,t){function n(){this.init(),this._w=f,t.call(this,64,56)}function a(e,t){return e>>>t|e<<32-t}function o(e,t){return e>>>t}function i(e,t,n){return e&t^~e&n}function s(e,t,n){return e&t^e&n^t&n}function c(e){return a(e,2)^a(e,13)^a(e,22)}function l(e){return a(e,6)^a(e,11)^a(e,25)}function u(e){return a(e,7)^a(e,18)^o(e,3)}function d(e){return a(e,17)^a(e,19)^o(e,10)}var p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=new Array(64);return r(n,t),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(e){var t,n,r,a,o,f,h,m,_,M,g=this._w;t=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,f=0|this._f,h=0|this._g,m=0|this._h;for(var v=0;v<64;v++){var b=g[v]=v<16?e.readInt32BE(4*v):d(g[v-2])+g[v-7]+u(g[v-15])+g[v-16];_=m+l(o)+i(o,f,h)+p[v]+b,M=c(t)+s(t,n,r),m=h,h=f,f=o,o=a+_,a=r,r=n,n=t,t=_+M}this._a=t+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=h+this._g|0,this._h=m+this._h|0},n.prototype._hash=function(){var t=new e(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},n}},function(e,t,n){var r=n(933).inherits;e.exports=function(e,t){function n(){this.init(),this._w=c,t.call(this,128,112)}function a(e,t,n){return e>>>n|t<<32-n}function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}var s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);return r(n,t),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(e){var t,n,r,c,l,u,d,p,f,h,m,_,M,g,v,b,y=this._w;t=0|this._a,n=0|this._b,r=0|this._c,c=0|this._d,l=0|this._e,u=0|this._f,d=0|this._g,p=0|this._h,f=0|this._al,h=0|this._bl,m=0|this._cl,_=0|this._dl,M=0|this._el,g=0|this._fl,v=0|this._gl,b=0|this._hl;for(var A=0;A<80;A++){var E,T,L=2*A;if(A<16)E=y[L]=e.readInt32BE(4*L),T=y[L+1]=e.readInt32BE(4*L+4);else{var w=y[L-30],k=y[L-30+1],S=a(w,k,1)^a(w,k,8)^w>>>7,C=a(k,w,1)^a(k,w,8)^a(k,w,7);w=y[L-4],k=y[L-4+1];var O=a(w,k,19)^a(k,w,29)^w>>>6,z=a(k,w,19)^a(w,k,29)^a(k,w,6),N=y[L-14],P=y[L-14+1],D=y[L-32],x=y[L-32+1];T=C+P,E=S+N+(T>>>0<C>>>0?1:0),T+=z,E=E+O+(T>>>0<z>>>0?1:0),T+=x,E=E+D+(T>>>0<x>>>0?1:0),y[L]=E,y[L+1]=T}var j=i(t,n,r),R=i(f,h,m),Y=a(t,f,28)^a(f,t,2)^a(f,t,7),W=a(f,t,28)^a(t,f,2)^a(t,f,7),q=a(l,M,14)^a(l,M,18)^a(M,l,9),I=a(M,l,14)^a(M,l,18)^a(l,M,9),B=s[L],U=s[L+1],H=o(l,u,d),F=o(M,g,v),X=b+I,V=p+q+(X>>>0<b>>>0?1:0);X+=F,V=V+H+(X>>>0<F>>>0?1:0),X+=U,V=V+B+(X>>>0<U>>>0?1:0),X+=T,V=V+E+(X>>>0<T>>>0?1:0);var J=W+R,K=Y+j+(J>>>0<W>>>0?1:0);p=d,b=v,d=u,v=g,u=l,g=M,M=_+X|0,l=c+V+(M>>>0<_>>>0?1:0)|0,c=r,_=m,r=n,m=h,n=t,h=f,f=X+J|0,t=V+K+(f>>>0<X>>>0?1:0)|0}this._al=this._al+f|0,this._bl=this._bl+h|0,this._cl=this._cl+m|0,this._dl=this._dl+_|0,this._el=this._el+M|0,this._fl=this._fl+g|0,this._gl=this._gl+v|0,this._hl=this._hl+b|0,this._a=this._a+t+(this._al>>>0<f>>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0<h>>>0?1:0)|0,this._c=this._c+r+(this._cl>>>0<m>>>0?1:0)|0,this._d=this._d+c+(this._dl>>>0<_>>>0?1:0)|0,this._e=this._e+l+(this._el>>>0<M>>>0?1:0)|0,this._f=this._f+u+(this._fl>>>0<g>>>0?1:0)|0,this._g=this._g+d+(this._gl>>>0<v>>>0?1:0)|0,this._h=this._h+p+(this._hl>>>0<b>>>0?1:0)|0},n.prototype._hash=function(){function t(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}var n=new e(64);return t(this._a,this._al,0),t(this._b,this._bl,8),t(this._c,this._cl,16),t(this._d,this._dl,24),t(this._e,this._el,32),t(this._f,this._fl,40),t(this._g,this._gl,48),t(this._h,this._hl,56),n},n}},function(e,t,n){function r(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,a=-1732584194,u=271733878,d=0;d<e.length;d+=16){var p=n,f=r,h=a,m=u;n=o(n,r,a,u,e[d+0],7,-680876936),u=o(u,n,r,a,e[d+1],12,-389564586),a=o(a,u,n,r,e[d+2],17,606105819),r=o(r,a,u,n,e[d+3],22,-1044525330),n=o(n,r,a,u,e[d+4],7,-176418897),u=o(u,n,r,a,e[d+5],12,1200080426),a=o(a,u,n,r,e[d+6],17,-1473231341),r=o(r,a,u,n,e[d+7],22,-45705983),n=o(n,r,a,u,e[d+8],7,1770035416),u=o(u,n,r,a,e[d+9],12,-1958414417),a=o(a,u,n,r,e[d+10],17,-42063),r=o(r,a,u,n,e[d+11],22,-1990404162),n=o(n,r,a,u,e[d+12],7,1804603682),u=o(u,n,r,a,e[d+13],12,-40341101),a=o(a,u,n,r,e[d+14],17,-1502002290),r=o(r,a,u,n,e[d+15],22,1236535329),n=i(n,r,a,u,e[d+1],5,-165796510),u=i(u,n,r,a,e[d+6],9,-1069501632),a=i(a,u,n,r,e[d+11],14,643717713),r=i(r,a,u,n,e[d+0],20,-373897302),n=i(n,r,a,u,e[d+5],5,-701558691),u=i(u,n,r,a,e[d+10],9,38016083),a=i(a,u,n,r,e[d+15],14,-660478335),r=i(r,a,u,n,e[d+4],20,-405537848),n=i(n,r,a,u,e[d+9],5,568446438),u=i(u,n,r,a,e[d+14],9,-1019803690),a=i(a,u,n,r,e[d+3],14,-187363961),r=i(r,a,u,n,e[d+8],20,1163531501),n=i(n,r,a,u,e[d+13],5,-1444681467),u=i(u,n,r,a,e[d+2],9,-51403784),a=i(a,u,n,r,e[d+7],14,1735328473),r=i(r,a,u,n,e[d+12],20,-1926607734),n=s(n,r,a,u,e[d+5],4,-378558),u=s(u,n,r,a,e[d+8],11,-2022574463),a=s(a,u,n,r,e[d+11],16,1839030562),r=s(r,a,u,n,e[d+14],23,-35309556),n=s(n,r,a,u,e[d+1],4,-1530992060),u=s(u,n,r,a,e[d+4],11,1272893353),a=s(a,u,n,r,e[d+7],16,-155497632),r=s(r,a,u,n,e[d+10],23,-1094730640),n=s(n,r,a,u,e[d+13],4,681279174),u=s(u,n,r,a,e[d+0],11,-358537222),a=s(a,u,n,r,e[d+3],16,-722521979),r=s(r,a,u,n,e[d+6],23,76029189),n=s(n,r,a,u,e[d+9],4,-640364487),u=s(u,n,r,a,e[d+12],11,-421815835),a=s(a,u,n,r,e[d+15],16,530742520),r=s(r,a,u,n,e[d+2],23,-995338651),n=c(n,r,a,u,e[d+0],6,-198630844),u=c(u,n,r,a,e[d+7],10,1126891415),a=c(a,u,n,r,e[d+14],15,-1416354905),r=c(r,a,u,n,e[d+5],21,-57434055),n=c(n,r,a,u,e[d+12],6,1700485571),u=c(u,n,r,a,e[d+3],10,-1894986606),a=c(a,u,n,r,e[d+10],15,-1051523),r=c(r,a,u,n,e[d+1],21,-2054922799),n=c(n,r,a,u,e[d+8],6,1873313359),u=c(u,n,r,a,e[d+15],10,-30611744),a=c(a,u,n,r,e[d+6],15,-1560198380),r=c(r,a,u,n,e[d+13],21,1309151649),n=c(n,r,a,u,e[d+4],6,-145523070),u=c(u,n,r,a,e[d+11],10,-1120210379),a=c(a,u,n,r,e[d+2],15,718787259),r=c(r,a,u,n,e[d+9],21,-343485551),n=l(n,p),r=l(r,f),a=l(a,h),u=l(u,m)}return Array(n,r,a,u)}function a(e,t,n,r,a,o){return l(u(l(l(t,e),l(r,o)),a),n)}function o(e,t,n,r,o,i,s){return a(t&n|~t&r,e,t,o,i,s)}function i(e,t,n,r,o,i,s){return a(t&r|n&~r,e,t,o,i,s)}function s(e,t,n,r,o,i,s){return a(t^n^r,e,t,o,i,s)}function c(e,t,n,r,o,i,s){return a(n^(t|~r),e,t,o,i,s)}function l(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function u(e,t){return e<<t|e>>>32-t}var d=n(939);e.exports=function(e){return d.hash(e,r,16)}},function(e,t,n){(function(t){function n(e,n){if(e.length%o!=0){var r=e.length+(o-e.length%o);e=t.concat([e,i],r)}for(var a=[],s=n?e.readInt32BE:e.readInt32LE,c=0;c<e.length;c+=o)a.push(s.call(e,c));return a}function r(e,n,r){for(var a=new t(n),o=r?a.writeInt32BE:a.writeInt32LE,i=0;i<e.length;i++)o.call(a,e[i],4*i,!0);return a}function a(e,a,o,i){return t.isBuffer(e)||(e=new t(e)),r(a(n(e,i),e.length*s),o,i)}var o=4,i=new t(o);i.fill(0);var s=8;e.exports={hash:a}}).call(t,n(923).Buffer)},function(e,t,n){(function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function a(e,t,n){return(e|~t)^n}function o(e,t,n){return e&n|t&~n}function i(e,t,n){return e^(t|~n)}function s(e,t){return e<<t|e>>>32-t}function c(e){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof e&&(e=new t(e,"utf8"));var r=m(e),a=8*e.length,o=8*e.length;r[a>>>5]|=128<<24-a%32,r[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var i=0;i<r.length;i+=16)M(n,r,i);for(var i=0;i<5;i++){var s=n[i];n[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var c=_(n);return new t(c)}e.exports=c;var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0],m=function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},_=function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},M=function(e,t,c){for(var m=0;m<16;m++){var _=c+m,M=t[_];t[_]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}var g,v,b,y,A,E,T,L,w,k;E=g=e[0],T=v=e[1],L=b=e[2],w=y=e[3],k=A=e[4];for(var S,m=0;m<80;m+=1)S=g+t[c+l[m]]|0,S+=m<16?n(v,b,y)+f[0]:m<32?r(v,b,y)+f[1]:m<48?a(v,b,y)+f[2]:m<64?o(v,b,y)+f[3]:i(v,b,y)+f[4],S|=0,S=s(S,d[m]),S=S+A|0,g=A,A=y,y=s(b,10),b=v,v=S,S=E+t[c+u[m]]|0,S+=m<16?i(T,L,w)+h[0]:m<32?o(T,L,w)+h[1]:m<48?a(T,L,w)+h[2]:m<64?r(T,L,w)+h[3]:n(T,L,w)+h[4],S|=0,S=s(S,p[m]),S=S+k|0,E=k,k=w,w=s(L,10),L=T,T=S;S=e[1]+b+w|0,e[1]=e[2]+y+k|0,e[2]=e[3]+A+E|0,e[3]=e[4]+g+T|0,e[4]=e[0]+v+L|0,e[0]=S}}).call(t,n(923).Buffer)},function(e,t,n){(function(t){function r(e,n){if(!(this instanceof r))return new r(e,n);this._opad=c,this._alg=e;var i="sha512"===e?128:64;n=this._key=t.isBuffer(n)?n:new t(n),n.length>i?n=a(e).update(n).digest():n.length<i&&(n=t.concat([n,o],i));for(var s=this._ipad=new t(i),c=this._opad=new t(i),l=0;l<i;l++)s[l]=54^n[l],c[l]=92^n[l];this._hash=a(e).update(s)}var a=n(929),o=new t(128);o.fill(0),e.exports=r,r.prototype.update=function(e,t){return this._hash.update(e,t),this},r.prototype.digest=function(e){var t=this._hash.digest();return a(this._alg).update(this._opad).update(t).digest(e)}}).call(t,n(923).Buffer)},function(e,t,n){var r=n(943);e.exports=function(e,t){t=t||{};var n=r(e);return t.pbkdf2=n.pbkdf2,t.pbkdf2Sync=n.pbkdf2Sync,t}},function(e,t,n){(function(t){e.exports=function(e){function n(e,t,n,a,o,i){if("function"==typeof o&&(i=o,o=void 0),"function"!=typeof i)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var s;try{s=r(e,t,n,a,o)}catch(e){return i(e)}i(void 0,s)})}function r(n,r,a,o,i){if("number"!=typeof a)throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0)throw new TypeError("Bad key length");i=i||"sha1",t.isBuffer(n)||(n=new t(n)),t.isBuffer(r)||(r=new t(r));var s,c,l,u=1,d=new t(o),p=new t(r.length+4);r.copy(p,0,0,r.length);for(var f=1;f<=u;f++){p.writeUInt32BE(f,r.length);var h=e.createHmac(i,n).update(p).digest();if(!s&&(s=h.length,l=new t(s),u=Math.ceil(o/s),c=o-(u-1)*s,o>(Math.pow(2,32)-1)*s))throw new TypeError("keylen exceeds maximum length");h.copy(l,0,0,s);for(var m=1;m<a;m++){h=e.createHmac(i,n).update(h).digest();for(var _=0;_<s;_++)l[_]^=h[_]}var M=(f-1)*s,g=f==u?c:s;l.copy(d,M,0,g)}return d}return{pbkdf2:n,pbkdf2Sync:r}}}).call(t,n(923).Buffer)},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(1),o=r(a),i=n(142),s=r(i),c=n(154);t.default=s.default.createClass({displayName:"RootChild",propTypes:{children:i.PropTypes.node},contextTypes:{store:i.PropTypes.object},componentDidMount:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()},componentDidUpdate:function(){this.renderChildren()},componentWillUnmount:function(){this.container&&(o.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)},renderChildren:function(){var e;e=this.props&&(Object.keys(this.props).length>1||!this.props.children)?s.default.createElement("div",this.props,this.props.children):this.props.children,this.context.store&&(e=s.default.createElement(c.Provider,{store:this.context.store},e)),o.default.render(e,this.container)},render:function(){return null}}),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,_("viewport: %o",e),e}function o(){v=a()}function i(e,t){for(var n=[e,M[e],g[e],M[g[e]]],r=-1/0,a=void 0,o=0,i=n.length;o<i;o++){var s=n[o],c=t[s];if(c>0)return s;c>r&&(r=c,a=e)}return a}function s(e,t,n,r,a,o){for(var i=t?[e+" "+t,e,e+" "+M[t]]:[e,e+" "+g[e],e+" "+M[g[e]]],s=void 0,l=0,u=a*o,d=0,p=i.length;d<p;d++){var f=i[d],h=c(f,n,r),m=h.left+a,_=h.top+o,b=Math.min(h.top<v.top?_-v.top:v.bottom-h.top,o),y=Math.min(h.left<v.left?m-v.left:v.right-h.left,a),A=y*b;if(A===u)return f;A>l&&(l=A,s=f)}return s}function c(e,t,n){var r=(0,f.default)(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var a=r.width,o=r.height,i=(0,f.default)(n);if(!i)throw new Error("could not get bounding client rect of `target`");var s=i.width,c=i.height,u=l(i,document);if(!u)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:u.top-o,left:u.left+s/2-a/2}
31
;break;case"bottom":d={top:u.top+c,left:u.left+s/2-a/2};break;case"right":d={top:u.top+c/2-o/2,left:u.left+s};break;case"left":d={top:u.top+c/2-o/2,left:u.left-a};break;case"top left":d={top:u.top-o,left:u.left+s/2-a+15};break;case"top right":d={top:u.top-o,left:u.left+s/2-15};break;case"bottom left":d={top:u.top+c,left:u.left+s/2-a+15};break;case"bottom right":d={top:u.top+c,left:u.left+s/2-15};break;case"left top":d={top:u.top+c/2-o,left:u.left-a};break;case"left bottom":d={top:u.top+c/2,left:u.left-a};break;case"right top":d={top:u.top+c/2-o,left:u.left+s};break;case"right bottom":d={top:u.top+c/2,left:u.left+s};break;default:throw new Error('invalid position "'+e+'"')}return d}function l(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,a=r.clientTop||n.clientTop||0,o=r.clientLeft||n.clientLeft||0,i=window.pageYOffset||r.scrollTop,s=window.pageXOffset||r.scrollLeft;return{top:e.top+i-a,left:e.left+s-o}}Object.defineProperty(t,"__esModule",{value:!0}),t.isElement=t.offset=t.suggested=t.unbindWindowListeners=t.bindWindowListeners=t.constrainLeft=void 0;var u="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},d=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=n(946),f=r(p),h=n(725),m=r(h),_=(0,m.default)("calypso:popover:util"),M={top:"bottom",bottom:"top",left:"right",right:"left"},g={top:"right",left:"top",bottom:"left",right:"bottom"},v=a(),b=!1,y=function(){if(b)return _("window events already bound");b=!0,_("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",o,!0),window.addEventListener("scroll",o,!0)},A=function(){if(!b)return _("window events are not bound");b=!1,_("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",o,!0),window.removeEventListener("scroll",o,!0)},E=function(e,t,n){var r=(0,f.default)(n),a=t.clientHeight,o=t.clientWidth,c={top:r.top-a,bottom:v.height-r.bottom-a,left:r.left-o,right:v.width-r.right-o},l=e.split(/\s+/),u=d(l,1),p=u[0],h=d(l,2),m=h[1],_=i(p,c);return m!==_&&m!==M[_]||(m=null),s(_,m,t,n,o,a)||e},T=function(e,t){var n=(0,f.default)(t).width;return e.left=Math.max(0,Math.min(e.left,v.width-n)),e},L=function(e){try{return e instanceof HTMLElement}catch(t){return"object"===(void 0===e?"undefined":u(e))&&1===e.nodeType&&"object"===u(e.style)&&"object"===u(e.ownerDocument)}};t.constrainLeft=T,t.bindWindowListeners=y,t.unbindWindowListeners=A,t.suggested=E,t.offset=c,t.isElement=L},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 o=n.createElement("span");o.appendChild(n.createTextNode("​")),e.insertNode(o),t=o.getBoundingClientRect();var i=o.parentNode;i.removeChild(o),i.normalize()}return t}var a=n(947);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){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(142),o=r(a),i=n(777),s=r(i),c=n(756),l=r(c),u=n(276),d=r(u),p=n(840),f=r(p),h=n(792),m=r(h);n(953),t.default=o.default.createClass({displayName:"ExternalLink",mixins:[s.default],propTypes:{className:o.default.PropTypes.string,href:o.default.PropTypes.string,onClick:o.default.PropTypes.func,icon:o.default.PropTypes.bool,iconSize:o.default.PropTypes.number},getDefaultProps:function(){return{iconSize:18}},render:function(){var e=(0,l.default)("dops-external-link",this.props.className,{"has-icon":!!this.props.icon}),t=(0,d.default)({},(0,f.default)(this.props,"icon","iconSize"),{className:e,rel:"external"});return o.default.createElement("a",t,this.props.children,this.props.icon?o.default.createElement(m.default,{icon:"external",size:this.props.iconSize}):null)}}),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.Subscriptions=void 0;var a=n(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(524),d=n(865),p=r(d),f=n(874),h=r(f),m=n(724),_=r(m),M=n(837),g=n(864),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A);t.Subscriptions=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"Subscriptions",getInitialState:function(){return{stb_enabled:this.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:this.props.getOptionValue("stc_enabled","subscriptions")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("subscriptions",e))},trackConfigureClick:function(){_.default.tracks.recordJetpackClick("view-followers")},render:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return l.default.createElement(y.default,(0,o.default)({},this.props,{hideButton:!0,module:"subscriptions"}),l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:t},l.default.createElement(g.ModuleToggle,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),l.default.createElement(M.FormFieldset,null,l.default.createElement(p.default,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:function(){return e.updateOptions("stb_enabled")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)('Show a "follow blog" option in the comment form'))),l.default.createElement(p.default,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:function(){return e.updateOptions("stc_enabled")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)('Show a "follow comments" option in the comment form'))))),function(){return r||!n?"":e.props.isLinked?l.default.createElement(h.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:"https://wordpress.com/people/email-followers/"+e.props.siteRawUrl},(0,u.translate)("View your Email Followers")):l.default.createElement(h.default,{compact:!0,className:"jp-settings-card__configure-link",href:e.props.connectUrl+"&from=unlinked-user-connect-masterbar"},(0,u.translate)("Connect your user account to WordPress.com to view your email followers")," ")}())}}))},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(512),g=n(729),v=n(707),b=n(744),y=n(738),A=n(830),E=r(A),T=n(886),L=r(T),w=n(957),k=r(w),S=n(958),C=r(S),O=n(973),z=n(977),N=t.Security=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var i=arguments.length,c=Array(i),l=0;l<i;l++)c[l]=arguments[l];return n=r=(0,d.default)(this,(e=t.__proto__||(0,o.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,f.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),a=this.props.isModuleFound("vaultpress");return(this.props.searchTerm||this.props.active)&&(n||t||r||a)?m.default.createElement("div",null,m.default.createElement(E.default,null),a&&m.default.createElement(k.default,e),r&&m.default.createElement("div",null,m.default.createElement(C.default,e),m.default.createElement(L.default,null)),t&&m.default.createElement(O.Protect,e),n&&m.default.createElement(z.SSO,e)):null}}]),t}(h.Component);N.displayName="SecuritySettings",t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,g.getSettings)(e),isDevMode:(0,v.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,v.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,b.isModuleFound)(e,t)},isPluginActive:function(t){return(0,y.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,y.isPluginInstalled)(e,t)}}})(N)},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(874),y=r(b),A=n(724),E=r(A),T=n(452),L=r(T),w=n(872),k=n(869),S=n(871),C=r(S),O=n(899),z=r(O),N=n(466),P=n(735),D=n(709),x=r(D),j=t.BackupsScan=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,f.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(i))),r.toggleModule=function(e,t){r.props.updateFormStateOptionValue(e,!t)},r.trackConfigureClick=function(){E.default.tracks.recordJetpackClick("configure-scan")},a=n,(0,f.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getCardText",value:function(){var e=(0,L.default)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,L.default)(this.props.vaultPressData,["data","features","security"],!1),n=(0,w.getPlanClass)(this.props.sitePlan.product_slug),r="";if(this.props.isFetchingSiteData||this.props.isFetchingVaultPressData)return(0,v.translate)("Checking site status…");if(this.props.isDevMode)return(0,v.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,v.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:a,args:{number:(0,v.numberFormat)(a)}})),M.default.createElement("br",null),M.default.createElement("br",null),(0,v.translate)("{{a}}View details{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,v.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}})):(0,v.translate)("Your site is backed up and threat-free.")}if(e&&(0,x.default)(["is-free-plan","is-personal-plan"],n))return(0,v.translate)("Your site is backed up.");switch(n){case"is-personal-plan":r=(0,v.translate)("You have paid for backups but they're not yet active."),r+=" "+(0,v.translate)('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=(0,v.translate)("You have paid for backups and security scanning but they’re not yet active."),r+=" "+(0,v.translate)('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){var e=(0,L.default)(this.props.vaultPressData,["data","features","security"],!1);return M.default.createElement(C.default,(0,o.default)({feature:w.FEATURE_SECURITY_SCANNING_JETPACK},this.props,{header:(0,v.translate)("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),M.default.createElement(z.default,{disableInDevMode:!0,module:{module:"backups"},support:"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,v.translate)("Configure your Security Scans")))}}]),t}(_.Component));t.default=(0,g.connect)(function(e){return{sitePlan:(0,P.getSitePlan)(e),isFetchingSiteData:(0,P.isFetchingSiteData)(e),vaultPressData:(0,N.getVaultPressData)(e),isFetchingVaultPressData:(0,N.isFetchingVaultPressData)(e),hasThreats:(0,N.getVaultPressScanThreatCount)(e)}})(j)},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(834),y=r(b),A=n(959),E=r(A),T=n(963),L=r(T),w=n(792),k=r(w),S=n(769),C=r(S),O=n(276),z=r(O),N=n(832),P=r(N),D=n(966),x=r(D),j=n(466),R=n(872),Y=n(724),W=r(Y),q=n(837),I=n(869),B=n(871),U=r(B),H=n(899),F=r(H),X=t.Antispam=(0,I.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,f.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(i))),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(){W.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})},a=n,(0,f.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,P.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,v.translate)("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=(0,v.translate)("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=(0,v.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(k.default,{size:24,icon:"sync"}),(0,v.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(L.default,{isError:!0,text:(0,v.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,v.translate)("Your site is not protected from spam.")):(t=M.default.createElement(L.default,{text:(0,v.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,v.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,o.default)({},this.props,{header:(0,v.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:"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,v.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,v.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,g.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";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(142),o=n(756),i=n(757),s=n(874),c=n(960),l=n(792),u=n(881);n(961);var d=a.createClass({displayName:"FoldableCard",propTypes:{actionButton:a.PropTypes.element,actionButtonExpanded:a.PropTypes.element,cardKey:a.PropTypes.string,compact:a.PropTypes.bool,disabled:a.PropTypes.bool,expandedSummary:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),expanded:a.PropTypes.bool,icon:a.PropTypes.string,onClick:a.PropTypes.func,onClose:a.PropTypes.func,onOpen:a.PropTypes.func,summary:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),clickableHeader:a.PropTypes.bool,clickableHeaderText:a.PropTypes.bool},getInitialState:function(){return{expanded:this.props.expanded}},getDefaultProps:function(){return{onOpen:i,onClose:i,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1}},onClick:function(){this.props.children&&this.setState({expanded:!this.state.expanded}),this.props.onClick&&this.props.onClick(),this.state.expanded?this.props.onClose(this.props.cardKey):this.props.onOpen(this.props.cardKey)},getClickAction:function(){if(!this.props.disabled)return this.onClick},getActionButton:function(){return this.state.expanded?this.props.actionButtonExpanded||this.props.actionButton:this.props.actionButton},renderActionButton:function(){var e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return a.createElement("button",{className:"dops-foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){return a.createElement("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e},a.createElement("span",{className:"screen-reader-text"},"More"),a.createElement(l,{icon:this.props.icon,size:24}))}},renderContent:function(){return a.createElement("div",{className:"dops-foldable-card__content"},this.props.children)},renderHeader:function(){var e=this.props.summary?a.createElement("span",{className:"dops-foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?a.createElement("span",{className:"dops-foldable-card__summary_expanded"},this.props.expandedSummary," "):null,n=this.props.header?a.createElement("div",{className:"dops-foldable-card__header-text"},this.props.header):null,i=this.props.subheader?a.createElement("div",{className:"dops-foldable-card__subheader"},this.props.subheader):null,s={role:"button",tabIndex:0,onClick:this.getClickAction(),onKeyDown:u(this.getClickAction())},c=o("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),l=o("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return a.createElement("div",r({className:c},this.props.clickableHeader?s:{}),a.createElement("span",{className:"dops-foldable-card__main"},a.createElement("div",r({className:l},this.props.clickableHeaderText?s:{}),n,i)),a.createElement("span",{className:"dops-foldable-card__secondary"},e,t,this.renderActionButton()))},render:function(){var e=this.props.compact?c:s,t=o("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return a.createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}});e.exports=d},function(e,t,n){"use strict";var r=n(142),a=n(276),o=n(756),i=n(874);e.exports=r.createClass({displayName:"CompactCard",render:function(){var e=a({},this.props,{className:o(this.props.className,"is-compact")});return r.createElement(i,e,this.props.children)}})},function(e,t){},,function(e,t,n){"use strict";var r=n(142),a=n(756),o=n(792);n(964),e.exports=r.createClass({displayName:"FormInputValidation",propTypes:{isError:r.PropTypes.bool,isWarning:r.PropTypes.bool,text:r.PropTypes.node,icon:r.PropTypes.string},getDefaultProps:function(){return{isError:!1}},render:function(){var e=a({"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 r.createElement("div",{className:e},r.createElement("span",null,r.createElement(o,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}})},function(e,t){},,function(e,t,n){function r(e,t,n){if((e=l(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),p=s(r,d),f=i(r,d)+1;return o(r,p,f).join("")}var a=n(461),o=n(967),i=n(968),s=n(969),c=n(970),l=n(460),u=/^\s+|\s+#x2F;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(861);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(710);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(710);e.exports=r},function(e,t,n){function r(e){return o(e)?i(e):a(e)}var a=n(971),o=n(892),i=n(972);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]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,i].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",l="[\\ufe0e\\ufe0f]?"+s+c,u="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,o,i,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+u+l,"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.Protect=void 0;var a=n(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(755),b=r(v),y=n(974),A=r(y),E=n(709),T=r(E),L=n(959),w=r(L),k=n(839),S=r(k),C=n(724),O=r(C),z=n(837),N=n(864),P=n(869),D=n(871),x=r(D),j=n(899),R=r(j);t.Protect=(0,P.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,f.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(i))),r.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,T.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,f.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,o.default)({},this.props,{module:"protect",header:(0,g.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(w.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")},M.default.createElement(z.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,g.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(b.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,g.translate)("Add to whitelist"))),M.default.createElement(z.FormLabel,null,M.default.createElement(z.FormLegend,null,(0,g.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,g.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";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(142),o=n(756),i=n(840);n(975),e.exports=a.createClass({displayName:"Textarea",render:function(){return a.createElement("textarea",r({},i(this.props,"className"),{className:o(this.props.className,"dops-textarea")}),this.props.children)}})},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(399),o=r(a),i=n(517),s=r(i),c=n(493),l=r(c),u=n(497),d=r(u),p=n(831),f=r(p),h=n(498),m=r(h),_=n(499),M=r(_),g=n(142),v=r(g),b=n(524),y=n(865),A=r(y),E=n(837),T=n(864),L=n(869),w=n(871),k=r(w),S=n(899),C=r(S);t.SSO=(0,L.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,l.default)(t)).call.apply(e,[this].concat(i))),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.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,f.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("sso"),n=this.props.isUnavailableInDevMode("sso");return v.default.createElement(k.default,(0,o.default)({},this.props,{hideButton:!0,module:"sso",header:(0,b.translate)("WordPress.com log in",{context:"Settings header"})}),v.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso")},v.default.createElement(T.ModuleToggle,{slug:"sso",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},v.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),v.default.createElement(E.FormFieldset,null,v.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:function(){return e.updateOptions("jetpack_sso_match_by_email")}},v.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Match accounts using email addresses"))),v.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:function(){return e.updateOptions("jetpack_sso_require_two_step")}},v.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(g.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(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(512),u=n(729),d=n(707),p=n(744),f=n(830),h=r(f),m=n(979),_=n(980),M=n(981),g=n(982),v=n(984),b=n(985),y=(r(b),n(986)),A=n(987),E=r(A),T=n(398),L=t.Traffic=s.default.createClass({displayName:"TrafficSettings",render:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),i=this.props.isModuleFound("verification-tools"),c=this.props.isModuleFound("sitemaps"),l=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||i||c||l)?s.default.createElement("div",null,s.default.createElement(h.default,null),r&&s.default.createElement(g.SiteStats,e),n&&s.default.createElement(M.Ads,(0,o.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&s.default.createElement(v.RelatedPosts,(0,o.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&&s.default.createElement(m.SEO,(0,o.default)({},e,{configureUrl:"https://wordpress.com/settings/seo/"+this.props.siteRawUrl})),l&&s.default.createElement(_.GoogleAnalytics,(0,o.default)({},e,{configureUrl:"https://wordpress.com/settings/analytics/"+this.props.siteRawUrl})),c&&s.default.createElement(E.default,e),i&&s.default.createElement(y.VerificationServices,e),!1):null}});t.default=(0,c.connect)(function(e){return{module:function(t){return(0,l.getModule)(e,t)},settings:(0,u.getSettings)(e),isDevMode:(0,d.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,d.isUnavailableInDevMode)(e,t)},
32
- isModuleFound:function(t){return(0,p.isModuleFound)(e,t)},lastPostUrl:(0,T.getLastPostUrl)(e)}})(L)},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(399),o=r(a),i=n(142),s=r(i),c=n(524),l=n(874),u=r(l),d=n(724),p=r(d),f=n(872),h=n(869),m=n(871),_=r(m),M=n(899),g=r(M);t.SEO=(0,h.ModuleSettingsForm)(s.default.createClass({displayName:"SEO",trackConfigureClick:function(){p.default.tracks.recordJetpackClick("configure-seo")},render:function(){return s.default.createElement(_.default,(0,o.default)({},this.props,{header:(0,c.translate)("Search engine optimization",{context:"Settings header"}),feature:f.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),s.default.createElement(g.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:"https://jetpack.com/support/seo-tools/"},s.default.createElement("span",null,(0,c.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:s.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&s.default.createElement(u.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,c.translate)("Configure your SEO settings")))}}))},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(724),A=r(y),E=n(872),T=n(869),L=n(871),w=r(L),k=n(899),S=r(k);t.GoogleAnalytics=(0,T.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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(w.default,(0,o.default)({},this.props,{header:(0,g.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:"https://jetpack.com/support/google-analytics/"},M.default.createElement("p",null,(0,g.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(b.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,g.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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(524),d=n(874),p=r(d),f=n(865),h=r(f),m=n(724),_=r(m),M=n(872),g=n(837),v=n(869),b=n(864),y=n(871),A=r(y),E=n(899),T=r(E);t.Ads=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"Ads",getInitialState:function(){return{enable_header_ad:this.props.getOptionValue("enable_header_ad","wordads"),wordads_second_belowpost:this.props.getOptionValue("wordads_second_belowpost","wordads"),wordads_display_front_page:this.props.getOptionValue("wordads_display_front_page","wordads"),wordads_display_post:this.props.getOptionValue("wordads_display_post","wordads"),wordads_display_page:this.props.getOptionValue("wordads_display_page","wordads"),wordads_display_archive:this.props.getOptionValue("wordads_display_archive","wordads")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("wordads",e))},trackConfigureClick:function(){_.default.tracks.recordJetpackClick("view-earnings")},render:function(){var e=this,t=this.props.getOptionValue("wordads"),n=this.props.isUnavailableInDevMode("wordads");return l.default.createElement(A.default,(0,o.default)({},this.props,{header:(0,u.translate)("Ads",{context:"Ads header"}),feature:M.FEATURE_WORDADS_JETPACK,hideButton:!0}),l.default.createElement(T.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:"https://jetpack.com/support/ads/"},l.default.createElement("p",null,(0,u.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."),l.default.createElement("br",null),l.default.createElement("small",{className:"jp-form-setting-explanation"},(0,u.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:l.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer"})}}))),l.default.createElement(b.ModuleToggle,{slug:"wordads",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Enable ads and display an ad below each post"))),l.default.createElement(g.FormFieldset,null,l.default.createElement(g.FormLegend,null,(0,u.translate)("Display ads below posts on")),l.default.createElement(h.default,{checked:this.state.wordads_display_front_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:function(){return e.updateOptions("wordads_display_front_page")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Front page"))),l.default.createElement(h.default,{checked:this.state.wordads_display_post,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:function(){return e.updateOptions("wordads_display_post")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Posts"))),l.default.createElement(h.default,{checked:this.state.wordads_display_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:function(){return e.updateOptions("wordads_display_page")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Pages"))),l.default.createElement(h.default,{checked:this.state.wordads_display_archive,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:function(){return e.updateOptions("wordads_display_archive")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Archives")))),l.default.createElement(g.FormFieldset,null,l.default.createElement(g.FormLegend,null,(0,u.translate)("Additional ad placements")),l.default.createElement(h.default,{checked:this.state.enable_header_ad,disabled:!t||n||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:function(){return e.updateOptions("enable_header_ad")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Top of each page"))),l.default.createElement(h.default,{checked:this.state.wordads_second_belowpost,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:function(){return e.updateOptions("wordads_second_belowpost")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Second ad below post"))))),!n&&t&&l.default.createElement(p.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,u.translate)("View your earnings")))}}))},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(399),o=r(a),i=n(514),s=r(i),c=n(517),l=r(c),u=n(142),d=r(u),p=n(524),f=n(865),h=r(f),m=n(959),_=r(m),M=n(755),g=r(M),v=n(874),b=r(v),y=n(709),A=r(y),E=n(731),T=r(E),L=n(839),w=r(L),k=n(983),S=n(724),C=r(S),O=n(837),z=n(864),N=n(869),P=n(899),D=r(P),x=n(871),j=r(x);t.SiteStats=(0,N.ModuleSettingsForm)(d.default.createClass({displayName:"SiteStats",getInitialState:function(){var e=this.props.getOptionValue("count_roles","stats"),t=this.props.getOptionValue("roles","stats");return{count_roles:e,roles:t,count_roles_administrator:(0,A.default)(e,"administrator",!1),count_roles_editor:(0,A.default)(e,"editor",!1),count_roles_author:(0,A.default)(e,"author",!1),count_roles_contributor:(0,A.default)(e,"contributor",!1),count_roles_subscriber:(0,A.default)(e,"subscriber",!1),roles_administrator:!0,roles_editor:(0,A.default)(t,"editor",!1),roles_author:(0,A.default)(t,"author",!1),roles_contributor:(0,A.default)(t,"contributor",!1),roles_subscriber:(0,A.default)(t,"subscriber",!1)}},updateOptions:function(e,t){var n=this,r=this.props.getOptionValue(t,"stats"),a=!1;this.state[t+"_"+e]?(0,A.default)(r,e)&&(r=(0,T.default)(r,function(t){return t!==e})):(0,A.default)(r,e)||(r.push(e),a=!0),this.setState((0,l.default)({},t+"_"+e,!this.state[t+"_"+e]),function(){n.props.updateOptions((0,l.default)({},t,r))}),C.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},activateStats:function(){this.props.updateOptions({stats:!0})},trackOpenCard:function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})},render:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return n?d.default.createElement(j.default,(0,o.default)({},this.props,{header:(0,p.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),d.default.createElement(_.default,{onOpen:this.trackOpenCard,header:(0,p.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,w.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},d.default.createElement(D.default,{disableInDevMode:!0,module:t},d.default.createElement(O.FormFieldset,null,d.default.createElement(z.ModuleToggle,{slug:"stats",compact:!0,disabled:!n||r,activated:!!this.props.getOptionValue("admin_bar"),toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"admin_bar")}},d.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,p.translate)("Put a chart showing 48 hours of views in the admin bar"))),d.default.createElement(z.ModuleToggle,{slug:"stats",disabled:!n||r,activated:!!this.props.getOptionValue("hide_smile"),toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"hide_smile")}},d.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,p.translate)("Hide the stats smiley face image")),d.default.createElement("span",{className:"jp-form-setting-explanation"},(0,p.translate)("The image helps collect stats, but should work when hidden.")))),d.default.createElement(O.FormFieldset,null,d.default.createElement(O.FormLegend,null,(0,p.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return d.default.createElement(h.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:function(){return e.updateOptions(t,"count_roles")},key:"count_roles-"+t},d.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),d.default.createElement(O.FormFieldset,null,d.default.createElement(O.FormLegend,null,(0,p.translate)("Allow stats reports to be viewed by")),d.default.createElement(h.default,{checked:!0,disabled:!0},d.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&d.default.createElement(h.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:function(){return e.updateOptions(t,"roles")},key:"roles-"+t},d.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):d.default.createElement(b.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},d.default.createElement("img",{src:k.imagePath+"stats.svg",width:"60",height:"60",alt:(0,p.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,p.translate)("Unavailable in Dev Mode"):(0,p.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:d.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:d.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},d.default.createElement(g.default,{onClick:this.activateStats,primary:!0},(0,p.translate)("Activate Site Stats")))))}}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.imagePath=window.Initial_State.pluginBaseUrl+"/images/",t.JETPACK_CONTACT_SUPPORT="https://jetpack.com/contact-support",t.JETPACK_CONTACT_BETA_SUPPORT="https://jetpack.com/contact-support/beta-group"},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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(524),d=n(952),p=r(d),f=n(874),h=r(f),m=n(865),_=r(m),M=n(837),g=n(864),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A);t.RelatedPosts=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"RelatedPosts",getInitialState:function(){return{show_headline:this.props.getOptionValue("show_headline","related-posts"),show_thumbnails:this.props.getOptionValue("show_thumbnails","related-posts")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("related-posts",e))},render:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return l.default.createElement(y.default,(0,o.default)({},this.props,{hideButton:!0,module:"related-posts"}),l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts")},l.default.createElement(g.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Show related content after posts"))),l.default.createElement(M.FormFieldset,null,l.default.createElement(_.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:function(){return e.updateOptions("show_headline")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)('Show a "Related" header to more clearly separate the related section from posts'))),l.default.createElement(_.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:function(){return e.updateOptions("show_thumbnails")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Use a large and visually striking layout"))),(0,u.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:l.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:l.default.createElement(p.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),l.default.createElement(M.FormLabel,{className:"jp-form-label-wide"},(0,u.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),l.default.createElement(h.default,{className:"jp-related-posts-preview"},this.state.show_headline&&l.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,u.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,u.translate)("Big iPhone/iPad Update Now Available"),context:(0,u.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,u.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,u.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,u.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,u.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return l.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&l.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),l.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},l.default.createElement("a",{href:"#/traffic"},t.text)),l.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}))},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(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(869),d=n(864),p=n(871),f=r(p),h=n(899),m=r(h),_=n(398),M=n(872),g=n(735),v=(0,u.ModuleSettingsForm)(s.default.createClass({displayName:"Search",render:function(){var e=this.props.getModule("search"),t=null;return this.props.sitePlan&&(t=(0,M.getPlanClass)(this.props.sitePlan.product_slug)),"is-business-plan"===t?s.default.createElement(f.default,(0,o.default)({},this.props,{module:"search",hideButton:!0}),s.default.createElement(m.default,{module:{module:"search"},hasChild:!0,support:e.learn_more_button},s.default.createElement(d.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,l.translate)("Enhanced site-wide search, powered by Elasticsearch (Beta)")))):null}}));t.default=(0,c.connect)(function(e){return{siteAdminUrl:(0,_.getSiteAdminUrl)(e),sitePlan:(0,g.getSitePlan)(e),fetchingSiteData:(0,g.isFetchingSiteData)(e)}})(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}),t.VerificationServices=void 0;var a=n(399),o=r(a),i=n(142),s=r(i),c=n(524),l=n(834),u=r(l),d=n(952),p=r(d),f=n(837),h=n(869),m=n(871),_=r(m),M=n(899),g=r(M),v=n(887),b=r(v);t.VerificationServices=(0,h.ModuleSettingsForm)(s.default.createClass({displayName:"VerificationServices",activateVerificationTools:function(){return this.props.updateOptions({"verification-tools":!0})},render:function(){var e=this,t=this.props.getModule("verification-tools");return this.props.getOptionValue("verification-tools")?s.default.createElement(_.default,(0,o.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),s.default.createElement(g.default,{module:t,support:t.learn_more_button},s.default.createElement("p",null,(0,c.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:s.default.createElement("strong",null),support:s.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),s.default.createElement(f.FormFieldset,null,[{id:"google",label:(0,c.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,c.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,c.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,c.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return s.default.createElement(f.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},s.default.createElement("span",null,t.label),s.default.createElement(u.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}))})))):s.default.createElement(b.default,{callToAction:(0,c.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}))},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(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(952),d=r(u),p=n(452),f=r(p),h=n(724),m=r(h),_=n(837),M=n(869),g=n(864),v=n(871),b=r(v),y=n(899),A=r(y),E=n(398),T=t.Sitemaps=(0,M.ModuleSettingsForm)(s.default.createClass({displayName:"Sitemaps",trackSitemapUrl:function(){m.default.tracks.recordJetpackClick("sitemap-url-link")},trackSitemapNewsUrl:function(){m.default.tracks.recordJetpackClick("sitemap-news-url-link")},render:function(){var e=this.props.getModule("sitemaps"),t=(0,f.default)(e,["extra","sitemap_url"],""),n=(0,f.default)(e,["extra","news_sitemap_url"],"");return s.default.createElement(b.default,(0,o.default)({},this.props,{module:"sitemaps",hideButton:!0}),s.default.createElement(A.default,{module:{module:"sitemaps"},hasChild:!0,support:e.learn_more_button},s.default.createElement(g.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,l.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&s.default.createElement(_.FormFieldset,null,s.default.createElement("p",{className:"jp-form-setting-explanation"},(0,l.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),s.default.createElement("p",null,s.default.createElement(d.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),s.default.createElement("br",null),s.default.createElement(d.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):s.default.createElement(_.FormFieldset,null,s.default.createElement("p",{className:"jp-form-setting-explanation"},(0,l.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:s.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}));t.default=(0,c.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,E.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,E.getSiteAdminUrl)(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.Writing=void 0;var a=n(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(874),d=r(u),p=n(512),f=n(729),h=n(398),m=n(707),_=n(744),M=n(830),g=r(M),v=n(989),b=r(v),y=n(992),A=r(y),E=n(993),T=r(E),L=n(994),w=r(L),k=n(995),S=r(k),C=n(1008),O=t.Writing=s.default.createClass({displayName:"WritingSettings",render:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress"].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 s.default.createElement("div",null,s.default.createElement(g.default,null),this.props.isModuleFound("masterbar")&&s.default.createElement(C.Masterbar,(0,o.default)({connectUrl:this.props.connectUrl},e)),n&&s.default.createElement(b.default,(0,o.default)({},e,{userCanManageModules:this.props.userCanManageModules})),s.default.createElement(A.default,e),this.props.isModuleFound("custom-content-types")&&s.default.createElement(T.default,e),s.default.createElement(w.default,e),this.props.isModuleFound("post-by-email")&&r&&s.default.createElement(S.default,(0,o.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&s.default.createElement(d.default,null,(0,l.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}});t.default=(0,c.connect)(function(e){return{module:function(t){return(0,p.getModule)(e,t)},settings:(0,f.getSettings)(e),isDevMode:(0,m.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,m.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,h.userCanEditPosts)(e),isModuleActivated:function(t){return(0,p.isModuleActivated)(e,t)},isLinked:(0,m.isCurrentUserLinked)(e),userCanManageModules:(0,h.userCanManageModules)(e),isModuleFound:function(t){return(0,_.isModuleFound)(e,t)},connectUrl:(0,m.getConnectUrl)(e)}})(O)},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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(959),m=r(h),_=n(839),M=r(_),g=n(724),v=r(g),b=n(837),y=n(744),A=n(864),E=n(869),T=n(512),L=n(990),w=r(L),k=n(871),S=r(k),C=n(899),O=r(C),z=(0,E.ModuleSettingsForm)(l.default.createClass({displayName:"Composing",getInitialState:function(){return{onpublish:this.props.getOptionValue("onpublish","after-the-deadline"),onupdate:this.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:this.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":this.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:this.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":this.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":this.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":this.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":this.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":this.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":this.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":this.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":this.props.getOptionValue("Redundant Expression","after-the-deadline")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("after-the-deadline",e))},getToggle:function(e,t){var n=this;return l.default.createElement(f.default,{checked:this.state[e],disabled:!this.props.getOptionValue("after-the-deadline")||this.props.isUnavailableInDevMode("after-the-deadline")||this.props.isSavingAnyOption(["after-the-deadline",e]),onChange:function(){return n.updateOptions(e)}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},getAtdSettings:function(){var e=this.props.getOptionValue("ignored_phrases");return l.default.createElement(O.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("after-the-deadline")},l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null," ",(0,d.translate)("Proofreading")," "),l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("Automatically proofread content when: ")),this.getToggle("onpublish",(0,d.translate)("A post or page is first published")),this.getToggle("onupdate",(0,d.translate)("A post or page is updated"))),l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null," ",(0,d.translate)("Automatic Language Detection")),l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),this.getToggle("guess_lang",(0,d.translate)("Use automatically detected language to proofread posts and pages"))),l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null," ",(0,d.translate)("English Options")," "),l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("Enable proofreading for the following grammar and style rules: ")),this.getToggle("Bias Language",(0,d.translate)("Bias Language")),this.getToggle("Cliches",(0,d.translate)("Clichés")),this.getToggle("Complex Expression",(0,d.translate)("Complex Phrases")),this.getToggle("Diacritical Marks",(0,d.translate)("Diacritical Marks")),this.getToggle("Double Negative",(0,d.translate)("Double Negatives")),this.getToggle("Hidden Verbs",(0,d.translate)("Hidden Verbs")),this.getToggle("Jargon Language",(0,d.translate)("Jargon")),this.getToggle("Passive voice",(0,d.translate)("Passive Voice")),this.getToggle("Phrases to Avoid",(0,d.translate)("Phrases to Avoid")),this.getToggle("Redundant Expression",(0,d.translate)("Redundant Phrases"))),l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null,(0,d.translate)("Ignored Phrases")),l.default.createElement(w.default,{name:"ignored_phrases",disabled:!this.props.getOptionValue("after-the-deadline"),placeholder:(0,d.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:this.props.onOptionChange})))},updateFormStateByMarkdown:function(e){
33
- return this.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},trackOpenCard:function(){v.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},render: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"),i=l.default.createElement(O.default,{module:n},l.default.createElement(b.FormFieldset,null,l.default.createElement(A.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},l.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=l.default.createElement(m.default,{onOpen:this.trackOpenCard,className:(0,M.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?l.default.createElement(A.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},l.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):l.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return l.default.createElement(S.default,(0,o.default)({},this.props,{header:(0,d.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&i,e&&s)}}));t.default=(0,u.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,y.isModuleFound)(e,t)}}})(z),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(142),o=r(a),i=n(991),s=r(i),c=o.default.createClass({displayName:"JetpackTagsInput",getInitialState:function(){return{tags:this.props.value||[]}},handleChange:function(e){this.setState({tags:e}),this.props.onChange&&this.props.onChange({target:{name:this.props.name,value:e.join(",")}})},render:function(){return o.default.createElement(s.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}});t.default=c,e.exports=t.default},function(e,t,n){var r,a,o;!function(i,s){a=[e,t,n(142)],r=s,void 0!==(o="function"==typeof r?r.apply(t,a):r)&&(e.exports=o)}(0,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 i(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 s(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 c(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function l(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function u(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,o=e.classNameRemove,i=e.getTagDisplayValue,c=s(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return h.default.createElement("span",_({key:n},c),i(t),!r&&h.default.createElement("a",{className:o,onClick:function(e){return a(n)}}))}function d(e){var t=(e.addTag,s(e,["addTag"])),n=t.onChange,r=t.value,a=s(t,["onChange","value"]);return h.default.createElement("input",_({type:"text",onChange:n,value:r},a))}function p(e,t){return h.default.createElement("span",null,e,t)}function f(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){return e&&e.__esModule?e:{default:e}}(n),m=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}}(),_=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},M={className:"react-tagsinput-input",placeholder:"Add a tag"},g=function(e){function t(){a(this,t);var e=o(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 i(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?r({},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,o=n.onValidationReject,i=n.onlyUnique,s=n.maxTags,l=n.value;i&&(e=c(e),e=e.filter(function(e){return l.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-l.length,0);e=e.slice(0,d)}if(o&&u.length>0&&o(u),e.length>0){for(var p=l.concat(e),f=[],h=0;h<e.length;h++)f.push(l.length+h);return a(p,e,f),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 o=l(e),i=a(o).map(function(e){return t._makeTag(e)});this._addTags(i)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,o=this._tag(),i=""===o,s=e.keyCode,c=e.key,l=-1!==a.indexOf(s)||-1!==a.indexOf(c),u=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(l){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,i,s)&&e.preventDefault()}u&&n.length>0&&i&&(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,s(e,["onChange","onFocus","onBlur"])),n=_({},M,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,o=t.renderTag,i=t.renderInput,c=(t.addKeys,t.removeKeys,t.className),l=t.focusedClassName,u=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,s(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&&(c+=" "+l);var d=n.map(function(t,n){return o(_({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:u,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),p=i(_({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 h.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:c},a(d,p))}}]),t}(h.default.Component);g.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:d,renderTag:u,renderLayout:p,pasteSplit:f,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(709),m=r(h),_=n(872),M=n(837),g=n(864),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A),T=n(512),L=n(744),w=n(735),k=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"Media",getInitialState:function(){return{carousel_display_exif:this.props.getOptionValue("carousel_display_exif","carousel")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("carousel",e))},toggleModule:function(e,t){"photon"===e?!1==!t?this.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):this.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):this.props.updateFormStateOptionValue(e,!t)},render:function(){var e=this,t=this.props.isModuleFound("photon"),n=this.props.isModuleFound("carousel"),r=this.props.isModuleFound("videopress");if(!n&&!t&&!r)return null;var a=this.props.module("photon"),i=this.props.module("carousel"),s=this.props.getOptionValue("carousel"),c=this.props.module("videopress"),u=(0,_.getPlanClass)(this.props.sitePlan.product_slug),p=l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:a},l.default.createElement(g.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},l.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description)),l.default.createElement(M.FormFieldset,null,l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("Must be enabled to use tiled galleries.")))),h=l.default.createElement(E.default,{module:{module:"carousel"},hasChild:!0,support:i.learn_more_button},l.default.createElement(g.ModuleToggle,{slug:"carousel",activated:s,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},i.description)),l.default.createElement(M.FormFieldset,null,l.default.createElement(f.default,{checked:this.state.carousel_display_exif,disabled:!s||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:function(){return e.updateOptions("carousel_display_exif")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Show photo metadata (Exif) in carousel, when available"))),l.default.createElement(M.FormLabel,null,l.default.createElement(M.FormLegend,{className:"jp-form-label-wide"},(0,d.translate)("Color scheme")),l.default.createElement(M.FormSelect,(0,o.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!s||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),v=(0,m.default)(["is-premium-plan","is-business-plan"],u)&&l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:c},l.default.createElement(g.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},c.description)));return l.default.createElement(y.default,(0,o.default)({},this.props,{header:(0,d.translate)("Media"),hideButton:!n,feature:_.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),t&&p,n&&h,r&&v)}}));t.default=(0,u.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)},sitePlan:(0,w.getSitePlan)(e)}})(k),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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(837),m=n(869),_=n(512),M=n(744),g=n(871),v=r(g),b=n(899),y=r(b),A=(0,m.ModuleSettingsForm)(l.default.createClass({displayName:"CustomContentTypes",getInitialState:function(){return{testimonial:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:this.props.getOptionValue("jetpack_portfolio","custom-content-types")}},updateCPTs:function(e){var t="testimonial"===e?!(!this.state.testimonial||this.state.portfolio):!(!this.state.portfolio||this.state.testimonial);this.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),this.setState((0,s.default)({},e,!this.state[e]))},linkIfActiveCPT:function(e){return this.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?l.default.createElement("a",{href:this.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):l.default.createElement("span",null)},render:function(){var e=this;if(!this.props.isModuleFound("custom-content-types"))return null;var t=this.props.module("custom-content-types");return l.default.createElement(v.default,(0,o.default)({},this.props,{module:"custom-content-types",hideButton:!0}),l.default.createElement(y.default,{hasChild:!0,module:t,support:t.learn_more_button},l.default.createElement(f.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:function(){return e.updateCPTs("testimonial")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Testimonials"))),l.default.createElement(h.FormFieldset,null,l.default.createElement("p",{className:"jp-form-setting-explanation"},(0,d.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")}}))),l.default.createElement(f.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:function(){return e.updateCPTs("portfolio")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Portfolios"))),l.default.createElement(h.FormFieldset,null,l.default.createElement("p",{className:"jp-form-setting-explanation"},(0,d.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.default=(0,u.connect)(function(e){return{module:function(t){return(0,_.getModule)(e,t)},isModuleFound:function(t){return(0,M.isModuleFound)(e,t)}}})(A),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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(724),m=r(h),_=n(837),M=n(864),g=n(512),v=n(398),b=n(744),y=n(869),A=n(871),E=r(A),T=n(899),L=r(T),w=(0,y.ModuleSettingsForm)(l.default.createClass({displayName:"ThemeEnhancements",getInitialState:function(){return{infinite_mode:this.getInfiniteMode(),wp_mobile_excerpt:this.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:this.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:this.props.getOptionValue("wp_mobile_app_promos","minileven")}},getInfiniteMode:function(){return this.props.getOptionValue("infinite-scroll")?this.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},updateInfiniteMode:function(e){this.setState({infinite_mode:e},this.prepareOptionsToUpdate)},prepareOptionsToUpdate:function(){"infinite_default"===this.state.infinite_mode?this.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==this.state.infinite_mode&&"infinite_button"!==this.state.infinite_mode||this.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===this.state.infinite_mode})},updateOptions:function(e,t){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption(t,e))},trackLearnMoreIS:function(){m.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},render:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");return t||n?l.default.createElement(E.default,(0,o.default)({},this.props,{header:(0,d.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),t&&[(0,o.default)({},this.props.getModule("infinite-scroll"),{radios:[{key:"infinite_default",label:(0,d.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,d.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,d.translate)("Load more posts as the reader scrolls down")}]})].map(function(t){return e.props.isModuleFound(t.module)?l.default.createElement(L.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},l.default.createElement(_.FormLegend,{className:"jp-form-label-wide"},t.name),e.props.isInfiniteScrollSupported?t.radios.map(function(n){return l.default.createElement(_.FormLabel,{key:t.module+"_"+n.key},l.default.createElement("input",{type:"radio",name:"infinite_mode",value:n.key,checked:n.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([t.module,n.key]),onChange:function(){return e.updateInfiniteMode(n.key)}}),l.default.createElement("span",{className:"jp-form-toggle-explanation"},n.label))}):l.default.createElement("span",null,(0,d.translate)("Theme support required.")+" ",l.default.createElement("a",{onClick:e.trackLearnMoreIS,href:t.learn_more_button+"#theme",title:(0,d.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,d.translate)("Learn more")))):null}),n&&[(0,o.default)({},this.props.getModule("minileven"),{checkboxes:[{key:"wp_mobile_excerpt",label:(0,d.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,d.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,d.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}]})].map(function(t){var n=e.props.getOptionValue(t.module);return e.props.isModuleFound(t.module)?l.default.createElement(L.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},l.default.createElement(M.ModuleToggle,{slug:t.module,activated:n,toggling:e.props.isSavingAnyOption(t.module),toggleModule:e.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),l.default.createElement(_.FormFieldset,null,t.checkboxes.map(function(r){return l.default.createElement(f.default,{checked:e.state[r.key],disabled:!n||e.props.isSavingAnyOption([t.module,r.key]),onChange:function(){return e.updateOptions(r.key,t.module)},key:t.module+"_"+r.key},l.default.createElement("span",{className:"jp-form-toggle-explanation"},r.label))}))):null})):null}}));t.default=(0,u.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},isInfiniteScrollSupported:(0,v.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,b.isModuleFound)(e,t)}}})(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});var a=n(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(755),d=r(u),p=n(996),f=r(p),h=n(874),m=r(h),_=n(724),M=r(_),g=n(837),v=n(864),b=n(512),y=n(744),A=n(869),E=n(871),T=r(E),L=n(899),w=r(L),k=(0,A.ModuleSettingsForm)(s.default.createClass({displayName:"PostByEmail",regeneratePostByEmailAddress:function(e){M.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),this.props.regeneratePostByEmailAddress()},address:function(){var e=this.props.getOptionValue("post_by_email_address");return!1===e||"1"===e?"":e},render: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 s.default.createElement(T.default,(0,o.default)({},this.props,{module:"post-by-email",hideButton:!0}),s.default.createElement(w.default,{hasChild:!0,disableInDevMode:!0,module:e},this.props.userCanManageModules?s.default.createElement(v.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},s.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):s.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),s.default.createElement(g.FormFieldset,null,s.default.createElement(g.FormLabel,null,s.default.createElement(g.FormLegend,null,(0,l.translate)("Email Address")),s.default.createElement(f.default,{value:r,disabled:!t||n,copy:(0,l.translate)("Copy",{context:"verb"}),copied:(0,l.translate)("Copied!"),prompt:(0,l.translate)("Highlight and copy the following text to your clipboard:")})),s.default.createElement(d.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,l.translate)("Regenerate address"):(0,l.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&s.default.createElement(m.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,l.translate)("Connect your user account to WordPress.com to use this feature")))}}));t.default=(0,c.connect)(function(e){return{module:function(t){return(0,b.getModule)(e,t)},isModuleFound:function(t){return(0,y.isModuleFound)(e,t)}}})(k),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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(142),i=r(o),s=n(756),c=r(s),l=n(840),u=r(l),d=n(997),p=r(d),f=n(834),h=r(f);n(1006),t.default=i.default.createClass({displayName:"ClipboardButtonInput",propTypes:{value:o.PropTypes.string,disabled:o.PropTypes.bool,className:o.PropTypes.string,copied:o.PropTypes.string,copy:o.PropTypes.string,prompt:o.PropTypes.string},getInitialState:function(){return{isCopied:!1,disabled:!1}},getDefaultProps:function(){return{value:""}},componentWillUnmount:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout},showConfirmation:function(){var e=this;this.setState({isCopied:!0}),this.confirmationTimeout=setTimeout(function(){e.setState({isCopied:!1})},4e3)},render:function(){return i.default.createElement("span",{className:(0,c.default)("dops-clipboard-button-input",this.props.className)},i.default.createElement(h.default,a({},(0,u.default)(this.props,"className"),{type:"text",selectOnFocus:!0,readOnly:!0})),i.default.createElement(p.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))}}),e.exports=t.default},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(755),o=function(e){return e&&e.__esModule?e:{default:e}}(a),i=n(1),s=n(142),c=n(998),l=n(840),u=n(757),d=n(756);e.exports=s.createClass({displayName:"ClipboardButton",propTypes:{className:s.PropTypes.string,text:s.PropTypes.string,prompt:s.PropTypes.string,onCopy:s.PropTypes.func},getDefaultProps:function(){return{onCopy:u}},componentDidMount:function(){var e=this,t=i.findDOMNode(this.refs.button);this.clipboard=new c(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)},componentWillUnmount:function(){this.clipboard.destroy(),delete this.clipboard},displayPrompt:function(){window.prompt(this.props.prompt,this.props.text)},render:function(){var e=d("dops-clipboard-button",this.props.className);return s.createElement(o.default,r({ref:"button"},l(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}})},function(e,t,n){var r,a,o;!function(i,s){a=[e,n(999),n(1001),n(1002)],r=s,void 0!==(o="function"==typeof r?r.apply(t,a):r)&&(e.exports=o)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l=a(t),u=a(n),d=a(r),p="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},f=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){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),f(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"===p(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 l.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}(u.default);e.exports=h})},function(e,t,n){var r,a,o;!function(i,s){a=[e,n(1e3)],r=s,void 0!==(o="function"==typeof r?r.apply(t,a):r)&&(e.exports=o)}(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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return o(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(){
34
- 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=i})},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 o=0,i=r.length;o<i;o++)r[o].fn!==t&&r[o].fn._!==t&&a.push(r[o]);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 o(e,t,n);if(s.string(e))return i(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 o(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 i(e,t,n){return c(document.body,e,t,n)}var s=n(1003),c=n(1004);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,o){var i=a.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}function a(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1005);e.exports=r},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(869),A=n(871),E=r(A),T=n(899),L=r(T),w=n(864);t.Masterbar=(0,y.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,o.default)({},this.props,{header:(0,g.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"masterbar"},support:"https://jetpack.com/support/masterbar/"},M.default.createElement(w.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,g.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(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,g.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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(512),g=n(729),v=n(707),b=n(744),y=n(398),A=n(830),E=r(A),T=n(1010),L=n(1011),w=n(1012),k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.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},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(T.Publicize,e),n&&m.default.createElement(L.ShareButtons,e),r&&m.default.createElement(w.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,g.getSettings)(e),isDevMode:(0,v.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,v.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,b.isModuleFound)(e,t)},isLinked:(0,v.isCurrentUserLinked)(e),connectUrl:(0,v.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e)}})(k),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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(724),A=r(y),E=n(869),T=n(871),L=r(T),w=n(899),k=r(w),S=n(864);t.Publicize=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,i=this.props.getOptionValue("publicize");return M.default.createElement(L.default,(0,o.default)({},this.props,{header:(0,g.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"publicize"},support:"https://jetpack.com/support/publicize/"},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:i,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Automatically share your posts to social networks"))),i&&function(){if(!t)return n?M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,g.translate)("Connect your social media accounts")):M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,g.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.ShareButtons=void 0;var a=n(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(724),A=r(y),E=n(869),T=n(871),L=r(T),w=n(899),k=r(w),S=n(864);t.ShareButtons=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,i=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(L.default,(0,o.default)({},this.props,{header:(0,g.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"sharing"},support:"https://jetpack.com/support/sharing/"},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Add sharing buttons to your posts"))),s&&function(){return i?M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,g.translate)("Configure your sharing buttons")):t?M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,g.translate)("Configure your sharing buttons")):M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,g.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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A),T=n(864);t.Likes=(0,v.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,o.default)({},this.props,{header:(0,g.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(E.default,{disableInDevMode:!0,module:{module:"likes"},support:"https://jetpack.com/support/likes/"},M.default.createElement(T.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,g.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(517),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(663),b=r(v),y=n(709),A=r(y),E=n(524),T=n(888),L=r(T),w=n(869),k=n(512),S=n(744),C=n(871),O=r(C),z=n(899),N=r(z),P=n(398),D=n(707),x=t.SearchableModules=(0,w.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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;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","monitor","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,b.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,A.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(M.default.createElement(j,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(M.default.createElement(j,{key:a,moduleData:n})):r.push(M.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,E.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.props.updateOptions.bind(null,(0,o.default)({},n.module,!0)),title:n.name}))}}),M.default.createElement("div",null,r)}}]),t}(_.Component));x.propTypes={searchTerm:M.default.PropTypes.string},x.defaultProps={searchTerm:""};var j=function(e){function t(){return(0,l.default)(this,t),(0,f.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 M.default.createElement(O.default,{header:e.name,action:e.module,hideButton:!0},M.default.createElement(N.default,{disableInDevMode:t,module:{module:e.module},support:e.learn_more_button},e.description))}}]),t}(_.Component);t.default=(0,g.connect)(function(e){return{modules:(0,k.getModules)(e),isModuleFound:function(t){return(0,S.isModuleFound)(e,t)},canManageModules:(0,P.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,D.isUnavailableInDevMode)(e,t)},isDevMode:(0,D.isDevMode)(e)}})(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(142),o=r(a),i=n(154),s=n(874),c=r(s),l=n(524),u=n(1015),d=r(u),p=n(707),f=n(983),h=o.default.createClass({displayName:"JetpackConnect",render:function(){var e=this.props.connectUrl+"&from=new-account-button";return o.default.createElement("div",{className:"jp-jetpack-connect__container"},o.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,l.translate)("Welcome to Jetpack")),o.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Please connect to or create a WordPress.com account to start using Jetpack. This will enable powerful security, traffic, and customization services.")),o.default.createElement(d.default,{from:"landing-page-top"},o.default.createElement("p",null,o.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,l.translate)("No account? Create one for free"))))),o.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},o.default.createElement("header",{className:"jp-jetpack-connect__header"},o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"Drive more traffic to your site with Jetpack"},(0,l.translate)("Drive more traffic to your site")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack has many traffic and engagement tools to help you get more viewers to your site and keep them there.")),o.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},o.default.createElement("img",{src:f.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:"Decoration: Jetpack clouds",className:"jp-jetpack-connect__header-img"})," ",o.default.createElement("img",{src:f.imagePath+"stat-bars.svg",width:"400",alt:"Decoration: Jetpack bar graph",className:"jp-jetpack-connect__header-img"}))),o.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Publicize feature",className:"dops-section-header__label"},(0,l.translate)("Publicize",{context:"Header. Noun: Publicize is a module of Jetpack"})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Automated social marketing"},(0,l.translate)("Automated social marketing.")),o.default.createElement("p",null,(0,l.translate)("Use Publicize to automatically share your posts with friends, followers, and the world.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Sharing and Like features",className:"dops-section-header__label"},(0,l.translate)("Sharing & Like Buttons")),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Build a community"},(0,l.translate)("Build a community.")),o.default.createElement("p",null,(0,l.translate)("Give visitors the tools to share and subscribe to your content.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Related Posts feature",className:"dops-section-header__label"},(0,l.translate)("Related Posts",{context:"Header. Noun: Related posts is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Increase page views"},(0,l.translate)("Increase page views.")),o.default.createElement("p",null,(0,l.translate)("Keep visitors engaged by giving them more to share and read with Related Posts."))))),o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"Track your growth"},(0,l.translate)("Track your growth")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack harnesses the power of WordPress.com to show you detailed insights about your visitors, what they’re reading, and where they’re coming from.")),o.default.createElement("img",{src:f.imagePath+"stats-example-med.png",srcSet:f.imagePath+"stats-example-sm.png 445w, "+f.imagePath+"stats-example-med.png 770w, "+f.imagePath+"stats-example-lrg.png 1200w",className:"jp-jetpack-connect__feature-image",alt:"Jetpack statistics and traffic insights graph"}))),o.default.createElement(c.default,{className:"jp-jetpack-connect__feature"},o.default.createElement("header",{className:"jp-jetpack-connect__header"},o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"Site security and peace of mind with Jetpack"},(0,l.translate)("Site security and peace of mind")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack blocks malicious log in attempts, lets you know if your site goes down, and can automatically update your plugins, so you don’t have to worry."))),o.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Protect feature",className:"dops-section-header__label"},(0,l.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Block site attacks"},(0,l.translate)("Block site attacks.")),o.default.createElement("p",null,(0,l.translate)("Gain peace of mind with Protect, the tool that has blocked billions of login attacks across millions of sites.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Monitor features",className:"dops-section-header__label"},(0,l.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Live site monitoring"},(0,l.translate)("Live site monitoring.")),o.default.createElement("p",null,(0,l.translate)("Stress less. Monitor will send you real-time alerts if your site ever goes down.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Manage feature",className:"dops-section-header__label"},(0,l.translate)("Manage",{context:"Header. Noun: Manage is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Automatic site updates"},(0,l.translate)("Automatic site updates.")),o.default.createElement("p",null,(0,l.translate)("Never fall behind on a security release or waste time updating multiple sites."))))))),o.default.createElement(c.default,{className:"jp-jetpack-connect__feature"},o.default.createElement("header",{className:"jp-jetpack-connect__header"},o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"lightning fast optimized images with Jetpack Photon"},(0,l.translate)("Lightning fast, optimized images")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous imagery super fast. Optimized for any device, and its completely free."))),o.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},o.default.createElement("img",{src:f.imagePath+"feature-photon-med.jpg",srcSet:f.imagePath+"feature-photon-sm.jpg 600w, "+f.imagePath+"feature-photon-med.jpg 770w, "+f.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:"Jetpacks photon serves up lightning fast, optimized images"}))),o.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.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.")),o.default.createElement(d.default,{from:"landing-page-bottom"},o.default.createElement("p",null,o.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,l.translate)("No account? Create one for free"))))))}});t.default=(0,i.connect)(function(e){return{connectUrl:(0,p.getConnectUrl)(e)}})(h),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.ConnectButton=void 0;var a=n(142),o=r(a),i=n(154),s=n(755),c=r(s),l=n(524),u=n(724),d=r(u),p=n(707),f=n(398),h=n(881),m=r(h),_=n(1016),M=r(_),g=t.ConnectButton=o.default.createClass({displayName:"ConnectButton",propTypes:{connectUser:o.default.PropTypes.bool,from:o.default.PropTypes.string,asLink:o.default.PropTypes.bool},getDefaultProps:function(){return{connectUser:!1,from:"",asLink:!1}},getInitialState:function(){return{showModal:!1}},handleOpenModal:function(e){d.default.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),this.toggleVisibility()},disconnectSite:function(){this.toggleVisibility(),this.props.disconnectSite()},toggleVisibility:function(){this.setState({showModal:!this.state.showModal})},renderUserButton:function(){if(this.props.isLinked)return o.default.createElement("div",null,o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,m.default)(this.props.unlinkUser),onClick:this.props.unlinkUser,disabled:this.props.isUnlinking},(0,l.translate)("Unlink me from WordPress.com")));var e=this.props.connectUrl;this.props.from&&(e+="&from="+this.props.from,e+="&additional-user");var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},n=(0,l.translate)("Link to WordPress.com");return this.props.asLink?o.default.createElement("a",t,n):o.default.createElement(c.default,t,n)},renderContent:function(){if(this.props.connectUser)return this.renderUserButton();if(this.props.isSiteConnected)return o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,m.default)(this.handleOpenModal),onClick:this.handleOpenModal,disabled:this.props.isDisconnecting},(0,l.translate)("Manage site connection"));var e=this.props.connectUrl;this.props.from&&(e+="&from="+this.props.from);var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},n=(0,l.translate)("Connect Jetpack");return this.props.asLink?o.default.createElement("a",t,n):o.default.createElement(c.default,t,n)},render:function(){return o.default.createElement("div",null,this.renderContent(),this.props.children,!this.props.isSiteConnected&&o.default.createElement("p",{className:"jp-banner__tos-blurb"},(0,l.translate)("By connecting your site you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com",{components:{tosLink:o.default.createElement("a",{href:"https://wordpress.com/tos",rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:o.default.createElement("a",{href:"https://jetpack.com/support/what-data-does-jetpack-sync",rel:"noopener noreferrer",target:"_blank"})}})),o.default.createElement(M.default,{show:this.state.showModal,toggleModal:this.toggleVisibility,disconnectSite:this.disconnectSite}))}});t.default=(0,i.connect)(function(e){return{siteRawUrl:(0,f.getSiteRawUrl)(e),isSiteConnected:(0,p.getSiteConnectionStatus)(e),isDisconnecting:(0,p.isDisconnectingSite)(e),fetchingConnectUrl:(0,p.isFetchingConnectUrl)(e),connectUrl:(0,p.getConnectUrl)(e),isLinked:(0,p.isCurrentUserLinked)(e),isUnlinking:(0,p.isUnlinkingUser)(e)}},function(e){return{disconnectSite:function(){return e((0,p.disconnectSite)())},unlinkUser:function(){return e((0,p.unlinkUser)())}}})(g)},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(142),o=r(a),i=n(154),s=n(524),c=n(755),l=r(c),u=n(874),d=r(u),p=n(792),f=r(p),h=n(1017),m=r(h),_=n(872),M=n(757),g=r(M),v=n(724),b=r(v),y=n(735),A=n(707),E=n(398),T=t.JetpackDisconnectDialog=o.default.createClass({displayName:"JetpackDisconnectDialog",propTypes:{show:o.default.PropTypes.bool,toggleModal:o.default.PropTypes.func,disconnectSite:o.default.PropTypes.func},getDefaultProps:function(){return{show:!1,toggleModal:g.default,disconnectSite:g.default}},getPlanFeatures:function(){switch((0,_.getPlanClass)(this.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,s.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,s.translate)("Priority support"),icon:"chat"},{text:(0,s.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,s.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,s.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,s.translate)("Priority support"),icon:"chat"},{text:(0,s.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,s.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,s.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,s.translate)("Priority support"),icon:"chat"},{text:(0,s.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,s.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,s.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,s.translate)("Brute force attack protection and uptime monitoring"),icon:"lock"},{text:(0,s.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},closeModal:function(){b.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),this.props.toggleModal()},disconnectSiteTrack:function(){b.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),this.props.disconnectSite()},render:function(){return this.props.show&&o.default.createElement(m.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},o.default.createElement(d.default,{className:"jp-connection-settings__modal-body"},o.default.createElement("h2",null,(0,
35
- s.translate)("Disconnect Jetpack")),o.default.createElement("h4",null,(0,s.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace("::","/")}})),o.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return o.default.createElement("li",{key:"feature_"+e.icon},o.default.createElement(f.default,{icon:e.icon,size:18}),e.text)})),o.default.createElement("div",{className:"jp-connection-settings__modal-actions"},o.default.createElement(l.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,s.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),o.default.createElement(l.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,s.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),o.default.createElement("p",{className:"jp-connection-settings__modal-more"},o.default.createElement("a",{href:"https://jetpack.com/features/"},(0,s.translate)("Read more about Jetpack benefits")))))}});t.default=(0,i.connect)(function(e){return{siteRawUrl:(0,E.getSiteRawUrl)(e),isDisconnecting:(0,A.isDisconnectingSite)(e),sitePlan:(0,y.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,A.disconnectSite)())}}})(T)},function(e,t,n){"use strict";function r(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 a(){p=!0}function o(){p=!1}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(142),c=n(1),l=n(756),u=n(276),d=n(1018),p=!1;n(1020);var f=s.createClass({displayName:"Modal",propTypes:{style:s.PropTypes.object,width:s.PropTypes.oneOf(["wide","medium","narrow"]),className:s.PropTypes.string,title:s.PropTypes.string,initialFocus:s.PropTypes.string,onRequestClose:s.PropTypes.func},getInitialState:function(){return{overlayMouseDown:!1}},getDefaultProps:function(){return{style:{}}},componentDidMount:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{d.activate(c.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}},componentWillUnmount:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{d.deactivate()}catch(e){}},handleEscapeKey:function(e){27===e.keyCode&&this.maybeClose()},maybeClose:function(){this.props.onRequestClose&&!p&&this.props.onRequestClose()},handleMouseDownOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.setState({overlayMouseDown:!0})},handleClickOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.state.overlayMouseDown&&this.props.onRequestClose&&!p&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())},handleMouseEventModal:function(e){e.stopPropagation()},render:function(){var e,t,n=this.props,a=n.style,o=n.className,c=n.width,d=n.title,p=r(n,["style","className","width","title"]);switch(c){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}return t=u({},a,e),s.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},s.createElement("div",i({className:l("dops-modal",o),style:t,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":d},p),this.props.children))}});f.preventClose=a,f.allowClose=o,e.exports=f},function(e,t,n){function r(e,t){p&&a(),p=!0,l="string"==typeof e?document.querySelector(e):e,f=t||{},d=document.activeElement,c(),function(){var e;if(!f.initialFocus){if(!(e=u[0]))throw new Error("You can't have a focus-trap without at least one focusable element");return e}if(!(e="string"==typeof f.initialFocus?document.querySelector(f.initialFocus):f.initialFocus))throw new Error("The `initialFocus` selector you passed referred to no known node");return e}().focus(),document.addEventListener("focus",i,!0),document.addEventListener("click",o,!0),document.addEventListener("touchend",o,!0),document.addEventListener("keydown",s,!0)}function a(){p&&(p=!1,document.removeEventListener("focus",i,!0),document.removeEventListener("click",o,!0),document.removeEventListener("touchend",o,!0),document.removeEventListener("keydown",s,!0),f.onDeactivate&&f.onDeactivate(),setTimeout(function(){d&&d.focus&&d.focus()},0))}function o(e){l.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function i(e){c(),l.contains(e.target)||u[0].focus()}function s(e){if("Tab"===e.key||9===e.keyCode){e.preventDefault(),c();var t=u.indexOf(e.target),n=u[u.length-1],r=u[0];if(e.shiftKey)return e.target===r?void n.focus():void u[t-1].focus(0);if(e.target===n)return void r.focus();u[t+1].focus()}"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||a()}function c(){u=h(l)}var l,u,d,p,f,h=n(1019);e.exports={activate:r,deactivate:a}},function(e,t){function n(){function e(n,r){if(n===document.documentElement)return!1;for(var a=0,o=t.length;a<o;a++)if(t[a][0]===n)return t[a][1];r=r||window.getComputedStyle(n);var i=!1;return"none"===r.display?i=!0:n.parentNode&&(i=e(n.parentNode)),t.push([n,i]),i}var t=[];return function(t){if(t===document.documentElement)return!1;var n=window.getComputedStyle(t);return!!e(t,n)||"hidden"===n.visibility}}e.exports=function(e){for(var t,r,a=[],o=[],i=n(),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s),l=0,u=c.length;l<u;l++)t=c[l],(r=parseInt(t.getAttribute("tabindex"),10)||t.tabIndex)<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||i(t)||(0===r?a.push(t):o.push({index:l,tabIndex:r,node:t}));var d=o.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(d,a),d}},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 o=n(142),i=r(o),s=n(166),c=n(154),l=n(874),u=r(l),d=n(755),p=r(d),f=n(524),h=n(792),m=r(h),_=n(721),M=n(512),g=n(881),v=r(g),b=n(983),y=i.default.createClass({displayName:"JumpStart",activateButton:function(){return i.default.createElement(p.default,{primary:!0,onClick:this.props.jumpStartActivate,disabled:this.props.isJumpstarting},this.props.isJumpstarting?(0,f.translate)("Activating recommended features…"):(0,f.translate)("Activate recommended features"))},render:function(){var e=this.props.jumpstartFeatures.map(function(e){return i.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},i.default.createElement("div",{className:"jp-jumpstart__feature-content"},i.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),i.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return i.default.createElement("div",{className:"jp-jumpstart-full__container"},i.default.createElement("img",{src:b.imagePath+"stars-full.svg",width:"60",height:"60",alt:(0,f.translate)("Stars"),className:"jp-jumpstart-full__svg-stars"}),i.default.createElement("img",{src:b.imagePath+"jupiter.svg",width:"50",height:"100",alt:(0,f.translate)("Jupiter"),className:"jp-jumpstart-full__svg-jupiter"}),i.default.createElement(m.default,{icon:"cross-small",className:"jp-jumpstart-full__dismiss",tabIndex:"0",onKeyDown:(0,v.default)(this.props.jumpStartSkip),onClick:this.props.jumpStartSkip}),i.default.createElement("div",{className:"jp-jumpstart"},i.default.createElement("img",{src:b.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,f.translate)("Person with laptop")}),i.default.createElement("h1",{className:"jp-jumpstart__title"},(0,f.translate)("Your Jetpack site is ready to go!")),i.default.createElement(u.default,{className:"jp-jumpstart__description"},i.default.createElement("p",null,(0,f.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."))),i.default.createElement(u.default,null,this.activateButton()),i.default.createElement(u.default,null,i.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,f.translate)("Jetpack's recommended features include:")),i.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),i.default.createElement("p",{className:"jp-jumpstart__note"},(0,f.translate)("Features can be activated or deactivated at any time.")))))}});t.default=(0,c.connect)(function(e){return{isJumpstarting:(0,_.isJumpstarting)(e),jumpstartFeatures:(0,M.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,s.bindActionCreators)({jumpStartActivate:_.jumpStartActivate,jumpStartSkip:_.jumpStartSkip},e)})(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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(724),y=r(b),A=n(869),E=n(1024),T=r(E),L=n(1025),w=r(L),k=n(1040),S=r(k),C=n(1043),O=r(C),z=n(1044),N=r(z),P=n(1045),D=r(P),x=n(1047),j=r(x),R=n(1048),Y=r(R),W=n(1050),q=r(W),I=n(1051),B=r(I),U=n(827),H=r(U),F=n(830),X=r(F),V=n(398),J=n(707),K=function(e){function t(){return(0,l.default)(this,t),(0,f.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={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},n=function(){return y.default.tracks.recordJetpackClick("aag_manage_security_wpcom")},r=M.default.createElement(T.default,{label:(0,v.translate)("Security"),settingsPath:this.props.userCanManageModules&&"#security",externalLink:this.props.isDevMode||!this.props.userCanManageModules?"":(0,v.translate)("Manage security on WordPress.com"),externalLinkPath:this.props.isDevMode?"":"https://wordpress.com/settings/security/"+this.props.siteRawUrl,externalLinkClick:n}),a=M.default.createElement("div",null,M.default.createElement(T.default,{label:(0,v.translate)("Connections")}),M.default.createElement(B.default,null));if(this.props.userCanManageModules)return M.default.createElement("div",{className:"jp-at-a-glance"},M.default.createElement(H.default,null),M.default.createElement(X.default,null),M.default.createElement(w.default,(0,o.default)({},e,t)),r,M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(S.default,e)),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement(N.default,(0,o.default)({},e,{siteRawUrl:this.props.siteRawUrl})))),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(j.default,(0,o.default)({},e,{siteRawUrl:this.props.siteRawUrl}))),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement(O.default,e))),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(D.default,t)),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement(Y.default,(0,o.default)({},e,t)))),M.default.createElement(T.default,{label:(0,v.translate)("Performance")}),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(q.default,e))),a);var i="";this.props.userCanViewStats&&(i=M.default.createElement(w.default,(0,o.default)({},e,t)));var s="";return this.props.getOptionValue("protect")&&(s=M.default.createElement(S.default,e)),this.props.userIsSubscriber?M.default.createElement("div",null,i,a):M.default.createElement("div",null,i,this.props.getOptionValue("protect")&&r,s,a)}}]),t}(_.Component);t.default=(0,g.connect)(function(e){return{userCanManageModules:(0,V.userCanManageModules)(e),userCanViewStats:(0,V.userCanViewStats)(e),userIsSubscriber:(0,V.userIsSubscriber)(e),isDevMode:(0,J.isDevMode)(e)}})((0,A.ModuleSettingsForm)(K)),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.DashSectionHeader=void 0;var a=n(142),o=r(a),i=n(839),s=r(i),c=n(792),l=r(c),u=n(524),d=n(724),p=r(d),f=t.DashSectionHeader=o.default.createClass({displayName:"DashSectionHeader",propTypes:{label:o.default.PropTypes.string.isRequired,settingsPath:o.default.PropTypes.string,externalLinkPath:o.default.PropTypes.string,externalLink:o.default.PropTypes.string,externalLinkClick:o.default.PropTypes.func},getDefaultProps:function(){return{label:"",settingsPath:"",externalLinkPath:"",externalLink:""}},trackCogClick:function(){p.default.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})},render:function(){var e=void 0,t=void 0,n=void 0,r=(0,s.default)(this.props.className,"jp-dash-section-header");return this.props.settingsPath&&(e=o.default.createElement("a",{className:"jp-dash-section-header__settings",href:this.props.settingsPath},o.default.createElement("span",{className:"screen-reader-text"},(0,u.translate)("Settings",{context:"Noun. Displayed to screen readers."})),o.default.createElement(l.default,{onClick:this.trackCogClick,icon:"cog",size:16}))),this.props.externalLink&&(t=o.default.createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(n=o.default.createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),o.default.createElement("div",{className:r},o.default.createElement("div",{className:"jp-dash-section-header__label"},o.default.createElement("h2",{className:"jp-dash-section-header__name"},this.props.label),e),t,n)}});t.default=f},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(514),o=r(a),i=n(320),s=r(i),c=n(493),l=r(c),u=n(497),d=r(u),p=n(831),f=r(p),h=n(498),m=r(h),_=n(499),M=r(_),g=n(142),v=r(g),b=n(663),y=r(b),A=n(452),E=r(A),T=n(874),L=r(T),w=n(1026),k=r(w),S=n(154),C=n(1024),O=r(C),z=n(755),N=r(z),P=n(789),D=r(P),x=n(524),j=n(724),R=r(j),Y=n(709),W=r(Y),q=n(983),I=n(707),B=n(398),U=n(1038),H=r(U),F=n(1039),X=r(F),V=n(466),J=n(512),K=n(729),G=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,M.default)(t,e),(0,f.default)(t,[{key:"barClick",value:function(e){e.data.link&&(R.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,s.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,y.default)(t.statsData[e].data,function(a){var o=a[1],i=a[0],s="",c="";r+=o,"day"===e?(s=(0,x.moment)(i).format("MMM D"),c=(0,x.moment)(i).format("MMMM Do")):"week"===e?(i=i.replace(/W/g,"-"),s=(0,x.moment)(i).format("MMM D"),c=(0,x.translate)("Week of %(date)s",{args:{date:(0,x.moment)(i).format("MMMM Do")}})):(s=(0,x.moment)(i).format("MMM"),c=(0,x.moment)(i).format("MMMM, YYYY")),n.push({label:s,value:o,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+i},tooltipData:[{label:c,value:(0,x.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,x.numberFormat)(o)}}),className:"tooltip class"},{label:(0,x.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 v.default.createElement("div",null,v.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},v.default.createElement(k.default,{data:e,barClick:this.barClick}),0<e.length?"":v.default.createElement(D.default,null)),v.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},v.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 v.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},v.default.createElement("img",{src:q.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,x.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),v.default.createElement("p",null,(0,x.translate)("Hello there! Your stats have been activated."),v.default.createElement("br",null),(0,x.translate)("Just give us a little time to collect data so we can display it for you here.")),v.default.createElement(N.default,{onClick:t,primary:!0},(0,x.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 v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},v.default.createElement("span",null,(0,x.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:v.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,o=r.length>0&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return v.default.createElement("div",{className:"jp-at-a-glance__stats-container"},o?this.renderEmptyStatsCard():this.renderStatsChart(r))}return v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},v.default.createElement("img",{src:q.imagePath+"stats.svg",width:"60",height:"60",alt:(0,x.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,x.translate)("Unavailable in Dev Mode"):(0,x.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:v.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:v.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),this.props.isDevMode?"":v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},v.default.createElement(N.default,{onClick:t,primary:!0},(0,x.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this,t=function(){R.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){R.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){R.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};if(this.props.getOptionValue("stats")&&!this.statsErrors())return v.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},v.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},v.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,x.translate)("Days"))),v.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},v.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,x.translate)("Weeks"))),v.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},v.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,x.translate)("Months"))))}},{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(){var e=(0,o.default)(this.props.moduleList);if(!(0,W.default)(e,"stats"))return null;var t=this.props.activeTab();return v.default.createElement("div",null,v.default.createElement(H.default,{range:t}),v.default.createElement(O.default,{label:(0,x.translate)("Site Stats")},this.maybeShowStatsTabs()),v.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(g.Component);G.propTypes={isDevMode:v.default.PropTypes.bool.isRequired,siteRawUrl:v.default.PropTypes.string.isRequired,siteAdminUrl:v.default.PropTypes.string.isRequired,statsData:v.default.PropTypes.any.isRequired},t.default=(0,S.connect)(function(e){return{moduleList:(0,J.getModules)(e),activeTab:function(){return(0,V.getActiveStatsTab)(e)},isDevMode:(0,I.isDevMode)(e),isLinked:(0,I.isCurrentUserLinked)(e),connectUrl:(0,I.getConnectUrl)(e),statsData:"N/A"!==(0,V.getStatsData)(e)?(0,V.getStatsData)(e):(0,B.getInitialStateStatsData)(e),isEmptyStatsCardDismissed:(0,K.emptyStatsCardDismissed)(e)}},function(e){return{switchView:function(t){return e((0,V.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,V.fetchStatsData)(t))}}})(G),e.exports=t.default},function(e,t,n){"use strict";var r=n(142),a=n(757),o=n(1027),i=n(1028),s=n(1035);n(1036),e.exports=r.createClass({displayName:"ModuleChart",propTypes:{loading:r.PropTypes.bool,data:r.PropTypes.array,minTouchBarWidth:r.PropTypes.number,minBarWidth:r.PropTypes.number,barClick:r.PropTypes.func},getInitialState:function(){return{maxBars:100,width:650}},getDefaultProps:function(){return{minTouchBarWidth:42,minBarWidth:15,barClick:a}},componentDidMount:function(){this.resize=o(this.resize,400),window.addEventListener("resize",this.resize),this.resize()},componentWillUnmount:function(){window.removeEventListener("resize",this.resize)},componentWillReceiveProps:function(e){this.props.loading&&!e.loading&&this.resize()},resize:function(){if(this.isMounted()){var e,t=this.refs.chart,n=t.clientWidth-82;s.hasTouch()?(n=n<=0?350:n,e=Math.floor(n/this.props.minTouchBarWidth)):e=Math.floor(n/this.props.minBarWidth),this.setState({maxBars:e,width:n})}},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},getData:function(){var e=this.props.data;return e=e.slice(0-this.state.maxBars)},getValues:function(){var e=this.getData();return e=e.map(function(e){return e.value},this)},isEmptyChart:function(e){return e=e.filter(function(e){return e>0},this),0===e.length},render:function(){var e,t=this.getValues(),n=this.getYAxisMax(t),a=this.getData();return t.length&&this.isEmptyChart(t)&&(e=r.createElement("div",{className:"dops-chart__empty"},r.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),r.createElement("div",{ref:"chart",className:"dops-chart"},r.createElement("div",{className:"dops-chart__y-axis-markers"},r.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),r.createElement("div",{className:"dops-chart__y-axis"},r.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),r.createElement(i,{barClick:this.props.barClick,data:a,yAxisMax:n,chartWidth:this.state.width,isTouch:s.hasTouch()}),e)}})},function(e,t,n){function r(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),a(e,t,{leading:r,maxWait:t,trailing:s})}var a=n(769),o=n(283),i="Expected a function";e.exports=r},function(e,t,n){"use strict";var r=n(142),a=n(1029),o=n(1033);e.exports=r.createClass({displayName:"ModuleChartBarContainer",propTypes:{isTouch:r.PropTypes.bool,data:r.PropTypes.array,yAxisMax:r.PropTypes.number,width:r.PropTypes.number,barClick:r.PropTypes.func},buildBars:function(e){var t=this.props.data.length,n="bottom right",o=this.props.chartWidth,i=o/t;return this.props.data.map(function(s,c){var l=i*(c+1);return l+230>o&&l+i-230>0&&(n="bottom left"),r.createElement(a,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:n,className:s.className,clickHandler:this.props.barClick,data:s,max:e,count:t})},this)},render:function(){return r.createElement("div",null,r.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),r.createElement(o,{data:this.props.data,labelWidth:42}))}})},function(e,t,n){"use strict";var r=n(142),a=n(756),o=n(1030),i=n(792);e.exports=r.createClass({displayName:"ModuleChartBar",propTypes:{isTouch:r.PropTypes.bool,tooltipPosition:r.PropTypes.string,className:r.PropTypes.string,clickHandler:r.PropTypes.func,data:r.PropTypes.object.isRequired,max:r.PropTypes.number,count:r.PropTypes.number},getInitialState:function(){return{showPopover:!1}},buildSections:function(){var e,t,n,o,i,s=this.props.data.value,c=this.props.max,l=c?Math.ceil(s/c*1e4)/100:0,u=100-l,d=Math.max(1,Math.floor(u)),p=[],f=this.props.data.nestedValue,h={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===u&&!this.props.active};return e={height:d+"%"},p.push(r.createElement("div",{key:"spacer",className:a(h),style:e})),t={top:d+"%"},f&&(o=s?Math.ceil(f/s*1e4)/100:0,i={height:o+"%"},n=r.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:i})),p.push(r.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:t},n)),p.push(r.createElement("div",{key:"label",className:"dops-chart__bar-label"},this.props.label)),p},clickHandler:function(){"function"==typeof this.props.clickHandler&&this.props.clickHandler(this.props.data)},mouseEnter:function(){this.setState({showPopover:!0})},mouseLeave:function(){this.setState({showPopover:!1})},renderTooltip:function(){if(!this.props.data.tooltipData||!this.props.data.tooltipData.length||this.props.isTouch)return null;var e=this.props.data.tooltipData,t=e.map(function(e,t){var n,a=["module-content-list-item"];return e.icon&&(n=r.createElement(i,{icon:e.icon,size:18})),a.push(e.className),r.createElement("li",{key:t,className:a.join(" ")},r.createElement("span",{className:"dops-wrapper"},r.createElement("span",{className:"value"},e.value),r.createElement("span",{className:"label"},n,e.label)))});return r.createElement(o,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.refs&&this.refs.valueBar,isVisible:this.state.showPopover,position:this.props.tooltipPosition},r.createElement("ul",null,t))},render:function(){var e,t,n=this.props.count||1;return t={"dops-chart__bar":!0},this.props.className&&(t[this.props.className]=!0),e={width:1/n*100+"%"},r.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:a(t),style:e},this.buildSections(),r.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),r.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),r.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}(),c=n(142),l=r(c),u=n(756),d=r(u),p=n(901),f=r(p),h=n(786),m=r(h);n(1031);var _=function(){},M=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&m.default.isMobile())return null;var e=(0,d.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return l.default.createElement(f.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:_,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(c.Component);M.propTypes={autoPosition:c.PropTypes.bool,className:c.PropTypes.string,id:c.PropTypes.string,isVisible:c.PropTypes.bool,position:c.PropTypes.string,rootClassName:c.PropTypes.string,status:c.PropTypes.string,showDelay:c.PropTypes.number,showOnMobile:c.PropTypes.bool},M.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=M,e.exports=t.default},function(e,t){},,function(e,t,n){"use strict";var r=n(142),a=n(1027),o=n(1034);e.exports=r.createClass({displayName:"ModuleChartXAxis",propTypes:{labelWidth:r.PropTypes.number.isRequired,data:r.PropTypes.array.isRequired},getInitialState:function(){return{divisor:1,spacing:this.props.labelWidth}},componentDidMount:function(){this.resizeThrottled=a(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()},componentWillUnmount:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)},componentWillReceiveProps:function(e){this.resize(e)},resize:function(e){if(this.isMounted()){var t,n,r,a,o,i,s=this.props;t=this.refs.axis,!e||e instanceof Event||(s=e),t.style.overflow="hidden",n=t.clientWidth,t.style.overflow="visible",r=s.data.length||1,a=n/r,o=s.labelWidth,i=Math.ceil(o/a),this.setState({divisor:i,spacing:a})}},render:function(){var e,t=this.props.data;return e=t.map(function(e,n){var a,i=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,s=t.length-n-1;return s%this.state.divisor==0&&(a=r.createElement(o,{key:n,label:e.label,width:this.props.labelWidth,x:i})),a},this),r.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},e)}})},function(e,t,n){"use strict";var r=n(142);e.exports=r.createClass({displayName:"ModuleChartLabel",propTypes:{width:r.PropTypes.number.isRequired,x:r.PropTypes.number.isRequired,
36
- label:r.PropTypes.string.isRequired},render:function(){var e;return e={width:this.props.width+"px"},e.left=this.props.x+"px",r.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}})},function(e,t){"use strict";e.exports={hasTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(466),M=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){return null}}]),t}(h.Component);M.defaultProps={fetchStatsData:function(){}},t.default=(0,m.connect)(function(e){return{fetchStatsData:function(t){return(0,_.fetchStatsData)(e,t)},fetchingStatsData:(0,_.isFetchingStatsData)(e)}},function(e){return{fetchStatsData:function(t){return e((0,_.fetchStatsData)(t))}}})(M),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(320),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(755),v=r(g),b=n(724),y=r(b),A=n(874),E=r(A),T=n(524),L=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"statsBottom",value:function(){var e=void 0;return e="object"===(0,o.default)(this.props.statsData.general)?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"},[{viewsToday:e.views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){var e=this.statsBottom()[0],t=function(){return y.default.tracks.recordJetpackClick("view_detailed_stats")},n=function(){return y.default.tracks.recordJetpackClick("view_wpcom_stats")};return M.default.createElement("div",null,M.default.createElement("div",{className:"jp-at-a-glance__stats-summary"},M.default.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Views today",{comment:"Referring to a number of page views"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),M.default.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Best overall day",{comment:"Referring to a number of page views"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,T.translate)("%(number)s View","%(number)s Views",{count:e.bestDay.count,args:{number:(0,T.numberFormat)(e.bestDay.count)}})),M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,T.moment)(e.bestDay.day).format("MMMM Do, YYYY"))),M.default.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},M.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time views",{comment:"Referring to a number of page views"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,T.numberFormat)(e.allTime.views))),M.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time comments",{comment:"Referring to a number of comments"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,T.numberFormat)(e.allTime.comments))))),M.default.createElement("div",{className:"jp-at-a-glance__stats-cta"},M.default.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),M.default.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},(0,T.translate)("{{button}}View detailed stats{{/button}}",{components:{button:M.default.createElement(v.default,{onClick:t,href:this.props.siteAdminUrl+"admin.php?page=stats"})}}),this.props.isLinked&&(0,T.translate)("{{button}}View more stats on WordPress.com {{/button}}",{components:{button:M.default.createElement(v.default,{onClick:n,className:"is-primary",href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}}))),!this.props.isLinked&&M.default.createElement(E.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-connect"},(0,T.translate)("Connect your account to WordPress.com to view more stats")))}}]),t}(_.Component);L.propTypes={siteRawUrl:M.default.PropTypes.string.isRequired,siteAdminUrl:M.default.PropTypes.string.isRequired,statsData:M.default.PropTypes.object.isRequired,isLinked:M.default.PropTypes.bool.isRequired},L.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1},t.default=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});var a=n(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(1041),b=r(v),y=n(524),A=n(709),E=r(A),T=n(1042),L=r(T),w=n(512),k=n(466),S=n(707),C=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getContent",value:function(){var e=this,t=function(){return e.props.updateOptions({protect:!0})};if(this.props.getOptionValue("protect")){var n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?M.default.createElement(b.default,{label:"Protect",module:"protect",status:"is-working",className:"jp-dash-item__recently-activated"},M.default.createElement("div",{className:"jp-dash-item__recently-activated-lower"},M.default.createElement(L.default,null),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Jetpack is actively blocking malicious login attempts. Data will display here soon!")))):M.default.createElement(b.default,{label:"Protect",module:"protect",status:"is-working"},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.numberFormat)(n)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Total malicious attacks blocked on your site.")))}return M.default.createElement(b.default,{label:"Protect",module:"protect",className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,y.translate)("Unavailable in Dev Mode"):(0,y.translate)("{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:t})}})))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,E.default)(e,"protect")?M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(L.default,null),this.getContent()):null}}]),t}(_.Component);C.propTypes={isDevMode:M.default.PropTypes.bool.isRequired,protectCount:M.default.PropTypes.any.isRequired},t.default=(0,g.connect)(function(e){return{protectCount:(0,k.getProtectCount)(e),isDevMode:(0,S.isDevMode)(e),moduleList:(0,w.getModules)(e)}})(C),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.DashItem=void 0;var a=n(517),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(839),v=r(g),b=n(154),y=n(880),A=r(y),E=n(524),T=n(755),L=r(T),w=n(709),k=r(w),S=n(724),C=r(S),O=n(869),z=n(874),N=r(z),P=n(873),D=r(P),x=n(864),j=n(707),R=n(512),Y=n(879),W=r(Y),q=n(398),I=t.DashItem=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackMonitorSettingsClick",value:function(){C.default.tracks.recordJetpackClick({target:"monitor-settings",page:"aag"})}},{key:"render",value:function(){var e=this,t=void 0,n="",r=(0,v.default)(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":""),a=function(){return e.props.updateOptions((0,o.default)({},e.props.module,!e.props.getOptionValue(e.props.module)))},i=function(){C.default.tracks.recordJetpackClick({target:"paid-button",feature:e.props.module,page:"aag"})};return""!==this.props.module&&(t=(0,k.default)(["protect","photon","vaultpress","scan","backups","akismet"],this.props.module)&&this.props.isDevMode?"":M.default.createElement(x.ModuleToggle,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:a,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=M.default.createElement("a",{href:this.props.isDevMode?this.props.siteAdminUrl+"update-core.php":"https://wordpress.com/plugins/"+this.props.siteRawUrl},M.default.createElement(A.default,{showDismiss:!1,status:this.props.status,isCompact:!0},(0,E.translate)("Updates needed",{context:"Short warning message"})))),"is-working"===this.props.status&&(t=M.default.createElement("span",{className:"jp-dash-item__active-label"},(0,E.translate)("Active")))),"monitor"===this.props.module&&(t=!this.props.isDevMode&&this.props.getOptionValue(this.props.module)&&M.default.createElement(L.default,{onClick:this.trackMonitorSettingsClick,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl,compact:!0},(0,E.translate)("Settings")))),this.props.pro&&!this.props.isDevMode&&(n=M.default.createElement(L.default,{onClick:i,compact:!0,href:"#/plans"},(0,E.translate)("Paid",{context:"Short label appearing near a paid feature configuration block."})),t=M.default.createElement(W.default,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl})),M.default.createElement("div",{className:r},M.default.createElement(D.default,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),M.default.createElement(N.default,{className:"jp-dash-item__card",href:this.props.href},M.default.createElement("div",{className:"jp-dash-item__content"},this.props.children)))}}]),t}(_.Component);I.propTypes={label:M.default.PropTypes.string,status:M.default.PropTypes.string,statusText:M.default.PropTypes.string,disabled:M.default.PropTypes.bool,module:M.default.PropTypes.string,pro:M.default.PropTypes.bool},I.defaultProps={label:"",module:"",pro:!1},t.default=(0,b.connect)(function(e){return{getModule:function(t){return(0,R.getModule)(e,t)},isDevMode:(0,j.isDevMode)(e),userCanToggle:(0,q.userCanManageModules)(e),siteRawUrl:(0,q.getSiteRawUrl)(e),siteAdminUrl:(0,q.getSiteAdminUrl)(e)}})((0,O.ModuleSettingsForm)(I))},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(166),M=n(466),g=n(512),v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(h.Component);v.defaultProps={fetchProtectCount:function(){}},t.default=(0,m.connect)(function(e){return{fetchProtectCount:(0,M.fetchProtectCount)(),fetchingProtectData:(0,M.isFetchingProtectData)(e),isModuleActivated:function(t){return(0,g.isModuleActivated)(e,t)}}},function(e){return(0,_.bindActionCreators)({fetchProtectCount:M.fetchProtectCount},e)})(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(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(709),y=r(b),A=n(724),E=r(A),T=n(512),L=n(707),w=n(1041),k=r(w),S=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,v.translate)("Downtime Monitoring"),n=function(){E.default.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),e.props.updateOptions({monitor:!0})};return this.props.getOptionValue("monitor")?M.default.createElement(k.default,{label:t,module:"monitor",status:"is-working"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Jetpack is monitoring your site. If we think your site is down, you will receive an email."))):M.default.createElement(k.default,{label:t,module:"monitor",className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,v.translate)("Unavailable in Dev Mode."):(0,v.translate)("{{a}}Activate Monitor{{/a}} to receive notifications if your site goes down.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,y.default)(e,"monitor")?M.default.createElement("div",null,this.getContent()):null}}]),t}(_.Component);S.propTypes={isDevMode:M.default.PropTypes.bool.isRequired},t.default=(0,g.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(e)}})(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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(524),g=n(872),v=n(885),b=r(v),y=n(735),A=n(738),E=n(466),T=n(707),L=n(1041),w=r(L),k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,g.getPlanClass)(this.props.sitePlan.product_slug),n=(0,M.translate)("Security Scanning"),r=!1!==this.props.sitePlan,a=this.props.vaultPressData,o=this.props.isPluginInstalled("vaultpress/vaultpress.php")?"pro-inactive":"pro-uninstalled",i=void 0!==a.data&&void 0!==a.data.features&&void 0!==a.data.features.security&&a.data.features.security,s="is-premium-plan"===t,c="is-business-plan"===t;if(this.props.getOptionValue("vaultpress")){if("N/A"===a)return m.default.createElement(w.default,{label:n},m.default.createElement("p",{className:"jp-dash-item__description"},(0,M.translate)("Loading…")));if(i){var l=this.props.scanThreats;if(0!==l)return m.default.createElement(w.default,{label:n,module:"scan",pro:!0},m.default.createElement("h3",null,(0,M.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:l,args:{number:(0,M.numberFormat)(l)}})),m.default.createElement("p",{className:"jp-dash-item__description"},(0,M.translate)("{{a}}View details at VaultPress.com{{/a}}",{components:{a:m.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),m.default.createElement("br",null),(0,M.translate)("{{a}}Contact Support{{/a}}",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/support"})}})));if("success"===a.code)return m.default.createElement(w.default,{label:n,module:"scan",status:"is-working",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,M.translate)("No threats found, you're good to go!")))}}return m.default.createElement(w.default,{label:n,module:"scan",className:"jp-dash-item__is-inactive",status:r?o:"no-pro-uninstalled-or-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,M.translate)("Unavailable in Dev Mode."):function(){return e.props.fetchingSiteData?(0,M.translate)("Loading…"):s||c||i?(0,M.translate)("For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}}):(0,M.translate)("For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-scan&site="+e.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}})}()))}},{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(b.default,null),this.getContent())}}]),t}(h.Component);k.propTypes={vaultPressData:m.default.PropTypes.any.isRequired,scanThreats:m.default.PropTypes.any.isRequired,isDevMode:m.default.PropTypes.bool.isRequired,siteRawUrl:m.default.PropTypes.string.isRequired,sitePlan:m.default.PropTypes.object.isRequired},t.default=(0,_.connect)(function(e){return{vaultPressData:(0,E.getVaultPressData)(e),scanThreats:(0,E.getVaultPressScanThreatCount)(e),sitePlan:(0,y.getSitePlan)(e),isDevMode:(0,T.isDevMode)(e),isPluginInstalled:function(t){return(0,A.isPluginInstalled)(e,t)},fetchingSiteData:(0,y.isFetchingSiteData)(e)}})(k),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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(1041),g=r(M),v=n(524),b=n(1046),y=r(b),A=n(466),E=n(735),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getContent",value:function(){var e=this.props.akismetData,t=this.props.siteAdminUrl+"admin.php?page=akismet-key-config",n=(0,v.translate)("Spam Protection"),r=!1!==this.props.sitePlan;return"N/A"===e?m.default.createElement(g.default,{label:n,module:"akismet",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Loading…"))):"not_installed"===e?m.default.createElement(g.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:r?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"not_active"===e?m.default.createElement(g.default,{label:n,module:"akismet",status:r?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"invalid_key"===e?m.default.createElement(g.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:"is-warning",statusText:(0,v.translate)("Invalid key"),pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.",{components:{akismetSettings:m.default.createElement("a",{href:t})}}))):m.default.createElement(g.default,{label:n,module:"akismet",status:"is-working",pro:!0},m.default.createElement("h2",{className:"jp-dash-item__count"},(0,v.numberFormat)(e.all.spam)),m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'})))}},{key:"render",value:function(){return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,null),this.getContent())}}]),t}(h.Component);T.propTypes={siteRawUrl:m.default.PropTypes.string.isRequired,siteAdminUrl:m.default.PropTypes.string.isRequired},t.default=(0,_.connect)(function(e){return{akismetData:(0,A.getAkismetData)(e),sitePlan:(0,E.getSitePlan)(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});var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(166),M=n(466),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.defaultProps={fetchAkismetData:function(){}},t.default=(0,m.connect)(function(e){return{fetchAkismetData:(0,M.fetchAkismetData)(),fetchingAkismetData:(0,M.isFetchingAkismetData)(e)}},function(e){return(0,_.bindActionCreators)({fetchAkismetData:M.fetchAkismetData},e)})(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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(1041),g=r(M),v=n(524),b=n(885),y=r(b),A=n(735),E=n(738),T=n(466),L=n(707),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,v.translate)("Backups"),n=!1!==this.props.sitePlan&&"jetpack_free"!==this.props.sitePlan.product_slug,r=this.props.isPluginInstalled("vaultpress/vaultpress.php")?"pro-inactive":"pro-uninstalled";if(this.props.getOptionValue("vaultpress")){var a=this.props.vaultPressData;if("N/A"===a)return m.default.createElement(g.default,{label:t},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Loading…")));if("success"===a.code)return m.default.createElement(g.default,{label:t,module:"backups",status:"is-working",className:"jp-dash-item__is-active",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},a.message," ",(0,v.translate)("{{a}}View backup details{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://dashboard.vaultpress.com",target:"_blank",rel:"noopener noreferrer"})}})))}return m.default.createElement(g.default,{label:t,module:"backups",className:"jp-dash-item__is-inactive",status:n?r:"no-pro-uninstalled-or-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,v.translate)("Unavailable in Dev Mode."):function(){return n?(0,v.translate)("To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}}):(0,v.translate)("To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-backups&site="+e.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}})}()))}},{key:"render",value:function(){return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,null),this.getContent())}}]),t}(h.Component);w.propTypes={vaultPressData:m.default.PropTypes.any.isRequired,isDevMode:m.default.PropTypes.bool.isRequired,siteRawUrl:m.default.PropTypes.string.isRequired,sitePlan:m.default.PropTypes.object.isRequired},t.default=(0,_.connect)(function(e){return{vaultPressData:(0,T.getVaultPressData)(e),sitePlan:(0,A.getSitePlan)(e),isDevMode:(0,L.isDevMode)(e),isPluginInstalled:function(t){return(0,E.isPluginInstalled)(e,t)}}})(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});var a=n(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(1041),b=r(v),y=n(524),A=n(709),E=r(A),T=n(1049),L=r(T),w=n(466),k=n(512),S=n(707),C=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"activateAndRedirect",value:function(e){e.preventDefault(),this.props.activateManage().then(window.location="https://wordpress.com/plugins/"+this.props.siteRawUrl)}},{key:"getContent",value:function(){var e=(0,y.translate)("Plugin Updates"),t=this.props.pluginUpdates,n=this.props.getOptionValue("manage");return"N/A"===t?M.default.createElement(b.default,{label:e,module:"manage",status:"is-working"},M.default.createElement(L.default,null),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Loading…"))):"updates-available"===t.code?M.default.createElement(b.default,{label:e,module:"manage",status:"is-warning"},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.translate)("%(number)s plugin","%(number)s plugins",{count:t.count,args:{number:t.count}})),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Needs updating. ","Need updating. ",{count:t.count,args:{number:t.count}}),this.props.isDevMode?"":(0,y.translate)("{{a}}Turn on plugin auto updates{{/a}}",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/"+this.props.siteRawUrl})}}))):M.default.createElement(b.default,{label:e,module:"manage",status:n?"is-working":"is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("All plugins are up-to-date. Awesome work!")))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,E.default)(e,"manage")?M.default.createElement("div",null,M.default.createElement(L.default,null),this.getContent()):null}}]),t}(_.Component);C.propTypes={isDevMode:M.default.PropTypes.bool.isRequired,siteRawUrl:M.default.PropTypes.string.isRequired,siteAdminUrl:M.default.PropTypes.string.isRequired,pluginUpdates:M.default.PropTypes.any.isRequired},t.default=(0,g.connect)(function(e){return{pluginUpdates:(0,w.getPluginUpdates)(e),isDevMode:(0,S.isDevMode)(e),moduleList:(0,k.getModules)(e)}})(C),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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(166),M=n(466),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.defaultProps={fetchPluginUpdates:function(){}},t.default=(0,m.connect)(function(e){return{fetchPluginUpdates:(0,M.fetchPluginUpdates)(),fetchingPluginUpdates:(0,M.isFetchingPluginUpdates)(e)}},function(e){return(0,_.bindActionCreators)({fetchPluginUpdates:M.fetchPluginUpdates},e)})(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(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(1041),b=r(v),y=n(524),A=n(709),E=r(A),T=n(512),L=n(707),w=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,y.translate)("Image Performance"),n=function(){return e.props.updateOptions({photon:!0})};return this.props.getOptionValue("photon")?M.default.createElement(b.default,{label:t,module:"photon",status:"is-working"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Jetpack is improving and optimizing your image speed."))):M.default.createElement(b.default,{label:t,module:"photon",className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,y.translate)("Unavailable in Dev Mode"):(0,y.translate)("{{a}}Activate{{/a}} to enhance the performance and speed of your images.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,E.default)(e,"photon")?M.default.createElement("div",{className:"jp-dash-item__interior"},this.getContent()):null}}]),t}(_.Component);w.propTypes={isDevMode:M.default.PropTypes.bool.isRequired},t.default=(0,g.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(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.DashConnections=void 0;var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(524),g=n(792),v=r(g),b=n(1041),y=r(b),A=n(707),E=n(398),T=n(1052),L=r(T),w=n(1015),k=r(w),S=t.DashConnections=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"siteConnection",value:function(){var e="";return this.props.isDevMode?e=m.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?m.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):m.default.createElement(v.default,{icon:"globe",size:64}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("Your site is in Development Mode, so it can not be connected to WordPress.com."))):!0===this.props.siteConnectionStatus&&(e=m.default.createElement("div",null,m.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?m.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):m.default.createElement(v.default,{icon:"globe",size:64}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("Your site is connected to WordPress.com."),this.props.userIsMaster&&m.default.createElement("span",{className:"jp-connection-settings__is-owner"},m.default.createElement("br",null),m.default.createElement("em",null,(0,M.translate)("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&m.default.createElement("div",{className:"jp-connection-settings__actions"},m.default.createElement(k.default,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:m.default.createElement(k.default,{asLink:!0,connectUser:!0,
37
- from:"connection-settings"});return this.props.isDevMode?m.default.createElement("div",{className:"jp-connection-settings__info"},m.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("The site is in Development Mode, so you can not connect to WordPress.com."))):this.props.isLinked?m.default.createElement("div",null,m.default.createElement("div",{className:"jp-connection-settings__info"},m.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("Connected as {{span}}%(username)s{{/span}}",{args:{username:this.props.userWpComLogin},components:{span:m.default.createElement("span",{className:"jp-connection-settings__username"})},comment:"%(username) is the WordPress user login name."}),m.default.createElement("div",{className:"jp-connection-settings__email"},this.props.userWpComEmail))),m.default.createElement("div",{className:"jp-connection-settings__actions"},e)):m.default.createElement("div",null,m.default.createElement("div",{className:"jp-connection-settings__info"},(0,M.translate)("Link your account to WordPress.com to get the most out of Jetpack.")),m.default.createElement("div",{className:"jp-connection-settings__actions"},e))}},{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(L.default,null),m.default.createElement("div",{className:"jp-at-a-glance__item-grid"},m.default.createElement("div",{className:"jp-at-a-glance__left"},m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,{className:"jp-connection-type",label:(0,M.translate)("Site connection",{context:"Dashboard widget header"})},this.siteConnection()))),m.default.createElement("div",{className:"jp-at-a-glance__right"},m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,{className:"jp-connection-type",label:(0,M.translate)("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(h.Component);S.propTypes={siteConnectionStatus:m.default.PropTypes.any.isRequired,isDevMode:m.default.PropTypes.bool.isRequired,userCanDisconnectSite:m.default.PropTypes.bool.isRequired,userIsMaster:m.default.PropTypes.bool.isRequired,isLinked:m.default.PropTypes.bool.isRequired,userWpComLogin:m.default.PropTypes.any.isRequired,userWpComEmail:m.default.PropTypes.any.isRequired,userWpComAvatar:m.default.PropTypes.any.isRequired,username:m.default.PropTypes.any.isRequired},t.default=(0,_.connect)(function(e){return{siteConnectionStatus:(0,A.getSiteConnectionStatus)(e),isDevMode:(0,A.isDevMode)(e),userCanDisconnectSite:(0,E.userCanDisconnectSite)(e),userIsMaster:(0,E.userIsMaster)(e),userWpComLogin:(0,E.getUserWpComLogin)(e),userWpComEmail:(0,E.getUserWpComEmail)(e),userWpComAvatar:(0,E.getUserWpComAvatar)(e),username:(0,E.getUsername)(e),isLinked:(0,A.isCurrentUserLinked)(e),siteIcon:(0,E.getSiteIcon)(e)}})(S)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryUserConnectionData=void 0;var r=n(142),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(154),i=n(707),s=t.QueryUserConnectionData=a.default.createClass({displayName:"QueryUserConnectionData",componentWillMount:function(){this.props.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()},render:function(){return null}});t.default=(0,o.connect)(function(e){return{isFetchingUserData:(0,i.isFetchingUserData)(e),isDevMode:(0,i.isDevMode)(e)}},function(e){return{fetchUserConnectionData:function(){return e((0,i.fetchUserConnectionData)())}}})(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Plans=void 0;var a=n(142),o=r(a),i=n(154),s=n(872),c=n(709),l=r(c),u=n(735),d=n(830),p=r(d),f=n(707),h=n(1054),m=r(h),_=n(1055),M=r(_),g=n(1056),v=r(g),b=t.Plans=o.default.createClass({displayName:"Plans",themesPromo:function(){var e=this.props.sitePlan.product_slug||"",t="dev"!==this.props.plan?(0,s.getPlanClass)(e):"dev";switch(t){case"is-personal-plan":case"is-premium-plan":case"is-free-plan":return o.default.createElement(m.default,{plan:t,siteRawUrl:this.props.siteRawUrl})}return null},renderContent:function(){var e=this.props.sitePlan.product_slug||"",t=this.props.availableFeatures,n=this.props.activeFeatures,r="",a="dev"!==this.props.plan?(0,s.getPlanClass)(e):"dev";"dev"===this.props.getSiteConnectionStatus(this.props)&&(e="dev",t={},n={});var i=void 0!==this.props.availableFeatures[s.FEATURE_UNLIMITED_PREMIUM_THEMES],c=(0,l.default)(this.props.activeFeatures,s.FEATURE_UNLIMITED_PREMIUM_THEMES);return i&&!c&&(r=this.themesPromo(),"is-free-plan"===a)?r:o.default.createElement("div",null,r,o.default.createElement("div",{className:"jp-landing__plans dops-card"},o.default.createElement(M.default,{plan:e,siteRawUrl:this.props.siteRawUrl}),o.default.createElement(v.default,{plan:e,availableFeatures:t,activeFeatures:n,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl})))},render:function(){return o.default.createElement("div",null,o.default.createElement(p.default,null),this.renderContent())}});t.default=(0,i.connect)(function(e){return{getSiteConnectionStatus:function(){return(0,f.getSiteConnectionStatus)(e)},sitePlan:(0,u.getSitePlan)(e),availableFeatures:(0,u.getAvailableFeatures)(e),activeFeatures:(0,u.getActiveFeatures)(e)}})(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(142),o=r(a),i=n(839),s=r(i),c=n(524),l=n(874),u=r(l),d=n(755),p=r(d),f=n(724),h=r(f),m=n(983),_=o.default.createClass({displayName:"ThemesPromoCard",trackGetStarted:function(){h.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-get-started",plan:this.props.plan,type:"upgrade"})},trackComparePlans:function(){h.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-compare-all",plan:this.props.plan,type:"upgrade"})},render:function(){var e=(0,s.default)(this.props.className,"jp-themes-card"),t=this.props.plan,n=/(?![is-])(.*)(?=-plan)/g,r=Array.isArray(t.match(n))?t.match(n)[0]:"";return o.default.createElement("div",{className:e},o.default.createElement(u.default,{className:"jp-apps-card__content"},o.default.createElement("div",{className:"jp-apps-card__top"},o.default.createElement("svg",{id:"customizeTheme",viewBox:"0 0 1562.02 968.34"},o.default.createElement("path",{style:{fill:"none"},d:"M2782.37,1785.75v304h186.89V1766.4H2801.72A19.34,19.34,0,0,0,2782.37,1785.75Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2694.2,1577.67v-66.48H2489.65c1.43,2.42,2.76,4.91,4,7.46a97.51,97.51,0,0,1-45.91,129.77l-1.12.53-1.7.78a103.66,103.66,0,0,1-12.4,4.49l-1.95.52c-.74.19-1.49.39-2.24.57q-1.71.41-3.44.76c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29,97.48,97.48,0,0,1-78.41-138.84c1.22-2.55,2.55-5,4-7.46H2109.11v345.3c30.68.61,91.09-10.69,91.91,17.83V1771.63h395.1V1893.7c31.53-.25,63.17,7.34,94.57,2.12a2.54,2.54,0,0,1,3,1.87c3.06,18.42,15.24,184.72,16.49,201.18,1.13,15,3.61,29.66.47,44.63a2.57,2.57,0,0,1-2.49,1.75c-11.26.59-22.59,2.08-33.86,2-10.57,0-50.89-1.13-53.77-2.15-3.56-1.26-20.91,2.91-29.77,3.48-8.49.54-42.08,2.8-50.36,3-10.37.2-21.3-.12-21.55-10.11-.14-5.61-5.37-46-4.63-51.76h-310c0,1.3-64.18-.14-95-.4v91.12h923.76V1577.67Zm275.06,512H2782.37v-304a19.34,19.34,0,0,1,19.34-19.34h167.55Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c2f4ff"},d:"M2493.63,1518.65c-1.22-2.55-2.55-5-4-7.46-1.13-1.92-2.32-3.81-3.57-5.64a97.45,97.45,0,0,0-160.89,0c-1.26,1.84-2.45,3.74-3.59,5.67-1.43,2.42-2.76,4.91-4,7.46A97.48,97.48,0,0,0,2396,1657.5a45.49,45.49,0,0,1,4.29-20.29c4.75-10.25,11.85-15.85,17.3-13.66,3.44,1.4,3.76,6.1,4.33,14.63.36,5.22,1,14.32,3,17.89q1.73-.35,3.44-.76c.75-.18,1.49-.37,2.24-.57l1.95-.52a103.66,103.66,0,0,0,12.4-4.49l1.7-.78,1.12-.53a97.51,97.51,0,0,0,45.91-129.77Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2969,1767.15H2801.47a19.34,19.34,0,0,0-19.34,19.34v304H2969Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("polygon",{style:{fill:"#00a9de"},points:"936.97 71.05 936.97 148.82 936.97 215.3 1275.64 215.3 1327.68 215.3 1327.68 71.05 936.97 71.05"}),o.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2136.25,1998.84l52-.38,3.78,41.27-42.35-3.82S2132.86,2032.54,2136.25,1998.84Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2125.33,1518.65h-16.79a6.71,6.71,0,0,1-6.71-6.71v-16.79a6.71,6.71,0,1,1,13.43,0v10.07h10.07a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2108.55,1467.71a6.71,6.71,0,0,1-6.71-6.71v-34.16a6.71,6.71,0,0,1,13.43,0V1461A6.71,6.71,0,0,1,2108.55,1467.71Zm9.13-66.52a6.71,6.71,0,0,1-5.59-10.43,61.47,61.47,0,0,1,29.41-23.59,6.71,6.71,0,1,1,4.8,12.54,48.88,48.88,0,0,0-23,18.48A6.7,6.7,0,0,1,2117.68,1401.19Zm905.71-.17a6.7,6.7,0,0,1-5.59-3,48.78,48.78,0,0,0-23.09-18.39,6.71,6.71,0,0,1,4.75-12.56,61.51,61.51,0,0,1,29.51,23.47,6.71,6.71,0,0,1-5.57,10.45Zm-60-24.48h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43H2895a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43H2690a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.32,0h-34.17a6.71,6.71,0,1,1,0-13.43h34.17a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2595.87,2146.26s-4.79,103.66-20.35,167.09l-91.65,1.2s-7.35-4.68,2.39-9.57c10.22-5.13,37.63-10.63,40.69-16.76,6-12,3.59-135.24,3.59-135.24",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2631.51,2149.4s4.79,96.94,20.35,160.37L2732,2311s7.35-4.68-2.39-9.57c-10.22-5.13-37.63-10.63-40.69-16.76-6-12,11.69-142,11.69-142",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2428.56,1659.71s2.15,1.76,2.95-5.22a96.8,96.8,0,0,1-9.45,2.1C2423.44,1659.33,2425.48,1660.74,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2428.56,1659.71c-3.08,1-5.12-.39-6.51-3.12a98.07,98.07,0,0,1-16.43,1.39c-2,0-3.92-.07-5.86-.18.71,10.87,6.35,22.22,21.32,30l10.92,5.91,18.25-11.25c1.85-15.18-1.32-26.11-4.73-33a96.7,96.7,0,0,1-14,5C2430.72,1661.48,2428.56,1659.71,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2422.06,1656.59c-4.26-8.42-2.32-29.41-5.46-30.69-5.95-2.42-18,14.09-16.83,31.89,1.94.11,3.89.18,5.86.18A98.07,98.07,0,0,0,2422.06,1656.59Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2669.78,2003.53a3.36,3.36,0,0,1-.35-6.69l37.1-4a3.36,3.36,0,1,1,.72,6.67l-37.1,4Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2695.47,2023.4a24.39,24.39,0,0,1-17.25-6.64,18.91,18.91,0,0,1-6-14.79,3.21,3.21,0,0,1,3.55-3.15,3.35,3.35,0,0,1,3.15,3.55,12.26,12.26,0,0,0,4,9.57,18.38,18.38,0,0,0,14.33,4.73l6.47-1.8a3.35,3.35,0,0,1,1.74,6.48l-7,1.9C2697.41,2023.35,2696.44,2023.4,2695.47,2023.4Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2546.66,1602.62c.17,4,1.34,7,2.68,7.81.92.57,2.35-.09,3.47-.81q-.24-2.52-.3-5.06Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2550.45,1591.37a9.56,9.56,0,0,0-3,4.43l5.24,1.75c.16-2.17.43-4.32.79-6.45a3.31,3.31,0,0,1-1-.72A4.74,4.74,0,0,0,2550.45,1591.37Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2580.7,1637.25a20.24,20.24,0,0,1-10.18-17.25l1-9.1-12.14-4a64.44,64.44,0,0,0,1.22,9.25c3.32,15.85,7.25,28.2,24.71,31a3.37,3.37,0,0,1,2.81,2.92l2.16,18.43a3.37,3.37,0,0,1-2.94,3.73l-.4,0a3.34,3.34,0,0,1-2.14-.78v8.46l42,2.24V1644.6a24.54,24.54,0,0,1-5.72,2.1C2603.51,1650.74,2589.78,1642.36,2580.7,1637.25Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2616.75,1611,2606,1582s-14.32-8-27.77-7.19C2585.13,1590.91,2599.26,1606.61,2616.75,1611Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2561,1587.76a62.57,62.57,0,0,0-1.69,12l12.91,4.3,1.53-14.5S2566,1590.51,2561,1587.76Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f84"},d:"M2642.18,1608.93a40.09,40.09,0,0,1-25.43,2c-17.49-4.36-31.61-20.06-38.5-36.2-3.84-9-5.43-18.16-4.09-25.55-6.69,5.25-12.38,13.71-16.59,26.57a18.47,18.47,0,0,0-.66,2.65c-.72,1.84-1.33,3.72-1.87,5.64a7.23,7.23,0,0,0-4-.26c-4.5,1-9.8,5.64-10.81,13.69-.81,6.49.17,15.26,5.63,18.63a8.18,8.18,0,0,0,4.33,1.21,10.19,10.19,0,0,0,3.69-.74c.06.28.1.57.16.85,3.44,16.44,8.2,31.53,27.7,35.78l1.87,16a3.39,3.39,0,0,0,3.33,3l.4,0a3.37,3.37,0,0,0,2.94-3.73l-2.16-18.43a3.37,3.37,0,0,0-2.81-2.92c-17.45-2.8-21.38-15.15-24.71-31a64.44,64.44,0,0,1-1.22-9.25l12.14,4-1,9.1a20.24,20.24,0,0,0,10.18,17.25c9.08,5.11,22.81,13.49,40.3,9.45a24.54,24.54,0,0,0,5.72-2.1c11.87-6.1,18.57-21.52,20.71-38.28A40.64,40.64,0,0,1,2642.18,1608.93Zm-92.84,1.5c-1.34-.83-2.51-3.81-2.68-7.81l5.85,1.95q.06,2.53.3,5.06C2551.69,1610.34,2550.26,1611,2549.34,1610.44Zm3.34-12.89-5.24-1.75a9.56,9.56,0,0,1,3-4.43,4.74,4.74,0,0,1,2-1,3.31,3.31,0,0,0,1,.72C2553.1,1593.22,2552.84,1595.38,2552.68,1597.55Zm19.52,6.5-12.91-4.3a62.57,62.57,0,0,1,1.69-12c5,2.75,12.75,1.79,12.75,1.79Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2584.48,1535.27c-5.88,2.56-9.17,7.61-10.32,13.94-4.83,26.63,28.33,76.05,68,59.72a40.64,40.64,0,0,0,5.24-2.61C2686.87,1583,2632.3,1514.44,2584.48,1535.27Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#86a6bd",opacity:"0.26"},d:"M2032.34,1985.67h150.18a8.52,8.52,0,0,0,8.52-8.89l-4.28-99.89a6.41,6.41,0,0,0-6.42-6.15H2030.4l2,101.93",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2181.34,2034.57c-17.22-1.19-34.44-1.6-51.66-1.94l-25.83-.28-12.92-.12-6.46-.06a18,18,0,0,1-5.17-.89,16.73,16.73,0,0,1-11.49-16.09l-.16-17.54c-2.3-.12-4.6-.15-6.9-.15l-.16,17.7a24,24,0,0,0,16.34,23.3,25.54,25.54,0,0,0,7.53,1.15l6.46-.06,12.92-.12,25.83-.28c17.22-.34,34.44-.74,51.66-1.94a1.35,1.35,0,0,0,0-2.69Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2156.47,2034.57c-8.58-1.15-15.3-7.64-16.55-15.28-.52-3.45-.09-8.55-.11-13l.17-9.79h-7.46l.17,9.79c.28,4.67-.32,8.81.82,14.38a22.45,22.45,0,0,0,8.62,12.8,20.63,20.63,0,0,0,14.34,3.78,1.38,1.38,0,0,0,1.18-1.18A1.35,1.35,0,0,0,2156.47,2034.57Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2189,1994.51a19.45,19.45,0,0,1-5.57.7h-4.77v0h-.5c-28.24.05-56.47.45-84.71.69-30.47.46-60.93,1.09-91.4,2.05a.67.67,0,0,0,0,1.34c30.47,1,60.93,1.59,91.4,2.05,30.47.26,60.93.72,91.4.71h.15a3.45,3.45,0,0,0,.65-.09,27.44,27.44,0,0,0,3.36-.4Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2207.27,1957.36l-2.43-61.2-.61-15.3c-.15-2.7-.09-4.75-.44-8a21.85,21.85,0,0,0-18.16-18.52,36.58,36.58,0,0,0-6.11-.28,3.76,3.76,0,0,0-.72-.07l-159,.55-9.94.09a16.26,16.26,0,0,0-11.19,3.89,15.82,15.82,0,0,0-5.41,10.68c-.07,3.91.13,6.79.18,10.23l1,39.73c.59,26.49,1.48,53,2.47,79.45a1.34,1.34,0,0,0,2.68,0c.11-26.5.14-53-.15-79.49l-.29-39.74c0-3.18-.1-6.93,0-9.63a9.79,9.79,0,0,1,3.47-6.54,10,10,0,0,1,7.22-2.24l3.91,0,1.63,55c.48,19.37,1.43,38.74,2.16,58.1a1.34,1.34,0,0,0,2.68-.05c0-19.38.13-38.77-.16-58.14l-.56-54.84h.27l155.34.54.13-.07h2.09a54.42,54.42,0,0,1,7,.23,14.2,14.2,0,0,1,9.76,6.53,14,14,0,0,1,2,5.63c.2,1.84.24,4.9.38,7.29l.7,15.29,1.41,30.59,1.41,30.59.28,6.14a47.87,47.87,0,0,1,7.11.15Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M1758.29,2322.51c129.84-3.7,259.68-4.48,389.52-5.4l389.52-.85c259.68.81,519.36.35,779,4.91a2.69,2.69,0,0,1,0,5.37c-259.68,4.56-519.36,4.1-779,4.91l-389.52-.85c-129.84-.92-259.68-1.7-389.52-5.4a1.34,1.34,0,0,1,0-2.68Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2531.81,2280.22a3.36,3.36,0,0,1-3.21-4.33c4.87-16,2.75-48.59.71-80-1-15.5-2-30.14-2.1-42.83a3.36,3.36,0,0,1,3.32-3.4h0a3.36,3.36,0,0,1,3.36,3.32c.14,12.51,1.09,27.07,2.09,42.47,2.09,32.06,4.24,65.22-1,82.44A3.36,3.36,0,0,1,2531.81,2280.22Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2651.85,2313.12a3.35,3.35,0,0,1-3.31-2.86c-.12-.81-12.12-81.19-20.37-160.52a3.36,3.36,0,1,1,6.67-.7c8.24,79.19,20.21,159.42,20.33,160.22a3.36,3.36,0,0,1-2.82,3.82A3.27,3.27,0,0,1,2651.85,2313.12Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M3025.91,1433.5v-6.88a6.71,6.71,0,0,1,13.43,0V1434",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2798.25,1578.5v-1.72a26.28,26.28,0,0,1-8.95,4.54s7.5-27.34-.45-29.17-38.4,52.06-38.4,52.06l11,26.43s11.83-10.63,49.88-30.13c8.64-8.13,13.71-15.59,16.29-22Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2782.12,1618.79a3.36,3.36,0,0,1,0-6.71c3.78-.14,30-13.82,42.82-38.15a3.36,3.36,0,1,1,5.94,3.13C2817.51,1602.39,2789,1618.79,2782.12,1618.79Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2761.47,1597.25a3.36,3.36,0,0,1-2.22-5.87c2.76-2.45,7.26-11.57,11.23-19.61,8.05-16.3,11.8-23,16.48-23.58a4.9,4.9,0,0,1,4.44,1.78c4.62,5.4,3.46,18.48,2.22,26.39,2.84-1.22,6-3.06,7.75-5.51a3.36,3.36,0,1,1,5.47,3.89c-5.18,7.26-16.36,9.76-16.83,9.86a3.36,3.36,0,0,1-4-4c1.66-7.7,2.93-20,1.06-24.9-2.73,3.15-7.36,12.54-10.58,19-4.66,9.44-9.05,18.35-12.81,21.66A3.31,3.31,0,0,1,2761.47,1597.25Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2416.59,1625.9c3.14,1.27,1.2,22.27,5.46,30.69.95-.16,1.89-.34,2.83-.53-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c1.24.12,2.48.23,3.74.3C2398.59,1640,2410.65,1623.49,2416.59,1625.9Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2428.33,1655.3l2.24-.57C2429.82,1654.93,2429.08,1655.12,2428.33,1655.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2447.73,1648.42l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2191.3,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2257.26,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2587.08,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2686,1505.23a6.71,6.71,0,1,0,0,13.43h8v-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2653,1499.58h-33a6.71,6.71,0,0,0,0,13.43h33a6.71,6.71,0,0,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2323.22,1505.23h-33a6.71,6.71,0,0,0,0,13.43h27.37a97.31,97.31,0,0,1,7.57-13.14A6.72,6.72,0,0,0,2323.22,1505.23Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2521.11,1505.23h-33a6.71,6.71,0,0,0-2.05.32,97.32,97.32,0,0,1,7.55,13.11h27.48a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2430.57,1654.73l-2.24.57c-.16,1-.49,1.78-1.08,2-.92.31-1.21.1-1.35,0a3.51,3.51,0,0,1-1-1.23c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c.39,12.48,6.62,25.37,23.26,34.07a3.4,3.4,0,0,0,1.55.38,3.36,3.36,0,0,0,1.55-6.33c-23.86-12.47-20.37-32.83-17.76-41,2.86-9,7.67-13.76,9.75-14.69a83.07,83.07,0,0,1,.87,8.7c.65,9.63,1.39,20.54,6.92,24.25a7.94,7.94,0,0,0,7.21.78c4.91-1.64,5.87-5.42,5.78-10.24-.57.2-1.57.5-2.65.8l-1,.28Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2431.51,1654.49l1-.28-1.95.52Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2445.52,1649.46l-.61.27c-1.23.56-2.56,1.13-3.32,1.39a57.89,57.89,0,0,1,4.6,24,3.36,3.36,0,0,0,3.31,3.4h0a3.36,3.36,0,0,0,3.36-3.31,66.28,66.28,0,0,0-5.19-26.75l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2446.61,1648.95l-1.7.78.61-.27Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2547.12,2156.58c-11.43,0-21.7-1.43-27.18-5.63a11.37,11.37,0,0,1-4.7-8.56c-.17-3-.55-7.36-1-12.93-3-34.13-10-114,4.45-204.92a3.36,3.36,0,0,1,6.64,1c-14.33,90.06-7.37,169.4-4.39,203.28.5,5.66.89,10.09,1.06,13.15a4.69,4.69,0,0,0,2.09,3.6c11.59,8.87,57.88,1.65,74.75-1.89a3.36,3.36,0,0,1,1.38,6.57C2595.85,2151.2,2569.3,2156.58,2547.12,2156.58Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2643.2,2151.66c-12.44,0-22.94-1.1-27.65-4.25-10.39-6.93-8.37-101.49-7-141.83a3.18,3.18,0,0,1,3.47-3.25,3.37,3.37,0,0,1,3.25,3.47c-2.09,62.26-1.09,130.21,4.2,136.16,9.2,6.1,58.16,1.8,88.94-2.62l-5.81-102.27a3.36,3.36,0,0,1,3.16-3.54,3.19,3.19,0,0,1,3.54,3.16l6,105.34a3.36,3.36,0,0,1-2.85,3.51C2706.69,2146.4,2670.33,2151.66,2643.2,2151.66Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2701.14,1985.18a3.35,3.35,0,0,1-3.34-3.09l-7.19-88.58a3.35,3.35,0,1,1,6.69-.54l7.19,88.58a3.36,3.36,0,0,1-3.08,3.61Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2790.95,1624l-32.31-33.51c-15.78,31.57-62.67,78.58-98.1,87.42-.81-.32-1.63-.64-2.49-1-11.37-4.19-76.46-8.61-92-2-10,4.25-16.9,7.49-21.52,11.79-30.74,24.06-50,44.9-50,44.9L2457,1673l-33.51,23.94s28.72,105.32,73,102.93a107.17,107.17,0,0,0,41.78-11.27l3.7,105.84,148.35-2.55-3.6-151.61C2742,1712.26,2790.95,1624,2790.95,1624Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2535.2,1898.17a3.36,3.36,0,0,1,0-6.71l158.76-1.57a3.23,3.23,0,0,1,3.39,3.32,3.36,3.36,0,0,1-3.32,3.39l-158.76,1.57Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2363.75,2092.76h-.48l-96.46,1.48-97.41,1-195.87.76a3.72,3.72,0,0,1-3.73-3.7v0l-.07-54.71a3.79,3.79,0,0,1,3.78-3.8h0l194.63.42,194.63,1.45h0a1.9,1.9,0,0,1,1.89,1.92v0Zm-1.9-.95v-.47l-1-53.76,1.93,1.93L2168.15,2041l-194.63.42,3.8-3.8-.07,54.71-3.73-3.73,193.41.76,97.22,1Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"216.54",x2:"216.54",y1:"709.01",y2:"947.85"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M1974.19,2072.13c1.85,19.9,2.24,39.81,2.7,59.71l.42,59.71c-.4,39.8-.17,79.61-2.46,119.42a1.35,1.35,0,0,1-2.69,0c-2.28-39.8-2.05-79.61-2.45-119.42l.42-59.71c.46-19.9.85-39.8,2.7-59.71a.67.67,0,0,1,1.34,0Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"605.81",x2:"605.81",y1:"729.17",y2:"947.85"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2363.46,2092.29c1.85,18.22,2.24,36.45,2.7,54.67l.42,54.67c-.4,36.45-.17,72.89-2.45,109.34a1.35,1.35,0,0,1-2.69,0c-2.28-36.45-2.05-72.89-2.46-109.34l.43-54.67c.46-18.22.85-36.45,2.7-54.67a.67.67,0,0,1,1.34,0Z",transform:"translate(-1756.98 -1363.12)"})),o.default.createElement("div",{className:"jp-apps-card__clouds"},o.default.createElement("img",{src:m.imagePath+"/white-clouds.svg",alt:""}))),o.default.createElement("div",{className:"jp-apps-card__description"},o.default.createElement("h3",{className:"jp-apps-card__header"},(0,c.translate)("Introducing Unlimited Themes")),(0,c.translate)("{{subhead}}Only with Jetpack Professional{{/subhead}}{{p}}Protect your site and work with Jetpack Personal: daily automated backups, unlimited storage, and expert priority support. Security essentials for every WordPress site starting from $3.50.{{/p}}{{p}}Or go Pro with more than 200 Premium Themes, business class security, unlimited video hosting, monetization, marketing automation, and SEO tools.{{/p}}",{components:{subhead:o.default.createElement("p",{className:"jp-apps-card__promo_subhead"}),p:o.default.createElement("p",{className:"jp-apps-card__paragraph"})}}),o.default.createElement("p",null,o.default.createElement(p.default,{className:"is-primary",onClick:this.trackGetStarted,href:"https://jetpack.com/redirect/?source=upgrade-pro-"+r+"&site="+this.props.siteRawUrl},(0,c.translate)("Explore Professional"))," ",o.default.createElement(p.default,{onClick:this.trackComparePlans,href:"https://jetpack.com/redirect/?source=plans-compare-free&site="+this.props.siteRawUrl},(0,c.translate)("Compare All Plans"))),o.default.createElement("a",{onClick:this.trackGetStarted,href:"https://jetpack.com/redirect/?source=upgrade-pro-"+r+"&site="+this.props.siteRawUrl},(0,c.translate)("Limited time 50% introductory discount on Jetpack Professional.")))))}});_.propTypes={className:o.default.PropTypes.string,plan:o.default.PropTypes.string},t.default=_,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(142),o=r(a),i=n(755),s=r(i),c=n(524),l=n(724),u=r(l),d=n(872),p=n(983),f=o.default.createClass({displayName:"PlanHeader",trackLearnMore:function(){u.default.tracks.recordJetpackClick({target:"learn-more",plan:"free",page:"plans"})},render:function(){var e="",t="";switch("dev"!==this.props.plan?(0,d.getPlanClass)(this.props.plan):"dev"){case"is-free-plan":e=o.default.createElement("div",{className:"jp-landing-plans__header"},o.default.createElement("h2",{className:"jp-landing-plans__header-title"},(0,c.translate)("Introducing our most affordable backups and security plan yet")),o.default.createElement("p",{className:"jp-landing-plans__header-description"},(0,c.translate)("Jetpack Personal keeps your data, site, and hard work safe.")),o.default.createElement("div",{className:"jp-landing-plans__header-img-container"},o.default.createElement("div",{className:"jp-landing-plans__header-col-left"},o.default.createElement("h3",{className:"jp-landing-plans__header-subtitle"},(0,c.translate)("How much is your website worth?")),o.default.createElement("p",{className:"jp-landing-plans__header-text"},(0,
38
- c.translate)("For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up."),o.default.createElement("br",null),o.default.createElement("br",null),(0,c.translate)("Hackers, botnets and spammers attack websites indiscriminately. Their goal is to attack everywhere and often. Our goal is to help you prepare by blocking these threats, and in worst-case-scenarios we'll be here to help you restore your site to its former glory.")),o.default.createElement("p",{className:"jp-landing-plans__header-btn-container"},o.default.createElement(s.default,{href:"https://jetpack.com/redirect/?source=plans-main-top&site="+this.props.siteRawUrl,className:"is-primary"},(0,c.translate)("Learn more")))),o.default.createElement("div",{className:"jp-landing-plans__header-col-right"},o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"335",height:"233",viewBox:"0 0 1005 700",version:"1.1","aria-labelledby":"wpcomLogin",role:"img"},o.default.createElement("title",{id:"wpcomLogin"},(0,c.translate)("Image of WordPress login screen protected by Jetpack")),o.default.createElement("defs",null,o.default.createElement("rect",{id:"path-1",x:"0",y:"0",width:"1005",height:"700",rx:"8"}),o.default.createElement("polygon",{id:"path-3",points:"0 80 80 80 80 0 0 0 0 80"}),o.default.createElement("rect",{id:"path-5",x:"22",y:"154",width:"280",height:"35"}),o.default.createElement("mask",{id:"mask-6",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-5"})),o.default.createElement("rect",{id:"path-7",x:"22",y:"234",width:"280",height:"35"}),o.default.createElement("mask",{id:"mask-8",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-7"})),o.default.createElement("rect",{id:"path-9",x:"22",y:"291",width:"15",height:"15"}),o.default.createElement("mask",{id:"mask-10",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"15",height:"15",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-9"})),o.default.createElement("rect",{id:"path-11",x:"230",y:"289",width:"71",height:"30",rx:"3"}),o.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-12"},o.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.default.createElement("feComposite",{in:"shadowOffsetOuter1",in2:"SourceAlpha",operator:"out",result:"shadowOffsetOuter1"}),o.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowOffsetOuter1"})),o.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-13"},o.default.createElement("feOffset",{dx:"0",dy:"2",in:"SourceAlpha",result:"shadowOffsetInner1"}),o.default.createElement("feComposite",{in:"shadowOffsetInner1",in2:"SourceAlpha",operator:"arithmetic",k2:"-1",k3:"1",result:"shadowInnerInner1"}),o.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowInnerInner1"})),o.default.createElement("mask",{id:"mask-14",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"71",height:"30",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-11"})),o.default.createElement("polygon",{id:"path-15",points:"54 33.75 54 0 0 0 0 33.75 0 67.5 54 67.5"})),o.default.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none","fill-rule":"evenodd"},o.default.createElement("g",{id:"Plans---wp-login-stripped",transform:"translate(-197.000000, -136.000000)"},o.default.createElement("g",{id:"Editor-Container",transform:"translate(197.000000, 136.000000)"},o.default.createElement("g",{id:"Simple-Layout"},o.default.createElement("g",{id:"bg"},o.default.createElement("mask",{id:"mask-2",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-1"})),o.default.createElement("use",{id:"content-bg-mask",fill:"#F1F1F1",xlinkHref:"#path-1"})),o.default.createElement("g",{id:"chrome"},o.default.createElement("rect",{fill:"#FEFEFE",x:"0",y:"0",width:"1005",height:"53",rx:"8"}),o.default.createElement("rect",{id:"Rectangle",fill:"#F1F1F1",x:"0",y:"46",width:"1005",height:"38"}),o.default.createElement("path",{d:"M27.5 31C23.36 31 20 27.64 20 23.5 20 19.36 23.36 16 27.5 16 31.64 16 35 19.36 35 23.5 35 27.64 31.64 31 27.5 31L27.5 31ZM77.5 31C73.36 31 70 27.64 70 23.5 70 19.36 73.36 16 77.5 16 81.64 16 85 19.36 85 23.5 85 27.64 81.64 31 77.5 31L77.5 31ZM52.5 31C48.36 31 45 27.64 45 23.5 45 19.36 48.36 16 52.5 16 56.64 16 60 19.36 60 23.5 60 27.64 56.64 31 52.5 31L52.5 31Z",id:"Shape",fill:"#8D8D8D"}))),o.default.createElement("g",{id:"login-form",opacity:"0.5",transform:"translate(340.000000, 156.000000)"},o.default.createElement("rect",{id:"log-bg",fill:"#FFFFFF",x:"0",y:"110",width:"325",height:"243"}),o.default.createElement("g",{id:"wplogo",transform:"translate(123.000000, 0.000000)"},o.default.createElement("mask",{id:"mask-4",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-3"})),o.default.createElement("g",{id:"Clip-2"}),o.default.createElement("path",{d:"M57.09 69.39L67.48 39.36C69.42 34.51 70.07 30.63 70.07 27.18 70.07 25.93 69.98 24.77 69.84 23.69 72.49 28.53 74 34.09 74 40 74 52.54 67.2 63.5 57.09 69.39L57.09 69.39ZM44.69 24.06C46.73 23.95 48.58 23.74 48.58 23.74 50.41 23.52 50.19 20.82 48.36 20.93 48.36 20.93 42.85 21.36 39.3 21.36 35.96 21.36 30.35 20.93 30.35 20.93 28.51 20.82 28.29 23.63 30.13 23.74 30.13 23.74 31.86 23.95 33.69 24.06L38.99 38.57 31.55 60.89 19.17 24.06C21.22 23.95 23.06 23.74 23.06 23.74 24.89 23.52 24.67 20.82 22.84 20.93 22.84 20.93 17.34 21.36 13.78 21.36 13.14 21.36 12.39 21.35 11.59 21.32 17.67 12.1 28.12 6 40 6 48.85 6 56.91 9.38 62.96 14.93 62.81 14.92 62.67 14.9 62.52 14.9 59.18 14.9 56.81 17.81 56.81 20.93 56.81 23.74 58.43 26.1 60.15 28.91 61.44 31.17 62.95 34.08 62.95 38.28 62.95 41.2 61.83 44.57 60.37 49.28L56.97 60.61 44.69 24.06ZM40 74C36.66 74 33.44 73.51 30.39 72.62L40.6 42.97 51.05 71.61C51.12 71.78 51.2 71.93 51.29 72.08 47.76 73.32 43.96 74 40 74L40 74ZM6 40C6 35.07 7.06 30.39 8.95 26.16L25.16 70.6C13.82 65.09 6 53.46 6 40L6 40ZM40 0C17.91 0 0 17.91 0 40 0 62.09 17.91 80 40 80 62.09 80 80 62.09 80 40 80 17.91 62.09 0 40 0L40 0Z",id:"Fill-1",fill:"#0072AC",mask:"url(#mask-4)"})),o.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-6)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-5"}),o.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-8)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-7"}),o.default.createElement("use",{id:"checkbox",stroke:"#DEDEDE",mask:"url(#mask-10)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-9"}),o.default.createElement("g",{id:"btn"},o.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-12)",xlinkHref:"#path-11"}),o.default.createElement("use",{fill:"#36A3CA","fill-rule":"evenodd",xlinkHref:"#path-11"}),o.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-13)",xlinkHref:"#path-11"}),o.default.createElement("use",{stroke:"#1075A0",mask:"url(#mask-14)",strokeWidth:"2",xlinkHref:"#path-11"}))),o.default.createElement("g",{id:"security",transform:"translate(428.000000, 275.000000)"},o.default.createElement("circle",{id:"Oval",fill:"#3D596D",cx:"75",cy:"75",r:"75"}),o.default.createElement("g",{id:"Page-1",transform:"translate(48.000000, 37.500000)"},o.default.createElement("mask",{id:"mask-16",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-15"})),o.default.createElement("g",{id:"Clip-2"}),o.default.createElement("path",{d:"M30.38 46.31L30.38 54 23.63 54 23.63 46.31C21.62 45.15 20.25 42.99 20.25 40.5 20.25 36.77 23.27 33.75 27 33.75 30.73 33.75 33.75 36.77 33.75 40.5 33.75 42.99 32.38 45.15 30.38 46.31L30.38 46.31ZM16.88 16.87C16.88 11.29 21.42 6.75 27 6.75 32.58 6.75 37.13 11.29 37.13 16.87L37.13 20.25 16.88 20.25 16.88 16.87ZM47.25 20.25L43.88 20.25 43.88 16.87C43.88 7.57 36.3 0 27 0 17.7 0 10.13 7.57 10.13 16.87L10.13 20.25 6.75 20.25C3.02 20.25 0 23.27 0 27L0 60.75C0 64.48 3.02 67.5 6.75 67.5L47.25 67.5C50.98 67.5 54 64.48 54 60.75L54 27C54 23.27 50.98 20.25 47.25 20.25L47.25 20.25Z",id:"Fill-1",fill:"#FFFFFF",mask:"url(#mask-16)"}))))))))),o.default.createElement("div",{className:"jp-landing-plans__clouds jp-clouds-top"},o.default.createElement("img",{src:p.imagePath+"/white-clouds.svg",alt:""}))),t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Your site is on the Free Jetpack Plan")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Upgrade to a paid plan to unlock world-class security, spam protection tools, priority support, SEO and monetization tools."))));break;case"is-personal-plan":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-personal.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Welcome to Jetpack Personal")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Security essentials (daily backups, spam filtering), and priority support."))));break;case"is-premium-plan":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-premium.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Welcome to Jetpack Premium")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Enhanced security (backups, scanning, spam filtering), marketing automation (social scheduling, ad program), 13Gb video hosting, and priority support."))));break;case"is-business-plan":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-business.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Welcome to Jetpack Professional")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Unlimited Premium themes, business class security (backups, scanning, spam filtering), marketing automation (social scheduling, SEO tools, ad program), video hosting, and priority support."))));break;case"dev":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Your site is on Development Mode")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support."))));break;default:t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img is-placeholder"}),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o.default.createElement("div",null,e,t)}});t.default=f,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(142),o=r(a),i=n(154),s=n(755),c=r(s),l=n(524),u=n(724),d=r(u),p=n(872),f=n(709),h=r(f),m=n(738),_=n(512),M=n(827),g=r(M),v=o.default.createClass({displayName:"PlanBody",propTypes:{plan:o.default.PropTypes.string},getDefaultProps:function(){return{plan:""}},trackPlansClick:function(e){d.default.tracks.recordJetpackClick({page:"plans",target:e,plan:this.props.plan})},activateAds:function(){this.props.activateModule("wordads"),this.trackPlansClick("activate_wordads")},activatePublicize:function(){this.props.activateModule("publicize"),this.trackPlansClick("activate_publicize")},activateVideoPress:function(){this.props.activateModule("videopress"),this.trackPlansClick("activate_videopress")},activateSeo:function(){this.props.activateModule("seo-tools"),this.trackPlansClick("activate_seo")},activateGoogleAnalytics:function(){this.props.activateModule("google-analytics"),this.trackPlansClick("activate_ga")},render:function(){var e=this,t="",n="dev"!==this.props.plan?(0,p.getPlanClass)(this.props.plan):"dev",r=(0,h.default)(this.props.activeFeatures,p.FEATURE_UNLIMITED_PREMIUM_THEMES);switch(n){case"is-personal-plan":case"is-premium-plan":case"is-business-plan":t=o.default.createElement("div",{className:"jp-landing__plan-features"},r&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Unlimited Premium Themes")),o.default.createElement("p",null,(0,l.translate)("Exclusive hand-crafted designs you will love with dedicated support directly from the themes' authors.")),o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("premium_themes")},href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Explore"))),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Spam Protection")),o.default.createElement("p",null,(0,l.translate)("State-of-the-art spam defense powered by Akismet.")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_spam_stats")},href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config",className:"is-primary"},(0,l.translate)("View your spam stats")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_akismet")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=akismet",className:"is-primary"},(0,l.translate)("Configure Akismet"))),"is-personal-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Backups")),o.default.createElement("p",null,(0,l.translate)("Daily backup of all your site data with unlimited space and one-click restores (powered by VaultPress).")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_security_dash")},href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,l.translate)("View your security dashboard")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_vault")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,l.translate)("Configure VaultPress"))),"is-premium-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Backups & Security Scanning")),o.default.createElement("p",null,(0,l.translate)("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support (powered by VaultPress).")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_security_dash")},href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,l.translate)("View your security dashboard")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_vault")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,l.translate)("Configure VaultPress"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Backups & Security Scanning")),o.default.createElement("p",null,(0,l.translate)("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, one-click threat resolution, and priority support (powered by VaultPress).")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_security_dash")},href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,l.translate)("View your security dashboard")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_vault")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,l.translate)("Configure VaultPress"))),("is-business-plan"===n||"is-premium-plan"===n)&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Ads")),o.default.createElement("p",null,(0,l.translate)("Earn income by allowing Jetpack to display high quality ads (powered by WordAds).")),this.props.isModuleActivated("wordads")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_earnings")},href:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("View your earnings")):o.default.createElement(c.default,{onClick:this.activateAds,className:"is-primary",disabled:this.props.isActivatingModule("wordads")},(0,l.translate)("Activate Ads"))),("is-business-plan"===n||"is-premium-plan"===n)&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Social Media Scheduling")),o.default.createElement("p",null,(0,l.translate)("Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.")),this.props.isModuleActivated("publicize")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("schedule_posts")},href:"https://wordpress.com/posts/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Schedule Posts")):o.default.createElement(c.default,{onClick:this.activatePublicize,className:"is-primary",disabled:this.props.isActivatingModule("publicize")},(0,l.translate)("Activate Publicize"))),"is-premium-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Video Hosting")),o.default.createElement("p",null,(0,l.translate)("13Gb of fast, optimized, and ad-free video hosting for your site (powered by VideoPress).")),this.props.isModuleActivated("videopress")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("upload_videos")},href:this.props.siteAdminUrl+"upload.php",className:"is-primary"},(0,l.translate)("Upload Videos Now")):o.default.createElement(c.default,{onClick:this.activateVideoPress,className:"is-primary",disabled:this.props.isActivatingModule("videopress")},(0,l.translate)("Activate VideoPress"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Video Hosting")),o.default.createElement("p",null,(0,l.translate)("Fast, optimized, ad-free, and unlimited video hosting for your site (powered by VideoPress).")),this.props.isModuleActivated("videopress")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("upload_videos")},href:this.props.siteAdminUrl+"upload.php",className:"is-primary"},(0,l.translate)("Upload Videos Now")):o.default.createElement(c.default,{onClick:this.activateVideoPress,className:"is-primary",disabled:this.props.isActivatingModule("videopress")},(0,l.translate)("Activate VideoPress"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("SEO Tools")),o.default.createElement("p",null,(0,l.translate)("Advanced SEO tools to help your site get found when people search for relevant content.")),this.props.isModuleActivated("seo-tools")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_seo")},href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Configure Site SEO")):o.default.createElement(c.default,{onClick:this.activateSeo,className:"is-primary",disabled:this.props.isActivatingModule("seo-tools")},(0,l.translate)("Activate SEO Tools"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Google Analytics")),o.default.createElement("p",null,(0,l.translate)("Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.")),this.props.isModuleActivated("google-analytics")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_ga")},href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Configure Google Analytics")):o.default.createElement(c.default,{onClick:this.activateGoogleAnalytics,className:"is-primary",disabled:this.props.isActivatingModule("google-analytics")},(0,l.translate)("Activate Google Analytics"))),"is-personal-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Explore Premium and Professional Options")),o.default.createElement("p",null,(0,l.translate)("Learn about Jetpack services used by WordPress professionals. On top of the security essentials you currently enjoy, Jetpack offers you:")),o.default.createElement("p",null," • ",(0,l.translate)("Over 200 Premium themes to explore")),o.default.createElement("p",null," • ",(0,l.translate)("Business class security: malware scanning, real-time backups, and threat resolution")),o.default.createElement("p",null," • ",(0,l.translate)("Social media automation and scheduling")),o.default.createElement("p",null," • ",(0,l.translate)("Unlimited and ad-free video hosting")),o.default.createElement("p",null," • ",(0,l.translate)("SEO and social media previewing tools")),o.default.createElement("p",null," • ",(0,l.translate)("Income generation from a WordPress ad program")),o.default.createElement("p",null," • ",(0,l.translate)("Google Analytics integration")),o.default.createElement("p",null,o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("compare_plans")},href:"https://jetpack.com/redirect/?source=plans-compare-personal&site="+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Compare Plans")))),"is-premium-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Explore Jetpack Professional")),o.default.createElement("p",null,(0,l.translate)("Jetpack Professional is the tool used by WordPress professionals. On top of the services you already enjoy, you also benefit from:")),o.default.createElement("p",null," • ",(0,l.translate)("Over 200 Premium themes to explore")),o.default.createElement("p",null," • ",(0,l.translate)("Business class security: real-time backups and threat resolution")),o.default.createElement("p",null," • ",(0,l.translate)("SEO and social media previewing tools")),o.default.createElement("p",null," • ",(0,l.translate)("Unlimited ad-free video hosting")),o.default.createElement("p",null," • ",(0,l.translate)("Google Analytics integration")),o.default.createElement("p",null,o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("compare_plans")},href:"https://jetpack.com/redirect/?source=plans-compare-premium&site="+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Explore Jetpack Professional")))));break;case"is-free-plan":case"dev":t=o.default.createElement("div",{className:"jp-landing__plan-features"},o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Maximum grade security")),o.default.createElement("p",null,(0,l.translate)("Real-time backup with unlimited space, one-click restores, bulletproof spam monitoring, malware defense, and brute-force login protection - all in one place and optimized for WordPress.")),o.default.createElement("p",null,(0,l.translate)("Bulletproof spam filtering protects your brand, your readers, and improves SEO. Malware scanning helps maintain peace of mind and keeps your backend safe from intruders."))),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Premium traffic and monetization tools")),o.default.createElement("p",null,(0,l.translate)("The Jetpack Premium plan now offers you the ability to generate income from your site by showing high-quality paid ads to your visitors. Professional plan customers also benefit from SEO tools to help optimize search engine traffic."))),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Enjoy priority support")),o.default.createElement("p",null,(0,l.translate)("We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible. "))),o.default.createElement("p",null,o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("compare_plans")},href:"is-free-plan"===n?"https://jetpack.com/redirect/?source=plans-main-bottom&site="+this.props.siteRawUrl:"https://jetpack.com/redirect/?source=plans-main-bottom-dev-mode",className:"is-primary"},(0,l.translate)("Compare Plans"))));break;default:t=o.default.createElement("div",{className:"jp-landing__plan-features"},o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o.default.createElement("div",null,o.default.createElement("div",null,o.default.createElement(g.default,null),t))}});t.default=(0,i.connect)(function(e){return{isFetchingPluginsData:(0,m.isFetchingPluginsData)(e),isPluginActive:function(t){return(0,m.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,m.isPluginInstalled)(e,t)},isModuleActivated:function(t){return(0,_.isModuleActivated)(e,t)},isActivatingModule:function(t){return(0,_.isActivatingModule)(e,t)}}},function(e){return{fetchPluginsData:function(){return e((0,m.fetchPluginsData)())},activateModule:function(t){return e((0,_.activateModule)(t))}}})(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}),t.Footer=void 0;var a=n(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(524),u=n(724),d=r(u),p=n(398),f=n(750),h=n(707),m=n(1058),_=r(m),M=n(881),g=r(M),v=t.Footer=o.default.createClass({displayName:"Footer",resetOnClick:function(){window.confirm((0,l.translate)("This will reset all Jetpack options, are you sure?"))&&this.props.resetOptions()},trackVersionClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"version"})},trackTermsClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"terms"})},trackPrivacyClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})},trackDebugClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"debug"})},render:function(){var e=this,t=(0,c.default)(this.props.className,"jp-footer"),n=this.props.currentVersion;return o.default.createElement("div",{className:t},o.default.createElement("div",{className:"jp-footer__a8c-attr-container"},o.default.createElement("a",{href:"https://automattic.com",target:"_blank",rel:"noopener noreferrer"},o.default.createElement("svg",{role:"img",className:"jp-footer__a8c-attr",x:"0",y:"0",viewBox:"0 0 935 38.2","enable-background":"new 0 0 935 38.2","aria-labelledby":"a8c-svg-title"},o.default.createElement("title",{id:"a8c-svg-title"},(0,l.translate)("An Automattic Airline")),o.default.createElement("path",{
39
d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),o.default.createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),o.default.createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})))),o.default.createElement("ul",{className:"jp-footer__links"},o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:this.trackVersionClick,href:"https://jetpack.com",target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:n},n)),o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:this.trackTermsClick,href:"https://wordpress.com/tos/",target:"_blank",rel:"noopener noreferrer",title:(0,l.translate)("WordPress.com Terms of Service"),className:"jp-footer__link"},(0,l.translate)("Terms",{context:"Shorthand for Terms of Service."}))),o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:this.trackPrivacyClick,href:"https://automattic.com/privacy/",target:"_blank",rel:"noopener noreferrer",title:(0,l.translate)("Automattic's Privacy Policy"),className:"jp-footer__link"},(0,l.translate)("Privacy",{context:"Shorthand for Privacy Policy."}))),function(){if(e.props.userCanManageOptions)return o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:e.trackDebugClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:(0,l.translate)("Test your site’s compatibility with Jetpack."),className:"jp-footer__link"},(0,l.translate)("Debug",{context:"Navigation item. Noun. Links to a debugger tool for Jetpack."})))}(),function(){return e.props.isDevVersion&&e.props.userCanManageOptions?o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,g.default)(e.resetOnClick),onClick:e.resetOnClick,className:"jp-footer__link"},(0,l.translate)("Reset Options (dev only)",{context:"Navigation item."}))):""}(),function(){return e.props.isDevVersion?o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,g.default)(e.props.enableDevCard),onClick:e.props.enableDevCard,className:"jp-footer__link"},(0,l.translate)("Dev Tools",{context:"Navigation item."}))):""}(),function(){if(e.props.isDevVersion&&e.props.displayDevCard)return o.default.createElement(_.default,null)}()))}});t.default=(0,i.connect)(function(e){return{currentVersion:(0,p.getCurrentVersion)(e),userCanManageOptions:(0,p.userCanManageOptions)(e),isDevVersion:(0,p.isDevVersion)(e),siteAdminUrl:(0,p.getSiteAdminUrl)(e),isInIdentityCrisis:(0,h.isInIdentityCrisis)(e),displayDevCard:(0,f.canDisplayDevCard)(e)}},function(e){return{resetOptions:function(){return e((0,f.resetOptions)("options"))},enableDevCard:function(){return e((0,f.enableDevCard)())}}})(v)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DevCard=void 0;var a=n(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(872),u=n(398),d=n(735),p=n(707),f=n(750),h=n(466),m=n(874),_=r(m),M=n(881),g=r(M),v=t.DevCard=o.default.createClass({displayName:"DevCard",onPlanChange:function(e){this.props.switchPlanPreview(e.target.value)},onPermissionsChange:function(e){this.props.switchUserPermissions(e.target.value)},onThreatsChange:function(e){this.props.switchThreats(e.target.value)},maybeShowStatsToggle:function(){if(!this.props.isAdmin)return o.default.createElement("div",null,o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"view_stats"},o.default.createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"hide_stats"},o.default.createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!this.props.canViewStats,onChange:this.onPermissionsChange}),"Can not view stats"))))},maybeShowIsLinkedToggle:function(){if(!this.props.isMaster)return o.default.createElement("div",null,o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"is_linked"},o.default.createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"is_unlinked"},o.default.createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!this.props.isUserLinked,onChange:this.onPermissionsChange}),"Unlinked"))))},render:function(){if(!this.props.canDisplayDevCard)return null;var e=(0,c.default)(this.props.className,"jp-dev-card"),t=(0,l.getPlanClass)(this.props.sitePlan.product_slug);return o.default.createElement(_.default,{compact:!0,className:e},o.default.createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,g.default)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),o.default.createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_free"},o.default.createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_personal"},o.default.createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_premium"},o.default.createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_business"},o.default.createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro"))),o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"admin_master"},o.default.createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (master)")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"admin_secondary"},o.default.createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (secondary)")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"editor"},o.default.createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"subscriber"},o.default.createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"nothreats"},o.default.createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"threats"},o.default.createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),this.maybeShowStatsToggle(),this.maybeShowIsLinkedToggle())}});t.default=(0,i.connect)(function(e){return{isDevVersion:(0,u.isDevVersion)(e),sitePlan:(0,d.getSitePlan)(e),canDisplayDevCard:(0,f.canDisplayDevCard)(e),isUserLinked:(0,p.isCurrentUserLinked)(e),canViewStats:(0,u.userCanViewStats)(e),isMaster:(0,u.userIsMaster)(e),isAdmin:(0,u.userCanDisconnectSite)(e),canEditPosts:(0,u.userCanEditPosts)(e),getVaultPressScanThreatCount:function(){return(0,h.getVaultPressScanThreatCount)(e)}}},function(e){return{switchPlanPreview:function(t){return e((0,f.switchPlanPreview)(t))},switchUserPermissions:function(t){return e((0,f.switchUserPermission)(t))},switchThreats:function(t){return e((0,f.switchThreats)(parseInt(t)))},disableDevCard:function(){return e((0,f.disableDevCard)())}}})(v)},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(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(524),u=n(874),d=r(u),p=n(755),f=r(p),h=n(724),m=r(h),_=n(872),M=n(398),g=n(735),v=n(707),b=n(887),y=r(b),A=n(983),E=o.default.createClass({displayName:"SupportCard",getDefaultProps:function(){return{className:"",siteConnectionStatus:!1}},trackBannerClick:function(){m.default.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:this.props.path})},shouldComponentUpdate:function(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug},trackAskQuestionClick:function(){m.default.tracks.recordJetpackClick({target:"support-card",button:"support-ask",page:this.props.path})},trackSearchClick:function(){m.default.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:this.props.path})},render:function(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return o.default.createElement("div",null);var e=(0,c.default)(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug;return o.default.createElement("div",{className:e},o.default.createElement(d.default,{className:"jp-support-card__happiness"},o.default.createElement("div",{className:"jp-support-card__happiness-contact"},o.default.createElement("h3",{className:"jp-support-card__header"},(0,l.translate)("We're here to help")),o.default.createElement("p",{className:"jp-support-card__description"},t?(0,l.translate)("Jetpack comes with free, basic support for all users."):(0,l.translate)("Your paid plan gives you access to prioritized Jetpack support.")),o.default.createElement("p",{className:"jp-support-card__description"},o.default.createElement(f.default,{onClick:this.trackAskQuestionClick,href:this.props.isAtomicSite?"https://wordpress.com/help/contact/":A.JETPACK_CONTACT_SUPPORT},(0,l.translate)("Ask a question")),o.default.createElement(f.default,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?"https://wordpress.com/help/":"https://jetpack.com/support/"},(0,l.translate)("Search our support site"))))),this.props.siteConnectionStatus&&t&&o.default.createElement(y.default,{title:(0,l.translate)("Get a faster resolution to your support questions."),plan:_.PLAN_JETPACK_PERSONAL,callToAction:(0,l.translate)("Upgrade"),onClick:this.trackBannerClick,href:"https://jetpack.com/redirect/?source=support&site="+this.props.siteRawUrl}))}});E.propTypes={siteConnectionStatus:o.default.PropTypes.any.isRequired,className:o.default.PropTypes.string},t.default=(0,i.connect)(function(e){return{sitePlan:(0,g.getSitePlan)(e),siteRawUrl:(0,M.getSiteRawUrl)(e),siteConnectionStatus:(0,v.getSiteConnectionStatus)(e),isFetchingSiteData:(0,g.isFetchingSiteData)(e),isAtomicSite:(0,M.isAtomicSite)(e)}})(E),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(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(524),u=n(874),d=r(u),p=n(755),f=r(p),h=n(724),m=r(h),_=n(983),M=n(729),g=n(398),v=o.default.createClass({displayName:"AppsCard",trackDownloadClick:function(){m.default.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:this.props.path})},dismissCard:function(){this.props.dismissAppCard(),m.default.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:this.props.path})},render:function(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;var e=(0,c.default)(this.props.className,"jp-apps-card");return o.default.createElement("div",{className:e},o.default.createElement(d.default,{className:"jp-apps-card__content"},o.default.createElement("div",{className:"jp-apps-card__top"},o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1240.3 577"},o.default.createElement("path",{fill:"#C8D6E1",d:"M1016.9 546.3V194.8c0-16.9 13.7-30.7 30.7-30.7h162.1c16.9 0 30.7 13.7 30.7 30.7v351.5c0 16.9-13.7 30.7-30.7 30.7h-162.1c-16.9 0-30.7-13.7-30.7-30.7zM956.9-.6H307.1c-23.6 0-42.8 19.2-42.8 42.8v492.3h692.6V-.6zM30.7 575.3H176c16.9 0 30.7-13.7 30.7-30.7V243.3c0-16.9-13.7-30.7-30.7-30.7H30.7c-17 0-30.7 13.8-30.7 30.7v301.3c0 17 13.7 30.7 30.7 30.7z"}),o.default.createElement("path",{fill:"#FFF",d:"M1240.3 508.7h-223.4V231.6h223.4v277.1zM195.8 252.8h-185v268.3h185V252.8zM927.2 500V33.3H299.7V500h627.5z"}),o.default.createElement("path",{fill:"#85A6BC",d:"M993.4 577H219.8c-16.4 0-29.6-13.3-29.6-29.6v-16.1h840v9c0 20.2-16.5 36.7-36.8 36.7z"}),o.default.createElement("path",{fill:"#658EAB",d:"M661.8 554.1H558.5c-12.6 0-22.9-10.2-22.9-22.9h149c.1 12.7-10.1 22.9-22.8 22.9z"}),o.default.createElement("path",{fill:"#74DCFC",d:"M1137.9 356.9c-4.9 20.9-24.6 34.1-46.4 26.9-20.4-6.8-31.8-22.1-29.7-43.5 2.4-24 24.4-35 45.5-30.9 22.1 4.3 35.6 26.6 30.6 47.5zm27.9-33.1c-4.4 1.2-3.1 6.1 1.1 4.9 4.3-1.2 3.3-6.1-1.1-4.9zm23.6 6.5c-4.6.2-3.1 6.1 1.1 4.9 4.3-1.2 1.1-5-1.1-4.9zm-19.6 33.2c2.5-3.6-2.5-7-4.2-2.7-.8 2 1.7 6.3 4.2 2.7zm26.9 3.9c3.9-4.7-3.5-6.7-5.2-2.4-.8 2 2.4 5.8 5.2 2.4zm-49 20.6c-3.1 3.4 2 9.3 4.5 3.7 1.7-4.1-3.1-5.3-4.5-3.7zM70.3 484H38.2v-45.5h32.1V484zm48.4-70.2H86.6V484h32.1v-70.2zm48.5-35.7H135v106h32.1l.1-106z"}),o.default.createElement("path",{fill:"#00AADC",d:"M1061.9 378.7c-.8 1.4-1.5 2.9-1.9 4.4s-.5 3 0 3.9c.3.5.5.8 1 1 .1.1.2.1.3.1.1 0 .2.1.4.1.3 0 .5.1.9.1 1.2.1 2.7-.1 4.1-.6 2.8-.9 5.7-2.3 8.4-4 2.7-1.6 5.4-3.5 7.9-5.4 5.2-3.9 10.1-8.2 14.8-12.7 4.8-4.5 9.3-9.2 13.8-14s8.8-9.7 12.8-14.9c4-5.1 7.8-10.5 10.7-16.1 1.5-2.8 2.7-5.7 3.5-8.6.2-.7.3-1.4.4-2.1.1-.4.1-.7.1-1v-1c0-1.3-.3-2.4-.9-3-.6-.7-1.6-1.1-2.9-1.2-.6-.1-1.4 0-2.1.1s-1.4.2-2.2.5c-3 .8-5.9 2.3-8.7 3.9-.6.3-1.3.1-1.7-.4-.3-.5-.2-1.2.3-1.5 2.6-2.2 5.5-4.1 8.8-5.5 1.7-.7 3.5-1.2 5.5-1.3h.8l.8.1c.3 0 .5.1.8.1l.8.2c.3.1.5.2.8.3l.8.4c.5.3 1 .7 1.5 1.1s.8.9 1.2 1.4c.4.5.5 1 .8 1.5.4 1 .7 2.1.7 3.1.2 2 0 3.9-.4 5.7-.7 3.6-2 6.9-3.5 10-3 6.3-6.8 12-10.8 17.4-4 5.5-8.4 10.6-13 15.6s-9.3 9.7-14.3 14.3c-5 4.5-10.2 8.9-15.8 12.8-2.8 1.9-5.7 3.8-8.8 5.3-1.6.8-3.2 1.5-4.8 2.1-.8.3-1.7.6-2.5.9-.9.2-1.8.5-2.7.6-1.8.3-3.7.5-5.8.1-.5-.1-1-.3-1.5-.5-.3-.1-.5-.3-.8-.4-.2-.2-.5-.3-.7-.5-1-.7-1.6-1.8-1.9-2.9-.5-2.2.1-4.2.9-5.8.8-1.6 1.9-3 3.1-4.3.2-.2.6-.3.9 0 .2 0 .2.3.1.6zm-5.1 61.5c-.1-1.9 1.4-3.5 3.4-3.6 9.7-.6 19.4-1 29-1.2 9.7-.4 19.4-.3 29-.4 9.7-.1 19.4 0 29 .2 9.7.3 19.4.6 29 1.4 1.7.1 3.1 1.4 3.3 3.1.2 1.9-1.3 3.5-3.3 3.7-9.7.8-19.4 1.1-29 1.4-9.7.2-19.4.4-29 .2-9.7-.2-19.4 0-29-.4-9.7-.2-19.4-.6-29-1.2-1.9-.1-3.3-1.4-3.4-3.2zm1.9 36.4c4.8.6 9.7 1 14.5 1.2 4.8.4 9.7.3 14.5.4s9.7 0 14.5-.2c4.8-.3 9.7-.6 14.5-1.4 1.2-.2 2-1.9 1.9-3.7-.1-1.6-.9-2.9-1.9-3-4.8-.8-9.7-1.1-14.5-1.4-4.8-.2-9.7-.4-14.5-.2-4.8.2-9.7 0-14.5.4-4.8.2-9.7.6-14.5 1.2-1.2.2-2 1.8-1.9 3.7 0 1.6.9 2.8 1.9 3zM70.3 484H38.2v-19.5h32.1V484zm48.4-30.1H86.6V484h32.1v-30.1zm48.5-15.4H135V484h32.1l.1-45.5zM33.9 323.6c-.1-1.9 1.4-3.5 3.4-3.6 9.7-.6 19.4-1 29-1.2 9.7-.4 19.4-.3 29-.4 9.7-.1 19.4 0 29 .2 9.7.3 19.4.6 29 1.4 1.7.1 3.1 1.4 3.3 3.1.2 1.9-1.3 3.5-3.3 3.7-9.7.8-19.4 1.1-29 1.4-9.7.2-19.4.4-29 .2-9.7-.2-19.4 0-29-.4-9.7-.2-19.4-.6-29-1.2-1.8-.2-3.3-1.5-3.4-3.2zm1.9 36.3c4.8.6 9.7 1 14.5 1.2 4.8.4 9.7.3 14.5.4s9.7 0 14.5-.2c4.8-.3 9.7-.6 14.5-1.4 1.2-.2 2-1.9 1.9-3.7-.1-1.6-.9-2.9-1.9-3-4.8-.8-9.7-1.1-14.5-1.4-4.8-.2-9.7-.4-14.5-.2-4.8.2-9.7 0-14.5.4-4.8.2-9.7.6-14.5 1.2-1.2.2-2 1.8-1.9 3.7.1 1.6.9 2.9 1.9 3z"}),o.default.createElement("path",{fill:"#0084C0",d:"M1240.3 268h-223.4v-36.5h223.4V268zM195.8 251.9h-185v36.5h185v-36.5zM333.6 82h593.6V33.3H299.7V82"}),o.default.createElement("path",{fill:"#00AADC",d:"M626.9 320.3c.1.3.2.5.4.7-5.3 1.9-11.1 2.9-17.1 2.9-5 0-9.9-.7-14.5-2.1l15.4-44.8 15.8 43.3zm18-50.4c0-6.4-2.3-10.7-4.2-14.2-2.6-4.2-5.1-7.8-5.1-12.1 0-4.7 3.6-9.1 8.6-9.1h.7c-9.1-8.4-21.3-13.5-34.7-13.5-18 0-33.7 9.2-42.9 23.2 1.2 0 2.3.1 3.3.1 5.4 0 13.7-.7 13.7-.7 2.8-.2 3.1 3.9.3 4.2 0 0-2.8.3-5.9.5l18.7 55.7 11.2-33.7-8-21.9c-2.8-.2-5.4-.5-5.4-.5-2.8-.2-2.4-4.4.3-4.2 0 0 8.5.7 13.5.7 5.4 0 13.7-.7 13.7-.7 2.8-.2 3.1 3.9.3 4.2 0 0-2.8.3-5.9.5l18.6 55.2 5.1-17.1c2.7-6.7 4.1-12.2 4.1-16.6zm28.8 2.6c0 35.1-28.4 63.5-63.5 63.5s-63.5-28.4-63.5-63.5 28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5zm-6.4 0c0-31.5-25.6-57.2-57.2-57.2S553 241 553 272.5s25.6 57.1 57.1 57.1 57.2-25.6 57.2-57.1zm-108.5 0c0 20.3 11.8 37.9 29 46.2l-24.5-67.2c-2.9 6.5-4.5 13.5-4.5 21zm96.5-24.7c.2 1.6.3 3.4.3 5.3 0 5.2-1 11.1-3.9 18.4L636 316.9c15.3-8.9 25.5-25.5 25.5-44.4.1-8.9-2.2-17.3-6.2-24.7z"})),o.default.createElement("div",{className:"jp-apps-card__clouds"},o.default.createElement("img",{src:_.imagePath+"/white-clouds.svg",alt:""}))),o.default.createElement("div",{className:"jp-apps-card__description"},o.default.createElement("h3",{className:"jp-apps-card__header"},(0,l.translate)("Get WordPress Apps for every device")),o.default.createElement("p",{className:"jp-apps-card__paragraph"},(0,l.translate)("Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.")),o.default.createElement(f.default,{className:"is-primary",onClick:this.trackDownloadClick,href:"https://apps.wordpress.com/"},(0,l.translate)("Download the free apps")),o.default.createElement("br",null),o.default.createElement("a",{href:"javascript:void(0)",onClick:this.dismissCard},(0,l.translate)("I already use this app.")))))}});v.propTypes={className:o.default.PropTypes.string},t.default=(0,i.connect)(function(e){return{isAppsCardDismissed:(0,M.appsCardDismissed)(e),arePromotionsActive:(0,g.arePromotionsActive)(e)}},function(e){return{dismissAppCard:function(){return e((0,M.updateSettings)({dismiss_dash_app_card:!0}))}}})(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(142),o=r(a),i=n(154),s=n(398),c=n(512),l=n(765),u=r(l),d=n(803),p=r(d),f=n(1023),h=r(f),m=n(828),_=r(m),M=n(707),g=o.default.createClass({displayName:"NonAdminView",shouldComponentUpdate:function(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.route.path!==this.props.route.path},renderMainContent:function(e){var t=void 0,n=o.default.createElement(u.default,this.props);switch(e){case"/dashboard":default:t=o.default.createElement(h.default,this.props);break;case"/settings":case"/writing":case"/sharing":this.props.isSubscriber||(n=o.default.createElement(p.default,this.props),t=o.default.createElement(_.default,{route:this.props.route,siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm}))}return window.wpNavMenuClassChange(),o.default.createElement("div",null,n,t)},render:function(){return this.renderMainContent(this.props.route.path)}});g.propTypes={userCanViewStats:o.default.PropTypes.bool.isRequired,isSubscriber:o.default.PropTypes.bool.isRequired,siteConnectionStatus:o.default.PropTypes.any.isRequired},t.default=(0,i.connect)(function(e){return{userCanViewStats:(0,s.userCanViewStats)(e),siteConnectionStatus:(0,M.getSiteConnectionStatus)(e),isSubscriber:(0,s.userIsSubscriber)(e),isModuleActivated:function(t){return(0,c.isModuleActivated)(e,t)}}})(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}),t.UserUnlinked=t.DevModeNotice=t.StagingSiteNotice=t.DevVersionNotice=void 0;var a=n(142),o=r(a),i=n(154),s=n(880),c=r(s),l=n(884),u=r(l),d=n(524),p=n(1063),f=r(p),h=n(1070),m=r(h),_=n(707),M=n(398),g=n(1073),v=r(g),b=n(887),y=r(b),A=n(983),E=t.DevVersionNotice=o.default.createClass({displayName:"DevVersionNotice",render:function(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&o.default.createElement(c.default,{showDismiss:!1,text:(0,d.translate)("You are currently running a development version of Jetpack.")},o.default.createElement(u.default,{href:A.JETPACK_CONTACT_BETA_SUPPORT},(0,d.translate)("Submit Beta feedback")))}});E.propTypes={isDevVersion:o.default.PropTypes.bool.isRequired,userIsSubscriber:o.default.PropTypes.bool.isRequired};var T=t.StagingSiteNotice=o.default.createClass({displayName:"StagingSiteNotice",render:function(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){var e={text:(0,d.translate)("You are running Jetpack on a staging server."),status:"is-basic",showDismiss:!1};return o.default.createElement(c.default,e,o.default.createElement(u.default,{href:"https://jetpack.com/support/staging-sites/"},(0,d.translate)("More Info")))}return!1}});T.propTypes={isStaging:o.default.PropTypes.bool.isRequired,isInIdentityCrisis:o.default.PropTypes.bool.isRequired};var L=t.DevModeNotice=o.default.createClass({displayName:"DevModeNotice",render:function(){if("dev"===this.props.siteConnectionStatus){var e=this.props.siteDevMode,t=[];e.filter&&t.push((0,d.translate)("{{li}}The jetpack_development_mode filter is active{{/li}}",{components:{li:o.default.createElement("li",null)}})),e.constant&&t.push((0,d.translate)("{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}",{components:{li:o.default.createElement("li",null)}})),e.url&&t.push((0,d.translate)("{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}",{components:{li:o.default.createElement("li",null)}}));var n=(0,d.translate)("Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}",{components:{a:o.default.createElement("a",{href:"https://jetpack.com/support/development-mode/",target:"_blank",rel:"noopener noreferrer"}),reasons:o.default.createElement("ul",null,t)}});return o.default.createElement(c.default,{showDismiss:!1,status:"is-info",text:n},o.default.createElement(u.default,{href:"https://jetpack.com/development-mode/"},(0,d.translate)("Learn More")))}return!1}});L.propTypes={siteConnectionStatus:o.default.PropTypes.oneOfType([o.default.PropTypes.string,o.default.PropTypes.bool]).isRequired,siteDevMode:o.default.PropTypes.oneOfType([o.default.PropTypes.bool,o.default.PropTypes.object]).isRequired};var w=t.UserUnlinked=o.default.createClass({displayName:"UserUnlinked",render:function(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&o.default.createElement("div",{className:"jp-unlinked-notice"},o.default.createElement(y.default,{title:(0,d.translate)("Connect your account to get the most out of Jetpack"),callToAction:(0,d.translate)("Connect to WordPress.com"),href:this.props.connectUrl+"&from=unlinked-user-connect",icon:"my-sites"}))}});w.propTypes={connectUrl:o.default.PropTypes.string.isRequired,siteConnected:o.default.PropTypes.bool.isRequired};var k=o.default.createClass({displayName:"JetpackNotices",render:function(){return o.default.createElement("div",{"aria-live":"polite"},o.default.createElement(f.default,null),o.default.createElement(m.default,null),o.default.createElement(E,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),o.default.createElement(L,{siteConnectionStatus:this.props.siteConnectionStatus,siteDevMode:this.props.siteDevMode}),o.default.createElement(T,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),o.default.createElement(v.default,null),o.default.createElement(w,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanManageModules&&o.default.createElement(c.default,{showDismiss:!1,status:"is-warning",text:(0,d.translate)("This site is not connected to WordPress.com. Please ask the site administrator to connect.")}))}});t.default=(0,i.connect)(function(e){return{connectUrl:(0,_.getConnectUrl)(e),siteConnectionStatus:(0,_.getSiteConnectionStatus)(e),userCanManageModules:(0,M.userCanManageModules)(e),userIsSubscriber:(0,M.userIsSubscriber)(e),isLinked:(0,_.isCurrentUserLinked)(e),isDevVersion:(0,M.isDevVersion)(e),siteDevMode:(0,_.getSiteDevMode)(e),isStaging:(0,_.isStaging)(e),isInIdentityCrisis:(0,_.isInIdentityCrisis)(e)}})(k)},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(142),o=r(a),i=n(725),s=r(i),c=n(880),l=r(c),u=n(884),d=r(u),p=n(1064),f=r(p),h=n(154),m=n(390),_=n(522),M=(0,s.default)("calypso:notices");n(1068);var g=o.default.createClass({displayName:"NoticesList",propTypes:{id:o.default.PropTypes.string,notices:o.default.PropTypes.oneOfType([o.default.PropTypes.object,o.default.PropTypes.array])},getDefaultProps:function(){return{id:"overlay-notices",notices:Object.freeze([])}},componentWillMount:function(){M("Mounting Global Notices React component.")},removeNotice:function(e){e&&f.default.removeNotice(e)},render:function(){var e=this.props.notices[this.props.id]||[],t=e.map(function(e,t){return o.default.createElement(l.default,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.removeNotice.bind(this,e),showDismiss:e.showDismiss},e.button&&o.default.createElement(d.default,{href:e.href,onClick:e.onClick},e.button))},this);return t=t.concat(this.props.storeNotices.map(function(e,t){return o.default.createElement(l.default,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.props.removeNotice.bind(this,e.noticeId),text:e.text})},this)),t.length?o.default.createElement("div",{id:this.props.id,className:"global-notices"},t):null}});t.default=(0,h.connect)(function(e){return{storeNotices:e.globalNotices}},function(e){return(0,m.bindActionCreators)({removeNotice:_.removeNotice},e)})(g),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(725)("calypso:notices"),a=n(1065);r("initializing notices");var o={containerNames:{}};a(o);var i=[];n(1066);var s={new:function(e,t,n){var a=t.overlay?"overlay-notices":"notices";o.containerNames[a]=a,r("creating notice",e,t,n),o[a]=[];var c={type:t.type||"message",status:n,text:e,duration:t.duration,container:a,button:t.button,href:t.href,onClick:function(e){if("function"==typeof t.onClick){var n=s.removeNotice.bind(s,c);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?i.push(c):o[a].push(c),o.emit("change"),c},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:o,removeNotice:function(e){if(e.container){var t=o[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),o.emit("change"))}},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");var n,a,s=!1,c=function(e){return e.persistent};for(a in o.containerNames)n=o[a].length,o[a]=o[a].filter(c),n!==o[a].length&&(s=!0);i.length&&(i.forEach(function(e){o[e.container]=[],o[e.container].push(e)}),i=[]),s&&o.emit("change"),t()},clearNotices:function(e){o[e]=[],o.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.default=s,e.exports=t.default},function(e,t,n){"use strict";var r=n(650).EventEmitter,a=n(276);e.exports=function(e){a(e,r.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},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(142),o=r(a),i=n(154),s=n(524),c=n(880),l=r(c),u=n(398),d=n(741),p=n(884),f=r(p),h=n(1071),m=r(h),_=o.default.createClass({displayName:"JetpackStateNotices",getInitialState:function(){return{showNotice:!0}},dismissJetpackStateNotice:function(){this.setState({showNotice:!1})},getErrorFromKey:function(e){var t=this.props.jetpackStateNoticesErrorDescription||!1,n="";switch(e){case"cheatin":n=(0,s.translate)("Cheatin' uh?");break;case"access_denied":n=(0,s.translate)("{{p}}Would you mind telling us why you did not complete the Jetpack connection in this {{a}}2 question survey{{/a}}?{{/p}}{{p}}A Jetpack connection is required for our free security and traffic features to work.{{/p}}",{components:{a:o.default.createElement("a",{href:"https://jetpack.com/cancelled-connection/",target:"_blank",rel:"noopener noreferrer"}),p:o.default.createElement("p",null)}});break;case"wrong_state":n=(0,s.translate)("You need to stay logged in to your WordPress blog while you authorize Jetpack.");break;case"invalid_client":n=(0,s.translate)("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.");break;case"invalid_grant":n=(0,
40
s.translate)('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.');break;case"site_inaccessible":case"site_requires_authorization":n=(0,s.translate)("Your website needs to be publicly accessible to use Jetpack: %(error_key)s",{args:{error_key:e}});break;case"not_public":n=(0,s.translate)("{{s}}Your Jetpack has a glitch.{{/s}} Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).",{components:{s:o.default.createElement("strong",null)}});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=(0,s.translate)("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.");break;case"register_http_request_failed":case"token_http_request_failed":n=(0,s.translate)("Jetpack could not contact WordPress.com: %(error_key)s. This usually means something is incorrectly configured on your web host.",{args:{error_key:e}});break;case"no_role":case"no_cap":case"no_code":case"no_state":case"invalid_state":case"invalid_request":case"invalid_scope":case"unsupported_response_type":case"invalid_token":case"no_token":case"missing_secrets":case"home_missing":case"siteurl_missing":case"gmt_offset_missing":case"site_name_missing":case"secret_1_missing":case"secret_2_missing":case"site_lang_missing":case"home_malformed":case"siteurl_malformed":case"gmt_offset_malformed":case"timezone_string_malformed":case"site_name_malformed":case"secret_1_malformed":case"secret_2_malformed":case"site_lang_malformed":case"secrets_mismatch":case"verify_secret_1_missing":case"verify_secret_1_malformed":case"verify_secrets_missing":case"verify_secrets_mismatch":n=(0,s.translate)("{{s}}Your Jetpack has a glitch.{{/s}} We're sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %(error_key)s",{components:{s:o.default.createElement("strong",null)},args:{error_key:e}});break;default:n=e}return t?o.default.createElement("div",null,n,o.default.createElement("br",null),t):o.default.createElement("div",null,n)},getMessageFromKey:function(e){var t="",n="is-info",r=void 0;switch(e){case"modules_activated":t=(0,s.translate)("Welcome to {{s}}Jetpack %(jetpack_version)s{{/s}}!",{args:{jetpack_version:this.props.currentVersion},components:{s:o.default.createElement("strong",null)}});break;case"already_authorized":t=(0,s.translate)("Your Jetpack is already connected."),n="is-success";break;case"authorized":t=(0,s.translate)("You're fueled up and ready to go, Jetpack is now active."),n="is-success";break;case"linked":t=(0,s.translate)("You're fueled up and ready to go."),n="is-success";break;case"protect_misconfigured_ip":t=(0,s.translate)("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site."),n="is-info",r=o.default.createElement(f.default,{href:"https://jetpack.com/support/security/troubleshooting-protect/"},(0,s.translate)("Learn More"));break;default:t=e}return[t,n,r]},renderContent:function(){var e="is-info",t="",n=void 0,r=this.props.jetpackStateNoticesErrorCode,a=this.props.jetpackStateNoticesMessageCode;if(r||a){if(r&&(t=this.getErrorFromKey(r),"access_denied"!==r&&(e="is-error")),"modules_activated"===a&&"5.2.1"===this.props.currentVersion)return o.default.createElement(m.default,{dismiss:this.dismissJetpackStateNotice,adminUrl:this.props.adminUrl});if(a){var i=this.getMessageFromKey(a);t=i[0],e=i[1],n=i[2]}return o.default.createElement(l.default,{status:e,onDismissClick:this.dismissJetpackStateNotice,text:t},n)}},render:function(){return o.default.createElement("div",null,this.state.showNotice?this.renderContent():null)}});t.default=(0,i.connect)(function(e){return{currentVersion:(0,u.getCurrentVersion)(e),jetpackStateNoticesErrorCode:(0,d.getJetpackStateNoticesErrorCode)(e),jetpackStateNoticesMessageCode:(0,d.getJetpackStateNoticesMessageCode)(e),jetpackStateNoticesErrorDescription:(0,d.getJetpackStateNoticesErrorDescription)(e),adminUrl:(0,u.getSiteAdminUrl)(e)}})(_),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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(755),g=r(M),v=n(1072),b=r(v),y=n(983),A=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("With this release, your contact form just got a bit sweeter. We moved the big old button right down into your editor's toolbar on the right. Yes, it's a little smaller, but it fits in a bit better, don't you think? Oh and all your forms now have a preview that can be edited all right inside the editor.")),m.default.createElement("img",{src:y.imagePath+"cf-ss.png",alt:(0,_.translate)("Contact Form screen shot")}),m.default.createElement("p",null,(0,_.translate)("To use it, just open up a post or page to the visual editor. From there, you'll find a button inside the toolbar with an icon that looks a bit like the contact form. It is usually furthest to the right. Then just click the button and, voila, a contact form has been created!")),m.default.createElement("p",null,(0,_.translate)("You will likely want to customize it to properly encourage folks to contact you. To do that, simply select the contact form preview and then click or tap the edit button. It's the one that looks like a pencil.")),m.default.createElement("div",{className:"jp-dialogue__cta-container"},m.default.createElement(g.default,{primary:!0,href:this.props.adminUrl+"post-new.php"},(0,_.translate)("Try it out!")),m.default.createElement("p",{className:"jp-dialogue__note"},m.default.createElement("a",{href:"https://jetpack.com/?p=22509"},(0,_.translate)("Read the full release post")))))}},{key:"render",value:function(){return m.default.createElement(b.default,{svg:m.default.createElement("img",{src:y.imagePath+"people-around-page.svg",width:"250",alt:(0,_.translate)("People around page")}),title:(0,_.translate)("A new contact form is here at last!"),content:this.renderInnerContent(),dismiss:this.props.dismiss})}}]),t}(h.Component);b.default.propTypes={dismiss:m.default.PropTypes.func},t.default=A,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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(874),g=r(M),v=n(757),b=r(v),y=n(839),A=r(y),E=n(792),T=r(E),L=n(881),w=r(L),k=n(983),S=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=(0,A.default)(this.props.className,"jp-dialogue");return m.default.createElement("div",{className:"jp-dialogue-full__container"},m.default.createElement("img",{src:k.imagePath+"stars-full.svg",width:"60",height:"60",alt:(0,_.translate)("Stars"),className:"jp-jumpstart-full__svg-stars"}),m.default.createElement("img",{src:k.imagePath+"jupiter.svg",width:"50",height:"100",alt:(0,_.translate)("Jupiter"),className:"jp-jumpstart-full__svg-jupiter"}),this.props.showDismiss&&m.default.createElement(T.default,{icon:"cross-small",className:"jp-dialogue-full__dismiss",tabIndex:"0",onKeyDown:(0,w.default)(this.props.dismiss),onClick:this.props.dismiss}),m.default.createElement("div",{className:e},this.props.svg,m.default.createElement("h1",{className:"jp-dialogue__title"},this.props.title),m.default.createElement(g.default,null,this.props.content),m.default.createElement("div",null,this.props.belowContent)))}}]),t}(h.Component);S.propTypes={content:m.default.PropTypes.oneOfType([m.default.PropTypes.string,m.default.PropTypes.object]).isRequired,belowContent:m.default.PropTypes.oneOfType([m.default.PropTypes.string,m.default.PropTypes.object]).isRequired,svg:m.default.PropTypes.oneOfType([m.default.PropTypes.bool,m.default.PropTypes.object]),dismissOnClick:m.default.PropTypes.func,showDismiss:m.default.PropTypes.bool,title:m.default.PropTypes.string},S.defaultProps={svg:!1,showDismiss:!0,dismiss:b.default,content:"",belowContent:"",title:""},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(142),o=r(a),i=n(166),s=n(154),c=n(880),l=r(c),u=n(524),d=n(741),p=o.default.createClass({displayName:"DismissableNotices",renderNotices:function(){var e=this.props.jetpackNotices;switch(e){case"disconnected":return!this.props.isDismissed(e)&&o.default.createElement("div",null,o.default.createElement(l.default,{onDismissClick:this.props.dismissJetpackActionNotice.bind(null,e)},(0,u.translate)("You have successfully disconnected Jetpack"),o.default.createElement("br",null),(0,u.translate)("Would you tell us why? Just {{a}}answering two simple questions{{/a}} would help us improve Jetpack.",{components:{a:o.default.createElement("a",{href:"https://jetpack.com/survey-disconnected/",target:"_blank",rel:"noopener noreferrer"})}})));default:return!1}},render:function(){return o.default.createElement("div",null,this.renderNotices())}});t.default=(0,s.connect)(function(e){return{jetpackNotices:(0,d.getJetpackNotices)(e),isDismissed:function(t){return(0,d.isNoticeDismissed)(e,t)}}},function(e){return(0,i.bindActionCreators)({dismissJetpackActionNotice:d.dismissJetpackActionNotice},e)})(p),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(142),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=a.default.createClass({displayName:"AdminNotices",componentDidMount:function(){var e=jQuery(this.refs.adminNotices),t=jQuery(".vp-notice");t.length>0&&t.each(function(){var t=jQuery(this).hasClass("vp-registered"),n=t?"is-success":"is-warning",r=jQuery(this).addClass("dops-notice vp-notice-jp "+n).removeClass("wrap vp-notice"),a=t?'<svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></g></svg>':'<svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"></path></g></svg>';r.wrapInner('<span class="dops-notice__content">'),r.find(".dops-notice__content").before(a),r.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),r.find("h3").replaceWith(function(){return jQuery("<strong />",{html:this.innerHTML})}),r.find("p").replaceWith(function(){return jQuery("<div/>",{html:this.innerHTML})}),r.find('a[href*="admin.php?page=vaultpress"]').remove(),r.prependTo(e).css("display","flex")});var n=jQuery(".woocommerce-message");n.length>0&&n.each(function(){var t=jQuery(this).addClass("dops-notice").removeClass("updated wc-connect");t.find(".button-primary").addClass("dops-notice__action").removeClass("button-primary").detach().appendTo(t),t.find("p").not(".submit").wrapAll('<span class="dops-notice__text"/>');var n=t.find(".dops-notice__text");n.find("p").replaceWith(function(){return jQuery("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})}),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)})},render:function(){return a.default.createElement("div",{ref:"adminNotices","aria-live":"polite"})}});t.default=o,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var r=n(142),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(154),i=n(744),s=t.Tracker=a.default.createClass({displayName:"Tracker",componentWillReceiveProps:function(e){var t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&t("jetpack_wpa_search_term",{term:e.searchTerm})},render:function(){return null}});s.propTypes={analytics:a.default.PropTypes.object,searchTerm:a.default.PropTypes.string},t.default=(0,o.connect)(function(e){return{searchTerm:(0,i.getSearchTerm)(e)}})(s)},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(872),g=n(724),v=r(g),b=n(735),y=n(729),A=n(1077),E=r(A),T=n(1078),L=r(T),w=n(1079),k=r(w),S=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e.state={planWelcomeDismissed:!1},e.boundDismiss=e.dismissWelcome.bind(e),e}return(0,f.default)(t,e),(0,l.default)(t,[{key:"dismissWelcome",value:function(){var e=(0,M.getPlanClass)(this.props.sitePlan.product_slug);v.default.tracks.recordEvent("jetpack_warm_welcome_plan_dismiss",{planClass:e}),this.setState({planWelcomeDismissed:!0}),this.props.dismiss()}},{key:"render",value:function(){var e=(0,M.getPlanClass)(this.props.sitePlan.product_slug),t={dismiss:this.boundDismiss,siteRawUrl:this.props.siteRawUrl,planClass:e};if(!this.props.newPlanActivated||!this.props.userCanManageModules||this.state.planWelcomeDismissed)return!1;switch(e){case"is-personal-plan":return m.default.createElement(E.default,t);case"is-premium-plan":return m.default.createElement(L.default,t);case"is-business-plan":return m.default.createElement(k.default,t);default:return!1}}}]),t}(h.Component);S.propTypes={dismiss:m.default.PropTypes.func,newPlanActivated:m.default.PropTypes.bool,userCanManageModules:m.default.PropTypes.bool},S.defaultProps={newPlanActivated:!1,userCanManageModules:!1},t.default=(0,_.connect)(function(e){return{sitePlan:(0,b.getSitePlan)(e)}},function(e){return{dismiss:function(){return e((0,y.updateSettings)({show_welcome_for_new_plan:!1}))}}})(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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(724),g=r(M),v=n(1072),b=r(v),y=n(755),A=r(y),E=n(983),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){g.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("Thanks for choosing a Jetpack Personal plan. Jetpack is now backing up your site and scanning for security threats.")),m.default.createElement("img",{src:E.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Themes")}),m.default.createElement("p",null,(0,_.translate)("With Jetpack Personal, you have access to more than 100 free, professionally-designed WordPress themes. Choose the theme that best fits your site and customize colors, images, or add a variety of new widgets.")),m.default.createElement("img",{src:E.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Sharing")}),m.default.createElement("p",null,(0,_.translate)("Using Jetpack’s powerful Publicize feature and built-in sharing tools, you’ll find new ways to grow your following and increase traffic. Automatically share your newest posts on social media, or allow followers to subscribe via email for your latest content right in their inbox.")),m.default.createElement("img",{src:E.imagePath+"security.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Security")}),m.default.createElement("p",null,(0,_.translate)("Jetpack keeps you safe, too: you’re protected from spam in comments and contact forms, and our brute force login protection prevents hackers from accessing your data. And if something does go wrong, you can restore a backup of your site in a single click.")),m.default.createElement(A.default,{className:"jp-welcome-new-plan__button",href:"#/traffic",onClick:this.props.dismiss,primary:!0},(0,_.translate)("Got it!")))}},{key:"render",value:function(){return m.default.createElement(b.default,{svg:m.default.createElement("img",{src:E.imagePath+"connect-jetpack.svg",width:"160",alt:(0,_.translate)("Welcome personal"),style:{paddingLeft:"60px"}}),title:(0,_.translate)("Your Personal Jetpack plan is powering up!"),content:this.renderInnerContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-personal"})}}]),t}(h.Component);T.propTypes={dismiss:m.default.PropTypes.func},t.default=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});var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(874),g=r(M),v=n(724),b=r(v),y=n(1072),A=r(y),E=n(983),T=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.clickCtaDismissVideo=n.clickCtaDismiss.bind(n,"video"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_click",{planClass:this.props.planClass,cta:e}),this.props.dismiss()}},{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("Thanks for choosing a Jetpack Premium plan. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.")),m.default.createElement("img",{src:E.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Themes")}),m.default.createElement("p",null,(0,_.translate)("With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 200 free themes, or enhance your content with up to 13 GB of HD video -- all hosted free of ads or watermarks.")),m.default.createElement("img",{src:E.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Sharing")}),m.default.createElement("p",null,(0,_.translate)("Using Jetpack’s powerful sharing tools, you can automatically share your newest posts on social media, or schedule your content to be re-shared at any date or time you choose. And along with growing your following, you can grow your business with tools like payment buttons and ads.")),m.default.createElement("img",{src:E.imagePath+"security.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Security")}),m.default.createElement("p",null,(0,_.translate)("Keeping your hard work safe is important, too. Jetpack Premium gives you brute force login protection, automated spam filtering, and malware scanning. You also get daily backups with hassle-free restores, just in case you need them.")),m.default.createElement("p",null,(0,_.translate)("Start exploring Jetpack Premium now to see all the benefits of your new plan.")))}},{key:"renderBelowContent",value:function(){return m.default.createElement("div",null,m.default.createElement(g.default,{href:"#/writing",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissVideo},(0,_.translate)("Enable premium video player")),m.default.createElement(g.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,_.translate)("Monetize your site with ads")))}},{key:"render",value:function(){return m.default.createElement(A.default,{svg:m.default.createElement("img",{src:E.imagePath+"generating-cash-2.svg",width:"250",alt:(0,_.translate)("Welcome Premium")}),title:(0,_.translate)("Your Premium Jetpack plan is powering up!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-premium"})}}]),t}(h.Component);T.propTypes={dismiss:m.default.PropTypes.func},t.default=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});var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(874),g=r(M),v=n(724),b=r(v),y=n(1072),A=r(y),E=n(983),T=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.clickCtaDismissThemes=n.clickCtaDismiss.bind(n,"themes"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n.clickCtaDismissSeo=n.clickCtaDismiss.bind(n,"seo"),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_click",{planClass:this.props.planClass,cta:e}),this.props.dismiss()}},{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("Thanks for choosing a Jetpack Professional plan. Jetpack is now backing up your content, scanning for security threats, and granting access to premium themes.")),m.default.createElement("img",{src:E.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Themes")}),m.default.createElement("p",null,(0,_.translate)("With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 100 premium themes. Customize your content with a variety of widgets, or add unlimited videos to your posts and pages -- displayed free of ads or watermarks.")),m.default.createElement("img",{src:E.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Sharing")}),m.default.createElement("p",null,(0,_.translate)("Growing your following is easy with your Professional plan, thanks to content sharing and scheduling, SEO tools, and built-in subscription options. You can monetize your site with a simple payment button and in-line ads, and monitor the success of your efforts by integrating with Google Analytics.")),m.default.createElement("img",{src:E.imagePath+"security.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Security")}),m.default.createElement("p",null,(0,_.translate)("Jetpack Professional gives you everything you need to keep your hard work safe, including on-demand backups and malware scans with one-click restores and issue resolution. Your site will be fully protected against spam, malicious code, and brute force login attempts.")),m.default.createElement("p",null,(0,_.translate)("Start exploring Jetpack Professional now to see all the benefits of your new plan.")))}},{key:"renderBelowContent",value:function(){return m.default.createElement("div",null,m.default.createElement(g.default,{href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissThemes},(0,_.translate)("Install premium themes")),m.default.createElement(g.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,_.translate)("Monetize your site with ads")),m.default.createElement(g.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissSeo},(0,_.translate)("Review SEO features")))}},{key:"render",value:function(){return m.default.createElement(A.default,{svg:m.default.createElement("img",{src:E.imagePath+"people-around-page.svg",width:"250",alt:(0,_.translate)("Welcome Professional")}),title:(0,_.translate)("Your Professional Jetpack plan is taking care of business!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-professional"})}}]),t}(h.Component);T.propTypes={dismiss:m.default.PropTypes.func},t.default=T,e.exports=t.default}]);
29
f.default)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return o.default.createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},o.default.createElement(d.default,{icon:"info-outline",size:18}),this.props.screenReaderText?o.default.createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",o.default.createElement(l.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,f.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";m.default.ga.recordEvent(t,"InfoPopover: "+n+r)}}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}(),c=n(142),l=r(c),u=n(1),d=r(u),p=n(725),f=r(p),h=n(756),m=r(h),_=n(902),M=r(_),g=n(921),v=r(g),b=n(276),y=r(b),A=n(944),E=r(A),T=n(945);n(948);var L=function(){},w=(0,f.default)("calypso:popover"),k=new Set,S=function(e){function t(e){a(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setPopoverId(e.id),n.setDOMBehavior=n.setDOMBehavior.bind(n),n.setPosition=n.setPosition.bind(n),n.onClickout=n.onClickout.bind(n),n.onKeydown=n.onKeydown.bind(n),n.onWindowChange=n.onWindowChange.bind(n),n.state={show:e.isVisible,left:-99999,top:-99999,positionClass:n.getPositionClass(e.position)},n}return i(t,e),s(t,[{key:"componentDidMount",value:function(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,T.bindWindowListeners)()}},{key:"componentWillReceiveProps",value:function(e){if((0,T.isElement)(e.context)?this.domContext=e.context:this.domContext=d.default.findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}},{key:"componentDidUpdate",value:function(e){var t=this.props.isVisible;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after inject DOM"),void this.setPosition()):null}},{key:"componentWillUnmount",value:function(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,T.unbindWindowListeners)(),k.delete(this.id),w("current popover instances: ",k.size)}},{key:"bindEscKeyListener",value:function(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}},{key:"unbindEscKeyListener",value:function(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}},{key:"onKeydown",value:function(e){if(27!==e.keyCode)return null;this.close(!0)}},{key:"bindClickoutHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=(0,M.default)(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}},{key:"unbindClickoutHandler",value:function(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}},{key:"onClickout",value:function(e){var t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){var n=d.default.findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}},{key:"bindDebouncedReposition",value:function(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}},{key:"unbindDebouncedReposition",value:function(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}},{key:"onWindowChange",value:function(){this.willReposition=window.requestAnimationFrame(this.setPosition)}},{key:"setDOMBehavior",value:function(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,T.isElement)(this.props.context)?this.domContext=this.props.context:this.domContext=d.default.findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}},{key:"getPositionClass",value:function(){return"is-"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position).replace(/\s+/g,"-")}},{key:"computePosition",value:function(){if(!this.props.isVisible)return null;var e=this.domContainer,t=this.domContext,n=this.props.position;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;var r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=(0,T.suggested)(n,e,t),this.debug("suggested position: %o",r));var a=(0,y.default)({},(0,T.constrainLeft)((0,T.offset)(r,e,t),e),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",a),a}},{key:"debug",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];w.apply(void 0,["[%s] "+e,this.id].concat(n))}},{key:"setPopoverId",value:function(e){this.id=e||"pop__"+(0,v.default)(16),k.add(this.id),this.debug("creating ..."),w("current popover instances: ",k.size)}},{key:"setPosition",value:function(){var e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}},{key:"getStylePosition",value:function(){var e=this.state;return{left:e.left,top:e.top}}},{key:"show",value:function(){var e=this;if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",this.props.showDelay+"ms"),this.clearShowTimer(),this._openDelayTimer=setTimeout(function(){e.setState({show:!0})},this.props.showDelay)}},{key:"hide",value:function(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}},{key:"clearShowTimer",value:function(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}},{key:"render",value:function(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;var e=(0,m.default)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),l.default.createElement(E.default,{className:this.props.rootClassName},l.default.createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},l.default.createElement("div",{className:"dops-popover__arrow"}),l.default.createElement("div",{className:"dops-popover__inner"},this.props.children)))}}]),t}(c.Component);S.propTypes={autoPosition:c.PropTypes.bool,className:c.PropTypes.string,closeOnEsc:c.PropTypes.bool,id:c.PropTypes.string,ignoreContext:c.PropTypes.shape({getDOMNode:l.default.PropTypes.function}),position:c.PropTypes.string,rootClassName:c.PropTypes.string,showDelay:c.PropTypes.number,onClose:c.PropTypes.func.isRequired,onShow:c.PropTypes.func},S.defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:L},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return f.set(e,t),function(){f.delete(e)}}function o(e){f.forEach(function(t,n){(0,p.default)(n,e.target)||t.call(n,e)})}function i(e){e||(e=document),u.default.bind(e,"click",o)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(903),c=r(s);t.default=a;var l=n(919),u=r(l),d=n(920),p=r(d),f=new c.default;a.globalClick=o,a.install=i,"undefined"!=typeof document&&i(document),e.exports=t.default},function(e,t,n){e.exports={default:n(904),__esModule:!0}},function(e,t,n){n(384),n(323),n(367),n(905),n(912),n(915),n(917),e.exports=n(331).Map},function(e,t,n){"use strict";var r=n(906),a=n(907);e.exports=n(908)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(a(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(a(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(335).f,a=n(348),o=n(486),i=n(332),s=n(474),c=n(475),l=n(327),u=n(370),d=n(487),p=n(339),f=n(375).fastKey,h=n(907),m=p?"_s":"size",_=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e(function(e,r){s(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&c(r,n,e[l],e)});return o(u.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),r=_(n,e);if(r){var a=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=a),a&&(a.p=o),n._f==r&&(n._f=a),n._l==r&&(n._l=o),n[m]--}return!!r},forEach:function(e){h(this,t);for(var n,r=i(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!_(h(this,t),e)}}),p&&r(u.prototype,"size",{get:function(){return h(this,t)[m]}}),u},def:function(e,t,n){var r,a,o=_(e,t);return o?o.v=n:(e._l=o={i:a=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==a&&(e._i[a]=o)),e},getEntry:_,setStrong:function(e,t,n){l(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?u(0,n.k):"values"==t?u(0,n.v):u(0,[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){var r=n(337);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r=n(330),a=n(329),o=n(375),i=n(340),s=n(334),c=n(486),l=n(475),u=n(474),d=n(337),p=n(363),f=n(335).f,h=n(909)(0),m=n(339);e.exports=function(e,t,n,_,M,g){var v=r[e],b=v,y=M?"set":"add",A=b&&b.prototype,E={};return m&&"function"==typeof b&&(g||A.forEach&&!i(function(){(new b).entries().next()}))?(b=t(function(t,n){u(t,b,e,"_c"),t._c=new v,void 0!=n&&l(n,M,t[y],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in A&&(!g||"clear"!=e)&&s(b.prototype,e,function(n,r){if(u(this,b,e),!t&&g&&!d(n))return"get"==e&&void 0;var a=this._c[e](0===n?0:n,r);return t?this:a})}),g||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=_.getConstructor(t,e,M,y),c(b.prototype,n),o.NEED=!0),p(b,e),E[e]=b,a(a.G+a.W+a.F,E),g||_.setStrong(b,e,M),b}},function(e,t,n){var r=n(332),a=n(353),o=n(366),i=n(356),s=n(910);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,h){for(var m,_,M=o(t),g=a(M),v=r(s,h,3),b=i(g.length),y=0,A=n?f(t,b):c?f(t,0):void 0;b>y;y++)if((p||y in g)&&(m=g[y],_=v(m,y,M),e))if(n)A[y]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return y;case 2:A.push(m)}else if(u)return!1;return d?-1:l||u?u:A}}},function(e,t,n){var r=n(911);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(337),a=n(380),o=n(364)("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(329);r(r.P+r.R,"Map",{toJSON:n(913)("Map")})},function(e,t,n){var r=n(473),a=n(914);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},function(e,t,n){var r=n(475);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(916)("Map")},function(e,t,n){"use strict";var r=n(329);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(918)("Map")},function(e,t,n){"use strict";var r=n(329),a=n(333),o=n(332),i=n(475);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return a(this),t=void 0!==c,t&&a(c),void 0==e?new this:(n=[],t?(r=0,s=o(c,arguments[2],2),i(e,!1,function(e){n.push(s(e,r++))})):i(e,!1,n.push,n),new this(n))}})}},function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",a="addEventListener"!==n?"on":"";t.bind=function(e,t,r,o){return e[n](a+t,r,o||!1),r},t.unbind=function(e,t,n,o){return e[r](a+t,n,o||!1),n}},function(e,t){function n(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}e.exports=n},function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push(o[e[n]%64]);return t.join("")}function a(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),a=0;a<e;a++)t[a]=Math.floor(256*Math.random());return r(t)}var o=n(922);try{return r(o.randomBytes(e))}catch(t){return r(o.pseudoRandomBytes(e))}}var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";e.exports=a},function(e,t,n){(function(e){function r(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}var a=n(927);t.createHash=n(929),t.createHmac=n(941),t.randomBytes=function(t,n){if(!n||!n.call)return new e(a(t));try{n.call(this,void 0,new e(a(t)))}catch(e){n(e)}},t.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var o=n(942)(t);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync,function(e,t){for(var n in e)t(e[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(e){t[e]=function(){r("sorry,",e,"is not implemented yet")}})}).call(t,n(923).Buffer)},function(e,t,n){(function(e,r){"use strict";function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,n){if(a()<n)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n),t.__proto__=e.prototype):(null===t&&(t=new e(n)),t.length=n),t}function e(t,n,r){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(t,n,r);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return i(this,t,n,r)}function i(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?u(e,t,n):f(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return s(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function l(t,n){if(s(n),t=o(t,n<0?0:0|h(n)),!e.TYPED_ARRAY_SUPPORT)for(var r=0;r<n;++r)t[r]=0;return t}function u(t,n,r){if("string"==typeof r&&""!==r||(r="utf8"),!e.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var a=0|_(n,r);t=o(t,a);var i=t.write(n,r);return i!==a&&(t=t.slice(0,i)),t}function d(e,t){var n=t.length<0?0:0|h(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(t,n,r,a){if(n.byteLength,r<0||n.byteLength<r)throw new RangeError("'offset' is out of bounds");if(n.byteLength<r+(a||0))throw new RangeError("'length' is out of bounds");return n=void 0===r&&void 0===a?new Uint8Array(n):void 0===a?new Uint8Array(n,r):new Uint8Array(n,r,a),e.TYPED_ARRAY_SUPPORT?(t=n,t.__proto__=e.prototype):t=d(t,n),t}function f(t,n){if(e.isBuffer(n)){var r=0|h(n.length);return t=o(t,r),0===t.length?t:(n.copy(t,0,0,r),t)}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||K(n.length)?o(t,0):d(t,n);if("Buffer"===n.type&&Z(n.data))return d(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(t){return+t!=t&&(t=0),e.alloc(+t)}function _(t,n){if(e.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var a=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(t).length;default:if(a)return H(t).length;n=(""+n).toLowerCase(),a=!0}}function M(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return z(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(t,n,r,a,o){if(0===t.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof n&&(n=e.from(n,a)),e.isBuffer(n))return 0===n.length?-1:b(t,n,r,a,o);if("number"==typeof n)return n&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,n,r):Uint8Array.prototype.lastIndexOf.call(t,n,r):b(t,[n],r,a,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,a){function o(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}var i=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,n/=2}var l;if(a){var u=-1;for(l=n;l<s;l++)if(o(e,l)===o(t,-1===u?0:l-u)){if(-1===u&&(u=l),l-u+1===c)return u*i}else-1!==u&&(l-=l-u),u=-1}else for(n+c>s&&(n=s-c),l=n;l>=0;l--){for(var d=!0,p=0;p<c;p++)if(o(e,l+p)!==o(t,p)){d=!1;break}if(d)return l}return-1}function y(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(isNaN(s))return i;e[n+i]=s}return i}function A(e,t,n,r){return J(H(t,e.length-n),e,n,r)}function E(e,t,n,r){return J(F(t),e,n,r)}function T(e,t,n,r){return E(e,t,n,r)}function L(e,t,n,r){return J(V(t),e,n,r)}function w(e,t,n,r){return J(X(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o=e[a],i=null,s=o>239?4:o>223?3:o>191?2:1;if(a+s<=n){var c,l,u,d;switch(s){case 1:o<128&&(i=o);break;case 2:c=e[a+1],128==(192&c)&&(d=(31&o)<<6|63&c)>127&&(i=d);break;case 3:c=e[a+1],l=e[a+2],128==(192&c)&&128==(192&l)&&(d=(15&o)<<12|(63&c)<<6|63&l)>2047&&(d<55296||d>57343)&&(i=d);break;case 4:c=e[a+1],l=e[a+2],u=e[a+3],128==(192&c)&&128==(192&l)&&128==(192&u)&&(d=(15&o)<<18|(63&c)<<12|(63&l)<<6|63&u)>65535&&d<1114112&&(i=d)}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=s}return C(r)}function C(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function z(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=U(e[o]);return a}function P(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+256*r[o+1]);return a}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function x(t,n,r,a,o,i){if(!e.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)throw new RangeError('"value" argument is out of bounds');if(r+a>t.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-n,2);a<o;++a)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-n,4);a<o;++a)e[n+a]=t>>>8*(r?a:3-a)&255}function Y(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(e,t,n,r,a){return a||Y(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,a){return a||Y(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,n,r,52,8),n+8}function I(e){if(e=B(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function B(e){return e.trim?e.trim():e.replace(/^\s+|\s+#x2F;g,"")}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,a=null,o=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function X(e,t){for(var n,r,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r);return o}function V(e){return G.toByteArray(I(e))}function J(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function K(e){return e!==e}var G=n(924),Q=n(925),Z=n(926);t.Buffer=e,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,e.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),e.poolSize=8192,e._augment=function(t){return t.__proto__=e.prototype,t},e.from=function(e,t,n){return i(null,e,t,n)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(e,t,n){return c(null,e,t,n)},e.allocUnsafe=function(e){return l(null,e)},e.allocUnsafeSlow=function(e){return l(null,e)},e.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.compare=function(t,n){if(!e.isBuffer(t)||!e.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,a=n.length,o=0,i=Math.min(r,a);o<i;++o)if(t[o]!==n[o]){r=t[o],a=n[o];break}return r<a?-1:a<r?1:0},e.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(t,n){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return e.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var a=e.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var i=t[r];if(!e.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(a,o),o+=i.length}return a},e.byteLength=_,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},e.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},e.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},e.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):M.apply(this,arguments)},e.prototype.equals=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===e.compare(this,t)},e.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},e.prototype.compare=function(t,n,r,a,o){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=t?t.length:0),void 0===a&&(a=0),void 0===o&&(o=this.length),n<0||r>t.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===t)return 0;for(var i=o-a,s=r-n,c=Math.min(i,s),l=this.slice(a,o),u=t.slice(n,r),d=0;d<c;++d)if(l[d]!==u[d]){i=l[d],s=u[d];break}return i<s?-1:s<i?1:0},e.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},e.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},e.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},e.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return L(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;e.prototype.slice=function(t,n){var r=this.length;t=~~t,n=void 0===n?r:~~n,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),n<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<t&&(n=t);var a;if(e.TYPED_ARRAY_SUPPORT)a=this.subarray(t,n),a.__proto__=e.prototype;else{var o=n-t;a=new e(o,void 0);for(var i=0;i<o;++i)a[i]=this[i+t]}return a},e.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r},e.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},e.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},e.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,a=1,o=this[e+--r];r>0&&(a*=256);)o+=this[e+--r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},e.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},e.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},e.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),Q.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),Q.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),Q.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),Q.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},e.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){x(this,e,t,n,Math.pow(2,8*n)-1,0)}var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},e.prototype.writeUInt8=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},e.prototype.writeUInt16LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):j(this,t,n,!0),n+2},e.prototype.writeUInt16BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,65535,0),
30
e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):j(this,t,n,!1),n+2},e.prototype.writeUInt32LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):R(this,t,n,!0),n+4},e.prototype.writeUInt32BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):R(this,t,n,!1),n+4},e.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},e.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},e.prototype.writeInt8=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=255&t,n+1},e.prototype.writeInt16LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):j(this,t,n,!0),n+2},e.prototype.writeInt16BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):j(this,t,n,!1),n+2},e.prototype.writeInt32LE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):R(this,t,n,!0),n+4},e.prototype.writeInt32BE=function(t,n,r){return t=+t,n|=0,r||x(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):R(this,t,n,!1),n+4},e.prototype.writeFloatLE=function(e,t,n){return W(this,e,t,!0,n)},e.prototype.writeFloatBE=function(e,t,n){return W(this,e,t,!1,n)},e.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},e.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},e.prototype.copy=function(t,n,r,a){if(r||(r=0),a||0===a||(a=this.length),n>=t.length&&(n=t.length),n||(n=0),a>0&&a<r&&(a=r),a===r)return 0;if(0===t.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-n<a-r&&(a=t.length-n+r);var o,i=a-r;if(this===t&&r<n&&n<a)for(o=i-1;o>=0;--o)t[o+n]=this[o+r];else if(i<1e3||!e.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+n]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),n);return i},e.prototype.fill=function(t,n,r,a){if("string"==typeof t){if("string"==typeof n?(a=n,n=0,r=this.length):"string"==typeof r&&(a=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!e.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0);var i;if("number"==typeof t)for(i=n;i<r;++i)this[i]=t;else{var s=e.isBuffer(t)?t:H(new e(t,a).toString()),c=s.length;for(i=0;i<r-n;++i)this[i+n]=s[i%c]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,n(923).Buffer,function(){return this}())},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function a(e){var t,r,a,o,i,s=e.length;o=n(e),i=new u(3*s/4-o),r=o>0?s-4:s;var c=0;for(t=0;t<r;t+=4)a=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],i[c++]=a>>16&255,i[c++]=a>>8&255,i[c++]=255&a;return 2===o?(a=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,i[c++]=255&a):1===o&&(a=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,i[c++]=a>>8&255,i[c++]=255&a),i}function o(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function i(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(o(r));return a.join("")}function s(e){for(var t,n=e.length,r=n%3,a="",o=[],s=0,l=n-r;s<l;s+=16383)o.push(i(e,s,s+16383>l?l:s+16383));return 1===r?(t=e[n-1],a+=c[t>>2],a+=c[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=c[t>>10],a+=c[t>>4&63],a+=c[t<<2&63],a+="="),o.push(a),o.join("")}t.byteLength=r,t.toByteArray=a,t.fromByteArray=s;for(var c=[],l=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,f=d.length;p<f;++p)c[p]=d[p],l[d.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,a){var o,i,s=8*a-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?a-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=p,u-=8);for(i=o&(1<<-u)-1,o>>=-u,u+=r;u>0;i=256*i+e[t+d],d+=p,u-=8);if(0===o)o=1-l;else{if(o===c)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,r),o-=l}return(f?-1:1)*i*Math.pow(2,o-r)},t.write=function(e,t,n,r,a,o){var i,s,c,l=8*o-a-1,u=(1<<l)-1,d=u>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),t+=i+d>=1?p/c:p*Math.pow(2,1-d),t*c>=2&&(i++,c/=2),i+d>=u?(s=0,i=u):i+d>=1?(s=(t*c-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[n+f]=255&s,f+=h,s/=256,a-=8);for(i=i<<a|s,l+=a;l>0;e[n+f]=255&i,f+=h,i/=256,l-=8);e[n+f-h]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t,r){!function(){var a=("undefined"==typeof window?t:window)||{};_crypto=a.crypto||a.msCrypto||n(928),e.exports=function(e){if(_crypto.getRandomValues){var t=new r(e);return _crypto.getRandomValues(t),t}if(_crypto.randomBytes)return _crypto.randomBytes(e);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(t,function(){return this}(),n(923).Buffer)},function(e,t){},function(e,t,n){(function(t){function r(e){return function(){var n=[];return{update:function(e,r){return t.isBuffer(e)||(e=new t(e,r)),n.push(e),this},digest:function(r){var a=t.concat(n),o=e(a);return n=null,r?o.toString(r):o}}}}var a=n(930),o=r(n(938)),i=r(n(940));e.exports=function(e){return"md5"===e?new o:"rmd160"===e?new i:a(e)}}).call(t,n(923).Buffer)},function(e,t,n){var t=e.exports=function(e){var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n},r=n(923).Buffer,a=n(931)(r);t.sha1=n(932)(r,a),t.sha256=n(936)(r,a),t.sha512=n(937)(r,a)},function(e,t){e.exports=function(e){function t(t,n){this._block=new e(t),this._finalSize=n,this._blockSize=t,this._len=0,this._s=0}return t.prototype.init=function(){this._s=0,this._len=0},t.prototype.update=function(t,n){"string"==typeof t&&(n=n||"utf8",t=new e(t,n));for(var r=this._len+=t.length,a=this._s=this._s||0,o=0,i=this._block;a<r;){for(var s=Math.min(t.length,o+this._blockSize-a%this._blockSize),c=s-o,l=0;l<c;l++)i[a%this._blockSize+l]=t[l+o];a+=c,o+=c,a%this._blockSize==0&&this._update(i)}return this._s=a,this},t.prototype.digest=function(e){var t=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),t%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var n=this._update(this._block)||this._hash();return e?n.toString(e):n},t.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t}},function(e,t,n){var r=n(933).inherits;e.exports=function(e,t){function n(){return l.length?l.pop().init():this instanceof n?(this._w=c,t.call(this,64,56),this._h=null,void this.init()):new n}function a(e,t,n,r){return e<20?t&n|~t&r:e<40?t^n^r:e<60?t&n|t&r|n&r:t^n^r}function o(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function i(e,t){return e+t|0}function s(e,t){return e<<t|e>>>32-t}var c=new("undefined"==typeof Int32Array?Array:Int32Array)(80),l=[];return r(n,t),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,t.prototype.init.call(this),this},n.prototype._POOL=l,n.prototype._update=function(e){var t,n,r,c,l,u,d,p,f,h;t=u=this._a,n=d=this._b,r=p=this._c,c=f=this._d,l=h=this._e;for(var m=this._w,_=0;_<80;_++){var M=m[_]=_<16?e.readInt32BE(4*_):s(m[_-3]^m[_-8]^m[_-14]^m[_-16],1),g=i(i(s(t,5),a(_,n,r,c)),i(i(l,M),o(_)));l=c,c=r,r=s(n,30),n=t,t=g}this._a=i(t,u),this._b=i(n,d),this._c=i(r,p),this._d=i(c,f),this._e=i(l,h)},n.prototype._hash=function(){l.length<100&&l.push(this);var t=new e(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},n}},function(e,t,n){(function(e,r){function a(e,n){var r={seen:[],stylize:i};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),c(r,e,r.depth)}function o(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function i(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function c(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var a=n.inspect(r,e);return v(a)||(a=c(e,a,r)),a}var o=l(e,n);if(o)return o;var i=Object.keys(n),m=s(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(n)),L(n)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return u(n);if(0===i.length){if(w(n)){var _=n.name?": "+n.name:"";return e.stylize("[Function"+_+"]","special")}if(A(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(L(n))return u(n)}var M="",g=!1,b=["{","}"];if(h(n)&&(g=!0,b=["[","]"]),w(n)){M=" [Function"+(n.name?": "+n.name:"")+"]"}if(A(n)&&(M=" "+RegExp.prototype.toString.call(n)),T(n)&&(M=" "+Date.prototype.toUTCString.call(n)),L(n)&&(M=" "+u(n)),0===i.length&&(!g||0==n.length))return b[0]+M+b[1];if(r<0)return A(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var y;return y=g?d(e,n,r,m,i):i.map(function(t){return p(e,n,r,m,t,g)}),e.seen.pop(),f(y,M,b)}function l(e,t){if(y(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"#x2F;g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,a){for(var o=[],i=0,s=t.length;i<s;++i)z(t,String(i))?o.push(p(e,t,n,r,String(i),!0)):o.push("");return a.forEach(function(a){a.match(/^\d+#x2F;)||o.push(p(e,t,n,r,a,!0))}),o}function p(e,t,n,r,a,o){var i,s,l;if(l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),z(r,a)||(i="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=_(n)?c(e,l.value,null):c(e,l.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),y(i)){if(o&&a.match(/^\d+#x2F;))return s;i=JSON.stringify(""+a),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"#x2F;)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function f(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function _(e){return null===e}function M(e){return null==e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function y(e){return void 0===e}function A(e){return E(e)&&"[object RegExp]"===S(e)}function E(e){return"object"==typeof e&&null!==e}function T(e){return E(e)&&"[object Date]"===S(e)}function L(e){return E(e)&&("[object Error]"===S(e)||e instanceof Error)}function w(e){return"function"==typeof e}function k(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function S(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}function O(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var N=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,i=String(e).replace(N,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<o;s=r[++n])_(s)||!E(s)?i+=" "+s:i+=" "+a(s);return i},t.deprecate=function(n,a){function o(){if(!i){if(r.throwDeprecation)throw new Error(a);r.traceDeprecation?console.trace(a):console.error(a),i=!0}return n.apply(this,arguments)}if(y(e.process))return function(){return t.deprecate(n,a).apply(this,arguments)};if(!0===r.noDeprecation)return n;var i=!1;return o};var P,D={};t.debuglog=function(e){if(y(P)&&(P=r.env.NODE_DEBUG||""),e=e.toUpperCase(),!D[e])if(new RegExp("\\b"+e+"\\b","i").test(P)){var n=r.pid;D[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else D[e]=function(){};return D[e]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=_,t.isNullOrUndefined=M,t.isNumber=g,t.isString=v,t.isSymbol=b,t.isUndefined=y,t.isRegExp=A,t.isObject=E,t.isDate=T,t.isError=L,t.isFunction=w,t.isPrimitive=k,t.isBuffer=n(934);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(935),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(t,function(){return this}(),n(509))},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(933).inherits;e.exports=function(e,t){function n(){this.init(),this._w=f,t.call(this,64,56)}function a(e,t){return e>>>t|e<<32-t}function o(e,t){return e>>>t}function i(e,t,n){return e&t^~e&n}function s(e,t,n){return e&t^e&n^t&n}function c(e){return a(e,2)^a(e,13)^a(e,22)}function l(e){return a(e,6)^a(e,11)^a(e,25)}function u(e){return a(e,7)^a(e,18)^o(e,3)}function d(e){return a(e,17)^a(e,19)^o(e,10)}var p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=new Array(64);return r(n,t),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(e){var t,n,r,a,o,f,h,m,_,M,g=this._w;t=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,o=0|this._e,f=0|this._f,h=0|this._g,m=0|this._h;for(var v=0;v<64;v++){var b=g[v]=v<16?e.readInt32BE(4*v):d(g[v-2])+g[v-7]+u(g[v-15])+g[v-16];_=m+l(o)+i(o,f,h)+p[v]+b,M=c(t)+s(t,n,r),m=h,h=f,f=o,o=a+_,a=r,r=n,n=t,t=_+M}this._a=t+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=h+this._g|0,this._h=m+this._h|0},n.prototype._hash=function(){var t=new e(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},n}},function(e,t,n){var r=n(933).inherits;e.exports=function(e,t){function n(){this.init(),this._w=c,t.call(this,128,112)}function a(e,t,n){return e>>>n|t<<32-n}function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}var s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=new Array(160);return r(n,t),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(e){var t,n,r,c,l,u,d,p,f,h,m,_,M,g,v,b,y=this._w;t=0|this._a,n=0|this._b,r=0|this._c,c=0|this._d,l=0|this._e,u=0|this._f,d=0|this._g,p=0|this._h,f=0|this._al,h=0|this._bl,m=0|this._cl,_=0|this._dl,M=0|this._el,g=0|this._fl,v=0|this._gl,b=0|this._hl;for(var A=0;A<80;A++){var E,T,L=2*A;if(A<16)E=y[L]=e.readInt32BE(4*L),T=y[L+1]=e.readInt32BE(4*L+4);else{var w=y[L-30],k=y[L-30+1],S=a(w,k,1)^a(w,k,8)^w>>>7,C=a(k,w,1)^a(k,w,8)^a(k,w,7);w=y[L-4],k=y[L-4+1];var O=a(w,k,19)^a(k,w,29)^w>>>6,z=a(k,w,19)^a(w,k,29)^a(k,w,6),N=y[L-14],P=y[L-14+1],D=y[L-32],x=y[L-32+1];T=C+P,E=S+N+(T>>>0<C>>>0?1:0),T+=z,E=E+O+(T>>>0<z>>>0?1:0),T+=x,E=E+D+(T>>>0<x>>>0?1:0),y[L]=E,y[L+1]=T}var j=i(t,n,r),R=i(f,h,m),Y=a(t,f,28)^a(f,t,2)^a(f,t,7),W=a(f,t,28)^a(t,f,2)^a(t,f,7),q=a(l,M,14)^a(l,M,18)^a(M,l,9),I=a(M,l,14)^a(M,l,18)^a(l,M,9),B=s[L],U=s[L+1],H=o(l,u,d),F=o(M,g,v),X=b+I,V=p+q+(X>>>0<b>>>0?1:0);X+=F,V=V+H+(X>>>0<F>>>0?1:0),X+=U,V=V+B+(X>>>0<U>>>0?1:0),X+=T,V=V+E+(X>>>0<T>>>0?1:0);var J=W+R,K=Y+j+(J>>>0<W>>>0?1:0);p=d,b=v,d=u,v=g,u=l,g=M,M=_+X|0,l=c+V+(M>>>0<_>>>0?1:0)|0,c=r,_=m,r=n,m=h,n=t,h=f,f=X+J|0,t=V+K+(f>>>0<X>>>0?1:0)|0}this._al=this._al+f|0,this._bl=this._bl+h|0,this._cl=this._cl+m|0,this._dl=this._dl+_|0,this._el=this._el+M|0,this._fl=this._fl+g|0,this._gl=this._gl+v|0,this._hl=this._hl+b|0,this._a=this._a+t+(this._al>>>0<f>>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0<h>>>0?1:0)|0,this._c=this._c+r+(this._cl>>>0<m>>>0?1:0)|0,this._d=this._d+c+(this._dl>>>0<_>>>0?1:0)|0,this._e=this._e+l+(this._el>>>0<M>>>0?1:0)|0,this._f=this._f+u+(this._fl>>>0<g>>>0?1:0)|0,this._g=this._g+d+(this._gl>>>0<v>>>0?1:0)|0,this._h=this._h+p+(this._hl>>>0<b>>>0?1:0)|0},n.prototype._hash=function(){function t(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}var n=new e(64);return t(this._a,this._al,0),t(this._b,this._bl,8),t(this._c,this._cl,16),t(this._d,this._dl,24),t(this._e,this._el,32),t(this._f,this._fl,40),t(this._g,this._gl,48),t(this._h,this._hl,56),n},n}},function(e,t,n){function r(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,a=-1732584194,u=271733878,d=0;d<e.length;d+=16){var p=n,f=r,h=a,m=u;n=o(n,r,a,u,e[d+0],7,-680876936),u=o(u,n,r,a,e[d+1],12,-389564586),a=o(a,u,n,r,e[d+2],17,606105819),r=o(r,a,u,n,e[d+3],22,-1044525330),n=o(n,r,a,u,e[d+4],7,-176418897),u=o(u,n,r,a,e[d+5],12,1200080426),a=o(a,u,n,r,e[d+6],17,-1473231341),r=o(r,a,u,n,e[d+7],22,-45705983),n=o(n,r,a,u,e[d+8],7,1770035416),u=o(u,n,r,a,e[d+9],12,-1958414417),a=o(a,u,n,r,e[d+10],17,-42063),r=o(r,a,u,n,e[d+11],22,-1990404162),n=o(n,r,a,u,e[d+12],7,1804603682),u=o(u,n,r,a,e[d+13],12,-40341101),a=o(a,u,n,r,e[d+14],17,-1502002290),r=o(r,a,u,n,e[d+15],22,1236535329),n=i(n,r,a,u,e[d+1],5,-165796510),u=i(u,n,r,a,e[d+6],9,-1069501632),a=i(a,u,n,r,e[d+11],14,643717713),r=i(r,a,u,n,e[d+0],20,-373897302),n=i(n,r,a,u,e[d+5],5,-701558691),u=i(u,n,r,a,e[d+10],9,38016083),a=i(a,u,n,r,e[d+15],14,-660478335),r=i(r,a,u,n,e[d+4],20,-405537848),n=i(n,r,a,u,e[d+9],5,568446438),u=i(u,n,r,a,e[d+14],9,-1019803690),a=i(a,u,n,r,e[d+3],14,-187363961),r=i(r,a,u,n,e[d+8],20,1163531501),n=i(n,r,a,u,e[d+13],5,-1444681467),u=i(u,n,r,a,e[d+2],9,-51403784),a=i(a,u,n,r,e[d+7],14,1735328473),r=i(r,a,u,n,e[d+12],20,-1926607734),n=s(n,r,a,u,e[d+5],4,-378558),u=s(u,n,r,a,e[d+8],11,-2022574463),a=s(a,u,n,r,e[d+11],16,1839030562),r=s(r,a,u,n,e[d+14],23,-35309556),n=s(n,r,a,u,e[d+1],4,-1530992060),u=s(u,n,r,a,e[d+4],11,1272893353),a=s(a,u,n,r,e[d+7],16,-155497632),r=s(r,a,u,n,e[d+10],23,-1094730640),n=s(n,r,a,u,e[d+13],4,681279174),u=s(u,n,r,a,e[d+0],11,-358537222),a=s(a,u,n,r,e[d+3],16,-722521979),r=s(r,a,u,n,e[d+6],23,76029189),n=s(n,r,a,u,e[d+9],4,-640364487),u=s(u,n,r,a,e[d+12],11,-421815835),a=s(a,u,n,r,e[d+15],16,530742520),r=s(r,a,u,n,e[d+2],23,-995338651),n=c(n,r,a,u,e[d+0],6,-198630844),u=c(u,n,r,a,e[d+7],10,1126891415),a=c(a,u,n,r,e[d+14],15,-1416354905),r=c(r,a,u,n,e[d+5],21,-57434055),n=c(n,r,a,u,e[d+12],6,1700485571),u=c(u,n,r,a,e[d+3],10,-1894986606),a=c(a,u,n,r,e[d+10],15,-1051523),r=c(r,a,u,n,e[d+1],21,-2054922799),n=c(n,r,a,u,e[d+8],6,1873313359),u=c(u,n,r,a,e[d+15],10,-30611744),a=c(a,u,n,r,e[d+6],15,-1560198380),r=c(r,a,u,n,e[d+13],21,1309151649),n=c(n,r,a,u,e[d+4],6,-145523070),u=c(u,n,r,a,e[d+11],10,-1120210379),a=c(a,u,n,r,e[d+2],15,718787259),r=c(r,a,u,n,e[d+9],21,-343485551),n=l(n,p),r=l(r,f),a=l(a,h),u=l(u,m)}return Array(n,r,a,u)}function a(e,t,n,r,a,o){return l(u(l(l(t,e),l(r,o)),a),n)}function o(e,t,n,r,o,i,s){return a(t&n|~t&r,e,t,o,i,s)}function i(e,t,n,r,o,i,s){return a(t&r|n&~r,e,t,o,i,s)}function s(e,t,n,r,o,i,s){return a(t^n^r,e,t,o,i,s)}function c(e,t,n,r,o,i,s){return a(n^(t|~r),e,t,o,i,s)}function l(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function u(e,t){return e<<t|e>>>32-t}var d=n(939);e.exports=function(e){return d.hash(e,r,16)}},function(e,t,n){(function(t){function n(e,n){if(e.length%o!=0){var r=e.length+(o-e.length%o);e=t.concat([e,i],r)}for(var a=[],s=n?e.readInt32BE:e.readInt32LE,c=0;c<e.length;c+=o)a.push(s.call(e,c));return a}function r(e,n,r){for(var a=new t(n),o=r?a.writeInt32BE:a.writeInt32LE,i=0;i<e.length;i++)o.call(a,e[i],4*i,!0);return a}function a(e,a,o,i){return t.isBuffer(e)||(e=new t(e)),r(a(n(e,i),e.length*s),o,i)}var o=4,i=new t(o);i.fill(0);var s=8;e.exports={hash:a}}).call(t,n(923).Buffer)},function(e,t,n){(function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function a(e,t,n){return(e|~t)^n}function o(e,t,n){return e&n|t&~n}function i(e,t,n){return e^(t|~n)}function s(e,t){return e<<t|e>>>32-t}function c(e){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof e&&(e=new t(e,"utf8"));var r=m(e),a=8*e.length,o=8*e.length;r[a>>>5]|=128<<24-a%32,r[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var i=0;i<r.length;i+=16)M(n,r,i);for(var i=0;i<5;i++){var s=n[i];n[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var c=_(n);return new t(c)}e.exports=c;var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0],m=function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},_=function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},M=function(e,t,c){for(var m=0;m<16;m++){var _=c+m,M=t[_];t[_]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}var g,v,b,y,A,E,T,L,w,k;E=g=e[0],T=v=e[1],L=b=e[2],w=y=e[3],k=A=e[4];for(var S,m=0;m<80;m+=1)S=g+t[c+l[m]]|0,S+=m<16?n(v,b,y)+f[0]:m<32?r(v,b,y)+f[1]:m<48?a(v,b,y)+f[2]:m<64?o(v,b,y)+f[3]:i(v,b,y)+f[4],S|=0,S=s(S,d[m]),S=S+A|0,g=A,A=y,y=s(b,10),b=v,v=S,S=E+t[c+u[m]]|0,S+=m<16?i(T,L,w)+h[0]:m<32?o(T,L,w)+h[1]:m<48?a(T,L,w)+h[2]:m<64?r(T,L,w)+h[3]:n(T,L,w)+h[4],S|=0,S=s(S,p[m]),S=S+k|0,E=k,k=w,w=s(L,10),L=T,T=S;S=e[1]+b+w|0,e[1]=e[2]+y+k|0,e[2]=e[3]+A+E|0,e[3]=e[4]+g+T|0,e[4]=e[0]+v+L|0,e[0]=S}}).call(t,n(923).Buffer)},function(e,t,n){(function(t){function r(e,n){if(!(this instanceof r))return new r(e,n);this._opad=c,this._alg=e;var i="sha512"===e?128:64;n=this._key=t.isBuffer(n)?n:new t(n),n.length>i?n=a(e).update(n).digest():n.length<i&&(n=t.concat([n,o],i));for(var s=this._ipad=new t(i),c=this._opad=new t(i),l=0;l<i;l++)s[l]=54^n[l],c[l]=92^n[l];this._hash=a(e).update(s)}var a=n(929),o=new t(128);o.fill(0),e.exports=r,r.prototype.update=function(e,t){return this._hash.update(e,t),this},r.prototype.digest=function(e){var t=this._hash.digest();return a(this._alg).update(this._opad).update(t).digest(e)}}).call(t,n(923).Buffer)},function(e,t,n){var r=n(943);e.exports=function(e,t){t=t||{};var n=r(e);return t.pbkdf2=n.pbkdf2,t.pbkdf2Sync=n.pbkdf2Sync,t}},function(e,t,n){(function(t){e.exports=function(e){function n(e,t,n,a,o,i){if("function"==typeof o&&(i=o,o=void 0),"function"!=typeof i)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var s;try{s=r(e,t,n,a,o)}catch(e){return i(e)}i(void 0,s)})}function r(n,r,a,o,i){if("number"!=typeof a)throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0)throw new TypeError("Bad key length");i=i||"sha1",t.isBuffer(n)||(n=new t(n)),t.isBuffer(r)||(r=new t(r));var s,c,l,u=1,d=new t(o),p=new t(r.length+4);r.copy(p,0,0,r.length);for(var f=1;f<=u;f++){p.writeUInt32BE(f,r.length);var h=e.createHmac(i,n).update(p).digest();if(!s&&(s=h.length,l=new t(s),u=Math.ceil(o/s),c=o-(u-1)*s,o>(Math.pow(2,32)-1)*s))throw new TypeError("keylen exceeds maximum length");h.copy(l,0,0,s);for(var m=1;m<a;m++){h=e.createHmac(i,n).update(h).digest();for(var _=0;_<s;_++)l[_]^=h[_]}var M=(f-1)*s,g=f==u?c:s;l.copy(d,M,0,g)}return d}return{pbkdf2:n,pbkdf2Sync:r}}}).call(t,n(923).Buffer)},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(1),o=r(a),i=n(142),s=r(i),c=n(154);t.default=s.default.createClass({displayName:"RootChild",propTypes:{children:i.PropTypes.node},contextTypes:{store:i.PropTypes.object},componentDidMount:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()},componentDidUpdate:function(){this.renderChildren()},componentWillUnmount:function(){this.container&&(o.default.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)},renderChildren:function(){var e;e=this.props&&(Object.keys(this.props).length>1||!this.props.children)?s.default.createElement("div",this.props,this.props.children):this.props.children,this.context.store&&(e=s.default.createElement(c.Provider,{store:this.context.store},e)),o.default.render(e,this.container)},render:function(){return null}}),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,_("viewport: %o",e),e}function o(){v=a()}function i(e,t){for(var n=[e,M[e],g[e],M[g[e]]],r=-1/0,a=void 0,o=0,i=n.length;o<i;o++){var s=n[o],c=t[s];if(c>0)return s;c>r&&(r=c,a=e)}return a}function s(e,t,n,r,a,o){for(var i=t?[e+" "+t,e,e+" "+M[t]]:[e,e+" "+g[e],e+" "+M[g[e]]],s=void 0,l=0,u=a*o,d=0,p=i.length;d<p;d++){var f=i[d],h=c(f,n,r),m=h.left+a,_=h.top+o,b=Math.min(h.top<v.top?_-v.top:v.bottom-h.top,o),y=Math.min(h.left<v.left?m-v.left:v.right-h.left,a),A=y*b;if(A===u)return f;A>l&&(l=A,s=f)}return s}function c(e,t,n){var r=(0,f.default)(t);if(!r)throw new Error("could not get bounding client rect of Tip element");var a=r.width,o=r.height,i=(0,f.default)(n);if(!i)throw new Error("could not get bounding client rect of `target`");var s=i.width,c=i.height,u=l(i,document);if(!u)throw new Error("could not determine page offset of `target`");var d={};switch(e){case"top":d={top:u.top-o,left:u.left+s/2-a/2}
31
;break;case"bottom":d={top:u.top+c,left:u.left+s/2-a/2};break;case"right":d={top:u.top+c/2-o/2,left:u.left+s};break;case"left":d={top:u.top+c/2-o/2,left:u.left-a};break;case"top left":d={top:u.top-o,left:u.left+s/2-a+15};break;case"top right":d={top:u.top-o,left:u.left+s/2-15};break;case"bottom left":d={top:u.top+c,left:u.left+s/2-a+15};break;case"bottom right":d={top:u.top+c,left:u.left+s/2-15};break;case"left top":d={top:u.top+c/2-o,left:u.left-a};break;case"left bottom":d={top:u.top+c/2,left:u.left-a};break;case"right top":d={top:u.top+c/2-o,left:u.left+s};break;case"right bottom":d={top:u.top+c/2,left:u.left+s};break;default:throw new Error('invalid position "'+e+'"')}return d}function l(e,t){var n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,a=r.clientTop||n.clientTop||0,o=r.clientLeft||n.clientLeft||0,i=window.pageYOffset||r.scrollTop,s=window.pageXOffset||r.scrollLeft;return{top:e.top+i-a,left:e.left+s-o}}Object.defineProperty(t,"__esModule",{value:!0}),t.isElement=t.offset=t.suggested=t.unbindWindowListeners=t.bindWindowListeners=t.constrainLeft=void 0;var u="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},d=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=n(946),f=r(p),h=n(725),m=r(h),_=(0,m.default)("calypso:popover:util"),M={top:"bottom",bottom:"top",left:"right",right:"left"},g={top:"right",left:"top",bottom:"left",right:"bottom"},v=a(),b=!1,y=function(){if(b)return _("window events already bound");b=!0,_("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",o,!0),window.addEventListener("scroll",o,!0)},A=function(){if(!b)return _("window events are not bound");b=!1,_("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",o,!0),window.removeEventListener("scroll",o,!0)},E=function(e,t,n){var r=(0,f.default)(n),a=t.clientHeight,o=t.clientWidth,c={top:r.top-a,bottom:v.height-r.bottom-a,left:r.left-o,right:v.width-r.right-o},l=e.split(/\s+/),u=d(l,1),p=u[0],h=d(l,2),m=h[1],_=i(p,c);return m!==_&&m!==M[_]||(m=null),s(_,m,t,n,o,a)||e},T=function(e,t){var n=(0,f.default)(t).width;return e.left=Math.max(0,Math.min(e.left,v.width-n)),e},L=function(e){try{return e instanceof HTMLElement}catch(t){return"object"===(void 0===e?"undefined":u(e))&&1===e.nodeType&&"object"===u(e.style)&&"object"===u(e.ownerDocument)}};t.constrainLeft=T,t.bindWindowListeners=y,t.unbindWindowListeners=A,t.suggested=E,t.offset=c,t.isElement=L},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 o=n.createElement("span");o.appendChild(n.createTextNode("​")),e.insertNode(o),t=o.getBoundingClientRect();var i=o.parentNode;i.removeChild(o),i.normalize()}return t}var a=n(947);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){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(142),o=r(a),i=n(777),s=r(i),c=n(756),l=r(c),u=n(276),d=r(u),p=n(840),f=r(p),h=n(792),m=r(h);n(953),t.default=o.default.createClass({displayName:"ExternalLink",mixins:[s.default],propTypes:{className:o.default.PropTypes.string,href:o.default.PropTypes.string,onClick:o.default.PropTypes.func,icon:o.default.PropTypes.bool,iconSize:o.default.PropTypes.number},getDefaultProps:function(){return{iconSize:18}},render:function(){var e=(0,l.default)("dops-external-link",this.props.className,{"has-icon":!!this.props.icon}),t=(0,d.default)({},(0,f.default)(this.props,"icon","iconSize"),{className:e,rel:"external"});return o.default.createElement("a",t,this.props.children,this.props.icon?o.default.createElement(m.default,{icon:"external",size:this.props.iconSize}):null)}}),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.Subscriptions=void 0;var a=n(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(524),d=n(865),p=r(d),f=n(874),h=r(f),m=n(724),_=r(m),M=n(837),g=n(864),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A);t.Subscriptions=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"Subscriptions",getInitialState:function(){return{stb_enabled:this.props.getOptionValue("stb_enabled","subscriptions"),stc_enabled:this.props.getOptionValue("stc_enabled","subscriptions")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("subscriptions",e))},trackConfigureClick:function(){_.default.tracks.recordJetpackClick("view-followers")},render:function(){var e=this,t=this.props.getModule("subscriptions"),n=this.props.getOptionValue("subscriptions"),r=this.props.isUnavailableInDevMode("subscriptions");return l.default.createElement(y.default,(0,o.default)({},this.props,{hideButton:!0,module:"subscriptions"}),l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:t},l.default.createElement(g.ModuleToggle,{slug:"subscriptions",disabled:r,activated:n,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),l.default.createElement(M.FormFieldset,null,l.default.createElement(p.default,{checked:this.state.stb_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:function(){return e.updateOptions("stb_enabled")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)('Show a "follow blog" option in the comment form'))),l.default.createElement(p.default,{checked:this.state.stc_enabled,disabled:!n||r||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:function(){return e.updateOptions("stc_enabled")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)('Show a "follow comments" option in the comment form'))))),function(){return r||!n?"":e.props.isLinked?l.default.createElement(h.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackConfigureClick,href:"https://wordpress.com/people/email-followers/"+e.props.siteRawUrl},(0,u.translate)("View your Email Followers")):l.default.createElement(h.default,{compact:!0,className:"jp-settings-card__configure-link",href:e.props.connectUrl+"&from=unlinked-user-connect-masterbar"},(0,u.translate)("Connect your user account to WordPress.com to view your email followers")," ")}())}}))},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(512),g=n(729),v=n(707),b=n(744),y=n(738),A=n(830),E=r(A),T=n(886),L=r(T),w=n(957),k=r(w),S=n(958),C=r(S),O=n(973),z=n(977),N=t.Security=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var i=arguments.length,c=Array(i),l=0;l<i;l++)c[l]=arguments[l];return n=r=(0,d.default)(this,(e=t.__proto__||(0,o.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,f.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),a=this.props.isModuleFound("vaultpress");return(this.props.searchTerm||this.props.active)&&(n||t||r||a)?m.default.createElement("div",null,m.default.createElement(E.default,null),a&&m.default.createElement(k.default,e),r&&m.default.createElement("div",null,m.default.createElement(C.default,e),m.default.createElement(L.default,null)),t&&m.default.createElement(O.Protect,e),n&&m.default.createElement(z.SSO,e)):null}}]),t}(h.Component);N.displayName="SecuritySettings",t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,g.getSettings)(e),isDevMode:(0,v.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,v.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,b.isModuleFound)(e,t)},isPluginActive:function(t){return(0,y.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,y.isPluginInstalled)(e,t)}}})(N)},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(874),y=r(b),A=n(724),E=r(A),T=n(452),L=r(T),w=n(872),k=n(869),S=n(871),C=r(S),O=n(899),z=r(O),N=n(466),P=n(735),D=n(709),x=r(D),j=t.BackupsScan=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,f.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(i))),r.toggleModule=function(e,t){r.props.updateFormStateOptionValue(e,!t)},r.trackConfigureClick=function(){E.default.tracks.recordJetpackClick("configure-scan")},a=n,(0,f.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getCardText",value:function(){var e=(0,L.default)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,L.default)(this.props.vaultPressData,["data","features","security"],!1),n=(0,w.getPlanClass)(this.props.sitePlan.product_slug),r="";if(this.props.isFetchingSiteData||this.props.isFetchingVaultPressData)return(0,v.translate)("Checking site status…");if(this.props.isDevMode)return(0,v.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,v.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:a,args:{number:(0,v.numberFormat)(a)}})),M.default.createElement("br",null),M.default.createElement("br",null),(0,v.translate)("{{a}}View details{{/a}}",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),M.default.createElement("br",null),(0,v.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}})):(0,v.translate)("Your site is backed up and threat-free.")}if(e&&(0,x.default)(["is-free-plan","is-personal-plan"],n))return(0,v.translate)("Your site is backed up.");switch(n){case"is-personal-plan":r=(0,v.translate)("You have paid for backups but they're not yet active."),r+=" "+(0,v.translate)('Click "Set Up" to finish installation.');break;case"is-premium-plan":case"is-business-plan":r=(0,v.translate)("You have paid for backups and security scanning but they’re not yet active."),r+=" "+(0,v.translate)('Click "Set Up" to finish installation.')}return r}},{key:"render",value:function(){var e=(0,L.default)(this.props.vaultPressData,["data","features","security"],!1);return M.default.createElement(C.default,(0,o.default)({feature:w.FEATURE_SECURITY_SCANNING_JETPACK},this.props,{header:(0,v.translate)("Backups and security scanning",{context:"Settings header"}),action:"scan",hideButton:!0}),M.default.createElement(z.default,{disableInDevMode:!0,module:{module:"backups"},support:"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,v.translate)("Configure your Security Scans")))}}]),t}(_.Component));t.default=(0,g.connect)(function(e){return{sitePlan:(0,P.getSitePlan)(e),isFetchingSiteData:(0,P.isFetchingSiteData)(e),vaultPressData:(0,N.getVaultPressData)(e),isFetchingVaultPressData:(0,N.isFetchingVaultPressData)(e),hasThreats:(0,N.getVaultPressScanThreatCount)(e)}})(j)},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(834),y=r(b),A=n(959),E=r(A),T=n(963),L=r(T),w=n(792),k=r(w),S=n(769),C=r(S),O=n(276),z=r(O),N=n(832),P=r(N),D=n(966),x=r(D),j=n(466),R=n(872),Y=n(724),W=r(Y),q=n(837),I=n(869),B=n(871),U=r(B),H=n(899),F=r(H),X=t.Antispam=(0,I.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,f.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(i))),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(){W.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})},a=n,(0,f.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,P.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,v.translate)("Checking your spam protection…"),r=!0;return null===this.props.isAkismetKeyValid?(e.value=(0,v.translate)("Fetching key…"),e.disabled=!0,r=!1):""===this.state.apiKey?(e.value="",n=(0,v.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(k.default,{size:24,icon:"sync"}),(0,v.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(L.default,{isError:!0,text:(0,v.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,v.translate)("Your site is not protected from spam.")):(t=M.default.createElement(L.default,{text:(0,v.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,v.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,o.default)({},this.props,{header:(0,v.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:"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,v.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,v.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,g.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";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(142),o=n(756),i=n(757),s=n(874),c=n(960),l=n(792),u=n(881);n(961);var d=a.createClass({displayName:"FoldableCard",propTypes:{actionButton:a.PropTypes.element,actionButtonExpanded:a.PropTypes.element,cardKey:a.PropTypes.string,compact:a.PropTypes.bool,disabled:a.PropTypes.bool,expandedSummary:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),expanded:a.PropTypes.bool,icon:a.PropTypes.string,onClick:a.PropTypes.func,onClose:a.PropTypes.func,onOpen:a.PropTypes.func,summary:a.PropTypes.oneOfType([a.PropTypes.string,a.PropTypes.element]),clickableHeader:a.PropTypes.bool,clickableHeaderText:a.PropTypes.bool},getInitialState:function(){return{expanded:this.props.expanded}},getDefaultProps:function(){return{onOpen:i,onClose:i,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1}},onClick:function(){this.props.children&&this.setState({expanded:!this.state.expanded}),this.props.onClick&&this.props.onClick(),this.state.expanded?this.props.onClose(this.props.cardKey):this.props.onOpen(this.props.cardKey)},getClickAction:function(){if(!this.props.disabled)return this.onClick},getActionButton:function(){return this.state.expanded?this.props.actionButtonExpanded||this.props.actionButton:this.props.actionButton},renderActionButton:function(){var e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return a.createElement("button",{className:"dops-foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){return a.createElement("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e},a.createElement("span",{className:"screen-reader-text"},"More"),a.createElement(l,{icon:this.props.icon,size:24}))}},renderContent:function(){return a.createElement("div",{className:"dops-foldable-card__content"},this.props.children)},renderHeader:function(){var e=this.props.summary?a.createElement("span",{className:"dops-foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?a.createElement("span",{className:"dops-foldable-card__summary_expanded"},this.props.expandedSummary," "):null,n=this.props.header?a.createElement("div",{className:"dops-foldable-card__header-text"},this.props.header):null,i=this.props.subheader?a.createElement("div",{className:"dops-foldable-card__subheader"},this.props.subheader):null,s={role:"button",tabIndex:0,onClick:this.getClickAction(),onKeyDown:u(this.getClickAction())},c=o("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),l=o("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return a.createElement("div",r({className:c},this.props.clickableHeader?s:{}),a.createElement("span",{className:"dops-foldable-card__main"},a.createElement("div",r({className:l},this.props.clickableHeaderText?s:{}),n,i)),a.createElement("span",{className:"dops-foldable-card__secondary"},e,t,this.renderActionButton()))},render:function(){var e=this.props.compact?c:s,t=o("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return a.createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}});e.exports=d},function(e,t,n){"use strict";var r=n(142),a=n(276),o=n(756),i=n(874);e.exports=r.createClass({displayName:"CompactCard",render:function(){var e=a({},this.props,{className:o(this.props.className,"is-compact")});return r.createElement(i,e,this.props.children)}})},function(e,t){},,function(e,t,n){"use strict";var r=n(142),a=n(756),o=n(792);n(964),e.exports=r.createClass({displayName:"FormInputValidation",propTypes:{isError:r.PropTypes.bool,isWarning:r.PropTypes.bool,text:r.PropTypes.node,icon:r.PropTypes.string},getDefaultProps:function(){return{isError:!1}},render:function(){var e=a({"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 r.createElement("div",{className:e},r.createElement("span",null,r.createElement(o,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}})},function(e,t){},,function(e,t,n){function r(e,t,n){if((e=l(e))&&(n||void 0===t))return e.replace(u,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),p=s(r,d),f=i(r,d)+1;return o(r,p,f).join("")}var a=n(461),o=n(967),i=n(968),s=n(969),c=n(970),l=n(460),u=/^\s+|\s+#x2F;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(861);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(710);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(710);e.exports=r},function(e,t,n){function r(e){return o(e)?i(e):a(e)}var a=n(971),o=n(892),i=n(972);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]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,i].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",l="[\\ufe0e\\ufe0f]?"+s+c,u="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,o,i,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+u+l,"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.Protect=void 0;var a=n(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(755),b=r(v),y=n(974),A=r(y),E=n(709),T=r(E),L=n(959),w=r(L),k=n(839),S=r(k),C=n(724),O=r(C),z=n(837),N=n(864),P=n(869),D=n(871),x=r(D),j=n(899),R=r(j);t.Protect=(0,P.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,l.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,f.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(i))),r.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,T.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,f.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,o.default)({},this.props,{module:"protect",header:(0,g.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(w.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")},M.default.createElement(z.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,g.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(b.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,g.translate)("Add to whitelist"))),M.default.createElement(z.FormLabel,null,M.default.createElement(z.FormLegend,null,(0,g.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,g.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";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(142),o=n(756),i=n(840);n(975),e.exports=a.createClass({displayName:"Textarea",render:function(){return a.createElement("textarea",r({},i(this.props,"className"),{className:o(this.props.className,"dops-textarea")}),this.props.children)}})},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(399),o=r(a),i=n(517),s=r(i),c=n(493),l=r(c),u=n(497),d=r(u),p=n(831),f=r(p),h=n(498),m=r(h),_=n(499),M=r(_),g=n(142),v=r(g),b=n(524),y=n(865),A=r(y),E=n(837),T=n(864),L=n(869),w=n(871),k=r(w),S=n(899),C=r(S);t.SSO=(0,L.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,l.default)(t)).call.apply(e,[this].concat(i))),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.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,f.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("sso"),n=this.props.isUnavailableInDevMode("sso");return v.default.createElement(k.default,(0,o.default)({},this.props,{hideButton:!0,module:"sso",header:(0,b.translate)("WordPress.com log in",{context:"Settings header"})}),v.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso")},v.default.createElement(T.ModuleToggle,{slug:"sso",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},v.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),v.default.createElement(E.FormFieldset,null,v.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:function(){return e.updateOptions("jetpack_sso_match_by_email")}},v.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Match accounts using email addresses"))),v.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!t||n||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:function(){return e.updateOptions("jetpack_sso_require_two_step")}},v.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(g.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(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(512),u=n(729),d=n(707),p=n(744),f=n(830),h=r(f),m=n(979),_=n(980),M=n(981),g=n(982),v=n(984),b=n(985),y=(r(b),n(986)),A=n(987),E=r(A),T=n(398),L=t.Traffic=s.default.createClass({displayName:"TrafficSettings",render:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),i=this.props.isModuleFound("verification-tools"),c=this.props.isModuleFound("sitemaps"),l=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||i||c||l)?s.default.createElement("div",null,s.default.createElement(h.default,null),r&&s.default.createElement(g.SiteStats,e),n&&s.default.createElement(M.Ads,(0,o.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&s.default.createElement(v.RelatedPosts,(0,o.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&&s.default.createElement(m.SEO,(0,o.default)({},e,{configureUrl:"https://wordpress.com/settings/seo/"+this.props.siteRawUrl})),l&&s.default.createElement(_.GoogleAnalytics,(0,o.default)({},e,{configureUrl:"https://wordpress.com/settings/analytics/"+this.props.siteRawUrl})),c&&s.default.createElement(E.default,e),i&&s.default.createElement(y.VerificationServices,e),!1):null}});t.default=(0,c.connect)(function(e){return{module:function(t){return(0,l.getModule)(e,t)},settings:(0,u.getSettings)(e),isDevMode:(0,d.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,d.isUnavailableInDevMode)(e,t)},
32
+ isModuleFound:function(t){return(0,p.isModuleFound)(e,t)},lastPostUrl:(0,T.getLastPostUrl)(e)}})(L)},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(399),o=r(a),i=n(142),s=r(i),c=n(524),l=n(874),u=r(l),d=n(724),p=r(d),f=n(872),h=n(869),m=n(871),_=r(m),M=n(899),g=r(M);t.SEO=(0,h.ModuleSettingsForm)(s.default.createClass({displayName:"SEO",trackConfigureClick:function(){p.default.tracks.recordJetpackClick("configure-seo")},render:function(){return s.default.createElement(_.default,(0,o.default)({},this.props,{header:(0,c.translate)("Search engine optimization",{context:"Settings header"}),feature:f.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),s.default.createElement(g.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:"https://jetpack.com/support/seo-tools/"},s.default.createElement("span",null,(0,c.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:s.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&s.default.createElement(u.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,c.translate)("Configure your SEO settings")))}}))},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(724),A=r(y),E=n(872),T=n(869),L=n(871),w=r(L),k=n(899),S=r(k);t.GoogleAnalytics=(0,T.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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(w.default,(0,o.default)({},this.props,{header:(0,g.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:"https://jetpack.com/support/google-analytics/"},M.default.createElement("p",null,(0,g.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(b.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,g.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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(524),d=n(874),p=r(d),f=n(865),h=r(f),m=n(724),_=r(m),M=n(872),g=n(837),v=n(869),b=n(864),y=n(871),A=r(y),E=n(899),T=r(E);t.Ads=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"Ads",getInitialState:function(){return{enable_header_ad:this.props.getOptionValue("enable_header_ad","wordads"),wordads_second_belowpost:this.props.getOptionValue("wordads_second_belowpost","wordads"),wordads_display_front_page:this.props.getOptionValue("wordads_display_front_page","wordads"),wordads_display_post:this.props.getOptionValue("wordads_display_post","wordads"),wordads_display_page:this.props.getOptionValue("wordads_display_page","wordads"),wordads_display_archive:this.props.getOptionValue("wordads_display_archive","wordads")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("wordads",e))},trackConfigureClick:function(){_.default.tracks.recordJetpackClick("view-earnings")},render:function(){var e=this,t=this.props.getOptionValue("wordads"),n=this.props.isUnavailableInDevMode("wordads");return l.default.createElement(A.default,(0,o.default)({},this.props,{header:(0,u.translate)("Ads",{context:"Ads header"}),feature:M.FEATURE_WORDADS_JETPACK,hideButton:!0}),l.default.createElement(T.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:"https://jetpack.com/support/ads/"},l.default.createElement("p",null,(0,u.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."),l.default.createElement("br",null),l.default.createElement("small",{className:"jp-form-setting-explanation"},(0,u.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:l.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer"})}}))),l.default.createElement(b.ModuleToggle,{slug:"wordads",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Enable ads and display an ad below each post"))),l.default.createElement(g.FormFieldset,null,l.default.createElement(g.FormLegend,null,(0,u.translate)("Display ads below posts on")),l.default.createElement(h.default,{checked:this.state.wordads_display_front_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:function(){return e.updateOptions("wordads_display_front_page")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Front page"))),l.default.createElement(h.default,{checked:this.state.wordads_display_post,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:function(){return e.updateOptions("wordads_display_post")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Posts"))),l.default.createElement(h.default,{checked:this.state.wordads_display_page,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:function(){return e.updateOptions("wordads_display_page")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Pages"))),l.default.createElement(h.default,{checked:this.state.wordads_display_archive,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:function(){return e.updateOptions("wordads_display_archive")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Archives")))),l.default.createElement(g.FormFieldset,null,l.default.createElement(g.FormLegend,null,(0,u.translate)("Additional ad placements")),l.default.createElement(h.default,{checked:this.state.enable_header_ad,disabled:!t||n||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:function(){return e.updateOptions("enable_header_ad")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Top of each page"))),l.default.createElement(h.default,{checked:this.state.wordads_second_belowpost,disabled:!t||n||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:function(){return e.updateOptions("wordads_second_belowpost")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Second ad below post"))))),!n&&t&&l.default.createElement(p.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,u.translate)("View your earnings")))}}))},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(399),o=r(a),i=n(514),s=r(i),c=n(517),l=r(c),u=n(142),d=r(u),p=n(524),f=n(865),h=r(f),m=n(959),_=r(m),M=n(755),g=r(M),v=n(874),b=r(v),y=n(709),A=r(y),E=n(731),T=r(E),L=n(839),w=r(L),k=n(983),S=n(724),C=r(S),O=n(837),z=n(864),N=n(869),P=n(899),D=r(P),x=n(871),j=r(x);t.SiteStats=(0,N.ModuleSettingsForm)(d.default.createClass({displayName:"SiteStats",getInitialState:function(){var e=this.props.getOptionValue("count_roles","stats"),t=this.props.getOptionValue("roles","stats");return{count_roles:e,roles:t,count_roles_administrator:(0,A.default)(e,"administrator",!1),count_roles_editor:(0,A.default)(e,"editor",!1),count_roles_author:(0,A.default)(e,"author",!1),count_roles_contributor:(0,A.default)(e,"contributor",!1),count_roles_subscriber:(0,A.default)(e,"subscriber",!1),roles_administrator:!0,roles_editor:(0,A.default)(t,"editor",!1),roles_author:(0,A.default)(t,"author",!1),roles_contributor:(0,A.default)(t,"contributor",!1),roles_subscriber:(0,A.default)(t,"subscriber",!1)}},updateOptions:function(e,t){var n=this,r=this.props.getOptionValue(t,"stats"),a=!1;this.state[t+"_"+e]?(0,A.default)(r,e)&&(r=(0,T.default)(r,function(t){return t!==e})):(0,A.default)(r,e)||(r.push(e),a=!0),this.setState((0,l.default)({},t+"_"+e,!this.state[t+"_"+e]),function(){n.props.updateOptions((0,l.default)({},t,r))}),C.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},activateStats:function(){this.props.updateOptions({stats:!0})},trackOpenCard:function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})},render:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return n?d.default.createElement(j.default,(0,o.default)({},this.props,{header:(0,p.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),d.default.createElement(_.default,{onOpen:this.trackOpenCard,header:(0,p.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,w.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},d.default.createElement(D.default,{disableInDevMode:!0,module:t},d.default.createElement(O.FormFieldset,null,d.default.createElement(z.ModuleToggle,{slug:"stats",compact:!0,disabled:!n||r,activated:!!this.props.getOptionValue("admin_bar"),toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"admin_bar")}},d.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,p.translate)("Put a chart showing 48 hours of views in the admin bar"))),d.default.createElement(z.ModuleToggle,{slug:"stats",disabled:!n||r,activated:!!this.props.getOptionValue("hide_smile"),toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),toggleModule:function(t){return e.props.updateFormStateModuleOption(t,"hide_smile")}},d.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,p.translate)("Hide the stats smiley face image")),d.default.createElement("span",{className:"jp-form-setting-explanation"},(0,p.translate)("The image helps collect stats, but should work when hidden.")))),d.default.createElement(O.FormFieldset,null,d.default.createElement(O.FormLegend,null,(0,p.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return d.default.createElement(h.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:function(){return e.updateOptions(t,"count_roles")},key:"count_roles-"+t},d.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),d.default.createElement(O.FormFieldset,null,d.default.createElement(O.FormLegend,null,(0,p.translate)("Allow stats reports to be viewed by")),d.default.createElement(h.default,{checked:!0,disabled:!0},d.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&d.default.createElement(h.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:function(){return e.updateOptions(t,"roles")},key:"roles-"+t},d.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):d.default.createElement(b.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},d.default.createElement("img",{src:k.imagePath+"stats.svg",width:"60",height:"60",alt:(0,p.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,p.translate)("Unavailable in Dev Mode"):(0,p.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:d.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:d.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&d.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},d.default.createElement(g.default,{onClick:this.activateStats,primary:!0},(0,p.translate)("Activate Site Stats")))))}}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.imagePath=window.Initial_State.pluginBaseUrl+"/images/",t.JETPACK_CONTACT_SUPPORT="https://jetpack.com/contact-support",t.JETPACK_CONTACT_BETA_SUPPORT="https://jetpack.com/contact-support/beta-group"},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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(524),d=n(952),p=r(d),f=n(874),h=r(f),m=n(865),_=r(m),M=n(837),g=n(864),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A);t.RelatedPosts=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"RelatedPosts",getInitialState:function(){return{show_headline:this.props.getOptionValue("show_headline","related-posts"),show_thumbnails:this.props.getOptionValue("show_thumbnails","related-posts")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("related-posts",e))},render:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return l.default.createElement(y.default,(0,o.default)({},this.props,{hideButton:!0,module:"related-posts"}),l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts")},l.default.createElement(g.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Show related content after posts"))),l.default.createElement(M.FormFieldset,null,l.default.createElement(_.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:function(){return e.updateOptions("show_headline")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)('Show a "Related" header to more clearly separate the related section from posts'))),l.default.createElement(_.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:function(){return e.updateOptions("show_thumbnails")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,u.translate)("Use a large and visually striking layout"))),(0,u.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:l.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:l.default.createElement(p.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),l.default.createElement(M.FormLabel,{className:"jp-form-label-wide"},(0,u.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),l.default.createElement(h.default,{className:"jp-related-posts-preview"},this.state.show_headline&&l.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,u.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,u.translate)("Big iPhone/iPad Update Now Available"),context:(0,u.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,u.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,u.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,u.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,u.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return l.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&l.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),l.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},l.default.createElement("a",{href:"#/traffic"},t.text)),l.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}))},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(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(869),d=n(864),p=n(871),f=r(p),h=n(899),m=r(h),_=n(398),M=n(872),g=n(735),v=(0,u.ModuleSettingsForm)(s.default.createClass({displayName:"Search",render:function(){var e=this.props.getModule("search"),t=null;return this.props.sitePlan&&(t=(0,M.getPlanClass)(this.props.sitePlan.product_slug)),"is-business-plan"===t?s.default.createElement(f.default,(0,o.default)({},this.props,{module:"search",hideButton:!0}),s.default.createElement(m.default,{module:{module:"search"},hasChild:!0,support:e.learn_more_button},s.default.createElement(d.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,l.translate)("Enhanced site-wide search, powered by Elasticsearch (Beta)")))):null}}));t.default=(0,c.connect)(function(e){return{siteAdminUrl:(0,_.getSiteAdminUrl)(e),sitePlan:(0,g.getSitePlan)(e),fetchingSiteData:(0,g.isFetchingSiteData)(e)}})(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}),t.VerificationServices=void 0;var a=n(399),o=r(a),i=n(142),s=r(i),c=n(524),l=n(834),u=r(l),d=n(952),p=r(d),f=n(837),h=n(869),m=n(871),_=r(m),M=n(899),g=r(M),v=n(887),b=r(v);t.VerificationServices=(0,h.ModuleSettingsForm)(s.default.createClass({displayName:"VerificationServices",activateVerificationTools:function(){return this.props.updateOptions({"verification-tools":!0})},render:function(){var e=this,t=this.props.getModule("verification-tools");return this.props.getOptionValue("verification-tools")?s.default.createElement(_.default,(0,o.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),s.default.createElement(g.default,{module:t,support:t.learn_more_button},s.default.createElement("p",null,(0,c.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:s.default.createElement("strong",null),support:s.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:s.default.createElement(p.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),s.default.createElement(f.FormFieldset,null,[{id:"google",label:(0,c.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,c.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,c.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,c.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return s.default.createElement(f.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},s.default.createElement("span",null,t.label),s.default.createElement(u.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}))})))):s.default.createElement(b.default,{callToAction:(0,c.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}))},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(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(952),d=r(u),p=n(452),f=r(p),h=n(724),m=r(h),_=n(837),M=n(869),g=n(864),v=n(871),b=r(v),y=n(899),A=r(y),E=n(398),T=t.Sitemaps=(0,M.ModuleSettingsForm)(s.default.createClass({displayName:"Sitemaps",trackSitemapUrl:function(){m.default.tracks.recordJetpackClick("sitemap-url-link")},trackSitemapNewsUrl:function(){m.default.tracks.recordJetpackClick("sitemap-news-url-link")},render:function(){var e=this.props.getModule("sitemaps"),t=(0,f.default)(e,["extra","sitemap_url"],""),n=(0,f.default)(e,["extra","news_sitemap_url"],"");return s.default.createElement(b.default,(0,o.default)({},this.props,{module:"sitemaps",hideButton:!0}),s.default.createElement(A.default,{module:{module:"sitemaps"},hasChild:!0,support:e.learn_more_button},s.default.createElement(g.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,l.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&s.default.createElement(_.FormFieldset,null,s.default.createElement("p",{className:"jp-form-setting-explanation"},(0,l.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),s.default.createElement("p",null,s.default.createElement(d.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),s.default.createElement("br",null),s.default.createElement(d.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):s.default.createElement(_.FormFieldset,null,s.default.createElement("p",{className:"jp-form-setting-explanation"},(0,l.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:s.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}));t.default=(0,c.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,E.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,E.getSiteAdminUrl)(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.Writing=void 0;var a=n(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(874),d=r(u),p=n(512),f=n(729),h=n(398),m=n(707),_=n(744),M=n(830),g=r(M),v=n(989),b=r(v),y=n(992),A=r(y),E=n(993),T=r(E),L=n(994),w=r(L),k=n(995),S=r(k),C=n(1008),O=t.Writing=s.default.createClass({displayName:"WritingSettings",render:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress"].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 s.default.createElement("div",null,s.default.createElement(g.default,null),this.props.isModuleFound("masterbar")&&s.default.createElement(C.Masterbar,(0,o.default)({connectUrl:this.props.connectUrl},e)),n&&s.default.createElement(b.default,(0,o.default)({},e,{userCanManageModules:this.props.userCanManageModules})),s.default.createElement(A.default,e),this.props.isModuleFound("custom-content-types")&&s.default.createElement(T.default,e),s.default.createElement(w.default,e),this.props.isModuleFound("post-by-email")&&r&&s.default.createElement(S.default,(0,o.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&s.default.createElement(d.default,null,(0,l.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}});t.default=(0,c.connect)(function(e){return{module:function(t){return(0,p.getModule)(e,t)},settings:(0,f.getSettings)(e),isDevMode:(0,m.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,m.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,h.userCanEditPosts)(e),isModuleActivated:function(t){return(0,p.isModuleActivated)(e,t)},isLinked:(0,m.isCurrentUserLinked)(e),userCanManageModules:(0,h.userCanManageModules)(e),isModuleFound:function(t){return(0,_.isModuleFound)(e,t)},connectUrl:(0,m.getConnectUrl)(e)}})(O)},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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(959),m=r(h),_=n(839),M=r(_),g=n(724),v=r(g),b=n(837),y=n(744),A=n(864),E=n(869),T=n(512),L=n(990),w=r(L),k=n(871),S=r(k),C=n(899),O=r(C),z=(0,E.ModuleSettingsForm)(l.default.createClass({displayName:"Composing",getInitialState:function(){return{onpublish:this.props.getOptionValue("onpublish","after-the-deadline"),onupdate:this.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:this.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":this.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:this.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":this.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":this.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":this.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":this.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":this.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":this.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":this.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":this.props.getOptionValue("Redundant Expression","after-the-deadline")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("after-the-deadline",e))},getToggle:function(e,t){var n=this;return l.default.createElement(f.default,{checked:this.state[e],disabled:!this.props.getOptionValue("after-the-deadline")||this.props.isUnavailableInDevMode("after-the-deadline")||this.props.isSavingAnyOption(["after-the-deadline",e]),onChange:function(){return n.updateOptions(e)}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},getAtdSettings:function(){var e=this.props.getOptionValue("ignored_phrases");return l.default.createElement(O.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("after-the-deadline")},l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null," ",(0,d.translate)("Proofreading")," "),l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("Automatically proofread content when: ")),this.getToggle("onpublish",(0,d.translate)("A post or page is first published")),this.getToggle("onupdate",(0,d.translate)("A post or page is updated"))),l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null," ",(0,d.translate)("Automatic Language Detection")),l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),this.getToggle("guess_lang",(0,d.translate)("Use automatically detected language to proofread posts and pages"))),l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null," ",(0,d.translate)("English Options")," "),l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("Enable proofreading for the following grammar and style rules: ")),this.getToggle("Bias Language",(0,d.translate)("Bias Language")),this.getToggle("Cliches",(0,d.translate)("Clichés")),this.getToggle("Complex Expression",(0,d.translate)("Complex Phrases")),this.getToggle("Diacritical Marks",(0,d.translate)("Diacritical Marks")),this.getToggle("Double Negative",(0,d.translate)("Double Negatives")),this.getToggle("Hidden Verbs",(0,d.translate)("Hidden Verbs")),this.getToggle("Jargon Language",(0,d.translate)("Jargon")),this.getToggle("Passive voice",(0,d.translate)("Passive Voice")),this.getToggle("Phrases to Avoid",(0,d.translate)("Phrases to Avoid")),this.getToggle("Redundant Expression",(0,d.translate)("Redundant Phrases"))),l.default.createElement(b.FormFieldset,null,l.default.createElement(b.FormLegend,null,(0,d.translate)("Ignored Phrases")),l.default.createElement(w.default,{name:"ignored_phrases",disabled:!this.props.getOptionValue("after-the-deadline"),placeholder:(0,d.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:this.props.onOptionChange}),l.default.createElement("span",{
33
+ className:"jp-form-setting-explanation"},(0,d.translate)("Confirm each new phrase you add by pressing enter."))))},updateFormStateByMarkdown:function(e){return this.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},trackOpenCard:function(){v.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},render: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"),i=l.default.createElement(O.default,{module:n},l.default.createElement(b.FormFieldset,null,l.default.createElement(A.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},l.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=l.default.createElement(m.default,{onOpen:this.trackOpenCard,className:(0,M.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?l.default.createElement(A.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},l.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):l.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return l.default.createElement(S.default,(0,o.default)({},this.props,{header:(0,d.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&i,e&&s)}}));t.default=(0,u.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,y.isModuleFound)(e,t)}}})(z),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(142),o=r(a),i=n(991),s=r(i),c=o.default.createClass({displayName:"JetpackTagsInput",getInitialState:function(){return{tags:this.props.value||[]}},handleChange:function(e){this.setState({tags:e}),this.props.onChange&&this.props.onChange({target:{name:this.props.name,value:e.join(",")}})},render:function(){return o.default.createElement(s.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}});t.default=c,e.exports=t.default},function(e,t,n){var r,a,o;!function(i,s){a=[e,t,n(142)],r=s,void 0!==(o="function"==typeof r?r.apply(t,a):r)&&(e.exports=o)}(0,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 i(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 s(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 c(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function l(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function u(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,o=e.classNameRemove,i=e.getTagDisplayValue,c=s(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return h.default.createElement("span",_({key:n},c),i(t),!r&&h.default.createElement("a",{className:o,onClick:function(e){return a(n)}}))}function d(e){var t=(e.addTag,s(e,["addTag"])),n=t.onChange,r=t.value,a=s(t,["onChange","value"]);return h.default.createElement("input",_({type:"text",onChange:n,value:r},a))}function p(e,t){return h.default.createElement("span",null,e,t)}function f(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){return e&&e.__esModule?e:{default:e}}(n),m=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}}(),_=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},M={className:"react-tagsinput-input",placeholder:"Add a tag"},g=function(e){function t(){a(this,t);var e=o(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 i(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?r({},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,o=n.onValidationReject,i=n.onlyUnique,s=n.maxTags,l=n.value;i&&(e=c(e),e=e.filter(function(e){return l.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-l.length,0);e=e.slice(0,d)}if(o&&u.length>0&&o(u),e.length>0){for(var p=l.concat(e),f=[],h=0;h<e.length;h++)f.push(l.length+h);return a(p,e,f),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 o=l(e),i=a(o).map(function(e){return t._makeTag(e)});this._addTags(i)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,o=this._tag(),i=""===o,s=e.keyCode,c=e.key,l=-1!==a.indexOf(s)||-1!==a.indexOf(c),u=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(l){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,i,s)&&e.preventDefault()}u&&n.length>0&&i&&(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,s(e,["onChange","onFocus","onBlur"])),n=_({},M,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,o=t.renderTag,i=t.renderInput,c=(t.addKeys,t.removeKeys,t.className),l=t.focusedClassName,u=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,s(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&&(c+=" "+l);var d=n.map(function(t,n){return o(_({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:u,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),p=i(_({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 h.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:c},a(d,p))}}]),t}(h.default.Component);g.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:d,renderTag:u,renderLayout:p,pasteSplit:f,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(709),m=r(h),_=n(872),M=n(837),g=n(864),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A),T=n(512),L=n(744),w=n(735),k=(0,v.ModuleSettingsForm)(l.default.createClass({displayName:"Media",getInitialState:function(){return{carousel_display_exif:this.props.getOptionValue("carousel_display_exif","carousel")}},updateOptions:function(e){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption("carousel",e))},toggleModule:function(e,t){"photon"===e?!1==!t?this.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):this.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):this.props.updateFormStateOptionValue(e,!t)},render:function(){var e=this,t=this.props.isModuleFound("photon"),n=this.props.isModuleFound("carousel"),r=this.props.isModuleFound("videopress");if(!n&&!t&&!r)return null;var a=this.props.module("photon"),i=this.props.module("carousel"),s=this.props.getOptionValue("carousel"),c=this.props.module("videopress"),u=(0,_.getPlanClass)(this.props.sitePlan.product_slug),p=l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:a},l.default.createElement(g.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},l.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description)),l.default.createElement(M.FormFieldset,null,l.default.createElement("span",{className:"jp-form-setting-explanation"},(0,d.translate)("Must be enabled to use tiled galleries.")))),h=l.default.createElement(E.default,{module:{module:"carousel"},hasChild:!0,support:i.learn_more_button},l.default.createElement(g.ModuleToggle,{slug:"carousel",activated:s,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},i.description)),l.default.createElement(M.FormFieldset,null,l.default.createElement(f.default,{checked:this.state.carousel_display_exif,disabled:!s||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:function(){return e.updateOptions("carousel_display_exif")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Show photo metadata (Exif) in carousel, when available"))),l.default.createElement(M.FormLabel,null,l.default.createElement(M.FormLegend,{className:"jp-form-label-wide"},(0,d.translate)("Color scheme")),l.default.createElement(M.FormSelect,(0,o.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!s||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),v=(0,m.default)(["is-premium-plan","is-business-plan"],u)&&l.default.createElement(E.default,{hasChild:!0,disableInDevMode:!0,module:c},l.default.createElement(g.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},c.description)));return l.default.createElement(y.default,(0,o.default)({},this.props,{header:(0,d.translate)("Media"),hideButton:!n,feature:_.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),t&&p,n&&h,r&&v)}}));t.default=(0,u.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)},sitePlan:(0,w.getSitePlan)(e)}})(k),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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(837),m=n(869),_=n(512),M=n(744),g=n(871),v=r(g),b=n(899),y=r(b),A=(0,m.ModuleSettingsForm)(l.default.createClass({displayName:"CustomContentTypes",getInitialState:function(){return{testimonial:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:this.props.getOptionValue("jetpack_portfolio","custom-content-types")}},updateCPTs:function(e){var t="testimonial"===e?!(!this.state.testimonial||this.state.portfolio):!(!this.state.portfolio||this.state.testimonial);this.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),this.setState((0,s.default)({},e,!this.state[e]))},linkIfActiveCPT:function(e){return this.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?l.default.createElement("a",{href:this.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):l.default.createElement("span",null)},render:function(){var e=this;if(!this.props.isModuleFound("custom-content-types"))return null;var t=this.props.module("custom-content-types");return l.default.createElement(v.default,(0,o.default)({},this.props,{module:"custom-content-types",hideButton:!0}),l.default.createElement(y.default,{hasChild:!0,module:t,support:t.learn_more_button},l.default.createElement(f.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:function(){return e.updateCPTs("testimonial")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Testimonials"))),l.default.createElement(h.FormFieldset,null,l.default.createElement("p",{className:"jp-form-setting-explanation"},(0,d.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")}}))),l.default.createElement(f.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:function(){return e.updateCPTs("portfolio")}},l.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,d.translate)("Portfolios"))),l.default.createElement(h.FormFieldset,null,l.default.createElement("p",{className:"jp-form-setting-explanation"},(0,d.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.default=(0,u.connect)(function(e){return{module:function(t){return(0,_.getModule)(e,t)},isModuleFound:function(t){return(0,M.isModuleFound)(e,t)}}})(A),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(399),o=r(a),i=n(517),s=r(i),c=n(142),l=r(c),u=n(154),d=n(524),p=n(865),f=r(p),h=n(724),m=r(h),_=n(837),M=n(864),g=n(512),v=n(398),b=n(744),y=n(869),A=n(871),E=r(A),T=n(899),L=r(T),w=(0,y.ModuleSettingsForm)(l.default.createClass({displayName:"ThemeEnhancements",getInitialState:function(){return{infinite_mode:this.getInfiniteMode(),wp_mobile_excerpt:this.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:this.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:this.props.getOptionValue("wp_mobile_app_promos","minileven")}},getInfiniteMode:function(){return this.props.getOptionValue("infinite-scroll")?this.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},updateInfiniteMode:function(e){this.setState({infinite_mode:e},this.prepareOptionsToUpdate)},prepareOptionsToUpdate:function(){"infinite_default"===this.state.infinite_mode?this.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==this.state.infinite_mode&&"infinite_button"!==this.state.infinite_mode||this.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===this.state.infinite_mode})},updateOptions:function(e,t){this.setState((0,s.default)({},e,!this.state[e]),this.props.updateFormStateModuleOption(t,e))},trackLearnMoreIS:function(){m.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},render:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");return t||n?l.default.createElement(E.default,(0,o.default)({},this.props,{header:(0,d.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),t&&[(0,o.default)({},this.props.getModule("infinite-scroll"),{radios:[{key:"infinite_default",label:(0,d.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,d.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,d.translate)("Load more posts as the reader scrolls down")}]})].map(function(t){return e.props.isModuleFound(t.module)?l.default.createElement(L.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},l.default.createElement(_.FormLegend,{className:"jp-form-label-wide"},t.name),e.props.isInfiniteScrollSupported?t.radios.map(function(n){return l.default.createElement(_.FormLabel,{key:t.module+"_"+n.key},l.default.createElement("input",{type:"radio",name:"infinite_mode",value:n.key,checked:n.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([t.module,n.key]),onChange:function(){return e.updateInfiniteMode(n.key)}}),l.default.createElement("span",{className:"jp-form-toggle-explanation"},n.label))}):l.default.createElement("span",null,(0,d.translate)("Theme support required.")+" ",l.default.createElement("a",{onClick:e.trackLearnMoreIS,href:t.learn_more_button+"#theme",title:(0,d.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,d.translate)("Learn more")))):null}),n&&[(0,o.default)({},this.props.getModule("minileven"),{checkboxes:[{key:"wp_mobile_excerpt",label:(0,d.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,d.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,d.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}]})].map(function(t){var n=e.props.getOptionValue(t.module);return e.props.isModuleFound(t.module)?l.default.createElement(L.default,{hasChild:!0,module:{module:t.module},key:"theme_enhancement_"+t.module,support:t.learn_more_button},l.default.createElement(M.ModuleToggle,{slug:t.module,activated:n,toggling:e.props.isSavingAnyOption(t.module),toggleModule:e.props.toggleModuleNow},l.default.createElement("span",{className:"jp-form-toggle-explanation"},t.description)),l.default.createElement(_.FormFieldset,null,t.checkboxes.map(function(r){return l.default.createElement(f.default,{checked:e.state[r.key],disabled:!n||e.props.isSavingAnyOption([t.module,r.key]),onChange:function(){return e.updateOptions(r.key,t.module)},key:t.module+"_"+r.key},l.default.createElement("span",{className:"jp-form-toggle-explanation"},r.label))}))):null})):null}}));t.default=(0,u.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},isInfiniteScrollSupported:(0,v.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,b.isModuleFound)(e,t)}}})(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});var a=n(399),o=r(a),i=n(142),s=r(i),c=n(154),l=n(524),u=n(755),d=r(u),p=n(996),f=r(p),h=n(874),m=r(h),_=n(724),M=r(_),g=n(837),v=n(864),b=n(512),y=n(744),A=n(869),E=n(871),T=r(E),L=n(899),w=r(L),k=(0,A.ModuleSettingsForm)(s.default.createClass({displayName:"PostByEmail",regeneratePostByEmailAddress:function(e){M.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),this.props.regeneratePostByEmailAddress()},address:function(){var e=this.props.getOptionValue("post_by_email_address");return!1===e||"1"===e?"":e},render: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 s.default.createElement(T.default,(0,o.default)({},this.props,{module:"post-by-email",hideButton:!0}),s.default.createElement(w.default,{hasChild:!0,disableInDevMode:!0,module:e},this.props.userCanManageModules?s.default.createElement(v.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},s.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):s.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),s.default.createElement(g.FormFieldset,null,s.default.createElement(g.FormLabel,null,s.default.createElement(g.FormLegend,null,(0,l.translate)("Email Address")),s.default.createElement(f.default,{value:r,disabled:!t||n,copy:(0,l.translate)("Copy",{context:"verb"}),copied:(0,l.translate)("Copied!"),prompt:(0,l.translate)("Highlight and copy the following text to your clipboard:")})),s.default.createElement(d.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,l.translate)("Regenerate address"):(0,l.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&s.default.createElement(m.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,l.translate)("Connect your user account to WordPress.com to use this feature")))}}));t.default=(0,c.connect)(function(e){return{module:function(t){return(0,b.getModule)(e,t)},isModuleFound:function(t){return(0,y.isModuleFound)(e,t)}}})(k),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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(142),i=r(o),s=n(756),c=r(s),l=n(840),u=r(l),d=n(997),p=r(d),f=n(834),h=r(f);n(1006),t.default=i.default.createClass({displayName:"ClipboardButtonInput",propTypes:{value:o.PropTypes.string,disabled:o.PropTypes.bool,className:o.PropTypes.string,copied:o.PropTypes.string,copy:o.PropTypes.string,prompt:o.PropTypes.string},getInitialState:function(){return{isCopied:!1,disabled:!1}},getDefaultProps:function(){return{value:""}},componentWillUnmount:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout},showConfirmation:function(){var e=this;this.setState({isCopied:!0}),this.confirmationTimeout=setTimeout(function(){e.setState({isCopied:!1})},4e3)},render:function(){return i.default.createElement("span",{className:(0,c.default)("dops-clipboard-button-input",this.props.className)},i.default.createElement(h.default,a({},(0,u.default)(this.props,"className"),{type:"text",selectOnFocus:!0,readOnly:!0})),i.default.createElement(p.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))}}),e.exports=t.default},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(755),o=function(e){return e&&e.__esModule?e:{default:e}}(a),i=n(1),s=n(142),c=n(998),l=n(840),u=n(757),d=n(756);e.exports=s.createClass({displayName:"ClipboardButton",propTypes:{className:s.PropTypes.string,text:s.PropTypes.string,prompt:s.PropTypes.string,onCopy:s.PropTypes.func},getDefaultProps:function(){return{onCopy:u}},componentDidMount:function(){var e=this,t=i.findDOMNode(this.refs.button);this.clipboard=new c(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)},componentWillUnmount:function(){this.clipboard.destroy(),delete this.clipboard},displayPrompt:function(){window.prompt(this.props.prompt,this.props.text)},render:function(){var e=d("dops-clipboard-button",this.props.className);return s.createElement(o.default,r({ref:"button"},l(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}})},function(e,t,n){var r,a,o;!function(i,s){a=[e,n(999),n(1001),n(1002)],r=s,void 0!==(o="function"==typeof r?r.apply(t,a):r)&&(e.exports=o)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 l=a(t),u=a(n),d=a(r),p="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},f=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){o(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),f(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"===p(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 l.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}(u.default);e.exports=h})},function(e,t,n){var r,a,o;!function(i,s){a=[e,n(1e3)],r=s,void 0!==(o="function"==typeof r?r.apply(t,a):r)&&(e.exports=o)}(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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return o(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,
34
+ 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=i})},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 o=0,i=r.length;o<i;o++)r[o].fn!==t&&r[o].fn._!==t&&a.push(r[o]);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 o(e,t,n);if(s.string(e))return i(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 o(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 i(e,t,n){return c(document.body,e,t,n)}var s=n(1003),c=n(1004);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,o){var i=a.apply(this,arguments);return e.addEventListener(n,i,o),{destroy:function(){e.removeEventListener(n,i,o)}}}function a(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1005);e.exports=r},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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(869),A=n(871),E=r(A),T=n(899),L=r(T),w=n(864);t.Masterbar=(0,y.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,o.default)({},this.props,{header:(0,g.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"masterbar"},support:"https://jetpack.com/support/masterbar/"},M.default.createElement(w.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,g.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(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,g.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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(512),g=n(729),v=n(707),b=n(744),y=n(398),A=n(830),E=r(A),T=n(1010),L=n(1011),w=n(1012),k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.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(T.Publicize,e),n&&m.default.createElement(L.ShareButtons,e),r&&m.default.createElement(w.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,g.getSettings)(e),isDevMode:(0,v.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,v.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,b.isModuleFound)(e,t)},isLinked:(0,v.isCurrentUserLinked)(e),connectUrl:(0,v.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(k),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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(724),A=r(y),E=n(869),T=n(871),L=r(T),w=n(899),k=r(w),S=n(864);t.Publicize=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,i=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||i?M.default.createElement(L.default,(0,o.default)({},this.props,{header:(0,g.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"publicize"},support:"https://jetpack.com/support/publicize/"},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:i,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Automatically share your posts to social networks"))),i&&function(){if(!t)return n?M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,g.translate)("Connect your social media accounts")):M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,g.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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(874),b=r(v),y=n(724),A=r(y),E=n(869),T=n(871),L=r(T),w=n(899),k=r(w),S=n(864);t.ShareButtons=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,i=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(L.default,(0,o.default)({},this.props,{header:(0,g.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"sharing"},support:"https://jetpack.com/support/sharing/"},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Add sharing buttons to your posts"))),s&&function(){return i?M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,g.translate)("Configure your sharing buttons")):t?M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,g.translate)("Configure your sharing buttons")):M.default.createElement(b.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,g.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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(524),v=n(869),b=n(871),y=r(b),A=n(899),E=r(A),T=n(864);t.Likes=(0,v.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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,o.default)({},this.props,{header:(0,g.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(E.default,{disableInDevMode:!0,module:{module:"likes"},support:"https://jetpack.com/support/likes/"},M.default.createElement(T.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,g.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(517),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(663),b=r(v),y=n(709),A=r(y),E=n(524),T=n(888),L=r(T),w=n(869),k=n(512),S=n(744),C=n(871),O=r(C),z=n(899),N=r(z),P=n(398),D=n(707),x=t.SearchableModules=(0,w.ModuleSettingsForm)(function(e){function t(){return(0,l.default)(this,t),(0,f.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;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","monitor","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,b.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,A.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(M.default.createElement(j,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(M.default.createElement(j,{key:a,moduleData:n})):r.push(M.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,E.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.props.updateOptions.bind(null,(0,o.default)({},n.module,!0)),title:n.name}))}}),M.default.createElement("div",null,r)}}]),t}(_.Component));x.propTypes={searchTerm:M.default.PropTypes.string},x.defaultProps={searchTerm:""};var j=function(e){function t(){return(0,l.default)(this,t),(0,f.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 M.default.createElement(O.default,{header:e.name,action:e.module,hideButton:!0},M.default.createElement(N.default,{disableInDevMode:t,module:{module:e.module},support:e.learn_more_button},e.description))}}]),t}(_.Component);t.default=(0,g.connect)(function(e){return{modules:(0,k.getModules)(e),isModuleFound:function(t){return(0,S.isModuleFound)(e,t)},canManageModules:(0,P.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,D.isUnavailableInDevMode)(e,t)},isDevMode:(0,D.isDevMode)(e)}})(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(142),o=r(a),i=n(154),s=n(874),c=r(s),l=n(524),u=n(1015),d=r(u),p=n(707),f=n(983),h=o.default.createClass({displayName:"JetpackConnect",render:function(){var e=this.props.connectUrl+"&from=new-account-button";return o.default.createElement("div",{className:"jp-jetpack-connect__container"},o.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,l.translate)("Welcome to Jetpack")),o.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Please connect to or create a WordPress.com account to start using Jetpack. This will enable powerful security, traffic, and customization services.")),o.default.createElement(d.default,{from:"landing-page-top"},o.default.createElement("p",null,o.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,l.translate)("No account? Create one for free"))))),o.default.createElement(c.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},o.default.createElement("header",{className:"jp-jetpack-connect__header"},o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"Drive more traffic to your site with Jetpack"},(0,l.translate)("Drive more traffic to your site")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack has many traffic and engagement tools to help you get more viewers to your site and keep them there.")),o.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},o.default.createElement("img",{src:f.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:"Decoration: Jetpack clouds",className:"jp-jetpack-connect__header-img"})," ",o.default.createElement("img",{src:f.imagePath+"stat-bars.svg",width:"400",alt:"Decoration: Jetpack bar graph",className:"jp-jetpack-connect__header-img"}))),o.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Publicize feature",className:"dops-section-header__label"},(0,l.translate)("Publicize",{context:"Header. Noun: Publicize is a module of Jetpack"})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Automated social marketing"},(0,l.translate)("Automated social marketing.")),o.default.createElement("p",null,(0,l.translate)("Use Publicize to automatically share your posts with friends, followers, and the world.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Sharing and Like features",className:"dops-section-header__label"},(0,l.translate)("Sharing & Like Buttons")),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Build a community"},(0,l.translate)("Build a community.")),o.default.createElement("p",null,(0,l.translate)("Give visitors the tools to share and subscribe to your content.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Related Posts feature",className:"dops-section-header__label"},(0,l.translate)("Related Posts",{context:"Header. Noun: Related posts is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Increase page views"},(0,l.translate)("Increase page views.")),o.default.createElement("p",null,(0,l.translate)("Keep visitors engaged by giving them more to share and read with Related Posts."))))),o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"Track your growth"},(0,l.translate)("Track your growth")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack harnesses the power of WordPress.com to show you detailed insights about your visitors, what they’re reading, and where they’re coming from.")),o.default.createElement("img",{src:f.imagePath+"stats-example-med.png",srcSet:f.imagePath+"stats-example-sm.png 445w, "+f.imagePath+"stats-example-med.png 770w, "+f.imagePath+"stats-example-lrg.png 1200w",className:"jp-jetpack-connect__feature-image",alt:"Jetpack statistics and traffic insights graph"}))),o.default.createElement(c.default,{className:"jp-jetpack-connect__feature"},o.default.createElement("header",{className:"jp-jetpack-connect__header"},o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"Site security and peace of mind with Jetpack"},(0,l.translate)("Site security and peace of mind")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack blocks malicious log in attempts, lets you know if your site goes down, and can automatically update your plugins, so you don’t have to worry."))),o.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Protect feature",className:"dops-section-header__label"},(0,l.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Block site attacks"},(0,l.translate)("Block site attacks.")),o.default.createElement("p",null,(0,l.translate)("Gain peace of mind with Protect, the tool that has blocked billions of login attacks across millions of sites.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Monitor features",className:"dops-section-header__label"},(0,l.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Live site monitoring"},(0,l.translate)("Live site monitoring.")),o.default.createElement("p",null,(0,l.translate)("Stress less. Monitor will send you real-time alerts if your site ever goes down.")))),o.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},o.default.createElement("h3",{title:"Jetpack's Manage feature",className:"dops-section-header__label"},(0,l.translate)("Manage",{context:"Header. Noun: Manage is a module of Jetpack."})),o.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},o.default.createElement("h4",{className:"jp-jetpack-connect__feature-content-title",title:"Automatic site updates"},(0,l.translate)("Automatic site updates.")),o.default.createElement("p",null,(0,l.translate)("Never fall behind on a security release or waste time updating multiple sites."))))))),o.default.createElement(c.default,{className:"jp-jetpack-connect__feature"},o.default.createElement("header",{className:"jp-jetpack-connect__header"},o.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:"lightning fast optimized images with Jetpack Photon"},(0,l.translate)("Lightning fast, optimized images")),o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.translate)("Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous imagery super fast. Optimized for any device, and its completely free."))),o.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},o.default.createElement("img",{src:f.imagePath+"feature-photon-med.jpg",srcSet:f.imagePath+"feature-photon-sm.jpg 600w, "+f.imagePath+"feature-photon-med.jpg 770w, "+f.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:"Jetpacks photon serves up lightning fast, optimized images"}))),o.default.createElement(c.default,{className:"jp-jetpack-connect__cta"},o.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,l.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.")),o.default.createElement(d.default,{from:"landing-page-bottom"},o.default.createElement("p",null,o.default.createElement("a",{href:e,className:"jp-jetpack-connect__link"},(0,l.translate)("No account? Create one for free"))))))}});t.default=(0,i.connect)(function(e){return{connectUrl:(0,p.getConnectUrl)(e)}})(h),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.ConnectButton=void 0;var a=n(142),o=r(a),i=n(154),s=n(755),c=r(s),l=n(524),u=n(724),d=r(u),p=n(707),f=n(398),h=n(881),m=r(h),_=n(1016),M=r(_),g=t.ConnectButton=o.default.createClass({displayName:"ConnectButton",propTypes:{connectUser:o.default.PropTypes.bool,from:o.default.PropTypes.string,asLink:o.default.PropTypes.bool},getDefaultProps:function(){return{connectUser:!1,from:"",asLink:!1}},getInitialState:function(){return{showModal:!1}},handleOpenModal:function(e){d.default.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),this.toggleVisibility()},disconnectSite:function(){this.toggleVisibility(),this.props.disconnectSite()},toggleVisibility:function(){this.setState({showModal:!this.state.showModal})},renderUserButton:function(){if(this.props.isLinked)return o.default.createElement("div",null,o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,m.default)(this.props.unlinkUser),onClick:this.props.unlinkUser,disabled:this.props.isUnlinking},(0,l.translate)("Unlink me from WordPress.com")));var e=this.props.connectUrl;this.props.from&&(e+="&from="+this.props.from,e+="&additional-user");var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},n=(0,l.translate)("Link to WordPress.com");return this.props.asLink?o.default.createElement("a",t,n):o.default.createElement(c.default,t,n)},renderContent:function(){if(this.props.connectUser)return this.renderUserButton();if(this.props.isSiteConnected)return o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,m.default)(this.handleOpenModal),onClick:this.handleOpenModal,disabled:this.props.isDisconnecting},(0,l.translate)("Manage site connection"));var e=this.props.connectUrl;this.props.from&&(e+="&from="+this.props.from);var t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},n=(0,l.translate)("Connect Jetpack");return this.props.asLink?o.default.createElement("a",t,n):o.default.createElement(c.default,t,n)},render:function(){return o.default.createElement("div",null,this.renderContent(),this.props.children,!this.props.isSiteConnected&&o.default.createElement("p",{className:"jp-banner__tos-blurb"},(0,l.translate)("By connecting your site you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com",{components:{tosLink:o.default.createElement("a",{href:"https://wordpress.com/tos",rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:o.default.createElement("a",{href:"https://jetpack.com/support/what-data-does-jetpack-sync",rel:"noopener noreferrer",target:"_blank"})}})),o.default.createElement(M.default,{show:this.state.showModal,toggleModal:this.toggleVisibility,disconnectSite:this.disconnectSite}))}});t.default=(0,i.connect)(function(e){return{siteRawUrl:(0,f.getSiteRawUrl)(e),isSiteConnected:(0,p.getSiteConnectionStatus)(e),isDisconnecting:(0,p.isDisconnectingSite)(e),fetchingConnectUrl:(0,p.isFetchingConnectUrl)(e),connectUrl:(0,p.getConnectUrl)(e),isLinked:(0,p.isCurrentUserLinked)(e),isUnlinking:(0,p.isUnlinkingUser)(e)}},function(e){return{disconnectSite:function(){return e((0,p.disconnectSite)())},unlinkUser:function(){return e((0,p.unlinkUser)())}}})(g)},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(142),o=r(a),i=n(154),s=n(524),c=n(755),l=r(c),u=n(874),d=r(u),p=n(792),f=r(p),h=n(1017),m=r(h),_=n(872),M=n(757),g=r(M),v=n(724),b=r(v),y=n(735),A=n(707),E=n(398),T=t.JetpackDisconnectDialog=o.default.createClass({displayName:"JetpackDisconnectDialog",propTypes:{show:o.default.PropTypes.bool,toggleModal:o.default.PropTypes.func,disconnectSite:o.default.PropTypes.func},getDefaultProps:function(){return{show:!1,toggleModal:g.default,disconnectSite:g.default}},getPlanFeatures:function(){switch((0,_.getPlanClass)(this.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,s.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,s.translate)("Priority support"),icon:"chat"},{text:(0,s.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,s.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,s.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,s.translate)("Priority support"),icon:"chat"},{text:(0,s.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,s.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,s.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,s.translate)("Priority support"),icon:"chat"},{text:(0,s.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,s.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,s.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,s.translate)("Brute force attack protection and uptime monitoring"),icon:"lock"},{text:(0,s.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},closeModal:function(){b.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),this.props.toggleModal()},disconnectSiteTrack:function(){b.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),this.props.disconnectSite()},render:function(){
35
+ return this.props.show&&o.default.createElement(m.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},o.default.createElement(d.default,{className:"jp-connection-settings__modal-body"},o.default.createElement("h2",null,(0,s.translate)("Disconnect Jetpack")),o.default.createElement("h4",null,(0,s.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace("::","/")}})),o.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return o.default.createElement("li",{key:"feature_"+e.icon},o.default.createElement(f.default,{icon:e.icon,size:18}),e.text)})),o.default.createElement("div",{className:"jp-connection-settings__modal-actions"},o.default.createElement(l.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,s.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),o.default.createElement(l.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,s.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),o.default.createElement("p",{className:"jp-connection-settings__modal-more"},o.default.createElement("a",{href:"https://jetpack.com/features/"},(0,s.translate)("Read more about Jetpack benefits")))))}});t.default=(0,i.connect)(function(e){return{siteRawUrl:(0,E.getSiteRawUrl)(e),isDisconnecting:(0,A.isDisconnectingSite)(e),sitePlan:(0,y.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,A.disconnectSite)())}}})(T)},function(e,t,n){"use strict";function r(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 a(){p=!0}function o(){p=!1}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(142),c=n(1),l=n(756),u=n(276),d=n(1018),p=!1;n(1020);var f=s.createClass({displayName:"Modal",propTypes:{style:s.PropTypes.object,width:s.PropTypes.oneOf(["wide","medium","narrow"]),className:s.PropTypes.string,title:s.PropTypes.string,initialFocus:s.PropTypes.string,onRequestClose:s.PropTypes.func},getInitialState:function(){return{overlayMouseDown:!1}},getDefaultProps:function(){return{style:{}}},componentDidMount:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{d.activate(c.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}},componentWillUnmount:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{d.deactivate()}catch(e){}},handleEscapeKey:function(e){27===e.keyCode&&this.maybeClose()},maybeClose:function(){this.props.onRequestClose&&!p&&this.props.onRequestClose()},handleMouseDownOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.setState({overlayMouseDown:!0})},handleClickOverlay:function(e){e.preventDefault(),e.stopPropagation(),this.state.overlayMouseDown&&this.props.onRequestClose&&!p&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())},handleMouseEventModal:function(e){e.stopPropagation()},render:function(){var e,t,n=this.props,a=n.style,o=n.className,c=n.width,d=n.title,p=r(n,["style","className","width","title"]);switch(c){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}return t=u({},a,e),s.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},s.createElement("div",i({className:l("dops-modal",o),style:t,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":d},p),this.props.children))}});f.preventClose=a,f.allowClose=o,e.exports=f},function(e,t,n){function r(e,t){p&&a(),p=!0,l="string"==typeof e?document.querySelector(e):e,f=t||{},d=document.activeElement,c(),function(){var e;if(!f.initialFocus){if(!(e=u[0]))throw new Error("You can't have a focus-trap without at least one focusable element");return e}if(!(e="string"==typeof f.initialFocus?document.querySelector(f.initialFocus):f.initialFocus))throw new Error("The `initialFocus` selector you passed referred to no known node");return e}().focus(),document.addEventListener("focus",i,!0),document.addEventListener("click",o,!0),document.addEventListener("touchend",o,!0),document.addEventListener("keydown",s,!0)}function a(){p&&(p=!1,document.removeEventListener("focus",i,!0),document.removeEventListener("click",o,!0),document.removeEventListener("touchend",o,!0),document.removeEventListener("keydown",s,!0),f.onDeactivate&&f.onDeactivate(),setTimeout(function(){d&&d.focus&&d.focus()},0))}function o(e){l.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function i(e){c(),l.contains(e.target)||u[0].focus()}function s(e){if("Tab"===e.key||9===e.keyCode){e.preventDefault(),c();var t=u.indexOf(e.target),n=u[u.length-1],r=u[0];if(e.shiftKey)return e.target===r?void n.focus():void u[t-1].focus(0);if(e.target===n)return void r.focus();u[t+1].focus()}"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||a()}function c(){u=h(l)}var l,u,d,p,f,h=n(1019);e.exports={activate:r,deactivate:a}},function(e,t){function n(){function e(n,r){if(n===document.documentElement)return!1;for(var a=0,o=t.length;a<o;a++)if(t[a][0]===n)return t[a][1];r=r||window.getComputedStyle(n);var i=!1;return"none"===r.display?i=!0:n.parentNode&&(i=e(n.parentNode)),t.push([n,i]),i}var t=[];return function(t){if(t===document.documentElement)return!1;var n=window.getComputedStyle(t);return!!e(t,n)||"hidden"===n.visibility}}e.exports=function(e){for(var t,r,a=[],o=[],i=n(),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s),l=0,u=c.length;l<u;l++)t=c[l],(r=parseInt(t.getAttribute("tabindex"),10)||t.tabIndex)<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||i(t)||(0===r?a.push(t):o.push({index:l,tabIndex:r,node:t}));var d=o.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(d,a),d}},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 o=n(142),i=r(o),s=n(166),c=n(154),l=n(874),u=r(l),d=n(755),p=r(d),f=n(524),h=n(792),m=r(h),_=n(721),M=n(512),g=n(881),v=r(g),b=n(983),y=i.default.createClass({displayName:"JumpStart",activateButton:function(){return i.default.createElement(p.default,{primary:!0,onClick:this.props.jumpStartActivate,disabled:this.props.isJumpstarting},this.props.isJumpstarting?(0,f.translate)("Activating recommended features…"):(0,f.translate)("Activate recommended features"))},render:function(){var e=this.props.jumpstartFeatures.map(function(e){return i.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},i.default.createElement("div",{className:"jp-jumpstart__feature-content"},i.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),i.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return i.default.createElement("div",{className:"jp-jumpstart-full__container"},i.default.createElement("img",{src:b.imagePath+"stars-full.svg",width:"60",height:"60",alt:(0,f.translate)("Stars"),className:"jp-jumpstart-full__svg-stars"}),i.default.createElement("img",{src:b.imagePath+"jupiter.svg",width:"50",height:"100",alt:(0,f.translate)("Jupiter"),className:"jp-jumpstart-full__svg-jupiter"}),i.default.createElement(m.default,{icon:"cross-small",className:"jp-jumpstart-full__dismiss",tabIndex:"0",onKeyDown:(0,v.default)(this.props.jumpStartSkip),onClick:this.props.jumpStartSkip}),i.default.createElement("div",{className:"jp-jumpstart"},i.default.createElement("img",{src:b.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,f.translate)("Person with laptop")}),i.default.createElement("h1",{className:"jp-jumpstart__title"},(0,f.translate)("Your Jetpack site is ready to go!")),i.default.createElement(u.default,{className:"jp-jumpstart__description"},i.default.createElement("p",null,(0,f.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."))),i.default.createElement(u.default,null,this.activateButton()),i.default.createElement(u.default,null,i.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,f.translate)("Jetpack's recommended features include:")),i.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),i.default.createElement("p",{className:"jp-jumpstart__note"},(0,f.translate)("Features can be activated or deactivated at any time.")))))}});t.default=(0,c.connect)(function(e){return{isJumpstarting:(0,_.isJumpstarting)(e),jumpstartFeatures:(0,M.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,s.bindActionCreators)({jumpStartActivate:_.jumpStartActivate,jumpStartSkip:_.jumpStartSkip},e)})(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(399),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(724),y=r(b),A=n(869),E=n(1024),T=r(E),L=n(1025),w=r(L),k=n(1040),S=r(k),C=n(1043),O=r(C),z=n(1044),N=r(z),P=n(1045),D=r(P),x=n(1047),j=r(x),R=n(1048),Y=r(R),W=n(1050),q=r(W),I=n(1051),B=r(I),U=n(827),H=r(U),F=n(830),X=r(F),V=n(398),J=n(707),K=function(e){function t(){return(0,l.default)(this,t),(0,f.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={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},n=function(){return y.default.tracks.recordJetpackClick("aag_manage_security_wpcom")},r=M.default.createElement(T.default,{label:(0,v.translate)("Security"),settingsPath:this.props.userCanManageModules&&"#security",externalLink:this.props.isDevMode||!this.props.userCanManageModules?"":(0,v.translate)("Manage security on WordPress.com"),externalLinkPath:this.props.isDevMode?"":"https://wordpress.com/settings/security/"+this.props.siteRawUrl,externalLinkClick:n}),a=M.default.createElement("div",null,M.default.createElement(T.default,{label:(0,v.translate)("Connections")}),M.default.createElement(B.default,null));if(this.props.userCanManageModules)return M.default.createElement("div",{className:"jp-at-a-glance"},M.default.createElement(H.default,null),M.default.createElement(X.default,null),M.default.createElement(w.default,(0,o.default)({},e,t)),r,M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(S.default,e)),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement(N.default,(0,o.default)({},e,{siteRawUrl:this.props.siteRawUrl})))),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(j.default,(0,o.default)({},e,{siteRawUrl:this.props.siteRawUrl}))),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement(O.default,e))),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(D.default,t)),M.default.createElement("div",{className:"jp-at-a-glance__right"},M.default.createElement(Y.default,(0,o.default)({},e,t)))),M.default.createElement(T.default,{label:(0,v.translate)("Performance")}),M.default.createElement("div",{className:"jp-at-a-glance__item-grid"},M.default.createElement("div",{className:"jp-at-a-glance__left"},M.default.createElement(q.default,e))),a);var i="";this.props.userCanViewStats&&(i=M.default.createElement(w.default,(0,o.default)({},e,t)));var s="";return this.props.getOptionValue("protect")&&(s=M.default.createElement(S.default,e)),this.props.userIsSubscriber?M.default.createElement("div",null,i,a):M.default.createElement("div",null,i,this.props.getOptionValue("protect")&&r,s,a)}}]),t}(_.Component);t.default=(0,g.connect)(function(e){return{userCanManageModules:(0,V.userCanManageModules)(e),userCanViewStats:(0,V.userCanViewStats)(e),userIsSubscriber:(0,V.userIsSubscriber)(e),isDevMode:(0,J.isDevMode)(e)}})((0,A.ModuleSettingsForm)(K)),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.DashSectionHeader=void 0;var a=n(142),o=r(a),i=n(839),s=r(i),c=n(792),l=r(c),u=n(524),d=n(724),p=r(d),f=t.DashSectionHeader=o.default.createClass({displayName:"DashSectionHeader",propTypes:{label:o.default.PropTypes.string.isRequired,settingsPath:o.default.PropTypes.string,externalLinkPath:o.default.PropTypes.string,externalLink:o.default.PropTypes.string,externalLinkClick:o.default.PropTypes.func},getDefaultProps:function(){return{label:"",settingsPath:"",externalLinkPath:"",externalLink:""}},trackCogClick:function(){p.default.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})},render:function(){var e=void 0,t=void 0,n=void 0,r=(0,s.default)(this.props.className,"jp-dash-section-header");return this.props.settingsPath&&(e=o.default.createElement("a",{className:"jp-dash-section-header__settings",href:this.props.settingsPath},o.default.createElement("span",{className:"screen-reader-text"},(0,u.translate)("Settings",{context:"Noun. Displayed to screen readers."})),o.default.createElement(l.default,{onClick:this.trackCogClick,icon:"cog",size:16}))),this.props.externalLink&&(t=o.default.createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(n=o.default.createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),o.default.createElement("div",{className:r},o.default.createElement("div",{className:"jp-dash-section-header__label"},o.default.createElement("h2",{className:"jp-dash-section-header__name"},this.props.label),e),t,n)}});t.default=f},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(514),o=r(a),i=n(320),s=r(i),c=n(493),l=r(c),u=n(497),d=r(u),p=n(831),f=r(p),h=n(498),m=r(h),_=n(499),M=r(_),g=n(142),v=r(g),b=n(663),y=r(b),A=n(452),E=r(A),T=n(874),L=r(T),w=n(1026),k=r(w),S=n(154),C=n(1024),O=r(C),z=n(755),N=r(z),P=n(789),D=r(P),x=n(524),j=n(724),R=r(j),Y=n(709),W=r(Y),q=n(983),I=n(707),B=n(398),U=n(1038),H=r(U),F=n(1039),X=r(F),V=n(466),J=n(512),K=n(729),G=function(e){function t(e){(0,d.default)(this,t);var n=(0,m.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,M.default)(t,e),(0,f.default)(t,[{key:"barClick",value:function(e){e.data.link&&(R.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,s.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,y.default)(t.statsData[e].data,function(a){var o=a[1],i=a[0],s="",c="";r+=o,"day"===e?(s=(0,x.moment)(i).format("MMM D"),c=(0,x.moment)(i).format("MMMM Do")):"week"===e?(i=i.replace(/W/g,"-"),s=(0,x.moment)(i).format("MMM D"),c=(0,x.translate)("Week of %(date)s",{args:{date:(0,x.moment)(i).format("MMMM Do")}})):(s=(0,x.moment)(i).format("MMM"),c=(0,x.moment)(i).format("MMMM, YYYY")),n.push({label:s,value:o,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+i},tooltipData:[{label:c,value:(0,x.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,x.numberFormat)(o)}}),className:"tooltip class"},{label:(0,x.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 v.default.createElement("div",null,v.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},v.default.createElement(k.default,{data:e,barClick:this.barClick}),0<e.length?"":v.default.createElement(D.default,null)),v.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},v.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 v.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},v.default.createElement("img",{src:q.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,x.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),v.default.createElement("p",null,(0,x.translate)("Hello there! Your stats have been activated."),v.default.createElement("br",null),(0,x.translate)("Just give us a little time to collect data so we can display it for you here.")),v.default.createElement(N.default,{onClick:t,primary:!0},(0,x.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 v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},v.default.createElement("span",null,(0,x.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:v.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,o=r.length>0&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return v.default.createElement("div",{className:"jp-at-a-glance__stats-container"},o?this.renderEmptyStatsCard():this.renderStatsChart(r))}return v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},v.default.createElement("img",{src:q.imagePath+"stats.svg",width:"60",height:"60",alt:(0,x.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,x.translate)("Unavailable in Dev Mode"):(0,x.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:v.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:v.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),this.props.isDevMode?"":v.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},v.default.createElement(N.default,{onClick:t,primary:!0},(0,x.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this,t=function(){R.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){R.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){R.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};if(this.props.getOptionValue("stats")&&!this.statsErrors())return v.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},v.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},v.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,x.translate)("Days"))),v.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},v.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,x.translate)("Weeks"))),v.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},v.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,x.translate)("Months"))))}},{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(){var e=(0,o.default)(this.props.moduleList);if(!(0,W.default)(e,"stats"))return null;var t=this.props.activeTab();return v.default.createElement("div",null,v.default.createElement(H.default,{range:t}),v.default.createElement(O.default,{label:(0,x.translate)("Site Stats")},this.maybeShowStatsTabs()),v.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(g.Component);G.propTypes={isDevMode:v.default.PropTypes.bool.isRequired,siteRawUrl:v.default.PropTypes.string.isRequired,siteAdminUrl:v.default.PropTypes.string.isRequired,statsData:v.default.PropTypes.any.isRequired},t.default=(0,S.connect)(function(e){return{moduleList:(0,J.getModules)(e),activeTab:function(){return(0,V.getActiveStatsTab)(e)},isDevMode:(0,I.isDevMode)(e),isLinked:(0,I.isCurrentUserLinked)(e),connectUrl:(0,I.getConnectUrl)(e),statsData:"N/A"!==(0,V.getStatsData)(e)?(0,V.getStatsData)(e):(0,B.getInitialStateStatsData)(e),isEmptyStatsCardDismissed:(0,K.emptyStatsCardDismissed)(e)}},function(e){return{switchView:function(t){return e((0,V.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,V.fetchStatsData)(t))}}})(G),e.exports=t.default},function(e,t,n){"use strict";var r=n(142),a=n(757),o=n(1027),i=n(1028),s=n(1035);n(1036),e.exports=r.createClass({displayName:"ModuleChart",propTypes:{loading:r.PropTypes.bool,data:r.PropTypes.array,minTouchBarWidth:r.PropTypes.number,minBarWidth:r.PropTypes.number,barClick:r.PropTypes.func},getInitialState:function(){return{maxBars:100,width:650}},getDefaultProps:function(){return{minTouchBarWidth:42,minBarWidth:15,barClick:a}},componentDidMount:function(){this.resize=o(this.resize,400),window.addEventListener("resize",this.resize),this.resize()},componentWillUnmount:function(){window.removeEventListener("resize",this.resize)},componentWillReceiveProps:function(e){this.props.loading&&!e.loading&&this.resize()},resize:function(){if(this.isMounted()){var e,t=this.refs.chart,n=t.clientWidth-82;s.hasTouch()?(n=n<=0?350:n,e=Math.floor(n/this.props.minTouchBarWidth)):e=Math.floor(n/this.props.minBarWidth),this.setState({maxBars:e,width:n})}},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},getData:function(){var e=this.props.data;return e=e.slice(0-this.state.maxBars)},getValues:function(){var e=this.getData();return e=e.map(function(e){return e.value},this)},isEmptyChart:function(e){return e=e.filter(function(e){return e>0},this),0===e.length},render:function(){var e,t=this.getValues(),n=this.getYAxisMax(t),a=this.getData();return t.length&&this.isEmptyChart(t)&&(e=r.createElement("div",{className:"dops-chart__empty"},r.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),r.createElement("div",{ref:"chart",className:"dops-chart"},r.createElement("div",{className:"dops-chart__y-axis-markers"},r.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),r.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),r.createElement("div",{className:"dops-chart__y-axis"},r.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),r.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),r.createElement(i,{barClick:this.props.barClick,data:a,yAxisMax:n,chartWidth:this.state.width,isTouch:s.hasTouch()}),e)}})},function(e,t,n){function r(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),a(e,t,{leading:r,maxWait:t,trailing:s})}var a=n(769),o=n(283),i="Expected a function";e.exports=r},function(e,t,n){"use strict";var r=n(142),a=n(1029),o=n(1033);e.exports=r.createClass({displayName:"ModuleChartBarContainer",propTypes:{isTouch:r.PropTypes.bool,data:r.PropTypes.array,yAxisMax:r.PropTypes.number,width:r.PropTypes.number,barClick:r.PropTypes.func},buildBars:function(e){var t=this.props.data.length,n="bottom right",o=this.props.chartWidth,i=o/t;return this.props.data.map(function(s,c){var l=i*(c+1);return l+230>o&&l+i-230>0&&(n="bottom left"),r.createElement(a,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:n,className:s.className,clickHandler:this.props.barClick,data:s,max:e,count:t})},this)},render:function(){return r.createElement("div",null,r.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),r.createElement(o,{data:this.props.data,labelWidth:42}))}})},function(e,t,n){"use strict";var r=n(142),a=n(756),o=n(1030),i=n(792);e.exports=r.createClass({displayName:"ModuleChartBar",propTypes:{isTouch:r.PropTypes.bool,tooltipPosition:r.PropTypes.string,className:r.PropTypes.string,clickHandler:r.PropTypes.func,data:r.PropTypes.object.isRequired,max:r.PropTypes.number,count:r.PropTypes.number},getInitialState:function(){return{showPopover:!1}},buildSections:function(){var e,t,n,o,i,s=this.props.data.value,c=this.props.max,l=c?Math.ceil(s/c*1e4)/100:0,u=100-l,d=Math.max(1,Math.floor(u)),p=[],f=this.props.data.nestedValue,h={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===u&&!this.props.active};return e={height:d+"%"},p.push(r.createElement("div",{key:"spacer",className:a(h),style:e})),t={top:d+"%"},f&&(o=s?Math.ceil(f/s*1e4)/100:0,i={height:o+"%"},n=r.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:i})),p.push(r.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:t},n)),p.push(r.createElement("div",{key:"label",className:"dops-chart__bar-label"},this.props.label)),p},clickHandler:function(){"function"==typeof this.props.clickHandler&&this.props.clickHandler(this.props.data)},mouseEnter:function(){this.setState({showPopover:!0})},mouseLeave:function(){this.setState({showPopover:!1})},renderTooltip:function(){if(!this.props.data.tooltipData||!this.props.data.tooltipData.length||this.props.isTouch)return null;var e=this.props.data.tooltipData,t=e.map(function(e,t){var n,a=["module-content-list-item"];return e.icon&&(n=r.createElement(i,{icon:e.icon,size:18})),a.push(e.className),r.createElement("li",{key:t,className:a.join(" ")},r.createElement("span",{className:"dops-wrapper"},r.createElement("span",{className:"value"},e.value),r.createElement("span",{className:"label"},n,e.label)))});return r.createElement(o,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.refs&&this.refs.valueBar,isVisible:this.state.showPopover,position:this.props.tooltipPosition},r.createElement("ul",null,t))},render:function(){var e,t,n=this.props.count||1;return t={"dops-chart__bar":!0},this.props.className&&(t[this.props.className]=!0),e={width:1/n*100+"%"},r.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:a(t),style:e},this.buildSections(),r.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),r.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),r.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(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 i(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=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}}(),c=n(142),l=r(c),u=n(756),d=r(u),p=n(901),f=r(p),h=n(786),m=r(h);n(1031);var _=function(){},M=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&m.default.isMobile())return null;var e=(0,d.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return l.default.createElement(f.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:_,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(c.Component);M.propTypes={autoPosition:c.PropTypes.bool,className:c.PropTypes.string,id:c.PropTypes.string,isVisible:c.PropTypes.bool,position:c.PropTypes.string,rootClassName:c.PropTypes.string,status:c.PropTypes.string,showDelay:c.PropTypes.number,showOnMobile:c.PropTypes.bool},M.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=M,e.exports=t.default},function(e,t){},,function(e,t,n){"use strict";var r=n(142),a=n(1027),o=n(1034);e.exports=r.createClass({displayName:"ModuleChartXAxis",propTypes:{labelWidth:r.PropTypes.number.isRequired,data:r.PropTypes.array.isRequired},getInitialState:function(){return{divisor:1,spacing:this.props.labelWidth}},componentDidMount:function(){this.resizeThrottled=a(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()},componentWillUnmount:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)},componentWillReceiveProps:function(e){this.resize(e)},resize:function(e){if(this.isMounted()){var t,n,r,a,o,i,s=this.props;t=this.refs.axis,!e||e instanceof Event||(s=e),t.style.overflow="hidden",n=t.clientWidth,t.style.overflow="visible",r=s.data.length||1,a=n/r,o=s.labelWidth,i=Math.ceil(o/a),this.setState({divisor:i,spacing:a})}},render:function(){var e,t=this.props.data;return e=t.map(function(e,n){var a,i=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,s=t.length-n-1;return s%this.state.divisor==0&&(a=r.createElement(o,{key:n,label:e.label,width:this.props.labelWidth,x:i})),a},this),
36
+ r.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},e)}})},function(e,t,n){"use strict";var r=n(142);e.exports=r.createClass({displayName:"ModuleChartLabel",propTypes:{width:r.PropTypes.number.isRequired,x:r.PropTypes.number.isRequired,label:r.PropTypes.string.isRequired},render:function(){var e;return e={width:this.props.width+"px"},e.left=this.props.x+"px",r.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}})},function(e,t){"use strict";e.exports={hasTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(466),M=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){return null}}]),t}(h.Component);M.defaultProps={fetchStatsData:function(){}},t.default=(0,m.connect)(function(e){return{fetchStatsData:function(t){return(0,_.fetchStatsData)(e,t)},fetchingStatsData:(0,_.isFetchingStatsData)(e)}},function(e){return{fetchStatsData:function(t){return e((0,_.fetchStatsData)(t))}}})(M),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(320),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(755),v=r(g),b=n(724),y=r(b),A=n(874),E=r(A),T=n(524),L=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"statsBottom",value:function(){var e=void 0;return e="object"===(0,o.default)(this.props.statsData.general)?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"},[{viewsToday:e.views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){var e=this.statsBottom()[0],t=function(){return y.default.tracks.recordJetpackClick("view_detailed_stats")},n=function(){return y.default.tracks.recordJetpackClick("view_wpcom_stats")};return M.default.createElement("div",null,M.default.createElement("div",{className:"jp-at-a-glance__stats-summary"},M.default.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Views today",{comment:"Referring to a number of page views"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),M.default.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Best overall day",{comment:"Referring to a number of page views"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,T.translate)("%(number)s View","%(number)s Views",{count:e.bestDay.count,args:{number:(0,T.numberFormat)(e.bestDay.count)}})),M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,T.moment)(e.bestDay.day).format("MMMM Do, YYYY"))),M.default.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},M.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time views",{comment:"Referring to a number of page views"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,T.numberFormat)(e.allTime.views))),M.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},M.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time comments",{comment:"Referring to a number of comments"})),M.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,T.numberFormat)(e.allTime.comments))))),M.default.createElement("div",{className:"jp-at-a-glance__stats-cta"},M.default.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),M.default.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},(0,T.translate)("{{button}}View detailed stats{{/button}}",{components:{button:M.default.createElement(v.default,{onClick:t,href:this.props.siteAdminUrl+"admin.php?page=stats"})}}),this.props.isLinked&&(0,T.translate)("{{button}}View more stats on WordPress.com {{/button}}",{components:{button:M.default.createElement(v.default,{onClick:n,className:"is-primary",href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}}))),!this.props.isLinked&&M.default.createElement(E.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-connect"},(0,T.translate)("Connect your account to WordPress.com to view more stats")))}}]),t}(_.Component);L.propTypes={siteRawUrl:M.default.PropTypes.string.isRequired,siteAdminUrl:M.default.PropTypes.string.isRequired,statsData:M.default.PropTypes.object.isRequired,isLinked:M.default.PropTypes.bool.isRequired},L.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1},t.default=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});var a=n(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(1041),b=r(v),y=n(524),A=n(709),E=r(A),T=n(1042),L=r(T),w=n(512),k=n(466),S=n(707),C=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getContent",value:function(){var e=this,t=function(){return e.props.updateOptions({protect:!0})};if(this.props.getOptionValue("protect")){var n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?M.default.createElement(b.default,{label:"Protect",module:"protect",status:"is-working",className:"jp-dash-item__recently-activated"},M.default.createElement("div",{className:"jp-dash-item__recently-activated-lower"},M.default.createElement(L.default,null),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Jetpack is actively blocking malicious login attempts. Data will display here soon!")))):M.default.createElement(b.default,{label:"Protect",module:"protect",status:"is-working"},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.numberFormat)(n)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Total malicious attacks blocked on your site.")))}return M.default.createElement(b.default,{label:"Protect",module:"protect",className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,y.translate)("Unavailable in Dev Mode"):(0,y.translate)("{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:t})}})))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,E.default)(e,"protect")?M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(L.default,null),this.getContent()):null}}]),t}(_.Component);C.propTypes={isDevMode:M.default.PropTypes.bool.isRequired,protectCount:M.default.PropTypes.any.isRequired},t.default=(0,g.connect)(function(e){return{protectCount:(0,k.getProtectCount)(e),isDevMode:(0,S.isDevMode)(e),moduleList:(0,w.getModules)(e)}})(C),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.DashItem=void 0;var a=n(517),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(839),v=r(g),b=n(154),y=n(880),A=r(y),E=n(524),T=n(755),L=r(T),w=n(709),k=r(w),S=n(724),C=r(S),O=n(869),z=n(874),N=r(z),P=n(873),D=r(P),x=n(864),j=n(707),R=n(512),Y=n(879),W=r(Y),q=n(398),I=t.DashItem=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackMonitorSettingsClick",value:function(){C.default.tracks.recordJetpackClick({target:"monitor-settings",page:"aag"})}},{key:"render",value:function(){var e=this,t=void 0,n="",r=(0,v.default)(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":""),a=function(){return e.props.updateOptions((0,o.default)({},e.props.module,!e.props.getOptionValue(e.props.module)))},i=function(){C.default.tracks.recordJetpackClick({target:"paid-button",feature:e.props.module,page:"aag"})};return""!==this.props.module&&(t=(0,k.default)(["protect","photon","vaultpress","scan","backups","akismet"],this.props.module)&&this.props.isDevMode?"":M.default.createElement(x.ModuleToggle,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:a,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=M.default.createElement("a",{href:this.props.isDevMode?this.props.siteAdminUrl+"update-core.php":"https://wordpress.com/plugins/"+this.props.siteRawUrl},M.default.createElement(A.default,{showDismiss:!1,status:this.props.status,isCompact:!0},(0,E.translate)("Updates needed",{context:"Short warning message"})))),"is-working"===this.props.status&&(t=M.default.createElement("span",{className:"jp-dash-item__active-label"},(0,E.translate)("Active")))),"monitor"===this.props.module&&(t=!this.props.isDevMode&&this.props.getOptionValue(this.props.module)&&M.default.createElement(L.default,{onClick:this.trackMonitorSettingsClick,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl,compact:!0},(0,E.translate)("Settings")))),this.props.pro&&!this.props.isDevMode&&(n=M.default.createElement(L.default,{onClick:i,compact:!0,href:"#/plans"},(0,E.translate)("Paid",{context:"Short label appearing near a paid feature configuration block."})),t=M.default.createElement(W.default,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl})),M.default.createElement("div",{className:r},M.default.createElement(D.default,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),M.default.createElement(N.default,{className:"jp-dash-item__card",href:this.props.href},M.default.createElement("div",{className:"jp-dash-item__content"},this.props.children)))}}]),t}(_.Component);I.propTypes={label:M.default.PropTypes.string,status:M.default.PropTypes.string,statusText:M.default.PropTypes.string,disabled:M.default.PropTypes.bool,module:M.default.PropTypes.string,pro:M.default.PropTypes.bool},I.defaultProps={label:"",module:"",pro:!1},t.default=(0,b.connect)(function(e){return{getModule:function(t){return(0,R.getModule)(e,t)},isDevMode:(0,j.isDevMode)(e),userCanToggle:(0,q.userCanManageModules)(e),siteRawUrl:(0,q.getSiteRawUrl)(e),siteAdminUrl:(0,q.getSiteAdminUrl)(e)}})((0,O.ModuleSettingsForm)(I))},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(166),M=n(466),g=n(512),v=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(h.Component);v.defaultProps={fetchProtectCount:function(){}},t.default=(0,m.connect)(function(e){return{fetchProtectCount:(0,M.fetchProtectCount)(),fetchingProtectData:(0,M.isFetchingProtectData)(e),isModuleActivated:function(t){return(0,g.isModuleActivated)(e,t)}}},function(e){return(0,_.bindActionCreators)({fetchProtectCount:M.fetchProtectCount},e)})(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(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(524),b=n(709),y=r(b),A=n(724),E=r(A),T=n(512),L=n(707),w=n(1041),k=r(w),S=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,v.translate)("Downtime Monitoring"),n=function(){E.default.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),e.props.updateOptions({monitor:!0})};return this.props.getOptionValue("monitor")?M.default.createElement(k.default,{label:t,module:"monitor",status:"is-working"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Jetpack is monitoring your site. If we think your site is down, you will receive an email."))):M.default.createElement(k.default,{label:t,module:"monitor",className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,v.translate)("Unavailable in Dev Mode."):(0,v.translate)("{{a}}Activate Monitor{{/a}} to receive notifications if your site goes down.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,y.default)(e,"monitor")?M.default.createElement("div",null,this.getContent()):null}}]),t}(_.Component);S.propTypes={isDevMode:M.default.PropTypes.bool.isRequired},t.default=(0,g.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(e)}})(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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(524),g=n(872),v=n(885),b=r(v),y=n(735),A=n(738),E=n(466),T=n(707),L=n(1041),w=r(L),k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,g.getPlanClass)(this.props.sitePlan.product_slug),n=(0,M.translate)("Security Scanning"),r=!1!==this.props.sitePlan,a=this.props.vaultPressData,o=this.props.isPluginInstalled("vaultpress/vaultpress.php")?"pro-inactive":"pro-uninstalled",i=void 0!==a.data&&void 0!==a.data.features&&void 0!==a.data.features.security&&a.data.features.security,s="is-premium-plan"===t,c="is-business-plan"===t;if(this.props.getOptionValue("vaultpress")){if("N/A"===a)return m.default.createElement(w.default,{label:n},m.default.createElement("p",{className:"jp-dash-item__description"},(0,M.translate)("Loading…")));if(i){var l=this.props.scanThreats;if(0!==l)return m.default.createElement(w.default,{label:n,module:"scan",pro:!0},m.default.createElement("h3",null,(0,M.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:l,args:{number:(0,M.numberFormat)(l)}})),m.default.createElement("p",{className:"jp-dash-item__description"},(0,M.translate)("{{a}}View details at VaultPress.com{{/a}}",{components:{a:m.default.createElement("a",{href:"https://dashboard.vaultpress.com/"})}}),m.default.createElement("br",null),(0,M.translate)("{{a}}Contact Support{{/a}}",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/support"})}})));if("success"===a.code)return m.default.createElement(w.default,{label:n,module:"scan",status:"is-working",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,M.translate)("No threats found, you're good to go!")))}}return m.default.createElement(w.default,{label:n,module:"scan",className:"jp-dash-item__is-inactive",status:r?o:"no-pro-uninstalled-or-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,M.translate)("Unavailable in Dev Mode."):function(){return e.props.fetchingSiteData?(0,M.translate)("Loading…"):s||c||i?(0,M.translate)("For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}}):(0,M.translate)("For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-scan&site="+e.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}})}()))}},{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(b.default,null),this.getContent())}}]),t}(h.Component);k.propTypes={vaultPressData:m.default.PropTypes.any.isRequired,scanThreats:m.default.PropTypes.any.isRequired,isDevMode:m.default.PropTypes.bool.isRequired,siteRawUrl:m.default.PropTypes.string.isRequired,sitePlan:m.default.PropTypes.object.isRequired},t.default=(0,_.connect)(function(e){return{vaultPressData:(0,E.getVaultPressData)(e),scanThreats:(0,E.getVaultPressScanThreatCount)(e),sitePlan:(0,y.getSitePlan)(e),isDevMode:(0,T.isDevMode)(e),isPluginInstalled:function(t){return(0,A.isPluginInstalled)(e,t)},fetchingSiteData:(0,y.isFetchingSiteData)(e)}})(k),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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(1041),g=r(M),v=n(524),b=n(1046),y=r(b),A=n(466),E=n(735),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getContent",value:function(){var e=this.props.akismetData,t=this.props.siteAdminUrl+"admin.php?page=akismet-key-config",n=(0,v.translate)("Spam Protection"),r=!1!==this.props.sitePlan;return"N/A"===e?m.default.createElement(g.default,{label:n,module:"akismet",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Loading…"))):"not_installed"===e?m.default.createElement(g.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:r?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"not_active"===e?m.default.createElement(g.default,{label:n,module:"akismet",status:r?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/akismet/"+this.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}}))):"invalid_key"===e?m.default.createElement(g.default,{label:n,module:"akismet",className:"jp-dash-item__is-inactive",status:"is-warning",statusText:(0,v.translate)("Invalid key"),pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.",{components:{akismetSettings:m.default.createElement("a",{href:t})}}))):m.default.createElement(g.default,{label:n,module:"akismet",status:"is-working",pro:!0},m.default.createElement("h2",{className:"jp-dash-item__count"},(0,v.numberFormat)(e.all.spam)),m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'})))}},{key:"render",value:function(){return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,null),this.getContent())}}]),t}(h.Component);T.propTypes={siteRawUrl:m.default.PropTypes.string.isRequired,siteAdminUrl:m.default.PropTypes.string.isRequired},t.default=(0,_.connect)(function(e){return{akismetData:(0,A.getAkismetData)(e),sitePlan:(0,E.getSitePlan)(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});var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(166),M=n(466),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.defaultProps={fetchAkismetData:function(){}},t.default=(0,m.connect)(function(e){return{fetchAkismetData:(0,M.fetchAkismetData)(),fetchingAkismetData:(0,M.isFetchingAkismetData)(e)}},function(e){return(0,_.bindActionCreators)({fetchAkismetData:M.fetchAkismetData},e)})(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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(1041),g=r(M),v=n(524),b=n(885),y=r(b),A=n(735),E=n(738),T=n(466),L=n(707),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,v.translate)("Backups"),n=!1!==this.props.sitePlan&&"jetpack_free"!==this.props.sitePlan.product_slug,r=this.props.isPluginInstalled("vaultpress/vaultpress.php")?"pro-inactive":"pro-uninstalled";if(this.props.getOptionValue("vaultpress")){var a=this.props.vaultPressData;if("N/A"===a)return m.default.createElement(g.default,{label:t},m.default.createElement("p",{className:"jp-dash-item__description"},(0,v.translate)("Loading…")));if("success"===a.code)return m.default.createElement(g.default,{label:t,module:"backups",status:"is-working",className:"jp-dash-item__is-active",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},a.message," ",(0,v.translate)("{{a}}View backup details{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://dashboard.vaultpress.com",target:"_blank",rel:"noopener noreferrer"})}})))}return m.default.createElement(g.default,{label:t,module:"backups",className:"jp-dash-item__is-inactive",status:n?r:"no-pro-uninstalled-or-inactive",pro:!0},m.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,v.translate)("Unavailable in Dev Mode."):function(){return n?(0,v.translate)("To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.",{components:{a:m.default.createElement("a",{href:"https://wordpress.com/plugins/vaultpress",target:"_blank",rel:"noopener noreferrer"})}}):(0,v.translate)("To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/redirect/?source=aag-backups&site="+e.props.siteRawUrl,target:"_blank",rel:"noopener noreferrer"})}})}()))}},{key:"render",value:function(){return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,null),this.getContent())}}]),t}(h.Component);w.propTypes={vaultPressData:m.default.PropTypes.any.isRequired,isDevMode:m.default.PropTypes.bool.isRequired,siteRawUrl:m.default.PropTypes.string.isRequired,sitePlan:m.default.PropTypes.object.isRequired},t.default=(0,_.connect)(function(e){return{vaultPressData:(0,T.getVaultPressData)(e),sitePlan:(0,A.getSitePlan)(e),isDevMode:(0,L.isDevMode)(e),isPluginInstalled:function(t){return(0,E.isPluginInstalled)(e,t)}}})(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});var a=n(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(1041),b=r(v),y=n(524),A=n(709),E=r(A),T=n(1049),L=r(T),w=n(466),k=n(512),S=n(707),C=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"activateAndRedirect",value:function(e){e.preventDefault(),this.props.activateManage().then(window.location="https://wordpress.com/plugins/"+this.props.siteRawUrl)}},{key:"getContent",value:function(){var e=(0,y.translate)("Plugin Updates"),t=this.props.pluginUpdates,n=this.props.getOptionValue("manage");return"N/A"===t?M.default.createElement(b.default,{label:e,module:"manage",status:"is-working"},M.default.createElement(L.default,null),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Loading…"))):"updates-available"===t.code?M.default.createElement(b.default,{label:e,module:"manage",status:"is-warning"},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.translate)("%(number)s plugin","%(number)s plugins",{count:t.count,args:{number:t.count}})),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Needs updating. ","Need updating. ",{count:t.count,args:{number:t.count}}),this.props.isDevMode?"":(0,y.translate)("{{a}}Turn on plugin auto updates{{/a}}",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/plugins/"+this.props.siteRawUrl})}}))):M.default.createElement(b.default,{label:e,module:"manage",status:n?"is-working":"is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("All plugins are up-to-date. Awesome work!")))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,E.default)(e,"manage")?M.default.createElement("div",null,M.default.createElement(L.default,null),this.getContent()):null}}]),t}(_.Component);C.propTypes={isDevMode:M.default.PropTypes.bool.isRequired,siteRawUrl:M.default.PropTypes.string.isRequired,siteAdminUrl:M.default.PropTypes.string.isRequired,pluginUpdates:M.default.PropTypes.any.isRequired},t.default=(0,g.connect)(function(e){return{pluginUpdates:(0,w.getPluginUpdates)(e),isDevMode:(0,S.isDevMode)(e),moduleList:(0,k.getModules)(e)}})(C),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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=n(154),_=n(166),M=n(466),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.defaultProps={fetchPluginUpdates:function(){}},t.default=(0,m.connect)(function(e){return{fetchPluginUpdates:(0,M.fetchPluginUpdates)(),fetchingPluginUpdates:(0,M.isFetchingPluginUpdates)(e)}},function(e){return(0,_.bindActionCreators)({fetchPluginUpdates:M.fetchPluginUpdates},e)})(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(514),o=r(a),i=n(493),s=r(i),c=n(497),l=r(c),u=n(831),d=r(u),p=n(498),f=r(p),h=n(499),m=r(h),_=n(142),M=r(_),g=n(154),v=n(1041),b=r(v),y=n(524),A=n(709),E=r(A),T=n(512),L=n(707),w=function(e){function t(){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,y.translate)("Image Performance"),n=function(){return e.props.updateOptions({photon:!0})};return this.props.getOptionValue("photon")?M.default.createElement(b.default,{label:t,module:"photon",status:"is-working"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Jetpack is improving and optimizing your image speed."))):M.default.createElement(b.default,{label:t,module:"photon",className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,y.translate)("Unavailable in Dev Mode"):(0,y.translate)("{{a}}Activate{{/a}} to enhance the performance and speed of your images.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})))}},{key:"render",value:function(){var e=(0,o.default)(this.props.moduleList);return(0,E.default)(e,"photon")?M.default.createElement("div",{className:"jp-dash-item__interior"},this.getContent()):null}}]),t}(_.Component);w.propTypes={isDevMode:M.default.PropTypes.bool.isRequired},t.default=(0,g.connect)(function(e){return{isDevMode:(0,L.isDevMode)(e),moduleList:(0,T.getModules)(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.DashConnections=void 0;var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(524),g=n(792),v=r(g),b=n(1041),y=r(b),A=n(707),E=n(398),T=n(1052),L=r(T),w=n(1015),k=r(w),S=t.DashConnections=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"siteConnection",value:function(){var e="";return this.props.isDevMode?e=m.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?m.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):m.default.createElement(v.default,{icon:"globe",size:64}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("Your site is in Development Mode, so it can not be connected to WordPress.com."))):!0===this.props.siteConnectionStatus&&(e=m.default.createElement("div",null,m.default.createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?m.default.createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):m.default.createElement(v.default,{icon:"globe",size:64}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("Your site is connected to WordPress.com."),this.props.userIsMaster&&m.default.createElement("span",{className:"jp-connection-settings__is-owner"},m.default.createElement("br",null),m.default.createElement("em",null,(0,
37
+ M.translate)("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&m.default.createElement("div",{className:"jp-connection-settings__actions"},m.default.createElement(k.default,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:m.default.createElement(k.default,{asLink:!0,connectUser:!0,from:"connection-settings"});return this.props.isDevMode?m.default.createElement("div",{className:"jp-connection-settings__info"},m.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("The site is in Development Mode, so you can not connect to WordPress.com."))):this.props.isLinked?m.default.createElement("div",null,m.default.createElement("div",{className:"jp-connection-settings__info"},m.default.createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userWpComAvatar}),m.default.createElement("div",{className:"jp-connection-settings__text"},(0,M.translate)("Connected as {{span}}%(username)s{{/span}}",{args:{username:this.props.userWpComLogin},components:{span:m.default.createElement("span",{className:"jp-connection-settings__username"})},comment:"%(username) is the WordPress user login name."}),m.default.createElement("div",{className:"jp-connection-settings__email"},this.props.userWpComEmail))),m.default.createElement("div",{className:"jp-connection-settings__actions"},e)):m.default.createElement("div",null,m.default.createElement("div",{className:"jp-connection-settings__info"},(0,M.translate)("Link your account to WordPress.com to get the most out of Jetpack.")),m.default.createElement("div",{className:"jp-connection-settings__actions"},e))}},{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(L.default,null),m.default.createElement("div",{className:"jp-at-a-glance__item-grid"},m.default.createElement("div",{className:"jp-at-a-glance__left"},m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,{className:"jp-connection-type",label:(0,M.translate)("Site connection",{context:"Dashboard widget header"})},this.siteConnection()))),m.default.createElement("div",{className:"jp-at-a-glance__right"},m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(y.default,{className:"jp-connection-type",label:(0,M.translate)("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(h.Component);S.propTypes={siteConnectionStatus:m.default.PropTypes.any.isRequired,isDevMode:m.default.PropTypes.bool.isRequired,userCanDisconnectSite:m.default.PropTypes.bool.isRequired,userIsMaster:m.default.PropTypes.bool.isRequired,isLinked:m.default.PropTypes.bool.isRequired,userWpComLogin:m.default.PropTypes.any.isRequired,userWpComEmail:m.default.PropTypes.any.isRequired,userWpComAvatar:m.default.PropTypes.any.isRequired,username:m.default.PropTypes.any.isRequired},t.default=(0,_.connect)(function(e){return{siteConnectionStatus:(0,A.getSiteConnectionStatus)(e),isDevMode:(0,A.isDevMode)(e),userCanDisconnectSite:(0,E.userCanDisconnectSite)(e),userIsMaster:(0,E.userIsMaster)(e),userWpComLogin:(0,E.getUserWpComLogin)(e),userWpComEmail:(0,E.getUserWpComEmail)(e),userWpComAvatar:(0,E.getUserWpComAvatar)(e),username:(0,E.getUsername)(e),isLinked:(0,A.isCurrentUserLinked)(e),siteIcon:(0,E.getSiteIcon)(e)}})(S)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryUserConnectionData=void 0;var r=n(142),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(154),i=n(707),s=t.QueryUserConnectionData=a.default.createClass({displayName:"QueryUserConnectionData",componentWillMount:function(){this.props.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()},render:function(){return null}});t.default=(0,o.connect)(function(e){return{isFetchingUserData:(0,i.isFetchingUserData)(e),isDevMode:(0,i.isDevMode)(e)}},function(e){return{fetchUserConnectionData:function(){return e((0,i.fetchUserConnectionData)())}}})(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Plans=void 0;var a=n(142),o=r(a),i=n(154),s=n(872),c=n(709),l=r(c),u=n(735),d=n(830),p=r(d),f=n(707),h=n(1054),m=r(h),_=n(1055),M=r(_),g=n(1056),v=r(g),b=t.Plans=o.default.createClass({displayName:"Plans",themesPromo:function(){var e=this.props.sitePlan.product_slug||"",t="dev"!==this.props.plan?(0,s.getPlanClass)(e):"dev";switch(t){case"is-personal-plan":case"is-premium-plan":case"is-free-plan":return o.default.createElement(m.default,{plan:t,siteRawUrl:this.props.siteRawUrl})}return null},renderContent:function(){var e=this.props.sitePlan.product_slug||"",t=this.props.availableFeatures,n=this.props.activeFeatures,r="",a="dev"!==this.props.plan?(0,s.getPlanClass)(e):"dev";"dev"===this.props.getSiteConnectionStatus(this.props)&&(e="dev",t={},n={});var i=void 0!==this.props.availableFeatures[s.FEATURE_UNLIMITED_PREMIUM_THEMES],c=(0,l.default)(this.props.activeFeatures,s.FEATURE_UNLIMITED_PREMIUM_THEMES);return i&&!c&&(r=this.themesPromo(),"is-free-plan"===a)?r:o.default.createElement("div",null,r,o.default.createElement("div",{className:"jp-landing__plans dops-card"},o.default.createElement(M.default,{plan:e,siteRawUrl:this.props.siteRawUrl}),o.default.createElement(v.default,{plan:e,availableFeatures:t,activeFeatures:n,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl})))},render:function(){return o.default.createElement("div",null,o.default.createElement(p.default,null),this.renderContent())}});t.default=(0,i.connect)(function(e){return{getSiteConnectionStatus:function(){return(0,f.getSiteConnectionStatus)(e)},sitePlan:(0,u.getSitePlan)(e),availableFeatures:(0,u.getAvailableFeatures)(e),activeFeatures:(0,u.getActiveFeatures)(e)}})(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(142),o=r(a),i=n(839),s=r(i),c=n(524),l=n(874),u=r(l),d=n(755),p=r(d),f=n(724),h=r(f),m=n(983),_=o.default.createClass({displayName:"ThemesPromoCard",trackGetStarted:function(){h.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-get-started",plan:this.props.plan,type:"upgrade"})},trackComparePlans:function(){h.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-compare-all",plan:this.props.plan,type:"upgrade"})},render:function(){var e=(0,s.default)(this.props.className,"jp-themes-card"),t=this.props.plan,n=/(?![is-])(.*)(?=-plan)/g,r=Array.isArray(t.match(n))?t.match(n)[0]:"";return o.default.createElement("div",{className:e},o.default.createElement(u.default,{className:"jp-apps-card__content"},o.default.createElement("div",{className:"jp-apps-card__top"},o.default.createElement("svg",{id:"customizeTheme",viewBox:"0 0 1562.02 968.34"},o.default.createElement("path",{style:{fill:"none"},d:"M2782.37,1785.75v304h186.89V1766.4H2801.72A19.34,19.34,0,0,0,2782.37,1785.75Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2694.2,1577.67v-66.48H2489.65c1.43,2.42,2.76,4.91,4,7.46a97.51,97.51,0,0,1-45.91,129.77l-1.12.53-1.7.78a103.66,103.66,0,0,1-12.4,4.49l-1.95.52c-.74.19-1.49.39-2.24.57q-1.71.41-3.44.76c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29,97.48,97.48,0,0,1-78.41-138.84c1.22-2.55,2.55-5,4-7.46H2109.11v345.3c30.68.61,91.09-10.69,91.91,17.83V1771.63h395.1V1893.7c31.53-.25,63.17,7.34,94.57,2.12a2.54,2.54,0,0,1,3,1.87c3.06,18.42,15.24,184.72,16.49,201.18,1.13,15,3.61,29.66.47,44.63a2.57,2.57,0,0,1-2.49,1.75c-11.26.59-22.59,2.08-33.86,2-10.57,0-50.89-1.13-53.77-2.15-3.56-1.26-20.91,2.91-29.77,3.48-8.49.54-42.08,2.8-50.36,3-10.37.2-21.3-.12-21.55-10.11-.14-5.61-5.37-46-4.63-51.76h-310c0,1.3-64.18-.14-95-.4v91.12h923.76V1577.67Zm275.06,512H2782.37v-304a19.34,19.34,0,0,1,19.34-19.34h167.55Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c2f4ff"},d:"M2493.63,1518.65c-1.22-2.55-2.55-5-4-7.46-1.13-1.92-2.32-3.81-3.57-5.64a97.45,97.45,0,0,0-160.89,0c-1.26,1.84-2.45,3.74-3.59,5.67-1.43,2.42-2.76,4.91-4,7.46A97.48,97.48,0,0,0,2396,1657.5a45.49,45.49,0,0,1,4.29-20.29c4.75-10.25,11.85-15.85,17.3-13.66,3.44,1.4,3.76,6.1,4.33,14.63.36,5.22,1,14.32,3,17.89q1.73-.35,3.44-.76c.75-.18,1.49-.37,2.24-.57l1.95-.52a103.66,103.66,0,0,0,12.4-4.49l1.7-.78,1.12-.53a97.51,97.51,0,0,0,45.91-129.77Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2969,1767.15H2801.47a19.34,19.34,0,0,0-19.34,19.34v304H2969Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("polygon",{style:{fill:"#00a9de"},points:"936.97 71.05 936.97 148.82 936.97 215.3 1275.64 215.3 1327.68 215.3 1327.68 71.05 936.97 71.05"}),o.default.createElement("path",{style:{fill:"#f3f6f8"},d:"M2136.25,1998.84l52-.38,3.78,41.27-42.35-3.82S2132.86,2032.54,2136.25,1998.84Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2125.33,1518.65h-16.79a6.71,6.71,0,0,1-6.71-6.71v-16.79a6.71,6.71,0,1,1,13.43,0v10.07h10.07a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2108.55,1467.71a6.71,6.71,0,0,1-6.71-6.71v-34.16a6.71,6.71,0,0,1,13.43,0V1461A6.71,6.71,0,0,1,2108.55,1467.71Zm9.13-66.52a6.71,6.71,0,0,1-5.59-10.43,61.47,61.47,0,0,1,29.41-23.59,6.71,6.71,0,1,1,4.8,12.54,48.88,48.88,0,0,0-23,18.48A6.7,6.7,0,0,1,2117.68,1401.19Zm905.71-.17a6.7,6.7,0,0,1-5.59-3,48.78,48.78,0,0,0-23.09-18.39,6.71,6.71,0,0,1,4.75-12.56,61.51,61.51,0,0,1,29.51,23.47,6.71,6.71,0,0,1-5.57,10.45Zm-60-24.48h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43H2895a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43H2690a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.32,0h-34.16a6.71,6.71,0,1,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,1,1,0,13.43Zm-68.32,0h-34.17a6.71,6.71,0,1,1,0-13.43h34.17a6.71,6.71,0,0,1,0,13.43Zm-68.33,0h-34.16a6.71,6.71,0,0,1,0-13.43h34.16a6.71,6.71,0,0,1,0,13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2595.87,2146.26s-4.79,103.66-20.35,167.09l-91.65,1.2s-7.35-4.68,2.39-9.57c10.22-5.13,37.63-10.63,40.69-16.76,6-12,3.59-135.24,3.59-135.24",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2631.51,2149.4s4.79,96.94,20.35,160.37L2732,2311s7.35-4.68-2.39-9.57c-10.22-5.13-37.63-10.63-40.69-16.76-6-12,11.69-142,11.69-142",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2428.56,1659.71s2.15,1.76,2.95-5.22a96.8,96.8,0,0,1-9.45,2.1C2423.44,1659.33,2425.48,1660.74,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2428.56,1659.71c-3.08,1-5.12-.39-6.51-3.12a98.07,98.07,0,0,1-16.43,1.39c-2,0-3.92-.07-5.86-.18.71,10.87,6.35,22.22,21.32,30l10.92,5.91,18.25-11.25c1.85-15.18-1.32-26.11-4.73-33a96.7,96.7,0,0,1-14,5C2430.72,1661.48,2428.56,1659.71,2428.56,1659.71Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2422.06,1656.59c-4.26-8.42-2.32-29.41-5.46-30.69-5.95-2.42-18,14.09-16.83,31.89,1.94.11,3.89.18,5.86.18A98.07,98.07,0,0,0,2422.06,1656.59Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2669.78,2003.53a3.36,3.36,0,0,1-.35-6.69l37.1-4a3.36,3.36,0,1,1,.72,6.67l-37.1,4Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2695.47,2023.4a24.39,24.39,0,0,1-17.25-6.64,18.91,18.91,0,0,1-6-14.79,3.21,3.21,0,0,1,3.55-3.15,3.35,3.35,0,0,1,3.15,3.55,12.26,12.26,0,0,0,4,9.57,18.38,18.38,0,0,0,14.33,4.73l6.47-1.8a3.35,3.35,0,0,1,1.74,6.48l-7,1.9C2697.41,2023.35,2696.44,2023.4,2695.47,2023.4Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2546.66,1602.62c.17,4,1.34,7,2.68,7.81.92.57,2.35-.09,3.47-.81q-.24-2.52-.3-5.06Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2550.45,1591.37a9.56,9.56,0,0,0-3,4.43l5.24,1.75c.16-2.17.43-4.32.79-6.45a3.31,3.31,0,0,1-1-.72A4.74,4.74,0,0,0,2550.45,1591.37Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2580.7,1637.25a20.24,20.24,0,0,1-10.18-17.25l1-9.1-12.14-4a64.44,64.44,0,0,0,1.22,9.25c3.32,15.85,7.25,28.2,24.71,31a3.37,3.37,0,0,1,2.81,2.92l2.16,18.43a3.37,3.37,0,0,1-2.94,3.73l-.4,0a3.34,3.34,0,0,1-2.14-.78v8.46l42,2.24V1644.6a24.54,24.54,0,0,1-5.72,2.1C2603.51,1650.74,2589.78,1642.36,2580.7,1637.25Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2616.75,1611,2606,1582s-14.32-8-27.77-7.19C2585.13,1590.91,2599.26,1606.61,2616.75,1611Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2561,1587.76a62.57,62.57,0,0,0-1.69,12l12.91,4.3,1.53-14.5S2566,1590.51,2561,1587.76Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f84"},d:"M2642.18,1608.93a40.09,40.09,0,0,1-25.43,2c-17.49-4.36-31.61-20.06-38.5-36.2-3.84-9-5.43-18.16-4.09-25.55-6.69,5.25-12.38,13.71-16.59,26.57a18.47,18.47,0,0,0-.66,2.65c-.72,1.84-1.33,3.72-1.87,5.64a7.23,7.23,0,0,0-4-.26c-4.5,1-9.8,5.64-10.81,13.69-.81,6.49.17,15.26,5.63,18.63a8.18,8.18,0,0,0,4.33,1.21,10.19,10.19,0,0,0,3.69-.74c.06.28.1.57.16.85,3.44,16.44,8.2,31.53,27.7,35.78l1.87,16a3.39,3.39,0,0,0,3.33,3l.4,0a3.37,3.37,0,0,0,2.94-3.73l-2.16-18.43a3.37,3.37,0,0,0-2.81-2.92c-17.45-2.8-21.38-15.15-24.71-31a64.44,64.44,0,0,1-1.22-9.25l12.14,4-1,9.1a20.24,20.24,0,0,0,10.18,17.25c9.08,5.11,22.81,13.49,40.3,9.45a24.54,24.54,0,0,0,5.72-2.1c11.87-6.1,18.57-21.52,20.71-38.28A40.64,40.64,0,0,1,2642.18,1608.93Zm-92.84,1.5c-1.34-.83-2.51-3.81-2.68-7.81l5.85,1.95q.06,2.53.3,5.06C2551.69,1610.34,2550.26,1611,2549.34,1610.44Zm3.34-12.89-5.24-1.75a9.56,9.56,0,0,1,3-4.43,4.74,4.74,0,0,1,2-1,3.31,3.31,0,0,0,1,.72C2553.1,1593.22,2552.84,1595.38,2552.68,1597.55Zm19.52,6.5-12.91-4.3a62.57,62.57,0,0,1,1.69-12c5,2.75,12.75,1.79,12.75,1.79Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2584.48,1535.27c-5.88,2.56-9.17,7.61-10.32,13.94-4.83,26.63,28.33,76.05,68,59.72a40.64,40.64,0,0,0,5.24-2.61C2686.87,1583,2632.3,1514.44,2584.48,1535.27Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#86a6bd",opacity:"0.26"},d:"M2032.34,1985.67h150.18a8.52,8.52,0,0,0,8.52-8.89l-4.28-99.89a6.41,6.41,0,0,0-6.42-6.15H2030.4l2,101.93",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2181.34,2034.57c-17.22-1.19-34.44-1.6-51.66-1.94l-25.83-.28-12.92-.12-6.46-.06a18,18,0,0,1-5.17-.89,16.73,16.73,0,0,1-11.49-16.09l-.16-17.54c-2.3-.12-4.6-.15-6.9-.15l-.16,17.7a24,24,0,0,0,16.34,23.3,25.54,25.54,0,0,0,7.53,1.15l6.46-.06,12.92-.12,25.83-.28c17.22-.34,34.44-.74,51.66-1.94a1.35,1.35,0,0,0,0-2.69Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2156.47,2034.57c-8.58-1.15-15.3-7.64-16.55-15.28-.52-3.45-.09-8.55-.11-13l.17-9.79h-7.46l.17,9.79c.28,4.67-.32,8.81.82,14.38a22.45,22.45,0,0,0,8.62,12.8,20.63,20.63,0,0,0,14.34,3.78,1.38,1.38,0,0,0,1.18-1.18A1.35,1.35,0,0,0,2156.47,2034.57Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2189,1994.51a19.45,19.45,0,0,1-5.57.7h-4.77v0h-.5c-28.24.05-56.47.45-84.71.69-30.47.46-60.93,1.09-91.4,2.05a.67.67,0,0,0,0,1.34c30.47,1,60.93,1.59,91.4,2.05,30.47.26,60.93.72,91.4.71h.15a3.45,3.45,0,0,0,.65-.09,27.44,27.44,0,0,0,3.36-.4Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2207.27,1957.36l-2.43-61.2-.61-15.3c-.15-2.7-.09-4.75-.44-8a21.85,21.85,0,0,0-18.16-18.52,36.58,36.58,0,0,0-6.11-.28,3.76,3.76,0,0,0-.72-.07l-159,.55-9.94.09a16.26,16.26,0,0,0-11.19,3.89,15.82,15.82,0,0,0-5.41,10.68c-.07,3.91.13,6.79.18,10.23l1,39.73c.59,26.49,1.48,53,2.47,79.45a1.34,1.34,0,0,0,2.68,0c.11-26.5.14-53-.15-79.49l-.29-39.74c0-3.18-.1-6.93,0-9.63a9.79,9.79,0,0,1,3.47-6.54,10,10,0,0,1,7.22-2.24l3.91,0,1.63,55c.48,19.37,1.43,38.74,2.16,58.1a1.34,1.34,0,0,0,2.68-.05c0-19.38.13-38.77-.16-58.14l-.56-54.84h.27l155.34.54.13-.07h2.09a54.42,54.42,0,0,1,7,.23,14.2,14.2,0,0,1,9.76,6.53,14,14,0,0,1,2,5.63c.2,1.84.24,4.9.38,7.29l.7,15.29,1.41,30.59,1.41,30.59.28,6.14a47.87,47.87,0,0,1,7.11.15Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2191.39,2039.77c-2.76-16-4.06-32-5.43-48.07l-.8-12.05-.4-6-.1-1.51a14.89,14.89,0,0,1,0-2,8.56,8.56,0,0,1,1.94-4.75,10.8,10.8,0,0,1,8-3.8l6.15-.07,12.08-.07,12.08.12,6.15.07a10.76,10.76,0,0,1,8,3.78,8.47,8.47,0,0,1,1.92,4.72l.15,3.1.28,6,.52,12.07c.57,16.1,1.08,32.19.8,48.34a1.35,1.35,0,0,1-2.68.15c-2.1-16-3.41-32.06-4.67-48.12l-.85-12-.4-6-.2-2.93a1.39,1.39,0,0,0-.37-.76,3.69,3.69,0,0,0-2.7-1.08l-5.92.05-12.08.12-12.08-.07-5.92,0a3.64,3.64,0,0,0-2.66,1.06,1.39,1.39,0,0,0-.37.73s0,.47,0,1l.07,1.51.28,6,.57,12.06c.45,16.1,1,32.2,0,48.38a.68.68,0,0,1-1.34.08Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("polygon",{style:{fill:"#f3f6f8"},points:"471.79 657.89 469.28 613.56 442.97 613.56 445.48 657.83 471.79 657.89"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M2149.71,2064.26a21.59,21.59,0,0,1,9.06-2.71,83.69,83.69,0,0,1,9.06-.42c3,.08,6,.26,9.06.51a34.08,34.08,0,0,1,9.06,2,1.44,1.44,0,0,1,0,2.68,34.08,34.08,0,0,1-9.06,2c-3,.25-6,.44-9.06.51a83.69,83.69,0,0,1-9.06-.42,21.59,21.59,0,0,1-9.06-2.71.78.78,0,0,1-.28-1.06A.8.8,0,0,1,2149.71,2064.26Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e9eff4"},d:"M1758.29,2322.51c129.84-3.7,259.68-4.48,389.52-5.4l389.52-.85c259.68.81,519.36.35,779,4.91a2.69,2.69,0,0,1,0,5.37c-259.68,4.56-519.36,4.1-779,4.91l-389.52-.85c-129.84-.92-259.68-1.7-389.52-5.4a1.34,1.34,0,0,1,0-2.68Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2531.81,2280.22a3.36,3.36,0,0,1-3.21-4.33c4.87-16,2.75-48.59.71-80-1-15.5-2-30.14-2.1-42.83a3.36,3.36,0,0,1,3.32-3.4h0a3.36,3.36,0,0,1,3.36,3.32c.14,12.51,1.09,27.07,2.09,42.47,2.09,32.06,4.24,65.22-1,82.44A3.36,3.36,0,0,1,2531.81,2280.22Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2651.85,2313.12a3.35,3.35,0,0,1-3.31-2.86c-.12-.81-12.12-81.19-20.37-160.52a3.36,3.36,0,1,1,6.67-.7c8.24,79.19,20.21,159.42,20.33,160.22a3.36,3.36,0,0,1-2.82,3.82A3.27,3.27,0,0,1,2651.85,2313.12Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M3025.91,1433.5v-6.88a6.71,6.71,0,0,1,13.43,0V1434",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#a6c1d1"},d:"M2798.25,1578.5v-1.72a26.28,26.28,0,0,1-8.95,4.54s7.5-27.34-.45-29.17-38.4,52.06-38.4,52.06l11,26.43s11.83-10.63,49.88-30.13c8.64-8.13,13.71-15.59,16.29-22Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2782.12,1618.79a3.36,3.36,0,0,1,0-6.71c3.78-.14,30-13.82,42.82-38.15a3.36,3.36,0,1,1,5.94,3.13C2817.51,1602.39,2789,1618.79,2782.12,1618.79Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2761.47,1597.25a3.36,3.36,0,0,1-2.22-5.87c2.76-2.45,7.26-11.57,11.23-19.61,8.05-16.3,11.8-23,16.48-23.58a4.9,4.9,0,0,1,4.44,1.78c4.62,5.4,3.46,18.48,2.22,26.39,2.84-1.22,6-3.06,7.75-5.51a3.36,3.36,0,1,1,5.47,3.89c-5.18,7.26-16.36,9.76-16.83,9.86a3.36,3.36,0,0,1-4-4c1.66-7.7,2.93-20,1.06-24.9-2.73,3.15-7.36,12.54-10.58,19-4.66,9.44-9.05,18.35-12.81,21.66A3.31,3.31,0,0,1,2761.47,1597.25Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2416.59,1625.9c3.14,1.27,1.2,22.27,5.46,30.69.95-.16,1.89-.34,2.83-.53-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c1.24.12,2.48.23,3.74.3C2398.59,1640,2410.65,1623.49,2416.59,1625.9Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2428.33,1655.3l2.24-.57C2429.82,1654.93,2429.08,1655.12,2428.33,1655.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2447.73,1648.42l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2191.3,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2257.26,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2587.08,1505.23h-33a6.71,6.71,0,1,0,0,13.43h33a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2686,1505.23a6.71,6.71,0,1,0,0,13.43h8v-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2653,1499.58h-33a6.71,6.71,0,0,0,0,13.43h33a6.71,6.71,0,0,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2323.22,1505.23h-33a6.71,6.71,0,0,0,0,13.43h27.37a97.31,97.31,0,0,1,7.57-13.14A6.72,6.72,0,0,0,2323.22,1505.23Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#e1eff9"},d:"M2521.11,1505.23h-33a6.71,6.71,0,0,0-2.05.32,97.32,97.32,0,0,1,7.55,13.11h27.48a6.71,6.71,0,1,0,0-13.43Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"none"},d:"M2425.9,1657.3c.14.09.43.29,1.35,0,.59-.19.91-.94,1.08-2q-1.71.41-3.44.76A3.51,3.51,0,0,0,2425.9,1657.3Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2430.57,1654.73l-2.24.57c-.16,1-.49,1.78-1.08,2-.92.31-1.21.1-1.35,0a3.51,3.51,0,0,1-1-1.23c-2-3.57-2.59-12.67-3-17.89-.57-8.53-.89-13.23-4.33-14.63-5.44-2.19-12.54,3.41-17.3,13.66a45.49,45.49,0,0,0-4.29,20.29c.39,12.48,6.62,25.37,23.26,34.07a3.4,3.4,0,0,0,1.55.38,3.36,3.36,0,0,0,1.55-6.33c-23.86-12.47-20.37-32.83-17.76-41,2.86-9,7.67-13.76,9.75-14.69a83.07,83.07,0,0,1,.87,8.7c.65,9.63,1.39,20.54,6.92,24.25a7.94,7.94,0,0,0,7.21.78c4.91-1.64,5.87-5.42,5.78-10.24-.57.2-1.57.5-2.65.8l-1,.28Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2431.51,1654.49l1-.28-1.95.52Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2445.52,1649.46l-.61.27c-1.23.56-2.56,1.13-3.32,1.39a57.89,57.89,0,0,1,4.6,24,3.36,3.36,0,0,0,3.31,3.4h0a3.36,3.36,0,0,0,3.36-3.31,66.28,66.28,0,0,0-5.19-26.75l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2446.61,1648.95l-1.7.78.61-.27Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2547.12,2156.58c-11.43,0-21.7-1.43-27.18-5.63a11.37,11.37,0,0,1-4.7-8.56c-.17-3-.55-7.36-1-12.93-3-34.13-10-114,4.45-204.92a3.36,3.36,0,0,1,6.64,1c-14.33,90.06-7.37,169.4-4.39,203.28.5,5.66.89,10.09,1.06,13.15a4.69,4.69,0,0,0,2.09,3.6c11.59,8.87,57.88,1.65,74.75-1.89a3.36,3.36,0,0,1,1.38,6.57C2595.85,2151.2,2569.3,2156.58,2547.12,2156.58Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2643.2,2151.66c-12.44,0-22.94-1.1-27.65-4.25-10.39-6.93-8.37-101.49-7-141.83a3.18,3.18,0,0,1,3.47-3.25,3.37,3.37,0,0,1,3.25,3.47c-2.09,62.26-1.09,130.21,4.2,136.16,9.2,6.1,58.16,1.8,88.94-2.62l-5.81-102.27a3.36,3.36,0,0,1,3.16-3.54,3.19,3.19,0,0,1,3.54,3.16l6,105.34a3.36,3.36,0,0,1-2.85,3.51C2706.69,2146.4,2670.33,2151.66,2643.2,2151.66Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#00a9de"},d:"M2701.14,1985.18a3.35,3.35,0,0,1-3.34-3.09l-7.19-88.58a3.35,3.35,0,1,1,6.69-.54l7.19,88.58a3.36,3.36,0,0,1-3.08,3.61Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#74dcfc"},d:"M2790.95,1624l-32.31-33.51c-15.78,31.57-62.67,78.58-98.1,87.42-.81-.32-1.63-.64-2.49-1-11.37-4.19-76.46-8.61-92-2-10,4.25-16.9,7.49-21.52,11.79-30.74,24.06-50,44.9-50,44.9L2457,1673l-33.51,23.94s28.72,105.32,73,102.93a107.17,107.17,0,0,0,41.78-11.27l3.7,105.84,148.35-2.55-3.6-151.61C2742,1712.26,2790.95,1624,2790.95,1624Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2535.2,1898.17a3.36,3.36,0,0,1,0-6.71l158.76-1.57a3.23,3.23,0,0,1,3.39,3.32,3.36,3.36,0,0,1-3.32,3.39l-158.76,1.57Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#004f82"},d:"M2510.57,1801.68a3.36,3.36,0,0,1-1.38-6.42l29-13a3.36,3.36,0,1,1,2.75,6.12l-29,13A3.32,3.32,0,0,1,2510.57,1801.68Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2363.75,2092.76h-.48l-96.46,1.48-97.41,1-195.87.76a3.72,3.72,0,0,1-3.73-3.7v0l-.07-54.71a3.79,3.79,0,0,1,3.78-3.8h0l194.63.42,194.63,1.45h0a1.9,1.9,0,0,1,1.89,1.92v0Zm-1.9-.95v-.47l-1-53.76,1.93,1.93L2168.15,2041l-194.63.42,3.8-3.8-.07,54.71-3.73-3.73,193.41.76,97.22,1Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"216.54",x2:"216.54",y1:"709.01",y2:"947.85"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M1974.19,2072.13c1.85,19.9,2.24,39.81,2.7,59.71l.42,59.71c-.4,39.8-.17,79.61-2.46,119.42a1.35,1.35,0,0,1-2.69,0c-2.28-39.8-2.05-79.61-2.45-119.42l.42-59.71c.46-19.9.85-39.8,2.7-59.71a.67.67,0,0,1,1.34,0Z",transform:"translate(-1756.98 -1363.12)"}),o.default.createElement("line",{style:{fill:"#fff"},x1:"605.81",x2:"605.81",y1:"729.17",y2:"947.85"}),o.default.createElement("path",{style:{fill:"#c8d7e2"},d:"M2363.46,2092.29c1.85,18.22,2.24,36.45,2.7,54.67l.42,54.67c-.4,36.45-.17,72.89-2.45,109.34a1.35,1.35,0,0,1-2.69,0c-2.28-36.45-2.05-72.89-2.46-109.34l.43-54.67c.46-18.22.85-36.45,2.7-54.67a.67.67,0,0,1,1.34,0Z",transform:"translate(-1756.98 -1363.12)"})),o.default.createElement("div",{className:"jp-apps-card__clouds"},o.default.createElement("img",{src:m.imagePath+"/white-clouds.svg",alt:""}))),o.default.createElement("div",{className:"jp-apps-card__description"},o.default.createElement("h3",{className:"jp-apps-card__header"},(0,c.translate)("Introducing Unlimited Themes")),(0,c.translate)("{{subhead}}Only with Jetpack Professional{{/subhead}}{{p}}Protect your site and work with Jetpack Personal: daily automated backups, unlimited storage, and expert priority support. Security essentials for every WordPress site starting from $3.50.{{/p}}{{p}}Or go Pro with more than 200 Premium Themes, business class security, unlimited video hosting, monetization, marketing automation, and SEO tools.{{/p}}",{components:{subhead:o.default.createElement("p",{className:"jp-apps-card__promo_subhead"}),p:o.default.createElement("p",{className:"jp-apps-card__paragraph"})}}),o.default.createElement("p",null,o.default.createElement(p.default,{className:"is-primary",onClick:this.trackGetStarted,href:"https://jetpack.com/redirect/?source=upgrade-pro-"+r+"&site="+this.props.siteRawUrl},(0,c.translate)("Explore Professional"))," ",o.default.createElement(p.default,{onClick:this.trackComparePlans,href:"https://jetpack.com/redirect/?source=plans-compare-free&site="+this.props.siteRawUrl},(0,c.translate)("Compare All Plans"))),o.default.createElement("a",{onClick:this.trackGetStarted,href:"https://jetpack.com/redirect/?source=upgrade-pro-"+r+"&site="+this.props.siteRawUrl},(0,c.translate)("Limited time 50% introductory discount on Jetpack Professional.")))))}});_.propTypes={className:o.default.PropTypes.string,plan:o.default.PropTypes.string},t.default=_,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(142),o=r(a),i=n(755),s=r(i),c=n(524),l=n(724),u=r(l),d=n(872),p=n(983),f=o.default.createClass({displayName:"PlanHeader",trackLearnMore:function(){u.default.tracks.recordJetpackClick({target:"learn-more",plan:"free",page:"plans"})},render:function(){var e="",t="";switch("dev"!==this.props.plan?(0,d.getPlanClass)(this.props.plan):"dev"){case"is-free-plan":e=o.default.createElement("div",{className:"jp-landing-plans__header"},o.default.createElement("h2",{className:"jp-landing-plans__header-title"},(0,c.translate)("Introducing our most affordable backups and security plan yet")),o.default.createElement("p",{className:"jp-landing-plans__header-description"},(0,c.translate)("Jetpack Personal keeps your data, site, and hard work safe.")),o.default.createElement("div",{
38
+ className:"jp-landing-plans__header-img-container"},o.default.createElement("div",{className:"jp-landing-plans__header-col-left"},o.default.createElement("h3",{className:"jp-landing-plans__header-subtitle"},(0,c.translate)("How much is your website worth?")),o.default.createElement("p",{className:"jp-landing-plans__header-text"},(0,c.translate)("For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up."),o.default.createElement("br",null),o.default.createElement("br",null),(0,c.translate)("Hackers, botnets and spammers attack websites indiscriminately. Their goal is to attack everywhere and often. Our goal is to help you prepare by blocking these threats, and in worst-case-scenarios we'll be here to help you restore your site to its former glory.")),o.default.createElement("p",{className:"jp-landing-plans__header-btn-container"},o.default.createElement(s.default,{href:"https://jetpack.com/redirect/?source=plans-main-top&site="+this.props.siteRawUrl,className:"is-primary"},(0,c.translate)("Learn more")))),o.default.createElement("div",{className:"jp-landing-plans__header-col-right"},o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"335",height:"233",viewBox:"0 0 1005 700",version:"1.1","aria-labelledby":"wpcomLogin",role:"img"},o.default.createElement("title",{id:"wpcomLogin"},(0,c.translate)("Image of WordPress login screen protected by Jetpack")),o.default.createElement("defs",null,o.default.createElement("rect",{id:"path-1",x:"0",y:"0",width:"1005",height:"700",rx:"8"}),o.default.createElement("polygon",{id:"path-3",points:"0 80 80 80 80 0 0 0 0 80"}),o.default.createElement("rect",{id:"path-5",x:"22",y:"154",width:"280",height:"35"}),o.default.createElement("mask",{id:"mask-6",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-5"})),o.default.createElement("rect",{id:"path-7",x:"22",y:"234",width:"280",height:"35"}),o.default.createElement("mask",{id:"mask-8",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-7"})),o.default.createElement("rect",{id:"path-9",x:"22",y:"291",width:"15",height:"15"}),o.default.createElement("mask",{id:"mask-10",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"15",height:"15",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-9"})),o.default.createElement("rect",{id:"path-11",x:"230",y:"289",width:"71",height:"30",rx:"3"}),o.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-12"},o.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.default.createElement("feComposite",{in:"shadowOffsetOuter1",in2:"SourceAlpha",operator:"out",result:"shadowOffsetOuter1"}),o.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowOffsetOuter1"})),o.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-13"},o.default.createElement("feOffset",{dx:"0",dy:"2",in:"SourceAlpha",result:"shadowOffsetInner1"}),o.default.createElement("feComposite",{in:"shadowOffsetInner1",in2:"SourceAlpha",operator:"arithmetic",k2:"-1",k3:"1",result:"shadowInnerInner1"}),o.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowInnerInner1"})),o.default.createElement("mask",{id:"mask-14",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"71",height:"30",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-11"})),o.default.createElement("polygon",{id:"path-15",points:"54 33.75 54 0 0 0 0 33.75 0 67.5 54 67.5"})),o.default.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none","fill-rule":"evenodd"},o.default.createElement("g",{id:"Plans---wp-login-stripped",transform:"translate(-197.000000, -136.000000)"},o.default.createElement("g",{id:"Editor-Container",transform:"translate(197.000000, 136.000000)"},o.default.createElement("g",{id:"Simple-Layout"},o.default.createElement("g",{id:"bg"},o.default.createElement("mask",{id:"mask-2",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-1"})),o.default.createElement("use",{id:"content-bg-mask",fill:"#F1F1F1",xlinkHref:"#path-1"})),o.default.createElement("g",{id:"chrome"},o.default.createElement("rect",{fill:"#FEFEFE",x:"0",y:"0",width:"1005",height:"53",rx:"8"}),o.default.createElement("rect",{id:"Rectangle",fill:"#F1F1F1",x:"0",y:"46",width:"1005",height:"38"}),o.default.createElement("path",{d:"M27.5 31C23.36 31 20 27.64 20 23.5 20 19.36 23.36 16 27.5 16 31.64 16 35 19.36 35 23.5 35 27.64 31.64 31 27.5 31L27.5 31ZM77.5 31C73.36 31 70 27.64 70 23.5 70 19.36 73.36 16 77.5 16 81.64 16 85 19.36 85 23.5 85 27.64 81.64 31 77.5 31L77.5 31ZM52.5 31C48.36 31 45 27.64 45 23.5 45 19.36 48.36 16 52.5 16 56.64 16 60 19.36 60 23.5 60 27.64 56.64 31 52.5 31L52.5 31Z",id:"Shape",fill:"#8D8D8D"}))),o.default.createElement("g",{id:"login-form",opacity:"0.5",transform:"translate(340.000000, 156.000000)"},o.default.createElement("rect",{id:"log-bg",fill:"#FFFFFF",x:"0",y:"110",width:"325",height:"243"}),o.default.createElement("g",{id:"wplogo",transform:"translate(123.000000, 0.000000)"},o.default.createElement("mask",{id:"mask-4",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-3"})),o.default.createElement("g",{id:"Clip-2"}),o.default.createElement("path",{d:"M57.09 69.39L67.48 39.36C69.42 34.51 70.07 30.63 70.07 27.18 70.07 25.93 69.98 24.77 69.84 23.69 72.49 28.53 74 34.09 74 40 74 52.54 67.2 63.5 57.09 69.39L57.09 69.39ZM44.69 24.06C46.73 23.95 48.58 23.74 48.58 23.74 50.41 23.52 50.19 20.82 48.36 20.93 48.36 20.93 42.85 21.36 39.3 21.36 35.96 21.36 30.35 20.93 30.35 20.93 28.51 20.82 28.29 23.63 30.13 23.74 30.13 23.74 31.86 23.95 33.69 24.06L38.99 38.57 31.55 60.89 19.17 24.06C21.22 23.95 23.06 23.74 23.06 23.74 24.89 23.52 24.67 20.82 22.84 20.93 22.84 20.93 17.34 21.36 13.78 21.36 13.14 21.36 12.39 21.35 11.59 21.32 17.67 12.1 28.12 6 40 6 48.85 6 56.91 9.38 62.96 14.93 62.81 14.92 62.67 14.9 62.52 14.9 59.18 14.9 56.81 17.81 56.81 20.93 56.81 23.74 58.43 26.1 60.15 28.91 61.44 31.17 62.95 34.08 62.95 38.28 62.95 41.2 61.83 44.57 60.37 49.28L56.97 60.61 44.69 24.06ZM40 74C36.66 74 33.44 73.51 30.39 72.62L40.6 42.97 51.05 71.61C51.12 71.78 51.2 71.93 51.29 72.08 47.76 73.32 43.96 74 40 74L40 74ZM6 40C6 35.07 7.06 30.39 8.95 26.16L25.16 70.6C13.82 65.09 6 53.46 6 40L6 40ZM40 0C17.91 0 0 17.91 0 40 0 62.09 17.91 80 40 80 62.09 80 80 62.09 80 40 80 17.91 62.09 0 40 0L40 0Z",id:"Fill-1",fill:"#0072AC",mask:"url(#mask-4)"})),o.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-6)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-5"}),o.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-8)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-7"}),o.default.createElement("use",{id:"checkbox",stroke:"#DEDEDE",mask:"url(#mask-10)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-9"}),o.default.createElement("g",{id:"btn"},o.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-12)",xlinkHref:"#path-11"}),o.default.createElement("use",{fill:"#36A3CA","fill-rule":"evenodd",xlinkHref:"#path-11"}),o.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-13)",xlinkHref:"#path-11"}),o.default.createElement("use",{stroke:"#1075A0",mask:"url(#mask-14)",strokeWidth:"2",xlinkHref:"#path-11"}))),o.default.createElement("g",{id:"security",transform:"translate(428.000000, 275.000000)"},o.default.createElement("circle",{id:"Oval",fill:"#3D596D",cx:"75",cy:"75",r:"75"}),o.default.createElement("g",{id:"Page-1",transform:"translate(48.000000, 37.500000)"},o.default.createElement("mask",{id:"mask-16",fill:"white"},o.default.createElement("use",{xlinkHref:"#path-15"})),o.default.createElement("g",{id:"Clip-2"}),o.default.createElement("path",{d:"M30.38 46.31L30.38 54 23.63 54 23.63 46.31C21.62 45.15 20.25 42.99 20.25 40.5 20.25 36.77 23.27 33.75 27 33.75 30.73 33.75 33.75 36.77 33.75 40.5 33.75 42.99 32.38 45.15 30.38 46.31L30.38 46.31ZM16.88 16.87C16.88 11.29 21.42 6.75 27 6.75 32.58 6.75 37.13 11.29 37.13 16.87L37.13 20.25 16.88 20.25 16.88 16.87ZM47.25 20.25L43.88 20.25 43.88 16.87C43.88 7.57 36.3 0 27 0 17.7 0 10.13 7.57 10.13 16.87L10.13 20.25 6.75 20.25C3.02 20.25 0 23.27 0 27L0 60.75C0 64.48 3.02 67.5 6.75 67.5L47.25 67.5C50.98 67.5 54 64.48 54 60.75L54 27C54 23.27 50.98 20.25 47.25 20.25L47.25 20.25Z",id:"Fill-1",fill:"#FFFFFF",mask:"url(#mask-16)"}))))))))),o.default.createElement("div",{className:"jp-landing-plans__clouds jp-clouds-top"},o.default.createElement("img",{src:p.imagePath+"/white-clouds.svg",alt:""}))),t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Your site is on the Free Jetpack Plan")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Upgrade to a paid plan to unlock world-class security, spam protection tools, priority support, SEO and monetization tools."))));break;case"is-personal-plan":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-personal.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Welcome to Jetpack Personal")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Security essentials (daily backups, spam filtering), and priority support."))));break;case"is-premium-plan":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-premium.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Welcome to Jetpack Premium")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Enhanced security (backups, scanning, spam filtering), marketing automation (social scheduling, ad program), 13Gb video hosting, and priority support."))));break;case"is-business-plan":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-business.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Welcome to Jetpack Professional")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Unlimited Premium themes, business class security (backups, scanning, spam filtering), marketing automation (social scheduling, SEO tools, ad program), video hosting, and priority support."))));break;case"dev":t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img"},o.default.createElement("img",{src:p.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,c.translate)("Your site is on Development Mode")),o.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,c.translate)("Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support."))));break;default:t=o.default.createElement("div",{className:"jp-landing__plan-card"},o.default.createElement("div",{className:"jp-landing__plan-card-img is-placeholder"}),o.default.createElement("div",{className:"jp-landing__plan-card-current"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o.default.createElement("div",null,e,t)}});t.default=f,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(142),o=r(a),i=n(154),s=n(755),c=r(s),l=n(524),u=n(724),d=r(u),p=n(872),f=n(709),h=r(f),m=n(738),_=n(512),M=n(827),g=r(M),v=o.default.createClass({displayName:"PlanBody",propTypes:{plan:o.default.PropTypes.string},getDefaultProps:function(){return{plan:""}},trackPlansClick:function(e){d.default.tracks.recordJetpackClick({page:"plans",target:e,plan:this.props.plan})},activateAds:function(){this.props.activateModule("wordads"),this.trackPlansClick("activate_wordads")},activatePublicize:function(){this.props.activateModule("publicize"),this.trackPlansClick("activate_publicize")},activateVideoPress:function(){this.props.activateModule("videopress"),this.trackPlansClick("activate_videopress")},activateSeo:function(){this.props.activateModule("seo-tools"),this.trackPlansClick("activate_seo")},activateGoogleAnalytics:function(){this.props.activateModule("google-analytics"),this.trackPlansClick("activate_ga")},render:function(){var e=this,t="",n="dev"!==this.props.plan?(0,p.getPlanClass)(this.props.plan):"dev",r=(0,h.default)(this.props.activeFeatures,p.FEATURE_UNLIMITED_PREMIUM_THEMES);switch(n){case"is-personal-plan":case"is-premium-plan":case"is-business-plan":t=o.default.createElement("div",{className:"jp-landing__plan-features"},r&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Unlimited Premium Themes")),o.default.createElement("p",null,(0,l.translate)("Exclusive hand-crafted designs you will love with dedicated support directly from the themes' authors.")),o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("premium_themes")},href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Explore"))),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Spam Protection")),o.default.createElement("p",null,(0,l.translate)("State-of-the-art spam defense powered by Akismet.")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_spam_stats")},href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config",className:"is-primary"},(0,l.translate)("View your spam stats")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_akismet")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=akismet",className:"is-primary"},(0,l.translate)("Configure Akismet"))),"is-personal-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Backups")),o.default.createElement("p",null,(0,l.translate)("Daily backup of all your site data with unlimited space and one-click restores (powered by VaultPress).")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_security_dash")},href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,l.translate)("View your security dashboard")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_vault")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,l.translate)("Configure VaultPress"))),"is-premium-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Backups & Security Scanning")),o.default.createElement("p",null,(0,l.translate)("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support (powered by VaultPress).")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_security_dash")},href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,l.translate)("View your security dashboard")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_vault")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,l.translate)("Configure VaultPress"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Backups & Security Scanning")),o.default.createElement("p",null,(0,l.translate)("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, one-click threat resolution, and priority support (powered by VaultPress).")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_security_dash")},href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,l.translate)("View your security dashboard")):o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_vault")},href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,l.translate)("Configure VaultPress"))),("is-business-plan"===n||"is-premium-plan"===n)&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Ads")),o.default.createElement("p",null,(0,l.translate)("Earn income by allowing Jetpack to display high quality ads (powered by WordAds).")),this.props.isModuleActivated("wordads")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("view_earnings")},href:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("View your earnings")):o.default.createElement(c.default,{onClick:this.activateAds,className:"is-primary",disabled:this.props.isActivatingModule("wordads")},(0,l.translate)("Activate Ads"))),("is-business-plan"===n||"is-premium-plan"===n)&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Social Media Scheduling")),o.default.createElement("p",null,(0,l.translate)("Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.")),this.props.isModuleActivated("publicize")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("schedule_posts")},href:"https://wordpress.com/posts/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Schedule Posts")):o.default.createElement(c.default,{onClick:this.activatePublicize,className:"is-primary",disabled:this.props.isActivatingModule("publicize")},(0,l.translate)("Activate Publicize"))),"is-premium-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Video Hosting")),o.default.createElement("p",null,(0,l.translate)("13Gb of fast, optimized, and ad-free video hosting for your site (powered by VideoPress).")),this.props.isModuleActivated("videopress")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("upload_videos")},href:this.props.siteAdminUrl+"upload.php",className:"is-primary"},(0,l.translate)("Upload Videos Now")):o.default.createElement(c.default,{onClick:this.activateVideoPress,className:"is-primary",disabled:this.props.isActivatingModule("videopress")},(0,l.translate)("Activate VideoPress"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Video Hosting")),o.default.createElement("p",null,(0,l.translate)("Fast, optimized, ad-free, and unlimited video hosting for your site (powered by VideoPress).")),this.props.isModuleActivated("videopress")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("upload_videos")},href:this.props.siteAdminUrl+"upload.php",className:"is-primary"},(0,l.translate)("Upload Videos Now")):o.default.createElement(c.default,{onClick:this.activateVideoPress,className:"is-primary",disabled:this.props.isActivatingModule("videopress")},(0,l.translate)("Activate VideoPress"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("SEO Tools")),o.default.createElement("p",null,(0,l.translate)("Advanced SEO tools to help your site get found when people search for relevant content.")),this.props.isModuleActivated("seo-tools")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_seo")},href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Configure Site SEO")):o.default.createElement(c.default,{onClick:this.activateSeo,className:"is-primary",disabled:this.props.isActivatingModule("seo-tools")},(0,l.translate)("Activate SEO Tools"))),"is-business-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Google Analytics")),o.default.createElement("p",null,(0,l.translate)("Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.")),this.props.isModuleActivated("google-analytics")?o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("configure_ga")},href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Configure Google Analytics")):o.default.createElement(c.default,{onClick:this.activateGoogleAnalytics,className:"is-primary",disabled:this.props.isActivatingModule("google-analytics")},(0,l.translate)("Activate Google Analytics"))),"is-personal-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Explore Premium and Professional Options")),o.default.createElement("p",null,(0,l.translate)("Learn about Jetpack services used by WordPress professionals. On top of the security essentials you currently enjoy, Jetpack offers you:")),o.default.createElement("p",null," • ",(0,l.translate)("Over 200 Premium themes to explore")),o.default.createElement("p",null," • ",(0,l.translate)("Business class security: malware scanning, real-time backups, and threat resolution")),o.default.createElement("p",null," • ",(0,l.translate)("Social media automation and scheduling")),o.default.createElement("p",null," • ",(0,l.translate)("Unlimited and ad-free video hosting")),o.default.createElement("p",null," • ",(0,l.translate)("SEO and social media previewing tools")),o.default.createElement("p",null," • ",(0,l.translate)("Income generation from a WordPress ad program")),o.default.createElement("p",null," • ",(0,l.translate)("Google Analytics integration")),o.default.createElement("p",null,o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("compare_plans")},href:"https://jetpack.com/redirect/?source=plans-compare-personal&site="+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Compare Plans")))),"is-premium-plan"===n&&o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Explore Jetpack Professional")),o.default.createElement("p",null,(0,l.translate)("Jetpack Professional is the tool used by WordPress professionals. On top of the services you already enjoy, you also benefit from:")),o.default.createElement("p",null," • ",(0,l.translate)("Over 200 Premium themes to explore")),o.default.createElement("p",null," • ",(0,l.translate)("Business class security: real-time backups and threat resolution")),o.default.createElement("p",null," • ",(0,l.translate)("SEO and social media previewing tools")),o.default.createElement("p",null," • ",(0,l.translate)("Unlimited ad-free video hosting")),o.default.createElement("p",null," • ",(0,l.translate)("Google Analytics integration")),o.default.createElement("p",null,o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("compare_plans")},href:"https://jetpack.com/redirect/?source=plans-compare-premium&site="+this.props.siteRawUrl,className:"is-primary"},(0,l.translate)("Explore Jetpack Professional")))));break;case"is-free-plan":case"dev":t=o.default.createElement("div",{className:"jp-landing__plan-features"},o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Maximum grade security")),o.default.createElement("p",null,(0,l.translate)("Real-time backup with unlimited space, one-click restores, bulletproof spam monitoring, malware defense, and brute-force login protection - all in one place and optimized for WordPress.")),o.default.createElement("p",null,(0,l.translate)("Bulletproof spam filtering protects your brand, your readers, and improves SEO. Malware scanning helps maintain peace of mind and keeps your backend safe from intruders."))),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Premium traffic and monetization tools")),o.default.createElement("p",null,(0,l.translate)("The Jetpack Premium plan now offers you the ability to generate income from your site by showing high-quality paid ads to your visitors. Professional plan customers also benefit from SEO tools to help optimize search engine traffic."))),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,l.translate)("Enjoy priority support")),o.default.createElement("p",null,(0,l.translate)("We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible. "))),o.default.createElement("p",null,o.default.createElement(c.default,{onClick:function(){return e.trackPlansClick("compare_plans")},href:"is-free-plan"===n?"https://jetpack.com/redirect/?source=plans-main-bottom&site="+this.props.siteRawUrl:"https://jetpack.com/redirect/?source=plans-main-bottom-dev-mode",className:"is-primary"},(0,l.translate)("Compare Plans"))));break;default:t=o.default.createElement("div",{className:"jp-landing__plan-features"},o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o.default.createElement("div",{className:"jp-landing__plan-features-card"},o.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o.default.createElement("div",null,o.default.createElement("div",null,o.default.createElement(g.default,null),t))}});t.default=(0,i.connect)(function(e){return{isFetchingPluginsData:(0,m.isFetchingPluginsData)(e),isPluginActive:function(t){return(0,m.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,m.isPluginInstalled)(e,t)},isModuleActivated:function(t){return(0,_.isModuleActivated)(e,t)},isActivatingModule:function(t){return(0,_.isActivatingModule)(e,t)}}},function(e){return{fetchPluginsData:function(){return e((0,m.fetchPluginsData)())},activateModule:function(t){return e((0,_.activateModule)(t))}}})(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}),t.Footer=void 0;var a=n(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(524),u=n(724),d=r(u),p=n(398),f=n(750),h=n(707),m=n(1058),_=r(m),M=n(881),g=r(M),v=t.Footer=o.default.createClass({displayName:"Footer",resetOnClick:function(){window.confirm((0,l.translate)("This will reset all Jetpack options, are you sure?"))&&this.props.resetOptions()},trackVersionClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"version"})},trackTermsClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"terms"})},trackPrivacyClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})},trackDebugClick:function(){d.default.tracks.recordJetpackClick({target:"footer_link",link:"debug"})},render:function(){var e=this,t=(0,c.default)(this.props.className,"jp-footer"),n=this.props.currentVersion;return o.default.createElement("div",{className:t},o.default.createElement("div",{className:"jp-footer__a8c-attr-container"},o.default.createElement("a",{href:"https://automattic.com",target:"_blank",rel:"noopener noreferrer"},o.default.createElement("svg",{role:"img",className:"jp-footer__a8c-attr",x:"0",y:"0",viewBox:"0 0 935 38.2","enable-background":"new 0 0 935 38.2","aria-labelledby":"a8c-svg-title"},o.default.createElement("title",{id:"a8c-svg-title"},(0,l.translate)("An Automattic Airline")),o.default.createElement("path",{
39
d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),o.default.createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),o.default.createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})))),o.default.createElement("ul",{className:"jp-footer__links"},o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:this.trackVersionClick,href:"https://jetpack.com",target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:n},n)),o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:this.trackTermsClick,href:"https://wordpress.com/tos/",target:"_blank",rel:"noopener noreferrer",title:(0,l.translate)("WordPress.com Terms of Service"),className:"jp-footer__link"},(0,l.translate)("Terms",{context:"Shorthand for Terms of Service."}))),o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:this.trackPrivacyClick,href:"https://automattic.com/privacy/",target:"_blank",rel:"noopener noreferrer",title:(0,l.translate)("Automattic's Privacy Policy"),className:"jp-footer__link"},(0,l.translate)("Privacy",{context:"Shorthand for Privacy Policy."}))),function(){if(e.props.userCanManageOptions)return o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{onClick:e.trackDebugClick,href:e.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:(0,l.translate)("Test your site’s compatibility with Jetpack."),className:"jp-footer__link"},(0,l.translate)("Debug",{context:"Navigation item. Noun. Links to a debugger tool for Jetpack."})))}(),function(){return e.props.isDevVersion&&e.props.userCanManageOptions?o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,g.default)(e.resetOnClick),onClick:e.resetOnClick,className:"jp-footer__link"},(0,l.translate)("Reset Options (dev only)",{context:"Navigation item."}))):""}(),function(){return e.props.isDevVersion?o.default.createElement("li",{className:"jp-footer__link-item"},o.default.createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,g.default)(e.props.enableDevCard),onClick:e.props.enableDevCard,className:"jp-footer__link"},(0,l.translate)("Dev Tools",{context:"Navigation item."}))):""}(),function(){if(e.props.isDevVersion&&e.props.displayDevCard)return o.default.createElement(_.default,null)}()))}});t.default=(0,i.connect)(function(e){return{currentVersion:(0,p.getCurrentVersion)(e),userCanManageOptions:(0,p.userCanManageOptions)(e),isDevVersion:(0,p.isDevVersion)(e),siteAdminUrl:(0,p.getSiteAdminUrl)(e),isInIdentityCrisis:(0,h.isInIdentityCrisis)(e),displayDevCard:(0,f.canDisplayDevCard)(e)}},function(e){return{resetOptions:function(){return e((0,f.resetOptions)("options"))},enableDevCard:function(){return e((0,f.enableDevCard)())}}})(v)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DevCard=void 0;var a=n(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(872),u=n(398),d=n(735),p=n(707),f=n(750),h=n(466),m=n(874),_=r(m),M=n(881),g=r(M),v=t.DevCard=o.default.createClass({displayName:"DevCard",onPlanChange:function(e){this.props.switchPlanPreview(e.target.value)},onPermissionsChange:function(e){this.props.switchUserPermissions(e.target.value)},onThreatsChange:function(e){this.props.switchThreats(e.target.value)},maybeShowStatsToggle:function(){if(!this.props.isAdmin)return o.default.createElement("div",null,o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"view_stats"},o.default.createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"hide_stats"},o.default.createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!this.props.canViewStats,onChange:this.onPermissionsChange}),"Can not view stats"))))},maybeShowIsLinkedToggle:function(){if(!this.props.isMaster)return o.default.createElement("div",null,o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"is_linked"},o.default.createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"is_unlinked"},o.default.createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!this.props.isUserLinked,onChange:this.onPermissionsChange}),"Unlinked"))))},render:function(){if(!this.props.canDisplayDevCard)return null;var e=(0,c.default)(this.props.className,"jp-dev-card"),t=(0,l.getPlanClass)(this.props.sitePlan.product_slug);return o.default.createElement(_.default,{compact:!0,className:e},o.default.createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,g.default)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),o.default.createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_free"},o.default.createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_personal"},o.default.createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_premium"},o.default.createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"jetpack_business"},o.default.createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro"))),o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"admin_master"},o.default.createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (master)")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"admin_secondary"},o.default.createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isMaster,onChange:this.onPermissionsChange}),"Admin (secondary)")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"editor"},o.default.createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"subscriber"},o.default.createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),o.default.createElement("hr",null),o.default.createElement("ul",null,o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"nothreats"},o.default.createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),o.default.createElement("li",null,o.default.createElement("label",{htmlFor:"threats"},o.default.createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),this.maybeShowStatsToggle(),this.maybeShowIsLinkedToggle())}});t.default=(0,i.connect)(function(e){return{isDevVersion:(0,u.isDevVersion)(e),sitePlan:(0,d.getSitePlan)(e),canDisplayDevCard:(0,f.canDisplayDevCard)(e),isUserLinked:(0,p.isCurrentUserLinked)(e),canViewStats:(0,u.userCanViewStats)(e),isMaster:(0,u.userIsMaster)(e),isAdmin:(0,u.userCanDisconnectSite)(e),canEditPosts:(0,u.userCanEditPosts)(e),getVaultPressScanThreatCount:function(){return(0,h.getVaultPressScanThreatCount)(e)}}},function(e){return{switchPlanPreview:function(t){return e((0,f.switchPlanPreview)(t))},switchUserPermissions:function(t){return e((0,f.switchUserPermission)(t))},switchThreats:function(t){return e((0,f.switchThreats)(parseInt(t)))},disableDevCard:function(){return e((0,f.disableDevCard)())}}})(v)},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(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(524),u=n(874),d=r(u),p=n(755),f=r(p),h=n(724),m=r(h),_=n(872),M=n(398),g=n(735),v=n(707),b=n(887),y=r(b),A=n(983),E=o.default.createClass({displayName:"SupportCard",getDefaultProps:function(){return{className:"",siteConnectionStatus:!1}},trackBannerClick:function(){m.default.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:this.props.path})},shouldComponentUpdate:function(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug},trackAskQuestionClick:function(){m.default.tracks.recordJetpackClick({target:"support-card",button:"support-ask",page:this.props.path})},trackSearchClick:function(){m.default.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:this.props.path})},render:function(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return o.default.createElement("div",null);var e=(0,c.default)(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug;return o.default.createElement("div",{className:e},o.default.createElement(d.default,{className:"jp-support-card__happiness"},o.default.createElement("div",{className:"jp-support-card__happiness-contact"},o.default.createElement("h3",{className:"jp-support-card__header"},(0,l.translate)("We're here to help")),o.default.createElement("p",{className:"jp-support-card__description"},t?(0,l.translate)("Jetpack comes with free, basic support for all users."):(0,l.translate)("Your paid plan gives you access to prioritized Jetpack support.")),o.default.createElement("p",{className:"jp-support-card__description"},o.default.createElement(f.default,{onClick:this.trackAskQuestionClick,href:this.props.isAtomicSite?"https://wordpress.com/help/contact/":A.JETPACK_CONTACT_SUPPORT},(0,l.translate)("Ask a question")),o.default.createElement(f.default,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?"https://wordpress.com/help/":"https://jetpack.com/support/"},(0,l.translate)("Search our support site"))))),this.props.siteConnectionStatus&&t&&o.default.createElement(y.default,{title:(0,l.translate)("Get a faster resolution to your support questions."),plan:_.PLAN_JETPACK_PERSONAL,callToAction:(0,l.translate)("Upgrade"),onClick:this.trackBannerClick,href:"https://jetpack.com/redirect/?source=support&site="+this.props.siteRawUrl}))}});E.propTypes={siteConnectionStatus:o.default.PropTypes.any.isRequired,className:o.default.PropTypes.string},t.default=(0,i.connect)(function(e){return{sitePlan:(0,g.getSitePlan)(e),siteRawUrl:(0,M.getSiteRawUrl)(e),siteConnectionStatus:(0,v.getSiteConnectionStatus)(e),isFetchingSiteData:(0,g.isFetchingSiteData)(e),isAtomicSite:(0,M.isAtomicSite)(e)}})(E),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(142),o=r(a),i=n(154),s=n(839),c=r(s),l=n(524),u=n(874),d=r(u),p=n(755),f=r(p),h=n(724),m=r(h),_=n(983),M=n(729),g=n(398),v=o.default.createClass({displayName:"AppsCard",trackDownloadClick:function(){m.default.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:this.props.path})},dismissCard:function(){this.props.dismissAppCard(),m.default.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:this.props.path})},render:function(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;var e=(0,c.default)(this.props.className,"jp-apps-card");return o.default.createElement("div",{className:e},o.default.createElement(d.default,{className:"jp-apps-card__content"},o.default.createElement("div",{className:"jp-apps-card__top"},o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1240.3 577"},o.default.createElement("path",{fill:"#C8D6E1",d:"M1016.9 546.3V194.8c0-16.9 13.7-30.7 30.7-30.7h162.1c16.9 0 30.7 13.7 30.7 30.7v351.5c0 16.9-13.7 30.7-30.7 30.7h-162.1c-16.9 0-30.7-13.7-30.7-30.7zM956.9-.6H307.1c-23.6 0-42.8 19.2-42.8 42.8v492.3h692.6V-.6zM30.7 575.3H176c16.9 0 30.7-13.7 30.7-30.7V243.3c0-16.9-13.7-30.7-30.7-30.7H30.7c-17 0-30.7 13.8-30.7 30.7v301.3c0 17 13.7 30.7 30.7 30.7z"}),o.default.createElement("path",{fill:"#FFF",d:"M1240.3 508.7h-223.4V231.6h223.4v277.1zM195.8 252.8h-185v268.3h185V252.8zM927.2 500V33.3H299.7V500h627.5z"}),o.default.createElement("path",{fill:"#85A6BC",d:"M993.4 577H219.8c-16.4 0-29.6-13.3-29.6-29.6v-16.1h840v9c0 20.2-16.5 36.7-36.8 36.7z"}),o.default.createElement("path",{fill:"#658EAB",d:"M661.8 554.1H558.5c-12.6 0-22.9-10.2-22.9-22.9h149c.1 12.7-10.1 22.9-22.8 22.9z"}),o.default.createElement("path",{fill:"#74DCFC",d:"M1137.9 356.9c-4.9 20.9-24.6 34.1-46.4 26.9-20.4-6.8-31.8-22.1-29.7-43.5 2.4-24 24.4-35 45.5-30.9 22.1 4.3 35.6 26.6 30.6 47.5zm27.9-33.1c-4.4 1.2-3.1 6.1 1.1 4.9 4.3-1.2 3.3-6.1-1.1-4.9zm23.6 6.5c-4.6.2-3.1 6.1 1.1 4.9 4.3-1.2 1.1-5-1.1-4.9zm-19.6 33.2c2.5-3.6-2.5-7-4.2-2.7-.8 2 1.7 6.3 4.2 2.7zm26.9 3.9c3.9-4.7-3.5-6.7-5.2-2.4-.8 2 2.4 5.8 5.2 2.4zm-49 20.6c-3.1 3.4 2 9.3 4.5 3.7 1.7-4.1-3.1-5.3-4.5-3.7zM70.3 484H38.2v-45.5h32.1V484zm48.4-70.2H86.6V484h32.1v-70.2zm48.5-35.7H135v106h32.1l.1-106z"}),o.default.createElement("path",{fill:"#00AADC",d:"M1061.9 378.7c-.8 1.4-1.5 2.9-1.9 4.4s-.5 3 0 3.9c.3.5.5.8 1 1 .1.1.2.1.3.1.1 0 .2.1.4.1.3 0 .5.1.9.1 1.2.1 2.7-.1 4.1-.6 2.8-.9 5.7-2.3 8.4-4 2.7-1.6 5.4-3.5 7.9-5.4 5.2-3.9 10.1-8.2 14.8-12.7 4.8-4.5 9.3-9.2 13.8-14s8.8-9.7 12.8-14.9c4-5.1 7.8-10.5 10.7-16.1 1.5-2.8 2.7-5.7 3.5-8.6.2-.7.3-1.4.4-2.1.1-.4.1-.7.1-1v-1c0-1.3-.3-2.4-.9-3-.6-.7-1.6-1.1-2.9-1.2-.6-.1-1.4 0-2.1.1s-1.4.2-2.2.5c-3 .8-5.9 2.3-8.7 3.9-.6.3-1.3.1-1.7-.4-.3-.5-.2-1.2.3-1.5 2.6-2.2 5.5-4.1 8.8-5.5 1.7-.7 3.5-1.2 5.5-1.3h.8l.8.1c.3 0 .5.1.8.1l.8.2c.3.1.5.2.8.3l.8.4c.5.3 1 .7 1.5 1.1s.8.9 1.2 1.4c.4.5.5 1 .8 1.5.4 1 .7 2.1.7 3.1.2 2 0 3.9-.4 5.7-.7 3.6-2 6.9-3.5 10-3 6.3-6.8 12-10.8 17.4-4 5.5-8.4 10.6-13 15.6s-9.3 9.7-14.3 14.3c-5 4.5-10.2 8.9-15.8 12.8-2.8 1.9-5.7 3.8-8.8 5.3-1.6.8-3.2 1.5-4.8 2.1-.8.3-1.7.6-2.5.9-.9.2-1.8.5-2.7.6-1.8.3-3.7.5-5.8.1-.5-.1-1-.3-1.5-.5-.3-.1-.5-.3-.8-.4-.2-.2-.5-.3-.7-.5-1-.7-1.6-1.8-1.9-2.9-.5-2.2.1-4.2.9-5.8.8-1.6 1.9-3 3.1-4.3.2-.2.6-.3.9 0 .2 0 .2.3.1.6zm-5.1 61.5c-.1-1.9 1.4-3.5 3.4-3.6 9.7-.6 19.4-1 29-1.2 9.7-.4 19.4-.3 29-.4 9.7-.1 19.4 0 29 .2 9.7.3 19.4.6 29 1.4 1.7.1 3.1 1.4 3.3 3.1.2 1.9-1.3 3.5-3.3 3.7-9.7.8-19.4 1.1-29 1.4-9.7.2-19.4.4-29 .2-9.7-.2-19.4 0-29-.4-9.7-.2-19.4-.6-29-1.2-1.9-.1-3.3-1.4-3.4-3.2zm1.9 36.4c4.8.6 9.7 1 14.5 1.2 4.8.4 9.7.3 14.5.4s9.7 0 14.5-.2c4.8-.3 9.7-.6 14.5-1.4 1.2-.2 2-1.9 1.9-3.7-.1-1.6-.9-2.9-1.9-3-4.8-.8-9.7-1.1-14.5-1.4-4.8-.2-9.7-.4-14.5-.2-4.8.2-9.7 0-14.5.4-4.8.2-9.7.6-14.5 1.2-1.2.2-2 1.8-1.9 3.7 0 1.6.9 2.8 1.9 3zM70.3 484H38.2v-19.5h32.1V484zm48.4-30.1H86.6V484h32.1v-30.1zm48.5-15.4H135V484h32.1l.1-45.5zM33.9 323.6c-.1-1.9 1.4-3.5 3.4-3.6 9.7-.6 19.4-1 29-1.2 9.7-.4 19.4-.3 29-.4 9.7-.1 19.4 0 29 .2 9.7.3 19.4.6 29 1.4 1.7.1 3.1 1.4 3.3 3.1.2 1.9-1.3 3.5-3.3 3.7-9.7.8-19.4 1.1-29 1.4-9.7.2-19.4.4-29 .2-9.7-.2-19.4 0-29-.4-9.7-.2-19.4-.6-29-1.2-1.8-.2-3.3-1.5-3.4-3.2zm1.9 36.3c4.8.6 9.7 1 14.5 1.2 4.8.4 9.7.3 14.5.4s9.7 0 14.5-.2c4.8-.3 9.7-.6 14.5-1.4 1.2-.2 2-1.9 1.9-3.7-.1-1.6-.9-2.9-1.9-3-4.8-.8-9.7-1.1-14.5-1.4-4.8-.2-9.7-.4-14.5-.2-4.8.2-9.7 0-14.5.4-4.8.2-9.7.6-14.5 1.2-1.2.2-2 1.8-1.9 3.7.1 1.6.9 2.9 1.9 3z"}),o.default.createElement("path",{fill:"#0084C0",d:"M1240.3 268h-223.4v-36.5h223.4V268zM195.8 251.9h-185v36.5h185v-36.5zM333.6 82h593.6V33.3H299.7V82"}),o.default.createElement("path",{fill:"#00AADC",d:"M626.9 320.3c.1.3.2.5.4.7-5.3 1.9-11.1 2.9-17.1 2.9-5 0-9.9-.7-14.5-2.1l15.4-44.8 15.8 43.3zm18-50.4c0-6.4-2.3-10.7-4.2-14.2-2.6-4.2-5.1-7.8-5.1-12.1 0-4.7 3.6-9.1 8.6-9.1h.7c-9.1-8.4-21.3-13.5-34.7-13.5-18 0-33.7 9.2-42.9 23.2 1.2 0 2.3.1 3.3.1 5.4 0 13.7-.7 13.7-.7 2.8-.2 3.1 3.9.3 4.2 0 0-2.8.3-5.9.5l18.7 55.7 11.2-33.7-8-21.9c-2.8-.2-5.4-.5-5.4-.5-2.8-.2-2.4-4.4.3-4.2 0 0 8.5.7 13.5.7 5.4 0 13.7-.7 13.7-.7 2.8-.2 3.1 3.9.3 4.2 0 0-2.8.3-5.9.5l18.6 55.2 5.1-17.1c2.7-6.7 4.1-12.2 4.1-16.6zm28.8 2.6c0 35.1-28.4 63.5-63.5 63.5s-63.5-28.4-63.5-63.5 28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5zm-6.4 0c0-31.5-25.6-57.2-57.2-57.2S553 241 553 272.5s25.6 57.1 57.1 57.1 57.2-25.6 57.2-57.1zm-108.5 0c0 20.3 11.8 37.9 29 46.2l-24.5-67.2c-2.9 6.5-4.5 13.5-4.5 21zm96.5-24.7c.2 1.6.3 3.4.3 5.3 0 5.2-1 11.1-3.9 18.4L636 316.9c15.3-8.9 25.5-25.5 25.5-44.4.1-8.9-2.2-17.3-6.2-24.7z"})),o.default.createElement("div",{className:"jp-apps-card__clouds"},o.default.createElement("img",{src:_.imagePath+"/white-clouds.svg",alt:""}))),o.default.createElement("div",{className:"jp-apps-card__description"},o.default.createElement("h3",{className:"jp-apps-card__header"},(0,l.translate)("Get WordPress Apps for every device")),o.default.createElement("p",{className:"jp-apps-card__paragraph"},(0,l.translate)("Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.")),o.default.createElement(f.default,{className:"is-primary",onClick:this.trackDownloadClick,href:"https://apps.wordpress.com/"},(0,l.translate)("Download the free apps")),o.default.createElement("br",null),o.default.createElement("a",{href:"javascript:void(0)",onClick:this.dismissCard},(0,l.translate)("I already use this app.")))))}});v.propTypes={className:o.default.PropTypes.string},t.default=(0,i.connect)(function(e){return{isAppsCardDismissed:(0,M.appsCardDismissed)(e),arePromotionsActive:(0,g.arePromotionsActive)(e)}},function(e){return{dismissAppCard:function(){return e((0,M.updateSettings)({dismiss_dash_app_card:!0}))}}})(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(142),o=r(a),i=n(154),s=n(398),c=n(512),l=n(765),u=r(l),d=n(803),p=r(d),f=n(1023),h=r(f),m=n(828),_=r(m),M=n(707),g=o.default.createClass({displayName:"NonAdminView",shouldComponentUpdate:function(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.route.path!==this.props.route.path},renderMainContent:function(e){var t=void 0,n=o.default.createElement(u.default,this.props);switch(e){case"/dashboard":default:t=o.default.createElement(h.default,this.props);break;case"/settings":case"/writing":case"/sharing":this.props.isSubscriber||(n=o.default.createElement(p.default,this.props),t=o.default.createElement(_.default,{route:this.props.route,siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm}))}return window.wpNavMenuClassChange(),o.default.createElement("div",null,n,t)},render:function(){return this.renderMainContent(this.props.route.path)}});g.propTypes={userCanViewStats:o.default.PropTypes.bool.isRequired,isSubscriber:o.default.PropTypes.bool.isRequired,siteConnectionStatus:o.default.PropTypes.any.isRequired},t.default=(0,i.connect)(function(e){return{userCanViewStats:(0,s.userCanViewStats)(e),siteConnectionStatus:(0,M.getSiteConnectionStatus)(e),isSubscriber:(0,s.userIsSubscriber)(e),isModuleActivated:function(t){return(0,c.isModuleActivated)(e,t)}}})(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}),t.UserUnlinked=t.DevModeNotice=t.StagingSiteNotice=t.DevVersionNotice=void 0;var a=n(142),o=r(a),i=n(154),s=n(880),c=r(s),l=n(884),u=r(l),d=n(524),p=n(1063),f=r(p),h=n(1070),m=r(h),_=n(707),M=n(398),g=n(1073),v=r(g),b=n(887),y=r(b),A=n(983),E=t.DevVersionNotice=o.default.createClass({displayName:"DevVersionNotice",render:function(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&o.default.createElement(c.default,{showDismiss:!1,text:(0,d.translate)("You are currently running a development version of Jetpack.")},o.default.createElement(u.default,{href:A.JETPACK_CONTACT_BETA_SUPPORT},(0,d.translate)("Submit Beta feedback")))}});E.propTypes={isDevVersion:o.default.PropTypes.bool.isRequired,userIsSubscriber:o.default.PropTypes.bool.isRequired};var T=t.StagingSiteNotice=o.default.createClass({displayName:"StagingSiteNotice",render:function(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){var e={text:(0,d.translate)("You are running Jetpack on a staging server."),status:"is-basic",showDismiss:!1};return o.default.createElement(c.default,e,o.default.createElement(u.default,{href:"https://jetpack.com/support/staging-sites/"},(0,d.translate)("More Info")))}return!1}});T.propTypes={isStaging:o.default.PropTypes.bool.isRequired,isInIdentityCrisis:o.default.PropTypes.bool.isRequired};var L=t.DevModeNotice=o.default.createClass({displayName:"DevModeNotice",render:function(){if("dev"===this.props.siteConnectionStatus){var e=this.props.siteDevMode,t=[];e.filter&&t.push((0,d.translate)("{{li}}The jetpack_development_mode filter is active{{/li}}",{components:{li:o.default.createElement("li",null)}})),e.constant&&t.push((0,d.translate)("{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}",{components:{li:o.default.createElement("li",null)}})),e.url&&t.push((0,d.translate)("{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}",{components:{li:o.default.createElement("li",null)}}));var n=(0,d.translate)("Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}",{components:{a:o.default.createElement("a",{href:"https://jetpack.com/support/development-mode/",target:"_blank",rel:"noopener noreferrer"}),reasons:o.default.createElement("ul",null,t)}});return o.default.createElement(c.default,{showDismiss:!1,status:"is-info",text:n},o.default.createElement(u.default,{href:"https://jetpack.com/development-mode/"},(0,d.translate)("Learn More")))}return!1}});L.propTypes={siteConnectionStatus:o.default.PropTypes.oneOfType([o.default.PropTypes.string,o.default.PropTypes.bool]).isRequired,siteDevMode:o.default.PropTypes.oneOfType([o.default.PropTypes.bool,o.default.PropTypes.object]).isRequired};var w=t.UserUnlinked=o.default.createClass({displayName:"UserUnlinked",render:function(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&o.default.createElement("div",{className:"jp-unlinked-notice"},o.default.createElement(y.default,{title:(0,d.translate)("Connect your account to get the most out of Jetpack"),callToAction:(0,d.translate)("Connect to WordPress.com"),href:this.props.connectUrl+"&from=unlinked-user-connect",icon:"my-sites"}))}});w.propTypes={connectUrl:o.default.PropTypes.string.isRequired,siteConnected:o.default.PropTypes.bool.isRequired};var k=o.default.createClass({displayName:"JetpackNotices",render:function(){return o.default.createElement("div",{"aria-live":"polite"},o.default.createElement(f.default,null),o.default.createElement(m.default,null),o.default.createElement(E,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),o.default.createElement(L,{siteConnectionStatus:this.props.siteConnectionStatus,siteDevMode:this.props.siteDevMode}),o.default.createElement(T,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),o.default.createElement(v.default,null),o.default.createElement(w,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanManageModules&&o.default.createElement(c.default,{showDismiss:!1,status:"is-warning",text:(0,d.translate)("This site is not connected to WordPress.com. Please ask the site administrator to connect.")}))}});t.default=(0,i.connect)(function(e){return{connectUrl:(0,_.getConnectUrl)(e),siteConnectionStatus:(0,_.getSiteConnectionStatus)(e),userCanManageModules:(0,M.userCanManageModules)(e),userIsSubscriber:(0,M.userIsSubscriber)(e),isLinked:(0,_.isCurrentUserLinked)(e),isDevVersion:(0,M.isDevVersion)(e),siteDevMode:(0,_.getSiteDevMode)(e),isStaging:(0,_.isStaging)(e),isInIdentityCrisis:(0,_.isInIdentityCrisis)(e)}})(k)},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(142),o=r(a),i=n(725),s=r(i),c=n(880),l=r(c),u=n(884),d=r(u),p=n(1064),f=r(p),h=n(154),m=n(390),_=n(522),M=(0,s.default)("calypso:notices");n(1068);var g=o.default.createClass({displayName:"NoticesList",propTypes:{id:o.default.PropTypes.string,notices:o.default.PropTypes.oneOfType([o.default.PropTypes.object,o.default.PropTypes.array])},getDefaultProps:function(){return{id:"overlay-notices",notices:Object.freeze([])}},componentWillMount:function(){M("Mounting Global Notices React component.")},removeNotice:function(e){e&&f.default.removeNotice(e)},render:function(){var e=this.props.notices[this.props.id]||[],t=e.map(function(e,t){return o.default.createElement(l.default,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.removeNotice.bind(this,e),showDismiss:e.showDismiss},e.button&&o.default.createElement(d.default,{href:e.href,onClick:e.onClick},e.button))},this);return t=t.concat(this.props.storeNotices.map(function(e,t){return o.default.createElement(l.default,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.props.removeNotice.bind(this,e.noticeId),text:e.text})},this)),t.length?o.default.createElement("div",{id:this.props.id,className:"global-notices"},t):null}});t.default=(0,h.connect)(function(e){return{storeNotices:e.globalNotices}},function(e){return(0,m.bindActionCreators)({removeNotice:_.removeNotice},e)})(g),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(725)("calypso:notices"),a=n(1065);r("initializing notices");var o={containerNames:{}};a(o);var i=[];n(1066);var s={new:function(e,t,n){var a=t.overlay?"overlay-notices":"notices";o.containerNames[a]=a,r("creating notice",e,t,n),o[a]=[];var c={type:t.type||"message",status:n,text:e,duration:t.duration,container:a,button:t.button,href:t.href,onClick:function(e){if("function"==typeof t.onClick){var n=s.removeNotice.bind(s,c);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?i.push(c):o[a].push(c),o.emit("change"),c},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:o,removeNotice:function(e){if(e.container){var t=o[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),o.emit("change"))}},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");var n,a,s=!1,c=function(e){return e.persistent};for(a in o.containerNames)n=o[a].length,o[a]=o[a].filter(c),n!==o[a].length&&(s=!0);i.length&&(i.forEach(function(e){o[e.container]=[],o[e.container].push(e)}),i=[]),s&&o.emit("change"),t()},clearNotices:function(e){o[e]=[],o.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.default=s,e.exports=t.default},function(e,t,n){"use strict";var r=n(650).EventEmitter,a=n(276);e.exports=function(e){a(e,r.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},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(142),o=r(a),i=n(154),s=n(524),c=n(880),l=r(c),u=n(398),d=n(741),p=n(884),f=r(p),h=n(1071),m=r(h),_=o.default.createClass({displayName:"JetpackStateNotices",getInitialState:function(){return{showNotice:!0}},dismissJetpackStateNotice:function(){this.setState({showNotice:!1})},getErrorFromKey:function(e){var t=this.props.jetpackStateNoticesErrorDescription||!1,n="";switch(e){case"cheatin":n=(0,s.translate)("Cheatin' uh?");break;case"access_denied":n=(0,s.translate)("{{p}}Would you mind telling us why you did not complete the Jetpack connection in this {{a}}2 question survey{{/a}}?{{/p}}{{p}}A Jetpack connection is required for our free security and traffic features to work.{{/p}}",{components:{a:o.default.createElement("a",{href:"https://jetpack.com/cancelled-connection/",target:"_blank",rel:"noopener noreferrer"}),p:o.default.createElement("p",null)}});break;case"wrong_state":n=(0,s.translate)("You need to stay logged in to your WordPress blog while you authorize Jetpack.");break;case"invalid_client":n=(0,s.translate)("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.");break;case"invalid_grant":n=(0,
40
s.translate)('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.');break;case"site_inaccessible":case"site_requires_authorization":n=(0,s.translate)("Your website needs to be publicly accessible to use Jetpack: %(error_key)s",{args:{error_key:e}});break;case"not_public":n=(0,s.translate)("{{s}}Your Jetpack has a glitch.{{/s}} Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).",{components:{s:o.default.createElement("strong",null)}});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=(0,s.translate)("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.");break;case"register_http_request_failed":case"token_http_request_failed":n=(0,s.translate)("Jetpack could not contact WordPress.com: %(error_key)s. This usually means something is incorrectly configured on your web host.",{args:{error_key:e}});break;case"no_role":case"no_cap":case"no_code":case"no_state":case"invalid_state":case"invalid_request":case"invalid_scope":case"unsupported_response_type":case"invalid_token":case"no_token":case"missing_secrets":case"home_missing":case"siteurl_missing":case"gmt_offset_missing":case"site_name_missing":case"secret_1_missing":case"secret_2_missing":case"site_lang_missing":case"home_malformed":case"siteurl_malformed":case"gmt_offset_malformed":case"timezone_string_malformed":case"site_name_malformed":case"secret_1_malformed":case"secret_2_malformed":case"site_lang_malformed":case"secrets_mismatch":case"verify_secret_1_missing":case"verify_secret_1_malformed":case"verify_secrets_missing":case"verify_secrets_mismatch":n=(0,s.translate)("{{s}}Your Jetpack has a glitch.{{/s}} We're sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %(error_key)s",{components:{s:o.default.createElement("strong",null)},args:{error_key:e}});break;default:n=e}return t?o.default.createElement("div",null,n,o.default.createElement("br",null),t):o.default.createElement("div",null,n)},getMessageFromKey:function(e){var t="",n="is-info",r=void 0;switch(e){case"modules_activated":t=(0,s.translate)("Welcome to {{s}}Jetpack %(jetpack_version)s{{/s}}!",{args:{jetpack_version:this.props.currentVersion},components:{s:o.default.createElement("strong",null)}});break;case"already_authorized":t=(0,s.translate)("Your Jetpack is already connected."),n="is-success";break;case"authorized":t=(0,s.translate)("You're fueled up and ready to go, Jetpack is now active."),n="is-success";break;case"linked":t=(0,s.translate)("You're fueled up and ready to go."),n="is-success";break;case"protect_misconfigured_ip":t=(0,s.translate)("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site."),n="is-info",r=o.default.createElement(f.default,{href:"https://jetpack.com/support/security/troubleshooting-protect/"},(0,s.translate)("Learn More"));break;default:t=e}return[t,n,r]},renderContent:function(){var e="is-info",t="",n=void 0,r=this.props.jetpackStateNoticesErrorCode,a=this.props.jetpackStateNoticesMessageCode;if(r||a){if(r&&(t=this.getErrorFromKey(r),"access_denied"!==r&&(e="is-error")),"modules_activated"===a&&"5.2.1"===this.props.currentVersion)return o.default.createElement(m.default,{dismiss:this.dismissJetpackStateNotice,adminUrl:this.props.adminUrl});if(a){var i=this.getMessageFromKey(a);t=i[0],e=i[1],n=i[2]}return o.default.createElement(l.default,{status:e,onDismissClick:this.dismissJetpackStateNotice,text:t},n)}},render:function(){return o.default.createElement("div",null,this.state.showNotice?this.renderContent():null)}});t.default=(0,i.connect)(function(e){return{currentVersion:(0,u.getCurrentVersion)(e),jetpackStateNoticesErrorCode:(0,d.getJetpackStateNoticesErrorCode)(e),jetpackStateNoticesMessageCode:(0,d.getJetpackStateNoticesMessageCode)(e),jetpackStateNoticesErrorDescription:(0,d.getJetpackStateNoticesErrorDescription)(e),adminUrl:(0,u.getSiteAdminUrl)(e)}})(_),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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(755),g=r(M),v=n(1072),b=r(v),y=n(983),A=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("With this release, your contact form just got a bit sweeter. We moved the big old button right down into your editor's toolbar on the right. Yes, it's a little smaller, but it fits in a bit better, don't you think? Oh and all your forms now have a preview that can be edited all right inside the editor.")),m.default.createElement("img",{src:y.imagePath+"cf-ss.png",alt:(0,_.translate)("Contact Form screen shot")}),m.default.createElement("p",null,(0,_.translate)("To use it, just open up a post or page to the visual editor. From there, you'll find a button inside the toolbar with an icon that looks a bit like the contact form. It is usually furthest to the right. Then just click the button and, voila, a contact form has been created!")),m.default.createElement("p",null,(0,_.translate)("You will likely want to customize it to properly encourage folks to contact you. To do that, simply select the contact form preview and then click or tap the edit button. It's the one that looks like a pencil.")),m.default.createElement("div",{className:"jp-dialogue__cta-container"},m.default.createElement(g.default,{primary:!0,href:this.props.adminUrl+"post-new.php"},(0,_.translate)("Try it out!")),m.default.createElement("p",{className:"jp-dialogue__note"},m.default.createElement("a",{href:"https://jetpack.com/?p=22509"},(0,_.translate)("Read the full release post")))))}},{key:"render",value:function(){return m.default.createElement(b.default,{svg:m.default.createElement("img",{src:y.imagePath+"people-around-page.svg",width:"250",alt:(0,_.translate)("People around page")}),title:(0,_.translate)("A new contact form is here at last!"),content:this.renderInnerContent(),dismiss:this.props.dismiss})}}]),t}(h.Component);b.default.propTypes={dismiss:m.default.PropTypes.func},t.default=A,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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(874),g=r(M),v=n(757),b=r(v),y=n(839),A=r(y),E=n(792),T=r(E),L=n(881),w=r(L),k=n(983),S=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=(0,A.default)(this.props.className,"jp-dialogue");return m.default.createElement("div",{className:"jp-dialogue-full__container"},m.default.createElement("img",{src:k.imagePath+"stars-full.svg",width:"60",height:"60",alt:(0,_.translate)("Stars"),className:"jp-jumpstart-full__svg-stars"}),m.default.createElement("img",{src:k.imagePath+"jupiter.svg",width:"50",height:"100",alt:(0,_.translate)("Jupiter"),className:"jp-jumpstart-full__svg-jupiter"}),this.props.showDismiss&&m.default.createElement(T.default,{icon:"cross-small",className:"jp-dialogue-full__dismiss",tabIndex:"0",onKeyDown:(0,w.default)(this.props.dismiss),onClick:this.props.dismiss}),m.default.createElement("div",{className:e},this.props.svg,m.default.createElement("h1",{className:"jp-dialogue__title"},this.props.title),m.default.createElement(g.default,null,this.props.content),m.default.createElement("div",null,this.props.belowContent)))}}]),t}(h.Component);S.propTypes={content:m.default.PropTypes.oneOfType([m.default.PropTypes.string,m.default.PropTypes.object]).isRequired,belowContent:m.default.PropTypes.oneOfType([m.default.PropTypes.string,m.default.PropTypes.object]).isRequired,svg:m.default.PropTypes.oneOfType([m.default.PropTypes.bool,m.default.PropTypes.object]),dismissOnClick:m.default.PropTypes.func,showDismiss:m.default.PropTypes.bool,title:m.default.PropTypes.string},S.defaultProps={svg:!1,showDismiss:!0,dismiss:b.default,content:"",belowContent:"",title:""},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(142),o=r(a),i=n(166),s=n(154),c=n(880),l=r(c),u=n(524),d=n(741),p=o.default.createClass({displayName:"DismissableNotices",renderNotices:function(){var e=this.props.jetpackNotices;switch(e){case"disconnected":return!this.props.isDismissed(e)&&o.default.createElement("div",null,o.default.createElement(l.default,{onDismissClick:this.props.dismissJetpackActionNotice.bind(null,e)},(0,u.translate)("You have successfully disconnected Jetpack"),o.default.createElement("br",null),(0,u.translate)("Would you tell us why? Just {{a}}answering two simple questions{{/a}} would help us improve Jetpack.",{components:{a:o.default.createElement("a",{href:"https://jetpack.com/survey-disconnected/",target:"_blank",rel:"noopener noreferrer"})}})));default:return!1}},render:function(){return o.default.createElement("div",null,this.renderNotices())}});t.default=(0,s.connect)(function(e){return{jetpackNotices:(0,d.getJetpackNotices)(e),isDismissed:function(t){return(0,d.isNoticeDismissed)(e,t)}}},function(e){return(0,i.bindActionCreators)({dismissJetpackActionNotice:d.dismissJetpackActionNotice},e)})(p),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(142),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=a.default.createClass({displayName:"AdminNotices",componentDidMount:function(){var e=jQuery(this.refs.adminNotices),t=jQuery(".vp-notice");t.length>0&&t.each(function(){var t=jQuery(this).hasClass("vp-registered"),n=t?"is-success":"is-warning",r=jQuery(this).addClass("dops-notice vp-notice-jp "+n).removeClass("wrap vp-notice"),a=t?'<svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></g></svg>':'<svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"></path></g></svg>';r.wrapInner('<span class="dops-notice__content">'),r.find(".dops-notice__content").before(a),r.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),r.find("h3").replaceWith(function(){return jQuery("<strong />",{html:this.innerHTML})}),r.find("p").replaceWith(function(){return jQuery("<div/>",{html:this.innerHTML})}),r.find('a[href*="admin.php?page=vaultpress"]').remove(),r.prependTo(e).css("display","flex")});var n=jQuery(".woocommerce-message");n.length>0&&n.each(function(){var t=jQuery(this).addClass("dops-notice").removeClass("updated wc-connect");t.find(".button-primary").addClass("dops-notice__action").removeClass("button-primary").detach().appendTo(t),t.find("p").not(".submit").wrapAll('<span class="dops-notice__text"/>');var n=t.find(".dops-notice__text");n.find("p").replaceWith(function(){return jQuery("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})}),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)})},render:function(){return a.default.createElement("div",{ref:"adminNotices","aria-live":"polite"})}});t.default=o,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tracker=void 0;var r=n(142),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=n(154),i=n(744),s=t.Tracker=a.default.createClass({displayName:"Tracker",componentWillReceiveProps:function(e){var t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&t("jetpack_wpa_search_term",{term:e.searchTerm})},render:function(){return null}});s.propTypes={analytics:a.default.PropTypes.object,searchTerm:a.default.PropTypes.string},t.default=(0,o.connect)(function(e){return{searchTerm:(0,i.getSearchTerm)(e)}})(s)},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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(154),M=n(872),g=n(724),v=r(g),b=n(735),y=n(729),A=n(1077),E=r(A),T=n(1078),L=r(T),w=n(1079),k=r(w),S=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this));return e.state={planWelcomeDismissed:!1},e.boundDismiss=e.dismissWelcome.bind(e),e}return(0,f.default)(t,e),(0,l.default)(t,[{key:"dismissWelcome",value:function(){var e=(0,M.getPlanClass)(this.props.sitePlan.product_slug);v.default.tracks.recordEvent("jetpack_warm_welcome_plan_dismiss",{planClass:e}),this.setState({planWelcomeDismissed:!0}),this.props.dismiss()}},{key:"render",value:function(){var e=(0,M.getPlanClass)(this.props.sitePlan.product_slug),t={dismiss:this.boundDismiss,siteRawUrl:this.props.siteRawUrl,planClass:e};if(!this.props.newPlanActivated||!this.props.userCanManageModules||this.state.planWelcomeDismissed)return!1;switch(e){case"is-personal-plan":return m.default.createElement(E.default,t);case"is-premium-plan":return m.default.createElement(L.default,t);case"is-business-plan":return m.default.createElement(k.default,t);default:return!1}}}]),t}(h.Component);S.propTypes={dismiss:m.default.PropTypes.func,newPlanActivated:m.default.PropTypes.bool,userCanManageModules:m.default.PropTypes.bool},S.defaultProps={newPlanActivated:!1,userCanManageModules:!1},t.default=(0,_.connect)(function(e){return{sitePlan:(0,b.getSitePlan)(e)}},function(e){return{dismiss:function(){return e((0,y.updateSettings)({show_welcome_for_new_plan:!1}))}}})(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(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(724),g=r(M),v=n(1072),b=r(v),y=n(755),A=r(y),E=n(983),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){g.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("Thanks for choosing a Jetpack Personal plan. Jetpack is now backing up your site and scanning for security threats.")),m.default.createElement("img",{src:E.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Themes")}),m.default.createElement("p",null,(0,_.translate)("With Jetpack Personal, you have access to more than 100 free, professionally-designed WordPress themes. Choose the theme that best fits your site and customize colors, images, or add a variety of new widgets.")),m.default.createElement("img",{src:E.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Sharing")}),m.default.createElement("p",null,(0,_.translate)("Using Jetpack’s powerful Publicize feature and built-in sharing tools, you’ll find new ways to grow your following and increase traffic. Automatically share your newest posts on social media, or allow followers to subscribe via email for your latest content right in their inbox.")),m.default.createElement("img",{src:E.imagePath+"security.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Security")}),m.default.createElement("p",null,(0,_.translate)("Jetpack keeps you safe, too: you’re protected from spam in comments and contact forms, and our brute force login protection prevents hackers from accessing your data. And if something does go wrong, you can restore a backup of your site in a single click.")),m.default.createElement(A.default,{className:"jp-welcome-new-plan__button",href:"#/traffic",onClick:this.props.dismiss,primary:!0},(0,_.translate)("Got it!")))}},{key:"render",value:function(){return m.default.createElement(b.default,{svg:m.default.createElement("img",{src:E.imagePath+"connect-jetpack.svg",width:"160",alt:(0,_.translate)("Welcome personal"),style:{paddingLeft:"60px"}}),title:(0,_.translate)("Your Personal Jetpack plan is powering up!"),content:this.renderInnerContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-personal"})}}]),t}(h.Component);T.propTypes={dismiss:m.default.PropTypes.func},t.default=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});var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(874),g=r(M),v=n(724),b=r(v),y=n(1072),A=r(y),E=n(983),T=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.clickCtaDismissVideo=n.clickCtaDismiss.bind(n,"video"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_click",{planClass:this.props.planClass,cta:e}),this.props.dismiss()}},{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("Thanks for choosing a Jetpack Premium plan. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.")),m.default.createElement("img",{src:E.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Themes")}),m.default.createElement("p",null,(0,_.translate)("With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 200 free themes, or enhance your content with up to 13 GB of HD video -- all hosted free of ads or watermarks.")),m.default.createElement("img",{src:E.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Sharing")}),m.default.createElement("p",null,(0,_.translate)("Using Jetpack’s powerful sharing tools, you can automatically share your newest posts on social media, or schedule your content to be re-shared at any date or time you choose. And along with growing your following, you can grow your business with tools like payment buttons and ads.")),m.default.createElement("img",{src:E.imagePath+"security.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Security")}),m.default.createElement("p",null,(0,_.translate)("Keeping your hard work safe is important, too. Jetpack Premium gives you brute force login protection, automated spam filtering, and malware scanning. You also get daily backups with hassle-free restores, just in case you need them.")),m.default.createElement("p",null,(0,_.translate)("Start exploring Jetpack Premium now to see all the benefits of your new plan.")))}},{key:"renderBelowContent",value:function(){return m.default.createElement("div",null,m.default.createElement(g.default,{href:"#/writing",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissVideo},(0,_.translate)("Enable premium video player")),m.default.createElement(g.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,_.translate)("Monetize your site with ads")))}},{key:"render",value:function(){return m.default.createElement(A.default,{svg:m.default.createElement("img",{src:E.imagePath+"generating-cash-2.svg",width:"250",alt:(0,_.translate)("Welcome Premium")}),title:(0,_.translate)("Your Premium Jetpack plan is powering up!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-premium"})}}]),t}(h.Component);T.propTypes={dismiss:m.default.PropTypes.func},t.default=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});var a=n(493),o=r(a),i=n(497),s=r(i),c=n(831),l=r(c),u=n(498),d=r(u),p=n(499),f=r(p),h=n(142),m=r(h),_=n(524),M=n(874),g=r(M),v=n(724),b=r(v),y=n(1072),A=r(y),E=n(983),T=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return n.clickCtaDismissThemes=n.clickCtaDismiss.bind(n,"themes"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n.clickCtaDismissSeo=n.clickCtaDismiss.bind(n,"seo"),n}return(0,f.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){b.default.tracks.recordEvent("jetpack_warm_welcome_plan_click",{planClass:this.props.planClass,cta:e}),this.props.dismiss()}},{key:"renderInnerContent",value:function(){return m.default.createElement("div",null,m.default.createElement("p",null,(0,_.translate)("Thanks for choosing a Jetpack Professional plan. Jetpack is now backing up your content, scanning for security threats, and granting access to premium themes.")),m.default.createElement("img",{src:E.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Themes")}),m.default.createElement("p",null,(0,_.translate)("With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 100 premium themes. Customize your content with a variety of widgets, or add unlimited videos to your posts and pages -- displayed free of ads or watermarks.")),m.default.createElement("img",{src:E.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Sharing")}),m.default.createElement("p",null,(0,_.translate)("Growing your following is easy with your Professional plan, thanks to content sharing and scheduling, SEO tools, and built-in subscription options. You can monetize your site with a simple payment button and in-line ads, and monitor the success of your efforts by integrating with Google Analytics.")),m.default.createElement("img",{src:E.imagePath+"security.svg",className:"jp-welcome__svg",alt:(0,_.translate)("Security")}),m.default.createElement("p",null,(0,_.translate)("Jetpack Professional gives you everything you need to keep your hard work safe, including on-demand backups and malware scans with one-click restores and issue resolution. Your site will be fully protected against spam, malicious code, and brute force login attempts.")),m.default.createElement("p",null,(0,_.translate)("Start exploring Jetpack Professional now to see all the benefits of your new plan.")))}},{key:"renderBelowContent",value:function(){return m.default.createElement("div",null,m.default.createElement(g.default,{href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissThemes},(0,_.translate)("Install premium themes")),m.default.createElement(g.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,_.translate)("Monetize your site with ads")),m.default.createElement(g.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissSeo},(0,_.translate)("Review SEO features")))}},{key:"render",value:function(){return m.default.createElement(A.default,{svg:m.default.createElement("img",{src:E.imagePath+"people-around-page.svg",width:"250",alt:(0,_.translate)("Welcome Professional")}),title:(0,_.translate)("Your Professional Jetpack plan is taking care of business!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-professional"})}}]),t}(h.Component);T.propTypes={dismiss:m.default.PropTypes.func},t.default=T,e.exports=t.default}]);
_inc/jetpack-strings.php CHANGED
@@ -18,6 +18,9 @@ __( "Disconnecting Jetpack", "jetpack" ), // _inc/client/state/connection/action
18
__( "Options failed to reset.", "jetpack" ), // _inc/client/state/dev-version/actions.js:40
19
__( "Options reset.", "jetpack" ), // _inc/client/state/dev-version/actions.js:33
20
__( "Resetting Jetpack options…", "jetpack" ), // _inc/client/state/dev-version/actions.js:27
21
__( "Error regenerating %(slug)s address. %(error)s", "jetpack" ), // _inc/client/state/modules/actions.js:299
22
__( "Regenerated %(slug)s address .", "jetpack" ), // _inc/client/state/modules/actions.js:281
23
__( "Updating %(slug)s address…", "jetpack" ), // _inc/client/state/modules/actions.js:261
@@ -30,9 +33,6 @@ __( "Deactivating %(slug)s…", "jetpack" ), // _inc/client/state/modules/action
30
__( "%(slug)s failed to activate. %(error)s", "jetpack" ), // _inc/client/state/modules/actions.js:117
31
__( "%(slug)s has been activated.", "jetpack" ), // _inc/client/state/modules/actions.js:97
32
__( "Activating %(slug)s…", "jetpack" ), // _inc/client/state/modules/actions.js:81
33
- __( "Recommended features failed to activate. %(error)s", "jetpack" ), // _inc/client/state/jumpstart/actions.js:49
34
- __( "Recommended features active.", "jetpack" ), // _inc/client/state/jumpstart/actions.js:38
35
- __( "Activating recommended features…", "jetpack" ), // _inc/client/state/jumpstart/actions.js:30
36
__( "Updated settings. Refreshing page…", "jetpack" ), // _inc/client/state/settings/actions.js:115
37
__( "Error regenerating Post by Email address. %(error)s", "jetpack" ), // _inc/client/state/settings/actions.js:99
38
__( "Regenerated Post by Email address.", "jetpack" ), // _inc/client/state/settings/actions.js:98
@@ -108,15 +108,6 @@ __( "Show a \"follow comments\" option in the comment form", "jetpack" ), // _in
108
__( "Show a \"follow blog\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:93
109
__( "Connect your user account to WordPress.com to view your email followers", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:64
110
__( "View your Email Followers", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:63
111
- _x( "Set up", "Caption for a button to set up a feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:131
112
- __( "ACTIVE", "jetpack" ), // _inc/client/pro-status/index.jsx:98
113
- _x( "Invalid key", "Short warning message about an invalid key being used for Akismet.", "jetpack" ), // _inc/client/pro-status/index.jsx:94
114
- _x( "Secure", "Short message informing user that the site is secure.", "jetpack" ), // _inc/client/pro-status/index.jsx:90
115
- _x( "Upgrade", "Caption for a button to purchase a paid feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:85
116
- _x( "No scanning", "Short warning message about site having no security scan.", "jetpack" ), // _inc/client/pro-status/index.jsx:83
117
- _x( "FIX", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:74
118
- _x( "Threats found!", "Short warning message about new threats found.", "jetpack" ), // _inc/client/pro-status/index.jsx:73
119
- _x( "Threats", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:71
120
__( "Compare Plans", "jetpack" ), // _inc/client/plans/plan-body.jsx:399
121
__( "We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible. ", "jetpack" ), // _inc/client/plans/plan-body.jsx:392
122
__( "Enjoy priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:391
@@ -203,7 +194,18 @@ __( "For less than the price of a coffee a month you can rest easy knowing your
203
__( "How much is your website worth?", "jetpack" ), // _inc/client/plans/plan-header.jsx:42
204
__( "Jetpack Personal keeps your data, site, and hard work safe.", "jetpack" ), // _inc/client/plans/plan-header.jsx:38
205
__( "Introducing our most affordable backups and security plan yet", "jetpack" ), // _inc/client/plans/plan-header.jsx:35
206
__( "Activate", "jetpack" ), // _inc/client/searchable-modules/index.jsx:71
207
__( "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.", "jetpack" ), // _inc/client/security/antispam.jsx:149
208
__( "Your API key", "jetpack" ), // _inc/client/security/antispam.jsx:143
209
_x( "Spam filtering", "Settings header", "jetpack" ), // _inc/client/security/antispam.jsx:135
@@ -236,14 +238,12 @@ _x( "Brute force attack protection", "Settings header", "jetpack" ), // _inc/cli
236
__( "Require accounts to use WordPress.com Two-Step Authentication", "jetpack" ), // _inc/client/security/sso.jsx:94
237
__( "Match accounts using email addresses", "jetpack" ), // _inc/client/security/sso.jsx:81
238
_x( "WordPress.com log in", "Settings header", "jetpack" ), // _inc/client/security/sso.jsx:56
239
- __( "Enter a search term to find settings or close search.", "jetpack" ), // _inc/client/settings/index.jsx:38
240
- __( "No search results found for %(term)s", "jetpack" ), // _inc/client/settings/index.jsx:30
241
__( "Allow readers to show their appreciation of your posts by adding a like button to your content", "jetpack" ), // _inc/client/sharing/likes.jsx:34
242
_x( "Like buttons", "Settings header", "jetpack" ), // _inc/client/sharing/likes.jsx:24
243
- __( "Automatically share your posts to social networks", "jetpack" ), // _inc/client/sharing/publicize.jsx:72
244
- _x( "Publicize connections", "Settings header", "jetpack" ), // _inc/client/sharing/publicize.jsx:61
245
- __( "Connect your user account to WordPress.com to use this feature", "jetpack" ), // _inc/client/sharing/publicize.jsx:53
246
- __( "Connect your social media accounts", "jetpack" ), // _inc/client/sharing/publicize.jsx:45
247
__( "Add sharing buttons to your posts", "jetpack" ), // _inc/client/sharing/share-buttons.jsx:59
248
_x( "Sharing buttons", "Settings header", "jetpack" ), // _inc/client/sharing/share-buttons.jsx:49
249
__( "Connect your user account to WordPress.com to use this feature", "jetpack" ), // _inc/client/sharing/share-buttons.jsx:43
@@ -304,7 +304,8 @@ __( "Bing", "jetpack" ), // _inc/client/traffic/verification-services.jsx:99
304
__( "Google", "jetpack" ), // _inc/client/traffic/verification-services.jsx:94
305
__( "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}}.", "jetpack" ), // _inc/client/traffic/verification-services.jsx:51
306
__( "Activate", "jetpack" ), // _inc/client/traffic/verification-services.jsx:34
307
- _x( "Composing", "Settings header", "jetpack" ), // _inc/client/writing/composing.jsx:242
308
__( "Add a phrase", "jetpack" ), // _inc/client/writing/composing.jsx:149
309
__( "Ignored Phrases", "jetpack" ), // _inc/client/writing/composing.jsx:144
310
__( "Redundant Phrases", "jetpack" ), // _inc/client/writing/composing.jsx:140
@@ -398,8 +399,6 @@ __( "Settings", "jetpack" ), // _inc/client/components/dash-item/index.jsx:95
398
__( "Active", "jetpack" ), // _inc/client/components/dash-item/index.jsx:84
399
_x( "Updates needed", "Short warning message", "jetpack" ), // _inc/client/components/dash-item/index.jsx:78
400
_x( "Settings", "Noun. Displayed to screen readers.", "jetpack" ), // _inc/client/components/dash-section-header/index.jsx:52
401
- __( "Save Settings", "jetpack" ), // _inc/client/components/forms/index.jsx:143
402
- __( "Saving…", "jetpack" ), // _inc/client/components/forms/index.jsx:143
403
_x( "Privacy", "Shorthand for Privacy Policy.", "jetpack" ), // _inc/client/components/footer/index.jsx:174
404
__( "Automattic's Privacy Policy", "jetpack" ), // _inc/client/components/footer/index.jsx:172
405
_x( "Terms", "Shorthand for Terms of Service.", "jetpack" ), // _inc/client/components/footer/index.jsx:163
@@ -410,8 +409,8 @@ _x( "Debug", "Navigation item. Noun. Links to a debugger tool for Jetpack.", "je
410
__( "Test your site’s compatibility with Jetpack.", "jetpack" ), // _inc/client/components/footer/index.jsx:97
411
_x( "Reset Options (dev only)", "Navigation item.", "jetpack" ), // _inc/client/components/footer/index.jsx:82
412
__( "This will reset all Jetpack options, are you sure?", "jetpack" ), // _inc/client/components/footer/index.jsx:32
413
- __( "Jupiter", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:27
414
- __( "Stars", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:26
415
__( "No account? Create one for free", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:204
416
__( "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.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:196
417
__( "Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous imagery super fast. Optimized for any device, and its completely free.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:181
@@ -443,6 +442,8 @@ __( "Drive more traffic to your site", "jetpack" ), // _inc/client/components/je
443
__( "No account? Create one for free", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:35
444
__( "Please connect to or create a WordPress.com account to start using Jetpack. This will enable powerful security, traffic, and customization services.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:30
445
__( "Welcome to Jetpack", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:25
446
__( "Read more about Jetpack benefits", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:188
447
_x( "Disconnect", "A caption for a button to disconnect.", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:181
448
_x( "Stay connected", "A caption for a button to cancel disconnection.", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:173
18
__( "Options failed to reset.", "jetpack" ), // _inc/client/state/dev-version/actions.js:40
19
__( "Options reset.", "jetpack" ), // _inc/client/state/dev-version/actions.js:33
20
__( "Resetting Jetpack options…", "jetpack" ), // _inc/client/state/dev-version/actions.js:27
21
+ __( "Recommended features failed to activate. %(error)s", "jetpack" ), // _inc/client/state/jumpstart/actions.js:49
22
+ __( "Recommended features active.", "jetpack" ), // _inc/client/state/jumpstart/actions.js:38
23
+ __( "Activating recommended features…", "jetpack" ), // _inc/client/state/jumpstart/actions.js:30
24
__( "Error regenerating %(slug)s address. %(error)s", "jetpack" ), // _inc/client/state/modules/actions.js:299
25
__( "Regenerated %(slug)s address .", "jetpack" ), // _inc/client/state/modules/actions.js:281
26
__( "Updating %(slug)s address…", "jetpack" ), // _inc/client/state/modules/actions.js:261
33
__( "%(slug)s failed to activate. %(error)s", "jetpack" ), // _inc/client/state/modules/actions.js:117
34
__( "%(slug)s has been activated.", "jetpack" ), // _inc/client/state/modules/actions.js:97
35
__( "Activating %(slug)s…", "jetpack" ), // _inc/client/state/modules/actions.js:81
36
__( "Updated settings. Refreshing page…", "jetpack" ), // _inc/client/state/settings/actions.js:115
37
__( "Error regenerating Post by Email address. %(error)s", "jetpack" ), // _inc/client/state/settings/actions.js:99
38
__( "Regenerated Post by Email address.", "jetpack" ), // _inc/client/state/settings/actions.js:98
108
__( "Show a \"follow blog\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:93
109
__( "Connect your user account to WordPress.com to view your email followers", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:64
110
__( "View your Email Followers", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:63
111
__( "Compare Plans", "jetpack" ), // _inc/client/plans/plan-body.jsx:399
112
__( "We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible. ", "jetpack" ), // _inc/client/plans/plan-body.jsx:392
113
__( "Enjoy priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:391
194
__( "How much is your website worth?", "jetpack" ), // _inc/client/plans/plan-header.jsx:42
195
__( "Jetpack Personal keeps your data, site, and hard work safe.", "jetpack" ), // _inc/client/plans/plan-header.jsx:38
196
__( "Introducing our most affordable backups and security plan yet", "jetpack" ), // _inc/client/plans/plan-header.jsx:35
197
+ _x( "Set up", "Caption for a button to set up a feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:131
198
+ __( "ACTIVE", "jetpack" ), // _inc/client/pro-status/index.jsx:98
199
+ _x( "Invalid key", "Short warning message about an invalid key being used for Akismet.", "jetpack" ), // _inc/client/pro-status/index.jsx:94
200
+ _x( "Secure", "Short message informing user that the site is secure.", "jetpack" ), // _inc/client/pro-status/index.jsx:90
201
+ _x( "Upgrade", "Caption for a button to purchase a paid feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:85
202
+ _x( "No scanning", "Short warning message about site having no security scan.", "jetpack" ), // _inc/client/pro-status/index.jsx:83
203
+ _x( "FIX", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:74
204
+ _x( "Threats found!", "Short warning message about new threats found.", "jetpack" ), // _inc/client/pro-status/index.jsx:73
205
+ _x( "Threats", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:71
206
__( "Activate", "jetpack" ), // _inc/client/searchable-modules/index.jsx:71
207
+ __( "Enter a search term to find settings or close search.", "jetpack" ), // _inc/client/settings/index.jsx:38
208
+ __( "No search results found for %(term)s", "jetpack" ), // _inc/client/settings/index.jsx:30
209
__( "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.", "jetpack" ), // _inc/client/security/antispam.jsx:149
210
__( "Your API key", "jetpack" ), // _inc/client/security/antispam.jsx:143
211
_x( "Spam filtering", "Settings header", "jetpack" ), // _inc/client/security/antispam.jsx:135
238
__( "Require accounts to use WordPress.com Two-Step Authentication", "jetpack" ), // _inc/client/security/sso.jsx:94
239
__( "Match accounts using email addresses", "jetpack" ), // _inc/client/security/sso.jsx:81
240
_x( "WordPress.com log in", "Settings header", "jetpack" ), // _inc/client/security/sso.jsx:56
241
__( "Allow readers to show their appreciation of your posts by adding a like button to your content", "jetpack" ), // _inc/client/sharing/likes.jsx:34
242
_x( "Like buttons", "Settings header", "jetpack" ), // _inc/client/sharing/likes.jsx:24
243
+ __( "Automatically share your posts to social networks", "jetpack" ), // _inc/client/sharing/publicize.jsx:81
244
+ _x( "Publicize connections", "Settings header", "jetpack" ), // _inc/client/sharing/publicize.jsx:66
245
+ __( "Connect your user account to WordPress.com to use this feature", "jetpack" ), // _inc/client/sharing/publicize.jsx:54
246
+ __( "Connect your social media accounts", "jetpack" ), // _inc/client/sharing/publicize.jsx:46
247
__( "Add sharing buttons to your posts", "jetpack" ), // _inc/client/sharing/share-buttons.jsx:59
248
_x( "Sharing buttons", "Settings header", "jetpack" ), // _inc/client/sharing/share-buttons.jsx:49
249
__( "Connect your user account to WordPress.com to use this feature", "jetpack" ), // _inc/client/sharing/share-buttons.jsx:43
304
__( "Google", "jetpack" ), // _inc/client/traffic/verification-services.jsx:94
305
__( "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}}.", "jetpack" ), // _inc/client/traffic/verification-services.jsx:51
306
__( "Activate", "jetpack" ), // _inc/client/traffic/verification-services.jsx:34
307
+ _x( "Composing", "Settings header", "jetpack" ), // _inc/client/writing/composing.jsx:245
308
+ __( "Confirm each new phrase you add by pressing enter.", "jetpack" ), // _inc/client/writing/composing.jsx:157
309
__( "Add a phrase", "jetpack" ), // _inc/client/writing/composing.jsx:149
310
__( "Ignored Phrases", "jetpack" ), // _inc/client/writing/composing.jsx:144
311
__( "Redundant Phrases", "jetpack" ), // _inc/client/writing/composing.jsx:140
399
__( "Active", "jetpack" ), // _inc/client/components/dash-item/index.jsx:84
400
_x( "Updates needed", "Short warning message", "jetpack" ), // _inc/client/components/dash-item/index.jsx:78
401
_x( "Settings", "Noun. Displayed to screen readers.", "jetpack" ), // _inc/client/components/dash-section-header/index.jsx:52
402
_x( "Privacy", "Shorthand for Privacy Policy.", "jetpack" ), // _inc/client/components/footer/index.jsx:174
403
__( "Automattic's Privacy Policy", "jetpack" ), // _inc/client/components/footer/index.jsx:172
404
_x( "Terms", "Shorthand for Terms of Service.", "jetpack" ), // _inc/client/components/footer/index.jsx:163
409
__( "Test your site’s compatibility with Jetpack.", "jetpack" ), // _inc/client/components/footer/index.jsx:97
410
_x( "Reset Options (dev only)", "Navigation item.", "jetpack" ), // _inc/client/components/footer/index.jsx:82
411
__( "This will reset all Jetpack options, are you sure?", "jetpack" ), // _inc/client/components/footer/index.jsx:32
412
+ __( "Save Settings", "jetpack" ), // _inc/client/components/forms/index.jsx:143
413
+ __( "Saving…", "jetpack" ), // _inc/client/components/forms/index.jsx:143
414
__( "No account? Create one for free", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:204
415
__( "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.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:196
416
__( "Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous imagery super fast. Optimized for any device, and its completely free.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:181
442
__( "No account? Create one for free", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:35
443
__( "Please connect to or create a WordPress.com account to start using Jetpack. This will enable powerful security, traffic, and customization services.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:30
444
__( "Welcome to Jetpack", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:25
445
+ __( "Jupiter", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:27
446
+ __( "Stars", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:26
447
__( "Read more about Jetpack benefits", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:188
448
_x( "Disconnect", "A caption for a button to disconnect.", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:181
449
_x( "Stay connected", "A caption for a button to cancel disconnection.", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:173
_inc/lib/class.core-rest-api-endpoints.php CHANGED
@@ -2447,7 +2447,7 @@ class Jetpack_Core_Json_Api_Endpoints {
2447
unset( $options[ $key ]['validate_callback'] );
2448
}
2449
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : '';
2450
- if ( ! isset( $options[ $key ]['current_value'] ) ) {
2451
$options[ $key ]['current_value'] = self::cast_value( $default_value, $options[ $key ] );
2452
}
2453
}
2447
unset( $options[ $key ]['validate_callback'] );
2448
}
2449
$default_value = isset( $options[ $key ]['default'] ) ? $options[ $key ]['default'] : '';
2450
+ if ( ! array_key_exists( 'current_value', $options[ $key ] ) ) {
2451
$options[ $key ]['current_value'] = self::cast_value( $default_value, $options[ $key ] );
2452
}
2453
}
functions.gallery.php CHANGED
@@ -26,6 +26,26 @@ class Jetpack_Gallery_Settings {
26
add_action( 'wp_enqueue_media', array( $this, 'wp_enqueue_media' ) );
27
add_action( 'print_media_templates', array( $this, 'print_media_templates' ) );
28
}
29
}
30
31
/**
26
add_action( 'wp_enqueue_media', array( $this, 'wp_enqueue_media' ) );
27
add_action( 'print_media_templates', array( $this, 'print_media_templates' ) );
28
}
29
+ // Add Slideshow and Galleries functionality to core's media gallery widget.
30
+ add_filter( 'widget_media_gallery_instance_schema', array( $this, 'core_media_widget_compat' ) );
31
+ }
32
+
33
+ /**
34
+ * Updates the schema of the core gallery widget so we can save the
35
+ * fields that we add to Gallery Widgets, like `type` and `conditions`
36
+ *
37
+ * @param $schema The current schema for the core gallery widget
38
+ *
39
+ * @return array the updated schema
40
+ */
41
+ public function core_media_widget_compat( $schema ) {
42
+ $schema['type'] = array(
43
+ 'type' => 'string',
44
+ 'enum' => array_keys( $this->gallery_types ),
45
+ 'description' => __( 'Type of gallery.', 'jetpack' ),
46
+ 'default' => 'default',
47
+ );
48
+ return $schema;
49
}
50
51
/**
jetpack.php CHANGED
@@ -5,7 +5,7 @@
5
* Plugin URI: https://jetpack.com
6
* Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
7
* Author: Automattic
8
- * Version: 5.5-beta3
9
* Author URI: https://jetpack.com
10
* License: GPL2+
11
* Text Domain: jetpack
@@ -14,7 +14,7 @@
14
15
define( 'JETPACK__MINIMUM_WP_VERSION', '4.7' );
16
17
- define( 'JETPACK__VERSION', '5.5-beta3' );
18
define( 'JETPACK_MASTER_USER', true );
19
define( 'JETPACK__API_VERSION', 1 );
20
define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
5
* Plugin URI: https://jetpack.com
6
* Description: Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
7
* Author: Automattic
8
+ * Version: 5.5
9
* Author URI: https://jetpack.com
10
* License: GPL2+
11
* Text Domain: jetpack
14
15
define( 'JETPACK__MINIMUM_WP_VERSION', '4.7' );
16
17
+ define( 'JETPACK__VERSION', '5.5' );
18
define( 'JETPACK_MASTER_USER', true );
19
define( 'JETPACK__API_VERSION', 1 );
20
define( 'JETPACK__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
languages/json/jetpack-ar.json CHANGED
@@ -1 +1 @@
1
- {"":{"po-revision-date":"2017-01-29 03:22:02+0000","mime-version":"1.0","content-type":"text/plain; charset=UTF-8","content-transfer-encoding":"8bit","plural-forms":"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;","x-generator":"GlotPress/2.4.0-alpha","language":"ar","project-id-version":"Plugins - Jetpack by WordPress.com - Development (trunk)"},"Thanks for choosing a Jetpack Professional plan. Jetpack is now backing up your content, scanning for security threats, and granting access to premium themes.":[null,""],"With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 100 premium themes. Customize your content with a variety of widgets, or add unlimited videos to your posts and pages -- displayed free of ads or watermarks.":[null,""],"Growing your following is easy with your Professional plan, thanks to content sharing and scheduling, SEO tools, and built-in subscription options. You can monetize your site with a simple payment button and in-line ads, and monitor the success of your efforts by integrating with Google Analytics.":[null,""],"Jetpack Professional gives you everything you need to keep your hard work safe, including on-demand backups and malware scans with one-click restores and issue resolution. Your site will be fully protected against spam, malicious code, and brute force login attempts.":[null,""],"Start exploring Jetpack Professional now to see all the benefits of your new plan.":[null,""],"Install premium themes":[null,""],"Review SEO features":[null,""],"Welcome Professional":[null,""],"Your Professional Jetpack plan is taking care of business!":[null,""],"Thanks for choosing a Jetpack Premium plan. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.":[null,""],"With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 200 free themes, or enhance your content with up to 13 GB of HD video -- all hosted free of ads or watermarks.":[null,""],"Using Jetpack’s powerful sharing tools, you can automatically share your newest posts on social media, or schedule your content to be re-shared at any date or time you choose. And along with growing your following, you can grow your business with tools like payment buttons and ads.":[null,""],"Keeping your hard work safe is important, too. Jetpack Premium gives you brute force login protection, automated spam filtering, and malware scanning. You also get daily backups with hassle-free restores, just in case you need them.":[null,""],"Start exploring Jetpack Premium now to see all the benefits of your new plan.":[null,""],"Enable premium video player":[null,""],"Monetize your site with ads":[null,""],"Welcome Premium":[null,""],"Your Premium Jetpack plan is powering up!":[null,""],"Thanks for choosing a Jetpack Personal plan. Jetpack is now backing up your site and scanning for security threats.":[null,""],"With Jetpack Personal, you have access to more than 100 free, professionally-designed WordPress themes. Choose the theme that best fits your site and customize colors, images, or add a variety of new widgets.":[null,""],"Using Jetpack’s powerful Publicize feature and built-in sharing tools, you’ll find new ways to grow your following and increase traffic. Automatically share your newest posts on social media, or allow followers to subscribe via email for your latest content right in their inbox.":[null,""],"Jetpack keeps you safe, too: you’re protected from spam in comments and contact forms, and our brute force login protection prevents hackers from accessing your data. And if something does go wrong, you can restore a backup of your site in a single click.":[null,""],"Got it!":[null,""],"Welcome personal":[null,""],"Your Personal Jetpack plan is powering up!":[null,""],"Enhanced site-wide search, powered by Elasticsearch (Beta)":[null,""],"Connect your account to get the most out of Jetpack":[null,""],"By connecting your site you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com":[null,""],"Jetpack Stats People":[null,""],"Hello there! Your stats have been activated.":[null,""],"Just give us a little time to collect data so we can display it for you here.":[null,""],"Okay, got it!":[null,""],"Display ads below posts on":[null,""],"Additional ad placements":[null,""],"Top of each page":[null,""],"Second ad below post":[null,""],"Archives":[null,""],"Contact Form screen shot":[null,""],"With this release, your contact form just got a bit sweeter. We moved the big old button right down into your editor's toolbar on the right. Yes, it's a little smaller, but it fits in a bit better, don't you think? Oh and all your forms now have a preview that can be edited all right inside the editor.":[null,""],"To use it, just open up a post or page to the visual editor. From there, you'll find a button inside the toolbar with an icon that looks a bit like the contact form. It is usually furthest to the right. Then just click the button and, voila, a contact form has been created!":[null,""],"You will likely want to customize it to properly encourage folks to contact you. To do that, simply select the contact form preview and then click or tap the edit button. It's the one that looks like a pencil.":[null,""],"Try it out!":[null,""],"Read the full release post":[null,""],"People around page":[null,""],"A new contact form is here at last!":[null,""],"{{subhead}}Only with Jetpack Professional{{/subhead}}{{p}}Protect your site and work with Jetpack Personal: daily automated backups, unlimited storage, and expert priority support. Security essentials for every WordPress site starting from $3.50.{{/p}}{{p}}Or go Pro with more than 200 Premium Themes, business class security, unlimited video hosting, monetization, marketing automation, and SEO tools.{{/p}}":[null,""],"Explore Professional":[null,""],"Compare All Plans":[null,""],"Limited time 50% introductory discount on Jetpack Professional.":[null,""],"Person with laptop":[null,""],"Your Jetpack site is ready to go!":[null,""],"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.":[null,""],"Stars":[null,""],"Jupiter":[null,""],"Welcome to Jetpack Personal":[null,""],"Security essentials (daily backups, spam filtering), and priority support.":[null,""],"Welcome to Jetpack Premium":[null,""],"Enhanced security (backups, scanning, spam filtering), marketing automation (social scheduling, ad program), 13Gb video hosting, and priority support.":[null,""],"Welcome to Jetpack Professional":[null,""],"Unlimited Premium themes, business class security (backups, scanning, spam filtering), marketing automation (social scheduling, SEO tools, ad program), video hosting, and priority support.":[null,""],"Social Media Scheduling":[null,""],"Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.":[null,""],"Schedule Posts":[null,""],"Activate Publicize":[null,""],"Explore Premium and Professional Options":[null,""],"Learn about Jetpack services used by WordPress professionals. On top of the security essentials you currently enjoy, Jetpack offers you:":[null,""],"Business class security: malware scanning, real-time backups, and threat resolution":[null,""],"Social media automation and scheduling":[null,""],"Income generation from a WordPress ad program":[null,""],"Jetpack Professional is the tool used by WordPress professionals. On top of the services you already enjoy, you also benefit from:":[null,""],"Over 200 Premium themes to explore":[null,""],"Business class security: real-time backups and threat resolution":[null,""],"SEO and social media previewing tools":[null,""],"Unlimited ad-free video hosting":[null,""],"Google Analytics integration":[null,""],"Explore Jetpack Professional":[null,""],"Introducing Unlimited Themes":[null,""],"Unlimited Premium Themes":[null,""],"Exclusive hand-crafted designs you will love with dedicated support directly from the themes' authors.":[null,""],"Explore":[null,""],"Your site is backed up.":[null,""],"Image Performance":[null,""],"Get WordPress Apps for every device":[null,""],"Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.":[null,""],"I already use this app.":[null,""],"Create address":[null,""],"Priority support":[null,""],"Add sharing buttons to your posts":[null,""],"Automatically share your posts to social networks":[null,""],"Updating settings…":[null,""],"Updating Post by Email address…":[null,""],"Your paid plan gives you access to prioritized Jetpack support.":[null,""],"You have paid for backups but they're not yet active.":[null,""],"You have paid for backups and security scanning but they’re not yet active.":[null,""],"Click \"Set Up\" to finish installation.":[null,""],"Checking site status…":[null,""],"Pages":[null,""],"We're here to help":[null,""],"Jetpack comes with free, basic support for all users.":[null,""],"Ask a question":[null,""],"Search our support site":[null,""],"Get a faster resolution to your support questions.":[null,""],"Host fast, high-quality, ad-free video.":[null,""],"Generate income with high-quality ads.":[null,""],"Real-time site backups and automatic threat resolution.":[null,""],"Protect against data loss, malware, and malicious attacks.":[null,""],"Integrate easily with Google Analytics.":[null,""],"Help your content get found and shared with SEO tools.":[null,""],"Protect your site from spam.":[null,""],"This site is not connected to WordPress.com. Please ask the site administrator to connect.":[null,""],"Spam filtering":[null,""],"Daily, automated malware scanning":[null,""],"13Gb of high-speed video hosting":[null,""],"Daily, automated backups (unlimited storage)":[null,""],"Daily, automated malware scanning with automated resolution":[null,""],"Unlimited high-speed video hosting":[null,""],"SEO preview tools":[null,""],"Site stats, related content, and sharing tools":[null,""],"Brute force attack protection and uptime monitoring":[null,""],"Unlimited, high-speed image hosting":[null,""],"By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:":[null,""],"Read more about Jetpack benefits":[null,""],"An Automattic Airline":[null,""],"Manage site connection":[null,""],"Connect your account to WordPress.com to view more stats":[null,""],"Theme enhancements":[null,""],"Load more posts using the default theme behavior":[null,""],"Load more posts in page with a button":[null,""],"Load more posts as the reader scrolls down":[null,""],"Theme support required.":[null,""],"Learn more about adding support for Infinite Scroll to your theme.":[null,""],"Use excerpts instead of full posts on front page and archive pages":[null,""],"Show featured images":[null,""],"Must be enabled to use tiled galleries.":[null,""],"Enable the WordPress.com toolbar":[null,""],"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.":[null,""],"Writing tools available to you will be shown here when an administrator enables them.":[null,""],"Portfolios":[null,""],"Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).":[null,""],"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}}.":[null,""],"Bing":[null,""],"Yandex":[null,""],"Generate XML sitemaps":[null,""],"Your sitemap is automatically sent to all major search engines for indexing.":[null,""],"Your site is not currently accessible to search engines. You might have \"Search Engine Visibility\" disabled in your {{a}}Reading Settings{{/a}}.":[null,""],"Collecting valuable traffic stats and insights":[null,""],"The image helps collect stats, but should work when hidden.":[null,""],"Count logged in page views from":[null,""],"Allow stats reports to be viewed by":[null,""],"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}}.":[null,""],"Configure your SEO settings":[null,""],"In \"Upgrade\"":[null,""],"Configure your Google Analytics settings":[null,""],"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.":[null,""],"Enable ads and display an ad below each post":[null,""],"Configure your sharing buttons":[null,""],"Connect your social media accounts":[null,""],"Connect your user account to WordPress.com to use this feature":[null,""],"Allow readers to show their appreciation of your posts by adding a like button to your content":[null,""],"Match accounts using email addresses":[null,""],"Require accounts to use WordPress.com Two-Step Authentication":[null,""],"Add to whitelist":[null,""],"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":[null,""],"Your site is backed up and threat-free.":[null,""],"Checking your spam protection…":[null,""],"Fetching key…":[null,""],"Your site needs an Antispam key.":[null,""],"There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.":[null,""],"Your site is not protected from spam.":[null,""],"Your Antispam key is valid.":[null,""],"Your site is protected from spam.":[null,""],"Checking key…":[null,""],"Your API key":[null,""],"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.":[null,""],"No search results found for %(term)s":[null,""],"Enter a search term to find settings or close search.":[null,""],"Connections":[null,""],"Your site is in Development Mode, so it can not be connected to WordPress.com.":[null,""],"Your site is connected to WordPress.com.":[null,""],"You are the Jetpack owner.":[null,""],"Connected as {{span}}%(username)s{{/span}}":[null,""],"View your Email Followers":[null,""],"Connect your user account to WordPress.com to view your email followers":[null,""],"Color scheme":[null,""],"Enable Markdown use for comments.":[null,""],"Updated settings.":[null,""],"Regenerated Post by Email address.":[null,""],"Error regenerating Post by Email address. %(error)s":[null,""],"Updated settings. Refreshing page…":[null,""],"Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}":[null,""],"{{li}}The jetpack_development_mode filter is active{{/li}}":[null,""],"{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}":[null,""],"{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}":[null,""],"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.":[null,""],"Configure Google Analytics settings.":[null,""],"Image of WordPress login screen protected by Jetpack":[null,""],"Google Analytics":[null,""],"Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.":[null,""],"Configure Google Analytics":[null,""],"Activate Google Analytics":[null,""],"Download the free apps":[null,""],"Upgrade Focus: VideoPress For Weddings":[null,""],"{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}":[null,""],"By default ads are shown at the end of every page, post, or the first article on your front page. You can also add them to the top of your site and to any widget area to increase your earnings!":[null,""],"Display an ad unit at the top of your site.":[null,""],"By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.":[null,""],"Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.":[null,""],"Upgrade to a paid plan to unlock world-class security, spam protection tools, priority support, SEO and monetization tools.":[null,""],"Ads":[null,""],"Earn income by allowing Jetpack to display high quality ads (powered by WordAds).":[null,""],"Activate Ads":[null,""],"Premium traffic and monetization tools":[null,""],"The Jetpack Premium plan now offers you the ability to generate income from your site by showing high-quality paid ads to your visitors. Professional plan customers also benefit from SEO tools to help optimize search engine traffic.":[null,""],"We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible. ":[null,""],"In \"Mobile\"":[null,""],"{{link}}Configure your Monitor notification settings on WordPress.com{{/link}}":[null,""],"View your earnings":[null,""],"Activate VideoPress":[null,""],"Upload Videos Now":[null,""],"Make sure your site is easily found on search engines with SEO tools for your content and social posts.":[null,""],"Activate this module to use the advanced SEO tools.":[null,""],"How much is your website worth?":[null,""],"For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up.":[null,""],"Configure Site SEO":[null,""],"Activate SEO Tools":[null,""],"To get started, click on Add Media in your post editor and upload a video; we’ll take care of the rest!":[null,""],"Introducing our most affordable backups and security plan yet":[null,""],"Jetpack Personal keeps your data, site, and hard work safe.":[null,""],"Daily backup of all your site data with unlimited space and one-click restores (powered by VaultPress).":[null,""],"Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support (powered by VaultPress).":[null,""],"Backups & Security Scanning":[null,""],"Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, one-click threat resolution, and priority support (powered by VaultPress).":[null,""],"13Gb of fast, optimized, and ad-free video hosting for your site (powered by VideoPress).":[null,""],"Video Hosting":[null,""],"Fast, optimized, ad-free, and unlimited video hosting for your site (powered by VideoPress).":[null,""],"SEO Tools":[null,""],"Advanced SEO tools to help your site get found when people search for relevant content.":[null,""],"Unlimited and ad-free video hosting":[null,""],"Configure your SEO settings.":[null,""],"The easiest way to upload ad-free and unbranded videos to your site. You get stats on video playback and shares and the player is lightweight and responsive.":[null,""],"You are running Jetpack on a staging server.":[null,""],"More Info":[null,""],"{{a}}Manage Likes visibility from the Sharing Module Settings{{/a}}":[null,""],"Your current IP: %(ip)s":[null,""],"There are unsaved settings in this tab that will be lost if you leave it. Proceed?":[null,""],"This will reset all Jetpack options, are you sure?":[null,""],"Search for a Jetpack feature.":[null,""],"Upgrade Jetpack and our state-of-the-art security scanner will hunt out malicious files and report them immediately so that you're never unaware of what is happening on your website.":[null,""],"You can see the information about security scanning in the \"At a Glance\" section.":[null,""],"Configure your Security Scans":[null,""],"This module has no configuration options":[null,""],"Let search engines and visitors know that you are serious about your websites integrity by upgrading Jetpack. Our anti-spam tools will eliminate comment spam, protect your SEO, and make it easier for visitors to stay in touch.":[null,""],"Real-time offsite backups with automated restores deliver peace-of-mind, so you can focus on writing great content and increasing traffic while we protect every aspect of your investment. Upgrade today.":[null,""],"{{link}}Configure your %(module_slug)s Settings {{/link}}":[null,""],"Subscriber":[null,""],"Big iPhone/iPad Update Now Available":[null,""],"The WordPress for Android App Gets a Big Facelift":[null,""],"WordPress.com Likes are:":[null,""],"Comments headline":[null,""],"A few catchy words to motivate your readers to comment.":[null,""],"Show a \"follow blog\" option in the comment form":[null,""],"Show a \"follow comments\" option in the comment form":[null,""],"Put a chart showing 48 hours of views in the admin bar":[null,""],"Hide the stats smiley face image":[null,""],"Whitelisted IP addresses":[null,""],"Show photo metadata (Exif) in carousel, when available":[null,""],"Show an ad for the WordPress mobile apps in the footer of the mobile theme":[null,""],"Copied!":[null,""],"Highlight and copy the following text to your clipboard:":[null,""],"Regenerate address":[null,""],"Automatically proofread content when: ":[null,""],"A post or page is first published":[null,""],"A post or page is updated":[null,""],"Automatic Language Detection":[null,""],"The proofreader supports English, French, German, Portuguese and Spanish.":[null,""],"Enable proofreading for the following grammar and style rules: ":[null,""],"Add a phrase":[null,""],"Cheatin' uh?":[null,""],"{{p}}Would you mind telling us why you did not complete the Jetpack connection in this {{a}}2 question survey{{/a}}?{{/p}}{{p}}A Jetpack connection is required for our free security and traffic features to work.{{/p}}":[null,""],"Your Jetpack is already connected.":[null,""],"You're fueled up and ready to go, Jetpack is now active.":[null,""],"You're fueled up and ready to go.":[null,""],"You are currently running a development version of Jetpack.":[null,""],"Submit Beta feedback":[null,""],"What would you like to see on your Jetpack Dashboard?":[null,""],"Let us know!":[null,""],"Welcome to Jetpack":[null,""],"Please connect to or create a WordPress.com account to start using Jetpack. This will enable powerful security, traffic, and customization services.":[null,""],"No account? Create one for free":[null,""],"Saving…":[null,""],"Save Settings":[null,""],"Jetpack Stats Icon":[null,""],"{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}":[null,""],"Activate Site Stats":[null,""],"Security Scanning":[null,""],"Upgrade":[null,""],"ACTIVE":[null,""],"Hackers, botnets and spammers attack websites indiscriminately. Their goal is to attack everywhere and often. Our goal is to help you prepare by blocking these threats, and in worst-case-scenarios we'll be here to help you restore your site to its former glory.":[null,""],"Your site is on the Free Jetpack Plan":[null,""],"Your site is on Development Mode":[null,""],"Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support.":[null,""],"State-of-the-art spam defense powered by Akismet.":[null,""],"View your spam stats":[null,""],"Configure Akismet":[null,""],"View your security dashboard":[null,""],"Configure VaultPress":[null,""],"Compare Plans":[null,""],"Maximum grade security":[null,""],"Real-time backup with unlimited space, one-click restores, bulletproof spam monitoring, malware defense, and brute-force login protection - all in one place and optimized for WordPress.":[null,""],"Bulletproof spam filtering protects your brand, your readers, and improves SEO. Malware scanning helps maintain peace of mind and keeps your backend safe from intruders.":[null,""],"Enjoy priority support":[null,""],"The site is in Development Mode, so you can not connect to WordPress.com.":[null,""],"Link your account to WordPress.com to get the most out of Jetpack.":[null,""],"For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.":[null,""],"For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.":[null,""],"Jetpack is actively blocking malicious login attempts. Data will display here soon!":[null,""],"Total malicious attacks blocked on your site.":[null,""],"{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.":[null,""],"All plugins are up-to-date. Awesome work!":[null,""],"Jetpack is improving and optimizing your image speed.":[null,""],"Jetpack is monitoring your site. If we think your site is down, you will receive an email.":[null,""],"Security":[null,""],"Performance":[null,""],"Backups":[null,""],"{{a}}View backup details{{/a}}.":[null,""],"To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.":[null,""],"Unavailable in Dev Mode.":[null,""],"Spam Protection":[null,""],"For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.":[null,""],"For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.":[null,""],"Invalid key":[null,""],"Unavailable in Dev Mode":[null,""],"Activating recommended features…":[null,""],"Recommended features active.":[null,""],"Recommended features failed to activate. %(error)s":[null,""],"Activating %(slug)s…":[null,""],"%(slug)s has been activated.":[null,""],"%(slug)s failed to activate. %(error)s":[null,""],"Deactivating %(slug)s…":[null,""],"%(slug)s has been deactivated.":[null,""],"%(slug)s failed to deactivate. %(error)s":[null,""],"Updating %(slug)s settings…":[null,""],"Updated %(slug)s settings.":[null,""],"Error updating %(slug)s settings. %(error)s":[null,""],"Updating %(slug)s address…":[null,""],"Regenerated %(slug)s address .":[null,""],"Error regenerating %(slug)s address. %(error)s":[null,""],"Resetting Jetpack options…":[null,""],"Options reset.":[null,""],"Options failed to reset.":[null,""],"There was an error disconnecting Jetpack. Error: %(error)s":[null,""],"Unlinking from WordPress.com":[null,""],"Unlinked from WordPress.com.":[null,""],"Error unlinking from WordPress.com. %(error)s":[null,""],"At A Glance":[null,""],"Clichés":[null,""],"Dashboard":[null,""],"Would you tell us why? Just {{a}}answering two simple questions{{/a}} would help us improve Jetpack.":[null,""],"Automattic's Privacy Policy":[null,""],"WordPress.com Terms of Service":[null,""],"{{a}}Activate{{/a}} to enhance the performance and speed of your images.":[null,""],"{{a}}Turn on plugin auto updates{{/a}}":[null,""],"Plugin Updates":[null,""],"To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.":[null,""],"Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.":[null,""],"No threats found, you're good to go!":[null,""],"{{a}}Contact Support{{/a}}":[null,""],"{{a}}View details at VaultPress.com{{/a}}":[null,""],"{{a}}Activate Monitor{{/a}} to receive notifications if your site goes down.":[null,""],"Loading…":[null,""],"Downtime Monitoring":[null,""],"{{button}}View more stats on WordPress.com {{/button}}":[null,""],"{{button}}View detailed stats{{/button}}":[null,""],"All-time comments":[null,""],"All-time views":[null,""],"Best overall day":[null,""],"Views today":[null,""],"Months":[null,""],"Weeks":[null,""],"Days":[null,""],"Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}":[null,""],"Click to view detailed stats.":[null,""],"Views: %(numberOfViews)s":[null,""],"Week of %(date)s":[null,""],"Manage security on WordPress.com":[null,""],"Features can be activated or deactivated at any time.":[null,""],"Jetpack's recommended features include:":[null,""],"Activate recommended features":[null,""],"Link to WordPress.com":[null,""],"Unlink me from WordPress.com":[null,""],"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.":[null,""],"Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous imagery super fast. Optimized for any device, and its completely free.":[null,""],"Lightning fast, optimized images":[null,""],"Never fall behind on a security release or waste time updating multiple sites.":[null,""],"Automatic site updates.":[null,""],"Live site monitoring.":[null,""],"Gain peace of mind with Protect, the tool that has blocked billions of login attacks across millions of sites.":[null,""],"Block site attacks.":[null,""],"Jetpack blocks malicious log in attempts, lets you know if your site goes down, and can automatically update your plugins, so you don’t have to worry.":[null,""],"Site security and peace of mind":[null,""],"Jetpack harnesses the power of WordPress.com to show you detailed insights about your visitors, what they’re reading, and where they’re coming from.":[null,""],"Keep visitors engaged by giving them more to share and read with Related Posts.":[null,""],"Increase page views.":[null,""],"Give visitors the tools to share and subscribe to your content.":[null,""],"Build a community.":[null,""],"Sharing & Like Buttons":[null,""],"Automated social marketing.":[null,""],"Jetpack has many traffic and engagement tools to help you get more viewers to your site and keep them there.":[null,""],"Stress less. Monitor will send you real-time alerts if your site ever goes down.":[null,""],"Track your growth":[null,""],"Use Publicize to automatically share your posts with friends, followers, and the world.":[null,""],"Drive more traffic to your site":[null,""],"There was an issue connecting your Jetpack. Please click \"Connect to WordPress.com\" again.":[null,""],"We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.":[null,""],"You need to stay logged in to your WordPress blog while you authorize Jetpack.":[null,""],"{{s}}Your Jetpack has a glitch.{{/s}} We're sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %(error_key)s":[null,""],"Disconnecting Jetpack":[null,"قطع اتصال Jetpack"],"Learn more":[null,"تعرف على المزيد"],"Posts":[null,"تدوينات"],"Front page":[null,"الصفحة الرئيسية"],"Pinterest":[null,"Pinterest"],"Google":[null,"قوقل"],"Show related content after posts":[null,"إظهار المحتوى المتعلق بعد التدوينات"],"Use a large and visually striking layout":[null,"استخدام مخطط كبير وجذاب"],"Show a \"Related\" header to more clearly separate the related section from posts":[null,"عرض عنوان لقسم \"متعلق\" لفصل التدوينات عن قسم المحتوى المتعلق بوضوع أكبر."],"Related":[null,"مرتبط"],"Email Address":[null,"عنوان البريد الإلكتروني"],"Media":[null,"وسائط"],"Themes":[null,"القوالب"],"Site Stats":[null,"إحصائيات الموقع"],"Sharing":[null,"المشاركة"],"Testimonials":[null,"الشهادات"],"Comments":[null,"تعليقات"],"Ignored Phrases":[null,"تجاهل العبارات"],"Use automatically detected language to proofread posts and pages":[null,"استخدم الكشف التلقائي للغة لتستخدم التدقيق اللغوي في المواضيع والصفحات"],"Redundant Phrases":[null,"عبارات مكررة"],"Phrases to Avoid":[null,"العبارات التي يجب تجنبها"],"Passive Voice":[null,"المبني للمجهول"],"Jargon":[null,"اللهجة الغريبة"],"Hidden Verbs":[null,"أفعال مخفية"],"Double Negatives":[null,"السلبيات المزدوجة"],"Diacritical Marks":[null,"علامات التشكيل أو أحرف العلة"],"Complex Phrases":[null,"الجمل المعقدة"],"Bias Language":[null,"التحيز باللغة"],"English Options":[null,"خيارات اللغة الإنكليزية"],"Proofreading":[null,"التدقيق اللغوي"],"Connect Jetpack":[null,"توصيل وظيفة Jetpack"],"Jetpack could not contact WordPress.com: %(error_key)s. This usually means something is incorrectly configured on your web host.":[null,""],"WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.":[null,"يوجد مشاكل حالياً مع WordPress.com وغير قادر على الربط مع Jetpack. يرجى المحاولة مرة أخرى في وقت لاحق."],"{{s}}Your Jetpack has a glitch.{{/s}} Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).":[null,""],"Your website needs to be publicly accessible to use Jetpack: %(error_key)s":[null,""],"You have successfully disconnected Jetpack":[null,""],"Connect to WordPress.com":[null,"الاتصال بموقع WordPress.com"],"Activate":[null,"تفعيل"],"Active":[null,"مفعل"],"Settings":[null,"الإعدادات"],"Learn More":[null,"تعلم المزيد"],"Disconnect Jetpack":[null,"قطع الاتصال بـ Jetpack"],"Test your site’s compatibility with Jetpack.":[null,""]}
1
+ {"":{"po-revision-date":"2017-01-29 03:22:02+0000","mime-version":"1.0","content-type":"text/plain; charset=UTF-8","content-transfer-encoding":"8bit","plural-forms":"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;","x-generator":"GlotPress/2.4.0-alpha","language":"ar","project-id-version":"Plugins - Jetpack by WordPress.com - Development (trunk)"},"{{a}}View details{{/a}}":[null,""],"Thanks for choosing a Jetpack Professional plan. Jetpack is now backing up your content, scanning for security threats, and granting access to premium themes.":[null,""],"With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 100 premium themes. Customize your content with a variety of widgets, or add unlimited videos to your posts and pages -- displayed free of ads or watermarks.":[null,""],"Growing your following is easy with your Professional plan, thanks to content sharing and scheduling, SEO tools, and built-in subscription options. You can monetize your site with a simple payment button and in-line ads, and monitor the success of your efforts by integrating with Google Analytics.":[null,""],"Jetpack Professional gives you everything you need to keep your hard work safe, including on-demand backups and malware scans with one-click restores and issue resolution. Your site will be fully protected against spam, malicious code, and brute force login attempts.":[null,""],"Start exploring Jetpack Professional now to see all the benefits of your new plan.":[null,""],"Install premium themes":[null,""],"Review SEO features":[null,""],"Welcome Professional":[null,""],"Your Professional Jetpack plan is taking care of business!":[null,""],"Thanks for choosing a Jetpack Premium plan. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.":[null,""],"With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 200 free themes, or enhance your content with up to 13 GB of HD video -- all hosted free of ads or watermarks.":[null,""],"Using Jetpack’s powerful sharing tools, you can automatically share your newest posts on social media, or schedule your content to be re-shared at any date or time you choose. And along with growing your following, you can grow your business with tools like payment buttons and ads.":[null,""],"Keeping your hard work safe is important, too. Jetpack Premium gives you brute force login protection, automated spam filtering, and malware scanning. You also get daily backups with hassle-free restores, just in case you need them.":[null,""],"Start exploring Jetpack Premium now to see all the benefits of your new plan.":[null,""],"Enable premium video player":[null,""],"Monetize your site with ads":[null,""],"Welcome Premium":[null,""],"Your Premium Jetpack plan is powering up!":[null,""],"Thanks for choosing a Jetpack Personal plan. Jetpack is now backing up your site and scanning for security threats.":[null,""],"With Jetpack Personal, you have access to more than 100 free, professionally-designed WordPress themes. Choose the theme that best fits your site and customize colors, images, or add a variety of new widgets.":[null,""],"Using Jetpack’s powerful Publicize feature and built-in sharing tools, you’ll find new ways to grow your following and increase traffic. Automatically share your newest posts on social media, or allow followers to subscribe via email for your latest content right in their inbox.":[null,""],"Jetpack keeps you safe, too: you’re protected from spam in comments and contact forms, and our brute force login protection prevents hackers from accessing your data. And if something does go wrong, you can restore a backup of your site in a single click.":[null,""],"Got it!":[null,""],"Welcome personal":[null,""],"Your Personal Jetpack plan is powering up!":[null,""],"Enhanced site-wide search, powered by Elasticsearch (Beta)":[null,""],"Connect your account to get the most out of Jetpack":[null,""],"By connecting your site you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com":[null,""],"Jetpack Stats People":[null,""],"Hello there! Your stats have been activated.":[null,""],"Just give us a little time to collect data so we can display it for you here.":[null,""],"Okay, got it!":[null,""],"Display ads below posts on":[null,""],"Additional ad placements":[null,""],"Top of each page":[null,""],"Second ad below post":[null,""],"Archives":[null,""],"Contact Form screen shot":[null,""],"With this release, your contact form just got a bit sweeter. We moved the big old button right down into your editor's toolbar on the right. Yes, it's a little smaller, but it fits in a bit better, don't you think? Oh and all your forms now have a preview that can be edited all right inside the editor.":[null,""],"To use it, just open up a post or page to the visual editor. From there, you'll find a button inside the toolbar with an icon that looks a bit like the contact form. It is usually furthest to the right. Then just click the button and, voila, a contact form has been created!":[null,""],"You will likely want to customize it to properly encourage folks to contact you. To do that, simply select the contact form preview and then click or tap the edit button. It's the one that looks like a pencil.":[null,""],"Try it out!":[null,""],"Read the full release post":[null,""],"People around page":[null,""],"A new contact form is here at last!":[null,""],"{{subhead}}Only with Jetpack Professional{{/subhead}}{{p}}Protect your site and work with Jetpack Personal: daily automated backups, unlimited storage, and expert priority support. Security essentials for every WordPress site starting from $3.50.{{/p}}{{p}}Or go Pro with more than 200 Premium Themes, business class security, unlimited video hosting, monetization, marketing automation, and SEO tools.{{/p}}":[null,""],"Explore Professional":[null,""],"Compare All Plans":[null,""],"Limited time 50% introductory discount on Jetpack Professional.":[null,""],"Person with laptop":[null,""],"Your Jetpack site is ready to go!":[null,""],"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.":[null,""],"Stars":[null,""],"Jupiter":[null,""],"Welcome to Jetpack Personal":[null,""],"Security essentials (daily backups, spam filtering), and priority support.":[null,""],"Welcome to Jetpack Premium":[null,""],"Enhanced security (backups, scanning, spam filtering), marketing automation (social scheduling, ad program), 13Gb video hosting, and priority support.":[null,""],"Welcome to Jetpack Professional":[null,""],"Unlimited Premium themes, business class security (backups, scanning, spam filtering), marketing automation (social scheduling, SEO tools, ad program), video hosting, and priority support.":[null,""],"Social Media Scheduling":[null,""],"Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.":[null,""],"Schedule Posts":[null,""],"Activate Publicize":[null,""],"Explore Premium and Professional Options":[null,""],"Learn about Jetpack services used by WordPress professionals. On top of the security essentials you currently enjoy, Jetpack offers you:":[null,""],"Business class security: malware scanning, real-time backups, and threat resolution":[null,""],"Social media automation and scheduling":[null,""],"Income generation from a WordPress ad program":[null,""],"Jetpack Professional is the tool used by WordPress professionals. On top of the services you already enjoy, you also benefit from:":[null,""],"Over 200 Premium themes to explore":[null,""],"Business class security: real-time backups and threat resolution":[null,""],"SEO and social media previewing tools":[null,""],"Unlimited ad-free video hosting":[null,""],"Google Analytics integration":[null,""],"Explore Jetpack Professional":[null,""],"Introducing Unlimited Themes":[null,""],"Unlimited Premium Themes":[null,""],"Exclusive hand-crafted designs you will love with dedicated support directly from the themes' authors.":[null,""],"Explore":[null,""],"Your site is backed up.":[null,""],"Image Performance":[null,""],"Get WordPress Apps for every device":[null,""],"Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.":[null,""],"I already use this app.":[null,""],"Create address":[null,""],"Priority support":[null,""],"Add sharing buttons to your posts":[null,""],"Automatically share your posts to social networks":[null,""],"Updating settings…":[null,""],"Updating Post by Email address…":[null,""],"Your paid plan gives you access to prioritized Jetpack support.":[null,""],"You have paid for backups but they're not yet active.":[null,""],"You have paid for backups and security scanning but they’re not yet active.":[null,""],"Click \"Set Up\" to finish installation.":[null,""],"Checking site status…":[null,""],"Pages":[null,""],"We're here to help":[null,""],"Jetpack comes with free, basic support for all users.":[null,""],"Ask a question":[null,""],"Search our support site":[null,""],"Get a faster resolution to your support questions.":[null,""],"Host fast, high-quality, ad-free video.":[null,""],"Generate income with high-quality ads.":[null,""],"Real-time site backups and automatic threat resolution.":[null,""],"Protect against data loss, malware, and malicious attacks.":[null,""],"Integrate easily with Google Analytics.":[null,""],"Help your content get found and shared with SEO tools.":[null,""],"Protect your site from spam.":[null,""],"This site is not connected to WordPress.com. Please ask the site administrator to connect.":[null,""],"Spam filtering":[null,""],"Daily, automated malware scanning":[null,""],"13Gb of high-speed video hosting":[null,""],"Daily, automated backups (unlimited storage)":[null,""],"Daily, automated malware scanning with automated resolution":[null,""],"Unlimited high-speed video hosting":[null,""],"SEO preview tools":[null,""],"Site stats, related content, and sharing tools":[null,""],"Brute force attack protection and uptime monitoring":[null,""],"Unlimited, high-speed image hosting":[null,""],"By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:":[null,""],"Read more about Jetpack benefits":[null,""],"An Automattic Airline":[null,""],"Manage site connection":[null,""],"Connect your account to WordPress.com to view more stats":[null,""],"Theme enhancements":[null,""],"Load more posts using the default theme behavior":[null,""],"Load more posts in page with a button":[null,""],"Load more posts as the reader scrolls down":[null,""],"Theme support required.":[null,""],"Learn more about adding support for Infinite Scroll to your theme.":[null,""],"Use excerpts instead of full posts on front page and archive pages":[null,""],"Show featured images":[null,""],"Must be enabled to use tiled galleries.":[null,""],"Enable the WordPress.com toolbar":[null,""],"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.":[null,""],"Writing tools available to you will be shown here when an administrator enables them.":[null,""],"Portfolios":[null,""],"Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).":[null,""],"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}}.":[null,""],"Bing":[null,""],"Yandex":[null,""],"Generate XML sitemaps":[null,""],"Your sitemap is automatically sent to all major search engines for indexing.":[null,""],"Your site is not currently accessible to search engines. You might have \"Search Engine Visibility\" disabled in your {{a}}Reading Settings{{/a}}.":[null,""],"Collecting valuable traffic stats and insights":[null,""],"The image helps collect stats, but should work when hidden.":[null,""],"Count logged in page views from":[null,""],"Allow stats reports to be viewed by":[null,""],"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}}.":[null,""],"Configure your SEO settings":[null,""],"In \"Upgrade\"":[null,""],"Configure your Google Analytics settings":[null,""],"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.":[null,""],"Enable ads and display an ad below each post":[null,""],"Configure your sharing buttons":[null,""],"Connect your social media accounts":[null,""],"Connect your user account to WordPress.com to use this feature":[null,""],"Allow readers to show their appreciation of your posts by adding a like button to your content":[null,""],"Match accounts using email addresses":[null,""],"Require accounts to use WordPress.com Two-Step Authentication":[null,""],"Add to whitelist":[null,""],"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":[null,""],"Your site is backed up and threat-free.":[null,""],"Checking your spam protection…":[null,""],"Fetching key…":[null,""],"Your site needs an Antispam key.":[null,""],"There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.":[null,""],"Your site is not protected from spam.":[null,""],"Your Antispam key is valid.":[null,""],"Your site is protected from spam.":[null,""],"Checking key…":[null,""],"Your API key":[null,""],"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.":[null,""],"No search results found for %(term)s":[null,""],"Enter a search term to find settings or close search.":[null,""],"Connections":[null,""],"Your site is in Development Mode, so it can not be connected to WordPress.com.":[null,""],"Your site is connected to WordPress.com.":[null,""],"You are the Jetpack owner.":[null,""],"Connected as {{span}}%(username)s{{/span}}":[null,""],"View your Email Followers":[null,""],"Connect your user account to WordPress.com to view your email followers":[null,""],"Color scheme":[null,""],"Enable Markdown use for comments.":[null,""],"Updated settings.":[null,""],"Error updating settings. (%(error)s)":[null,""],"Regenerated Post by Email address.":[null,""],"Error regenerating Post by Email address. %(error)s":[null,""],"Updated settings. Refreshing page…":[null,""],"Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}":[null,""],"{{li}}The jetpack_development_mode filter is active{{/li}}":[null,""],"{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}":[null,""],"{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}":[null,""],"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.":[null,""],"Configure Google Analytics settings.":[null,""],"Image of WordPress login screen protected by Jetpack":[null,""],"Google Analytics":[null,""],"Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.":[null,""],"Configure Google Analytics":[null,""],"Activate Google Analytics":[null,""],"Download the free apps":[null,""],"Upgrade Focus: VideoPress For Weddings":[null,""],"{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}":[null,""],"By default ads are shown at the end of every page, post, or the first article on your front page. You can also add them to the top of your site and to any widget area to increase your earnings!":[null,""],"Display an ad unit at the top of your site.":[null,""],"By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.":[null,""],"Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.":[null,""],"Upgrade to a paid plan to unlock world-class security, spam protection tools, priority support, SEO and monetization tools.":[null,""],"Ads":[null,""],"Earn income by allowing Jetpack to display high quality ads (powered by WordAds).":[null,""],"Activate Ads":[null,""],"Premium traffic and monetization tools":[null,""],"The Jetpack Premium plan now offers you the ability to generate income from your site by showing high-quality paid ads to your visitors. Professional plan customers also benefit from SEO tools to help optimize search engine traffic.":[null,""],"We support all Jetpack users, regardless of plan. But customers on a paid subscription enjoy priority support so that security issues are identified and fixed for you as soon as possible. ":[null,""],"In \"Mobile\"":[null,""],"{{link}}Configure your Monitor notification settings on WordPress.com{{/link}}":[null,""],"View your earnings":[null,""],"Activate VideoPress":[null,""],"Upload Videos Now":[null,""],"Make sure your site is easily found on search engines with SEO tools for your content and social posts.":[null,""],"Activate this module to use the advanced SEO tools.":[null,""],"How much is your website worth?":[null,""],"For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up.":[null,""],"Configure Site SEO":[null,""],"Activate SEO Tools":[null,""],"To get started, click on Add Media in your post editor and upload a video; we’ll take care of the rest!":[null,""],"Introducing our most affordable backups and security plan yet":[null,""],"Jetpack Personal keeps your data, site, and hard work safe.":[null,""],"Daily backup of all your site data with unlimited space and one-click restores (powered by VaultPress).":[null,""],"Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support (powered by VaultPress).":[null,""],"Backups & Security Scanning":[null,""],"Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, one-click threat resolution, and priority support (powered by VaultPress).":[null,""],"13Gb of fast, optimized, and ad-free video hosting for your site (powered by VideoPress).":[null,""],"Video Hosting":[null,""],"Fast, optimized, ad-free, and unlimited video hosting for your site (powered by VideoPress).":[null,""],"SEO Tools":[null,""],"Advanced SEO tools to help your site get found when people search for relevant content.":[null,""],"Unlimited and ad-free video hosting":[null,""],"Configure your SEO settings.":[null,""],"The easiest way to upload ad-free and unbranded videos to your site. You get stats on video playback and shares and the player is lightweight and responsive.":[null,""],"You are running Jetpack on a staging server.":[null,""],"More Info":[null,""],"{{a}}Manage Likes visibility from the Sharing Module Settings{{/a}}":[null,""],"Your current IP: %(ip)s":[null,""],"There are unsaved settings in this tab that will be lost if you leave it. Proceed?":[null,""],"This will reset all Jetpack options, are you sure?":[null,""],"Search for a Jetpack feature.":[null,""],"Upgrade Jetpack and our state-of-the-art security scanner will hunt out malicious files and report them immediately so that you're never unaware of what is happening on your website.":[null,""],"You can see the information about security scanning in the \"At a Glance\" section.":[null,""],"Configure your Security Scans":[null,""],"This module has no configuration options":[null,""],"Let search engines and visitors know that you are serious about your websites integrity by upgrading Jetpack. Our anti-spam tools will eliminate comment spam, protect your SEO, and make it easier for visitors to stay in touch.":[null,""],"Real-time offsite backups with automated restores deliver peace-of-mind, so you can focus on writing great content and increasing traffic while we protect every aspect of your investment. Upgrade today.":[null,""],"{{link}}Configure your %(module_slug)s Settings {{/link}}":[null,""],"Subscriber":[null,""],"Big iPhone/iPad Update Now Available":[null,""],"The WordPress for Android App Gets a Big Facelift":[null,""],"WordPress.com Likes are:":[null,""],"Comments headline":[null,""],"A few catchy words to motivate your readers to comment.":[null,""],"Show a \"follow blog\" option in the comment form":[null,""],"Show a \"follow comments\" option in the comment form":[null,""],"Put a chart showing 48 hours of views in the admin bar":[null,""],"Hide the stats smiley face image":[null,""],"Whitelisted IP addresses":[null,""],"Show photo metadata (Exif) in carousel, when available":[null,""],"Show an ad for the WordPress mobile apps in the footer of the mobile theme":[null,""],"Copied!":[null,""],"Highlight and copy the following text to your clipboard:":[null,""],"Regenerate address":[null,""],"Automatically proofread content when: ":[null,""],"A post or page is first published":[null,""],"A post or page is updated":[null,""],"Automatic Language Detection":[null,""],"The proofreader supports English, French, German, Portuguese and Spanish.":[null,""],"Enable proofreading for the following grammar and style rules: ":[null,""],"Add a phrase":[null,""],"Cheatin' uh?":[null,""],"{{p}}Would you mind telling us why you did not complete the Jetpack connection in this {{a}}2 question survey{{/a}}?{{/p}}{{p}}A Jetpack connection is required for our free security and traffic features to work.{{/p}}":[null,""],"Welcome to {{s}}Jetpack %(jetpack_version)s{{/s}}!":[null,""],"Your Jetpack is already connected.":[null,""],"You're fueled up and ready to go, Jetpack is now active.":[null,""],"You're fueled up and ready to go.":[null,""],"You are currently running a development version of Jetpack.":[null,""],"Submit Beta feedback":[null,""],"What would you like to see on your Jetpack Dashboard?":[null,""],"Let us know!":[null,""],"Welcome to Jetpack":[null,""],"Please connect to or create a WordPress.com account to start using Jetpack. This will enable powerful security, traffic, and customization services.":[null,""],"No account? Create one for free":[null,""],"Saving…":[null,""],"Save Settings":[null,""],"Jetpack Stats Icon":[null,""],"{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}":[null,""],"Activate Site Stats":[null,""],"Security Scanning":[null,""],"Upgrade":[null,""],"ACTIVE":[null,""],"Hackers, botnets and spammers attack websites indiscriminately. Their goal is to attack everywhere and often. Our goal is to help you prepare by blocking these threats, and in worst-case-scenarios we'll be here to help you restore your site to its former glory.":[null,""],"Your site is on the Free Jetpack Plan":[null,""],"Your site is on Development Mode":[null,""],"Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support.":[null,""],"State-of-the-art spam defense powered by Akismet.":[null,""],"View your spam stats":[null,""],"Configure Akismet":[null,""],"View your security dashboard":[null,""],"Configure VaultPress":[null,""],"Compare Plans":[null,""],"Maximum grade security":[null,""],"Real-time backup with unlimited space, one-click restores, bulletproof spam monitoring, malware defense, and brute-force login protection - all in one place and optimized for WordPress.":[null,""],"Bulletproof spam filtering protects your brand, your readers, and improves SEO. Malware scanning helps maintain peace of mind and keeps your backend safe from intruders.":[null,""],"Enjoy priority support":[null,""],"The site is in Development Mode, so you can not connect to WordPress.com.":[null,""],"Link your account to WordPress.com to get the most out of Jetpack.":[null,""],"For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.":[null,""],"For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.":[null,""],"Jetpack is actively blocking malicious login attempts. Data will display here soon!":[null,""],"Total malicious attacks blocked on your site.":[null,""],"{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.":[null,""],"All plugins are up-to-date. Awesome work!":[null,""],"Jetpack is improving and optimizing your image speed.":[null,""],"Jetpack is monitoring your site. If we think your site is down, you will receive an email.":[null,""],"Security":[null,""],"Performance":[null,""],"Backups":[null,""],"{{a}}View backup details{{/a}}.":[null,""],"To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.":[null,""],"Unavailable in Dev Mode.":[null,""],"Spam Protection":[null,""],"For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.":[null,""],"For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.":[null,""],"Invalid key":[null,""],"Unavailable in Dev Mode":[null,""],"Activating recommended features…":[null,""],"Recommended features active.":[null,""],"Recommended features failed to activate. %(error)s":[null,""],"Activating %(slug)s…":[null,""],"%(slug)s has been activated.":[null,""],"%(slug)s failed to activate. %(error)s":[null,""],"Deactivating %(slug)s…":[null,""],"%(slug)s has been deactivated.":[null,""],"%(slug)s failed to deactivate. %(error)s":[null,""],"Updating %(slug)s settings…":[null,""],"Updated %(slug)s settings.":[null,""],"Error updating %(slug)s settings. %(error)s":[null,""],"Updating %(slug)s address…":[null,""],"Regenerated %(slug)s address .":[null,""],"Error regenerating %(slug)s address. %(error)s":[null,""],"Resetting Jetpack options…":[null,""],"Options reset.":[null,""],"Options failed to reset.":[null,""],"There was an error disconnecting Jetpack. Error: %(error)s":[null,""],"Unlinking from WordPress.com":[null,""],"Unlinked from WordPress.com.":[null,""],"Error unlinking from WordPress.com. %(error)s":[null,""],"At A Glance":[null,""],"Clichés":[null,""],"Dashboard":[null,""],"Would you tell us why? Just {{a}}answering two simple questions{{/a}} would help us improve Jetpack.":[null,""],"Automattic's Privacy Policy":[null,""],"WordPress.com Terms of Service":[null,""],"{{a}}Activate{{/a}} to enhance the performance and speed of your images.":[null,""],"{{a}}Turn on plugin auto updates{{/a}}":[null,""],"Plugin Updates":[null,""],"To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.":[null,""],"Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.":[null,""],"No threats found, you're good to go!":[null,""],"{{a}}Contact Support{{/a}}":[null,""],"{{a}}View details at VaultPress.com{{/a}}":[null,""],"{{a}}Activate Monitor{{/a}} to receive notifications if your site goes down.":[null,""],"Loading…":[null,""],"Downtime Monitoring":[null,""],"{{button}}View more stats on WordPress.com {{/button}}":[null,""],"{{button}}View detailed stats{{/button}}":[null,""],"All-time comments":[null,""],"All-time views":[null,""],"Best overall day":[null,""],"Views today":[null,""],"Months":[null,""],"Weeks":[null,""],"Days":[null,""],"Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}":[null,""],"Click to view detailed stats.":[null,""],"Views: %(numberOfViews)s":[null,""],"Week of %(date)s":[null,""],"Manage security on WordPress.com":[null,""],"Features can be activated or deactivated at any time.":[null,""],"Jetpack's recommended features include:":[null,""],"Activate recommended features":[null,""],"Link to WordPress.com":[null,""],"Unlink me from WordPress.com":[null,""],"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.":[null,""],"Jetpack utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous imagery super fast. Optimized for any device, and its completely free.":[null,""],"Lightning fast, optimized images":[null,""],"Never fall behind on a security release or waste time updating multiple sites.":[null,""],"Automatic site updates.":[null,""],"Live site monitoring.":[null,""],"Gain peace of mind with Protect, the tool that has blocked billions of login attacks across millions of sites.":[null,""],"Block site attacks.":[null,""],"Jetpack blocks malicious log in attempts, lets you know if your site goes down, and can automatically update your plugins, so you don’t have to worry.":[null,""],"Site security and peace of mind":[null,""],"Jetpack harnesses the power of WordPress.com to show you detailed insights about your visitors, what they’re reading, and where they’re coming from.":[null,""],"Keep visitors engaged by giving them more to share and read with Related Posts.":[null,""],"Increase page views.":[null,""],"Give visitors the tools to share and subscribe to your content.":[null,""],"Build a community.":[null,""],"Sharing & Like Buttons":[null,""],"Automated social marketing.":[null,""],"Jetpack has many traffic and engagement tools to help you get more viewers to your site and keep them there.":[null,""],"Stress less. Monitor will send you real-time alerts if your site ever goes down.":[null,""],"Track your growth":[null,""],"Use Publicize to automatically share your posts with friends, followers, and the world.":[null,""],"Drive more traffic to your site":[null,""],"There was an issue connecting your Jetpack. Please click \"Connect to WordPress.com\" again.":[null,""],"We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.":[null,""],"You need to stay logged in to your WordPress blog while you authorize Jetpack.":[null,""],"{{s}}Your Jetpack has a glitch.{{/s}} We're sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %(error_key)s":[null,""],"Disconnecting Jetpack":[null,"قطع اتصال Jetpack"],"Learn more":[null,"تعرف على المزيد"],"Posts":[null,"تدوينات"],"Front page":[null,"الصفحة الرئيسية"],"Pinterest":[null,"Pinterest"],"Google":[null,"قوقل"],"Show related content after posts":[null,"إظهار المحتوى المتعلق بعد التدوينات"],"Use a large and visually striking layout":[null,"استخدام مخطط كبير وجذاب"],"Show a \"Related\" header to more clearly separate the related section from posts":[null,"عرض عنوان لقسم \"متعلق\" لفصل التدوينات عن قسم المحتوى المتعلق بوضوع أكبر."],"Related":[null,"مرتبط"],"Email Address":[null,"عنوان البريد الإلكتروني"],"Media":[null,"وسائط"],"Themes":[null,"القوالب"],"Site Stats":[null,"إحصائيات الموقع"],"Sharing":[null,"المشاركة"],"Testimonials":[null,"الشهادات"],"Comments":[null,"تعليقات"],"Ignored Phrases":[null,"تجاهل العبارات"],"Use automatically detected language to proofread posts and pages":[null,"استخدم الكشف التلقائي للغة لتستخدم التدقيق اللغوي في المواضيع والصفحات"],"Redundant Phrases":[null,"عبارات مكررة"],"Phrases to Avoid":[null,"العبارات التي يجب تجنبها"],"Passive Voice":[null,"المبني للمجهول"],"Jargon":[null,"اللهجة الغريبة"],"Hidden Verbs":[null,"أفعال مخفية"],"Double Negatives":[null,"السلبيات المزدوجة"],"Diacritical Marks":[null,"علامات التشكيل أو أحرف العلة"],"Complex Phrases":[null,"الجمل المعقدة"],"Bias Language":[null,"التحيز باللغة"],"English Options":[null,"خيارات اللغة الإنكليزية"],"Proofreading":[null,"التدقيق اللغوي"],"Connect Jetpack":[null,"توصيل وظيفة Jetpack"],"Jetpack could not contact WordPress.com: %(error_key)s. This usually means something is incorrectly configured on your web host.":[null,""],"WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.":[null,"يوجد مشاكل حالياً مع WordPress.com وغير قادر على الربط مع Jetpack. يرجى المحاولة مرة أخرى في وقت لاحق."],"{{s}}Your Jetpack has a glitch.{{/s}} Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).":[null,""],"Your website needs to be publicly accessible to use Jetpack: %(error_key)s":[null,""],"You have successfully disconnected Jetpack":[null,""],"Connect to WordPress.com":[null,"الاتصال بموقع WordPress.com"],"Activate":[null,"تفعيل"],"Active":[null,"مفعل"],"Settings":[null,"الإعدادات"],"Learn More":[null,"تعلم المزيد"],"Disconnect Jetpack":[null,"قطع الاتصال بـ Jetpack"],"Test your site’s compatibility with Jetpack.":[null,""]}
languages/json/jetpack-de_DE.json CHANGED
@@ -1 +1 @@
1
- {"":{"po-revision-date":"2017-10-22 21:33:47+0000","mime-version":"1.0","content-type":"text/plain; charset=UTF-8","content-transfer-encoding":"8bit","plural-forms":"nplurals=2; plural=n != 1;","x-generator":"GlotPress/2.4.0-alpha","language":"de","project-id-version":"Plugins - Jetpack by WordPress.com - Development (trunk)"},"Thanks for choosing a Jetpack Professional plan. Jetpack is now backing up your content, scanning for security threats, and granting access to premium themes.":[null,""],"With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 100 premium themes. Customize your content with a variety of widgets, or add unlimited videos to your posts and pages -- displayed free of ads or watermarks.":[null,""],"Growing your following is easy with your Professional plan, thanks to content sharing and scheduling, SEO tools, and built-in subscription options. You can monetize your site with a simple payment button and in-line ads, and monitor the success of your efforts by integrating with Google Analytics.":[null,""],"Jetpack Professional gives you everything you need to keep your hard work safe, including on-demand backups and malware scans with one-click restores and issue resolution. Your site will be fully protected against spam, malicious code, and brute force login attempts.":[null,""],"Start exploring Jetpack Professional now to see all the benefits of your new plan.":[null,""],"Install premium themes":[null,"Premium-Themes installieren"],"Review SEO features":[null,""],"Welcome Professional":[null,""],"Your Professional Jetpack plan is taking care of business!":[null,""],"Thanks for choosing a Jetpack Premium plan. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.":[null,""],"With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 200 free themes, or enhance your content with up to 13 GB of HD video -- all hosted free of ads or watermarks.":[null,""],"Using Jetpack’s powerful sharing tools, you can automatically share your newest posts on social media, or schedule your content to be re-shared at any date or time you choose. And along with growing your following, you can grow your business with tools like payment buttons and ads.":[null,""],"Keeping your hard work safe is important, too. Jetpack Premium gives you brute force login protection, automated spam filtering, and malware scanning. You also get daily backups with hassle-free restores, just in case you need them.":[null,""],"Start exploring Jetpack Premium now to see all the benefits of your new plan.":[null,""],"Enable premium video player":[null,""],"Monetize your site with ads":[null,""],"Welcome Premium":[null,""],"Your Premium Jetpack plan is powering up!":[null,""],"Thanks for choosing a Jetpack Personal plan. Jetpack is now backing up your site and scanning for security threats.":[null,""],"With Jetpack Personal, you have access to more than 100 free, professionally-designed WordPress themes. Choose the theme that best fits your site and customize colors, images, or add a variety of new widgets.":[null,""],"Using Jetpack’s powerful Publicize feature and built-in sharing tools, you’ll find new ways to grow your following and increase traffic. Automatically share your newest posts on social media, or allow followers to subscribe via email for your latest content right in their inbox.":[null,""],"Jetpack keeps you safe, too: you’re protected from spam in comments and contact forms, and our brute force login protection prevents hackers from accessing your data. And if something does go wrong, you can restore a backup of your site in a single click.":[null,""],"Got it!":[null,""],"Welcome personal":[null,""],"Your Personal Jetpack plan is powering up!":[null,""],"Enhanced site-wide search, powered by Elasticsearch (Beta)":[null,""],"Connect your account to get the most out of Jetpack":[null,""],"By connecting your site you agree to our fascinating {{tosLink}}Terms of Service{{/tosLink}} and to {{shareDetailsLink}}share details{{/shareDetailsLink}} with WordPress.com":[null,""],"Jetpack Stats People":[null,""],"Hello there! Your stats have been activated.":[null,"Hallo! Deine Statistik wurde aktiviert."],"Just give us a little time to collect data so we can display it for you here.":[null,""],"Okay, got it!":[null,""],"Display ads below posts on":[null,""],"Additional ad placements":[null,""],"Top of each page":[null,"Oben auf jeder Seite"],"Second ad below post":[null,""],"Archives":[null,""],"Contact Form screen shot":[null,""],"With this release, your contact form just got a bit sweeter. We moved the big old button right down into your editor's toolbar on the right. Yes, it's a little smaller, but it fits in a bit better, don't you think? Oh and all your forms now have a preview that can be edited all right inside the editor.":[null,""],"To use it, just open up a post or page to the visual editor. From there, you'll find a button inside the toolbar with an icon that looks a bit like the contact form. It is usually furthest to the right. Then just click the button and, voila, a contact form has been created!":[null,""],"You will likely want to customize it to properly encourage folks to contact you. To do that, simply select the contact form preview and then click or tap the edit button. It's the one that looks like a pencil.":[null,""],"Try it out!":[null,"Probiere es aus!"],"Read the full release post":[null,""],"People around page":[null,""],"A new contact form is here at last!":[null,""],"{{subhead}}Only with Jetpack Professional{{/subhead}}{{p}}Protect your site and work with Jetpack Personal: daily automated backups, unlimited storage, and expert priority support. Security essentials for every WordPress site starting from $3.50.{{/p}}{{p}}Or go Pro with more than 200 Premium Themes, business class security, unlimited video hosting, monetization, marketing automation, and SEO tools.{{/p}}":[null,""],"Explore Professional":[null,""],"Compare All Plans":[null,"Alle Tarife vergleichen"],"Limited time 50% introductory discount on Jetpack Professional.":[null,""],"Person with laptop":[null,""],"Your Jetpack site is ready to go!":[null,"Dein Jetpack ist einsatzbereit!"],"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.":[null,""],"Stars":[null,"Sterne"],"Jupiter":[null,"Jupiter"],"Welcome to Jetpack Personal":[null,""],"Security essentials (daily backups, spam filtering), and priority support.":[null,""],"Welcome to Jetpack Premium":[null,"Willkommen bei Jetpack Premium"],"Enhanced security (backups, scanning, spam filtering), marketing automation (social scheduling, ad program), 13Gb video hosting, and priority support.":[null,""],"Welcome to Jetpack Professional":[null,"Willkommen bei Jetpack Professional"],"Unlimited Premium themes, business class security (backups, scanning, spam filtering), marketing automation (social scheduling, SEO tools, ad program), video hosting, and priority support.":[null,""],"Social Media Scheduling":[null,""],"Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.":[null,""],"Schedule Posts":[null,""],"Activate Publicize":[null,""],"Explore Premium and Professional Options":[null,""],"Learn about Jetpack services used by WordPress professionals. On top of the security essentials you currently enjoy, Jetpack offers you:":[null,""],"Business class security: malware scanning, real-time backups, and threat resolution":[null,""],"Social media automation and scheduling":[null,""],"Income generation from a WordPress ad program":[null,""],"Jetpack Professional is the tool used by WordPress professionals. On top of the services you already enjoy, you also benefit from:":[null,""],"Over 200 Premium themes to explore":[null,""],"Business class security: real-time backups and threat resolution":[null,""],"SEO and social media previewing tools":[null,""],"Unlimited ad-free video hosting":[null,"Unbegrenztes, werbefreies Video-Hosting"],"Google Analytics integration":[null,"Integration von Google Analytics"],"Explore Jetpack Professional":[null,""],"Introducing Unlimited Themes":[null,""],"Unlimited Premium Themes":[null,"Unbegrenzte Premium-Themes"],"Exclusive hand-crafted designs you will love with dedicated support directly from the themes' authors.":[null,""],"Explore":[null,""],"Your site is backed up.":[null,""],"Image Performance":[null,""],"Get WordPress Apps for every device":[null,""],"Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.":[null,""],"I already use this app.":[null,"Ich verwende diese App bereits."],"Create address":[null,"Adresse erstellen"],"Priority support":[null,"Vorrangiger Support"],"Add sharing buttons to your posts":[null,"Füge Teilen-Buttons zu deinen Beiträgen hinzu."],"Automatically share your posts to social networks":[null,"Teile deine Beiträge automatisch in sozialen Netzwerken."],"Updating settings…":[null,"Einstellungen werden aktualisiert …"],"Updating Post by Email address…":[null,"„Per E-Mail bloggen“-Adresse wird aktualisiert …"],"Your paid plan gives you access to prioritized Jetpack support.":[null,"Mit deinem kostenpflichtigen Tarif erhältst du Zugriff auf bevorzugten Jetpack-Support."],"You have paid for backups but they're not yet active.":[null,"Du hast für Backups bezahlt, diese sind jedoch noch nicht aktiv."],"You have paid for backups and security scanning but they’re not yet active.":[null,"Du hast für Backups und Sicherheitsscans bezahlt, diese sind jedoch noch nicht aktiv."],"Click \"Set Up\" to finish installation.":[null,"Klicke „Einrichtung“, um die Installation fertigzustellen."],"Checking site status…":[null,"Website-Status wird überprüft …"],"Pages":[null,"Seiten"],"We're here to help":[null,""],"Jetpack comes with free, basic support for all users.":[null,""],"Ask a question":[null,"Eine Frage stellen"],"Search our support site":[null,""],"Get a faster resolution to your support questions.":[null,""],"Host fast, high-quality, ad-free video.":[null,""],"Generate income with high-quality ads.":[null,"Mit qualitativ hochwertigen Werbeanzeigen Geld verdienen."],"Real-time site backups and automatic threat resolution.":[null,"Website-Backups in Echtzeit und automatische Behebung von Bedrohungen."],"Protect against data loss, malware, and malicious attacks.":[null,"Schutz vor Datenverlust, Malware und bösartigen Angriffen."],"Integrate easily with Google Analytics.":[null,"Einfache Integration von Google Analytics."],"Help your content get found and shared with SEO tools.":[null,"Sorge mit SEO-Werkzeuge dafür, dass deine Inhalte gefunden und geteilt werden."],"Protect your site from spam.":[null,"Schütze deine Website vor Spam."],"This site is not connected to WordPress.com. Please ask the site administrator to connect.":[null,"Diese Website ist nicht mit WordPress.com verbunden. Bitte den Websiteadministrator, die Verbindung herzustellen."],"Spam filtering":[null,"Spam-Filterung"],"Daily, automated malware scanning":[null,"Tägliche, automatisierte Malwareüberprüfung"],"13Gb of high-speed video hosting":[null,""],"Daily, automated backups (unlimited storage)":[null,"Tägliche, automatisierte Backups (unbegrenzter Speicherplatz)"],"Daily, automated malware scanning with automated resolution":[null,"Tägliche, automatisierte Malware-Überprüfung mit automatischer Behebung"],"Unlimited high-speed video hosting":[null,"Unbegrenztes Videohosting mit Hochgeschwindigkeit"],"SEO preview tools":[null,"SEO-Vorschauwerkzeuge"],"Site stats, related content, and sharing tools":[null,""],"Brute force attack protection and uptime monitoring":[null,""],"Unlimited, high-speed image hosting":[null,""],"By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:":[null,"Wenn du %(siteName)s von WordPress.com trennst, hast du keinen Zugriff mehr auf:"],"Read more about Jetpack benefits":[null,"Weitere Informationen zu den Vorteilen von Jetpack"],"An Automattic Airline":[null,"Ein Produkt des US-Unternehmens Automattic, Inc."],"Manage site connection":[null,"Websiteverbindung verwalten"],"Connect your account to WordPress.com to view more stats":[null,"Konto mit WordPress.com verbinden, um mehr Statistiken anzuzeigen"],"Theme enhancements":[null,"Theme-Erweiterungen"],"Load more posts using the default theme behavior":[null,"Mehr Beiträge mit dem Standard-Theme-Verhalten laden"],"Load more posts in page with a button":[null,"Mehr Beiträge in Seite mit einem Button laden"],"Load more posts as the reader scrolls down":[null,"Mehr Beiträge laden, wenn der Leser nach unten blättert"],"Theme support required.":[null,"Theme-Unterstützung erforderlich."],"Learn more about adding support for Infinite Scroll to your theme.":[null,"Erfahre mehr darüber, wie du deinem Theme Support für unendliches Scrollen hinzufügen kannst."],"Use excerpts instead of full posts on front page and archive pages":[null,"Auf der Titel- und den Archivseiten nur Auszüge statt vollständige Beiträge verwenden"],"Show featured images":[null,"Hervorgehobene Bilder anzeigen"],"Must be enabled to use tiled galleries.":[null,"Muss aktiviert sein, um Galerien in Kachel-Optik anzuzeigen."],"Enable the WordPress.com toolbar":[null,"WordPress.com-Werkzeugleiste aktivieren"],"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.":[null,"Die WordPress.com-Werkzeugleiste ersetzt die Admin-Standardleiste und enthält schnelle Links zum Reader, zu all deinen Websites, zu deinem WordPress.com-Profil und zu Benachrichtigungen. Verwalte dein gesamtes WordPress über eine einzige zentrale Werkzeugleiste."],"Writing tools available to you will be shown here when an administrator enables them.":[null,"Schreibwerkzeuge, die dir zu Verfügung stehen, werden hier angezeigt, wenn sie ein Administrator aktiviert."],"Portfolios":[null,"Portfolios"],"Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).":[null,""],"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}}.":[null,"{{b}}Die Verifizierung deiner Website durch diese Dienste ist nicht erforderlich{{/b}}, damit deine Website von Suchmaschinen indiziert wird. Füge unten den HTML-Tag-Code ein, um diese erweiterten Suchmaschinenwerkzeuge zu nutzen und deine Website durch einen Dienst verifizieren zu lassen. Lies bei Problemen die {{support}}vollständige Anleitung{{/support}}. Unterstützte Verifizierungsdienste: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Tools{{/bing}}, {{pinterest}}Pinterest Website-Bestätigung{{/pinterest}} und {{yandex}}Yandex.Webmaster{{/yandex}}."],"Bing":[null,"Bing"],"Yandex":[null,"Yandex"],"Generate XML sitemaps":[null,"XML-Sitemaps generieren"],"Your sitemap is automatically sent to all major search engines for indexing.":[null,"Deine Sitemap wird automatisch an alle großen Suchmaschinen zur Indizierung gesendet."],"Your site is not currently accessible to search engines. You might have \"Search Engine Visibility\" disabled in your {{a}}Reading Settings{{/a}}.":[null,"Suchmaschinen können derzeit nicht auf deine Website zugreifen. Es kann sein, dass in deinen {{a}}Leseeinstellungen{{/a}} „Suchmaschinen-Sichtbarkeit“ deaktiviert ist."],"Collecting valuable traffic stats and insights":[null,"Sammeln wertvoller Traffic-Statistiken und Einsichten"],"The image helps collect stats, but should work when hidden.":[null,"Das Bild unterstützt das Sammeln von Statistiken, sollte aber funktionieren, wenn es ausgeblendet wird."],"Count logged in page views from":[null,""],"Allow stats reports to be viewed by":[null,"Anzeige von Statistikberichten erlauben für"],"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}}.":[null,"Wenn du eine weitergehende Kontrolle wünschst, kannst du diese Einstellungen ändern. Lies mehr darüber, wie du die {{a}}SEO deiner Website optimieren{{/a}} kannst."],"Configure your SEO settings":[null,"Deine SEO-Einstellungen konfigurieren"],"In \"Upgrade\"":[null,"In „Upgrade“"],"Configure your Google Analytics settings":[null,"Deine Einstellungen von Google Analytics konfigurieren"],"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.":[null,"Zeige Werbeanzeigen im ersten Artikel auf deiner Startseite oder am Ende jeder Seite und jedes Beitrags an. Platziere zusätzliche Werbeanzeigen oben auf deiner Website und in jedem Widget-Bereich, um deine Einnahmen zu steigern."],"Enable ads and display an ad below each post":[null,"Werbeanzeigen aktivieren und eine Werbeanzeige unter jedem Beitrag einblenden"],"Configure your sharing buttons":[null,"Deine Teilen-Buttons konfigurieren"],"Connect your social media accounts":[null,"Deine Social Media-Konten verknüpfen"],"Connect your user account to WordPress.com to use this feature":[null,""],"Allow readers to show their appreciation of your posts by adding a like button to your content":[null,"Ermögliche es deinen Lesern zu zeigen, wenn ihnen deine Beiträge gefallen, indem du deinem Inhalt einen Gefällt mir-Button hinzufügst"],"Match accounts using email addresses":[null,"Konten mithilfe von E-Mail-Adressen abgleichen"],"Require accounts to use WordPress.com Two-Step Authentication":[null,"Konten müssen Zwei-Schritt-Authentifizierung von WordPress.com verwenden"],"Add to whitelist":[null,"Zur Positivliste hinzufügen"],"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":[null,"Du kannst eine IP-Adresse oder eine Serie von Adressen auf die Positivliste setzen und so dafür sorgen, dass diese niemals von Jetpack blockiert werden. IPv4 und IPv6 sind zulässig. Gib für einen Bereich den unteren und oberen Wert ein (getrennt durch einen Bindestrich). Beispiel: 12.12.12.1-12.12.12.100"],"Your site is backed up and threat-free.":[null,"Deine Website ist gesichert und weist keine Bedrohungen auf."],"Checking your spam protection…":[null,"Spam-Schutz wird überprüft …"],"Fetching key…":[null,"Schlüssel wird abgerufen …"],"Your site needs an Antispam key.":[null,"Deine Website benötigt einen Antispam-Schlüssel."],"There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.":[null,"Es ist ein Problem mit deinem Antispam-API-Schlüssel aufgetreten. {{a}}Weitere Informationen{{/a}}."],"Your site is not protected from spam.":[null,"Deine Website ist nicht gegen Spam geschützt."],"Your Antispam key is valid.":[null,"Dein Antispam-Schlüssel ist gültig."],"Your site is protected from spam.":[null,"Deine Website ist gegen Spam geschützt."],"Chec