Jetpack by WordPress.com - Version 6.1.1

Version Description

  • Release date: May 22, 2018
  • Release post: https://wp.me/p1moTy-85t

Enhancements

  • Ads: Added new setting for Banner consent expiration. Added new filter jetpack_disable_eu_cookie_law_widget, which can be used to disable the banner.
  • Ads: Added a new personalized-ads-consent cookie for ads-enabled sites.
  • Ads: Added requirement and notice, and button-click opt-in for ads module users.
  • Ads: When a user site has a Privacy Policy page set (introduced in 4.9.6), we now default to using that privacy policy as a custom policy URL.
  • GDPR: A new warning is displayed while configuring an instance of the EU Cookie Law widget: "Caution: The default policy URL only covers cookies set by Jetpack. If you're running other plugins, custom cookies, or third-party tracking technologies, you should create and link to your own cookie statement."
  • GDPR: Added Feedback data (i.e., Contact Form Submissions) to the Personal Data exported and/or erased by the latest version of WordPress core.

Bug fixes

  • Ads: We updated Ads behaviour to not show unless the visitor is on the main query within the loop.
  • General: We fixed a bug that resulted in an alert box showing for sites set to languages deriving from main ones.
  • Lazy Images: Fixed a bug where images would disappear when scrolling.
  • Sharing: make sure JS files can be loaded on development sites.
  • Sharing: Added check for validating Akismet key before allowing sharing by email.
  • WooCommerce Analytics: Fixed PHP warning when attemping to get a list of plugins.
Download this release

Release Info

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

Code changes from version 6.1 to 6.1.1

Files changed (64) hide show
  1. _inc/build/admin.js +7 -7
  2. _inc/build/lazy-images/js/lazy-images.min.js +1 -1
  3. _inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js +2 -0
  4. _inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js +1 -1
  5. _inc/jetpack-strings.php +137 -134
  6. changelog.txt +45 -0
  7. class.jetpack-cli.php +168 -0
  8. class.jetpack.php +14 -1
  9. jetpack.php +2 -2
  10. json-endpoints/class.wpcom-json-api-site-settings-endpoint.php +8 -2
  11. json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php +1 -0
  12. json-endpoints/jetpack/json-api-jetpack-endpoints.php +2 -1
  13. languages/jetpack-pl_PL.mo +0 -0
  14. languages/json/jetpack-ar.json +1 -1
  15. languages/json/jetpack-bg_BG.json +1 -1
  16. languages/json/jetpack-de_DE.json +1 -1
  17. languages/json/jetpack-de_DE_formal.json +1 -1
  18. languages/json/jetpack-el.json +1 -1
  19. languages/json/jetpack-en_AU.json +1 -1
  20. languages/json/jetpack-en_CA.json +1 -1
  21. languages/json/jetpack-en_GB.json +1 -1
  22. languages/json/jetpack-en_NZ.json +1 -1
  23. languages/json/jetpack-eo.json +1 -1
  24. languages/json/jetpack-es_CR.json +1 -1
  25. languages/json/jetpack-es_ES.json +1 -1
  26. languages/json/jetpack-fa_IR.json +1 -1
  27. languages/json/jetpack-fi.json +1 -1
  28. languages/json/jetpack-fr_FR.json +1 -1
  29. languages/json/jetpack-gl_ES.json +1 -1
  30. languages/json/jetpack-he_IL.json +1 -1
  31. languages/json/jetpack-hr.json +1 -1
  32. languages/json/jetpack-id_ID.json +1 -1
  33. languages/json/jetpack-it_IT.json +1 -1
  34. languages/json/jetpack-ja.json +1 -1
  35. languages/json/jetpack-ko_KR.json +1 -1
  36. languages/json/jetpack-nl_NL.json +1 -1
  37. languages/json/jetpack-pl_PL.json +1 -1
  38. languages/json/jetpack-pt_BR.json +1 -1
  39. languages/json/jetpack-ro_RO.json +1 -1
  40. languages/json/jetpack-ru_RU.json +1 -1
  41. languages/json/jetpack-sk_SK.json +1 -1
  42. languages/json/jetpack-sq.json +1 -1
  43. languages/json/jetpack-sv_SE.json +1 -1
  44. languages/json/jetpack-tr_TR.json +1 -1
  45. languages/json/jetpack-zh_CN.json +1 -1
  46. languages/json/jetpack-zh_HK.json +1 -1
  47. languages/json/jetpack-zh_TW.json +1 -1
  48. modules/contact-form/grunion-contact-form.php +193 -0
  49. modules/lazy-images/js/lazy-images.js +1 -1
  50. modules/likes/jetpack-likes-master-iframe.php +1 -1
  51. modules/masterbar/masterbar.php +5 -5
  52. modules/sharedaddy/sharing-service.php +1 -1
  53. modules/sharedaddy/sharing.php +1 -1
  54. modules/stats.php +1 -1
  55. modules/widgets/eu-cookie-law.php +55 -19
  56. modules/widgets/eu-cookie-law/eu-cookie-law-admin.js +30 -0
  57. modules/widgets/eu-cookie-law/eu-cookie-law.js +10 -2
  58. modules/widgets/eu-cookie-law/form.php +138 -88
  59. modules/widgets/eu-cookie-law/widget.php +4 -8
  60. modules/woocommerce-analytics/wp-woocommerce-analytics.php +1 -1
  61. modules/wordads/php/params.php +6 -10
  62. modules/wordads/wordads.php +28 -20
  63. readme.txt +24 -44
  64. sync/class.jetpack-sync-defaults.php +1 -0
_inc/build/admin.js CHANGED
@@ -42,10 +42,10 @@ throw new Error("secure random number generation not supported by this browser\n
42
g.translate)("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=M.default.createElement("div",{className:"form-input-validation is-warning"},M.default.createElement("span",null,M.default.createElement(L.default,{size:24,icon:"sync"}),(0,g.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(k.default,{isError:!0,text:(0,g.translate)("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=(0,g.translate)("Your site is not protected from spam.")):(t=M.default.createElement(k.default,{text:(0,g.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,g.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,i.default)({},this.props,{header:(0,g.translate)("Spam filtering",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:R.FEATURE_SPAM_AKISMET_PLUS}),M.default.createElement(E.default,{onOpen:this.trackOpenCard,header:n},M.default.createElement(F.default,{support:{text:(0,g.translate)("Removes spam from comments and contact forms."),link:"https://akismet.com/jetpack/"}},M.default.createElement(q.FormFieldset,null,M.default.createElement(q.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,g.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:M.default.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{isAkismetKeyValid:(0,j.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,j.isCheckingAkismetKey)(e)}},function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,j.checkAkismetKey)(t))}}})(X)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(24),_=n(14),M=n(25),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=m({},this.props,{className:_(this.props.className,"is-compact")});return h.createElement(M,e,this.props.children)}}]),t}(h.Component);b.displayName="CompactCard",t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(65);n(1111);var b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=_({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return m.createElement("div",{className:e},m.createElement("span",null,m.createElement(M,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}]),t}(m.Component);b.displayName="FormInputValidation",b.propTypes={isError:h.bool,isWarning:h.bool,text:h.node,icon:h.string},b.defaultProps={isError:!1},t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),f=s(r,d),p=o(r,d)+1;return i(r,f,p).join("")}var a=n(489),i=n(1113),o=n(1114),s=n(1115),c=n(1116),u=n(224),l=/^\s+|\s+#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(466);e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1117),i=n(913),o=n(1118);e.exports=r},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(d)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Monitor=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(25),A=r(y),E=n(52),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.Monitor=(0,w.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){v.default.tracks.recordJetpackClick("configure-monitor")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("monitor"),t=this.props.isUnavailableInDevMode("monitor");return M.default.createElement(T.default,(0,i.default)({},this.props,{hideButton:!0,module:"monitor",header:(0,b.translate)("Downtime monitoring",{context:"Settings header"})}),M.default.createElement(S.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("monitor"),support:{text:(0,b.translate)("Keep tabs on your site and receive alerts the moment downtime is detected."),link:"https://jetpack.com/support/monitor/"}},M.default.createElement(E.ModuleToggle,{slug:"monitor",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Monitor your site's downtime")))),M.default.createElement(A.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl},(0,b.translate)("Configure your notification settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Protect=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(41),v=r(g),y=n(1121),A=r(y),E=n(44),w=r(E),k=n(516),T=r(k),L=n(14),S=r(L),C=n(15),O=r(C),z=n(71),N=n(52),D=n(30),P=n(40),x=r(P),j=n(36),R=r(j);t.Protect=(0,D.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,w.default)(r.state.whitelist,r.props.currentIp)},r.updateText=function(e){r.currentIpIsWhitelisted(),r.setState({whitelist:e.target.value}),r.props.onOptionChange(e)},r.addToWhitelist=function(){var e=r.state.whitelist+(0>=r.state.whitelist.length?"":"\n")+r.props.currentIp;r.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),r.setState({whitelist:e}),O.default.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})},r.trackOpenCard=function(){O.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=M.default.createElement(N.ModuleToggle,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return M.default.createElement(x.default,(0,i.default)({},this.props,{module:"protect",header:(0,b.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(T.default,{onOpen:this.trackOpenCard,header:n,className:(0,S.default)({"jp-foldable-settings-disable":t})},M.default.createElement(R.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect"),support:{text:(0,b.translate)("Protects your site from traditional and distributed brute force login attacks."),link:"https://jetpack.com/support/protect/"}},M.default.createElement(z.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,b.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(v.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,b.translate)("Add to whitelist"))),M.default.createElement(z.FormLabel,null,M.default.createElement(z.FormLegend,null,(0,b.translate)("Whitelisted IP addresses")),M.default.createElement(A.default,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:M.default.createElement("br",null)}}))))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=n(14),b=n(116);n(1122);var g=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return _.createElement("textarea",(0,i.default)({},b(this.props,"className"),{className:M(this.props.className,"dops-textarea")}),this.props.children)}}]),t}(_.Component);g.displayName="Textarea",t.default=g,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SSO=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(104),A=r(y),E=n(71),w=n(52),k=n(30),T=n(40),L=r(T),S=n(36),C=r(S);t.SSO=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={jetpack_sso_match_by_email:r.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:r.props.getOptionValue("jetpack_sso_require_two_step","sso")},r.handleTwoStepToggleChange=function(){r.updateOptions("jetpack_sso_require_two_step")},r.handleMatchByEmailToggleChange=function(){r.updateOptions("jetpack_sso_match_by_email")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("sso",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInDevMode("sso");return g.default.createElement(L.default,(0,i.default)({},this.props,{hideButton:!0,module:"sso",header:(0,v.translate)("WordPress.com log in",{context:"Settings header"})}),g.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso"),support:{text:(0,v.translate)("Allows registered users to log in to your site with their WordPress.com accounts."),link:"https://jetpack.com/support/sso/"}},g.default.createElement(w.ModuleToggle,{slug:"sso",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g.default.createElement(E.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Match accounts using email addresses"))),g.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(b.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Traffic=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(23),v=n(103),y=n(21),A=n(74),E=n(211),w=r(E),k=n(1125),T=n(1126),L=n(1127),S=n(1128),C=n(1129),O=n(1130),z=r(O),N=n(1131),D=n(1132),P=r(D),x=n(28),j=t.Traffic=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,getModuleOverride:this.props.getModuleOverride},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),s=this.props.isModuleFound("sitemaps"),c=this.props.isModuleFound("search"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||o||s||u||c)?M.default.createElement("div",null,M.default.createElement(w.default,null),r&&M.default.createElement(S.SiteStats,e),c&&M.default.createElement(z.default,e),n&&M.default.createElement(L.Ads,(0,i.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&M.default.createElement(C.RelatedPosts,(0,i.default)({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&M.default.createElement(k.SEO,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#seo"})),u&&M.default.createElement(T.GoogleAnalytics,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#analytics"})),s&&M.default.createElement(P.default,e),o&&M.default.createElement(N.VerificationServices,e)):null}}]),t}(M.default.Component);j.displayName="TrafficSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},lastPostUrl:(0,x.getLastPostUrl)(e),getModuleOverride:function(t){return(0,g.getModuleOverride)(e,t)}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SEO=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){A.default.tracks.recordJetpackClick("configure-seo")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Search engine optimization",{context:"Settings header"}),feature:E.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:{text:(0,b.translate)("Allows you to optimize your site and its content for better results in search engines."),link:"https://jetpack.com/support/seo-tools/"}},M.default.createElement("span",null,(0,b.translate)("You can tweak these settings if you'd like more advanced control. Read more about what you can do to {{a}}optimize your site's SEO{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your SEO settings")))}}]),t}(M.default.Component);t.SEO=(0,w.ModuleSettingsForm)(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.GoogleAnalytics=(0,w.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackConfigureClick",value:function(){A.default.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Google Analytics",{context:"Settings header"}),feature:E.FEATURE_GOOGLE_ANALYTICS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"google-analytics"},support:{text:(0,b.translate)("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions."),link:"https://jetpack.com/support/google-analytics/"}},M.default.createElement("p",null,(0,b.translate)("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/stats/day/"+this.props.siteRawUrl})}}))),!this.props.isUnavailableInDevMode("google-analytics")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your Google Analytics settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Ads=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(104),A=r(y),E=n(15),w=r(E),k=n(47),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z);t.Ads=(0,L.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.updateOptions=function(e){r.props.updateFormStateModuleOption("wordads",e)},r.trackConfigureClick=function(){w.default.tracks.recordJetpackClick("view-earnings")},r.trackConfigureWidgetClick=function(){w.default.tracks.recordJetpackClick("place_ad_widget")},r.handleChange=function(e){return function(){return r.updateOptions(e)}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInDevMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),a=this.props.getOptionValue("wordads_display_front_page","wordads"),o=this.props.getOptionValue("wordads_display_post","wordads"),s=this.props.getOptionValue("wordads_display_page","wordads"),c=this.props.getOptionValue("wordads_display_archive","wordads");return M.default.createElement(O.default,(0,i.default)({},this.props,{header:(0,b.translate)("Ads",{context:"Ads header"}),feature:k.FEATURE_WORDADS_JETPACK,hideButton:!0}),M.default.createElement(N.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:(0,b.translate)("Displays high-quality ads on your site that allow you to earn income."),link:"https://jetpack.com/support/ads/"}},M.default.createElement("p",null,(0,b.translate)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),M.default.createElement("br",null),M.default.createElement("small",{className:"jp-form-setting-explanation"},(0,b.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:M.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}}))),M.default.createElement(S.ModuleToggle,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Enable ads and display an ad below each post"))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Display ads below posts on")),M.default.createElement(A.default,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Front page"))),M.default.createElement(A.default,{checked:o,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Posts"))),M.default.createElement(A.default,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Pages"))),M.default.createElement(A.default,{checked:c,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Archives")))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Additional ad placements")),M.default.createElement(A.default,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Top of each page"))),M.default.createElement(A.default,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Second ad below post"))),M.default.createElement("small",{className:"jp-form-setting-explanation"},e&&(0,b.translate)("You can place additional ads using the Ad widget. {{link}}Try it out!{{/link}}",{components:{link:M.default.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}})))),!t&&e&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("View your earnings")))}}]),t}(M.default.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SiteStats=void 0;var a=n(11),i=r(a),o=n(113),s=r(o),c=n(51),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(1),y=r(v),A=n(8),E=n(104),w=r(E),k=n(516),T=r(k),L=n(41),S=r(L),C=n(25),O=r(C),z=n(44),N=r(z),D=n(459),P=r(D),x=n(14),j=r(x),R=n(80),Y=n(15),I=r(Y),q=n(71),B=n(30),W=n(36),U=r(W),H=n(40),F=r(H),X=n(515),V=r(X),K=function(e){function t(e){(0,p.default)(this,t);var n=(0,M.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));n.updateOptions=function(e,t){var r=n.props.getOptionValue(t,"stats"),a=!1;n.state[t+"_"+e]?(0,N.default)(r,e)&&(r=(0,P.default)(r,function(t){return t!==e})):(0,N.default)(r,e)||(r.push(e),a=!0),n.setState((0,u.default)({},t+"_"+e,!n.state[t+"_"+e]),function(){n.props.updateOptions((0,u.default)({},t,r))}),I.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},n.activateStats=function(){n.props.updateOptions({stats:!0})},n.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})},n.handleRoleToggleChange=function(e,t){return function(){return n.updateOptions(e,t)}};var r=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:a,count_roles_administrator:(0,N.default)(r,"administrator",!1),count_roles_editor:(0,N.default)(r,"editor",!1),count_roles_author:(0,N.default)(r,"author",!1),count_roles_contributor:(0,N.default)(r,"contributor",!1),count_roles_subscriber:(0,N.default)(r,"subscriber",!1),roles_administrator:!0,roles_editor:(0,N.default)(a,"editor",!1),roles_author:(0,N.default)(a,"author",!1),roles_contributor:(0,N.default)(a,"contributor",!1),roles_subscriber:(0,N.default)(a,"subscriber",!1)},n}return(0,g.default)(t,e),(0,m.default)(t,[{key:"handleStatsOptionToggle",value:function(e){var t=this;return function(){return t.props.updateFormStateModuleOption("stats",e)}}},{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?y.default.createElement(V.default,{moduleName:t.name}):n?y.default.createElement(F.default,(0,i.default)({},this.props,{header:(0,A.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),y.default.createElement(T.default,{onOpen:this.trackOpenCard,header:(0,A.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,j.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},y.default.createElement(U.default,{disableInDevMode:!0,module:t,support:{text:(0,A.translate)("Displays information on your site activity, including visitors and popular posts or pages."),link:"https://jetpack.com/support/wordpress-com-stats/"}},y.default.createElement(q.FormFieldset,null,y.default.createElement(w.default,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Put a chart showing 48 hours of views in the admin bar"))),y.default.createElement(w.default,{checked:!!this.props.getOptionValue("hide_smile"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),onChange:this.handleStatsOptionToggle("hide_smile")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Hide the stats smiley face image")),y.default.createElement("span",{className:"jp-form-setting-explanation"},(0,A.translate)("The image helps collect stats, but should work when hidden.")))),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return y.default.createElement(w.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:e.handleRoleToggleChange(t,"count_roles"),key:"count_roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Allow stats reports to be viewed by")),y.default.createElement(w.default,{checked:!0,disabled:!0},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&y.default.createElement(w.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:e.handleRoleToggleChange(t,"roles"),key:"roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):y.default.createElement(O.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:R.imagePath+"stats.svg",width:"60",height:"60",alt:(0,A.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,A.translate)("Unavailable in Dev Mode"):(0,A.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:y.default.createElement("a",{
43
href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(S.default,{onClick:this.activateStats,primary:!0},(0,A.translate)("Activate Site Stats")))))}}]),t}(y.default.Component);t.SiteStats=(0,B.ModuleSettingsForm)(K)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedPosts=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(474),A=r(y),E=n(25),w=r(E),k=n(104),T=r(k),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={show_headline:r.props.getOptionValue("show_headline","related-posts"),show_thumbnails:r.props.getOptionValue("show_thumbnails","related-posts")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("related-posts",e))},r.handleShowHeadlineToggleChange=function(){r.updateOptions("show_headline")},r.handleShowThumbnailsToggleChange=function(){r.updateOptions("show_thumbnails")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return g.default.createElement(z.default,(0,i.default)({},this.props,{hideButton:!0,module:"related-posts"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts"),support:{text:(0,v.translate)("Automatically displays similar content at the end of each post."),link:"https://jetpack.com/support/related-posts/"}},g.default.createElement(S.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show related content after posts"))),g.default.createElement(L.FormFieldset,null,g.default.createElement(T.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "Related" header to more clearly separate the related section from posts'))),g.default.createElement(T.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Use a large and visually striking layout"))),(0,v.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:g.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:g.default.createElement(A.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),g.default.createElement(L.FormLabel,{className:"jp-form-label-wide"},(0,v.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),g.default.createElement(w.default,{className:"jp-related-posts-preview"},this.state.show_headline&&g.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,v.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,v.translate)("Big iPhone/iPad Update Now Available"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"wordpress-com-news-wordpress-for-android-ui-update2.jpg",text:(0,v.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,v.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,v.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return g.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),g.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},g.default.createElement("a",{href:"#/traffic"},t.text)),g.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}]),t}(g.default.Component);t.RelatedPosts=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(47),E=n(30),w=n(52),k=n(40),T=r(k),L=n(36),S=r(L),C=n(28),O=n(61),z=n(71),N=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{module:"search",feature:A.FEATURE_SEARCH_JETPACK,hideButton:!0}),M.default.createElement(S.default,{hasChild:!0,module:{module:"search"},support:{text:(0,g.translate)("Replaces the default WordPress search with a faster, filterable search experience."),link:"https://jetpack.com/support/search"}},M.default.createElement(w.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Replace WordPress built-in search with an improved search experience")),this.props.getOptionValue("search")&&M.default.createElement(z.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Add the Jetpack search widget to your sidebar to configure advanced search filters.")))),this.props.getOptionValue("search")&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},(0,g.translate)("Add Jetpack Search Widget")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{siteAdminUrl:(0,C.getSiteAdminUrl)(e),sitePlan:(0,O.getSitePlan)(e),fetchingSiteData:(0,O.isFetchingSiteData)(e)}})((0,E.ModuleSettingsForm)(N)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationServices=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(508),v=r(g),y=n(474),A=r(y),E=n(71),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=n(473),O=r(C),z=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.activateVerificationTools=function(){return r.props.updateOptions({"verification-tools":!0})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("verification-tools");return"inactive"===this.props.getModuleOverride("google-analytics")?M.default.createElement(O.default,{title:t.name,icon:"cog",description:(0,b.translate)("%(moduleName)s has been disabled by a site administrator.",{args:{moduleName:t.name}})}):this.props.getOptionValue("verification-tools")?M.default.createElement(T.default,(0,i.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),M.default.createElement(S.default,{module:t,support:{text:(0,b.translate)("Provides the necessary hidden tags needed to verify your WordPress site with various services."),link:"https://jetpack.com/support/site-verification-tools"}},M.default.createElement("p",null,(0,b.translate)("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:M.default.createElement("strong",null),support:M.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),M.default.createElement(E.FormFieldset,null,[{id:"google",label:(0,b.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,b.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,b.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,b.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return M.default.createElement(E.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},M.default.createElement("span",null,t.label),M.default.createElement(v.default,{name:t.id,value:e.props.getOptionValue(t.id),placeholder:t.placeholder,className:"code",disabled:e.props.isUpdating(t.id),onChange:e.props.onOptionChange}))})))):M.default.createElement(O.default,{callToAction:(0,b.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}]),t}(M.default.Component);t.VerificationServices=(0,w.ModuleSettingsForm)(z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sitemaps=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(474),y=r(v),A=n(27),E=r(A),w=n(15),k=r(w),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z),D=n(28),P=t.Sitemaps=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackSitemapUrl=function(){k.default.tracks.recordJetpackClick("sitemap-url-link")},r.trackSitemapNewsUrl=function(){k.default.tracks.recordJetpackClick("sitemap-news-url-link")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getModule("sitemaps"),t=(0,E.default)(e,["extra","sitemap_url"],""),n=(0,E.default)(e,["extra","news_sitemap_url"],"");return M.default.createElement(O.default,(0,i.default)({},this.props,{module:"sitemaps",hideButton:!0}),M.default.createElement(N.default,{hasChild:!0,module:{module:"sitemaps"},support:{text:(0,g.translate)("Automatically generates the files required for search engines to index your site."),link:"https://jetpack.com/support/sitemaps/"}},M.default.createElement(S.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),M.default.createElement("p",null,M.default.createElement(y.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),M.default.createElement("br",null),M.default.createElement(y.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)('Your site is not currently accessible to search engines. You might have "Search Engine Visibility" disabled in your {{a}}Reading Settings{{/a}}.',{components:{a:M.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,D.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,D.getSiteAdminUrl)(e)}})((0,L.ModuleSettingsForm)(P))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Writing=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(23),E=n(103),w=n(28),k=n(21),T=n(74),L=n(211),S=r(L),C=n(1134),O=r(C),z=n(1137),N=r(z),D=n(1138),P=r(D),x=n(1139),j=r(x),R=n(1140),Y=r(R),I=n(1152),q=n(1153),B=r(q),W=t.Writing=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress","lazy-images"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("after-the-deadline"),r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return M.default.createElement("div",null,M.default.createElement(S.default,null),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&M.default.createElement(I.Masterbar,(0,i.default)({connectUrl:this.props.connectUrl},e)),n&&M.default.createElement(O.default,(0,i.default)({},e,{userCanManageModules:this.props.userCanManageModules})),M.default.createElement(N.default,e),M.default.createElement(B.default,e),this.props.isModuleFound("custom-content-types")&&M.default.createElement(P.default,e),M.default.createElement(j.default,e),this.props.isModuleFound("post-by-email")&&r&&M.default.createElement(Y.default,(0,i.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&M.default.createElement(y.default,null,(0,g.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(M.default.Component);W.displayName="WritingSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,A.getModule)(e,t)},settings:(0,E.getSettings)(e),masterbarIsAlwaysActive:(0,w.isAtomicSite)(e),isDevMode:(0,k.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,k.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,w.userCanEditPosts)(e),isModuleActivated:function(t){return(0,A.isModuleActivated)(e,t)},isLinked:(0,k.isCurrentUserLinked)(e),userCanManageModules:(0,w.userCanManageModules)(e),isModuleFound:function(t){return(0,T.isModuleFound)(e,t)},connectUrl:(0,k.getConnectUrl)(e),getModuleOverride:function(t){return(0,A.getModuleOverride)(e,t)}}})(W)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Composing=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(516),k=r(w),T=n(14),L=r(T),S=n(15),C=r(S),O=n(71),z=n(74),N=n(52),D=n(30),P=n(23),x=n(1135),j=r(x),R=n(40),Y=r(R),I=n(36),q=r(I),B=t.Composing=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={onpublish:r.props.getOptionValue("onpublish","after-the-deadline"),onupdate:r.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:r.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":r.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:r.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":r.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":r.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":r.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":r.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":r.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":r.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":r.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":r.props.getOptionValue("Redundant Expression","after-the-deadline")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("after-the-deadline",e))},r.handleToggleChange=function(e){return function(){return r.updateOptions(e)}},r.getToggle=function(e,t){return g.default.createElement(E.default,{checked:r.state[e],disabled:!r.props.getOptionValue("after-the-deadline")||r.props.isUnavailableInDevMode("after-the-deadline")||r.props.isSavingAnyOption(["after-the-deadline",e]),onChange:r.handleToggleChange(e)},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},r.getAtdSettings=function(){var e=r.props.getOptionValue("ignored_phrases");return g.default.createElement(q.default,{hasChild:!0,disableInDevMode:!0,module:r.props.getModule("after-the-deadline"),support:{text:(0,y.translate)("Checks your content for correct grammar and spelling, misused words, and style while you write."),link:"https://jetpack.com/support/spelling-and-grammar/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Proofreading")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Automatically proofread content when: ")),r.getToggle("onpublish",(0,y.translate)("A post or page is first published")),r.getToggle("onupdate",(0,y.translate)("A post or page is updated"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Automatic Language Detection")),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),r.getToggle("guess_lang",(0,y.translate)("Use automatically detected language to proofread posts and pages"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("English Options")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Enable proofreading for the following grammar and style rules: ")),r.getToggle("Bias Language",(0,y.translate)("Bias Language")),r.getToggle("Cliches",(0,y.translate)("Clichés")),r.getToggle("Complex Expression",(0,y.translate)("Complex Phrases")),r.getToggle("Diacritical Marks",(0,y.translate)("Diacritical Marks")),r.getToggle("Double Negative",(0,y.translate)("Double Negatives")),r.getToggle("Hidden Verbs",(0,y.translate)("Hidden Verbs")),r.getToggle("Jargon Language",(0,y.translate)("Jargon")),r.getToggle("Passive voice",(0,y.translate)("Passive Voice")),r.getToggle("Phrases to Avoid",(0,y.translate)("Phrases to Avoid")),r.getToggle("Redundant Expression",(0,y.translate)("Redundant Phrases"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null,(0,y.translate)("Ignored Phrases")),g.default.createElement(j.default,{name:"ignored_phrases",disabled:!r.props.getOptionValue("after-the-deadline"),placeholder:(0,y.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:r.props.onOptionChange}),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Confirm each new phrase you add by pressing enter."))))},r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},r.trackOpenCard=function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("after-the-deadline"),t=this.props.isModuleFound("markdown");if(!t&&!e)return null;var n=this.props.module("markdown"),r=this.props.module("after-the-deadline"),a=this.props.isUnavailableInDevMode("after-the-deadline"),o=g.default.createElement(q.default,{module:n,support:{text:(0,y.translate)("Allows you to compose content with links, lists, and other styles using the Markdown syntax."),link:"https://jetpack.com/support/markdown/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(N.ModuleToggle,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=g.default.createElement(k.default,{onOpen:this.trackOpenCard,className:(0,L.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?g.default.createElement(N.ModuleToggle,{slug:"after-the-deadline",compact:!0,disabled:a,activated:this.props.getOptionValue("after-the-deadline"),toggling:this.props.isSavingAnyOption("after-the-deadline"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return g.default.createElement(Y.default,(0,i.default)({},this.props,{header:(0,y.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&o,e&&s)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,D.ModuleSettingsForm)(B))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(1136),M=r(_),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={tags:r.props.value||[]},r.handleChange=function(e){r.setState({tags:e}),r.props.onChange&&r.props.onChange({target:{name:r.props.name,value:e.join(",")}})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement(M.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}}]),t}(m.default.Component);t.default=b,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,t,n(1),n(7)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function f(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,i=e.classNameRemove,o=e.getTagDisplayValue,s=u(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return _.default.createElement("span",b({key:n},s),o(t),!r&&_.default.createElement("a",{className:i,onClick:function(e){return a(n)}}))}function p(e){var t=(e.addTag,u(e,["addTag"])),n=t.onChange,r=t.value,a=u(t,["onChange","value"]);return _.default.createElement("input",b({type:"text",onChange:n,value:r},a))}function h(e,t){return _.default.createElement("span",null,e,t)}function m(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var _=a(n),M=(a(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g={className:"react-tagsinput-input",placeholder:"Add a tag"},v=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={tag:"",isFocused:!1},e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e}return c(t,e),M(t,[{key:"_getTagDisplayValue",value:function(e){var t=this.props.tagDisplayProp;return t?e[t]:e}},{key:"_makeTag",value:function(e){var t=this.props.tagDisplayProp;return t?i({},t,e):e}},{key:"_removeTag",value:function(e){var t=this.props.value.concat([]);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}}},{key:"_clearInput",value:function(){this.hasControlledInput()?this.props.onChangeInput(""):this.setState({tag:""})}},{key:"_tag",value:function(){return this.hasControlledInput()?this.props.inputValue:this.state.tag}},{key:"_addTags",value:function(e){var t=this,n=this.props,r=n.validationRegex,a=n.onChange,i=n.onValidationReject,o=n.onlyUnique,s=n.maxTags,c=n.value;o&&(e=l(e),e=e.filter(function(e){return c.every(function(n){return t._getTagDisplayValue(n)!==t._getTagDisplayValue(e)})}));var u=e.filter(function(e){return!r.test(t._getTagDisplayValue(e))});if(e=e.filter(function(e){return r.test(t._getTagDisplayValue(e))}),e=e.filter(function(e){var n=t._getTagDisplayValue(e);return"function"==typeof n.trim?n.trim().length>0:n}),s>=0){var d=Math.max(s-c.length,0);e=e.slice(0,d)}if(i&&u.length>0&&i(u),e.length>0){for(var f=c.concat(e),p=[],h=0;h<e.length;h++)p.push(c.length+h);return a(f,e,p),this._clearInput(),!0}return!(u.length>0)&&(this._clearInput(),!1)}},{key:"_shouldPreventDefaultEventOnAdd",value:function(e,t,n){return!!e||13===n&&(this.props.preventSubmit||!this.props.preventSubmit&&!t)}},{key:"focus",value:function(){this.input&&"function"==typeof this.input.focus&&this.input.focus(),this.handleOnFocus()}},{key:"blur",value:function(){this.input&&"function"==typeof this.input.blur&&this.input.blur(),this.handleOnBlur()}},{key:"accept",value:function(){var e=this._tag();return""!==e&&(e=this._makeTag(e),this._addTags([e]))}},{key:"addTag",value:function(e){return this._addTags([e])}},{key:"clearInput",value:function(){this._clearInput()}},{key:"handlePaste",value:function(e){var t=this,n=this.props,r=n.addOnPaste,a=n.pasteSplit;if(r){e.preventDefault();var i=d(e),o=a(i).map(function(e){return t._makeTag(e)});this._addTags(o)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,i=this._tag(),o=""===i,s=e.keyCode,c=e.key,u=-1!==a.indexOf(s)||-1!==a.indexOf(c),l=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(u){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,o,s)&&e.preventDefault()}l&&n.length>0&&o&&(e.preventDefault(),this._removeTag(n.length-1))}}},{key:"handleClick",value:function(e){e.target===this.div&&this.focus()}},{key:"handleChange",value:function(e){var t=this.props.onChangeInput,n=this.props.inputProps.onChange,r=e.target.value;n&&n(e),this.hasControlledInput()?t(r):this.setState({tag:r})}},{key:"handleOnFocus",value:function(e){var t=this.props.inputProps.onFocus;t&&t(e),this.setState({isFocused:!0})}},{key:"handleOnBlur",value:function(e){var t=this.props.inputProps.onBlur;if(this.setState({isFocused:!1}),null!=e&&(t&&t(e),this.props.addOnBlur)){var n=this._makeTag(e.target.value);this._addTags([n])}}},{key:"handleRemove",value:function(e){this._removeTag(e)}},{key:"inputProps",value:function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,u(e,["onChange","onFocus","onBlur"])),n=b({},g,t);return this.props.disabled&&(n.disabled=!0),n}},{key:"inputValue",value:function(e){return e.currentValue||e.inputValue||""}},{key:"hasControlledInput",value:function(){var e=this.props,t=e.inputValue;return"function"==typeof e.onChangeInput&&"string"==typeof t}},{key:"componentDidMount",value:function(){this.hasControlledInput()||this.setState({tag:this.inputValue(this.props)})}},{key:"componentWillReceiveProps",value:function(e){this.hasControlledInput()||this.inputValue(e)&&this.setState({tag:this.inputValue(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=(t.onChange,t.tagProps),a=t.renderLayout,i=t.renderTag,o=t.renderInput,s=(t.addKeys,t.removeKeys,t.className),c=t.focusedClassName,l=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,
44
u(t,["value","onChange","tagProps","renderLayout","renderTag","renderInput","addKeys","removeKeys","className","focusedClassName","addOnBlur","addOnPaste","inputProps","pasteSplit","onlyUnique","maxTags","validationRegex","disabled","tagDisplayProp","inputValue","onChangeInput"]);this.state.isFocused&&(s+=" "+c);var d=n.map(function(t,n){return i(b({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:l,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),f=o(b({ref:function(t){e.input=t},value:this._tag(),onPaste:this.handlePaste.bind(this),onKeyDown:this.handleKeyDown.bind(this),onChange:this.handleChange.bind(this),onFocus:this.handleOnFocus.bind(this),onBlur:this.handleOnBlur.bind(this),addTag:this.addTag.bind(this)},this.inputProps()));return _.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:s},a(d,f))}}]),t}(_.default.Component);v.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:p,renderTag:f,renderLayout:h,pasteSplit:m,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},t.default=v,e.exports=t.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(44),k=r(w),T=n(47),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=n(23),x=n(74),j=n(61),R=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={carousel_display_exif:r.props.getOptionValue("carousel_display_exif","carousel")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("carousel",e))},r.handleCarouselDisplayExifChange=function(){r.updateOptions("carousel_display_exif")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("carousel"),t=this.props.isModuleFound("videopress");if(!e&&!t)return null;var n=this.props.module("carousel"),r=this.props.getOptionValue("carousel"),a=this.props.module("videopress"),o=(0,T.getPlanClass)(this.props.sitePlan.product_slug),s=g.default.createElement(D.default,{hasChild:!0,module:{module:"carousel"},support:{text:(0,y.translate)("Replaces the standard WordPress galleries with a full-screen photo browsing experience, including comments and EXIF metadata."),link:"https://jetpack.com/support/carousel"}},g.default.createElement(S.ModuleToggle,{slug:"carousel",activated:r,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(E.default,{checked:this.state.carousel_display_exif,disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:this.handleCarouselDisplayExifChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Show photo metadata (Exif) in carousel, when available"))),g.default.createElement(L.FormLabel,null,g.default.createElement(L.FormLegend,{className:"jp-form-label-wide"},(0,y.translate)("Color scheme")),g.default.createElement(L.FormSelect,(0,i.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),c=(0,k.default)(["is-premium-plan","is-business-plan"],o)&&g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:a,support:{text:(0,y.translate)("Hosts your video files on the global WordPress.com servers."),link:"https://jetpack.com/support/videopress/"}},g.default.createElement(S.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description))),u="inactive"===this.props.getModuleOverride("videopress");return g.default.createElement(z.default,(0,i.default)({},this.props,{header:(0,y.translate)("Media"),hideButton:!e,feature:!u&&T.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),e&&s,t&&c)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,x.isModuleFound)(e,t)},sitePlan:(0,j.getSitePlan)(e),getModuleOverride:function(t){return(0,P.getModuleOverride)(e,t)}}})((0,C.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContentTypes=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=t.CustomContentTypes=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={testimonial:r.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:r.props.getOptionValue("jetpack_portfolio","custom-content-types")},r.updateCPTs=function(e){var t="testimonial"===e?!(!r.state.testimonial||r.state.portfolio):!(!r.state.portfolio||r.state.testimonial);r.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),r.setState((0,s.default)({},e,!r.state[e]))},r.linkIfActiveCPT=function(e){return r.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?g.default.createElement("a",{href:r.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):g.default.createElement("span",null)},r.handleTestimonialToggleChange=function(){r.updateCPTs("testimonial")},r.handlePortfolioToggleChange=function(){r.updateCPTs("portfolio")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("custom-content-types"))return null;var e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&(0,y.translate)("This feature has been disabled by a site administrator.");return g.default.createElement(C.default,(0,i.default)({},this.props,{module:"custom-content-types",hideButton:!0}),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Testimonial custom post type, allowing you to collect, organize, and display testimonials on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Testimonials"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{testimonialLink}}testimonials{{/testimonialLink}}. If your theme doesn’t support testimonials yet, you can display them using the shortcode\t( [testimonials] ).",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}})))),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Portfolio custom post type, allowing you to manage and showcase projects on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Portfolios"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)},getModuleOverride:function(t){return(0,T.getModuleOverride)(e,t)}}})((0,k.ModuleSettingsForm)(N))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(15),k=r(w),T=n(71),L=n(52),S=n(23),C=n(28),O=n(74),z=n(30),N=n(40),D=r(N),P=n(36),x=r(P),j=n(515),R=r(j),Y=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.getInfiniteMode=function(){return r.props.getOptionValue("infinite-scroll")?r.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},r.updateInfiniteMode=function(e){r.setState({infinite_mode:e},r.prepareOptionsToUpdate)},r.prepareOptionsToUpdate=function(){"infinite_default"===r.state.infinite_mode?r.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==r.state.infinite_mode&&"infinite_button"!==r.state.infinite_mode||r.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===r.state.infinite_mode})},r.updateOptions=function(e,t){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption(t,e))},r.trackLearnMoreIS=function(){k.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},r.state={infinite_mode:r.getInfiniteMode(),wp_mobile_excerpt:r.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:r.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:r.props.getOptionValue("wp_mobile_app_promos","minileven")},r.handleInfiniteScrollModeChange=function(e){return function(){return r.updateInfiniteMode(e)}},r.handleMinilevenOptionChange=function(e,t){return function(){return r.updateOptions(e,t)}},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");if(!t&&!n)return null;var r=this.props.getModule("infinite-scroll"),a=this.props.getModule("minileven"),o=this.props.getOptionValue(a.module),s="inactive"===this.props.getModuleOverride("infinite-scroll");return g.default.createElement(D.default,(0,i.default)({},this.props,{header:(0,y.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),s&&g.default.createElement(R.default,{moduleName:r.name,compact:!0}),t&&!s&&g.default.createElement(x.default,{hasChild:!0,module:{module:r.module},key:"theme_enhancement_"+r.module,support:{text:(0,y.translate)("Loads the next posts automatically when the reader approaches the bottom of the page."),link:"https://jetpack.com/support/infinite-scroll"}},g.default.createElement(T.FormLegend,{className:"jp-form-label-wide"},r.name),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:(0,y.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,y.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,y.translate)("Load more posts as the reader scrolls down")}].map(function(t){return g.default.createElement(T.FormLabel,{key:r.module+"_"+t.key},g.default.createElement("input",{type:"radio",name:"infinite_mode",value:t.key,checked:t.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([r.module,t.key]),onChange:e.handleInfiniteScrollModeChange(t.key)}),g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}):g.default.createElement("span",null,(0,y.translate)("Theme support required.")+" ",g.default.createElement("a",{onClick:this.trackLearnMoreIS,href:r.learn_more_button+"#theme",title:(0,y.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,y.translate)("Learn more")))),n&&g.default.createElement(x.default,{hasChild:!0,module:{module:a.module},key:"theme_enhancement_"+a.module,support:{text:(0,y.translate)("Enables a lightweight, mobile-friendly theme that will be displayed to visitors on mobile devices."),link:"https://jetpack.com/support/mobile-theme"}},g.default.createElement(L.ModuleToggle,{slug:a.module,activated:o,toggling:this.props.isSavingAnyOption(a.module),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description)),g.default.createElement(T.FormFieldset,null,[{key:"wp_mobile_excerpt",label:(0,y.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,y.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,y.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}].map(function(t){return g.default.createElement(E.default,{checked:e.state[t.key],disabled:!o||e.props.isSavingAnyOption([a.module,t.key]),onChange:e.handleMinilevenOptionChange(t.key,a.module),key:a.module+"_"+t.key},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,S.getModule)(e,t)},isInfiniteScrollSupported:(0,C.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,z.ModuleSettingsForm)(Y)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(1141),E=r(A),w=n(25),k=r(w),T=n(15),L=r(T),S=n(71),C=n(52),O=n(23),z=n(74),N=n(30),D=n(40),P=r(D),x=n(36),j=r(x),R=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.regeneratePostByEmailAddress=function(e){L.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),r.props.regeneratePostByEmailAddress()},r.address=function(){var e=r.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return M.default.createElement(P.default,(0,i.default)({},this.props,{module:"post-by-email",hideButton:!0}),M.default.createElement(j.default,{hasChild:!0,disableInDevMode:!0,module:e,support:{text:(0,g.translate)("Allows you to publish new posts by sending an email to a special address."),link:"https://jetpack.com/support/post-by-email/"}},this.props.userCanManageModules?M.default.createElement(C.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),M.default.createElement(S.FormFieldset,null,M.default.createElement(S.FormLabel,null,M.default.createElement(S.FormLegend,null,(0,g.translate)("Email Address")),M.default.createElement(E.default,{value:r,disabled:!t||n,copy:(0,g.translate)("Copy",{context:"verb"}),copied:(0,g.translate)("Copied!"),prompt:(0,g.translate)("Highlight and copy the following text to your clipboard:")})),M.default.createElement(y.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,g.translate)("Regenerate address"):(0,g.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&M.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,g.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{module:function(t){return(0,O.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,N.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(14),y=r(v),A=n(116),E=r(A),w=n(1142),k=r(w),T=n(508),L=r(T);n(1151);var S=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={isCopied:!1,disabled:!1},r.showConfirmation=function(){r.setState({isCopied:!0}),r.confirmationTimeout=setTimeout(function(){r.setState({isCopied:!1})},4e3)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}},{key:"render",value:function(){var e=(0,E.default)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return g.default.createElement("span",{className:(0,y.default)("dops-clipboard-button-input",this.props.className)},g.default.createElement(L.default,(0,i.default)({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),g.default.createElement(k.default,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}]),t}(g.default.Component);S.displayName="ClipboardButtonInput",S.propTypes={value:M.default.string,disabled:M.default.bool,className:M.default.string,copied:M.default.string,copy:M.default.string,prompt:M.default.string},S.defaultProps={value:""},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(113),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(41),g=r(b),v=n(7),y=n(149),A=n(1),E=n(1143),w=n(116),k=n(64),T=n(14),L=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.displayPrompt=function(){window.prompt(r.props.prompt,r.props.text)},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=y.findDOMNode(this.refs.button);this.clipboard=new E(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard}},{key:"render",value:function(){var e=T("dops-clipboard-button",this.props.className);return A.createElement(g.default,(0,i.default)({ref:"button"},w(this.props,(0,s.default)(this.constructor.propTypes)),{className:e}))}}]),t}(A.Component);L.displayName="ClipboardButton",L.propTypes={className:v.string,text:v.string,prompt:v.string,onCopy:v.func},L.defaultProps={onCopy:k},t.default=L,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1144),n(1146),n(1147)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var u=a(t),l=a(n),d=a(r),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,d.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(l.default);e.exports=h})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1145)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=o})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){a.off(e,r),t.apply(n,arguments)}var a=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r<a;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],a=[];if(r&&t)for(var i=0,o=r.length;i<o;i++)r[i].fn!==t&&r[i].fn._!==t&&a.push(r[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n},function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return c(document.body,e,t,n)}var s=n(1148),c=n(1149);e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function a(e,t,n,a,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,a,i)}))}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1150);e.exports=a},function(e,t){function n(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Masterbar=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(30),A=n(40),E=r(A),w=n(36),k=r(w),T=n(52);t.Masterbar=(0,y.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return M.default.createElement(E.default,(0,i.default)({},this.props,{header:(0,b.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"masterbar"},support:{text:(0,b.translate)("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader."),
45
- link:"https://jetpack.com/support/masterbar/"}},M.default.createElement(T.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("The WordPress.com toolbar replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications. Centralize your WordPress experience with a single global toolbar.")))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,b.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(851),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=n(52),D=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){"photon"===e?!1==!t?r.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):r.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):r.props.updateOptions((0,s.default)({},e,!t))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("lazy-images");if(!e&&!t)return null;var n=this.props.module("photon"),r=this.props.module("lazy-images");return g.default.createElement(C.default,(0,i.default)({},this.props,{header:(0,y.translate)("Speed up your site"),hideButton:!0}),e&&g.default.createElement(z.default,{hasChild:!0,disableInDevMode:!0,module:n,support:{text:(0,y.translate)("Hosts your image files on the global WordPress.com servers."),link:"https://jetpack.com/support/photon/"}},g.default.createElement(N.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(n.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(n.long_description)))),t&&g.default.createElement(z.default,{hasChild:!0,module:r,support:{text:(0,y.translate)("Delays the loading of images until they are visible in the visitor's browser."),link:"https://jetpack.com/support/lazy-images/"}},g.default.createElement(N.ModuleToggle,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(r.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(r.long_description)))))}}]),t}(b.Component));t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})(D),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(23),b=n(103),g=n(21),v=n(74),y=n(28),A=n(211),E=r(A),w=n(1155),k=n(1156),T=n(1157),L=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?m.default.createElement("div",null,m.default.createElement(E.default,null),t&&m.default.createElement(w.Publicize,e),n&&m.default.createElement(k.ShareButtons,e),r&&m.default.createElement(T.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,b.getSettings)(e),isDevMode:(0,g.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,g.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,v.isModuleFound)(e,t)},isLinked:(0,g.isCurrentUserLinked)(e),connectUrl:(0,g.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Publicize=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.Publicize=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,a=this.props.siteRawUrl,o=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||o?M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"publicize"},support:{text:(0,b.translate)("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter."),link:"https://jetpack.com/support/publicize/"}},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:o,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Automatically share your posts to social networks"))),o&&function(){if(!t)return n?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,b.translate)("Connect your social media accounts")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}()):null}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShareButtons=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.ShareButtons=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,a=this.props.siteAdminUrl,o=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"sharing"},support:{text:(0,b.translate)("Adds sharing buttons to your content so that visitors can share it on social media sites."),link:"https://jetpack.com/support/sharing/"}},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Add sharing buttons to your posts"))),s&&function(){return o?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,b.translate)("Configure your sharing buttons")):t?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,b.translate)("Configure your sharing buttons")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}())}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Likes=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(30),v=n(40),y=r(v),A=n(36),E=r(A),w=n(52);t.Likes=(0,g.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return M.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,b.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(E.default,{disableInDevMode:!0,module:{module:"likes"},support:{text:(0,b.translate)("Adds like buttons to your content so that visitors can show their appreciation or enjoyment."),link:"https://jetpack.com/support/likes/"}},M.default.createElement(w.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Allow readers to show their appreciation of your posts by adding a like button to your content"))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchableModules=void 0;var a=n(51),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(10),y=n(228),A=r(y),E=n(44),w=r(E),k=n(8),T=n(850),L=r(T),S=n(30),C=n(23),O=n(74),z=n(40),N=r(z),D=n(36),P=r(D),x=n(28),j=n(21),R=t.SearchableModules=(0,S.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.handleBannerClick=function(e){return function(){return r.props.updateOptions((0,i.default)({},e,!0))}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","custom-css","enhanced-distribution","json-api","latex","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,A.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,w.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(g.default.createElement(Y,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(g.default.createElement(Y,{key:a,moduleData:n})):r.push(g.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,k.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.handleBannerClick(n.module),title:n.name}))}}),g.default.createElement("div",null,r)}}]),t}(b.Component));R.propTypes={searchTerm:M.default.string},R.defaultProps={searchTerm:""};var Y=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.moduleData,t=this.props.devMode;return g.default.createElement(N.default,{header:e.name,action:e.module,hideButton:!0},g.default.createElement(P.default,{disableInDevMode:t,module:{module:e.module},support:{link:e.learn_more_button}},e.description))}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{modules:(0,C.getModules)(e),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)},canManageModules:(0,x.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,j.isUnavailableInDevMode)(e,t)},isDevMode:(0,j.isDevMode)(e)}})(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(7),g=r(b),v=n(8),y=n(10),A=n(30),E=n(104),w=r(E),k=n(40),T=r(k),L=n(36),S=r(L),C=n(474),O=r(C),z=n(498),N=n(1160),D=n(103),P=n(15),x=r(P),j=function(){return x.default.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"})},R=function(){return x.default.tracks.recordJetpackClick({target:"what-data-jetpack-sync",feature:"privacy"})},Y=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.isPrivacyFound=function(){return!r.props.searchTerm||[(0,v.translate)("privacy",{context:"Search term."}),(0,v.translate)("tracks",{context:"Search term."}),(0,v.translate)("data",{context:"Search term."}),(0,v.translate)("gdpr",{context:"Search term."}),(0,v.translate)("tos",{context:"Search term."}),(0,v.translate)("terms of service",{context:"Search term."})].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1},r.togglePrivacy=function(){var e=r.props.trackingSettings.tracks_opt_out;r.props.setTrackingSettings(!e)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchTrackingSettings()}},{key:"render",value:function(){var e=this.props,t=e.searchTerm,n=e.active;return t||n?this.isPrivacyFound()&&M.default.createElement("div",null,M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,v.translate)("Privacy Settings",{context:"Settings header"}),hideButton:!0}),M.default.createElement(S.default,{hasChild:!0},M.default.createElement("p",null,(0,v.translate)("We are committed to your privacy and security. "),M.default.createElement("br",null),(0,v.translate)("Read about how Jetpack uses your data in the {{pp}}Automattic Privacy Policy{{/pp}} and our {{js}}What Data Does Jetpack Sync?{{/js}} support document.",{components:{pp:M.default.createElement(O.default,{href:"https://automattic.com/privacy/",onClick:j,target:"_blank",rel:"noopener noreferrer"}),js:M.default.createElement(O.default,{href:"https://jetpack.com/support/what-data-does-jetpack-sync/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,M.default.createElement(w.default,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,v.translate)("Send information to help us improve our products.")))))):null}}]),t}(M.default.Component);Y.displayName="PrivacySettings",Y.propTypes={searchTerm:g.default.string,active:g.default.bool,toggleTracking:g.default.func,getOptionValue:g.default.func,isSavingAnyOption:g.default.func},Y.defaultProps={searchTerm:"",active:!1},t.default=(0,y.connect)(function(e){return{settings:(0,D.getSettings)(e),trackingSettings:(0,z.getTrackingSettings)(e),isUpdatingTrackingSettings:(0,z.isUpdatingTrackingSettings)(e),isFetchingTrackingSettings:(0,z.isFetchingTrackingSettingsList)(e)}},function(e){return{setTrackingSettings:function(t){x.default.tracks.setOptOut(t),e((0,N.updateTrackingSettings)({tracks_opt_out:t}))},fetchTrackingSettings:function(){return e((0,N.fetchTrackingSettings)())}}})((0,A.ModuleSettingsForm)(Y)),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrackingSettings=t.fetchTrackingSettings=void 0;var r=n(114),a=n(8),i=n(16),o=n(56),s=function(e){return e&&e.__esModule?e:{default:e}}(o);t.fetchTrackingSettings=function(){return function(e){return e({type:i.USER_TRACKING_SETTINGS_FETCH}),s.default.fetchUserTrackingSettings().then(function(t){return e({type:i.USER_TRACKING_SETTINGS_FETCH_SUCCESS,settings:t}),t}).catch(function(t){e({type:i.USER_TRACKING_SETTINGS_FETCH_FAIL,error:t})})}},t.updateTrackingSettings=function(e){return function(t){var n={progress:(0,a.translate)("Updating privacy settings…"),success:(0,a.translate)("Updated privacy settings."),error:function(e){return(0,a.translate)("Error updating privacy settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},o=function(){return e};return t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:i.USER_TRACKING_SETTINGS_UPDATE,updatedSettings:e}),s.default.updateUserTrackingSettings(e).then(function(e){t({type:i.USER_TRACKING_SETTINGS_UPDATE_SUCCESS,updatedSettings:o(),success:e}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))}).catch(function(a){t({type:i.USER_TRACKING_SETTINGS_UPDATE_FAIL,updatedSettings:e,success:!1,error:a}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-error",n.error(a),{id:"tracking-settings-update"}))})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(25),b=r(M),g=n(8),v=n(915),y=r(v),A=n(21),E=n(80),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"jp-jetpack-connect__container"},m.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,g.translate)("Welcome to Jetpack")),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.")),m.default.createElement(y.default,{from:"landing-page-top"})),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__design"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("WordPress themes and customization tools for designing your site.")},(0,g.translate)("Design the perfect website")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Bring your ideas to life with elegant and professional designs and code-free customization tools."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("img",{src:E.imagePath+"feature-photon-med.jpg",srcSet:E.imagePath+"feature-photon-sm.jpg 600w, "+E.imagePath+"feature-photon-med.jpg 770w, "+E.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:(0,g.translate)("Jetpack's photon serves up lightning fast, optimized images")}),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's WordPress themes"),className:"dops-section-header__label"},(0,g.translate)("Professional themes")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Find the perfect design for your site from hundreds of available themes.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's customization tools"),className:"dops-section-header__label"},(0,g.translate)("Code-free customization")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Customize your site with endless widget options, image galleries, and embedded media.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's performance features"),className:"dops-section-header__label"},(0,g.translate)("Speed up your site")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Deliver blazing fast images and video and improve site load times."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Drive more traffic to your site with Jetpack")},(0,g.translate)("Increase traffic and revenue")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Reach more people and earn money with automated marketing tools.")),m.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},m.default.createElement("img",{src:E.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:(0,g.translate)("Decoration: Jetpack clouds",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"})," ",m.default.createElement("img",{src:E.imagePath+"stat-bars.svg",width:"400",alt:(0,g.translate)("Decoration: Jetpack bar graph",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"}))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's site stats feature"),className:"dops-section-header__label"},(0,g.translate)("Track your growth")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Keep an eye on your success with simple, concise, and mobile-friendly stats.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's publicize features"),className:"dops-section-header__label"},(0,g.translate)("Automated marketing")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Schedule social media posts in advance, show related content, and give better search results.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's ads and PayPal features"),className:"dops-section-header__label"},(0,g.translate)("Generate revenue")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Monetize your site with high-quality ads and take PayPal payments."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__security"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Keep your site safe, 24/7")},(0,g.translate)("Keep your site safe, 24/7")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's monitor feature"),className:"dops-section-header__label"},(0,g.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Be alerted about any unexpected downtime the moment it happens.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's Protect features"),className:"dops-section-header__label"},(0,g.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Guard your site against brute force login attacks, spam, and harmfulmalware injections.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:"Jetpack's backup feature",className:"dops-section-header__label"},(0,g.translate)("Backup and restore")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Automatic, real-time backups mean your entire site is always ready to be restored."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Join the millions of users who rely on Jetpack to enhance and secure their sites. We're passionate about WordPress and here to make your life easier.")),m.default.createElement(y.default,{from:"landing-page-bottom"})))}}]),t}(m.default.Component);w.displayName="JetpackConnect",t.default=(0,_.connect)(function(e){return{connectUrl:(0,A.getConnectUrl)(e)}})(w),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.JetpackDisconnectDialog=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(25),E=r(A),w=n(65),k=r(w),T=n(1163),L=r(T),S=n(47),C=n(64),O=r(C),z=n(15),N=r(z),D=n(61),P=n(21),x=n(28),j=t.JetpackDisconnectDialog=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.getPlanFeatures=function(){switch((0,S.getPlanClass)(r.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,g.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,g.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,g.translate)("Brute force attack protection and downtime monitoring"),icon:"lock"},{text:(0,g.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},r.closeModal=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),r.props.toggleModal()},r.disconnectSiteTrack=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),r.props.disconnectSite()},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return this.props.show&&M.default.createElement(L.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},M.default.createElement(E.default,{className:"jp-connection-settings__modal-body"},M.default.createElement("h2",null,(0,g.translate)("Disconnect Jetpack")),M.default.createElement("h4",null,(0,g.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace(/::/g,"/")}})),M.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return M.default.createElement("li",{key:"feature_"+e.icon},M.default.createElement(k.default,{icon:e.icon,size:18}),e.text)})),M.default.createElement("div",{className:"jp-connection-settings__modal-actions"},M.default.createElement(y.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,g.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),M.default.createElement(y.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,g.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),M.default.createElement("p",{className:"jp-connection-settings__modal-more"},M.default.createElement("a",{href:"https://jetpack.com/features/"},(0,g.translate)("Read more about Jetpack benefits")))))}}]),t}(M.default.Component);j.propTypes={show:m.default.bool,toggleModal:m.default.func,disconnectSite:m.default.func},j.defaultProps={show:!1,toggleModal:O.default,disconnectSite:O.default},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,x.getSiteRawUrl)(e),isDisconnecting:(0,
46
- P.isDisconnectingSite)(e),sitePlan:(0,D.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,P.disconnectSite)())}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){L=!0}function i(){L=!1}var o=n(11),s=r(o),c=n(463),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(7),y=n(1),A=n(149),E=n(14),w=n(24),k=n(116),T=n(1164),L=!1;n(1166);var S=function(e){function t(){var e,n,r,a;(0,p.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,M.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(o))),r.state={overlayMouseDown:!1},r.handleEscapeKey=function(e){27===e.keyCode&&r.maybeClose()},r.maybeClose=function(){r.props.onRequestClose&&!L&&r.props.onRequestClose()},r.handleMouseDownOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.setState({overlayMouseDown:!0})},r.handleClickOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.state.overlayMouseDown&&r.props.onRequestClose&&!L&&(r.setState({overlayMouseDown:!1}),r.props.onRequestClose())},r.handleMouseEventModal=function(e){e.stopPropagation()},a=n,(0,M.default)(r,a)}return(0,g.default)(t,e),(0,m.default)(t,[{key:"componentDidMount",value:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{T.activate(A.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{T.deactivate()}catch(e){}}},{key:"render",value:function(){var e=void 0,t=this.props,n=t.style,r=t.className,a=t.width,i=t.title,o=(0,u.default)(t,["style","className","width","title"]),c=k(o,"onRequestClose"),l=c.forwardedProps;switch(a){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}var d=w({},n,e);return y.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},y.createElement("div",(0,s.default)({className:E("dops-modal",r),style:d,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":i},l),this.props.children))}}]),t}(y.Component);S.propTypes={style:v.object,width:v.oneOf(["wide","medium","narrow"]),className:v.string,title:v.string,initialFocus:v.string,onRequestClose:v.func},S.defaultProps={style:{}},S.preventClose=a,S.allowClose=i,e.exports=S},function(e,t,n){function r(e,t){function n(e){if(!k){var t={onActivate:e&&void 0!==e.onActivate?e.onActivate:C.onActivate};return k=!0,T=!1,w=document.activeElement,t.onActivate&&t.onActivate(),l(),O}}function r(e){if(k){var t={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:C.returnFocusOnDeactivate,onDeactivate:e&&void 0!==e.onDeactivate?e.onDeactivate:C.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){i(w)},0),k=!1,T=!1,this}}function c(){!T&&k&&(T=!0,d())}function u(){T&&k&&(T=!1,l())}function l(){if(k)return s&&s.pause(),s=O,g(),i(p()),document.addEventListener("focus",_,!0),document.addEventListener("click",m,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",M,!0),O}function d(){if(k&&s===O)return document.removeEventListener("focus",_,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",M,!0),s=null,O}function f(e){var t=C[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function p(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):S.contains(document.activeElement)?document.activeElement:y[0]||f("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){C.clickOutsideDeactivates&&!S.contains(e.target)&&r({returnFocus:!1})}function m(e){C.clickOutsideDeactivates||S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(e){S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur(),L&&v(L))}function M(e){"Tab"!==e.key&&9!==e.keyCode||b(e),!1!==C.escapeDeactivates&&a(e)&&r()}function b(e){if(g(),e.target.hasAttribute("tabindex")&&Number(e.target.getAttribute("tabindex"))<0)return L=e;e.preventDefault();var t=y.indexOf(e.target);return e.shiftKey?i(e.target===A||-1===y.indexOf(e.target)?E:y[t-1]):e.target===E?i(A):void i(y[t+1])}function g(){y=o(S),A=y[0],E=y[y.length-1]}function v(e){if(e.shiftKey)return i(E);i(A)}var y=[],A=null,E=null,w=null,k=!1,T=!1,L=null,S="string"==typeof e?document.querySelector(e):e,C=t||{};C.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,C.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates;var O={activate:n,deactivate:r,pause:c,unpause:u};return O}function a(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function i(e){e&&e.focus&&e!==document.activeElement&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}var o=n(1165),s=null;e.exports=r},function(e,t){function n(e){function t(r,a){if(r===e.documentElement)return!1;for(var i=0,o=n.length;i<o;i++)if(n[i][0]===r)return n[i][1];a=a||e.defaultView.getComputedStyle(r);var s=!1;return"none"===a.display?s=!0:r.parentNode&&(s=t(r.parentNode)),n.push([r,s]),s}var n=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!t(n,r)||"hidden"===r.visibility}}e.exports=function(e,t){t=t||{};var r=e.ownerDocument||e,a=[],i=[],o=n(r),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s.join(","));if(t.includeContainer){var u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;s.some(function(t){return u.call(e,t)})&&(c=Array.prototype.slice.apply(c),c.unshift(e))}for(var l,d,f=0,p=c.length;f<p;f++)l=c[f],(d=parseInt(l.getAttribute("tabindex"),10)||l.tabIndex)<0||"INPUT"===l.tagName&&"hidden"===l.type||l.disabled||o(l,r)||(0===d?a.push(l):i.push({index:f,tabIndex:d,node:l}));var h=i.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return{__html:e.jumpstart_desc}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(3),c=r(s),u=n(6),l=r(u),d=n(4),f=r(d),p=n(5),h=r(p),m=n(1),_=r(m),M=n(18),b=n(10),g=n(41),v=r(g),y=n(8),A=n(916),E=n(23),w=n(80),k=n(475),T=r(k),L=function(e){function t(){var e,n,r,a;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=(0,f.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),r.activateButton=function(){return _.default.createElement(v.default,{primary:!0,onClick:r.props.jumpStartActivate,disabled:r.props.isJumpstarting},r.props.isJumpstarting?(0,y.translate)("Activating recommended features…"):(0,y.translate)("Activate recommended features"))},a=n,(0,f.default)(r,a)}return(0,h.default)(t,e),(0,l.default)(t,[{key:"renderInnerContent",value:function(){var e=this.props.jumpstartFeatures.map(function(e){return _.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},_.default.createElement("div",{className:"jp-jumpstart__feature-content"},_.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),_.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return _.default.createElement("div",{className:"jp-jumpstart"},_.default.createElement("p",null,(0,y.translate)("We're now collecting stats, securing your site, and speeding up your images. Pretty soon you'll be able to see everything going on with your site right through Jetpack! Welcome aboard.")),_.default.createElement("p",null,this.activateButton()),_.default.createElement("div",null,_.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,y.translate)("Jetpack's recommended features include:")),_.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),_.default.createElement("p",{className:"jp-jumpstart__note"},(0,y.translate)("Features can be activated or deactivated at any time."))))}},{key:"render",value:function(){return _.default.createElement(T.default,{svg:_.default.createElement("img",{src:w.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,y.translate)("Person with laptop")}),title:(0,y.translate)("Your Jetpack site is ready to go!"),content:this.renderInnerContent(),dismiss:this.props.jumpStartSkip})}}]),t}(_.default.Component);L.displayName="JumpStart",t.default=(0,b.connect)(function(e){return{isJumpstarting:(0,A.isJumpstarting)(e),jumpstartFeatures:(0,E.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,M.bindActionCreators)({jumpStartActivate:A.jumpStartActivate,jumpStartSkip:A.jumpStartSkip},e)})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.jumpStartSkip=t.jumpStartActivate=void 0;var a=n(114),i=n(8),o=n(646),s=n(15),c=r(s),u=n(16),l=n(56),d=r(l),f=n(23),p=n(103),h=(t.jumpStartActivate=function(){return function(e){return e({type:u.JUMPSTART_ACTIVATE}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-info",(0,i.translate)("Activating recommended features…"),{id:"jumpstart-activate"})),d.default.jumpStart("activate").then(function(){e({type:u.JUMPSTART_ACTIVATE_SUCCESS,jumpStart:!0}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_submit",{}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-success",(0,i.translate)("Recommended features active."),{id:"jumpstart-activate",duration:2e3})),e((0,f.fetchModules)()),e((0,p.fetchSettings)())}).catch(function(t){e({type:u.JUMPSTART_ACTIVATE_FAIL,error:t}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-error",(0,i.translate)("Recommended features failed to activate. %(error)s",{args:{error:t}}),{id:"jumpstart-activate"}))})}},(0,o.createHistory)());t.jumpStartSkip=function(){return function(e){return e({type:u.JUMPSTART_SKIP}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_skip",{}),h.push(window.location.pathname+"?page=jetpack#/dashboard"),d.default.jumpStart("deactivate").then(function(){e({type:u.JUMPSTART_SKIP_SUCCESS,jumpStart:!1})}).catch(function(t){e({type:u.JUMPSTART_SKIP_FAIL,error:t})})}}},function(e,t,n){function r(e,t,n){t=(n?i(e,t,n):void 0===t)?1:c(o(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var u=0,l=0,d=Array(s(r/t));u<r;)d[l++]=a(e,u,u+=t);return d}var a=n(466),i=n(219),o=n(227),s=Math.ceil,c=Math.max;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(7),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(14),E=r(A),w=n(61),k=n(21),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.siteRawUrl,n=e.inDevMode,r=m.default.createElement("a",{href:"https://wordpress.com/stats/activity/"+t}),a=(0,y.translate)("{{a}}View your site's activity{{/a}} in a single feed.",{components:{a:r}});return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(v.default,{label:(0,y.translate)("Activity"),isModule:!1,className:(0,E.default)({"jp-dash-item__is-inactive":n}),pro:!1},m.default.createElement("p",{className:"jp-dash-item__description"},n?(0,y.translate)("Unavailable in Dev Mode."):a)))}}]),t}(h.Component);T.propTypes={inDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,sitePlan:M.default.object.isRequired},T.defaultProps={inDevMode:!1,siteRawUrl:"",sitePlan:""},t.default=(0,b.connect)(function(e){return{sitePlan:(0,w.getSitePlan)(e),inDevMode:(0,k.isDevMode)(e)}})(T),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashStats=void 0;var a=n(59),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(228),y=r(v),A=n(27),E=r(A),w=n(234),k=r(w),T=n(25),L=r(T),S=n(1173),C=r(S),O=n(10),z=n(918),N=r(z),D=n(41),P=r(D),x=n(867),j=r(x),R=n(8),Y=n(15),I=r(Y),q=n(80),B=n(21),W=n(28),U=n(1182),H=r(U),F=n(1183),X=r(F),V=n(62),K=n(23),J=n(103),G=n(515),Q=r(G),Z=t.DashStats=function(e){function t(e){(0,u.default)(this,t);var n=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"barClick",value:function(e){e.data.link&&(I.default.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!==(0,i.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,y.default)(t.statsData[e].data,function(a){var i=a[1],o=a[0],s="",c="";r+=i,"day"===e?(s=(0,R.moment)(o).format("MMM D"),c=(0,R.moment)(o).format("MMMM Do")):"week"===e?(o=o.replace(/W/g,"-"),s=(0,R.moment)(o).format("MMM D"),c=(0,R.translate)("Week of %(date)s",{args:{date:(0,R.moment)(o).format("MMMM Do")}})):(s=(0,R.moment)(o).format("MMM"),c=(0,R.moment)(o).format("MMMM, YYYY")),n.push({label:s,value:i,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+o},tooltipData:[{label:c,value:(0,R.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,R.numberFormat)(i)}}),className:"tooltip class"},{label:(0,R.translate)("Click to view detailed stats.")}]})}),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return(0,E.default)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},g.default.createElement(C.default,{data:e,barClick:this.barClick}),0===e.length&&g.default.createElement(j.default,null)),g.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},g.default.createElement(X.default,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){var e=this,t=function(){e.setState({emptyStatsDismissed:!0}),e.props.updateOptions({dismiss_empty_stats_card:!0})};return g.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},g.default.createElement("img",{src:q.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,R.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),g.default.createElement("p",null,(0,R.translate)("Hello there! Your stats have been activated."),g.default.createElement("br",null),(0,R.translate)("Just give us a little time to collect data so we can display it for you here.")),g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Okay, got it!")))}},{key:"renderStatsArea",value:function(){var e=this,t=function(){return e.props.updateOptions({stats:!0})};if(this.props.getOptionValue("stats")){if(this.statsErrors())return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("span",null,(0,R.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:g.default.createElement("a",{href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}})));var n=this.statsChart(this.props.activeTab),r=n.chartData,a=n.totalViews,i=r.length&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return g.default.createElement("div",{className:"jp-at-a-glance__stats-container"},i?this.renderEmptyStatsCard():this.renderStatsChart(r))}return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},g.default.createElement("img",{src:q.imagePath+"stats.svg",width:"60",height:"60",alt:(0,R.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,R.translate)("Unavailable in Dev Mode"):(0,R.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:g.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this;if(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)return!1;var t=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};return this.props.getOptionValue("stats")&&!this.statsErrors()?g.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,R.translate)("Days"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,R.translate)("Weeks"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,R.translate)("Months")))):void 0}},{key:"getClass",value:function(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){return"inactive"===this.props.getModuleOverride("stats")?g.default.createElement("div",null,g.default.createElement(Q.default,{moduleName:(0,R.translate)("Site Stats")})):this.props.isModuleAvailable&&g.default.createElement("div",null,g.default.createElement(H.default,{range:this.props.activeTab}),g.default.createElement(N.default,{label:(0,R.translate)("Site Stats")},this.maybeShowStatsTabs()),g.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(b.Component);Z.propTypes={isDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.any.isRequired,isModuleAvailable:M.default.bool.isRequired},t.default=(0,O.connect)(function(e){return{isModuleAvailable:(0,K.isModuleAvailable)(e,"stats"),activeTab:(0,V.getActiveStatsTab)(e),isDevMode:(0,B.isDevMode)(e),isLinked:(0,B.isCurrentUserLinked)(e),connectUrl:(0,B.getConnectUrl)(e),statsData:(0,k.default)((0,V.getStatsData)(e))?(0,W.getInitialStateStatsData)(e):(0,V.getStatsData)(e),isEmptyStatsCardDismissed:(0,J.emptyStatsCardDismissed)(e),getModuleOverride:function(t){return(0,K.getModuleOverride)(e,t)}}},function(e){return{switchView:function(t){return e((0,V.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,V.fetchStatsData)(t))}}})(Z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(64),M=n(919),b=n(1174),g=n(1180);n(1181);var v=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={maxBars:100,width:650},r.resize=function(){var e=r.refs.chart,t=e.clientWidth-82,n=void 0;g.hasTouch()?(t=t<=0?350:t,n=Math.floor(t/r.props.minTouchBarWidth)):n=Math.floor(t/r.props.minBarWidth),r.setState({maxBars:n,width:t})},r.getYAxisMax=function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r},r.getData=function(){var e=r.props.data;return e=e.slice(0-r.state.maxBars)},r.getValues=function(){var e=r.getData();return e=e.map(function(e){return e.value},r)},r.isEmptyChart=function(e){return e=e.filter(function(e){return e>0},r),0===e.length},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resize=M(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){var e=this.getValues(),t=this.getYAxisMax(e),n=this.getData(),r=void 0;return e.length&&this.isEmptyChart(e)&&(r=h.createElement("div",{className:"dops-chart__empty"},h.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),h.createElement("div",{ref:"chart",className:"dops-chart"},h.createElement("div",{className:"dops-chart__y-axis-markers"},h.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),h.createElement("div",{className:"dops-chart__y-axis"},h.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),h.createElement(b,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:g.hasTouch()}),r)}}]),t}(h.Component);v.displayName="ModuleChart",v.propTypes={loading:m.bool,data:m.array,minTouchBarWidth:m.number,minBarWidth:m.number,barClick:m.func},v.defaultProps={minTouchBarWidth:42,minBarWidth:15,barClick:_},t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(1175),M=n(1178),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.buildBars=function(e){var t=r.props.data.length,n=r.props.chartWidth,a=n/t,i="bottom right";return r.props.data.map(function(r,o){var s=a*(o+1);return s+230>n&&s+a-230>0&&(i="bottom left"),m.createElement(_,{index:o,key:o,isTouch:this.props.isTouch,tooltipPosition:i,className:r.className,clickHandler:this.props.barClick,data:r,max:e,count:t})},r)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.createElement("div",null,m.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),m.createElement(M,{data:this.props.data,labelWidth:42}))}}]),t}(m.Component);b.displayName="ModuleChartBarContainer",b.propTypes={isTouch:h.bool,data:h.array,yAxisMax:h.number,width:h.number,barClick:h.func},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(1176),b=n(65),g=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showPopover:!1},r.buildSections=function(){var e=r.props.data.value,t=r.props.max,n=t?Math.ceil(e/t*1e4)/100:0,a=100-n,i=Math.max(1,Math.floor(a)),o=[],s=r.props.data.nestedValue,c={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!r.props.active},u=void 0,l=void 0,d=void 0,f={height:i+"%"};o.push(m.createElement("div",{key:"spacer",className:_(c),style:f}));var p={top:i+"%"};return s&&(l=e?Math.ceil(s/e*1e4)/100:0,d={height:l+"%"},u=m.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:d})),o.push(m.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:p},u)),o.push(m.createElement("div",{key:"label",className:"dops-chart__bar-label"},r.props.label)),o},r.clickHandler=function(){"function"==typeof r.props.clickHandler&&r.props.clickHandler(r.props.data)},r.mouseEnter=function(){r.setState({showPopover:!0})},r.mouseLeave=function(){r.setState({showPopover:!1})},r.renderTooltip=function(){if(!r.props.data.tooltipData||!r.props.data.tooltipData.length||r.props.isTouch)return null;var e=r.props.data.tooltipData,t=e.map(function(e,t){var n=["module-content-list-item"],r=void 0;return e.icon&&(r=m.createElement(b,{icon:e.icon,size:18})),n.push(e.className),m.createElement("li",{key:t,className:n.join(" ")},m.createElement("span",{className:"dops-wrapper"},m.createElement("span",{className:"value"},e.value),m.createElement("span",{className:"label"},r,e.label)))});return m.createElement(M,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:r.refs&&r.refs.valueBar,isVisible:r.state.showPopover,position:r.props.tooltipPosition},m.createElement("ul",null,t))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);var n={width:1/e*100+"%"};return m.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:_(t),style:n},this.buildSections(),m.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),m.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),m.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}]),t}(m.Component);g.displayName="ModuleChartBar",g.propTypes={isTouch:h.bool,tooltipPosition:h.string,className:h.string,clickHandler:h.func,data:h.object.isRequired,max:h.number,count:h.number},t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(833),y=r(v),A=n(808),E=r(A);n(1177);var w=function(){},k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&E.default.isMobile())return null;var e=(0,g.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return M.default.createElement(y.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:w,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(_.Component);k.propTypes={autoPosition:m.default.bool,className:m.default.string,id:m.default.string,isVisible:m.default.bool,position:m.default.string,rootClassName:m.default.string,status:m.default.string,showDelay:m.default.number,showOnMobile:m.default.bool},k.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=k,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(919),M=n(1179),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={divisor:1,spacing:r.props.labelWidth},r.resize=function(e){var t=r.props,n=r.refs.axis;!e||e instanceof Event||(t=e),n.style.overflow="hidden";var a=n.clientWidth;n.style.overflow="visible";var i=t.data.length||1,o=a/i,s=t.labelWidth,c=Math.ceil(s/o);r.setState({divisor:c,spacing:o})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resizeThrottled=_(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}},{key:"componentWillUnmount",value:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}},{key:"componentWillReceiveProps",value:function(e){this.resize(e)}},{key:"render",value:function(){var e=this.props.data,t=e.map(function(t,n){var r=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,a=e.length-n-1,i=void 0;return a%this.state.divisor==0&&(i=h.createElement(M,{key:n,label:t.label,width:this.props.labelWidth,x:r})),i},this);return h.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}]),t}(h.Component);b.displayName="ModuleChartXAxis",b.propTypes={labelWidth:m.number.isRequired,data:m.array.isRequired},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={width:this.props.width+"px"};return e.left=this.props.x+"px",m.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}]),t}(m.Component);_.displayName="ModuleChartLabel",_.propTypes={width:h.number.isRequired,x:h.number.isRequired,label:h.string.isRequired},t.default=_,e.exports=t.default},function(e,t,n){"use strict";e.exports={hasTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}}
47
- },function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(62),M=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"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(59),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(41),y=r(v),A=n(15),E=r(A),w=n(25),k=r(w),T=n(8),L=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"statsBottom",value:function(){var e=void 0;return e="object"===(0,i.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 E.default.tracks.recordJetpackClick("view_detailed_stats")},n=function(){return E.default.tracks.recordJetpackClick("view_wpcom_stats")};return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-summary"},g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Views today",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Best overall day",{comment:"Referring to a number of page views"})),g.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)}})),g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,T.moment)(e.bestDay.day).format("MMMM Do, YYYY"))),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time views",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,T.numberFormat)(e.allTime.views))),g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time comments",{comment:"Referring to a number of comments"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,T.numberFormat)(e.allTime.comments))))),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta"},g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},(0,T.translate)("{{button}}View detailed stats{{/button}}",{components:{button:g.default.createElement(y.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:g.default.createElement(y.default,{onClick:n,className:"is-primary",href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}}))),!this.props.isLinked&&g.default.createElement(k.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}(b.Component);L.propTypes={siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.object.isRequired,isLinked:M.default.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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(1185),E=r(A),w=n(23),k=n(62),T=n(21),L=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this,t={text:(0,y.translate)("Protects your site from traditional and distributed brute force login attacks."),link:"https://jetpack.com/support/protect/"},n=function(){return e.props.updateOptions({protect:!0})};if(this.props.getOptionValue("protect")){var r=this.props.protectCount;return!1===r||"0"===r||"N/A"===r?M.default.createElement(v.default,{label:"Protect",module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},M.default.createElement("div",{className:"jp-dash-item__recently-activated-lower"},M.default.createElement(E.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(v.default,{label:"Protect",module:"protect",support:t,status:"is-working"},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.numberFormat)(r)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Total malicious attacks blocked on your site.")))}return M.default.createElement(v.default,{label:"Protect",module:"protect",support:t,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:n})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(E.default,null),this.getContent())}}]),t}(_.Component);L.propTypes={isDevMode:m.default.bool.isRequired,protectCount:m.default.any.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{protectCount:(0,k.getProtectCount)(e),isDevMode:(0,T.isDevMode)(e),isModuleAvailable:(0,w.isModuleAvailable)(e,"protect")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(18),M=n(62),b=n(23),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.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,b.isModuleActivated)(e,t)}}},function(e){return(0,_.bindActionCreators)({fetchProtectCount:M.fetchProtectCount},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(15),y=r(v),A=n(23),E=n(21),w=n(128),k=r(w),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,g.translate)("Downtime monitoring"),n={text:(0,g.translate)("Jetpack’s downtime monitor will keep tabs on your site, and alert you the moment that downtime is detected."),link:"https://jetpack.com/support/monitor/"},r=function(){y.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",support:n,status:"is-working"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.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",support:n,className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,g.translate)("Unavailable in Dev Mode."):(0,g.translate)("{{a}}Activate Monitor{{/a}} to receive email notifications if your site goes down.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:r})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&this.getContent()}}]),t}(_.Component);T.propTypes={isDevMode:m.default.bool.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{isDevMode:(0,E.isDevMode)(e),isModuleAvailable:(0,A.isModuleAvailable)(e,"monitor")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(47),y=n(849),A=r(y),E=n(61),w=n(210),k=n(62),T=n(21),L=n(128),S=r(L),C=n(26),O=r(C),z=n(27),N=r(z),D=function(e){return M.default.createElement(S.default,{label:(0,g.translate)("Security Scanning"),module:e.feature||"scan",support:{text:(0,g.translate)("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data."),link:"https://jetpack.com/support/security/"},className:e.className||"",status:e.status||"",pro:!0},(0,O.default)(e.content)?e.content:M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},P=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.siteRawUrl,r=e.fetchingSiteData,a=!1!==t,i=this.props.vaultPressData,o=(0,N.default)(i,["data","features","security"],!1);if(this.props.getOptionValue("vaultpress")){if("N/A"===i)return D({status:"",content:(0,g.translate)("Loading…")});if(o){var s=this.props.scanThreats;if(0!==s)return D({content:[M.default.createElement("h3",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:s,args:{number:(0,g.numberFormat)(s)}})),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.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,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}}))]});if("success"===i.code)return D({status:"is-working",content:(0,g.translate)("No threats found, you're good to go!")})}}if(r)return D({status:"",content:(0,g.translate)("Loading…")});var c=this.props.isVaultPressInstalled?"pro-inactive":"pro-uninstalled",u=(0,v.getPlanClass)((0,N.default)(t,"product_slug","")),l="is-premium-plan"===u,d="is-business-plan"===u;return D({className:"jp-dash-item__is-inactive",status:a?c:"no-pro-uninstalled-or-inactive",content:l||d||o?(0,g.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,g.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="+n,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?D({className:"jp-dash-item__is-inactive",content:(0,g.translate)("Unavailable in Dev Mode.")}):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(A.default,null),this.props.isRewindActive?M.default.createElement("div",{className:"jp-dash-item__interior"},D({className:"jp-dash-item__is-active",status:"is-working",content:(0,g.translate)("We are making sure your site stays free of security threats. You will be notified if we find one."),feature:"rewind"})):this.getVPContent())}}]),t}(_.Component);P.propTypes={siteRawUrl:m.default.string.isRequired,vaultPressData:m.default.any.isRequired,scanThreats:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isPluginInstalled:m.default.bool.isRequired,fetchingSiteData:m.default.bool.isRequired},P.defaultProps={siteRawUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isDevMode:!1,isPluginInstalled:!1,fetchingSiteData:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,k.getVaultPressData)(e),scanThreats:(0,k.getVaultPressScanThreatCount)(e),sitePlan:(0,E.getSitePlan)(e),isDevMode:(0,T.isDevMode)(e),isVaultPressInstalled:(0,w.isPluginInstalled)(e,"vaultpress/vaultpress.php"),fetchingSiteData:(0,E.isFetchingSiteData)(e)}})(P),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(128),E=r(A),w=n(1189),k=r(w),T=n(62),L=n(61),S=n(21),C=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this.props.akismetData,t=(0,g.translate)("Spam Protection"),n={text:(0,g.translate)("Akismet checks your comments and contact form submissions against our global database of spam."),link:"https://akismet.com/",privacyLink:"https://automattic.com/privacy/"};if("N/A"===e)return M.default.createElement(E.default,{label:t,module:"akismet",support:n,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Loading…")));var r=!1!==this.props.sitePlan;return"not_installed"===e?M.default.createElement(E.default,{label:t,module:"akismet",support:n,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,g.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(E.default,{label:t,module:"akismet",support:n,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,g.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(E.default,{label:t,module:"akismet",support:n,className:"jp-dash-item__is-inactive",status:"is-warning",statusText:(0,g.translate)("Invalid key"),pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.",{components:{akismetSettings:M.default.createElement("a",{href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config"})}}))):[M.default.createElement(E.default,{key:"comment-moderation",label:t,module:"akismet",support:n,status:"is-working",pro:!0},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,g.numberFormat)(e.all.spam)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'}))),!this.props.isDevMode&&M.default.createElement(y.default,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:"https://wordpress.com/comments/all/"+this.props.siteRawUrl},(0,g.translate)("Moderate comments"))]}},{key:"render",value:function(){return M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(k.default,null),this.getContent())}}]),t}(_.Component);C.propTypes={siteRawUrl:m.default.string.isRequired,siteAdminUrl:m.default.string.isRequired,akismetData:m.default.oneOfType([m.default.string,m.default.object]).isRequired,isDevMode:m.default.bool.isRequired},C.defaultProps={siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isDevMode:""},t.default=(0,b.connect)(function(e){return{akismetData:(0,T.getAkismetData)(e),sitePlan:(0,L.getSitePlan)(e),isDevMode:(0,S.isDevMode)(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(18),M=n(62),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.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)})(b),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(64),E=r(A),w=n(234),k=r(w),T=n(27),L=r(T),S=n(849),C=r(S),O=n(61),z=n(210),N=n(62),D=n(21),P=function(e){return M.default.createElement(v.default,{label:(0,y.translate)("Backups"),module:e.feature||"backups",support:{text:(0,y.translate)("Jetpack Backups allow you to easily restore or download a backup from a specific moment."),link:"https://jetpack.com/support/backups/"},className:e.className,status:e.status,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},x=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.isVaultPressInstalled,r=e.getOptionValue,a=e.siteRawUrl,i=e.vaultPressData;return P(r("vaultpress")&&"success"===(0,L.default)(i,"code","")?{className:"jp-dash-item__is-active",status:"is-working",content:M.default.createElement("span",null,(0,L.default)(i,"message","")," ",(0,y.translate)("{{a}}View backup details{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com",target:"_blank",rel:"noopener noreferrer"})}}))}:(0,k.default)(t)?{className:"",status:"",content:(0,y.translate)("Loading…")}:"jetpack_free"!==(0,L.default)(t,"product_slug","jetpack_free")?{className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:(0,y.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/setup/"+a+"?only=backups",target:"_blank",rel:"noopener noreferrer"})}})}:{className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.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="+a,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?M.default.createElement("div",{className:"jp-dash-item__interior"},P({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.translate)("Unavailable in Dev Mode.")})):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(C.default,null),this.props.isRewindActive?P({className:"jp-dash-item__is-active",status:"is-working",content:(0,y.translate)("Your site is being backed up in real-time."),feature:"rewind"}):this.getVPContent())}}]),t}(_.Component);x.propTypes={siteRawUrl:m.default.string.isRequired,getOptionValue:m.default.func.isRequired,isRewindActive:m.default.bool.isRequired,vaultPressData:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isVaultPressInstalled:m.default.bool.isRequired},x.defaultProps={siteRawUrl:"",getOptionValue:E.default,isRewindActive:!1,vaultPressData:"",sitePlan:"",isDevMode:!1,isVaultPressInstalled:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,N.getVaultPressData)(e),sitePlan:(0,O.getSitePlan)(e),isDevMode:(0,D.isDevMode)(e),isVaultPressInstalled:(0,z.isPluginInstalled)(e,"vaultpress/vaultpress.php")}})(x),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(128),E=r(A),w=n(1192),k=r(w),T=n(62),L=n(23),S=n(21),C=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"activateAndRedirect",value:function(e){e.preventDefault(),this.props.activateManage().then(window.location="https://wordpress.com/plugins/manage/"+this.props.siteRawUrl)}},{key:"getContent",value:function(){var e=(0,g.translate)("Plugin Updates"),t=this.props.pluginUpdates,n={text:(0,g.translate)("Jetpack’s Plugin Updates allows you to choose which plugins update automatically."),link:"https://jetpack.com/support/site-management/"};if("N/A"===t)return M.default.createElement(E.default,{label:e,module:"manage",support:n,status:"is-working"},M.default.createElement(k.default,null),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Loading…")));var r="updates-available"===t.code,a="https://wordpress.com/plugins/manage/"+this.props.siteRawUrl,i=this.props.getOptionValue("manage")?"is-working":"is-inactive";return[M.default.createElement(E.default,{key:"plugin-updates",label:e,module:"manage",support:n,status:r?"is-warning":i},r&&M.default.createElement("h2",{className:"jp-dash-item__count"},(0,g.translate)("%(number)s","%(number)s",{count:t.count,args:{number:t.count}})),M.default.createElement("p",{className:"jp-dash-item__description"},r?[(0,g.translate)("Plugin needs updating.","Plugins need updating.",{count:t.count})+" ",!this.props.isDevMode&&(0,g.translate)("{{a}}Turn on plugin autoupdates{{/a}}",{components:{a:M.default.createElement("a",{href:a})}})]:(0,g.translate)("All plugins are up-to-date. Awesome work!"))),!this.props.isDevMode&&M.default.createElement(y.default,{key:"manage-plugins",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:a},(0,g.translate)("Manage your plugins"))]}},{key:"render",value:function(){return this.props.isModuleAvailable&&M.default.createElement("div",null,M.default.createElement(k.default,null),this.getContent())}}]),t}(_.Component);C.propTypes={isDevMode:m.default.bool.isRequired,siteRawUrl:m.default.string.isRequired,siteAdminUrl:m.default.string.isRequired,pluginUpdates:m.default.any.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{pluginUpdates:(0,T.getPluginUpdates)(e),isDevMode:(0,S.isDevMode)(e),isModuleAvailable:(0,L.isModuleAvailable)(e,"manage")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(18),M=n(62),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.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)})(b),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(23),E=n(21),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,y.translate)("Image Performance"),n=function(){return e.props.updateOptions({photon:!0})},r={text:(0,y.translate)("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site."),link:"https://jetpack.com/support/photon/"};return this.props.getOptionValue("photon")?M.default.createElement(v.default,{label:t,module:"photon",support:r,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(v.default,{label:t,module:"photon",support:r,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(){return this.props.isModuleAvailable&&this.getContent()}}]),t}(_.Component);w.propTypes={isDevMode:m.default.bool.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{isDevMode:(0,E.isDevMode)(e),isModuleAvailable:(0,A.isModuleAvailable)(e,"photon")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(64),y=r(v),A=n(128),E=r(A),w=n(25),k=r(w),T=n(74),L=n(21),S=n(61),C=n(47),O=function(e){return M.default.createElement(E.default,{label:(0,g.translate)("Search"),module:"search",support:{text:(0,g.translate)("Jetpack’s Search module is a powerful replacement for the search capability built into WordPress."),link:"https://jetpack.com/support/search/"},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},z=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this,t="is-business-plan"===this.props.planClass,n=function(){return e.props.updateOptions({search:!0})};return this.props.isDevMode?O({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:(0,g.translate)("Unavailable in Dev Mode")}):t?this.props.getOptionValue("search")?M.default.createElement("div",{className:"jp-dash-item"},M.default.createElement(E.default,{label:(0,g.translate)("Search"),module:"search",support:{text:(0,g.translate)("Jetpack’s Search module is a powerful replacement for the search capability built into WordPress."),link:"https://jetpack.com/support/search/"},className:"jp-dash-item__is-active",isModule:!1,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Jetpack Search is powering search on your site."))),M.default.createElement(k.default,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets"},(0,g.translate)("Add Search (Jetpack) Widget"))):O({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,g.translate)("{{a}}Activate{{/a}} to replace the WordPress built-in search with an improved search experience.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})}):O({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:(0,g.translate)("Give your visitors {{a}}a great search experience{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/features/design/elasticsearch-powered-search/",target:"_blank",rel:"noopener noreferrer"})}})})}}]),t}(_.Component);z.propTypes={getOptionValue:m.default.func.isRequired,isDevMode:m.default.bool.isRequired},z.defaultProps={getOptionValue:y.default,isDevMode:!1},t.default=(0,b.connect)(function(e){return{foundSearch:(0,T.isModuleFound)(e,"search"),planClass:(0,C.getPlanClass)((0,S.getSitePlan)(e).product_slug),isDevMode:(0,L.isDevMode)(e)}})(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}),t.DashConnections=void 0
48
- ;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(65),y=r(v),A=n(128),E=r(A),w=n(21),k=n(28),T=n(1196),L=r(T),S=n(915),C=r(S),O=t.DashConnections=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"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(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.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(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.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,g.translate)("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&M.default.createElement("div",{className:"jp-connection-settings__actions"},M.default.createElement(C.default,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:M.default.createElement(C.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,g.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,g.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,g.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(E.default,{className:"jp-connection-type",label:(0,g.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(E.default,{className:"jp-connection-type",label:(0,g.translate)("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(_.Component);O.propTypes={siteConnectionStatus:m.default.any.isRequired,isDevMode:m.default.bool.isRequired,userCanDisconnectSite:m.default.bool.isRequired,userIsMaster:m.default.bool.isRequired,isLinked:m.default.bool.isRequired,userWpComLogin:m.default.any.isRequired,userWpComEmail:m.default.any.isRequired,userWpComAvatar:m.default.any.isRequired,username:m.default.any.isRequired},t.default=(0,b.connect)(function(e){return{siteConnectionStatus:(0,w.getSiteConnectionStatus)(e),isDevMode:(0,w.isDevMode)(e),userCanDisconnectSite:(0,k.userCanDisconnectSite)(e),userIsMaster:(0,k.userIsMaster)(e),userWpComLogin:(0,k.getUserWpComLogin)(e),userWpComEmail:(0,k.getUserWpComEmail)(e),userWpComAvatar:(0,k.getUserWpComAvatar)(e),username:(0,k.getUsername)(e),isLinked:(0,w.isCurrentUserLinked)(e),siteIcon:(0,k.getSiteIcon)(e)}})(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.QueryUserConnectionData=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(21),b=t.QueryUserConnectionData=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()}},{key:"render",value:function(){return null}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{isFetchingUserData:(0,M.isFetchingUserData)(e),isDevMode:(0,M.isDevMode)(e)}},function(e){return{fetchUserConnectionData:function(){return e((0,M.fetchUserConnectionData)())}}})(b)},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(47),b=n(44),g=r(b),v=n(61),y=n(211),A=r(y),E=n(21),w=n(1198),k=r(w),T=n(1199),L=r(T),S=n(1200),C=r(S),O=n(1201),z=r(O),N=t.Plans=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.themesPromo=function(){var e=r.props.sitePlan.product_slug||"",t="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";switch(t){case"is-personal-plan":case"is-premium-plan":case"is-free-plan":return m.default.createElement(k.default,{plan:t,siteRawUrl:r.props.siteRawUrl})}return null},r.renderContent=function(){var e=r.props.sitePlan.product_slug||"",t=r.props.availableFeatures,n=r.props.activeFeatures,a="",i="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";"dev"===r.props.getSiteConnectionStatus(r.props)&&(e="dev",t={},n={});var o=void 0!==r.props.availableFeatures[M.FEATURE_UNLIMITED_PREMIUM_THEMES],s=(0,g.default)(r.props.activeFeatures,M.FEATURE_UNLIMITED_PREMIUM_THEMES);return o&&!s&&(a=r.themesPromo(),"is-free-plan"===i)?m.default.createElement("div",null,m.default.createElement(z.default,null),a):m.default.createElement("div",null,m.default.createElement(z.default,null),a,m.default.createElement("div",{className:"jp-landing__plans dops-card"},m.default.createElement(L.default,{plan:e,siteRawUrl:r.props.siteRawUrl}),m.default.createElement(C.default,{plan:e,availableFeatures:t,activeFeatures:n,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus})))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(A.default,null),this.renderContent())}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{getSiteConnectionStatus:function(){return(0,E.getSiteConnectionStatus)(e)},sitePlan:(0,v.getSitePlan)(e),availableFeatures:(0,v.getAvailableFeatures)(e),activeFeatures:(0,v.getActiveFeatures)(e)}})(N)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(8),y=n(25),A=r(y),E=n(41),w=r(E),k=n(15),T=r(k),L=n(80),S=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackGetStarted=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-get-started",plan:r.props.plan,type:"upgrade"})},r.trackComparePlans=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-compare-all",plan:r.props.plan,type:"upgrade"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,g.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 M.default.createElement("div",{className:e},M.default.createElement(A.default,{className:"jp-apps-card__content"},M.default.createElement("div",{className:"jp-apps-card__top"},M.default.createElement("svg",{id:"customizeTheme",viewBox:"0 0 1562.02 968.34"},M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2447.73,1648.42l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2431.51,1654.49l1-.28-1.95.52Z",transform:"translate(-1756.98 -1363.12)"}),M.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)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2446.61,1648.95l-1.7.78.61-.27Z",transform:"translate(-1756.98 -1363.12)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"216.54",x2:"216.54",y1:"709.01",y2:"947.85"}),M.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)"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"605.81",x2:"605.81",y1:"729.17",y2:"947.85"}),M.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)"})),M.default.createElement("div",{className:"jp-apps-card__clouds"},M.default.createElement("img",{
49
- src:L.imagePath+"/white-clouds.svg",alt:""}))),M.default.createElement("div",{className:"jp-apps-card__description"},M.default.createElement("h3",{className:"jp-apps-card__header"},(0,v.translate)("Introducing Unlimited Themes")),(0,v.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:M.default.createElement("p",{className:"jp-apps-card__promo_subhead"}),p:M.default.createElement("p",{className:"jp-apps-card__paragraph"})}}),M.default.createElement("p",null,M.default.createElement(w.default,{className:"is-primary",onClick:this.trackGetStarted,href:"https://jetpack.com/redirect/?source=upgrade-pro-"+r+"&site="+this.props.siteRawUrl},(0,v.translate)("Explore Professional"))," ",M.default.createElement(w.default,{onClick:this.trackComparePlans,href:"https://jetpack.com/redirect/?source=plans-compare-free&site="+this.props.siteRawUrl},(0,v.translate)("Compare All Plans"))))))}}]),t}(M.default.Component);S.displayName="ThemesPromoCard",S.propTypes={className:m.default.string,plan:m.default.string},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(41),M=r(_),b=n(8),g=n(15),v=r(g),y=n(47),A=n(80),E=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackLearnMore=function(){v.default.tracks.recordJetpackClick({target:"learn-more",plan:"free",page:"plans"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e="",t="";switch("dev"!==this.props.plan?(0,y.getPlanClass)(this.props.plan):"dev"){case"is-free-plan":e=m.default.createElement("div",{className:"jp-landing-plans__header"},m.default.createElement("h2",{className:"jp-landing-plans__header-title"},(0,b.translate)("Jetpack Premium now includes our full security suite")),m.default.createElement("p",{className:"jp-landing-plans__header-description"},(0,b.translate)("Automated backups, one-click restores, spam filtering, and malware scanning.")),m.default.createElement("div",{className:"jp-landing-plans__header-img-container"},m.default.createElement("div",{className:"jp-landing-plans__header-col-left"},m.default.createElement("h3",{className:"jp-landing-plans__header-subtitle"},(0,b.translate)("How much is your website worth?")),m.default.createElement("p",{className:"jp-landing-plans__header-text"},(0,b.translate)("For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up."),m.default.createElement("br",null),m.default.createElement("br",null),(0,b.translate)("Upgrade to a weekly coffee and fully protect your site from malware, infiltrations, and security loopholes with automated malware scanning.")),m.default.createElement("p",{className:"jp-landing-plans__header-btn-container"},m.default.createElement(M.default,{href:"https://jetpack.com/redirect/?source=plans-main-top&site="+this.props.siteRawUrl,className:"is-primary"},(0,b.translate)("Learn more")))),m.default.createElement("div",{className:"jp-landing-plans__header-col-right"},m.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"},m.default.createElement("title",{id:"wpcomLogin"},(0,b.translate)("Image of WordPress login screen protected by Jetpack")),m.default.createElement("defs",null,m.default.createElement("rect",{id:"path-1",x:"0",y:"0",width:"1005",height:"700",rx:"8"}),m.default.createElement("polygon",{id:"path-3",points:"0 80 80 80 80 0 0 0 0 80"}),m.default.createElement("rect",{id:"path-5",x:"22",y:"154",width:"280",height:"35"}),m.default.createElement("mask",{id:"mask-6",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-5"})),m.default.createElement("rect",{id:"path-7",x:"22",y:"234",width:"280",height:"35"}),m.default.createElement("mask",{id:"mask-8",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-7"})),m.default.createElement("rect",{id:"path-9",x:"22",y:"291",width:"15",height:"15"}),m.default.createElement("mask",{id:"mask-10",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"15",height:"15",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-9"})),m.default.createElement("rect",{id:"path-11",x:"230",y:"289",width:"71",height:"30",rx:"3"}),m.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-12"},m.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),m.default.createElement("feComposite",{in:"shadowOffsetOuter1",in2:"SourceAlpha",operator:"out",result:"shadowOffsetOuter1"}),m.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowOffsetOuter1"})),m.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-13"},m.default.createElement("feOffset",{dx:"0",dy:"2",in:"SourceAlpha",result:"shadowOffsetInner1"}),m.default.createElement("feComposite",{in:"shadowOffsetInner1",in2:"SourceAlpha",operator:"arithmetic",k2:"-1",k3:"1",result:"shadowInnerInner1"}),m.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowInnerInner1"})),m.default.createElement("mask",{id:"mask-14",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"71",height:"30",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-11"})),m.default.createElement("polygon",{id:"path-15",points:"54 33.75 54 0 0 0 0 33.75 0 67.5 54 67.5"})),m.default.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},m.default.createElement("g",{id:"Plans---wp-login-stripped",transform:"translate(-197.000000, -136.000000)"},m.default.createElement("g",{id:"Editor-Container",transform:"translate(197.000000, 136.000000)"},m.default.createElement("g",{id:"Simple-Layout"},m.default.createElement("g",{id:"bg"},m.default.createElement("mask",{id:"mask-2",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-1"})),m.default.createElement("use",{id:"content-bg-mask",fill:"#F1F1F1",xlinkHref:"#path-1"})),m.default.createElement("g",{id:"chrome"},m.default.createElement("rect",{fill:"#FEFEFE",x:"0",y:"0",width:"1005",height:"53",rx:"8"}),m.default.createElement("rect",{id:"Rectangle",fill:"#F1F1F1",x:"0",y:"46",width:"1005",height:"38"}),m.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"}))),m.default.createElement("g",{id:"login-form",opacity:"0.5",transform:"translate(340.000000, 156.000000)"},m.default.createElement("rect",{id:"log-bg",fill:"#FFFFFF",x:"0",y:"110",width:"325",height:"243"}),m.default.createElement("g",{id:"wplogo",transform:"translate(123.000000, 0.000000)"},m.default.createElement("mask",{id:"mask-4",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-3"})),m.default.createElement("g",{id:"Clip-2"}),m.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)"})),m.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-6)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-5"}),m.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-8)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-7"}),m.default.createElement("use",{id:"checkbox",stroke:"#DEDEDE",mask:"url(#mask-10)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-9"}),m.default.createElement("g",{id:"btn"},m.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-12)",xlinkHref:"#path-11"}),m.default.createElement("use",{fill:"#36A3CA",fillRule:"evenodd",xlinkHref:"#path-11"}),m.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-13)",xlinkHref:"#path-11"}),m.default.createElement("use",{stroke:"#1075A0",mask:"url(#mask-14)",strokeWidth:"2",xlinkHref:"#path-11"}))),m.default.createElement("g",{id:"security",transform:"translate(428.000000, 275.000000)"},m.default.createElement("circle",{id:"Oval",fill:"#3D596D",cx:"75",cy:"75",r:"75"}),m.default.createElement("g",{id:"Page-1",transform:"translate(48.000000, 37.500000)"},m.default.createElement("mask",{id:"mask-16",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-15"})),m.default.createElement("g",{id:"Clip-2"}),m.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)"}))))))))),m.default.createElement("div",{className:"jp-landing-plans__clouds jp-clouds-top"},m.default.createElement("img",{src:A.imagePath+"/white-clouds.svg",alt:""}))),t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Powerful services for your site")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Always-on security, a better search experience, unlimited CDN use, advanced marketing tools, and monetization services."))));break;case"is-personal-plan":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-personal.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Welcome to Jetpack Personal")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Daily backups, spam filtering, and priority support."))));break;case"is-premium-plan":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-premium.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-iconcard-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Welcome to Jetpack Premium")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support."))));break;case"is-business-plan":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-business.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Welcome to Jetpack Professional")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, enhanced search, and priority support."))));break;case"dev":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Your site is on Development Mode")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.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=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img is-placeholder"}),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),m.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return m.default.createElement("div",null,e,t)}}]),t}(m.default.Component);t.default=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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(41),v=r(g),y=n(8),A=n(15),E=r(A),w=n(47),k=n(44),T=r(k),L=n(27),S=r(L),C=n(210),O=n(23),z=n(507),N=r(z),D=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackPlansClick=function(e){E.default.tracks.recordJetpackClick({page:"plans",target:e,plan:r.props.plan})},r.handleButtonClickForTracking=function(e){return function(){return r.trackPlansClick(e)}},r.activateAds=function(){r.props.activateModule("wordads"),r.trackPlansClick("activate_wordads")},r.activatePublicize=function(){r.props.activateModule("publicize"),r.trackPlansClick("activate_publicize")},r.activateSearch=function(){r.props.activateModule("search"),r.trackPlansClick("activate_search")},r.activateVideoPress=function(){r.props.activateModule("videopress"),r.trackPlansClick("activate_videopress")},r.activateSeo=function(){r.props.activateModule("seo-tools"),r.trackPlansClick("activate_seo")},r.activateGoogleAnalytics=function(){r.props.activateModule("google-analytics"),r.trackPlansClick("activate_ga")},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this,t="",n="dev"!==this.props.plan?(0,w.getPlanClass)(this.props.plan):"dev",r=(0,T.default)(this.props.activeFeatures,w.FEATURE_UNLIMITED_PREMIUM_THEMES),a="active"===(0,S.default)(this.props.rewindStatus,["state"],!1),i=!a&&"unavailable"!==(0,S.default)(this.props.rewindStatus,["state"],!1),o=function(){if(!i){var t="";switch(n){case"is-personal-plan":t=(0,y.translate)("Daily backup of all your site data with unlimited space and one-click restores");break;case"is-premium-plan":t=(0,y.translate)("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support");break;case"is-business-plan":t=(0,y.translate)("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support");break;default:t=""}return a?M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Backups")),M.default.createElement("p",null,(0,y.translate)("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.")),M.default.createElement(v.default,{onClick:e.handleButtonClickForTracking("view_security_dash_rewind"),href:"https://wordpress.com/stats/activity/"+e.props.siteRawUrl,className:"is-primary"},(0,y.translate)("View your security activity"))):M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Backups")),M.default.createElement("p",null,t+(0,y.translate)(" (powered by VaultPress).")),e.props.isPluginInstalled("vaultpress/vaultpress.php")&&e.props.isPluginActive("vaultpress/vaultpress.php")?M.default.createElement(v.default,{onClick:e.handleButtonClickForTracking("view_security_dash"),href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,y.translate)("View your security dashboard")):M.default.createElement(v.default,{onClick:e.handleButtonClickForTracking("configure_vault"),href:"https://wordpress.com/plugins/setup/"+e.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,y.translate)("Configure VaultPress")))}};switch(n){case"is-personal-plan":case"is-premium-plan":case"is-business-plan":t=M.default.createElement("div",{className:"jp-landing__plan-features"},r&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Unlimited Premium Themes")),M.default.createElement("p",null,(0,y.translate)("Exclusive hand-crafted designs you will love with dedicated support directly from the theme authors.")),M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("premium_themes"),href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Browse Themes"))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Spam Protection")),M.default.createElement("p",null,(0,y.translate)("State-of-the-art spam defense powered by Akismet.")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config",className:"is-primary"},(0,y.translate)("View your spam stats")):M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("configure_akismet"),href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=akismet",className:"is-primary"},(0,y.translate)("Configure Akismet"))),"is-personal-plan"===n&&o(),"is-premium-plan"===n&&o(),"is-business-plan"===n&&o(),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("wordads")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Ads")),M.default.createElement("p",null,(0,y.translate)("Earn income by allowing Jetpack to display high quality ads (powered by WordAds).")),this.props.isModuleActivated("wordads")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("view_earnings"),href:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("View your earnings")):M.default.createElement(v.default,{onClick:this.activateAds,className:"is-primary",disabled:this.props.isActivatingModule("wordads")},(0,y.translate)("Activate Ads"))),"is-business-plan"===n&&!this.props.getModuleOverride("search")&&"inactive"!==this.props.getModuleOverride("search")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Search")),M.default.createElement("p",null,(0,y.translate)("Replace the default WordPress search with better results that will help your users find what they are looking for.")),this.props.isModuleActivated("search")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("search_customize"),href:this.props.siteAdminUrl+"widgets.php",className:"is-primary"},(0,y.translate)("Customize Search Widget")):M.default.createElement(v.default,{onClick:this.activateSearch,className:"is-primary",disabled:this.props.isActivatingModule("search")},(0,y.translate)("Activate Search"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("publicize")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Social Media Scheduling")),M.default.createElement("p",null,(0,y.translate)("Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.")),this.props.isModuleActivated("publicize")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("schedule_posts"),href:"https://wordpress.com/posts/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Schedule Posts")):M.default.createElement(v.default,{onClick:this.activatePublicize,className:"is-primary",disabled:this.props.isActivatingModule("publicize")},(0,y.translate)("Activate Publicize"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("videopress")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Video Hosting")),M.default.createElement("p",null,(0,y.translate)("Fast, optimized, ad-free, and unlimited video hosting for your site.")),this.props.isModuleActivated("videopress")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php",className:"is-primary"},(0,y.translate)("Upload Videos Now")):M.default.createElement(v.default,{onClick:this.activateVideoPress,className:"is-primary",disabled:this.props.isActivatingModule("videopress")},(0,y.translate)("Activate Video Hosting"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("seo-tools")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("SEO Tools")),M.default.createElement("p",null,(0,y.translate)("Advanced SEO tools to help your site get found when people search for relevant content.")),this.props.isModuleActivated("seo-tools")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("configure_seo"),href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Configure Site SEO")):M.default.createElement(v.default,{onClick:this.activateSeo,className:"is-primary",disabled:this.props.isActivatingModule("seo-tools")},(0,y.translate)("Activate SEO Tools"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("google-analytics")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Google Analytics")),M.default.createElement("p",null,(0,y.translate)("Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.")),this.props.isModuleActivated("google-analytics")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("configure_ga"),href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Configure Google Analytics")):M.default.createElement(v.default,{onClick:this.activateGoogleAnalytics,className:"is-primary",disabled:this.props.isActivatingModule("google-analytics")},(0,y.translate)("Activate Google Analytics"))),"is-personal-plan"===n&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Three great reasons to go Pro")),M.default.createElement("p",null,(0,y.translate)("Design the perfect site with unlimited access to hundreds of themes and unlimited, high-speed, and ad-free video hosting.")),M.default.createElement("p",null,(0,y.translate)("Always-on security including real-time backups, malware scanning, and automatic threat resolution.")),M.default.createElement("p",null,(0,y.translate)("Grow your traffic and revenue with social media scheduling, enhanced site search, SEO tools, PayPal payments, and an ad program.")),M.default.createElement("p",null,M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("compare_plans"),href:"https://jetpack.com/redirect/?source=plans-compare-personal&site="+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Compare Plans")))),"is-premium-plan"===n&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Two great reasons to go Pro")),M.default.createElement("p",null,(0,y.translate)("Unlimited access to hundreds of premium WordPress themes with dedicated support directly from the theme authors.")),M.default.createElement("p",null,(0,y.translate)("A superior search experience powered by Elasticsearch providing your users with faster and more relevant search results. Previously only available to WordPress.com VIP customers and trusted by industry-leading brands.")),M.default.createElement("p",null,M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("compare_plans"),href:"https://jetpack.com/redirect/?source=plans-compare-premium&site="+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Explore Jetpack Professional")))));break;case"is-free-plan":case"dev":t=M.default.createElement("div",{className:"jp-landing__plan-features"},M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Design the perfect website")),M.default.createElement("p",null,(0,y.translate)("Get unlimited access to hundreds of professional themes, a superior search experience for your users, and unlimited high-speed, and ad-free video hosting."))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Increase traffic and revenue")),M.default.createElement("p",null,(0,y.translate)("Reach more people and earn money with automated social media scheduling, better search results, SEO preview tools, PayPal payments, and an ad program."))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Always-on Security")),M.default.createElement("p",null,(0,y.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime with automated backups, unlimited storage, and malware scanning."))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Enjoy priority support")),M.default.createElement("p",null,(0,y.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."))),M.default.createElement("p",null,M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("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,y.translate)("Compare Plans"))));break;default:t=M.default.createElement("div",{className:"jp-landing__plan-features"},M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),M.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),M.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),M.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return M.default.createElement("div",null,M.default.createElement("div",null,M.default.createElement(N.default,null),t))}}]),t}(M.default.Component);D.propTypes={plan:m.default.string},D.defaultProps={plan:""},t.default=(0,b.connect)(function(e){return{isFetchingPluginsData:(0,C.isFetchingPluginsData)(e),isPluginActive:function(t){return(0,C.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,C.isPluginInstalled)(e,t)},isModuleActivated:function(t){return(0,O.isModuleActivated)(e,t)},isActivatingModule:function(t){return(0,O.isActivatingModule)(e,t)},getModuleOverride:function(t){return(0,O.getModuleOverride)(e,t)}}},function(e){return{fetchPluginsData:function(){return e((0,C.fetchPluginsData)())},activateModule:function(t){return e((0,O.activateModule)(t))}}})(D),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{
50
- value:!0});var a=n(113),i=r(a),o=n(1202),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(14),A=r(y),E=n(864),w=r(E),k=n(1206),T=r(k),L=n(44),S=r(L),C=n(41),O=r(C),z=n(28),N=n(232),D=n(15),P=r(D),x=n(47),j=n(8),R=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.featuredPlans=!1,a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"componentWillUpdate",value:function(){this.featuredPlans=!1}},{key:"render",value:function(){if(void 0===this.props.plans)return null;var e=(0,s.default)(this.getPlans()).length,t=(0,A.default)("plan-features__table","has-"+e+"-cols");return g.default.createElement("div",{className:"plan-features"},this.renderMobileCard(),g.default.createElement("div",{className:"plan-features__content"},g.default.createElement("table",{className:t},g.default.createElement("tbody",null,g.default.createElement("tr",null,this.renderPlanHeaders()),g.default.createElement("tr",null,this.renderPrices()),g.default.createElement("tr",null,this.renderTopButtons()),this.renderPlanFeatureRows(),g.default.createElement("tr",null,this.renderBottomButtons())))))}},{key:"renderMobileCard",value:function(){var e=(0,j.translate)("You’re currently on Jetpack %(plan)s.",{args:{plan:this.props.sitePlan.product_name_short}}),t="https://wordpress.com/plans/my-plan/"+this.props.siteRawUrl,n="https://wordpress.com/plans/"+this.props.siteRawUrl;return g.default.createElement("div",{className:"plans-mobile-notice dops-card"},g.default.createElement("h2",null,(0,j.translate)("Your Plan")),g.default.createElement("p",null,e),g.default.createElement(O.default,{href:t},(0,j.translate)("Manage your plan")),g.default.createElement(O.default,{href:n,primary:!0},(0,j.translate)("View all Jetpack plans")))}},{key:"getCurrentPlanType",value:function(){return(0,x.getPlanClass)(this.props.sitePlan.product_slug).replace(/^is-/,"").replace(/-plan#x2F;,"")}},{key:"isUpgraded",value:function(){return!(0,S.default)(["","free"],this.getCurrentPlanType())}},{key:"isCurrentPlanType",value:function(e){return this.getCurrentPlanType()===e}},{key:"getPlans",value:function(){if(this.featuredPlans)return this.featuredPlans;var e=(0,T.default)(this.props.plans,function(e,t,n){if("free"===n)return e;var r=t.highlight;return t.features=(0,T.default)(t.features,function(e,t){return(0,S.default)(r,t.id)&&e.push(t),e},[]),e[n]=t,e},{});return this.featuredPlans=e,e}},{key:"renderPlanHeaders",value:function(){return(0,w.default)(this.getPlans(),function(e,t){var n=(0,A.default)("plan-features__table-item","is-header","has-border-top","is-"+t+"-plan");return g.default.createElement("td",{key:"plan-header-"+t,className:n},g.default.createElement("header",{className:"plan-features__header"},g.default.createElement("h3",{className:"plan-features__header-title"},e.short_name),g.default.createElement("div",{className:"plan-features__description"},e.tagline)))})}},{key:"renderPrices",value:function(){var e=this;return(0,w.default)(this.getPlans(),function(t,n){var r=(0,A.default)("plan-features__table-item","plan-price");return e.isCurrentPlanType(n)?g.default.createElement("td",{key:"price-"+n,className:r},t.strings.current):e.shouldRenderButton(n)?g.default.createElement("td",{key:"price-"+n,className:r},g.default.createElement("span",{className:"plan-price__yearly",dangerouslySetInnerHTML:{__html:t.price.yearly.per}})):g.default.createElement("td",{key:"price-"+n,className:r})})}},{key:"shouldRenderButton",value:function(e){var t=(0,i.default)(this.props.plans),n=t.indexOf(this.getCurrentPlanType());return t.indexOf(e)>=n}},{key:"renderTopButtons",value:function(){var e=this;return(0,w.default)(this.getPlans(),function(t,n){var r=e.isCurrentPlanType(n),a=r?"https://wordpress.com/plans/my-plan/"+e.props.siteRawUrl:"https://jetpack.com/redirect/?source=plans-"+n+"&site="+e.props.siteRawUrl+"&u="+e.props.userId,i=e.isPrimary(n,t),o=(0,A.default)("plan-features__table-item","has-border-bottom","is-top-buttons");if(!e.shouldRenderButton(n))return g.default.createElement("td",{key:"button-"+n,className:o});var s=function(){r&&P.default.tracks.recordJetpackClick({target:"upgrade-"+n,type:"upgrade",plan:e.props.sitePlan.product_slug,page:"Plans"})},c=r?t.strings.manage:t.strings.upgrade;return g.default.createElement("td",{key:"button-"+n,className:o},g.default.createElement(O.default,{href:a,primary:i,onClick:s},c))})}},{key:"isPrimary",value:function(e,t){if(this.isUpgraded()){var n=this.getCurrentPlanType(),r=(0,i.default)(this.getPlans()),a=r.indexOf(n);return r.indexOf(e)===r.indexOf(r[a+1])}return t.is_featured}},{key:"renderBottomButtons",value:function(){var e=this;return(0,w.default)(this.getPlans(),function(t,n){var r="https://jetpack.com/redirect/?source=plans-learn-more&site="+e.props.siteRawUrl+"&u="+e.props.userId;return g.default.createElement("td",{key:"bottom-"+n,className:"plan-features__table-item is-bottom-buttons has-border-bottom"},g.default.createElement(O.default,{href:r},t.strings.see_all))})}},{key:"getLongestFeaturesList",value:function(){return(0,T.default)(this.getPlans(),function(e,t){var n=(0,i.default)(t.features);return n.length>e.length?n:e},[])}},{key:"renderPlanFeatureRows",value:function(){var e=this;return(0,w.default)(this.getLongestFeaturesList(),function(t,n){return g.default.createElement("tr",{key:"row-"+n,className:"plan-features-row"},e.renderPlanFeatureColumns(n))})}},{key:"renderPlanFeatureColumns",value:function(e){var t=this;return(0,w.default)(this.getPlans(),function(n,r){return t.renderFeatureItem(r,e)})}},{key:"renderFeatureItem",value:function(e,t){var n=this.getPlans()[e],r=n.features[t],a=e+"-row-"+t;return void 0===r?g.default.createElement("td",{key:a,className:"plan-features__table-item"}):g.default.createElement("td",{key:a,className:"plan-features__table-item has-partial-border"},g.default.createElement("div",{className:"plan-features__item"},r.info?this.renderFeatureLink(r):r.name))}},{key:"renderFeatureLink",value:function(e){var t=this,n=function(){P.default.tracks.recordJetpackClick({target:e.id,type:"feature-discovery",plan:t.props.sitePlan.product_slug,page:"Plans"})};return g.default.createElement("a",{onClick:n,href:"https://jetpack.com/features/"+e.info+"?site="+this.props.siteRawUrl+"&u="+this.props.userId},e.name)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{plans:(0,N.getAvailablePlans)(e),siteRawUrl:(0,z.getSiteRawUrl)(e),sitePlan:(0,N.getSitePlan)(e),userId:(0,z.getUserId)(e)}},null)(R),e.exports=t.default},function(e,t,n){e.exports={default:n(1203),__esModule:!0}},function(e,t,n){n(1204),e.exports=n(20).Object.values},function(e,t,n){var r=n(33),a=n(1205)(!1);r(r.S,"Object",{values:function(e){return a(e)}})},function(e,t,n){var r=n(99),a=n(83),i=n(124).f;e.exports=function(e){return function(t){for(var n,o=a(t),s=r(o),c=s.length,u=0,l=[];c>u;)i.call(o,n=s[u++])&&l.push(e?[n,o[n]]:o[n]);return l}}},function(e,t,n){function r(e,t,n){var r=c(e)?a:s,u=arguments.length<3;return r(e,o(t,4),n,u,i)}var a=n(1207),i=n(148),o=n(91),s=n(1208),c=n(26);e.exports=r},function(e,t){function n(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}e.exports=n},function(e,t){function n(e,t,n,r,a){return a(e,function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)}),n}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(14),v=r(g),y=n(8),A=n(25),E=r(A),w=n(41),k=r(w),T=n(15),L=r(T),S=n(47),C=n(28),O=n(61),z=n(21),N=n(473),D=r(N),P=n(80),x=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackBannerClick=function(){L.default.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:r.props.path})},r.trackAskQuestionClick=function(){L.default.tracks.recordJetpackClick({target:"support-card",button:"support-ask",page:r.props.path})},r.trackSearchClick=function(){L.default.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:r.props.path})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"shouldComponentUpdate",value:function(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug}},{key:"render",value:function(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return M.default.createElement("div",null);var e=(0,v.default)(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug;return M.default.createElement("div",{className:e},M.default.createElement(E.default,{className:"jp-support-card__happiness"},M.default.createElement("div",{className:"jp-support-card__happiness-contact"},M.default.createElement("h3",{className:"jp-support-card__header"},(0,y.translate)("We're here to help")),M.default.createElement("p",{className:"jp-support-card__description"},t?(0,y.translate)("Jetpack comes with free, basic support for all users."):(0,y.translate)("Your paid plan gives you access to prioritized Jetpack support.")),M.default.createElement("p",{className:"jp-support-card__description"},M.default.createElement(k.default,{onClick:this.trackAskQuestionClick,href:this.props.isAtomicSite?"https://wordpress.com/help/contact/":P.JETPACK_CONTACT_SUPPORT},(0,y.translate)("Ask a question")),M.default.createElement(k.default,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?"https://wordpress.com/help/":"https://jetpack.com/support/"},(0,y.translate)("Search our support site"))))),this.props.siteConnectionStatus&&t&&M.default.createElement(D.default,{title:(0,y.translate)("Get a faster resolution to your support questions."),plan:S.PLAN_JETPACK_PERSONAL,callToAction:(0,y.translate)("Upgrade"),onClick:this.trackBannerClick,href:"https://jetpack.com/redirect/?source=support&site="+this.props.siteRawUrl}))}}]),t}(M.default.Component);x.displayName="SupportCard",x.defaultProps={className:"",siteConnectionStatus:!1},x.propTypes={siteConnectionStatus:m.default.any.isRequired,className:m.default.string},t.default=(0,b.connect)(function(e){return{sitePlan:(0,O.getSitePlan)(e),siteRawUrl:(0,C.getSiteRawUrl)(e),siteConnectionStatus:(0,z.getSiteConnectionStatus)(e),isFetchingSiteData:(0,O.isFetchingSiteData)(e),isAtomicSite:(0,C.isAtomicSite)(e)}})(x),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(14),v=r(g),y=n(8),A=n(25),E=r(A),w=n(41),k=r(w),T=n(15),L=r(T),S=n(80),C=n(103),O=n(28),z=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackDownloadClick=function(){L.default.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:r.props.path})},r.dismissCard=function(){r.props.dismissAppCard(),L.default.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:r.props.path})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;var e=(0,v.default)(this.props.className,"jp-apps-card");return M.default.createElement("div",{className:e},M.default.createElement(E.default,{className:"jp-apps-card__content"},M.default.createElement("div",{className:"jp-apps-card__top"},M.default.createElement("img",{src:S.imagePath+"/get-apps.svg",alt:""})),M.default.createElement("div",{className:"jp-apps-card__description"},M.default.createElement("h3",{className:"jp-apps-card__header"},(0,y.translate)("Get WordPress Apps for every device")),M.default.createElement("p",{className:"jp-apps-card__paragraph"},(0,y.translate)("Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.")),M.default.createElement(k.default,{className:"is-primary",onClick:this.trackDownloadClick,href:"https://apps.wordpress.com/get?utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard"},(0,y.translate)("Download the free apps")),M.default.createElement("br",null),this.props.userCanManageOptions&&M.default.createElement("a",{href:"javascript:void(0)",onClick:this.dismissCard},(0,y.translate)("I already use this app.")))))}}]),t}(M.default.Component);z.displayName="AppsCard",z.propTypes={className:m.default.string},t.default=(0,b.connect)(function(e){return{isAppsCardDismissed:(0,C.appsCardDismissed)(e),arePromotionsActive:(0,O.arePromotionsActive)(e),userCanManageOptions:(0,O.userCanManageOptions)(e)}},function(e){return{dismissAppCard:function(){return e((0,C.updateSettings)({dismiss_dash_app_card:!0}))}}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(28),v=n(23),y=n(861),A=r(y),E=n(868),w=r(E),k=n(917),T=r(k),L=n(869),S=r(L),C=n(21),O=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.renderMainContent=function(e){var t=void 0,n=M.default.createElement(A.default,r.props);switch(e){case"/dashboard":default:t=M.default.createElement(T.default,r.props);break;case"/settings":case"/writing":case"/sharing":r.props.isSubscriber||(n=M.default.createElement(w.default,r.props),t=M.default.createElement(S.default,{route:r.props.route,siteAdminUrl:r.props.siteAdminUrl,siteRawUrl:r.props.siteRawUrl,searchTerm:r.props.searchTerm}))}return window.wpNavMenuClassChange(),M.default.createElement("div",null,n,t)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"shouldComponentUpdate",value:function(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.route.path!==this.props.route.path}},{key:"render",value:function(){return this.renderMainContent(this.props.route.path)}}]),t}(M.default.Component);O.propTypes={userCanViewStats:m.default.bool.isRequired,isSubscriber:m.default.bool.isRequired,siteConnectionStatus:m.default.any.isRequired},t.default=(0,b.connect)(function(e){return{userCanViewStats:(0,g.userCanViewStats)(e),siteConnectionStatus:(0,C.getSiteConnectionStatus)(e),isSubscriber:(0,g.userIsSubscriber)(e),isModuleActivated:function(t){return(0,v.isModuleActivated)(e,t)}}})(O),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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(163),v=r(g),y=n(856),A=r(y),E=n(8),w=n(1213),k=r(w),T=n(1221),L=r(T),S=n(21),C=n(28),O=n(1223),z=r(O),N=n(473),D=r(N),P=n(80),x=t.DevVersionNotice=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&M.default.createElement(v.default,{showDismiss:!1,text:(0,E.translate)("You are currently running a development version of Jetpack.")},M.default.createElement(A.default,{href:P.JETPACK_CONTACT_BETA_SUPPORT},(0,E.translate)("Submit Beta feedback")))}}]),t}(M.default.Component);x.displayName="DevVersionNotice",x.propTypes={isDevVersion:m.default.bool.isRequired,userIsSubscriber:m.default.bool.isRequired};var j=t.StagingSiteNotice=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){var e={text:(0,E.translate)("You are running Jetpack on a staging server."),status:"is-basic",showDismiss:!1};return M.default.createElement(v.default,e,M.default.createElement(A.default,{href:"https://jetpack.com/support/staging-sites/"},(0,E.translate)("More Info")))}return!1}}]),t}(M.default.Component);j.displayName="StagingSiteNotice",j.propTypes={isStaging:m.default.bool.isRequired,isInIdentityCrisis:m.default.bool.isRequired};var R=t.DevModeNotice=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if("dev"===this.props.siteConnectionStatus){var e=this.props.siteDevMode,t=[];e.filter&&t.push((0,E.translate)("{{li}}The jetpack_development_mode filter is active{{/li}}",{components:{li:M.default.createElement("li",null)}})),e.constant&&t.push((0,E.translate)("{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}",{components:{li:M.default.createElement("li",null)}})),e.url&&t.push((0,E.translate)("{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}",{components:{li:M.default.createElement("li",null)}}));var n=(0,E.translate)("Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/development-mode/",target:"_blank",rel:"noopener noreferrer"}),reasons:M.default.createElement("ul",null,t)}});return M.default.createElement(v.default,{showDismiss:!1,status:"is-info",text:n},M.default.createElement(A.default,{href:"https://jetpack.com/development-mode/"},(0,E.translate)("Learn More")))}return!1}}]),t}(M.default.Component);R.displayName="DevModeNotice",R.propTypes={siteConnectionStatus:m.default.oneOfType([m.default.string,m.default.bool]).isRequired,siteDevMode:m.default.oneOfType([m.default.bool,m.default.object]).isRequired};var Y=t.UserUnlinked=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&M.default.createElement("div",{className:"jp-unlinked-notice"},M.default.createElement(D.default,{title:(0,E.translate)("Connect your account to get the most out of Jetpack"),callToAction:(0,E.translate)("Connect to WordPress.com"),href:this.props.connectUrl+"&from=unlinked-user-connect",icon:"my-sites"}))}}]),t}(M.default.Component);Y.displayName="UserUnlinked",Y.propTypes={connectUrl:m.default.string.isRequired,siteConnected:m.default.bool.isRequired};var I=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return M.default.createElement("div",{"aria-live":"polite"},M.default.createElement(k.default,null),M.default.createElement(L.default,null),M.default.createElement(x,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),M.default.createElement(R,{siteConnectionStatus:this.props.siteConnectionStatus,siteDevMode:this.props.siteDevMode}),M.default.createElement(j,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),M.default.createElement(z.default,null),M.default.createElement(Y,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&M.default.createElement(v.default,{showDismiss:!1,status:"is-warning",text:(0,E.translate)("This site is not connected to WordPress.com. Please ask the site administrator to connect.")}))}}]),t}(M.default.Component);I.displayName="JetpackNotices",t.default=(0,b.connect)(function(e){return{connectUrl:(0,S.getConnectUrl)(e),siteConnectionStatus:(0,S.getSiteConnectionStatus)(e),userCanConnectSite:(0,C.userCanConnectSite)(e),userIsSubscriber:(0,C.userIsSubscriber)(e),isLinked:(0,S.isCurrentUserLinked)(e),isDevVersion:(0,C.isDevVersion)(e),siteDevMode:(0,S.getSiteDevMode)(e),isStaging:(0,S.isStaging)(e),isInIdentityCrisis:(0,S.isInIdentityCrisis)(e)}})(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(1214),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(102),y=r(v),A=n(163),E=r(A),w=n(856),k=r(w),T=n(1217),L=r(T),S=n(10),C=n(18),O=n(114),z=(0,y.default)("calypso:notices");n(1220);var N=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.removeNotice=function(e){e&&L.default.removeNotice(e)},r.handleLocalNoticeDismissClick=function(e){return function(){return r.removeNotice(e)}},r.handleReduxNoticeDismissClick=function(e){return function(){return r.props.removeNotice(e)}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){z("Mounting Global Notices React component.")}},{key:"render",value:function(){var e=this.props.notices[this.props.id]||[],t=e.map(function(e,t){return g.default.createElement(E.default,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss},e.button&&g.default.createElement(k.default,{href:e.href,onClick:e.onClick},e.button))},this);return t=t.concat(this.props.storeNotices.map(function(e,t){return g.default.createElement(E.default,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})},this)),t.length?g.default.createElement("div",{id:this.props.id,className:"global-notices"},t):null}}]),t}(g.default.Component);N.displayName="NoticesList",N.propTypes={id:M.default.string,notices:M.default.oneOfType([M.default.object,M.default.array])},N.defaultProps={id:"overlay-notices",notices:(0,i.default)([])},t.default=(0,S.connect)(function(e){return{storeNotices:e.globalNotices}},function(e){return(0,C.bindActionCreators)({removeNotice:O.removeNotice},e)})(N),e.exports=t.default},function(e,t,n){e.exports={default:n(1215),__esModule:!0}},function(e,t,n){n(1216),e.exports=n(20).Object.freeze},function(e,t,n){var r=n(50),a=n(222).onFreeze;n(225)("freeze",function(e){return function(t){return e&&r(t)?e(a(t)):t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(102)("calypso:notices"),a=n(1218);r("initializing notices");var i={containerNames:{}};a(i);var o=[];n(1219);var s={new:function(e,t,n){var a=t.overlay?"overlay-notices":"notices";i.containerNames[a]=a,r("creating notice",e,t,n),i[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?o.push(c):i[a].push(c),i.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:i,removeNotice:function(e){if(e.container){var t=i[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),i.emit("change"))}},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");var n=void 0,a=void 0,s=!1,c=function(e){return e.persistent};for(a in i.containerNames)n=i[a].length,i[a]=i[a].filter(c),n!==i[a].length&&(s=!0);o.length&&(o.forEach(function(e){i[e.container]=[],i[e.container].push(e)}),o=[]),s&&i.emit("change"),t()},clearNotices:function(e){i[e]=[],i.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(147).EventEmitter,a=n(24);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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(8),b=n(163),g=r(b),v=n(28),y=n(517),A=n(856),E=r(A),w=n(1222),k=r(w),T=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showNotice:!0},r.dismissJetpackStateNotice=function(){r.setState({showNotice:!1})},r.getErrorFromKey=function(e){var t=r.props.jetpackStateNoticesErrorDescription||!1,n="";switch(e){case"cheatin":n=(0,M.translate)("Cheatin' uh?");break;case"access_denied":n=(0,M.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:m.default.createElement("a",{href:"https://jetpack.com/cancelled-connection/",target:"_blank",rel:"noopener noreferrer"}),p:m.default.createElement("p",null)}});break;case"wrong_state":n=(0,M.translate)("You need to stay logged in to your WordPress blog while you authorize Jetpack.");break;case"invalid_client":n=(0,M.translate)("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.");break;case"invalid_grant":n=(0,M.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,M.translate)("Your website needs to be publicly accessible to use Jetpack: %(error_key)s",{args:{error_key:e}});break;case"not_public":n=(0,M.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:m.default.createElement("strong",null)}});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=(0,M.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,M.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,M.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:m.default.createElement("strong",null)},args:{error_key:e}});break;default:n=e}return t?m.default.createElement("div",null,n,m.default.createElement("br",null),t):m.default.createElement("div",null,n)},r.getMessageFromKey=function(e){var t="",n="is-info",a=void 0;switch(e){case"modules_activated":t=(0,M.translate)("Welcome to {{s}}Jetpack %(jetpack_version)s{{/s}}!",{args:{jetpack_version:r.props.currentVersion},components:{s:m.default.createElement("strong",null)}});break;case"already_authorized":t=(0,M.translate)("Your Jetpack is already connected."),n="is-success";break;case"authorized":t=(0,M.translate)("You're fueled up and ready to go, Jetpack is now active."),n="is-success";break;case"linked":t=(0,M.translate)("You're fueled up and ready to go."),n="is-success";break;case"protect_misconfigured_ip":t=(0,M.translate)("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site."),n="is-info",a=m.default.createElement(E.default,{href:"https://jetpack.com/support/security/troubleshooting-protect/"},(0,M.translate)("Learn More"));break;default:t=e}return[t,n,a]},r.renderContent=function(){var e="is-info",t="",n=void 0,a=r.props.jetpackStateNoticesErrorCode,i=r.props.jetpackStateNoticesMessageCode;if(a||i){a&&(t=r.getErrorFromKey(a),"access_denied"!==a&&(e="is-error"));var o=r.props.currentVersion,s=/(5\.8).*/;if("modules_activated"===i&&o.match(s))return m.default.createElement(k.default,{dismiss:r.dismissJetpackStateNotice,adminUrl:r.props.adminUrl});if(i){var c=r.getMessageFromKey(i);t=c[0],e=c[1],n=c[2]}return m.default.createElement(g.default,{status:e,onDismissClick:r.dismissJetpackStateNotice,text:t},n)}},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,this.state.showNotice?this.renderContent():null)}}]),t}(m.default.Component);T.displayName="JetpackStateNotices",t.default=(0,_.connect)(function(e){return{currentVersion:(0,v.getCurrentVersion)(e),jetpackStateNoticesErrorCode:(0,y.getJetpackStateNoticesErrorCode)(e),jetpackStateNoticesMessageCode:(0,y.getJetpackStateNoticesMessageCode)(e),jetpackStateNoticesErrorDescription:(0,y.getJetpackStateNoticesErrorDescription)(e),adminUrl:(0,v.getSiteAdminUrl)(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(51),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(8),y=n(41),A=r(y),E=n(10),w=n(475),k=r(w),T=n(851),L=r(T),S=n(80),C=n(30),O=n(23),z=n(52),N=n(36),D=r(N),P=(0,C.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.toggleModule=function(e,t){r.props.updateOptions((0,i.default)({},e,!t))},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"renderInnerContent",value:function(){var e=this.props.module("lazy-images");return g.default.createElement("div",null,g.default.createElement("p",null,(0,v.translate)("This release of Jetpack brings major new features and big improvements to your WordPress site.")),g.default.createElement("h2",null,(0,
51
- v.translate)("Speed up your site and its content")),g.default.createElement("p",null,(0,v.translate)("Sites with large numbers of images can now activate the Lazy Loading Images feature, which significantly speeds up loading times for visitors. Instead of waiting for the entire page to load, Jetpack will instead show pages instantly, and only download additional images when they are about to come into view.")),g.default.createElement("p",null,(0,v.translate)("If this sounds like a great improvement (and it is) you can enable it now by clicking the toggle below.")),g.default.createElement("div",{className:"jp-upgrade-notice__enable-module"},g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:e},g.default.createElement(z.ModuleToggle,{slug:"lazy-images",disabled:!1,activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,L.default)(e.description))))),g.default.createElement("p",null,(0,v.translate)("We have also upgraded all our Premium plan customers to unlimited high-speed video storage (up from 13GB), and significantly reduced the CSS and JavaScript assets that Jetpack downloads when using features like infinite scroll and embedding rich content.")),g.default.createElement("h2",null,(0,v.translate)("Faster, more relevant search results")),g.default.createElement("a",{href:"https://wp.me/p1moTy-731",rel:"noopener noreferrer",target:"_blank"},g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2018/02/jetpack-elasticsearch-powered-search.png",width:"700",alt:(0,v.translate)("Elasticsearch")})),g.default.createElement("p",null,(0,v.translate)("Our faster site search is now available to all Professional plan customers. This replaces the default WordPress search with an Elasticsearch-powered infrastructure that returns faster, more relevant results to users.")),g.default.createElement("div",{className:"jp-dialogue__cta-container"},g.default.createElement(A.default,{primary:!0,href:"https://jetpack.com/?p=27095"},(0,v.translate)("Read the full announcement!")),g.default.createElement("p",{className:"jp-dialogue__note"},g.default.createElement("a",{href:"https://jetpack.com/pricing"},(0,v.translate)("Compare paid plans")))))}},{key:"render",value:function(){return g.default.createElement(k.default,{svg:g.default.createElement("img",{src:S.imagePath+"jetpack-search.svg",width:"250",alt:(0,v.translate)("Jetpack Search")}),title:(0,v.translate)("Major new features from Jetpack"),content:this.renderInnerContent(),dismiss:this.props.dismiss})}}]),t}(b.Component));k.default.propTypes={dismiss:M.default.func},t.default=(0,E.connect)(function(e){return{module:function(t){return(0,O.getModule)(e,t)}}})(P),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(18),M=n(10),b=n(163),g=r(b),v=n(8),y=n(517),A=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.dismissJetpackActionNotice=function(){r.props.dismissJetpackActionNotice(r.props.jetpackNotices)},r.renderNotices=function(){var e=r.props.jetpackNotices;switch(e){case"disconnected":return!r.props.isDismissed(e)&&m.default.createElement("div",null,m.default.createElement(g.default,{onDismissClick:r.dismissJetpackActionNotice},(0,v.translate)("You have successfully disconnected Jetpack"),m.default.createElement("br",null),(0,v.translate)("Would you tell us why? Just {{a}}answering two simple questions{{/a}} would help us improve Jetpack.",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/survey-disconnected/",target:"_blank",rel:"noopener noreferrer"})}})));default:return!1}},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,this.renderNotices())}}]),t}(m.default.Component);A.displayName="DismissableNotices",t.default=(0,M.connect)(function(e){return{jetpackNotices:(0,y.getJetpackNotices)(e),isDismissed:function(t){return(0,y.isNoticeDismissed)(e,t)}}},function(e){return(0,_.bindActionCreators)({dismissJetpackActionNotice:y.dismissJetpackActionNotice},e)})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=jQuery(this.refs.adminNotices),t=jQuery(".vp-deactivated");t.length>0&&t.each(function(){var t=jQuery(this).addClass("dops-notice is-success is-dismissable").removeClass("wrap vp-notice notice notice-success");t.wrapInner('<span class="dops-notice__content">'),t.find(".dops-notice__content").before('<span class="dops-notice__icon-wrapper"><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></span>').css("display","block"),t.find(".dops-notice__content").after('<span role="button" tabindex="0" class="dops-notice__dismiss"><svg class="gridicon gridicons-cross" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></g></svg><span class="screen-reader-text"></span></span>'),t.find("h2").replaceWith(function(){return jQuery("<strong />",{html:this.innerHTML})}),t.find("p").replaceWith(function(){return jQuery("<div/>",{html:this.innerHTML})}),t.prependTo(e).css("display","flex")});var n=jQuery(".vp-notice");n.length>0&&n.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?'<span class="dops-notice__icon-wrapper"><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></span>':'<span class="dops-notice__icon-wrapper"><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></span>';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 r=jQuery(".woocommerce-message");r.length>0&&r.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)}),e.length>0&&jQuery(".dops-notice__dismiss").click(function(){jQuery(this).parent().closest("div").hide()})}},{key:"render",value:function(){return m.default.createElement("div",{id:"jp-admin-notices",ref:"adminNotices","aria-live":"polite"})}}]),t}(m.default.Component);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}),t.Tracker=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=n(10),b=n(74),g=t.Tracker=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&t("jetpack_wpa_search_term",{term:e.searchTerm})}},{key:"render",value:function(){return null}}]),t}(_.Component);g.propTypes={analytics:m.default.object,searchTerm:m.default.string},t.default=(0,M.connect)(function(e){return{searchTerm:(0,b.getSearchTerm)(e)}})(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(47),v=n(15),y=r(v),A=n(61),E=n(103),w=n(1227),k=r(w),T=n(1228),L=r(T),S=n(1229),C=r(S),O=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e.state={planWelcomeDismissed:!1},e.boundDismiss=e.dismissWelcome.bind(e),e}return(0,p.default)(t,e),(0,u.default)(t,[{key:"dismissWelcome",value:function(){var e=(0,g.getPlanClass)(this.props.sitePlan.product_slug);y.default.tracks.recordEvent("jetpack_warm_welcome_plan_dismiss",{planClass:e}),this.setState({planWelcomeDismissed:!0}),this.props.dismiss()}},{key:"render",value:function(){var e=(0,g.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(k.default,t);case"is-premium-plan":return M.default.createElement(L.default,t);case"is-business-plan":return M.default.createElement(C.default,t);default:return!1}}}]),t}(_.Component);O.propTypes={dismiss:m.default.func,newPlanActivated:m.default.bool,userCanManageModules:m.default.bool},O.defaultProps={newPlanActivated:!1,userCanManageModules:!1},t.default=(0,b.connect)(function(e){return{sitePlan:(0,A.getSitePlan)(e)}},function(e){return{dismiss:function(){return e((0,E.updateSettings)({show_welcome_for_new_plan:!1}))}}})(O),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(475),A=r(y),E=n(41),w=r(E),k=n(80),T=n(858),L=r(T),S=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){v.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,b.translate)("Thanks for choosing Jetpack Personal. Jetpack is now backing up your site and scanning for security threats.")),M.default.createElement("img",{src:k.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Themes")}),M.default.createElement("p",null,(0,b.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(L.default,null),M.default.createElement(w.default,{className:"jp-welcome-new-plan__button",href:"#/traffic",onClick:this.props.dismiss,primary:!0},(0,b.translate)("Got it!")))}},{key:"render",value:function(){return M.default.createElement(A.default,{svg:M.default.createElement("img",{src:k.imagePath+"connect-jetpack.svg",width:"160",alt:(0,b.translate)("Welcome personal"),style:{paddingLeft:"60px"}}),title:(0,b.translate)("Your Jetpack Personal plan is powering up!"),content:this.renderInnerContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-personal"})}}]),t}(_.Component);S.propTypes={dismiss:m.default.func},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(475),w=r(E),k=n(80),T=n(920),L=r(T),S=n(858),C=r(S),O=n(518),z=r(O),N=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return n.clickCtaDismissVideo=n.clickCtaDismiss.bind(n,"video"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){A.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){A.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,b.translate)("Thanks for choosing Jetpack Premium. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.")),M.default.createElement("img",{src:k.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Themes")}),M.default.createElement("p",null,(0,b.translate)("With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 100 free themes, or enhance your content with unlimited HD video -- all hosted free of ads or watermarks.")),M.default.createElement("img",{src:k.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Sharing")}),M.default.createElement("p",null,(0,b.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(z.default,{module_slug:"publicize"}),M.default.createElement(z.default,{module_slug:"wordads"}),M.default.createElement(L.default,null),M.default.createElement(C.default,null),M.default.createElement("p",null,(0,b.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(v.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,b.translate)("Monetize your site with ads")))}},{key:"render",value:function(){return M.default.createElement(w.default,{svg:M.default.createElement("img",{src:k.imagePath+"generating-cash-2.svg",width:"250",alt:(0,b.translate)("Welcome Premium")}),title:(0,b.translate)("Your Jetpack Premium plan is powering up!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-premium"})}}]),t}(_.Component);N.propTypes={dismiss:m.default.func},t.default=N,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(475),w=r(E),k=n(80),T=n(858),L=r(T),S=n(920),C=r(S),O=n(518),z=r(O),N=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return n.clickCtaDismissThemes=n.clickCtaDismiss.bind(n,"themes"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n.clickCtaDismissSearch=n.clickCtaDismiss.bind(n,"search"),n.clickCtaDismissSeo=n.clickCtaDismiss.bind(n,"seo"),n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){A.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){A.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,b.translate)("Thanks for choosing Jetpack Professional. Jetpack is now backing up your content in real-time, indexing your content for search, scanning for security threats, and granting access to premium themes.")),M.default.createElement("img",{src:k.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Themes")}),M.default.createElement("p",null,(0,b.translate)("With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 200 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("p",null,(0,b.translate)("Give your visitor's a great search experience by letting them filter and sort fast, relevant search results.")),M.default.createElement(z.default,{module_slug:"search"}),M.default.createElement("img",{src:k.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Sharing")}),M.default.createElement("p",null,(0,b.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(z.default,{module_slug:"publicize"}),M.default.createElement(z.default,{module_slug:"wordads"}),M.default.createElement(z.default,{module_slug:"seo-tools"}),M.default.createElement(z.default,{module_slug:"google-analytics"}),M.default.createElement(L.default,null),M.default.createElement(C.default,null),M.default.createElement("p",null,(0,b.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(v.default,{href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissThemes},(0,b.translate)("Install premium themes")),M.default.createElement(v.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,b.translate)("Monetize your site with ads")),M.default.createElement(v.default,{href:"customize.php?autofocus[panel]=widgets",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissSearch},(0,b.translate)("Add the Search (Jetpack) widget to your sidebar")),M.default.createElement(v.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissSeo},(0,b.translate)("Review SEO features")))}},{key:"render",value:function(){return M.default.createElement(w.default,{svg:M.default.createElement("img",{src:k.imagePath+"people-around-page.svg",width:"250",alt:(0,b.translate)("Welcome Professional")}),title:(0,b.translate)("Your Jetpack Professional plan is taking care of business!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-professional"})}}]),t}(_.Component);N.propTypes={dismiss:m.default.func},t.default=N,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=n(10),b=n(477),g=n(61),v=n(21),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.isFetchingRewindStatus||this.props.isDevMode||this.props.fetchRewind()}},{key:"render",value:function(){return null}}]),t}(_.Component);y.propTypes={isFetchingRewindStatus:m.default.bool,isDevMode:m.default.bool,sitePlan:m.default.object},y.defaultProps={isFetchingRewindStatus:!1,isDevMode:!1,sitePlan:{}},t.default=(0,M.connect)(function(e){return{isFetchingRewindStatus:(0,b.isFetchingRewindStatus)(e),isDevMode:(0,v.isDevMode)(e),sitePlan:(0,g.getSitePlan)(e)}},function(e){return{fetchRewind:function(){return e((0,b.fetchRewindStatus)())}}})(y),e.exports=t.default}]);
42
g.translate)("Your site needs an Antispam key.")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=M.default.createElement("div",{className:"form-input-validation is-warning"},M.default.createElement("span",null,M.default.createElement(L.default,{size:24,icon:"sync"}),(0,g.translate)("Checking key…"))),r=!1):!1===this.props.isAkismetKeyValid?(t=M.default.createElement(k.default,{isError:!0,text:(0,g.translate)("There's a problem with your Antispam API key. {{a}}Learn more{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})}})}),e.isError=!0,n=(0,g.translate)("Your site is not protected from spam.")):(t=M.default.createElement(k.default,{text:(0,g.translate)("Your Antispam key is valid.")}),e.isValid=!0,n=(0,g.translate)("Your site is protected from spam."),r=!1),M.default.createElement(U.default,(0,i.default)({},this.props,{header:(0,g.translate)("Spam filtering",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:R.FEATURE_SPAM_AKISMET_PLUS}),M.default.createElement(E.default,{onOpen:this.trackOpenCard,header:n},M.default.createElement(F.default,{support:{text:(0,g.translate)("Removes spam from comments and contact forms."),link:"https://akismet.com/jetpack/"}},M.default.createElement(q.FormFieldset,null,M.default.createElement(q.FormLabel,null,M.default.createElement("span",{className:"jp-form-label-wide"},(0,g.translate)("Your API key")),M.default.createElement(y.default,e),t),r&&M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("If you don't already have an API key, then {{a}}get your API key here{{/a}}, and you'll be guided through the process of getting one.",{components:{a:M.default.createElement("a",{href:"https://akismet.com/wordpress/"})}}))))))}}]),t}(_.Component));t.default=(0,b.connect)(function(e){return{isAkismetKeyValid:(0,j.isAkismetKeyValid)(e),isCheckingAkismetKey:(0,j.isCheckingAkismetKey)(e)}},function(e){return{checkAkismetKey:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,j.checkAkismetKey)(t))}}})(X)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(24),_=n(14),M=n(25),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=m({},this.props,{className:_(this.props.className,"is-compact")});return h.createElement(M,e,this.props.children)}}]),t}(h.Component);b.displayName="CompactCard",t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(65);n(1111);var b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=_({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return m.createElement("div",{className:e},m.createElement("span",null,m.createElement(M,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}]),t}(m.Component);b.displayName="FormInputValidation",b.propTypes={isError:h.bool,isWarning:h.bool,text:h.node,icon:h.string},b.defaultProps={isError:!1},t.default=b,e.exports=t.default},function(e,t){},function(e,t,n){function r(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=a(t)))return e;var r=c(e),d=c(t),f=s(r,d),p=o(r,d)+1;return i(r,f,p).join("")}var a=n(489),i=n(1113),o=n(1114),s=n(1115),c=n(1116),u=n(224),l=/^\s+|\s+#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(466);e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&a(t,e[n],0)>-1;);return n}var a=n(226);e.exports=r},function(e,t,n){function r(e){return i(e)?o(e):a(e)}var a=n(1117),i=n(913),o=n(1118);e.exports=r},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(d)||[]}var r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",c="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",i,o].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",u="[\\ufe0e\\ufe0f]?"+s+c,l="(?:"+["[^\\ud800-\\udfff]"+r+"?",r,i,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(a+"(?="+a+")|"+l+u,"g");e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Monitor=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(25),A=r(y),E=n(52),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.Monitor=(0,w.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){v.default.tracks.recordJetpackClick("configure-monitor")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("monitor"),t=this.props.isUnavailableInDevMode("monitor");return M.default.createElement(T.default,(0,i.default)({},this.props,{hideButton:!0,module:"monitor",header:(0,b.translate)("Downtime monitoring",{context:"Settings header"})}),M.default.createElement(S.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("monitor"),support:{text:(0,b.translate)("Keep tabs on your site and receive alerts the moment downtime is detected."),link:"https://jetpack.com/support/monitor/"}},M.default.createElement(E.ModuleToggle,{slug:"monitor",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Monitor your site's downtime")))),M.default.createElement(A.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:"https://wordpress.com/settings/security/"+this.props.siteRawUrl},(0,b.translate)("Configure your notification settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Protect=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(41),v=r(g),y=n(1121),A=r(y),E=n(44),w=r(E),k=n(516),T=r(k),L=n(14),S=r(L),C=n(15),O=r(C),z=n(71),N=n(52),D=n(30),P=n(40),x=r(P),j=n(36),R=r(j);t.Protect=(0,D.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={whitelist:r.props.getOptionValue("jetpack_protect_global_whitelist")?r.props.getOptionValue("jetpack_protect_global_whitelist").local:""},r.currentIpIsWhitelisted=function(){return!!(0,w.default)(r.state.whitelist,r.props.currentIp)},r.updateText=function(e){r.currentIpIsWhitelisted(),r.setState({whitelist:e.target.value}),r.props.onOptionChange(e)},r.addToWhitelist=function(){var e=r.state.whitelist+(0>=r.state.whitelist.length?"":"\n")+r.props.currentIp;r.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),r.setState({whitelist:e}),O.default.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})},r.trackOpenCard=function(){O.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInDevMode("protect"),n=M.default.createElement(N.ModuleToggle,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return M.default.createElement(x.default,(0,i.default)({},this.props,{module:"protect",header:(0,b.translate)("Brute force attack protection",{context:"Settings header"}),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),M.default.createElement(T.default,{onOpen:this.trackOpenCard,header:n,className:(0,S.default)({"jp-foldable-settings-disable":t})},M.default.createElement(R.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("protect"),support:{text:(0,b.translate)("Protects your site from traditional and distributed brute force login attacks."),link:"https://jetpack.com/support/protect/"}},M.default.createElement(z.FormFieldset,null,this.props.currentIp&&M.default.createElement("div",null,M.default.createElement("div",{className:"jp-form-label-wide"},(0,b.translate)("Your current IP: %(ip)s",{args:{ip:this.props.currentIp}})),M.default.createElement(v.default,{disabled:!e||t||this.currentIpIsWhitelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToWhitelist},(0,b.translate)("Add to whitelist"))),M.default.createElement(z.FormLabel,null,M.default.createElement(z.FormLegend,null,(0,b.translate)("Whitelisted IP addresses")),M.default.createElement(A.default,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.whitelist})),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("You may whitelist an IP address or series of addresses preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100",{components:{br:M.default.createElement("br",null)}}))))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=n(14),b=n(116);n(1122);var g=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return _.createElement("textarea",(0,i.default)({},b(this.props,"className"),{className:M(this.props.className,"dops-textarea")}),this.props.children)}}]),t}(_.Component);g.displayName="Textarea",t.default=g,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SSO=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(104),A=r(y),E=n(71),w=n(52),k=n(30),T=n(40),L=r(T),S=n(36),C=r(S);t.SSO=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={jetpack_sso_match_by_email:r.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:r.props.getOptionValue("jetpack_sso_require_two_step","sso")},r.handleTwoStepToggleChange=function(){r.updateOptions("jetpack_sso_require_two_step")},r.handleMatchByEmailToggleChange=function(){r.updateOptions("jetpack_sso_match_by_email")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("sso",e))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInDevMode("sso");return g.default.createElement(L.default,(0,i.default)({},this.props,{hideButton:!0,module:"sso",header:(0,v.translate)("WordPress.com log in",{context:"Settings header"})}),g.default.createElement(C.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("sso"),support:{text:(0,v.translate)("Allows registered users to log in to your site with their WordPress.com accounts."),link:"https://jetpack.com/support/sso/"}},g.default.createElement(w.ModuleToggle,{slug:"sso",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g.default.createElement(E.FormFieldset,null,g.default.createElement(A.default,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Match accounts using email addresses"))),g.default.createElement(A.default,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Require accounts to use WordPress.com Two-Step Authentication"))))))}}]),t}(b.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Traffic=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(23),v=n(103),y=n(21),A=n(74),E=n(211),w=r(E),k=n(1125),T=n(1126),L=n(1127),S=n(1128),C=n(1129),O=n(1130),z=r(O),N=n(1131),D=n(1132),P=r(D),x=n(28),j=t.Traffic=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,getModuleOverride:this.props.getModuleOverride},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),a=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),s=this.props.isModuleFound("sitemaps"),c=this.props.isModuleFound("search"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||a||o||s||u||c)?M.default.createElement("div",null,M.default.createElement(w.default,null),r&&M.default.createElement(S.SiteStats,e),c&&M.default.createElement(z.default,e),n&&M.default.createElement(L.Ads,(0,i.default)({},e,{configureUrl:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl})),a&&M.default.createElement(C.RelatedPosts,(0,i.default)({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&M.default.createElement(k.SEO,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#seo"})),u&&M.default.createElement(T.GoogleAnalytics,(0,i.default)({},e,{configureUrl:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl+"#analytics"})),s&&M.default.createElement(P.default,e),o&&M.default.createElement(N.VerificationServices,e)):null}}]),t}(M.default.Component);j.displayName="TrafficSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,g.getModule)(e,t)},settings:(0,v.getSettings)(e),isDevMode:(0,y.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,y.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,A.isModuleFound)(e,t)},lastPostUrl:(0,x.getLastPostUrl)(e),getModuleOverride:function(t){return(0,g.getModuleOverride)(e,t)}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SEO=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackConfigureClick=function(){A.default.tracks.recordJetpackClick("configure-seo")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Search engine optimization",{context:"Settings header"}),feature:E.FEATURE_SEO_TOOLS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"seo-tools"},support:{text:(0,b.translate)("Allows you to optimize your site and its content for better results in search engines."),link:"https://jetpack.com/support/seo-tools/"}},M.default.createElement("span",null,(0,b.translate)("You can tweak these settings if you'd like more advanced control. Read more about what you can do to {{a}}optimize your site's SEO{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/seo-tools/"})}}))),!this.props.isUnavailableInDevMode("seo-tools")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your SEO settings")))}}]),t}(M.default.Component);t.SEO=(0,w.ModuleSettingsForm)(C)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(47),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L);t.GoogleAnalytics=(0,w.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackConfigureClick",value:function(){A.default.tracks.recordJetpackClick("configure-ga")}},{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,b.translate)("Google Analytics",{context:"Settings header"}),feature:E.FEATURE_GOOGLE_ANALYTICS_JETPACK,hideButton:!0}),M.default.createElement(S.default,{disableInDevMode:!0,module:{module:"google-analytics"},support:{text:(0,b.translate)("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions."),link:"https://jetpack.com/support/google-analytics/"}},M.default.createElement("p",null,(0,b.translate)("Google Analytics is a free service that complements our {{a}}built-in stats{{/a}} with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.",{components:{a:M.default.createElement("a",{href:"https://wordpress.com/stats/day/"+this.props.siteRawUrl})}}))),!this.props.isUnavailableInDevMode("google-analytics")&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("Configure your Google Analytics settings")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Ads=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(104),A=r(y),E=n(15),w=r(E),k=n(47),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z);t.Ads=(0,L.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.updateOptions=function(e){r.props.updateFormStateModuleOption("wordads",e)},r.trackConfigureClick=function(){w.default.tracks.recordJetpackClick("view-earnings")},r.trackConfigureWidgetClick=function(){w.default.tracks.recordJetpackClick("place_ad_widget")},r.handleChange=function(e){return function(){return r.updateOptions(e)}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInDevMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),a=this.props.getOptionValue("wordads_display_front_page","wordads"),o=this.props.getOptionValue("wordads_display_post","wordads"),s=this.props.getOptionValue("wordads_display_page","wordads"),c=this.props.getOptionValue("wordads_display_archive","wordads");return M.default.createElement(O.default,(0,i.default)({},this.props,{header:(0,b.translate)("Ads",{context:"Ads header"}),feature:k.FEATURE_WORDADS_JETPACK,hideButton:!0}),M.default.createElement(N.default,{disableInDevMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:(0,b.translate)("Displays high-quality ads on your site that allow you to earn income."),link:"https://jetpack.com/support/ads/"}},M.default.createElement("p",null,(0,b.translate)("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings."),M.default.createElement("br",null),M.default.createElement("small",{className:"jp-form-setting-explanation"},(0,b.translate)("By activating ads, you agree to the Automattic Ads {{link}}Terms of Service{{/link}}.",{components:{link:M.default.createElement("a",{href:"https://wordpress.com/automattic-ads-tos/",target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}}))),M.default.createElement(S.ModuleToggle,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Enable ads and display an ad below each post"))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Display ads below posts on")),M.default.createElement(A.default,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Front page"))),M.default.createElement(A.default,{checked:o,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Posts"))),M.default.createElement(A.default,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Pages"))),M.default.createElement(A.default,{checked:c,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Archives")))),M.default.createElement(T.FormFieldset,null,M.default.createElement(T.FormLegend,null,(0,b.translate)("Additional ad placements")),M.default.createElement(A.default,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Top of each page"))),M.default.createElement(A.default,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},M.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,b.translate)("Second ad below post"))),M.default.createElement("small",{className:"jp-form-setting-explanation"},e&&(0,b.translate)("You can place additional ads using the Ad widget. {{link}}Try it out!{{/link}}",{components:{link:M.default.createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}})))),!t&&e&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},(0,b.translate)("View your earnings")))}}]),t}(M.default.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SiteStats=void 0;var a=n(11),i=r(a),o=n(113),s=r(o),c=n(51),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(1),y=r(v),A=n(8),E=n(104),w=r(E),k=n(516),T=r(k),L=n(41),S=r(L),C=n(25),O=r(C),z=n(44),N=r(z),D=n(459),P=r(D),x=n(14),j=r(x),R=n(80),Y=n(15),I=r(Y),q=n(71),B=n(30),W=n(36),U=r(W),H=n(40),F=r(H),X=n(515),V=r(X),K=function(e){function t(e){(0,p.default)(this,t);var n=(0,M.default)(this,(t.__proto__||(0,d.default)(t)).call(this,e));n.updateOptions=function(e,t){var r=n.props.getOptionValue(t,"stats"),a=!1;n.state[t+"_"+e]?(0,N.default)(r,e)&&(r=(0,P.default)(r,function(t){return t!==e})):(0,N.default)(r,e)||(r.push(e),a=!0),n.setState((0,u.default)({},t+"_"+e,!n.state[t+"_"+e]),function(){n.props.updateOptions((0,u.default)({},t,r))}),I.default.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:a?"on":"off"})},n.activateStats=function(){n.props.updateOptions({stats:!0})},n.trackOpenCard=function(){I.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})},n.handleRoleToggleChange=function(e,t){return function(){return n.updateOptions(e,t)}};var r=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");return n.state={count_roles:r,roles:a,count_roles_administrator:(0,N.default)(r,"administrator",!1),count_roles_editor:(0,N.default)(r,"editor",!1),count_roles_author:(0,N.default)(r,"author",!1),count_roles_contributor:(0,N.default)(r,"contributor",!1),count_roles_subscriber:(0,N.default)(r,"subscriber",!1),roles_administrator:!0,roles_editor:(0,N.default)(a,"editor",!1),roles_author:(0,N.default)(a,"author",!1),roles_contributor:(0,N.default)(a,"contributor",!1),roles_subscriber:(0,N.default)(a,"subscriber",!1)},n}return(0,g.default)(t,e),(0,m.default)(t,[{key:"handleStatsOptionToggle",value:function(e){var t=this;return function(){return t.props.updateFormStateModuleOption("stats",e)}}},{key:"render",value:function(){var e=this,t=this.props.getModule("stats"),n=this.props.getOptionValue("stats"),r=this.props.isUnavailableInDevMode("stats"),a=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?y.default.createElement(V.default,{moduleName:t.name}):n?y.default.createElement(F.default,(0,i.default)({},this.props,{header:(0,A.translate)("Site stats",{context:"Settings header"}),hideButton:!0}),y.default.createElement(T.default,{onOpen:this.trackOpenCard,header:(0,A.translate)("Collecting valuable traffic stats and insights"),clickableHeader:!0,className:(0,j.default)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":r})},y.default.createElement(U.default,{disableInDevMode:!0,module:t,support:{text:(0,A.translate)("Displays information on your site activity, including visitors and popular posts or pages."),link:"https://jetpack.com/support/wordpress-com-stats/"}},y.default.createElement(q.FormFieldset,null,y.default.createElement(w.default,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Put a chart showing 48 hours of views in the admin bar"))),y.default.createElement(w.default,{checked:!!this.props.getOptionValue("hide_smile"),disabled:!n||r,toggling:this.props.isSavingAnyOption(["stats","hide_smile"]),onChange:this.handleStatsOptionToggle("hide_smile")},y.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,A.translate)("Hide the stats smiley face image")),y.default.createElement("span",{className:"jp-form-setting-explanation"},(0,A.translate)("The image helps collect stats, but should work when hidden.")))),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Count logged in page views from")),(0,s.default)(a).map(function(t){return y.default.createElement(w.default,{checked:e.state["count_roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","count_roles"]),onChange:e.handleRoleToggleChange(t,"count_roles"),key:"count_roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))})),y.default.createElement(q.FormFieldset,null,y.default.createElement(q.FormLegend,null,(0,A.translate)("Allow stats reports to be viewed by")),y.default.createElement(w.default,{checked:!0,disabled:!0},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a.administrator.name)),(0,s.default)(a).map(function(t){return"administrator"!==t&&y.default.createElement(w.default,{checked:e.state["roles_"+t],disabled:!n||r||e.props.isSavingAnyOption(["stats","roles"]),onChange:e.handleRoleToggleChange(t,"roles"),key:"roles-"+t},y.default.createElement("span",{className:"jp-form-toggle-explanation"},a[t].name))}))))):y.default.createElement(O.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},y.default.createElement("img",{src:R.imagePath+"stats.svg",width:"60",height:"60",alt:(0,A.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,A.translate)("Unavailable in Dev Mode"):(0,A.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:y.default.createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:y.default.createElement("a",{
43
href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&y.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},y.default.createElement(S.default,{onClick:this.activateStats,primary:!0},(0,A.translate)("Activate Site Stats")))))}}]),t}(y.default.Component);t.SiteStats=(0,B.ModuleSettingsForm)(K)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedPosts=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(8),y=n(474),A=r(y),E=n(25),w=r(E),k=n(104),T=r(k),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={show_headline:r.props.getOptionValue("show_headline","related-posts"),show_thumbnails:r.props.getOptionValue("show_thumbnails","related-posts")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("related-posts",e))},r.handleShowHeadlineToggleChange=function(){r.updateOptions("show_headline")},r.handleShowThumbnailsToggleChange=function(){r.updateOptions("show_thumbnails")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getOptionValue("related-posts"),n=this.props.isUnavailableInDevMode("related-posts");return g.default.createElement(z.default,(0,i.default)({},this.props,{hideButton:!0,module:"related-posts"}),g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:this.props.getModule("related-posts"),support:{text:(0,v.translate)("Automatically displays similar content at the end of each post."),link:"https://jetpack.com/support/related-posts/"}},g.default.createElement(S.ModuleToggle,{slug:"related-posts",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Show related content after posts"))),g.default.createElement(L.FormFieldset,null,g.default.createElement(T.default,{checked:this.state.show_headline,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)('Show a "Related" header to more clearly separate the related section from posts'))),g.default.createElement(T.default,{checked:this.state.show_thumbnails,disabled:!t||n||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,v.translate)("Use a large and visually striking layout"))),(0,v.translate)("{{span}}You can now also configure related posts in the Customizer. {{ExternalLink}}Try it out!{{/ExternalLink}}{{/span}}",{components:{span:g.default.createElement("span",{className:"jp-form-setting-explanation"}),ExternalLink:g.default.createElement(A.default,{className:"jp-module-settings__external-link",href:this.props.configureUrl})}}),g.default.createElement(L.FormLabel,{className:"jp-form-label-wide"},(0,v.translate)("Preview",{context:"A header for a preview area in the configuration screen."})),g.default.createElement(w.default,{className:"jp-related-posts-preview"},this.state.show_headline&&g.default.createElement("div",{className:"jp-related-posts-preview__title"},(0,v.translate)("Related")),[{url:"1-wpios-ipad-3-1-viewsite.png",text:(0,v.translate)("Big iPhone/iPad Update Now Available"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"wordpress-com-news-wordpress-for-android-ui-update2.jpg",text:(0,v.translate)("The WordPress for Android App Gets a Big Facelift"),context:(0,v.translate)('In "Mobile"',{comment:"It refers to the category where a post was found. Used in an example preview."})},{url:"videopresswedding.jpg",text:(0,v.translate)("Upgrade Focus: VideoPress For Weddings"),context:(0,v.translate)('In "Upgrade"',{comment:"It refers to the category where a post was found. Used in an example preview."})}].map(function(t,n){return g.default.createElement("div",{key:"preview_"+n,className:"jp-related-posts-preview__item"},e.state.show_thumbnails&&g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2014/08/"+t.url+"?w=350&h=200&crop=1",alt:t.text}),g.default.createElement("h4",{className:"jp-related-posts-preview__post-title"},g.default.createElement("a",{href:"#/traffic"},t.text)),g.default.createElement("p",{className:"jp-related-posts-preview__post-context"},t.context))})))))}}]),t}(g.default.Component);t.RelatedPosts=(0,C.ModuleSettingsForm)(P)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(47),E=n(30),w=n(52),k=n(40),T=r(k),L=n(36),S=r(L),C=n(28),O=n(61),z=n(71),N=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){return M.default.createElement(T.default,(0,i.default)({},this.props,{module:"search",feature:A.FEATURE_SEARCH_JETPACK,hideButton:!0}),M.default.createElement(S.default,{hasChild:!0,module:{module:"search"},support:{text:(0,g.translate)("Replaces the default WordPress search with a faster, filterable search experience."),link:"https://jetpack.com/support/search"}},M.default.createElement(w.ModuleToggle,{slug:"search",compact:!0,activated:this.props.getOptionValue("search"),toggling:this.props.isSavingAnyOption("search"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Replace WordPress built-in search with an improved search experience")),this.props.getOptionValue("search")&&M.default.createElement(z.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Add the Jetpack search widget to your sidebar to configure advanced search filters.")))),this.props.getOptionValue("search")&&M.default.createElement(y.default,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},(0,g.translate)("Add Jetpack Search Widget")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{siteAdminUrl:(0,C.getSiteAdminUrl)(e),sitePlan:(0,O.getSitePlan)(e),fetchingSiteData:(0,O.isFetchingSiteData)(e)}})((0,E.ModuleSettingsForm)(N)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.VerificationServices=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(508),v=r(g),y=n(474),A=r(y),E=n(71),w=n(30),k=n(40),T=r(k),L=n(36),S=r(L),C=n(473),O=r(C),z=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.activateVerificationTools=function(){return r.props.updateOptions({"verification-tools":!0})},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this,t=this.props.getModule("verification-tools");return"inactive"===this.props.getModuleOverride("google-analytics")?M.default.createElement(O.default,{title:t.name,icon:"cog",description:(0,b.translate)("%(moduleName)s has been disabled by a site administrator.",{args:{moduleName:t.name}})}):this.props.getOptionValue("verification-tools")?M.default.createElement(T.default,(0,i.default)({},this.props,{module:"verification-tools",saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex"])}),M.default.createElement(S.default,{module:t,support:{text:(0,b.translate)("Provides the necessary hidden tags needed to verify your WordPress site with various services."),link:"https://jetpack.com/support/site-verification-tools"}},M.default.createElement("p",null,(0,b.translate)("Note that {{b}}verifying your site with these services is not necessary{{/b}} in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the {{support}}full instructions{{/support}} if you are having trouble. Supported verification services: {{google}}Google Search Console{{/google}}, {{bing}}Bing Webmaster Center{{/bing}}, {{pinterest}}Pinterest Site Verification{{/pinterest}}, and {{yandex}}Yandex.Webmaster{{/yandex}}.",{components:{b:M.default.createElement("strong",null),support:M.default.createElement("a",{href:"https://jetpack.com/support/site-verification-tools/"}),google:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:M.default.createElement(A.default,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"})}})),M.default.createElement(E.FormFieldset,null,[{id:"google",label:(0,b.translate)("Google"),placeholder:'<meta name="google-site-verification" content="1234" />'},{id:"bing",label:(0,b.translate)("Bing"),placeholder:'<meta name="msvalidate.01" content="1234" />'},{id:"pinterest",label:(0,b.translate)("Pinterest"),placeholder:'<meta name="p:domain_verify" content="1234" />'},{id:"yandex",label:(0,b.translate)("Yandex"),placeholder:'<meta name="yandex-verification" content="1234" />'}].map(function(t){return M.default.createElement(E.FormLabel,{className:"jp-form-input-with-prefix",key:"verification_service_"+t.id},M.default.createElement("span",null,t.label),M.default.createElement(v.default,{name:t.id,value:e.props.getOptionValue(t.id),placeholder:t.placeholder,className:"code",disabled:e.props.isUpdating(t.id),onChange:e.props.onOptionChange}))})))):M.default.createElement(O.default,{callToAction:(0,b.translate)("Activate"),title:t.name,icon:"cog",description:t.long_description,onClick:this.activateVerificationTools})}}]),t}(M.default.Component);t.VerificationServices=(0,w.ModuleSettingsForm)(z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sitemaps=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(474),y=r(v),A=n(27),E=r(A),w=n(15),k=r(w),T=n(71),L=n(30),S=n(52),C=n(40),O=r(C),z=n(36),N=r(z),D=n(28),P=t.Sitemaps=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.trackSitemapUrl=function(){k.default.tracks.recordJetpackClick("sitemap-url-link")},r.trackSitemapNewsUrl=function(){k.default.tracks.recordJetpackClick("sitemap-news-url-link")},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getModule("sitemaps"),t=(0,E.default)(e,["extra","sitemap_url"],""),n=(0,E.default)(e,["extra","news_sitemap_url"],"");return M.default.createElement(O.default,(0,i.default)({},this.props,{module:"sitemaps",hideButton:!0}),M.default.createElement(N.default,{hasChild:!0,module:{module:"sitemaps"},support:{text:(0,g.translate)("Automatically generates the files required for search engines to index your site."),link:"https://jetpack.com/support/sitemaps/"}},M.default.createElement(S.ModuleToggle,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},(0,g.translate)("Generate XML sitemaps")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)("Your sitemap is automatically sent to all major search engines for indexing.")),M.default.createElement("p",null,M.default.createElement(y.default,{onClick:this.trackSitemapUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:t},t),M.default.createElement("br",null),M.default.createElement(y.default,{onClick:this.trackSitemapNewsUrl,icon:!0,target:"_blank",rel:"noopener noreferrer",href:n},n))):M.default.createElement(T.FormFieldset,null,M.default.createElement("p",{className:"jp-form-setting-explanation"},(0,g.translate)('Your site is not currently accessible to search engines. You might have "Search Engine Visibility" disabled in your {{a}}Reading Settings{{/a}}.',{components:{a:M.default.createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}})))))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{isSiteVisibleToSearchEngines:(0,D.isSiteVisibleToSearchEngines)(e),siteAdminUrl:(0,D.getSiteAdminUrl)(e)}})((0,L.ModuleSettingsForm)(P))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Writing=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(23),E=n(103),w=n(28),k=n(21),T=n(74),L=n(211),S=r(L),C=n(1134),O=r(C),z=n(1137),N=r(z),D=n(1138),P=r(D),x=n(1139),j=r(x),R=n(1140),Y=r(R),I=n(1152),q=n(1153),B=r(q),W=t.Writing=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["masterbar","markdown","after-the-deadline","custom-content-types","photon","carousel","post-by-email","infinite-scroll","minileven","videopress","lazy-images"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;var n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("after-the-deadline"),r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return M.default.createElement("div",null,M.default.createElement(S.default,null),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&M.default.createElement(I.Masterbar,(0,i.default)({connectUrl:this.props.connectUrl},e)),n&&M.default.createElement(O.default,(0,i.default)({},e,{userCanManageModules:this.props.userCanManageModules})),M.default.createElement(N.default,e),M.default.createElement(B.default,e),this.props.isModuleFound("custom-content-types")&&M.default.createElement(P.default,e),M.default.createElement(j.default,e),this.props.isModuleFound("post-by-email")&&r&&M.default.createElement(Y.default,(0,i.default)({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!n&&!r&&M.default.createElement(y.default,null,(0,g.translate)("Writing tools available to you will be shown here when an administrator enables them.")))}}]),t}(M.default.Component);W.displayName="WritingSettings",t.default=(0,b.connect)(function(e){return{module:function(t){return(0,A.getModule)(e,t)},settings:(0,E.getSettings)(e),masterbarIsAlwaysActive:(0,w.isAtomicSite)(e),isDevMode:(0,k.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,k.isUnavailableInDevMode)(e,t)},userCanEditPosts:(0,w.userCanEditPosts)(e),isModuleActivated:function(t){return(0,A.isModuleActivated)(e,t)},isLinked:(0,k.isCurrentUserLinked)(e),userCanManageModules:(0,w.userCanManageModules)(e),isModuleFound:function(t){return(0,T.isModuleFound)(e,t)},connectUrl:(0,k.getConnectUrl)(e),getModuleOverride:function(t){return(0,A.getModuleOverride)(e,t)}}})(W)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Composing=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(516),k=r(w),T=n(14),L=r(T),S=n(15),C=r(S),O=n(71),z=n(74),N=n(52),D=n(30),P=n(23),x=n(1135),j=r(x),R=n(40),Y=r(R),I=n(36),q=r(I),B=t.Composing=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={onpublish:r.props.getOptionValue("onpublish","after-the-deadline"),onupdate:r.props.getOptionValue("onupdate","after-the-deadline"),guess_lang:r.props.getOptionValue("guess_lang","after-the-deadline"),"Bias Language":r.props.getOptionValue("Bias Language","after-the-deadline"),Cliches:r.props.getOptionValue("Cliches","after-the-deadline"),"Complex Expression":r.props.getOptionValue("Complex Expression","after-the-deadline"),"Diacritical Marks":r.props.getOptionValue("Diacritical Marks","after-the-deadline"),"Double Negative":r.props.getOptionValue("Double Negative","after-the-deadline"),"Hidden Verbs":r.props.getOptionValue("Hidden Verbs","after-the-deadline"),"Jargon Language":r.props.getOptionValue("Jargon Language","after-the-deadline"),"Passive voice":r.props.getOptionValue("Passive voice","after-the-deadline"),"Phrases to Avoid":r.props.getOptionValue("Phrases to Avoid","after-the-deadline"),"Redundant Expression":r.props.getOptionValue("Redundant Expression","after-the-deadline")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("after-the-deadline",e))},r.handleToggleChange=function(e){return function(){return r.updateOptions(e)}},r.getToggle=function(e,t){return g.default.createElement(E.default,{checked:r.state[e],disabled:!r.props.getOptionValue("after-the-deadline")||r.props.isUnavailableInDevMode("after-the-deadline")||r.props.isSavingAnyOption(["after-the-deadline",e]),onChange:r.handleToggleChange(e)},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t))},r.getAtdSettings=function(){var e=r.props.getOptionValue("ignored_phrases");return g.default.createElement(q.default,{hasChild:!0,disableInDevMode:!0,module:r.props.getModule("after-the-deadline"),support:{text:(0,y.translate)("Checks your content for correct grammar and spelling, misused words, and style while you write."),link:"https://jetpack.com/support/spelling-and-grammar/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Proofreading")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Automatically proofread content when: ")),r.getToggle("onpublish",(0,y.translate)("A post or page is first published")),r.getToggle("onupdate",(0,y.translate)("A post or page is updated"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("Automatic Language Detection")),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("The proofreader supports English, French, German, Portuguese and Spanish.")),r.getToggle("guess_lang",(0,y.translate)("Use automatically detected language to proofread posts and pages"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null," ",(0,y.translate)("English Options")," "),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Enable proofreading for the following grammar and style rules: ")),r.getToggle("Bias Language",(0,y.translate)("Bias Language")),r.getToggle("Cliches",(0,y.translate)("Clichés")),r.getToggle("Complex Expression",(0,y.translate)("Complex Phrases")),r.getToggle("Diacritical Marks",(0,y.translate)("Diacritical Marks")),r.getToggle("Double Negative",(0,y.translate)("Double Negatives")),r.getToggle("Hidden Verbs",(0,y.translate)("Hidden Verbs")),r.getToggle("Jargon Language",(0,y.translate)("Jargon")),r.getToggle("Passive voice",(0,y.translate)("Passive Voice")),r.getToggle("Phrases to Avoid",(0,y.translate)("Phrases to Avoid")),r.getToggle("Redundant Expression",(0,y.translate)("Redundant Phrases"))),g.default.createElement(O.FormFieldset,null,g.default.createElement(O.FormLegend,null,(0,y.translate)("Ignored Phrases")),g.default.createElement(j.default,{name:"ignored_phrases",disabled:!r.props.getOptionValue("after-the-deadline"),placeholder:(0,y.translate)("Add a phrase"),value:void 0!==e&&""!==e?e.split(","):[],onChange:r.props.onOptionChange}),g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,y.translate)("Confirm each new phrase you add by pressing enter."))))},r.updateFormStateByMarkdown=function(e){return r.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):r.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)},r.trackOpenCard=function(){C.default.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"atd"})},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("after-the-deadline"),t=this.props.isModuleFound("markdown");if(!t&&!e)return null;var n=this.props.module("markdown"),r=this.props.module("after-the-deadline"),a=this.props.isUnavailableInDevMode("after-the-deadline"),o=g.default.createElement(q.default,{module:n,support:{text:(0,y.translate)("Allows you to compose content with links, lists, and other styles using the Markdown syntax."),link:"https://jetpack.com/support/markdown/"}},g.default.createElement(O.FormFieldset,null,g.default.createElement(N.ModuleToggle,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)))),s=g.default.createElement(k.default,{onOpen:this.trackOpenCard,className:(0,L.default)("jp-foldable-card__main-settings",{"jp-foldable-settings-disable":a}),header:this.props.userCanManageModules?g.default.createElement(N.ModuleToggle,{slug:"after-the-deadline",compact:!0,disabled:a,activated:this.props.getOptionValue("after-the-deadline"),toggling:this.props.isSavingAnyOption("after-the-deadline"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)):g.default.createElement("span",{className:"jp-form-toggle-explanation"},r.description)},this.getAtdSettings());return g.default.createElement(Y.default,(0,i.default)({},this.props,{header:(0,y.translate)("Composing",{context:"Settings header"}),hideButton:!e,module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),t&&o,e&&s)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,D.ModuleSettingsForm)(B))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(1136),M=r(_),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={tags:r.props.value||[]},r.handleChange=function(e){r.setState({tags:e}),r.props.onChange&&r.props.onChange({target:{name:r.props.name,value:e.join(",")}})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement(M.default,{disabled:this.props.disabled,inputProps:{placeholder:this.props.placeholder},onChange:this.handleChange,value:this.state.tags})}}]),t}(m.default.Component);t.default=b,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,t,n(1),n(7)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function d(e){return window.clipboardData?window.clipboardData.getData("Text"):e.clipboardData?e.clipboardData.getData("text/plain"):""}function f(e){var t=e.tag,n=e.key,r=e.disabled,a=e.onRemove,i=e.classNameRemove,o=e.getTagDisplayValue,s=u(e,["tag","key","disabled","onRemove","classNameRemove","getTagDisplayValue"]);return _.default.createElement("span",b({key:n},s),o(t),!r&&_.default.createElement("a",{className:i,onClick:function(e){return a(n)}}))}function p(e){var t=(e.addTag,u(e,["addTag"])),n=t.onChange,r=t.value,a=u(t,["onChange","value"]);return _.default.createElement("input",b({type:"text",onChange:n,value:r},a))}function h(e,t){return _.default.createElement("span",null,e,t)}function m(e){return e.split(" ").map(function(e){return e.trim()})}Object.defineProperty(t,"__esModule",{value:!0});var _=a(n),M=(a(r),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g={className:"react-tagsinput-input",placeholder:"Add a tag"},v=function(e){function t(){o(this,t);var e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.state={tag:"",isFocused:!1},e.focus=e.focus.bind(e),e.blur=e.blur.bind(e),e}return c(t,e),M(t,[{key:"_getTagDisplayValue",value:function(e){var t=this.props.tagDisplayProp;return t?e[t]:e}},{key:"_makeTag",value:function(e){var t=this.props.tagDisplayProp;return t?i({},t,e):e}},{key:"_removeTag",value:function(e){var t=this.props.value.concat([]);if(e>-1&&e<t.length){var n=t.splice(e,1);this.props.onChange(t,n,[e])}}},{key:"_clearInput",value:function(){this.hasControlledInput()?this.props.onChangeInput(""):this.setState({tag:""})}},{key:"_tag",value:function(){return this.hasControlledInput()?this.props.inputValue:this.state.tag}},{key:"_addTags",value:function(e){var t=this,n=this.props,r=n.validationRegex,a=n.onChange,i=n.onValidationReject,o=n.onlyUnique,s=n.maxTags,c=n.value;o&&(e=l(e),e=e.filter(function(e){return c.every(function(n){return t._getTagDisplayValue(n)!==t._getTagDisplayValue(e)})}));var u=e.filter(function(e){return!r.test(t._getTagDisplayValue(e))});if(e=e.filter(function(e){return r.test(t._getTagDisplayValue(e))}),e=e.filter(function(e){var n=t._getTagDisplayValue(e);return"function"==typeof n.trim?n.trim().length>0:n}),s>=0){var d=Math.max(s-c.length,0);e=e.slice(0,d)}if(i&&u.length>0&&i(u),e.length>0){for(var f=c.concat(e),p=[],h=0;h<e.length;h++)p.push(c.length+h);return a(f,e,p),this._clearInput(),!0}return!(u.length>0)&&(this._clearInput(),!1)}},{key:"_shouldPreventDefaultEventOnAdd",value:function(e,t,n){return!!e||13===n&&(this.props.preventSubmit||!this.props.preventSubmit&&!t)}},{key:"focus",value:function(){this.input&&"function"==typeof this.input.focus&&this.input.focus(),this.handleOnFocus()}},{key:"blur",value:function(){this.input&&"function"==typeof this.input.blur&&this.input.blur(),this.handleOnBlur()}},{key:"accept",value:function(){var e=this._tag();return""!==e&&(e=this._makeTag(e),this._addTags([e]))}},{key:"addTag",value:function(e){return this._addTags([e])}},{key:"clearInput",value:function(){this._clearInput()}},{key:"handlePaste",value:function(e){var t=this,n=this.props,r=n.addOnPaste,a=n.pasteSplit;if(r){e.preventDefault();var i=d(e),o=a(i).map(function(e){return t._makeTag(e)});this._addTags(o)}}},{key:"handleKeyDown",value:function(e){if(!e.defaultPrevented){var t=this.props,n=t.value,r=t.removeKeys,a=t.addKeys,i=this._tag(),o=""===i,s=e.keyCode,c=e.key,u=-1!==a.indexOf(s)||-1!==a.indexOf(c),l=-1!==r.indexOf(s)||-1!==r.indexOf(c);if(u){var d=this.accept();this._shouldPreventDefaultEventOnAdd(d,o,s)&&e.preventDefault()}l&&n.length>0&&o&&(e.preventDefault(),this._removeTag(n.length-1))}}},{key:"handleClick",value:function(e){e.target===this.div&&this.focus()}},{key:"handleChange",value:function(e){var t=this.props.onChangeInput,n=this.props.inputProps.onChange,r=e.target.value;n&&n(e),this.hasControlledInput()?t(r):this.setState({tag:r})}},{key:"handleOnFocus",value:function(e){var t=this.props.inputProps.onFocus;t&&t(e),this.setState({isFocused:!0})}},{key:"handleOnBlur",value:function(e){var t=this.props.inputProps.onBlur;if(this.setState({isFocused:!1}),null!=e&&(t&&t(e),this.props.addOnBlur)){var n=this._makeTag(e.target.value);this._addTags([n])}}},{key:"handleRemove",value:function(e){this._removeTag(e)}},{key:"inputProps",value:function(){var e=this.props.inputProps,t=(e.onChange,e.onFocus,e.onBlur,u(e,["onChange","onFocus","onBlur"])),n=b({},g,t);return this.props.disabled&&(n.disabled=!0),n}},{key:"inputValue",value:function(e){return e.currentValue||e.inputValue||""}},{key:"hasControlledInput",value:function(){var e=this.props,t=e.inputValue;return"function"==typeof e.onChangeInput&&"string"==typeof t}},{key:"componentDidMount",value:function(){this.hasControlledInput()||this.setState({tag:this.inputValue(this.props)})}},{key:"componentWillReceiveProps",value:function(e){this.hasControlledInput()||this.inputValue(e)&&this.setState({tag:this.inputValue(e)})}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=(t.onChange,t.tagProps),a=t.renderLayout,i=t.renderTag,o=t.renderInput,s=(t.addKeys,t.removeKeys,t.className),c=t.focusedClassName,l=(t.addOnBlur,t.addOnPaste,t.inputProps,t.pasteSplit,t.onlyUnique,t.maxTags,t.validationRegex,t.disabled);t.tagDisplayProp,t.inputValue,t.onChangeInput,
44
u(t,["value","onChange","tagProps","renderLayout","renderTag","renderInput","addKeys","removeKeys","className","focusedClassName","addOnBlur","addOnPaste","inputProps","pasteSplit","onlyUnique","maxTags","validationRegex","disabled","tagDisplayProp","inputValue","onChangeInput"]);this.state.isFocused&&(s+=" "+c);var d=n.map(function(t,n){return i(b({key:n,tag:t,onRemove:e.handleRemove.bind(e),disabled:l,getTagDisplayValue:e._getTagDisplayValue.bind(e)},r))}),f=o(b({ref:function(t){e.input=t},value:this._tag(),onPaste:this.handlePaste.bind(this),onKeyDown:this.handleKeyDown.bind(this),onChange:this.handleChange.bind(this),onFocus:this.handleOnFocus.bind(this),onBlur:this.handleOnBlur.bind(this),addTag:this.addTag.bind(this)},this.inputProps()));return _.default.createElement("div",{ref:function(t){e.div=t},onClick:this.handleClick.bind(this),className:s},a(d,f))}}]),t}(_.default.Component);v.defaultProps={className:"react-tagsinput",focusedClassName:"react-tagsinput--focused",addKeys:[9,13],addOnBlur:!1,addOnPaste:!1,inputProps:{},removeKeys:[8],renderInput:p,renderTag:f,renderLayout:h,pasteSplit:m,tagProps:{className:"react-tagsinput-tag",classNameRemove:"react-tagsinput-remove"},onlyUnique:!1,maxTags:-1,validationRegex:/.*/,disabled:!1,tagDisplayProp:null,preventSubmit:!0},t.default=v,e.exports=t.default})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(44),k=r(w),T=n(47),L=n(71),S=n(52),C=n(30),O=n(40),z=r(O),N=n(36),D=r(N),P=n(23),x=n(74),j=n(61),R=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={carousel_display_exif:r.props.getOptionValue("carousel_display_exif","carousel")},r.updateOptions=function(e){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption("carousel",e))},r.handleCarouselDisplayExifChange=function(){r.updateOptions("carousel_display_exif")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("carousel"),t=this.props.isModuleFound("videopress");if(!e&&!t)return null;var n=this.props.module("carousel"),r=this.props.getOptionValue("carousel"),a=this.props.module("videopress"),o=(0,T.getPlanClass)(this.props.sitePlan.product_slug),s=g.default.createElement(D.default,{hasChild:!0,module:{module:"carousel"},support:{text:(0,y.translate)("Replaces the standard WordPress galleries with a full-screen photo browsing experience, including comments and EXIF metadata."),link:"https://jetpack.com/support/carousel"}},g.default.createElement(S.ModuleToggle,{slug:"carousel",activated:r,toggling:this.props.isSavingAnyOption("carousel"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},n.description)),g.default.createElement(L.FormFieldset,null,g.default.createElement(E.default,{checked:this.state.carousel_display_exif,disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_display_exif"]),onChange:this.handleCarouselDisplayExifChange},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Show photo metadata (Exif) in carousel, when available"))),g.default.createElement(L.FormLabel,null,g.default.createElement(L.FormLegend,{className:"jp-form-label-wide"},(0,y.translate)("Color scheme")),g.default.createElement(L.FormSelect,(0,i.default)({name:"carousel_background_color",value:this.props.getOptionValue("carousel_background_color"),disabled:!r||this.props.isSavingAnyOption(["carousel","carousel_background_color"])},this.props,{validValues:this.props.validValues("carousel_background_color","carousel")}))))),c=(0,k.default)(["is-premium-plan","is-business-plan"],o)&&g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:a,support:{text:(0,y.translate)("Hosts your video files on the global WordPress.com servers."),link:"https://jetpack.com/support/videopress/"}},g.default.createElement(S.ModuleToggle,{slug:"videopress",disabled:this.props.isUnavailableInDevMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description))),u="inactive"===this.props.getModuleOverride("videopress");return g.default.createElement(z.default,(0,i.default)({},this.props,{header:(0,y.translate)("Media"),hideButton:!e,feature:!u&&T.FEATURE_VIDEO_HOSTING_JETPACK,saveDisabled:this.props.isSavingAnyOption("carousel_background_color")}),e&&s,t&&c)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,P.getModule)(e,t)},isModuleFound:function(t){return(0,x.isModuleFound)(e,t)},sitePlan:(0,j.getSitePlan)(e),getModuleOverride:function(t){return(0,P.getModuleOverride)(e,t)}}})((0,C.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContentTypes=void 0;var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=t.CustomContentTypes=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.state={testimonial:r.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:r.props.getOptionValue("jetpack_portfolio","custom-content-types")},r.updateCPTs=function(e){var t="testimonial"===e?!(!r.state.testimonial||r.state.portfolio):!(!r.state.portfolio||r.state.testimonial);r.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),r.setState((0,s.default)({},e,!r.state[e]))},r.linkIfActiveCPT=function(e){return r.props.getSettingCurrentValue("jetpack_"+e,"custom-content-types")?g.default.createElement("a",{href:r.props.siteAdminUrl+"edit.php?post_type=jetpack-"+e}):g.default.createElement("span",null)},r.handleTestimonialToggleChange=function(){r.updateCPTs("testimonial")},r.handlePortfolioToggleChange=function(){r.updateCPTs("portfolio")},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("custom-content-types"))return null;var e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&(0,y.translate)("This feature has been disabled by a site administrator.");return g.default.createElement(C.default,(0,i.default)({},this.props,{module:"custom-content-types",hideButton:!0}),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Testimonial custom post type, allowing you to collect, organize, and display testimonials on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Testimonials"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{testimonialLink}}testimonials{{/testimonialLink}}. If your theme doesn’t support testimonials yet, you can display them using the shortcode\t( [testimonials] ).",{components:{testimonialLink:this.linkIfActiveCPT("testimonial")}})))),g.default.createElement(z.default,{hasChild:!0,module:e,support:{text:(0,y.translate)("Adds the Portfolio custom post type, allowing you to manage and showcase projects on your site."),link:"https://jetpack.com/support/custom-content-types/"}},g.default.createElement(E.default,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,y.translate)("Portfolios"))),g.default.createElement(w.FormFieldset,null,g.default.createElement("p",{className:"jp-form-setting-explanation"},(0,y.translate)("Add, organize, and display {{portfolioLink}}portfolios{{/portfolioLink}}. If your theme doesn’t support portfolios yet, you can display them using the shortcode ( [portfolio] ).",{components:{portfolioLink:this.linkIfActiveCPT("portfolio")}})))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)},getModuleOverride:function(t){return(0,T.getModuleOverride)(e,t)}}})((0,k.ModuleSettingsForm)(N))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(104),E=r(A),w=n(15),k=r(w),T=n(71),L=n(52),S=n(23),C=n(28),O=n(74),z=n(30),N=n(40),D=r(N),P=n(36),x=r(P),j=n(515),R=r(j),Y=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.getInfiniteMode=function(){return r.props.getOptionValue("infinite-scroll")?r.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default"},r.updateInfiniteMode=function(e){r.setState({infinite_mode:e},r.prepareOptionsToUpdate)},r.prepareOptionsToUpdate=function(){"infinite_default"===r.state.infinite_mode?r.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==r.state.infinite_mode&&"infinite_button"!==r.state.infinite_mode||r.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===r.state.infinite_mode})},r.updateOptions=function(e,t){r.setState((0,s.default)({},e,!r.state[e]),r.props.updateFormStateModuleOption(t,e))},r.trackLearnMoreIS=function(){k.default.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})},r.state={infinite_mode:r.getInfiniteMode(),wp_mobile_excerpt:r.props.getOptionValue("wp_mobile_excerpt","minileven"),wp_mobile_featured_images:r.props.getOptionValue("wp_mobile_featured_images","minileven"),wp_mobile_app_promos:r.props.getOptionValue("wp_mobile_app_promos","minileven")},r.handleInfiniteScrollModeChange=function(e){return function(){return r.updateInfiniteMode(e)}},r.handleMinilevenOptionChange=function(e,t){return function(){return r.updateOptions(e,t)}},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this,t=this.props.isModuleFound("infinite-scroll"),n=this.props.isModuleFound("minileven");if(!t&&!n)return null;var r=this.props.getModule("infinite-scroll"),a=this.props.getModule("minileven"),o=this.props.getOptionValue(a.module),s="inactive"===this.props.getModuleOverride("infinite-scroll");return g.default.createElement(D.default,(0,i.default)({},this.props,{header:(0,y.translate)("Theme enhancements"),hideButton:!t||!this.props.isInfiniteScrollSupported}),s&&g.default.createElement(R.default,{moduleName:r.name,compact:!0}),t&&!s&&g.default.createElement(x.default,{hasChild:!0,module:{module:r.module},key:"theme_enhancement_"+r.module,support:{text:(0,y.translate)("Loads the next posts automatically when the reader approaches the bottom of the page."),link:"https://jetpack.com/support/infinite-scroll"}},g.default.createElement(T.FormLegend,{className:"jp-form-label-wide"},r.name),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:(0,y.translate)("Load more posts using the default theme behavior")},{key:"infinite_button",label:(0,y.translate)("Load more posts in page with a button")},{key:"infinite_scroll",label:(0,y.translate)("Load more posts as the reader scrolls down")}].map(function(t){return g.default.createElement(T.FormLabel,{key:r.module+"_"+t.key},g.default.createElement("input",{type:"radio",name:"infinite_mode",value:t.key,checked:t.key===e.state.infinite_mode,disabled:e.props.isSavingAnyOption([r.module,t.key]),onChange:e.handleInfiniteScrollModeChange(t.key)}),g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}):g.default.createElement("span",null,(0,y.translate)("Theme support required.")+" ",g.default.createElement("a",{onClick:this.trackLearnMoreIS,href:r.learn_more_button+"#theme",title:(0,y.translate)("Learn more about adding support for Infinite Scroll to your theme.")},(0,y.translate)("Learn more")))),n&&g.default.createElement(x.default,{hasChild:!0,module:{module:a.module},key:"theme_enhancement_"+a.module,support:{text:(0,y.translate)("Enables a lightweight, mobile-friendly theme that will be displayed to visitors on mobile devices."),link:"https://jetpack.com/support/mobile-theme"}},g.default.createElement(L.ModuleToggle,{slug:a.module,activated:o,toggling:this.props.isSavingAnyOption(a.module),toggleModule:this.props.toggleModuleNow},g.default.createElement("span",{className:"jp-form-toggle-explanation"},a.description)),g.default.createElement(T.FormFieldset,null,[{key:"wp_mobile_excerpt",label:(0,y.translate)("Use excerpts instead of full posts on front page and archive pages")},{key:"wp_mobile_featured_images",label:(0,y.translate)("Show featured images")},{key:"wp_mobile_app_promos",label:(0,y.translate)("Show an ad for the WordPress mobile apps in the footer of the mobile theme")}].map(function(t){return g.default.createElement(E.default,{checked:e.state[t.key],disabled:!o||e.props.isSavingAnyOption([a.module,t.key]),onChange:e.handleMinilevenOptionChange(t.key,a.module),key:a.module+"_"+t.key},g.default.createElement("span",{className:"jp-form-toggle-explanation"},t.label))}))))}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{module:function(t){return(0,S.getModule)(e,t)},isInfiniteScrollSupported:(0,C.currentThemeSupports)(e,"infinite-scroll"),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)}}})((0,z.ModuleSettingsForm)(Y)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(1141),E=r(A),w=n(25),k=r(w),T=n(15),L=r(T),S=n(71),C=n(52),O=n(23),z=n(74),N=n(30),D=n(40),P=r(D),x=n(36),j=r(x),R=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.regeneratePostByEmailAddress=function(e){L.default.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),r.props.regeneratePostByEmailAddress()},r.address=function(){var e=r.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){if(!this.props.isModuleFound("post-by-email"))return null;var e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInDevMode("post-by-email")||!this.props.isLinked,r=this.address();return M.default.createElement(P.default,(0,i.default)({},this.props,{module:"post-by-email",hideButton:!0}),M.default.createElement(j.default,{hasChild:!0,disableInDevMode:!0,module:e,support:{text:(0,g.translate)("Allows you to publish new posts by sending an email to a special address."),link:"https://jetpack.com/support/post-by-email/"}},this.props.userCanManageModules?M.default.createElement(C.ModuleToggle,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):M.default.createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),M.default.createElement(S.FormFieldset,null,M.default.createElement(S.FormLabel,null,M.default.createElement(S.FormLegend,null,(0,g.translate)("Email Address")),M.default.createElement(E.default,{value:r,disabled:!t||n,copy:(0,g.translate)("Copy",{context:"verb"}),copied:(0,g.translate)("Copied!"),prompt:(0,g.translate)("Highlight and copy the following text to your clipboard:")})),M.default.createElement(y.default,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?(0,g.translate)("Regenerate address"):(0,g.translate)("Create address")))),!this.props.isUnavailableInDevMode("post-by-email")&&!this.props.isLinked&&M.default.createElement(k.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-pbe"},(0,g.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(M.default.Component);t.default=(0,b.connect)(function(e){return{module:function(t){return(0,O.getModule)(e,t)},isModuleFound:function(t){return(0,z.isModuleFound)(e,t)}}})((0,N.ModuleSettingsForm)(R)),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(14),y=r(v),A=n(116),E=r(A),w=n(1142),k=r(w),T=n(508),L=r(T);n(1151);var S=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.state={isCopied:!1,disabled:!1},r.showConfirmation=function(){r.setState({isCopied:!0}),r.confirmationTimeout=setTimeout(function(){r.setState({isCopied:!1})},4e3)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}},{key:"render",value:function(){var e=(0,E.default)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return g.default.createElement("span",{className:(0,y.default)("dops-clipboard-button-input",this.props.className)},g.default.createElement(L.default,(0,i.default)({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),g.default.createElement(k.default,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}]),t}(g.default.Component);S.displayName="ClipboardButtonInput",S.propTypes={value:M.default.string,disabled:M.default.bool,className:M.default.string,copied:M.default.string,copy:M.default.string,prompt:M.default.string},S.defaultProps={value:""},t.default=S,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(113),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(41),g=r(b),v=n(7),y=n(149),A=n(1),E=n(1143),w=n(116),k=n(64),T=n(14),L=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.displayPrompt=function(){window.prompt(r.props.prompt,r.props.text)},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=y.findDOMNode(this.refs.button);this.clipboard=new E(t,{text:function(){return e.props.text}}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}},{key:"componentWillUnmount",value:function(){this.clipboard.destroy(),delete this.clipboard}},{key:"render",value:function(){var e=T("dops-clipboard-button",this.props.className);return A.createElement(g.default,(0,i.default)({ref:"button"},w(this.props,(0,s.default)(this.constructor.propTypes)),{className:e}))}}]),t}(A.Component);L.displayName="ClipboardButton",L.propTypes={className:v.string,text:v.string,prompt:v.string,onCopy:v.func},L.defaultProps={onCopy:k},t.default=L,e.exports=t.default},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1144),n(1146),n(1147)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t,n,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var u=a(t),l=a(n),d=a(r),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return s(t,e),p(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,d.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}(l.default);e.exports=h})},function(e,t,n){var r,a,i;!function(o,s){a=[e,n(1145)],r=s,void 0!==(i="function"==typeof r?r.apply(t,a):r)&&(e.exports=i)}(0,function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(e){return e&&e.__esModule?e:{default:e}}(t),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=o})},function(e,t){function n(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}e.exports=n},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){a.off(e,r),t.apply(n,arguments)}var a=this;return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=n.length;for(r;r<a;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],a=[];if(r&&t)for(var i=0,o=r.length;i<o;i++)r[i].fn!==t&&r[i].fn._!==t&&a.push(r[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n},function(e,t,n){function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return a(e,t,n);if(s.nodeList(e))return i(e,t,n);if(s.string(e))return o(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function i(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function o(e,t,n){return c(document.body,e,t,n)}var s=n(1148),c=n(1149);e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,a){var o=i.apply(this,arguments);return e.addEventListener(n,o,a),{destroy:function(){e.removeEventListener(n,o,a)}}}function a(e,t,n,a,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,a,i)}))}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}var o=n(1150);e.exports=a},function(e,t){function n(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Masterbar=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(30),A=n(40),E=r(A),w=n(36),k=r(w),T=n(52);t.Masterbar=(0,y.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInDevMode("masterbar"),n=this.props.isLinked;return M.default.createElement(E.default,(0,i.default)({},this.props,{header:(0,b.translate)("WordPress.com toolbar",{context:"Settings header"}),module:"masterbar",hideButton:!0}),M.default.createElement(k.default,{disableInDevMode:!0,module:{module:"masterbar"},support:{text:(0,b.translate)("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader."),
45
+ link:"https://jetpack.com/support/masterbar/"}},M.default.createElement(T.ModuleToggle,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Enable the WordPress.com toolbar"),M.default.createElement("span",{className:"jp-form-setting-explanation"},(0,b.translate)("The WordPress.com toolbar replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications. Centralize your WordPress experience with a single global toolbar.")))),!this.props.isUnavailableInDevMode("masterbar")&&!this.props.isLinked&&M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:this.props.connectUrl+"&from=unlinked-user-masterbar"},(0,b.translate)("Connect your user account to WordPress.com to use this feature")))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(51),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(8),A=n(851),E=r(A),w=n(71),k=n(30),T=n(23),L=n(74),S=n(40),C=r(S),O=n(36),z=r(O),N=n(52),D=(0,k.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.toggleModule=function(e,t){"photon"===e?!1==!t?r.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):r.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):r.props.updateOptions((0,s.default)({},e,!t))},a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"render",value:function(){var e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("lazy-images");if(!e&&!t)return null;var n=this.props.module("photon"),r=this.props.module("lazy-images");return g.default.createElement(C.default,(0,i.default)({},this.props,{header:(0,y.translate)("Speed up your site"),hideButton:!0}),e&&g.default.createElement(z.default,{hasChild:!0,disableInDevMode:!0,module:n,support:{text:(0,y.translate)("Hosts your image files on the global WordPress.com servers."),link:"https://jetpack.com/support/photon/"}},g.default.createElement(N.ModuleToggle,{slug:"photon",disabled:this.props.isUnavailableInDevMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(n.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(n.long_description)))),t&&g.default.createElement(z.default,{hasChild:!0,module:r,support:{text:(0,y.translate)("Delays the loading of images until they are visible in the visitor's browser."),link:"https://jetpack.com/support/lazy-images/"}},g.default.createElement(N.ModuleToggle,{slug:"lazy-images",disabled:this.props.isUnavailableInDevMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,E.default)(r.description))),g.default.createElement(w.FormFieldset,null,g.default.createElement("span",{className:"jp-form-setting-explanation"},(0,E.default)(r.long_description)))))}}]),t}(b.Component));t.default=(0,v.connect)(function(e){return{module:function(t){return(0,T.getModule)(e,t)},isModuleFound:function(t){return(0,L.isModuleFound)(e,t)}}})(D),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(23),b=n(103),g=n(21),v=n(74),y=n(28),A=n(211),E=r(A),w=n(1155),k=n(1156),T=n(1157),L=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={settings:this.props.settings,getModule:this.props.module,isDevMode:this.props.isDevMode,isUnavailableInDevMode:this.props.isUnavailableInDevMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?m.default.createElement("div",null,m.default.createElement(E.default,null),t&&m.default.createElement(w.Publicize,e),n&&m.default.createElement(k.ShareButtons,e),r&&m.default.createElement(T.Likes,e)):null}}]),t}(h.Component);t.default=(0,_.connect)(function(e){return{module:function(t){return(0,M.getModule)(e,t)},settings:(0,b.getSettings)(e),isDevMode:(0,g.isDevMode)(e),isUnavailableInDevMode:function(t){return(0,g.isUnavailableInDevMode)(e,t)},isModuleFound:function(t){return(0,v.isModuleFound)(e,t)},isLinked:(0,g.isCurrentUserLinked)(e),connectUrl:(0,g.getConnectUrl)(e),siteRawUrl:(0,y.getSiteRawUrl)(e),siteAdminUrl:(0,y.getSiteAdminUrl)(e),userCanManageModules:(0,y.userCanManageModules)(e)}})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Publicize=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.Publicize=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isUnavailableInDevMode("publicize"),n=this.props.isLinked,r=this.props.connectUrl,a=this.props.siteRawUrl,o=this.props.getOptionValue("publicize"),s=this.props.userCanManageModules;return s||o?M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Publicize connections",{context:"Settings header"}),module:"publicize",hideButton:!0}),s&&M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"publicize"},support:{text:(0,b.translate)("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter."),link:"https://jetpack.com/support/publicize/"}},M.default.createElement(S.ModuleToggle,{slug:"publicize",disabled:t,activated:o,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Automatically share your posts to social networks"))),o&&function(){if(!t)return n?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/"+a},(0,b.translate)("Connect your social media accounts")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:r+"&from=unlinked-user-connect-publicize"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}()):null}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ShareButtons=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(30),w=n(40),k=r(w),T=n(36),L=r(T),S=n(52);t.ShareButtons=(0,E.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"trackClickConfigure",value:function(){A.default.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}},{key:"render",value:function(){var e=this,t=this.props.isLinked,n=this.props.connectUrl,r=this.props.siteRawUrl,a=this.props.siteAdminUrl,o=this.props.isDevMode,s=this.props.getOptionValue("sharedaddy");return M.default.createElement(k.default,(0,i.default)({},this.props,{header:(0,b.translate)("Sharing buttons",{context:"Settings header"}),module:"sharing",hideButton:!0}),M.default.createElement(L.default,{disableInDevMode:!0,module:{module:"sharing"},support:{text:(0,b.translate)("Adds sharing buttons to your content so that visitors can share it on social media sites."),link:"https://jetpack.com/support/sharing/"}},M.default.createElement(S.ModuleToggle,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Add sharing buttons to your posts"))),s&&function(){return o?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:a+"options-general.php?page=sharing"},(0,b.translate)("Configure your sharing buttons")):t?M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",onClick:e.trackClickConfigure,href:"https://wordpress.com/sharing/buttons/"+r},(0,b.translate)("Configure your sharing buttons")):M.default.createElement(v.default,{compact:!0,className:"jp-settings-card__configure-link",href:n+"&from=unlinked-user-connect-sharing"},(0,b.translate)("Connect your user account to WordPress.com to use this feature"))}())}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Likes=void 0;var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(8),g=n(30),v=n(40),y=r(v),A=n(36),E=r(A),w=n(52);t.Likes=(0,g.ModuleSettingsForm)(function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.isUnavailableInDevMode("likes"),t=this.props.getOptionValue("likes");return M.default.createElement(y.default,(0,i.default)({},this.props,{header:(0,b.translate)("Like buttons",{context:"Settings header"}),module:"likes",hideButton:!0}),M.default.createElement(E.default,{disableInDevMode:!0,module:{module:"likes"},support:{text:(0,b.translate)("Adds like buttons to your content so that visitors can show their appreciation or enjoyment."),link:"https://jetpack.com/support/likes/"}},M.default.createElement(w.ModuleToggle,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},(0,b.translate)("Allow readers to show their appreciation of your posts by adding a like button to your content"))))}}]),t}(_.Component))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SearchableModules=void 0;var a=n(51),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(10),y=n(228),A=r(y),E=n(44),w=r(E),k=n(8),T=n(850),L=r(T),S=n(30),C=n(23),O=n(74),z=n(40),N=r(z),D=n(36),P=r(D),x=n(28),j=n(21),R=t.SearchableModules=(0,S.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.handleBannerClick=function(e){return function(){return r.props.updateOptions((0,i.default)({},e,!0))}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this;if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;var t=["contact-form","custom-css","enhanced-distribution","json-api","latex","notes","shortcodes","shortlinks","widget-visibility","widgets"],n=this.props.modules,r=[];return(0,A.default)(n,function(n,a){if(e.props.isModuleFound(a)&&(0,w.default)(t,a)){if(e.props.isDevMode&&e.props.isUnavailableInDevMode(n.module))return r.push(g.default.createElement(Y,{key:a,moduleData:n,devMode:!0}));e.props.getOptionValue(n.module)?r.push(g.default.createElement(Y,{key:a,moduleData:n})):r.push(g.default.createElement(L.default,{className:"jp-searchable-banner",key:a,callToAction:(0,k.translate)("Activate"),description:n.description,href:"javascript:void( 0 )",icon:"cog",onClick:e.handleBannerClick(n.module),title:n.name}))}}),g.default.createElement("div",null,r)}}]),t}(b.Component));R.propTypes={searchTerm:M.default.string},R.defaultProps={searchTerm:""};var Y=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=this.props.moduleData,t=this.props.devMode;return g.default.createElement(N.default,{header:e.name,action:e.module,hideButton:!0},g.default.createElement(P.default,{disableInDevMode:t,module:{module:e.module},support:{link:e.learn_more_button}},e.description))}}]),t}(b.Component);t.default=(0,v.connect)(function(e){return{modules:(0,C.getModules)(e),isModuleFound:function(t){return(0,O.isModuleFound)(e,t)},canManageModules:(0,x.userCanManageModules)(e),isUnavailableInDevMode:function(t){return(0,j.isUnavailableInDevMode)(e,t)},isDevMode:(0,j.isDevMode)(e)}})(R)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(1),M=r(_),b=n(7),g=r(b),v=n(8),y=n(10),A=n(30),E=n(104),w=r(E),k=n(40),T=r(k),L=n(36),S=r(L),C=n(474),O=r(C),z=n(498),N=n(1160),D=n(103),P=n(15),x=r(P),j=function(){return x.default.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"})},R=function(){return x.default.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"})},Y=function(){return x.default.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"})},I=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.isPrivacyFound=function(){return!r.props.searchTerm||[(0,v.translate)("privacy",{context:"Search term."}),(0,v.translate)("tracks",{context:"Search term."}),(0,v.translate)("data",{context:"Search term."}),(0,v.translate)("gdpr",{context:"Search term."}),(0,v.translate)("tos",{context:"Search term."}),(0,v.translate)("terms of service",{context:"Search term."})].join(" ").toLowerCase().indexOf(r.props.searchTerm.toLowerCase())>-1},r.togglePrivacy=function(){var e=r.props.trackingSettings.tracks_opt_out;r.props.setTrackingSettings(!e)},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchTrackingSettings()}},{key:"render",value:function(){var e=this.props,t=e.searchTerm,n=e.active;return t||n?this.isPrivacyFound()&&M.default.createElement("div",null,M.default.createElement(T.default,(0,i.default)({},this.props,{header:(0,v.translate)("Privacy Settings",{context:"Settings header"}),hideButton:!0}),M.default.createElement(S.default,{hasChild:!0},M.default.createElement("p",null,(0,v.translate)("We are committed to your privacy and security. ")),M.default.createElement("p",null,M.default.createElement(w.default,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,v.translate)("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. {{cookiePolicyLink}}Learn more{{/cookiePolicyLink}}.",{components:{cookiePolicyLink:M.default.createElement(O.default,{href:"https://automattic.com/cookies/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}}))),M.default.createElement("p",null,(0,v.translate)("This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our {{pp}}privacy policy{{/pp}}.",{components:{pp:M.default.createElement(O.default,{href:"https://automattic.com/privacy/",onClick:j,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,(0,v.translate)("We use other tracking tools, including some from third parties. {{cookiePolicyLink}}Read about these{{/cookiePolicyLink}} and how to control them.",{components:{cookiePolicyLink:M.default.createElement(O.default,{href:"https://automattic.com/cookies/",onClick:R,target:"_blank",rel:"noopener noreferrer"})}})),M.default.createElement("p",null,(0,v.translate)("For more information on how specific Jetpack features use data and track activity, please refer to our {{privacyCenterLink}}Privacy Center{{/privacyCenterLink}}.",{components:{privacyCenterLink:M.default.createElement(O.default,{href:"https://jetpack.com/support/privacy",onClick:Y,target:"_blank",rel:"noopener noreferrer"})}}))))):null}}]),t}(M.default.Component);I.displayName="PrivacySettings",I.propTypes={searchTerm:g.default.string,active:g.default.bool,toggleTracking:g.default.func,getOptionValue:g.default.func,isSavingAnyOption:g.default.func},I.defaultProps={searchTerm:"",active:!1},t.default=(0,y.connect)(function(e){return{settings:(0,D.getSettings)(e),trackingSettings:(0,z.getTrackingSettings)(e),isUpdatingTrackingSettings:(0,z.isUpdatingTrackingSettings)(e),isFetchingTrackingSettings:(0,z.isFetchingTrackingSettingsList)(e)}},function(e){return{setTrackingSettings:function(t){x.default.tracks.setOptOut(t),e((0,N.updateTrackingSettings)({tracks_opt_out:t}))},fetchTrackingSettings:function(){return e((0,N.fetchTrackingSettings)())}}})((0,A.ModuleSettingsForm)(I)),e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateTrackingSettings=t.fetchTrackingSettings=void 0;var r=n(114),a=n(8),i=n(16),o=n(56),s=function(e){return e&&e.__esModule?e:{default:e}}(o);t.fetchTrackingSettings=function(){return function(e){return e({type:i.USER_TRACKING_SETTINGS_FETCH}),s.default.fetchUserTrackingSettings().then(function(t){return e({type:i.USER_TRACKING_SETTINGS_FETCH_SUCCESS,settings:t}),t}).catch(function(t){e({type:i.USER_TRACKING_SETTINGS_FETCH_FAIL,error:t})})}},t.updateTrackingSettings=function(e){return function(t){var n={progress:(0,a.translate)("Updating privacy settings…"),success:(0,a.translate)("Updated privacy settings."),error:function(e){return(0,a.translate)("Error updating privacy settings. %(error)s",{args:{error:e.message||e.code||e.name||e}})}},o=function(){return e};return t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:i.USER_TRACKING_SETTINGS_UPDATE,updatedSettings:e}),s.default.updateUserTrackingSettings(e).then(function(e){t({type:i.USER_TRACKING_SETTINGS_UPDATE_SUCCESS,updatedSettings:o(),success:e}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))}).catch(function(a){t({type:i.USER_TRACKING_SETTINGS_UPDATE_FAIL,updatedSettings:e,success:!1,error:a}),t((0,r.removeNotice)("tracking-settings-update")),t((0,r.removeNotice)("tracking-settings-update-success")),t((0,r.createNotice)("is-error",n.error(a),{id:"tracking-settings-update"}))})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(25),b=r(M),g=n(8),v=n(915),y=r(v),A=n(21),E=n(80),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",{className:"jp-jetpack-connect__container"},m.default.createElement("h1",{className:"jp-jetpack-connect__container-title",title:"Welcome to Jetpack"},(0,g.translate)("Welcome to Jetpack")),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.")),m.default.createElement(y.default,{from:"landing-page-top"})),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__design"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("WordPress themes and customization tools for designing your site.")},(0,g.translate)("Design the perfect website")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Bring your ideas to life with elegant and professional designs and code-free customization tools."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("img",{src:E.imagePath+"feature-photon-med.jpg",srcSet:E.imagePath+"feature-photon-sm.jpg 600w, "+E.imagePath+"feature-photon-med.jpg 770w, "+E.imagePath+"feature-photon-lrg.jpg 1200w",className:"jp-jetpack-connect__feature-image",alt:(0,g.translate)("Jetpack's photon serves up lightning fast, optimized images")}),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's WordPress themes"),className:"dops-section-header__label"},(0,g.translate)("Professional themes")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Find the perfect design for your site from hundreds of available themes.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's customization tools"),className:"dops-section-header__label"},(0,g.translate)("Code-free customization")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Customize your site with endless widget options, image galleries, and embedded media.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's performance features"),className:"dops-section-header__label"},(0,g.translate)("Speed up your site")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Deliver blazing fast images and video and improve site load times."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__traffic"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Drive more traffic to your site with Jetpack")},(0,g.translate)("Increase traffic and revenue")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Reach more people and earn money with automated marketing tools.")),m.default.createElement("div",{className:"jp-jetpack-connect__header-img-container"},m.default.createElement("img",{src:E.imagePath+"long-clouds.svg",width:"1160",height:"63",alt:(0,g.translate)("Decoration: Jetpack clouds",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"})," ",m.default.createElement("img",{src:E.imagePath+"stat-bars.svg",width:"400",alt:(0,g.translate)("Decoration: Jetpack bar graph",{context:"Image alternate text."}),className:"jp-jetpack-connect__header-img"}))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's site stats feature"),className:"dops-section-header__label"},(0,g.translate)("Track your growth")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Keep an eye on your success with simple, concise, and mobile-friendly stats.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's publicize features"),className:"dops-section-header__label"},(0,g.translate)("Automated marketing")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Schedule social media posts in advance, show related content, and give better search results.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's ads and PayPal features"),className:"dops-section-header__label"},(0,g.translate)("Generate revenue")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Monetize your site with high-quality ads and take PayPal payments."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__feature jp-jetpack-connect__security"},m.default.createElement("header",{className:"jp-jetpack-connect__header"},m.default.createElement("h2",{className:"jp-jetpack-connect__container-subtitle",title:(0,g.translate)("Keep your site safe, 24/7")},(0,g.translate)("Keep your site safe, 24/7")),m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime."))),m.default.createElement("div",{className:"jp-jetpack-connect__interior-container"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list"},m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's monitor feature"),className:"dops-section-header__label"},(0,g.translate)("Monitor",{context:"Header. Noun: Monitor is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Be alerted about any unexpected downtime the moment it happens.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:(0,g.translate)("Jetpack's Protect features"),className:"dops-section-header__label"},(0,g.translate)("Protect",{context:"Header. Noun: Protect is a module of Jetpack."})),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Guard your site against brute force login attacks, spam, and harmfulmalware injections.")))),m.default.createElement("div",{className:"jp-jetpack-connect__feature-list-column"},m.default.createElement("h3",{title:"Jetpack's backup feature",className:"dops-section-header__label"},(0,g.translate)("Backup and restore")),m.default.createElement("div",{className:"jp-jetpack-connect__feature-content"},m.default.createElement("p",null,(0,g.translate)("Automatic, real-time backups mean your entire site is always ready to be restored."))))))),m.default.createElement(b.default,{className:"jp-jetpack-connect__cta"},m.default.createElement("p",{className:"jp-jetpack-connect__description"},(0,g.translate)("Join the millions of users who rely on Jetpack to enhance and secure their sites. We're passionate about WordPress and here to make your life easier.")),m.default.createElement(y.default,{from:"landing-page-bottom"})))}}]),t}(m.default.Component);w.displayName="JetpackConnect",t.default=(0,_.connect)(function(e){return{connectUrl:(0,A.getConnectUrl)(e)}})(w),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.JetpackDisconnectDialog=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(41),y=r(v),A=n(25),E=r(A),w=n(65),k=r(w),T=n(1163),L=r(T),S=n(47),C=n(64),O=r(C),z=n(15),N=r(z),D=n(61),P=n(21),x=n(28),j=t.JetpackDisconnectDialog=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.getPlanFeatures=function(){switch((0,S.getPlanClass)(r.props.sitePlan.product_slug)){case"is-personal-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Spam filtering"),icon:"spam"}];case"is-premium-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("13Gb of high-speed video hosting"),icon:"video"}];case"is-business-plan":return[{text:(0,g.translate)("Daily, automated backups (unlimited storage)"),icon:"history"},{text:(0,g.translate)("Daily, automated malware scanning with automated resolution"),icon:"spam"},{text:(0,g.translate)("Priority support"),icon:"chat"},{text:(0,g.translate)("Unlimited high-speed video hosting"),icon:"video"},{text:(0,g.translate)("SEO preview tools"),icon:"globe"}];default:return[{text:(0,g.translate)("Site stats, related content, and sharing tools"),icon:"stats-alt"},{text:(0,g.translate)("Brute force attack protection and downtime monitoring"),icon:"lock"},{text:(0,g.translate)("Unlimited, high-speed image hosting"),icon:"image"}]}},r.closeModal=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"stay-connected"}),r.props.toggleModal()},r.disconnectSiteTrack=function(){N.default.tracks.recordJetpackClick({target:"manage_site_connection",button:"disconnect-site"}),r.props.disconnectSite()},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return this.props.show&&M.default.createElement(L.default,{className:"jp-connection-settings__modal",onRequestClose:this.props.toggleModal},M.default.createElement(E.default,{className:"jp-connection-settings__modal-body"},M.default.createElement("h2",null,(0,g.translate)("Disconnect Jetpack")),M.default.createElement("h4",null,(0,g.translate)("By disconnecting %(siteName)s from WordPress.com you will no longer have access to the following:",{args:{siteName:this.props.siteRawUrl.replace(/::/g,"/")}})),M.default.createElement("ul",null,this.getPlanFeatures().map(function(e){return M.default.createElement("li",{key:"feature_"+e.icon},M.default.createElement(k.default,{icon:e.icon,
46
+ size:18}),e.text)})),M.default.createElement("div",{className:"jp-connection-settings__modal-actions"},M.default.createElement(y.default,{className:"jp-connection-settings__modal-cancel",onClick:this.closeModal},(0,g.translate)("Stay connected",{context:"A caption for a button to cancel disconnection."})),M.default.createElement(y.default,{onClick:this.disconnectSiteTrack,scary:!0,primary:!0},(0,g.translate)("Disconnect",{context:"A caption for a button to disconnect."}))),M.default.createElement("p",{className:"jp-connection-settings__modal-more"},M.default.createElement("a",{href:"https://jetpack.com/features/"},(0,g.translate)("Read more about Jetpack benefits")))))}}]),t}(M.default.Component);j.propTypes={show:m.default.bool,toggleModal:m.default.func,disconnectSite:m.default.func},j.defaultProps={show:!1,toggleModal:O.default,disconnectSite:O.default},t.default=(0,b.connect)(function(e){return{siteRawUrl:(0,x.getSiteRawUrl)(e),isDisconnecting:(0,P.isDisconnectingSite)(e),sitePlan:(0,D.getSitePlan)(e)}},function(e){return{disconnectSite:function(){return e((0,P.disconnectSite)())}}})(j)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(){L=!0}function i(){L=!1}var o=n(11),s=r(o),c=n(463),u=r(c),l=n(2),d=r(l),f=n(3),p=r(f),h=n(6),m=r(h),_=n(4),M=r(_),b=n(5),g=r(b),v=n(7),y=n(1),A=n(149),E=n(14),w=n(24),k=n(116),T=n(1164),L=!1;n(1166);var S=function(e){function t(){var e,n,r,a;(0,p.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,M.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(o))),r.state={overlayMouseDown:!1},r.handleEscapeKey=function(e){27===e.keyCode&&r.maybeClose()},r.maybeClose=function(){r.props.onRequestClose&&!L&&r.props.onRequestClose()},r.handleMouseDownOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.setState({overlayMouseDown:!0})},r.handleClickOverlay=function(e){e.preventDefault(),e.stopPropagation(),r.state.overlayMouseDown&&r.props.onRequestClose&&!L&&(r.setState({overlayMouseDown:!1}),r.props.onRequestClose())},r.handleMouseEventModal=function(e){e.stopPropagation()},a=n,(0,M.default)(r,a)}return(0,g.default)(t,e),(0,m.default)(t,[{key:"componentDidMount",value:function(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{T.activate(A.findDOMNode(this),{initialFocus:this.props.initialFocus})}catch(e){}}},{key:"componentWillUnmount",value:function(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{T.deactivate()}catch(e){}}},{key:"render",value:function(){var e=void 0,t=this.props,n=t.style,r=t.className,a=t.width,i=t.title,o=(0,u.default)(t,["style","className","width","title"]),c=k(o,"onRequestClose"),l=c.forwardedProps;switch(a){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}var d=w({},n,e);return y.createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},y.createElement("div",(0,s.default)({className:E("dops-modal",r),style:d,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":i},l),this.props.children))}}]),t}(y.Component);S.propTypes={style:v.object,width:v.oneOf(["wide","medium","narrow"]),className:v.string,title:v.string,initialFocus:v.string,onRequestClose:v.func},S.defaultProps={style:{}},S.preventClose=a,S.allowClose=i,e.exports=S},function(e,t,n){function r(e,t){function n(e){if(!k){var t={onActivate:e&&void 0!==e.onActivate?e.onActivate:C.onActivate};return k=!0,T=!1,w=document.activeElement,t.onActivate&&t.onActivate(),l(),O}}function r(e){if(k){var t={returnFocus:e&&void 0!==e.returnFocus?e.returnFocus:C.returnFocusOnDeactivate,onDeactivate:e&&void 0!==e.onDeactivate?e.onDeactivate:C.onDeactivate};return d(),t.onDeactivate&&t.onDeactivate(),t.returnFocus&&setTimeout(function(){i(w)},0),k=!1,T=!1,this}}function c(){!T&&k&&(T=!0,d())}function u(){T&&k&&(T=!1,l())}function l(){if(k)return s&&s.pause(),s=O,g(),i(p()),document.addEventListener("focus",_,!0),document.addEventListener("click",m,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("touchstart",h,!0),document.addEventListener("keydown",M,!0),O}function d(){if(k&&s===O)return document.removeEventListener("focus",_,!0),document.removeEventListener("click",m,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("touchstart",h,!0),document.removeEventListener("keydown",M,!0),s=null,O}function f(e){var t=C[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function p(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):S.contains(document.activeElement)?document.activeElement:y[0]||f("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){C.clickOutsideDeactivates&&!S.contains(e.target)&&r({returnFocus:!1})}function m(e){C.clickOutsideDeactivates||S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(e){S.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation(),"function"==typeof e.target.blur&&e.target.blur(),L&&v(L))}function M(e){"Tab"!==e.key&&9!==e.keyCode||b(e),!1!==C.escapeDeactivates&&a(e)&&r()}function b(e){if(g(),e.target.hasAttribute("tabindex")&&Number(e.target.getAttribute("tabindex"))<0)return L=e;e.preventDefault();var t=y.indexOf(e.target);return e.shiftKey?i(e.target===A||-1===y.indexOf(e.target)?E:y[t-1]):e.target===E?i(A):void i(y[t+1])}function g(){y=o(S),A=y[0],E=y[y.length-1]}function v(e){if(e.shiftKey)return i(E);i(A)}var y=[],A=null,E=null,w=null,k=!1,T=!1,L=null,S="string"==typeof e?document.querySelector(e):e,C=t||{};C.returnFocusOnDeactivate=!t||void 0===t.returnFocusOnDeactivate||t.returnFocusOnDeactivate,C.escapeDeactivates=!t||void 0===t.escapeDeactivates||t.escapeDeactivates;var O={activate:n,deactivate:r,pause:c,unpause:u};return O}function a(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}function i(e){e&&e.focus&&e!==document.activeElement&&(e.focus(),"input"===e.tagName.toLowerCase()&&e.select())}var o=n(1165),s=null;e.exports=r},function(e,t){function n(e){function t(r,a){if(r===e.documentElement)return!1;for(var i=0,o=n.length;i<o;i++)if(n[i][0]===r)return n[i][1];a=a||e.defaultView.getComputedStyle(r);var s=!1;return"none"===a.display?s=!0:r.parentNode&&(s=t(r.parentNode)),n.push([r,s]),s}var n=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!t(n,r)||"hidden"===r.visibility}}e.exports=function(e,t){t=t||{};var r=e.ownerDocument||e,a=[],i=[],o=n(r),s=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(s.join(","));if(t.includeContainer){var u=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;s.some(function(t){return u.call(e,t)})&&(c=Array.prototype.slice.apply(c),c.unshift(e))}for(var l,d,f=0,p=c.length;f<p;f++)l=c[f],(d=parseInt(l.getAttribute("tabindex"),10)||l.tabIndex)<0||"INPUT"===l.tagName&&"hidden"===l.type||l.disabled||o(l,r)||(0===d?a.push(l):i.push({index:f,tabIndex:d,node:l}));var h=i.sort(function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(h,a),h}},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return{__html:e.jumpstart_desc}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(3),c=r(s),u=n(6),l=r(u),d=n(4),f=r(d),p=n(5),h=r(p),m=n(1),_=r(m),M=n(18),b=n(10),g=n(41),v=r(g),y=n(8),A=n(916),E=n(23),w=n(80),k=n(475),T=r(k),L=function(e){function t(){var e,n,r,a;(0,c.default)(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=r=(0,f.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(s))),r.activateButton=function(){return _.default.createElement(v.default,{primary:!0,onClick:r.props.jumpStartActivate,disabled:r.props.isJumpstarting},r.props.isJumpstarting?(0,y.translate)("Activating recommended features…"):(0,y.translate)("Activate recommended features"))},a=n,(0,f.default)(r,a)}return(0,h.default)(t,e),(0,l.default)(t,[{key:"renderInnerContent",value:function(){var e=this.props.jumpstartFeatures.map(function(e){return _.default.createElement("div",{className:"jp-jumpstart__feature-list-column",key:"module-card_"+e.name},_.default.createElement("div",{className:"jp-jumpstart__feature-content"},_.default.createElement("h4",{className:"jp-jumpstart__feature-content-title",title:e.name},e.name),_.default.createElement("p",{dangerouslySetInnerHTML:a(e)})))});return _.default.createElement("div",{className:"jp-jumpstart"},_.default.createElement("p",null,(0,y.translate)("We're now collecting stats, securing your site, and speeding up your images. Pretty soon you'll be able to see everything going on with your site right through Jetpack! Welcome aboard.")),_.default.createElement("p",null,this.activateButton()),_.default.createElement("div",null,_.default.createElement("h2",{className:"jp-jumpstart__feature-heading"},(0,y.translate)("Jetpack's recommended features include:")),_.default.createElement("div",{className:"jp-jumpstart__feature-list"},e),this.activateButton(),_.default.createElement("p",{className:"jp-jumpstart__note"},(0,y.translate)("Features can be activated or deactivated at any time."))))}},{key:"render",value:function(){return _.default.createElement(T.default,{svg:_.default.createElement("img",{src:w.imagePath+"man-and-laptop.svg",width:"199",height:"153",alt:(0,y.translate)("Person with laptop")}),title:(0,y.translate)("Your Jetpack site is ready to go!"),content:this.renderInnerContent(),dismiss:this.props.jumpStartSkip})}}]),t}(_.default.Component);L.displayName="JumpStart",t.default=(0,b.connect)(function(e){return{isJumpstarting:(0,A.isJumpstarting)(e),jumpstartFeatures:(0,E.getModulesByFeature)(e,"Jumpstart")}},function(e){return(0,M.bindActionCreators)({jumpStartActivate:A.jumpStartActivate,jumpStartSkip:A.jumpStartSkip},e)})(L),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.jumpStartSkip=t.jumpStartActivate=void 0;var a=n(114),i=n(8),o=n(646),s=n(15),c=r(s),u=n(16),l=n(56),d=r(l),f=n(23),p=n(103),h=(t.jumpStartActivate=function(){return function(e){return e({type:u.JUMPSTART_ACTIVATE}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-info",(0,i.translate)("Activating recommended features…"),{id:"jumpstart-activate"})),d.default.jumpStart("activate").then(function(){e({type:u.JUMPSTART_ACTIVATE_SUCCESS,jumpStart:!0}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_submit",{}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-success",(0,i.translate)("Recommended features active."),{id:"jumpstart-activate",duration:2e3})),e((0,f.fetchModules)()),e((0,p.fetchSettings)())}).catch(function(t){e({type:u.JUMPSTART_ACTIVATE_FAIL,error:t}),e((0,a.removeNotice)("jumpstart-activate")),e((0,a.createNotice)("is-error",(0,i.translate)("Recommended features failed to activate. %(error)s",{args:{error:t}}),{id:"jumpstart-activate"}))})}},(0,o.createHistory)());t.jumpStartSkip=function(){return function(e){return e({type:u.JUMPSTART_SKIP}),c.default.tracks.recordEvent("jetpack_wpa_jumpstart_skip",{}),h.push(window.location.pathname+"?page=jetpack#/dashboard"),d.default.jumpStart("deactivate").then(function(){e({type:u.JUMPSTART_SKIP_SUCCESS,jumpStart:!1})}).catch(function(t){e({type:u.JUMPSTART_SKIP_FAIL,error:t})})}}},function(e,t,n){function r(e,t,n){t=(n?i(e,t,n):void 0===t)?1:c(o(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var u=0,l=0,d=Array(s(r/t));u<r;)d[l++]=a(e,u,u+=t);return d}var a=n(466),i=n(219),o=n(227),s=Math.ceil,c=Math.max;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(7),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(14),E=r(A),w=n(61),k=n(21),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.siteRawUrl,n=e.inDevMode,r=m.default.createElement("a",{href:"https://wordpress.com/stats/activity/"+t}),a=(0,y.translate)("{{a}}View your site's activity{{/a}} in a single feed.",{components:{a:r}});return m.default.createElement("div",{className:"jp-dash-item__interior"},m.default.createElement(v.default,{label:(0,y.translate)("Activity"),isModule:!1,className:(0,E.default)({"jp-dash-item__is-inactive":n}),pro:!1},m.default.createElement("p",{className:"jp-dash-item__description"},n?(0,y.translate)("Unavailable in Dev Mode."):a)))}}]),t}(h.Component);T.propTypes={inDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,sitePlan:M.default.object.isRequired},T.defaultProps={inDevMode:!1,siteRawUrl:"",sitePlan:""},t.default=(0,b.connect)(function(e){return{sitePlan:(0,w.getSitePlan)(e),inDevMode:(0,k.isDevMode)(e)}})(T),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.DashStats=void 0;var a=n(59),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(228),y=r(v),A=n(27),E=r(A),w=n(234),k=r(w),T=n(25),L=r(T),S=n(1173),C=r(S),O=n(10),z=n(918),N=r(z),D=n(41),P=r(D),x=n(867),j=r(x),R=n(8),Y=n(15),I=r(Y),q=n(80),B=n(21),W=n(28),U=n(1182),H=r(U),F=n(1183),X=r(F),V=n(62),K=n(23),J=n(103),G=n(515),Q=r(G),Z=t.DashStats=function(e){function t(e){(0,u.default)(this,t);var n=(0,p.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return n.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed},n}return(0,m.default)(t,e),(0,d.default)(t,[{key:"barClick",value:function(e){e.data.link&&(I.default.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}},{key:"statsChart",value:function(e){var t=this.props,n=[],r=0;return"object"!==(0,i.default)(t.statsData[e])?{chartData:n,totalViews:!1}:((0,y.default)(t.statsData[e].data,function(a){var i=a[1],o=a[0],s="",c="";r+=i,"day"===e?(s=(0,R.moment)(o).format("MMM D"),c=(0,R.moment)(o).format("MMMM Do")):"week"===e?(o=o.replace(/W/g,"-"),s=(0,R.moment)(o).format("MMM D"),c=(0,R.translate)("Week of %(date)s",{args:{date:(0,R.moment)(o).format("MMMM Do")}})):(s=(0,R.moment)(o).format("MMM"),c=(0,R.moment)(o).format("MMMM, YYYY")),n.push({label:s,value:i,nestedValue:null,className:"statsChartbar",data:{link:"https://wordpress.com/stats/"+e+"/"+t.siteRawUrl+"?startDate="+o},tooltipData:[{label:c,value:(0,R.translate)("Views: %(numberOfViews)s",{args:{numberOfViews:(0,R.numberFormat)(i)}}),className:"tooltip class"},{label:(0,R.translate)("Click to view detailed stats.")}]})}),{chartData:n,totalViews:r})}},{key:"statsErrors",value:function(){return(0,E.default)(this.props.statsData,["general","errors"],!1)}},{key:"renderStatsChart",value:function(e){return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-chart"},g.default.createElement(C.default,{data:e,barClick:this.barClick}),0===e.length&&g.default.createElement(j.default,null)),g.default.createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},g.default.createElement(X.default,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl})))}},{key:"renderEmptyStatsCard",value:function(){var e=this,t=function(){e.setState({emptyStatsDismissed:!0}),e.props.updateOptions({dismiss_empty_stats_card:!0})};return g.default.createElement(L.default,{className:"jp-at-a-glance__stats-empty"},g.default.createElement("img",{src:q.imagePath+"stats-people.svg",width:"272",height:"144",alt:(0,R.translate)("Jetpack Stats People"),className:"jp-at-a-glance__stats-icon"}),g.default.createElement("p",null,(0,R.translate)("Hello there! Your stats have been activated."),g.default.createElement("br",null),(0,R.translate)("Just give us a little time to collect data so we can display it for you here.")),g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Okay, got it!")))}},{key:"renderStatsArea",value:function(){var e=this,t=function(){return e.props.updateOptions({stats:!0})};if(this.props.getOptionValue("stats")){if(this.statsErrors())return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("span",null,(0,R.translate)("Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}",{components:{a:g.default.createElement("a",{href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}})));var n=this.statsChart(this.props.activeTab),r=n.chartData,a=n.totalViews,i=r.length&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return g.default.createElement("div",{className:"jp-at-a-glance__stats-container"},i?this.renderEmptyStatsCard():this.renderStatsChart(r))}return g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive"},g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},g.default.createElement("img",{src:q.imagePath+"stats.svg",width:"60",height:"60",alt:(0,R.translate)("Jetpack Stats Icon"),className:"jp-at-a-glance__stats-icon"})),g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isDevMode?(0,R.translate)("Unavailable in Dev Mode"):(0,R.translate)("{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}",{components:{a:g.default.createElement("a",{href:"javascript:void(0)",onClick:t}),a1:g.default.createElement("a",{href:"https://jetpack.com/support/wordpress-com-stats/",target:"_blank",rel:"noopener noreferrer"})}})),!this.props.isDevMode&&g.default.createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},g.default.createElement(P.default,{onClick:t,primary:!0},(0,R.translate)("Activate Site Stats"))))}},{key:"maybeShowStatsTabs",value:function(){var e=this;if(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)return!1;var t=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"day"}),e.props.switchView("day"),e.props.fetchStatsData("day")},n=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"week"}),e.props.switchView("week"),e.props.fetchStatsData("week")},r=function(){I.default.tracks.recordJetpackClick({target:"stats_switch_view",view:"month"}),e.props.switchView("month"),e.props.fetchStatsData("month")};return this.props.getOptionValue("stats")&&!this.statsErrors()?g.default.createElement("ul",{className:"jp-at-a-glance__stats-views"},g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:t,className:this.getClass("day")},(0,R.translate)("Days"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:n,className:this.getClass("week")},(0,R.translate)("Weeks"))),g.default.createElement("li",{tabIndex:"0",className:"jp-at-a-glance__stats-view"},g.default.createElement("a",{href:"javascript:void(0)",onClick:r,className:this.getClass("month")},(0,R.translate)("Months")))):void 0}},{key:"getClass",value:function(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}},{key:"render",value:function(){return"inactive"===this.props.getModuleOverride("stats")?g.default.createElement("div",null,g.default.createElement(Q.default,{moduleName:(0,R.translate)("Site Stats")})):this.props.isModuleAvailable&&g.default.createElement("div",null,g.default.createElement(H.default,{range:this.props.activeTab}),g.default.createElement(N.default,{label:(0,R.translate)("Site Stats")},this.maybeShowStatsTabs()),g.default.createElement(L.default,{className:"jp-at-a-glance__stats-card "+(this.props.isDevMode?"is-inactive":"")},this.renderStatsArea()))}}]),t}(b.Component);Z.propTypes={isDevMode:M.default.bool.isRequired,siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.any.isRequired,isModuleAvailable:M.default.bool.isRequired},t.default=(0,O.connect)(function(e){return{isModuleAvailable:(0,K.isModuleAvailable)(e,"stats"),activeTab:(0,V.getActiveStatsTab)(e),isDevMode:(0,B.isDevMode)(e),isLinked:(0,B.isCurrentUserLinked)(e),connectUrl:(0,B.getConnectUrl)(e),statsData:(0,k.default)((0,V.getStatsData)(e))?(0,W.getInitialStateStatsData)(e):(0,V.getStatsData)(e),isEmptyStatsCardDismissed:(0,J.emptyStatsCardDismissed)(e),getModuleOverride:function(t){return(0,K.getModuleOverride)(e,t)}}},function(e){return{switchView:function(t){return e((0,V.statsSwitchTab)(t))},fetchStatsData:function(t){return e((0,V.fetchStatsData)(t))}}})(Z)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(64),M=n(919),b=n(1174),g=n(1180);n(1181);var v=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={maxBars:100,width:650},r.resize=function(){var e=r.refs.chart,t=e.clientWidth-82,n=void 0;g.hasTouch()?(t=t<=0?350:t,n=Math.floor(t/r.props.minTouchBarWidth)):n=Math.floor(t/r.props.minBarWidth),r.setState({maxBars:n,width:t})},r.getYAxisMax=function(e){var t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r},r.getData=function(){var e=r.props.data;return e=e.slice(0-r.state.maxBars)},r.getValues=function(){var e=r.getData();return e=e.map(function(e){return e.value},r)},r.isEmptyChart=function(e){return e=e.filter(function(e){return e>0},r),0===e.length},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resize=M(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){var e=this.getValues(),t=this.getYAxisMax(e),n=this.getData(),r=void 0;return e.length&&this.isEmptyChart(e)&&(r=h.createElement("div",{className:"dops-chart__empty"},h.createElement("span",{className:"dops-chart__empty_notice"},"No activity this period"))),h.createElement("div",{ref:"chart",className:"dops-chart"},h.createElement("div",{className:"dops-chart__y-axis-markers"},h.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),h.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),h.createElement("div",{className:"dops-chart__y-axis"},h.createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),h.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),h.createElement(b,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:g.hasTouch()}),r)}}]),t}(h.Component);v.displayName="ModuleChart",v.propTypes={loading:m.bool,data:m.array,minTouchBarWidth:m.number,minBarWidth:m.number,barClick:m.func},v.defaultProps={minTouchBarWidth:42,minBarWidth:15,barClick:_},t.default=v,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(1175),M=n(1178),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.buildBars=function(e){var t=r.props.data.length,n=r.props.chartWidth,a=n/t,i="bottom right";return r.props.data.map(function(r,o){var s=a*(o+1);return s+230>n&&s+a-230>0&&(i="bottom left"),m.createElement(_,{index:o,key:o,isTouch:this.props.isTouch,tooltipPosition:i,className:r.className,clickHandler:this.props.barClick,data:r,max:e,count:t})},r)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.createElement("div",null,m.createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),m.createElement(M,{data:this.props.data,labelWidth:42}))}}]),t}(m.Component);b.displayName="ModuleChartBarContainer",b.propTypes={isTouch:h.bool,data:h.array,yAxisMax:h.number,width:h.number,barClick:h.func},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=n(14),M=n(1176),b=n(65),g=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showPopover:!1},r.buildSections=function(){var e=r.props.data.value,t=r.props.max,n=t?Math.ceil(e/t*1e4)/100:0,a=100-n,i=Math.max(1,Math.floor(a)),o=[],s=r.props.data.nestedValue,c={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!r.props.active},u=void 0,l=void 0,d=void 0,f={height:i+"%"};o.push(m.createElement("div",{key:"spacer",className:_(c),style:f}));var p={top:i+"%"};return s&&(l=e?Math.ceil(s/e*1e4)/100:0,d={height:l+"%"},u=m.createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:d})),o.push(m.createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:p},u)),o.push(m.createElement("div",{key:"label",className:"dops-chart__bar-label"},r.props.label)),o},r.clickHandler=function(){"function"==typeof r.props.clickHandler&&r.props.clickHandler(r.props.data)},r.mouseEnter=function(){r.setState({showPopover:!0})},r.mouseLeave=function(){r.setState({showPopover:!1})},r.renderTooltip=function(){if(!r.props.data.tooltipData||!r.props.data.tooltipData.length||r.props.isTouch)return null;var e=r.props.data.tooltipData,t=e.map(function(e,t){var n=["module-content-list-item"],r=void 0;return e.icon&&(r=m.createElement(b,{icon:e.icon,size:18})),n.push(e.className),m.createElement("li",{key:t,className:n.join(" ")},m.createElement("span",{className:"dops-wrapper"},m.createElement("span",{className:"value"},e.value),m.createElement("span",{className:"label"},r,e.label)))});return m.createElement(M,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:r.refs&&r.refs.valueBar,isVisible:r.state.showPopover,position:r.props.tooltipPosition},m.createElement("ul",null,t))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);var n={width:1/e*100+"%"};return m.createElement("div",{onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,className:_(t),style:n},this.buildSections(),m.createElement("div",{className:"dops-chart__bar-marker is-hundred"}),m.createElement("div",{className:"dops-chart__bar-marker is-fifty"}),m.createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}]),t}(m.Component);g.displayName="ModuleChartBar",g.propTypes={isTouch:h.bool,tooltipPosition:h.string,className:h.string,clickHandler:h.func,data:h.object.isRequired,max:h.number,count:h.number},t.default=g,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(833),y=r(v),A=n(808),E=r(A);n(1177);var w=function(){},k=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.showOnMobile&&E.default.isMobile())return null;var e=(0,g.default)("dops-popover","dops-tooltip","is-"+this.props.position,this.props.className);return M.default.createElement(y.default,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:w,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}]),t}(_.Component);k.propTypes={autoPosition:m.default.bool,className:m.default.string,id:m.default.string,isVisible:m.default.bool,position:m.default.string,rootClassName:m.default.string,status:m.default.string,showDelay:m.default.number,showOnMobile:m.default.bool},k.defaultProps={showDelay:100,position:"top",showOnMobile:!1},t.default=k,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(7),_=n(919),M=n(1179),b=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={divisor:1,spacing:r.props.labelWidth},r.resize=function(e){var t=r.props,n=r.refs.axis;!e||e instanceof Event||(t=e),n.style.overflow="hidden";var a=n.clientWidth;n.style.overflow="visible";var i=t.data.length||1,o=a/i,s=t.labelWidth,c=Math.ceil(s/o);r.setState({divisor:c,spacing:o})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.resizeThrottled=_(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}},{key:"componentWillUnmount",value:function(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}},{key:"componentWillReceiveProps",value:function(e){this.resize(e)}},{key:"render",value:function(){var e=this.props.data,t=e.map(function(t,n){var r=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2,a=e.length-n-1,i=void 0;return a%this.state.divisor==0&&(i=h.createElement(M,{key:n,label:t.label,width:this.props.labelWidth,x:r})),i},this);return h.createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}]),t}(h.Component);b.displayName="ModuleChartXAxis",b.propTypes={labelWidth:m.number.isRequired,
47
+ data:m.array.isRequired},t.default=b,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=n(1),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e={width:this.props.width+"px"};return e.left=this.props.x+"px",m.createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}]),t}(m.Component);_.displayName="ModuleChartLabel",_.propTypes={width:h.number.isRequired,x:h.number.isRequired,label:h.string.isRequired},t.default=_,e.exports=t.default},function(e,t,n){"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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(62),M=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"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(59),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(41),y=r(v),A=n(15),E=r(A),w=n(25),k=r(w),T=n(8),L=function(e){function t(){return(0,u.default)(this,t),(0,p.default)(this,(t.__proto__||(0,s.default)(t)).apply(this,arguments))}return(0,m.default)(t,e),(0,d.default)(t,[{key:"statsBottom",value:function(){var e=void 0;return e="object"===(0,i.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 E.default.tracks.recordJetpackClick("view_detailed_stats")},n=function(){return E.default.tracks.recordJetpackClick("view_wpcom_stats")};return g.default.createElement("div",null,g.default.createElement("div",{className:"jp-at-a-glance__stats-summary"},g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Views today",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("Best overall day",{comment:"Referring to a number of page views"})),g.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)}})),g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,T.moment)(e.bestDay.day).format("MMMM Do, YYYY"))),g.default.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time views",{comment:"Referring to a number of page views"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,T.numberFormat)(e.allTime.views))),g.default.createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},g.default.createElement("p",{className:"jp-at-a-glance__stat-details"},(0,T.translate)("All-time comments",{comment:"Referring to a number of comments"})),g.default.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,T.numberFormat)(e.allTime.comments))))),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta"},g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),g.default.createElement("div",{className:"jp-at-a-glance__stats-cta-buttons"},(0,T.translate)("{{button}}View detailed stats{{/button}}",{components:{button:g.default.createElement(y.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:g.default.createElement(y.default,{onClick:n,className:"is-primary",href:"https://wordpress.com/stats/insights/"+this.props.siteRawUrl})}}))),!this.props.isLinked&&g.default.createElement(k.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}(b.Component);L.propTypes={siteRawUrl:M.default.string.isRequired,siteAdminUrl:M.default.string.isRequired,statsData:M.default.object.isRequired,isLinked:M.default.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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(1185),E=r(A),w=n(23),k=n(62),T=n(21),L=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this,t={text:(0,y.translate)("Protects your site from traditional and distributed brute force login attacks."),link:"https://jetpack.com/support/protect/"},n=function(){return e.props.updateOptions({protect:!0})};if(this.props.getOptionValue("protect")){var r=this.props.protectCount;return!1===r||"0"===r||"N/A"===r?M.default.createElement(v.default,{label:"Protect",module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},M.default.createElement("div",{className:"jp-dash-item__recently-activated-lower"},M.default.createElement(E.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(v.default,{label:"Protect",module:"protect",support:t,status:"is-working"},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,y.numberFormat)(r)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,y.translate)("Total malicious attacks blocked on your site.")))}return M.default.createElement(v.default,{label:"Protect",module:"protect",support:t,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:n})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(E.default,null),this.getContent())}}]),t}(_.Component);L.propTypes={isDevMode:m.default.bool.isRequired,protectCount:m.default.any.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{protectCount:(0,k.getProtectCount)(e),isDevMode:(0,T.isDevMode)(e),isModuleAvailable:(0,w.isModuleAvailable)(e,"protect")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(18),M=n(62),b=n(23),g=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}},{key:"render",value:function(){return null}}]),t}(h.Component);g.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,b.isModuleActivated)(e,t)}}},function(e){return(0,_.bindActionCreators)({fetchProtectCount:M.fetchProtectCount},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(15),y=r(v),A=n(23),E=n(21),w=n(128),k=r(w),T=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,g.translate)("Downtime monitoring"),n={text:(0,g.translate)("Jetpack’s downtime monitor will keep tabs on your site, and alert you the moment that downtime is detected."),link:"https://jetpack.com/support/monitor/"},r=function(){y.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",support:n,status:"is-working"},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.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",support:n,className:"jp-dash-item__is-inactive"},M.default.createElement("p",{className:"jp-dash-item__description"},this.props.isDevMode?(0,g.translate)("Unavailable in Dev Mode."):(0,g.translate)("{{a}}Activate Monitor{{/a}} to receive email notifications if your site goes down.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:r})}})))}},{key:"render",value:function(){return this.props.isModuleAvailable&&this.getContent()}}]),t}(_.Component);T.propTypes={isDevMode:m.default.bool.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{isDevMode:(0,E.isDevMode)(e),isModuleAvailable:(0,A.isModuleAvailable)(e,"monitor")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(47),y=n(849),A=r(y),E=n(61),w=n(210),k=n(62),T=n(21),L=n(128),S=r(L),C=n(26),O=r(C),z=n(27),N=r(z),D=function(e){return M.default.createElement(S.default,{label:(0,g.translate)("Security Scanning"),module:e.feature||"scan",support:{text:(0,g.translate)("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data."),link:"https://jetpack.com/support/security/"},className:e.className||"",status:e.status||"",pro:!0},(0,O.default)(e.content)?e.content:M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},P=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.siteRawUrl,r=e.fetchingSiteData,a=!1!==t,i=this.props.vaultPressData,o=(0,N.default)(i,["data","features","security"],!1);if(this.props.getOptionValue("vaultpress")){if("N/A"===i)return D({status:"",content:(0,g.translate)("Loading…")});if(o){var s=this.props.scanThreats;if(0!==s)return D({content:[M.default.createElement("h3",null,(0,g.translate)("Uh oh, %(number)s threat found.","Uh oh, %(number)s threats found.",{count:s,args:{number:(0,g.numberFormat)(s)}})),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.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,g.translate)("{{a}}Contact Support{{/a}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support"})}}))]});if("success"===i.code)return D({status:"is-working",content:(0,g.translate)("No threats found, you're good to go!")})}}if(r)return D({status:"",content:(0,g.translate)("Loading…")});var c=this.props.isVaultPressInstalled?"pro-inactive":"pro-uninstalled",u=(0,v.getPlanClass)((0,N.default)(t,"product_slug","")),l="is-premium-plan"===u,d="is-business-plan"===u;return D({className:"jp-dash-item__is-inactive",status:a?c:"no-pro-uninstalled-or-inactive",content:l||d||o?(0,g.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,g.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="+n,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?D({className:"jp-dash-item__is-inactive",content:(0,g.translate)("Unavailable in Dev Mode.")}):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(A.default,null),this.props.isRewindActive?M.default.createElement("div",{className:"jp-dash-item__interior"},D({className:"jp-dash-item__is-active",status:"is-working",content:(0,g.translate)("We are making sure your site stays free of security threats. You will be notified if we find one."),feature:"rewind"})):this.getVPContent())}}]),t}(_.Component);P.propTypes={siteRawUrl:m.default.string.isRequired,vaultPressData:m.default.any.isRequired,scanThreats:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isPluginInstalled:m.default.bool.isRequired,fetchingSiteData:m.default.bool.isRequired},P.defaultProps={siteRawUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isDevMode:!1,isPluginInstalled:!1,fetchingSiteData:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,k.getVaultPressData)(e),scanThreats:(0,k.getVaultPressScanThreatCount)(e),sitePlan:(0,E.getSitePlan)(e),isDevMode:(0,T.isDevMode)(e),isVaultPressInstalled:(0,w.isPluginInstalled)(e,"vaultpress/vaultpress.php"),fetchingSiteData:(0,E.isFetchingSiteData)(e)}})(P),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(128),E=r(A),w=n(1189),k=r(w),T=n(62),L=n(61),S=n(21),C=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this.props.akismetData,t=(0,g.translate)("Spam Protection"),n={text:(0,g.translate)("Akismet checks your comments and contact form submissions against our global database of spam."),link:"https://akismet.com/",privacyLink:"https://automattic.com/privacy/"};if("N/A"===e)return M.default.createElement(E.default,{label:t,module:"akismet",support:n,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Loading…")));var r=!1!==this.props.sitePlan;return"not_installed"===e?M.default.createElement(E.default,{label:t,module:"akismet",support:n,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,g.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(E.default,{label:t,module:"akismet",support:n,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,g.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(E.default,{label:t,module:"akismet",support:n,className:"jp-dash-item__is-inactive",status:"is-warning",statusText:(0,g.translate)("Invalid key"),pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.",{components:{akismetSettings:M.default.createElement("a",{href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config"})}}))):[M.default.createElement(E.default,{key:"comment-moderation",label:t,module:"akismet",support:n,status:"is-working",pro:!0},M.default.createElement("h2",{className:"jp-dash-item__count"},(0,g.numberFormat)(e.all.spam)),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Spam comments blocked.",{context:'Example: "412 Spam comments blocked"'}))),!this.props.isDevMode&&M.default.createElement(y.default,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:"https://wordpress.com/comments/all/"+this.props.siteRawUrl},(0,g.translate)("Moderate comments"))]}},{key:"render",value:function(){return M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(k.default,null),this.getContent())}}]),t}(_.Component);C.propTypes={siteRawUrl:m.default.string.isRequired,siteAdminUrl:m.default.string.isRequired,akismetData:m.default.oneOfType([m.default.string,m.default.object]).isRequired,isDevMode:m.default.bool.isRequired},C.defaultProps={siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isDevMode:""},t.default=(0,b.connect)(function(e){return{akismetData:(0,T.getAkismetData)(e),sitePlan:(0,L.getSitePlan)(e),isDevMode:(0,S.isDevMode)(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(18),M=n(62),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.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)})(b),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(64),E=r(A),w=n(234),k=r(w),T=n(27),L=r(T),S=n(849),C=r(S),O=n(61),z=n(210),N=n(62),D=n(21),P=function(e){return M.default.createElement(v.default,{label:(0,y.translate)("Backups"),module:e.feature||"backups",support:{text:(0,y.translate)("Jetpack Backups allow you to easily restore or download a backup from a specific moment."),link:"https://jetpack.com/support/backups/"},className:e.className,status:e.status,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},x=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getVPContent",value:function(){var e=this.props,t=e.sitePlan,n=e.isVaultPressInstalled,r=e.getOptionValue,a=e.siteRawUrl,i=e.vaultPressData;return P(r("vaultpress")&&"success"===(0,L.default)(i,"code","")?{className:"jp-dash-item__is-active",status:"is-working",content:M.default.createElement("span",null,(0,L.default)(i,"message","")," ",(0,y.translate)("{{a}}View backup details{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://dashboard.vaultpress.com",target:"_blank",rel:"noopener noreferrer"})}}))}:(0,k.default)(t)?{className:"",status:"",content:(0,y.translate)("Loading…")}:"jetpack_free"!==(0,L.default)(t,"product_slug","jetpack_free")?{className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:(0,y.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/setup/"+a+"?only=backups",target:"_blank",rel:"noopener noreferrer"})}})}:{className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.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="+a,target:"_blank",rel:"noopener noreferrer"})}})})}},{key:"render",value:function(){return this.props.isDevMode?M.default.createElement("div",{className:"jp-dash-item__interior"},P({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:(0,y.translate)("Unavailable in Dev Mode.")})):M.default.createElement("div",{className:"jp-dash-item__interior"},M.default.createElement(C.default,null),this.props.isRewindActive?P({className:"jp-dash-item__is-active",status:"is-working",content:(0,y.translate)("Your site is being backed up in real-time."),feature:"rewind"}):this.getVPContent())}}]),t}(_.Component);x.propTypes={siteRawUrl:m.default.string.isRequired,getOptionValue:m.default.func.isRequired,isRewindActive:m.default.bool.isRequired,vaultPressData:m.default.any.isRequired,sitePlan:m.default.object.isRequired,isDevMode:m.default.bool.isRequired,isVaultPressInstalled:m.default.bool.isRequired},x.defaultProps={siteRawUrl:"",getOptionValue:E.default,isRewindActive:!1,vaultPressData:"",sitePlan:"",isDevMode:!1,isVaultPressInstalled:!1},t.default=(0,b.connect)(function(e){return{vaultPressData:(0,N.getVaultPressData)(e),sitePlan:(0,O.getSitePlan)(e),isDevMode:(0,D.isDevMode)(e),isVaultPressInstalled:(0,z.isPluginInstalled)(e,"vaultpress/vaultpress.php")}})(x),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(25),y=r(v),A=n(128),E=r(A),w=n(1192),k=r(w),T=n(62),L=n(23),S=n(21),C=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"activateAndRedirect",value:function(e){e.preventDefault(),this.props.activateManage().then(window.location="https://wordpress.com/plugins/manage/"+this.props.siteRawUrl)}},{key:"getContent",value:function(){var e=(0,g.translate)("Plugin Updates"),t=this.props.pluginUpdates,n={text:(0,g.translate)("Jetpack’s Plugin Updates allows you to choose which plugins update automatically."),link:"https://jetpack.com/support/site-management/"};if("N/A"===t)return M.default.createElement(E.default,{label:e,module:"manage",support:n,status:"is-working"},M.default.createElement(k.default,null),M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Loading…")));var r="updates-available"===t.code,a="https://wordpress.com/plugins/manage/"+this.props.siteRawUrl,i=this.props.getOptionValue("manage")?"is-working":"is-inactive";return[M.default.createElement(E.default,{key:"plugin-updates",label:e,module:"manage",support:n,status:r?"is-warning":i},r&&M.default.createElement("h2",{className:"jp-dash-item__count"},(0,g.translate)("%(number)s","%(number)s",{count:t.count,args:{number:t.count}})),M.default.createElement("p",{className:"jp-dash-item__description"},r?[(0,g.translate)("Plugin needs updating.","Plugins need updating.",{count:t.count})+" ",!this.props.isDevMode&&(0,g.translate)("{{a}}Turn on plugin autoupdates{{/a}}",{components:{a:M.default.createElement("a",{href:a})}})]:(0,g.translate)("All plugins are up-to-date. Awesome work!"))),!this.props.isDevMode&&M.default.createElement(y.default,{key:"manage-plugins",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:a},(0,g.translate)("Manage your plugins"))]}},{key:"render",value:function(){return this.props.isModuleAvailable&&M.default.createElement("div",null,M.default.createElement(k.default,null),this.getContent())}}]),t}(_.Component);C.propTypes={isDevMode:m.default.bool.isRequired,siteRawUrl:m.default.string.isRequired,siteAdminUrl:m.default.string.isRequired,pluginUpdates:m.default.any.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{pluginUpdates:(0,T.getPluginUpdates)(e),isDevMode:(0,S.isDevMode)(e),isModuleAvailable:(0,L.isModuleAvailable)(e,"manage")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=n(10),_=n(18),M=n(62),b=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.fetchingPluginUpdates||this.props.fetchPluginUpdates()}},{key:"render",value:function(){return null}}]),t}(h.Component);b.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)})(b),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(128),v=r(g),y=n(8),A=n(23),E=n(21),w=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"getContent",value:function(){var e=this,t=(0,y.translate)("Image Performance"),n=function(){return e.props.updateOptions({photon:!0})},r={text:(0,y.translate)("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site."),link:"https://jetpack.com/support/photon/"};return this.props.getOptionValue("photon")?M.default.createElement(v.default,{label:t,module:"photon",support:r,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(v.default,{label:t,module:"photon",support:r,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(){return this.props.isModuleAvailable&&this.getContent()}}]),t}(_.Component);w.propTypes={isDevMode:m.default.bool.isRequired,isModuleAvailable:m.default.bool.isRequired},t.default=(0,b.connect)(function(e){return{isDevMode:(0,E.isDevMode)(e),isModuleAvailable:(0,A.isModuleAvailable)(e,"photon")}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(64),y=r(v),A=n(128),E=r(A),w=n(25),k=r(w),T=n(74),L=n(21),S=n(61),C=n(47),O=function(e){return M.default.createElement(E.default,{label:(0,g.translate)("Search"),module:"search",support:{text:(0,g.translate)("Jetpack’s Search module is a powerful replacement for the search capability built into WordPress."),link:"https://jetpack.com/support/search/"},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},e.content))},z=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this,t="is-business-plan"===this.props.planClass,n=function(){return e.props.updateOptions({search:!0})};return this.props.isDevMode?O({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:(0,g.translate)("Unavailable in Dev Mode")}):t?this.props.getOptionValue("search")?M.default.createElement("div",{className:"jp-dash-item"},M.default.createElement(E.default,{label:(0,g.translate)("Search"),module:"search",support:{text:(0,g.translate)("Jetpack’s Search module is a powerful replacement for the search capability built into WordPress."),link:"https://jetpack.com/support/search/"},className:"jp-dash-item__is-active",isModule:!1,pro:!0},M.default.createElement("p",{className:"jp-dash-item__description"},(0,g.translate)("Jetpack Search is powering search on your site."))),M.default.createElement(k.default,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets"},(0,g.translate)("Add Search (Jetpack) Widget"))):O({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,g.translate)("{{a}}Activate{{/a}} to replace the WordPress built-in search with an improved search experience.",{components:{a:M.default.createElement("a",{href:"javascript:void(0)",onClick:n})}})}):O({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,
48
+ content:(0,g.translate)("Give your visitors {{a}}a great search experience{{/a}}.",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/features/design/elasticsearch-powered-search/",target:"_blank",rel:"noopener noreferrer"})}})})}}]),t}(_.Component);z.propTypes={getOptionValue:m.default.func.isRequired,isDevMode:m.default.bool.isRequired},z.defaultProps={getOptionValue:y.default,isDevMode:!1},t.default=(0,b.connect)(function(e){return{foundSearch:(0,T.isModuleFound)(e,"search"),planClass:(0,C.getPlanClass)((0,S.getSitePlan)(e).product_slug),isDevMode:(0,L.isDevMode)(e)}})(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}),t.DashConnections=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(8),v=n(65),y=r(v),A=n(128),E=r(A),w=n(21),k=n(28),T=n(1196),L=r(T),S=n(915),C=r(S),O=t.DashConnections=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"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(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.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(y.default,{icon:"globe",size:64}),M.default.createElement("div",{className:"jp-connection-settings__text"},(0,g.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,g.translate)("You are the Jetpack owner."))))),this.props.userCanDisconnectSite&&M.default.createElement("div",{className:"jp-connection-settings__actions"},M.default.createElement(C.default,{asLink:!0})))),e}},{key:"userConnection",value:function(){var e=this.props.userIsMaster?null:M.default.createElement(C.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,g.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,g.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,g.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(E.default,{className:"jp-connection-type",label:(0,g.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(E.default,{className:"jp-connection-type",label:(0,g.translate)("Account connection",{context:"Dashboard widget header"})},this.userConnection())))))}}]),t}(_.Component);O.propTypes={siteConnectionStatus:m.default.any.isRequired,isDevMode:m.default.bool.isRequired,userCanDisconnectSite:m.default.bool.isRequired,userIsMaster:m.default.bool.isRequired,isLinked:m.default.bool.isRequired,userWpComLogin:m.default.any.isRequired,userWpComEmail:m.default.any.isRequired,userWpComAvatar:m.default.any.isRequired,username:m.default.any.isRequired},t.default=(0,b.connect)(function(e){return{siteConnectionStatus:(0,w.getSiteConnectionStatus)(e),isDevMode:(0,w.isDevMode)(e),userCanDisconnectSite:(0,k.userCanDisconnectSite)(e),userIsMaster:(0,k.userIsMaster)(e),userWpComLogin:(0,k.getUserWpComLogin)(e),userWpComEmail:(0,k.getUserWpComEmail)(e),userWpComAvatar:(0,k.getUserWpComAvatar)(e),username:(0,k.getUsername)(e),isLinked:(0,w.isCurrentUserLinked)(e),siteIcon:(0,k.getSiteIcon)(e)}})(O)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.QueryUserConnectionData=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(21),b=t.QueryUserConnectionData=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.isFetchingUserData||this.props.isDevMode||this.props.fetchUserConnectionData()}},{key:"render",value:function(){return null}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{isFetchingUserData:(0,M.isFetchingUserData)(e),isDevMode:(0,M.isDevMode)(e)}},function(e){return{fetchUserConnectionData:function(){return e((0,M.fetchUserConnectionData)())}}})(b)},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(47),b=n(44),g=r(b),v=n(61),y=n(211),A=r(y),E=n(21),w=n(1198),k=r(w),T=n(1199),L=r(T),S=n(1200),C=r(S),O=n(1201),z=r(O),N=t.Plans=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.themesPromo=function(){var e=r.props.sitePlan.product_slug||"",t="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";switch(t){case"is-personal-plan":case"is-premium-plan":case"is-free-plan":return m.default.createElement(k.default,{plan:t,siteRawUrl:r.props.siteRawUrl})}return null},r.renderContent=function(){var e=r.props.sitePlan.product_slug||"",t=r.props.availableFeatures,n=r.props.activeFeatures,a="",i="dev"!==r.props.plan?(0,M.getPlanClass)(e):"dev";"dev"===r.props.getSiteConnectionStatus(r.props)&&(e="dev",t={},n={});var o=void 0!==r.props.availableFeatures[M.FEATURE_UNLIMITED_PREMIUM_THEMES],s=(0,g.default)(r.props.activeFeatures,M.FEATURE_UNLIMITED_PREMIUM_THEMES);return o&&!s&&(a=r.themesPromo(),"is-free-plan"===i)?m.default.createElement("div",null,m.default.createElement(z.default,null),a):m.default.createElement("div",null,m.default.createElement(z.default,null),a,m.default.createElement("div",{className:"jp-landing__plans dops-card"},m.default.createElement(L.default,{plan:e,siteRawUrl:r.props.siteRawUrl}),m.default.createElement(C.default,{plan:e,availableFeatures:t,activeFeatures:n,siteRawUrl:r.props.siteRawUrl,siteAdminUrl:r.props.siteAdminUrl,rewindStatus:r.props.rewindStatus})))},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,m.default.createElement(A.default,null),this.renderContent())}}]),t}(m.default.Component);t.default=(0,_.connect)(function(e){return{getSiteConnectionStatus:function(){return(0,E.getSiteConnectionStatus)(e)},sitePlan:(0,v.getSitePlan)(e),availableFeatures:(0,v.getAvailableFeatures)(e),activeFeatures:(0,v.getActiveFeatures)(e)}})(N)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(14),g=r(b),v=n(8),y=n(25),A=r(y),E=n(41),w=r(E),k=n(15),T=r(k),L=n(80),S=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackGetStarted=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-get-started",plan:r.props.plan,type:"upgrade"})},r.trackComparePlans=function(){T.default.tracks.recordJetpackClick({target:"themes-card",button:"themes-compare-all",plan:r.props.plan,type:"upgrade"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=(0,g.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 M.default.createElement("div",{className:e},M.default.createElement(A.default,{className:"jp-apps-card__content"},M.default.createElement("div",{className:"jp-apps-card__top"},M.default.createElement("svg",{id:"customizeTheme",viewBox:"0 0 1562.02 968.34"},M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"392.72",x2:"428.98",y1:"701.82",y2:"701.82"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.default.createElement("path",{style:{fill:"none"},d:"M2447.73,1648.42l-1.12.53Z",transform:"translate(-1756.98 -1363.12)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2431.51,1654.49l1-.28-1.95.52Z",transform:"translate(-1756.98 -1363.12)"}),M.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)"}),M.default.createElement("path",{style:{fill:"#004f82"},d:"M2446.61,1648.95l-1.7.78.61-.27Z",transform:"translate(-1756.98 -1363.12)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.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)"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"216.54",x2:"216.54",y1:"709.01",y2:"947.85"}),M.default.createElement("path",{style:{fill:"#c8d7e2"},
49
+ 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)"}),M.default.createElement("line",{style:{fill:"#fff"},x1:"605.81",x2:"605.81",y1:"729.17",y2:"947.85"}),M.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)"})),M.default.createElement("div",{className:"jp-apps-card__clouds"},M.default.createElement("img",{src:L.imagePath+"/white-clouds.svg",alt:""}))),M.default.createElement("div",{className:"jp-apps-card__description"},M.default.createElement("h3",{className:"jp-apps-card__header"},(0,v.translate)("Introducing Unlimited Themes")),(0,v.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:M.default.createElement("p",{className:"jp-apps-card__promo_subhead"}),p:M.default.createElement("p",{className:"jp-apps-card__paragraph"})}}),M.default.createElement("p",null,M.default.createElement(w.default,{className:"is-primary",onClick:this.trackGetStarted,href:"https://jetpack.com/redirect/?source=upgrade-pro-"+r+"&site="+this.props.siteRawUrl},(0,v.translate)("Explore Professional"))," ",M.default.createElement(w.default,{onClick:this.trackComparePlans,href:"https://jetpack.com/redirect/?source=plans-compare-free&site="+this.props.siteRawUrl},(0,v.translate)("Compare All Plans"))))))}}]),t}(M.default.Component);S.displayName="ThemesPromoCard",S.propTypes={className:m.default.string,plan:m.default.string},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(41),M=r(_),b=n(8),g=n(15),v=r(g),y=n(47),A=n(80),E=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackLearnMore=function(){v.default.tracks.recordJetpackClick({target:"learn-more",plan:"free",page:"plans"})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e="",t="";switch("dev"!==this.props.plan?(0,y.getPlanClass)(this.props.plan):"dev"){case"is-free-plan":e=m.default.createElement("div",{className:"jp-landing-plans__header"},m.default.createElement("h2",{className:"jp-landing-plans__header-title"},(0,b.translate)("Jetpack Premium now includes our full security suite")),m.default.createElement("p",{className:"jp-landing-plans__header-description"},(0,b.translate)("Automated backups, one-click restores, spam filtering, and malware scanning.")),m.default.createElement("div",{className:"jp-landing-plans__header-img-container"},m.default.createElement("div",{className:"jp-landing-plans__header-col-left"},m.default.createElement("h3",{className:"jp-landing-plans__header-subtitle"},(0,b.translate)("How much is your website worth?")),m.default.createElement("p",{className:"jp-landing-plans__header-text"},(0,b.translate)("For less than the price of a coffee a month you can rest easy knowing your hard work (or livelihood) is backed up."),m.default.createElement("br",null),m.default.createElement("br",null),(0,b.translate)("Upgrade to a weekly coffee and fully protect your site from malware, infiltrations, and security loopholes with automated malware scanning.")),m.default.createElement("p",{className:"jp-landing-plans__header-btn-container"},m.default.createElement(M.default,{href:"https://jetpack.com/redirect/?source=plans-main-top&site="+this.props.siteRawUrl,className:"is-primary"},(0,b.translate)("Learn more")))),m.default.createElement("div",{className:"jp-landing-plans__header-col-right"},m.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"},m.default.createElement("title",{id:"wpcomLogin"},(0,b.translate)("Image of WordPress login screen protected by Jetpack")),m.default.createElement("defs",null,m.default.createElement("rect",{id:"path-1",x:"0",y:"0",width:"1005",height:"700",rx:"8"}),m.default.createElement("polygon",{id:"path-3",points:"0 80 80 80 80 0 0 0 0 80"}),m.default.createElement("rect",{id:"path-5",x:"22",y:"154",width:"280",height:"35"}),m.default.createElement("mask",{id:"mask-6",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-5"})),m.default.createElement("rect",{id:"path-7",x:"22",y:"234",width:"280",height:"35"}),m.default.createElement("mask",{id:"mask-8",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"280",height:"35",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-7"})),m.default.createElement("rect",{id:"path-9",x:"22",y:"291",width:"15",height:"15"}),m.default.createElement("mask",{id:"mask-10",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"15",height:"15",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-9"})),m.default.createElement("rect",{id:"path-11",x:"230",y:"289",width:"71",height:"30",rx:"3"}),m.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-12"},m.default.createElement("feOffset",{dx:"0",dy:"1",in:"SourceAlpha",result:"shadowOffsetOuter1"}),m.default.createElement("feComposite",{in:"shadowOffsetOuter1",in2:"SourceAlpha",operator:"out",result:"shadowOffsetOuter1"}),m.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowOffsetOuter1"})),m.default.createElement("filter",{x:"-50",y:"-50",width:"200",height:"200",filterUnits:"objectBoundingBox",id:"filter-13"},m.default.createElement("feOffset",{dx:"0",dy:"2",in:"SourceAlpha",result:"shadowOffsetInner1"}),m.default.createElement("feComposite",{in:"shadowOffsetInner1",in2:"SourceAlpha",operator:"arithmetic",k2:"-1",k3:"1",result:"shadowInnerInner1"}),m.default.createElement("feColorMatrix",{values:"0",type:"matrix",in:"shadowInnerInner1"})),m.default.createElement("mask",{id:"mask-14",maskContentUnits:"userSpaceOnUse",maskUnits:"objectBoundingBox",x:"0",y:"0",width:"71",height:"30",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-11"})),m.default.createElement("polygon",{id:"path-15",points:"54 33.75 54 0 0 0 0 33.75 0 67.5 54 67.5"})),m.default.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},m.default.createElement("g",{id:"Plans---wp-login-stripped",transform:"translate(-197.000000, -136.000000)"},m.default.createElement("g",{id:"Editor-Container",transform:"translate(197.000000, 136.000000)"},m.default.createElement("g",{id:"Simple-Layout"},m.default.createElement("g",{id:"bg"},m.default.createElement("mask",{id:"mask-2",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-1"})),m.default.createElement("use",{id:"content-bg-mask",fill:"#F1F1F1",xlinkHref:"#path-1"})),m.default.createElement("g",{id:"chrome"},m.default.createElement("rect",{fill:"#FEFEFE",x:"0",y:"0",width:"1005",height:"53",rx:"8"}),m.default.createElement("rect",{id:"Rectangle",fill:"#F1F1F1",x:"0",y:"46",width:"1005",height:"38"}),m.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"}))),m.default.createElement("g",{id:"login-form",opacity:"0.5",transform:"translate(340.000000, 156.000000)"},m.default.createElement("rect",{id:"log-bg",fill:"#FFFFFF",x:"0",y:"110",width:"325",height:"243"}),m.default.createElement("g",{id:"wplogo",transform:"translate(123.000000, 0.000000)"},m.default.createElement("mask",{id:"mask-4",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-3"})),m.default.createElement("g",{id:"Clip-2"}),m.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)"})),m.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-6)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-5"}),m.default.createElement("use",{id:"input",stroke:"#DEDEDE",mask:"url(#mask-8)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-7"}),m.default.createElement("use",{id:"checkbox",stroke:"#DEDEDE",mask:"url(#mask-10)",strokeWidth:"2",fill:"#FBFBFB",xlinkHref:"#path-9"}),m.default.createElement("g",{id:"btn"},m.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-12)",xlinkHref:"#path-11"}),m.default.createElement("use",{fill:"#36A3CA",fillRule:"evenodd",xlinkHref:"#path-11"}),m.default.createElement("use",{fill:"black",fillOpacity:"1",filter:"url(#filter-13)",xlinkHref:"#path-11"}),m.default.createElement("use",{stroke:"#1075A0",mask:"url(#mask-14)",strokeWidth:"2",xlinkHref:"#path-11"}))),m.default.createElement("g",{id:"security",transform:"translate(428.000000, 275.000000)"},m.default.createElement("circle",{id:"Oval",fill:"#3D596D",cx:"75",cy:"75",r:"75"}),m.default.createElement("g",{id:"Page-1",transform:"translate(48.000000, 37.500000)"},m.default.createElement("mask",{id:"mask-16",fill:"white"},m.default.createElement("use",{xlinkHref:"#path-15"})),m.default.createElement("g",{id:"Clip-2"}),m.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)"}))))))))),m.default.createElement("div",{className:"jp-landing-plans__clouds jp-clouds-top"},m.default.createElement("img",{src:A.imagePath+"/white-clouds.svg",alt:""}))),t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Powerful services for your site")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Always-on security, a better search experience, unlimited CDN use, advanced marketing tools, and monetization services."))));break;case"is-personal-plan":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-personal.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Welcome to Jetpack Personal")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Daily backups, spam filtering, and priority support."))));break;case"is-premium-plan":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-premium.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-iconcard-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Welcome to Jetpack Premium")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support."))));break;case"is-business-plan":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-business.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Welcome to Jetpack Professional")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.translate)("Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, enhanced search, and priority support."))));break;case"dev":t=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img"},m.default.createElement("img",{src:A.imagePath+"/plans/plan-free.svg",className:"jp-landing__plan-icon",alt:""})),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,b.translate)("Your site is on Development Mode")),m.default.createElement("p",{className:"jp-landing__plan-features-text"},(0,b.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=m.default.createElement("div",{className:"jp-landing__plan-card"},m.default.createElement("div",{className:"jp-landing__plan-card-img is-placeholder"}),m.default.createElement("div",{className:"jp-landing__plan-card-current"},m.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),m.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return m.default.createElement("div",null,e,t)}}]),t}(m.default.Component);t.default=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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(41),v=r(g),y=n(8),A=n(15),E=r(A),w=n(47),k=n(44),T=r(k),L=n(27),S=r(L),C=n(210),O=n(23),z=n(507),N=r(z),D=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackPlansClick=function(e){E.default.tracks.recordJetpackClick({page:"plans",target:e,plan:r.props.plan})},r.handleButtonClickForTracking=function(e){return function(){return r.trackPlansClick(e)}},r.activateAds=function(){r.props.activateModule("wordads"),r.trackPlansClick("activate_wordads")},r.activatePublicize=function(){r.props.activateModule("publicize"),r.trackPlansClick("activate_publicize")},r.activateSearch=function(){r.props.activateModule("search"),r.trackPlansClick("activate_search")},r.activateVideoPress=function(){r.props.activateModule("videopress"),r.trackPlansClick("activate_videopress")},r.activateSeo=function(){r.props.activateModule("seo-tools"),r.trackPlansClick("activate_seo")},r.activateGoogleAnalytics=function(){r.props.activateModule("google-analytics"),r.trackPlansClick("activate_ga")},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this,t="",n="dev"!==this.props.plan?(0,w.getPlanClass)(this.props.plan):"dev",r=(0,T.default)(this.props.activeFeatures,w.FEATURE_UNLIMITED_PREMIUM_THEMES),a="active"===(0,S.default)(this.props.rewindStatus,["state"],!1),i=!a&&"unavailable"!==(0,S.default)(this.props.rewindStatus,["state"],!1),o=function(){if(!i){var t="";switch(n){case"is-personal-plan":t=(0,y.translate)("Daily backup of all your site data with unlimited space and one-click restores");break;case"is-premium-plan":t=(0,y.translate)("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support");break;case"is-business-plan":t=(0,y.translate)("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support");break;default:t=""}return a?M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Backups")),M.default.createElement("p",null,(0,y.translate)("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.")),M.default.createElement(v.default,{onClick:e.handleButtonClickForTracking("view_security_dash_rewind"),href:"https://wordpress.com/stats/activity/"+e.props.siteRawUrl,className:"is-primary"},(0,y.translate)("View your security activity"))):M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Backups")),M.default.createElement("p",null,t+(0,y.translate)(" (powered by VaultPress).")),e.props.isPluginInstalled("vaultpress/vaultpress.php")&&e.props.isPluginActive("vaultpress/vaultpress.php")?M.default.createElement(v.default,{onClick:e.handleButtonClickForTracking("view_security_dash"),href:"https://dashboard.vaultpress.com/",className:"is-primary"},(0,y.translate)("View your security dashboard")):M.default.createElement(v.default,{onClick:e.handleButtonClickForTracking("configure_vault"),href:"https://wordpress.com/plugins/setup/"+e.props.siteRawUrl+"?only=vaultpress",className:"is-primary"},(0,y.translate)("Configure VaultPress")))}};switch(n){case"is-personal-plan":case"is-premium-plan":case"is-business-plan":t=M.default.createElement("div",{className:"jp-landing__plan-features"},r&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Unlimited Premium Themes")),M.default.createElement("p",null,(0,y.translate)("Exclusive hand-crafted designs you will love with dedicated support directly from the theme authors.")),M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("premium_themes"),href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Browse Themes"))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Spam Protection")),M.default.createElement("p",null,(0,y.translate)("State-of-the-art spam defense powered by Akismet.")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config",className:"is-primary"},(0,y.translate)("View your spam stats")):M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("configure_akismet"),href:"https://wordpress.com/plugins/setup/"+this.props.siteRawUrl+"?only=akismet",className:"is-primary"},(0,y.translate)("Configure Akismet"))),"is-personal-plan"===n&&o(),"is-premium-plan"===n&&o(),"is-business-plan"===n&&o(),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("wordads")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Ads")),M.default.createElement("p",null,(0,y.translate)("Earn income by allowing Jetpack to display high quality ads (powered by WordAds).")),this.props.isModuleActivated("wordads")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("view_earnings"),href:"https://wordpress.com/ads/earnings/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("View your earnings")):M.default.createElement(v.default,{onClick:this.activateAds,className:"is-primary",disabled:this.props.isActivatingModule("wordads")},(0,y.translate)("Activate Ads"))),"is-business-plan"===n&&!this.props.getModuleOverride("search")&&"inactive"!==this.props.getModuleOverride("search")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Search")),M.default.createElement("p",null,(0,y.translate)("Replace the default WordPress search with better results that will help your users find what they are looking for.")),this.props.isModuleActivated("search")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("search_customize"),href:this.props.siteAdminUrl+"widgets.php",className:"is-primary"},(0,y.translate)("Customize Search Widget")):M.default.createElement(v.default,{onClick:this.activateSearch,className:"is-primary",disabled:this.props.isActivatingModule("search")},(0,y.translate)("Activate Search"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("publicize")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Social Media Scheduling")),M.default.createElement("p",null,(0,y.translate)("Schedule multiple Facebook, Twitter, and other social media postings in advance and view share history stats.")),this.props.isModuleActivated("publicize")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("schedule_posts"),href:"https://wordpress.com/posts/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Schedule Posts")):M.default.createElement(v.default,{onClick:this.activatePublicize,className:"is-primary",disabled:this.props.isActivatingModule("publicize")},(0,y.translate)("Activate Publicize"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("videopress")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Video Hosting")),M.default.createElement("p",null,(0,y.translate)("Fast, optimized, ad-free, and unlimited video hosting for your site.")),this.props.isModuleActivated("videopress")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php",className:"is-primary"},(0,y.translate)("Upload Videos Now")):M.default.createElement(v.default,{onClick:this.activateVideoPress,className:"is-primary",disabled:this.props.isActivatingModule("videopress")},(0,y.translate)("Activate Video Hosting"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("seo-tools")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("SEO Tools")),M.default.createElement("p",null,(0,y.translate)("Advanced SEO tools to help your site get found when people search for relevant content.")),this.props.isModuleActivated("seo-tools")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("configure_seo"),href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Configure Site SEO")):M.default.createElement(v.default,{onClick:this.activateSeo,className:"is-primary",disabled:this.props.isActivatingModule("seo-tools")},(0,y.translate)("Activate SEO Tools"))),("is-business-plan"===n||"is-premium-plan"===n)&&"inactive"!==this.props.getModuleOverride("google-analytics")&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Google Analytics")),M.default.createElement("p",null,(0,y.translate)("Track website statistics with Google Analytics for a deeper understanding of your website visitors and customers.")),this.props.isModuleActivated("google-analytics")?M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("configure_ga"),href:"https://wordpress.com/settings/traffic/"+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Configure Google Analytics")):M.default.createElement(v.default,{onClick:this.activateGoogleAnalytics,className:"is-primary",disabled:this.props.isActivatingModule("google-analytics")},(0,y.translate)("Activate Google Analytics"))),"is-personal-plan"===n&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Three great reasons to go Pro")),M.default.createElement("p",null,(0,y.translate)("Design the perfect site with unlimited access to hundreds of themes and unlimited, high-speed, and ad-free video hosting.")),M.default.createElement("p",null,(0,y.translate)("Always-on security including real-time backups, malware scanning, and automatic threat resolution.")),M.default.createElement("p",null,(0,y.translate)("Grow your traffic and revenue with social media scheduling, enhanced site search, SEO tools, PayPal payments, and an ad program.")),M.default.createElement("p",null,M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("compare_plans"),href:"https://jetpack.com/redirect/?source=plans-compare-personal&site="+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Compare Plans")))),"is-premium-plan"===n&&M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Two great reasons to go Pro")),M.default.createElement("p",null,(0,y.translate)("Unlimited access to hundreds of premium WordPress themes with dedicated support directly from the theme authors.")),M.default.createElement("p",null,(0,y.translate)("A superior search experience powered by Elasticsearch providing your users with faster and more relevant search results. Previously only available to WordPress.com VIP customers and trusted by industry-leading brands.")),M.default.createElement("p",null,M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("compare_plans"),href:"https://jetpack.com/redirect/?source=plans-compare-premium&site="+this.props.siteRawUrl,className:"is-primary"},(0,y.translate)("Explore Jetpack Professional")))));break;case"is-free-plan":case"dev":t=M.default.createElement("div",{className:"jp-landing__plan-features"},M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Design the perfect website")),M.default.createElement("p",null,(0,y.translate)("Get unlimited access to hundreds of professional themes, a superior search experience for your users, and unlimited high-speed, and ad-free video hosting."))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Increase traffic and revenue")),M.default.createElement("p",null,(0,y.translate)("Reach more people and earn money with automated social media scheduling, better search results, SEO preview tools, PayPal payments, and an ad program."))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Always-on Security")),M.default.createElement("p",null,(0,y.translate)("Automatic defense against hacks, malware, spam, data loss, and downtime with automated backups, unlimited storage, and malware scanning."))),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title"},(0,y.translate)("Enjoy priority support")),M.default.createElement("p",null,(0,y.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."))),M.default.createElement("p",null,M.default.createElement(v.default,{onClick:this.handleButtonClickForTracking("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,y.translate)("Compare Plans"))));break;default:t=M.default.createElement("div",{className:"jp-landing__plan-features"},M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),M.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),M.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),M.default.createElement("div",{className:"jp-landing__plan-features-card"},M.default.createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),M.default.createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return M.default.createElement("div",null,M.default.createElement("div",null,M.default.createElement(N.default,null),t))}}]),t}(M.default.Component);D.propTypes={
50
+ plan:m.default.string},D.defaultProps={plan:""},t.default=(0,b.connect)(function(e){return{isFetchingPluginsData:(0,C.isFetchingPluginsData)(e),isPluginActive:function(t){return(0,C.isPluginActive)(e,t)},isPluginInstalled:function(t){return(0,C.isPluginInstalled)(e,t)},isModuleActivated:function(t){return(0,O.isModuleActivated)(e,t)},isActivatingModule:function(t){return(0,O.isActivatingModule)(e,t)},getModuleOverride:function(t){return(0,O.getModuleOverride)(e,t)}}},function(e){return{fetchPluginsData:function(){return e((0,C.fetchPluginsData)())},activateModule:function(t){return e((0,O.activateModule)(t))}}})(D),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(113),i=r(a),o=n(1202),s=r(o),c=n(2),u=r(c),l=n(3),d=r(l),f=n(6),p=r(f),h=n(4),m=r(h),_=n(5),M=r(_),b=n(1),g=r(b),v=n(10),y=n(14),A=r(y),E=n(864),w=r(E),k=n(1206),T=r(k),L=n(44),S=r(L),C=n(41),O=r(C),z=n(28),N=n(232),D=n(15),P=r(D),x=n(47),j=n(8),R=function(e){function t(){var e,n,r,a;(0,d.default)(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=(0,m.default)(this,(e=t.__proto__||(0,u.default)(t)).call.apply(e,[this].concat(o))),r.featuredPlans=!1,a=n,(0,m.default)(r,a)}return(0,M.default)(t,e),(0,p.default)(t,[{key:"componentWillUpdate",value:function(){this.featuredPlans=!1}},{key:"render",value:function(){if(void 0===this.props.plans)return null;var e=(0,s.default)(this.getPlans()).length,t=(0,A.default)("plan-features__table","has-"+e+"-cols");return g.default.createElement("div",{className:"plan-features"},this.renderMobileCard(),g.default.createElement("div",{className:"plan-features__content"},g.default.createElement("table",{className:t},g.default.createElement("tbody",null,g.default.createElement("tr",null,this.renderPlanHeaders()),g.default.createElement("tr",null,this.renderPrices()),g.default.createElement("tr",null,this.renderTopButtons()),this.renderPlanFeatureRows(),g.default.createElement("tr",null,this.renderBottomButtons())))))}},{key:"renderMobileCard",value:function(){var e=(0,j.translate)("You’re currently on Jetpack %(plan)s.",{args:{plan:this.props.sitePlan.product_name_short}}),t="https://wordpress.com/plans/my-plan/"+this.props.siteRawUrl,n="https://wordpress.com/plans/"+this.props.siteRawUrl;return g.default.createElement("div",{className:"plans-mobile-notice dops-card"},g.default.createElement("h2",null,(0,j.translate)("Your Plan")),g.default.createElement("p",null,e),g.default.createElement(O.default,{href:t},(0,j.translate)("Manage your plan")),g.default.createElement(O.default,{href:n,primary:!0},(0,j.translate)("View all Jetpack plans")))}},{key:"getCurrentPlanType",value:function(){return(0,x.getPlanClass)(this.props.sitePlan.product_slug).replace(/^is-/,"").replace(/-plan#x2F;,"")}},{key:"isUpgraded",value:function(){return!(0,S.default)(["","free"],this.getCurrentPlanType())}},{key:"isCurrentPlanType",value:function(e){return this.getCurrentPlanType()===e}},{key:"getPlans",value:function(){if(this.featuredPlans)return this.featuredPlans;var e=(0,T.default)(this.props.plans,function(e,t,n){if("free"===n)return e;var r=t.highlight;return t.features=(0,T.default)(t.features,function(e,t){return(0,S.default)(r,t.id)&&e.push(t),e},[]),e[n]=t,e},{});return this.featuredPlans=e,e}},{key:"renderPlanHeaders",value:function(){return(0,w.default)(this.getPlans(),function(e,t){var n=(0,A.default)("plan-features__table-item","is-header","has-border-top","is-"+t+"-plan");return g.default.createElement("td",{key:"plan-header-"+t,className:n},g.default.createElement("header",{className:"plan-features__header"},g.default.createElement("h3",{className:"plan-features__header-title"},e.short_name),g.default.createElement("div",{className:"plan-features__description"},e.tagline)))})}},{key:"renderPrices",value:function(){var e=this;return(0,w.default)(this.getPlans(),function(t,n){var r=(0,A.default)("plan-features__table-item","plan-price");return e.isCurrentPlanType(n)?g.default.createElement("td",{key:"price-"+n,className:r},t.strings.current):e.shouldRenderButton(n)?g.default.createElement("td",{key:"price-"+n,className:r},g.default.createElement("span",{className:"plan-price__yearly",dangerouslySetInnerHTML:{__html:t.price.yearly.per}})):g.default.createElement("td",{key:"price-"+n,className:r})})}},{key:"shouldRenderButton",value:function(e){var t=(0,i.default)(this.props.plans),n=t.indexOf(this.getCurrentPlanType());return t.indexOf(e)>=n}},{key:"renderTopButtons",value:function(){var e=this;return(0,w.default)(this.getPlans(),function(t,n){var r=e.isCurrentPlanType(n),a=r?"https://wordpress.com/plans/my-plan/"+e.props.siteRawUrl:"https://jetpack.com/redirect/?source=plans-"+n+"&site="+e.props.siteRawUrl+"&u="+e.props.userId,i=e.isPrimary(n,t),o=(0,A.default)("plan-features__table-item","has-border-bottom","is-top-buttons");if(!e.shouldRenderButton(n))return g.default.createElement("td",{key:"button-"+n,className:o});var s=function(){r&&P.default.tracks.recordJetpackClick({target:"upgrade-"+n,type:"upgrade",plan:e.props.sitePlan.product_slug,page:"Plans"})},c=r?t.strings.manage:t.strings.upgrade;return g.default.createElement("td",{key:"button-"+n,className:o},g.default.createElement(O.default,{href:a,primary:i,onClick:s},c))})}},{key:"isPrimary",value:function(e,t){if(this.isUpgraded()){var n=this.getCurrentPlanType(),r=(0,i.default)(this.getPlans()),a=r.indexOf(n);return r.indexOf(e)===r.indexOf(r[a+1])}return t.is_featured}},{key:"renderBottomButtons",value:function(){var e=this;return(0,w.default)(this.getPlans(),function(t,n){var r="https://jetpack.com/redirect/?source=plans-learn-more&site="+e.props.siteRawUrl+"&u="+e.props.userId;return g.default.createElement("td",{key:"bottom-"+n,className:"plan-features__table-item is-bottom-buttons has-border-bottom"},g.default.createElement(O.default,{href:r},t.strings.see_all))})}},{key:"getLongestFeaturesList",value:function(){return(0,T.default)(this.getPlans(),function(e,t){var n=(0,i.default)(t.features);return n.length>e.length?n:e},[])}},{key:"renderPlanFeatureRows",value:function(){var e=this;return(0,w.default)(this.getLongestFeaturesList(),function(t,n){return g.default.createElement("tr",{key:"row-"+n,className:"plan-features-row"},e.renderPlanFeatureColumns(n))})}},{key:"renderPlanFeatureColumns",value:function(e){var t=this;return(0,w.default)(this.getPlans(),function(n,r){return t.renderFeatureItem(r,e)})}},{key:"renderFeatureItem",value:function(e,t){var n=this.getPlans()[e],r=n.features[t],a=e+"-row-"+t;return void 0===r?g.default.createElement("td",{key:a,className:"plan-features__table-item"}):g.default.createElement("td",{key:a,className:"plan-features__table-item has-partial-border"},g.default.createElement("div",{className:"plan-features__item"},r.info?this.renderFeatureLink(r):r.name))}},{key:"renderFeatureLink",value:function(e){var t=this,n=function(){P.default.tracks.recordJetpackClick({target:e.id,type:"feature-discovery",plan:t.props.sitePlan.product_slug,page:"Plans"})};return g.default.createElement("a",{onClick:n,href:"https://jetpack.com/features/"+e.info+"?site="+this.props.siteRawUrl+"&u="+this.props.userId},e.name)}}]),t}(g.default.Component);t.default=(0,v.connect)(function(e){return{plans:(0,N.getAvailablePlans)(e),siteRawUrl:(0,z.getSiteRawUrl)(e),sitePlan:(0,N.getSitePlan)(e),userId:(0,z.getUserId)(e)}},null)(R),e.exports=t.default},function(e,t,n){e.exports={default:n(1203),__esModule:!0}},function(e,t,n){n(1204),e.exports=n(20).Object.values},function(e,t,n){var r=n(33),a=n(1205)(!1);r(r.S,"Object",{values:function(e){return a(e)}})},function(e,t,n){var r=n(99),a=n(83),i=n(124).f;e.exports=function(e){return function(t){for(var n,o=a(t),s=r(o),c=s.length,u=0,l=[];c>u;)i.call(o,n=s[u++])&&l.push(e?[n,o[n]]:o[n]);return l}}},function(e,t,n){function r(e,t,n){var r=c(e)?a:s,u=arguments.length<3;return r(e,o(t,4),n,u,i)}var a=n(1207),i=n(148),o=n(91),s=n(1208),c=n(26);e.exports=r},function(e,t){function n(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}e.exports=n},function(e,t){function n(e,t,n,r,a){return a(e,function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)}),n}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(14),v=r(g),y=n(8),A=n(25),E=r(A),w=n(41),k=r(w),T=n(15),L=r(T),S=n(47),C=n(28),O=n(61),z=n(21),N=n(473),D=r(N),P=n(80),x=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackBannerClick=function(){L.default.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:r.props.path})},r.trackAskQuestionClick=function(){L.default.tracks.recordJetpackClick({target:"support-card",button:"support-ask",page:r.props.path})},r.trackSearchClick=function(){L.default.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:r.props.path})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"shouldComponentUpdate",value:function(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug}},{key:"render",value:function(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return M.default.createElement("div",null);var e=(0,v.default)(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug;return M.default.createElement("div",{className:e},M.default.createElement(E.default,{className:"jp-support-card__happiness"},M.default.createElement("div",{className:"jp-support-card__happiness-contact"},M.default.createElement("h3",{className:"jp-support-card__header"},(0,y.translate)("We're here to help")),M.default.createElement("p",{className:"jp-support-card__description"},t?(0,y.translate)("Jetpack comes with free, basic support for all users."):(0,y.translate)("Your paid plan gives you access to prioritized Jetpack support.")),M.default.createElement("p",{className:"jp-support-card__description"},M.default.createElement(k.default,{onClick:this.trackAskQuestionClick,href:this.props.isAtomicSite?"https://wordpress.com/help/contact/":P.JETPACK_CONTACT_SUPPORT},(0,y.translate)("Ask a question")),M.default.createElement(k.default,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?"https://wordpress.com/help/":"https://jetpack.com/support/"},(0,y.translate)("Search our support site"))))),this.props.siteConnectionStatus&&t&&M.default.createElement(D.default,{title:(0,y.translate)("Get a faster resolution to your support questions."),plan:S.PLAN_JETPACK_PERSONAL,callToAction:(0,y.translate)("Upgrade"),onClick:this.trackBannerClick,href:"https://jetpack.com/redirect/?source=support&site="+this.props.siteRawUrl}))}}]),t}(M.default.Component);x.displayName="SupportCard",x.defaultProps={className:"",siteConnectionStatus:!1},x.propTypes={siteConnectionStatus:m.default.any.isRequired,className:m.default.string},t.default=(0,b.connect)(function(e){return{sitePlan:(0,O.getSitePlan)(e),siteRawUrl:(0,C.getSiteRawUrl)(e),siteConnectionStatus:(0,z.getSiteConnectionStatus)(e),isFetchingSiteData:(0,O.isFetchingSiteData)(e),isAtomicSite:(0,C.isAtomicSite)(e)}})(x),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(14),v=r(g),y=n(8),A=n(25),E=r(A),w=n(41),k=r(w),T=n(15),L=r(T),S=n(80),C=n(103),O=n(28),z=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.trackDownloadClick=function(){L.default.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:r.props.path})},r.dismissCard=function(){r.props.dismissAppCard(),L.default.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:r.props.path})},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;var e=(0,v.default)(this.props.className,"jp-apps-card");return M.default.createElement("div",{className:e},M.default.createElement(E.default,{className:"jp-apps-card__content"},M.default.createElement("div",{className:"jp-apps-card__top"},M.default.createElement("img",{src:S.imagePath+"/get-apps.svg",alt:""})),M.default.createElement("div",{className:"jp-apps-card__description"},M.default.createElement("h3",{className:"jp-apps-card__header"},(0,y.translate)("Get WordPress Apps for every device")),M.default.createElement("p",{className:"jp-apps-card__paragraph"},(0,y.translate)("Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.")),M.default.createElement(k.default,{className:"is-primary",onClick:this.trackDownloadClick,href:"https://apps.wordpress.com/get?utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard"},(0,y.translate)("Download the free apps")),M.default.createElement("br",null),this.props.userCanManageOptions&&M.default.createElement("a",{href:"javascript:void(0)",onClick:this.dismissCard},(0,y.translate)("I already use this app.")))))}}]),t}(M.default.Component);z.displayName="AppsCard",z.propTypes={className:m.default.string},t.default=(0,b.connect)(function(e){return{isAppsCardDismissed:(0,C.appsCardDismissed)(e),arePromotionsActive:(0,O.arePromotionsActive)(e),userCanManageOptions:(0,O.userCanManageOptions)(e)}},function(e){return{dismissAppCard:function(){return e((0,C.updateSettings)({dismiss_dash_app_card:!0}))}}})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(28),v=n(23),y=n(861),A=r(y),E=n(868),w=r(E),k=n(917),T=r(k),L=n(869),S=r(L),C=n(21),O=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.renderMainContent=function(e){var t=void 0,n=M.default.createElement(A.default,r.props);switch(e){case"/dashboard":default:t=M.default.createElement(T.default,r.props);break;case"/settings":case"/writing":case"/sharing":r.props.isSubscriber||(n=M.default.createElement(w.default,r.props),t=M.default.createElement(S.default,{route:r.props.route,siteAdminUrl:r.props.siteAdminUrl,siteRawUrl:r.props.siteRawUrl,searchTerm:r.props.searchTerm}))}return window.wpNavMenuClassChange(),M.default.createElement("div",null,n,t)},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"shouldComponentUpdate",value:function(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.route.path!==this.props.route.path}},{key:"render",value:function(){return this.renderMainContent(this.props.route.path)}}]),t}(M.default.Component);O.propTypes={userCanViewStats:m.default.bool.isRequired,isSubscriber:m.default.bool.isRequired,siteConnectionStatus:m.default.any.isRequired},t.default=(0,b.connect)(function(e){return{userCanViewStats:(0,g.userCanViewStats)(e),siteConnectionStatus:(0,C.getSiteConnectionStatus)(e),isSubscriber:(0,g.userIsSubscriber)(e),isModuleActivated:function(t){return(0,v.isModuleActivated)(e,t)}}})(O),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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(163),v=r(g),y=n(856),A=r(y),E=n(8),w=n(1213),k=r(w),T=n(1221),L=r(T),S=n(21),C=n(28),O=n(1223),z=r(O),N=n(473),D=r(N),P=n(80),x=t.DevVersionNotice=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&M.default.createElement(v.default,{showDismiss:!1,text:(0,E.translate)("You are currently running a development version of Jetpack.")},M.default.createElement(A.default,{href:P.JETPACK_CONTACT_BETA_SUPPORT},(0,E.translate)("Submit Beta feedback")))}}]),t}(M.default.Component);x.displayName="DevVersionNotice",x.propTypes={isDevVersion:m.default.bool.isRequired,userIsSubscriber:m.default.bool.isRequired};var j=t.StagingSiteNotice=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){var e={text:(0,E.translate)("You are running Jetpack on a staging server."),status:"is-basic",showDismiss:!1};return M.default.createElement(v.default,e,M.default.createElement(A.default,{href:"https://jetpack.com/support/staging-sites/"},(0,E.translate)("More Info")))}return!1}}]),t}(M.default.Component);j.displayName="StagingSiteNotice",j.propTypes={isStaging:m.default.bool.isRequired,isInIdentityCrisis:m.default.bool.isRequired};var R=t.DevModeNotice=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){if("dev"===this.props.siteConnectionStatus){var e=this.props.siteDevMode,t=[];e.filter&&t.push((0,E.translate)("{{li}}The jetpack_development_mode filter is active{{/li}}",{components:{li:M.default.createElement("li",null)}})),e.constant&&t.push((0,E.translate)("{{li}}The JETPACK_DEV_DEBUG constant is defined{{/li}}",{components:{li:M.default.createElement("li",null)}})),e.url&&t.push((0,E.translate)("{{li}}Your site URL lacks a dot (e.g. http://localhost){{/li}}",{components:{li:M.default.createElement("li",null)}}));var n=(0,E.translate)("Currently in {{a}}Development Mode{{/a}} (some features are disabled) because: {{reasons/}}",{components:{a:M.default.createElement("a",{href:"https://jetpack.com/support/development-mode/",target:"_blank",rel:"noopener noreferrer"}),reasons:M.default.createElement("ul",null,t)}});return M.default.createElement(v.default,{showDismiss:!1,status:"is-info",text:n},M.default.createElement(A.default,{href:"https://jetpack.com/development-mode/"},(0,E.translate)("Learn More")))}return!1}}]),t}(M.default.Component);R.displayName="DevModeNotice",R.propTypes={siteConnectionStatus:m.default.oneOfType([m.default.string,m.default.bool]).isRequired,siteDevMode:m.default.oneOfType([m.default.bool,m.default.object]).isRequired};var Y=t.UserUnlinked=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&M.default.createElement("div",{className:"jp-unlinked-notice"},M.default.createElement(D.default,{title:(0,E.translate)("Connect your account to get the most out of Jetpack"),callToAction:(0,E.translate)("Connect to WordPress.com"),href:this.props.connectUrl+"&from=unlinked-user-connect",icon:"my-sites"}))}}]),t}(M.default.Component);Y.displayName="UserUnlinked",Y.propTypes={connectUrl:m.default.string.isRequired,siteConnected:m.default.bool.isRequired};var I=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return M.default.createElement("div",{"aria-live":"polite"},M.default.createElement(k.default,null),M.default.createElement(L.default,null),M.default.createElement(x,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),M.default.createElement(R,{siteConnectionStatus:this.props.siteConnectionStatus,siteDevMode:this.props.siteDevMode}),M.default.createElement(j,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),M.default.createElement(z.default,null),M.default.createElement(Y,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&M.default.createElement(v.default,{showDismiss:!1,status:"is-warning",text:(0,E.translate)("This site is not connected to WordPress.com. Please ask the site administrator to connect.")}))}}]),t}(M.default.Component);I.displayName="JetpackNotices",t.default=(0,b.connect)(function(e){return{connectUrl:(0,S.getConnectUrl)(e),siteConnectionStatus:(0,S.getSiteConnectionStatus)(e),userCanConnectSite:(0,C.userCanConnectSite)(e),userIsSubscriber:(0,C.userIsSubscriber)(e),isLinked:(0,S.isCurrentUserLinked)(e),isDevVersion:(0,C.isDevVersion)(e),siteDevMode:(0,S.getSiteDevMode)(e),isStaging:(0,S.isStaging)(e),isInIdentityCrisis:(0,S.isInIdentityCrisis)(e)}})(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(1214),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(102),y=r(v),A=n(163),E=r(A),w=n(856),k=r(w),T=n(1217),L=r(T),S=n(10),C=n(18),O=n(114),z=(0,y.default)("calypso:notices");n(1220);var N=function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var i=arguments.length,o=Array(i),c=0;c<i;c++)o[c]=arguments[c];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(o))),r.removeNotice=function(e){e&&L.default.removeNotice(e)},r.handleLocalNoticeDismissClick=function(e){return function(){return r.removeNotice(e)}},r.handleReduxNoticeDismissClick=function(e){return function(){return r.props.removeNotice(e)}},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"componentWillMount",value:function(){z("Mounting Global Notices React component.")}},{key:"render",value:function(){var e=this.props.notices[this.props.id]||[],t=e.map(function(e,t){return g.default.createElement(E.default,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss},e.button&&g.default.createElement(k.default,{href:e.href,onClick:e.onClick},e.button))},this);return t=t.concat(this.props.storeNotices.map(function(e,t){return g.default.createElement(E.default,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})},this)),t.length?g.default.createElement("div",{id:this.props.id,className:"global-notices"},t):null}}]),t}(g.default.Component);N.displayName="NoticesList",N.propTypes={id:M.default.string,notices:M.default.oneOfType([M.default.object,M.default.array])},N.defaultProps={id:"overlay-notices",notices:(0,i.default)([])},t.default=(0,S.connect)(function(e){return{storeNotices:e.globalNotices}},function(e){return(0,C.bindActionCreators)({removeNotice:O.removeNotice},e)})(N),e.exports=t.default},function(e,t,n){e.exports={default:n(1215),__esModule:!0}},function(e,t,n){n(1216),e.exports=n(20).Object.freeze},function(e,t,n){var r=n(50),a=n(222).onFreeze;n(225)("freeze",function(e){return function(t){return e&&r(t)?e(a(t)):t}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(102)("calypso:notices"),a=n(1218);r("initializing notices");var i={containerNames:{}};a(i);var o=[];n(1219);var s={new:function(e,t,n){var a=t.overlay?"overlay-notices":"notices";i.containerNames[a]=a,r("creating notice",e,t,n),i[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?o.push(c):i[a].push(c),i.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:i,removeNotice:function(e){if(e.container){var t=i[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),i.emit("change"))}},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");var n=void 0,a=void 0,s=!1,c=function(e){return e.persistent};for(a in i.containerNames)n=i[a].length,i[a]=i[a].filter(c),n!==i[a].length&&(s=!0);o.length&&(o.forEach(function(e){i[e.container]=[],i[e.container].push(e)}),o=[]),s&&i.emit("change"),t()},clearNotices:function(e){i[e]=[],i.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(147).EventEmitter,a=n(24);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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(10),M=n(8),b=n(163),g=r(b),v=n(28),y=n(517),A=n(856),E=r(A),w=n(1222),k=r(w),T=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.state={showNotice:!0},r.dismissJetpackStateNotice=function(){r.setState({showNotice:!1})},r.getErrorFromKey=function(e){var t=r.props.jetpackStateNoticesErrorDescription||!1,n="";switch(e){case"cheatin":n=(0,M.translate)("Cheatin' uh?");break;case"access_denied":n=(0,M.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:m.default.createElement("a",{href:"https://jetpack.com/cancelled-connection/",target:"_blank",rel:"noopener noreferrer"}),p:m.default.createElement("p",null)}});break;case"wrong_state":n=(0,M.translate)("You need to stay logged in to your WordPress blog while you authorize Jetpack.");break;case"invalid_client":n=(0,M.translate)("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.");break;case"invalid_grant":n=(0,M.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,M.translate)("Your website needs to be publicly accessible to use Jetpack: %(error_key)s",{args:{error_key:e}});break;case"not_public":n=(0,M.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:m.default.createElement("strong",null)}});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=(0,M.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,M.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,M.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:m.default.createElement("strong",null)},args:{error_key:e}});break;default:n=e}return t?m.default.createElement("div",null,n,m.default.createElement("br",null),t):m.default.createElement("div",null,n)},r.getMessageFromKey=function(e){var t="",n="is-info",a=void 0;switch(e){case"modules_activated":t=(0,M.translate)("Welcome to {{s}}Jetpack %(jetpack_version)s{{/s}}!",{args:{jetpack_version:r.props.currentVersion},components:{s:m.default.createElement("strong",null)}});break;case"already_authorized":t=(0,M.translate)("Your Jetpack is already connected."),n="is-success";break;case"authorized":t=(0,M.translate)("You're fueled up and ready to go, Jetpack is now active."),n="is-success";break;case"linked":t=(0,M.translate)("You're fueled up and ready to go."),n="is-success";break;case"protect_misconfigured_ip":t=(0,M.translate)("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site."),n="is-info",a=m.default.createElement(E.default,{href:"https://jetpack.com/support/security/troubleshooting-protect/"},(0,M.translate)("Learn More"));break;default:t=e}return[t,n,a]},r.renderContent=function(){var e="is-info",t="",n=void 0,a=r.props.jetpackStateNoticesErrorCode,i=r.props.jetpackStateNoticesMessageCode;if(a||i){a&&(t=r.getErrorFromKey(a),"access_denied"!==a&&(e="is-error"));var o=r.props.currentVersion,s=/(5\.8).*/;if("modules_activated"===i&&o.match(s))return m.default.createElement(k.default,{dismiss:r.dismissJetpackStateNotice,adminUrl:r.props.adminUrl});if(i){var c=r.getMessageFromKey(i);t=c[0],e=c[1],n=c[2]}return m.default.createElement(g.default,{status:e,onDismissClick:r.dismissJetpackStateNotice,text:t},n)}},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,this.state.showNotice?this.renderContent():null)}}]),t}(m.default.Component);T.displayName="JetpackStateNotices",t.default=(0,_.connect)(function(e){return{currentVersion:(0,v.getCurrentVersion)(e),jetpackStateNoticesErrorCode:(0,y.getJetpackStateNoticesErrorCode)(e),jetpackStateNoticesMessageCode:(0,y.getJetpackStateNoticesMessageCode)(e),jetpackStateNoticesErrorDescription:(0,y.getJetpackStateNoticesErrorDescription)(e),adminUrl:(0,v.getSiteAdminUrl)(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})
51
+ ;var a=n(51),i=r(a),o=n(2),s=r(o),c=n(3),u=r(c),l=n(6),d=r(l),f=n(4),p=r(f),h=n(5),m=r(h),_=n(7),M=r(_),b=n(1),g=r(b),v=n(8),y=n(41),A=r(y),E=n(10),w=n(475),k=r(w),T=n(851),L=r(T),S=n(80),C=n(30),O=n(23),z=n(52),N=n(36),D=r(N),P=(0,C.ModuleSettingsForm)(function(e){function t(){var e,n,r,a;(0,u.default)(this,t);for(var o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];return n=r=(0,p.default)(this,(e=t.__proto__||(0,s.default)(t)).call.apply(e,[this].concat(c))),r.toggleModule=function(e,t){r.props.updateOptions((0,i.default)({},e,!t))},a=n,(0,p.default)(r,a)}return(0,m.default)(t,e),(0,d.default)(t,[{key:"renderInnerContent",value:function(){var e=this.props.module("lazy-images");return g.default.createElement("div",null,g.default.createElement("p",null,(0,v.translate)("This release of Jetpack brings major new features and big improvements to your WordPress site.")),g.default.createElement("h2",null,(0,v.translate)("Speed up your site and its content")),g.default.createElement("p",null,(0,v.translate)("Sites with large numbers of images can now activate the Lazy Loading Images feature, which significantly speeds up loading times for visitors. Instead of waiting for the entire page to load, Jetpack will instead show pages instantly, and only download additional images when they are about to come into view.")),g.default.createElement("p",null,(0,v.translate)("If this sounds like a great improvement (and it is) you can enable it now by clicking the toggle below.")),g.default.createElement("div",{className:"jp-upgrade-notice__enable-module"},g.default.createElement(D.default,{hasChild:!0,disableInDevMode:!0,module:e},g.default.createElement(z.ModuleToggle,{slug:"lazy-images",disabled:!1,activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},g.default.createElement("span",{className:"jp-form-toggle-explanation"},(0,L.default)(e.description))))),g.default.createElement("p",null,(0,v.translate)("We have also upgraded all our Premium plan customers to unlimited high-speed video storage (up from 13GB), and significantly reduced the CSS and JavaScript assets that Jetpack downloads when using features like infinite scroll and embedding rich content.")),g.default.createElement("h2",null,(0,v.translate)("Faster, more relevant search results")),g.default.createElement("a",{href:"https://wp.me/p1moTy-731",rel:"noopener noreferrer",target:"_blank"},g.default.createElement("img",{src:"https://jetpackme.files.wordpress.com/2018/02/jetpack-elasticsearch-powered-search.png",width:"700",alt:(0,v.translate)("Elasticsearch")})),g.default.createElement("p",null,(0,v.translate)("Our faster site search is now available to all Professional plan customers. This replaces the default WordPress search with an Elasticsearch-powered infrastructure that returns faster, more relevant results to users.")),g.default.createElement("div",{className:"jp-dialogue__cta-container"},g.default.createElement(A.default,{primary:!0,href:"https://jetpack.com/?p=27095"},(0,v.translate)("Read the full announcement!")),g.default.createElement("p",{className:"jp-dialogue__note"},g.default.createElement("a",{href:"https://jetpack.com/pricing"},(0,v.translate)("Compare paid plans")))))}},{key:"render",value:function(){return g.default.createElement(k.default,{svg:g.default.createElement("img",{src:S.imagePath+"jetpack-search.svg",width:"250",alt:(0,v.translate)("Jetpack Search")}),title:(0,v.translate)("Major new features from Jetpack"),content:this.renderInnerContent(),dismiss:this.props.dismiss})}}]),t}(b.Component));k.default.propTypes={dismiss:M.default.func},t.default=(0,E.connect)(function(e){return{module:function(t){return(0,O.getModule)(e,t)}}})(P),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=n(18),M=n(10),b=n(163),g=r(b),v=n(8),y=n(517),A=function(e){function t(){var e,n,r,a;(0,s.default)(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=(0,d.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(c))),r.dismissJetpackActionNotice=function(){r.props.dismissJetpackActionNotice(r.props.jetpackNotices)},r.renderNotices=function(){var e=r.props.jetpackNotices;switch(e){case"disconnected":return!r.props.isDismissed(e)&&m.default.createElement("div",null,m.default.createElement(g.default,{onDismissClick:r.dismissJetpackActionNotice},(0,v.translate)("You have successfully disconnected Jetpack"),m.default.createElement("br",null),(0,v.translate)("Would you tell us why? Just {{a}}answering two simple questions{{/a}} would help us improve Jetpack.",{components:{a:m.default.createElement("a",{href:"https://jetpack.com/survey-disconnected/",target:"_blank",rel:"noopener noreferrer"})}})));default:return!1}},a=n,(0,d.default)(r,a)}return(0,p.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){return m.default.createElement("div",null,this.renderNotices())}}]),t}(m.default.Component);A.displayName="DismissableNotices",t.default=(0,M.connect)(function(e){return{jetpackNotices:(0,y.getJetpackNotices)(e),isDismissed:function(t){return(0,y.isNoticeDismissed)(e,t)}}},function(e){return(0,_.bindActionCreators)({dismissJetpackActionNotice:y.dismissJetpackActionNotice},e)})(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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(1),m=r(h),_=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=jQuery(this.refs.adminNotices),t=jQuery(".vp-deactivated");t.length>0&&t.each(function(){var t=jQuery(this).addClass("dops-notice is-success is-dismissable").removeClass("wrap vp-notice notice notice-success");t.wrapInner('<span class="dops-notice__content">'),t.find(".dops-notice__content").before('<span class="dops-notice__icon-wrapper"><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></span>').css("display","block"),t.find(".dops-notice__content").after('<span role="button" tabindex="0" class="dops-notice__dismiss"><svg class="gridicon gridicons-cross" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></g></svg><span class="screen-reader-text"></span></span>'),t.find("h2").replaceWith(function(){return jQuery("<strong />",{html:this.innerHTML})}),t.find("p").replaceWith(function(){return jQuery("<div/>",{html:this.innerHTML})}),t.prependTo(e).css("display","flex")});var n=jQuery(".vp-notice");n.length>0&&n.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?'<span class="dops-notice__icon-wrapper"><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></span>':'<span class="dops-notice__icon-wrapper"><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></span>';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 r=jQuery(".woocommerce-message");r.length>0&&r.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)}),e.length>0&&jQuery(".dops-notice__dismiss").click(function(){jQuery(this).parent().closest("div").hide()})}},{key:"render",value:function(){return m.default.createElement("div",{id:"jp-admin-notices",ref:"adminNotices","aria-live":"polite"})}}]),t}(m.default.Component);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}),t.Tracker=void 0;var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=n(10),b=n(74),g=t.Tracker=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&t("jetpack_wpa_search_term",{term:e.searchTerm})}},{key:"render",value:function(){return null}}]),t}(_.Component);g.propTypes={analytics:m.default.object,searchTerm:m.default.string},t.default=(0,M.connect)(function(e){return{searchTerm:(0,b.getSearchTerm)(e)}})(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(10),g=n(47),v=n(15),y=r(v),A=n(61),E=n(103),w=n(1227),k=r(w),T=n(1228),L=r(T),S=n(1229),C=r(S),O=function(e){function t(){(0,s.default)(this,t);var e=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this));return e.state={planWelcomeDismissed:!1},e.boundDismiss=e.dismissWelcome.bind(e),e}return(0,p.default)(t,e),(0,u.default)(t,[{key:"dismissWelcome",value:function(){var e=(0,g.getPlanClass)(this.props.sitePlan.product_slug);y.default.tracks.recordEvent("jetpack_warm_welcome_plan_dismiss",{planClass:e}),this.setState({planWelcomeDismissed:!0}),this.props.dismiss()}},{key:"render",value:function(){var e=(0,g.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(k.default,t);case"is-premium-plan":return M.default.createElement(L.default,t);case"is-business-plan":return M.default.createElement(C.default,t);default:return!1}}}]),t}(_.Component);O.propTypes={dismiss:m.default.func,newPlanActivated:m.default.bool,userCanManageModules:m.default.bool},O.defaultProps={newPlanActivated:!1,userCanManageModules:!1},t.default=(0,b.connect)(function(e){return{sitePlan:(0,A.getSitePlan)(e)}},function(e){return{dismiss:function(){return e((0,E.updateSettings)({show_welcome_for_new_plan:!1}))}}})(O),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(15),v=r(g),y=n(475),A=r(y),E=n(41),w=r(E),k=n(80),T=n(858),L=r(T),S=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){v.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,b.translate)("Thanks for choosing Jetpack Personal. Jetpack is now backing up your site and scanning for security threats.")),M.default.createElement("img",{src:k.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Themes")}),M.default.createElement("p",null,(0,b.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(L.default,null),M.default.createElement(w.default,{className:"jp-welcome-new-plan__button",href:"#/traffic",onClick:this.props.dismiss,primary:!0},(0,b.translate)("Got it!")))}},{key:"render",value:function(){return M.default.createElement(A.default,{svg:M.default.createElement("img",{src:k.imagePath+"connect-jetpack.svg",width:"160",alt:(0,b.translate)("Welcome personal"),style:{paddingLeft:"60px"}}),title:(0,b.translate)("Your Jetpack Personal plan is powering up!"),content:this.renderInnerContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-personal"})}}]),t}(_.Component);S.propTypes={dismiss:m.default.func},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(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(475),w=r(E),k=n(80),T=n(920),L=r(T),S=n(858),C=r(S),O=n(518),z=r(O),N=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return n.clickCtaDismissVideo=n.clickCtaDismiss.bind(n,"video"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){A.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){A.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,b.translate)("Thanks for choosing Jetpack Premium. Jetpack is now backing up your site, scanning for security threats, and enabling monetization features.")),M.default.createElement("img",{src:k.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Themes")}),M.default.createElement("p",null,(0,b.translate)("With Jetpack Premium, you can create the perfect site, no matter its purpose. Customize your site’s appearance with one of more than 100 free themes, or enhance your content with unlimited HD video -- all hosted free of ads or watermarks.")),M.default.createElement("img",{src:k.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Sharing")}),M.default.createElement("p",null,(0,b.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(z.default,{module_slug:"publicize"}),M.default.createElement(z.default,{module_slug:"wordads"}),M.default.createElement(L.default,null),M.default.createElement(C.default,null),M.default.createElement("p",null,(0,b.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(v.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,b.translate)("Monetize your site with ads")))}},{key:"render",value:function(){return M.default.createElement(w.default,{svg:M.default.createElement("img",{src:k.imagePath+"generating-cash-2.svg",width:"250",alt:(0,b.translate)("Welcome Premium")}),title:(0,b.translate)("Your Jetpack Premium plan is powering up!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-premium"})}}]),t}(_.Component);N.propTypes={dismiss:m.default.func},t.default=N,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=r(_),b=n(8),g=n(25),v=r(g),y=n(15),A=r(y),E=n(475),w=r(E),k=n(80),T=n(858),L=r(T),S=n(920),C=r(S),O=n(518),z=r(O),N=function(e){function t(e){(0,s.default)(this,t);var n=(0,d.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return n.clickCtaDismissThemes=n.clickCtaDismiss.bind(n,"themes"),n.clickCtaDismissAds=n.clickCtaDismiss.bind(n,"ads"),n.clickCtaDismissSearch=n.clickCtaDismiss.bind(n,"search"),n.clickCtaDismissSeo=n.clickCtaDismiss.bind(n,"seo"),n}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){A.default.tracks.recordEvent("jetpack_warm_welcome_plan_view",{planClass:this.props.planClass})}},{key:"clickCtaDismiss",value:function(e){A.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,b.translate)("Thanks for choosing Jetpack Professional. Jetpack is now backing up your content in real-time, indexing your content for search, scanning for security threats, and granting access to premium themes.")),M.default.createElement("img",{src:k.imagePath+"customize-theme.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Themes")}),M.default.createElement("p",null,(0,b.translate)("With Jetpack Professional, you can create the perfect site with one of over 300 professionally-designed WordPress themes, including more than 200 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("p",null,(0,b.translate)("Give your visitor's a great search experience by letting them filter and sort fast, relevant search results.")),M.default.createElement(z.default,{module_slug:"search"}),M.default.createElement("img",{src:k.imagePath+"wordads.svg",className:"jp-welcome__svg",alt:(0,b.translate)("Sharing")}),M.default.createElement("p",null,(0,b.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(z.default,{module_slug:"publicize"}),M.default.createElement(z.default,{module_slug:"wordads"}),M.default.createElement(z.default,{module_slug:"seo-tools"}),M.default.createElement(z.default,{module_slug:"google-analytics"}),M.default.createElement(L.default,null),M.default.createElement(C.default,null),M.default.createElement("p",null,(0,b.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(v.default,{href:"https://wordpress.com/themes/premium/"+this.props.siteRawUrl,compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissThemes},(0,b.translate)("Install premium themes")),M.default.createElement(v.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissAds},(0,b.translate)("Monetize your site with ads")),M.default.createElement(v.default,{href:"customize.php?autofocus[panel]=widgets",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissSearch},(0,b.translate)("Add the Search (Jetpack) widget to your sidebar")),M.default.createElement(v.default,{href:"#/traffic",compact:!0,className:"jp-dialogue-card__below",onClick:this.clickCtaDismissSeo},(0,b.translate)("Review SEO features")))}},{key:"render",value:function(){return M.default.createElement(w.default,{svg:M.default.createElement("img",{src:k.imagePath+"people-around-page.svg",width:"250",alt:(0,b.translate)("Welcome Professional")}),title:(0,b.translate)("Your Jetpack Professional plan is taking care of business!"),content:this.renderInnerContent(),belowContent:this.renderBelowContent(),dismiss:this.props.dismiss,className:"jp-welcome-new-plan is-professional"})}}]),t}(_.Component);N.propTypes={dismiss:m.default.func},t.default=N,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(2),i=r(a),o=n(3),s=r(o),c=n(6),u=r(c),l=n(4),d=r(l),f=n(5),p=r(f),h=n(7),m=r(h),_=n(1),M=n(10),b=n(477),g=n(61),v=n(21),y=function(e){function t(){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,i.default)(t)).apply(this,arguments))}return(0,p.default)(t,e),(0,u.default)(t,[{key:"componentWillMount",value:function(){this.props.isFetchingRewindStatus||this.props.isDevMode||this.props.fetchRewind()}},{key:"render",value:function(){return null}}]),t}(_.Component);y.propTypes={isFetchingRewindStatus:m.default.bool,isDevMode:m.default.bool,sitePlan:m.default.object},y.defaultProps={isFetchingRewindStatus:!1,isDevMode:!1,sitePlan:{}},t.default=(0,M.connect)(function(e){return{isFetchingRewindStatus:(0,b.isFetchingRewindStatus)(e),isDevMode:(0,v.isDevMode)(e),sitePlan:(0,g.getSitePlan)(e)}},function(e){return{fetchRewind:function(){return e((0,b.fetchRewindStatus)())}}})(y),e.exports=t.default}]);
_inc/build/lazy-images/js/lazy-images.min.js CHANGED
@@ -1,6 +1,6 @@
1
/* Do not modify this file directly. It is compiled from other files. */
2
/* globals IntersectionObserver, jQuery */
3
- var jetpackLazyImagesModule=function(t){function e(){if(i=document.querySelectorAll("img[data-lazy-src]"),u=i.length,s&&s.disconnect(),"IntersectionObserver"in window)for(s=new IntersectionObserver(r,h),a=0;a<i.length;a++)c=i[a],c.getAttribute("data-lazy-loaded")||s.observe(c);else n(i)}function n(t){var e;for(e=0;e<t.length;e++){o(t[e])}}function r(t){var e;for(0===u&&s.disconnect(),e=0;e<t.length;e++){var n=t[e];n.intersectionRatio>0&&(u--,s.unobserve(n.target),o(n.target))}}function o(e){var n,r,o,i,s=t(e);s.length&&(n=s.attr("data-lazy-src"))&&(r=s.attr("data-lazy-srcset"),o=s.attr("data-lazy-sizes"),i=s.clone(),i.removeAttr("data-lazy-src"),i.removeAttr("data-lazy-srcset"),i.removeAttr("data-lazy-sizes"),i.addClass("jetpack-lazy-image--handled"),i.attr("data-lazy-src",1),i.attr("src",n),r&&i.attr("srcset",r),o&&i.attr("sizes",o),s.replaceWith(i),i.trigger("jetpack-lazy-loaded-image"))}var i,s,c,a,h={rootMargin:"200px 0px",threshold:.01},u=0;t(document).ready(function(){e(),t("body").bind("post-load",e)})};/**
4
* The following is an Intersection observer polyfill which is licensed under
5
* the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE and can be found at:
6
* https://github.com/w3c/IntersectionObserver/tree/master/polyfill
1
/* Do not modify this file directly. It is compiled from other files. */
2
/* globals IntersectionObserver, jQuery */
3
+ var jetpackLazyImagesModule=function(t){function e(){if(i=document.querySelectorAll("img[data-lazy-src]"),u=i.length,s&&s.disconnect(),"IntersectionObserver"in window)for(s=new IntersectionObserver(r,h),a=0;a<i.length;a++)c=i[a],c.getAttribute("data-lazy-loaded")||s.observe(c);else n(i)}function n(t){var e;for(e=0;e<t.length;e++){o(t[e])}}function r(t){var e;for(0===u&&s.disconnect(),e=0;e<t.length;e++){var n=t[e];n.intersectionRatio>0&&(u--,s.unobserve(n.target),o(n.target))}}function o(e){var n,r,o,i,s=t(e);s.length&&(n=s.attr("data-lazy-src"))&&(r=s.attr("data-lazy-srcset"),o=s.attr("data-lazy-sizes"),i=s.clone(),i.removeAttr("data-lazy-src"),i.removeAttr("data-lazy-srcset"),i.removeAttr("data-lazy-sizes"),i.addClass("jetpack-lazy-image--handled"),i.attr("data-lazy-loaded",1),i.attr("src",n),r&&i.attr("srcset",r),o&&i.attr("sizes",o),s.replaceWith(i),i.trigger("jetpack-lazy-loaded-image"))}var i,s,c,a,h={rootMargin:"200px 0px",threshold:.01},u=0;t(document).ready(function(){e(),t("body").bind("post-load",e)})};/**
4
* The following is an Intersection observer polyfill which is licensed under
5
* the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE and can be found at:
6
* https://github.com/w3c/IntersectionObserver/tree/master/polyfill
_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js ADDED
@@ -0,0 +1,2 @@
1
+ /* Do not modify this file directly. It is compiled from other files. */
2
+ !function(i){var e=i(document);e.on("ready",function(){var o=function(e,o){var c=i(o||this).closest(".eu-cookie-law-widget-policy-url");c.find('input[type="radio"][value="default"]').is(":checked")?(c.find(".notice.default-policy").css("display","block"),c.find(".notice.custom-policy").hide()):(c.find(".notice.default-policy").hide(),c.find(".notice.custom-policy").css("display","block"))};e.on("click",'.eu-cookie-law-widget-policy-url input[type="radio"]',o),e.on("widget-updated widget-added",function(e,c){var d=i(c).attr("id");-1!==d.indexOf("eu_cookie_law_widget")&&o(0,i("#"+d+" .eu-cookie-law-widget-policy-url"))}),i(".eu-cookie-law-widget-policy-url").each(o)})}(jQuery);
_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js CHANGED
@@ -1,2 +1,2 @@
1
/* Do not modify this file directly. It is compiled from other files. */
2
- !function(e){function o(o){if(!s){s=!0,o&&o.preventDefault&&o.preventDefault(),a.hasClass("hide-on-scroll")&&e(window).off("scroll",t);var i=new Date;i.setTime(i.getTime()+2592e6),document.cookie="eucookielaw="+i.getTime()+";path=/;expires="+i.toGMTString(),a.fadeOut(400,function(){a.remove()})}}var i,t,n=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*#x2F;,"$1"),a=e("#eu-cookie-law");""!==n&&a.remove(),e(".widget_eu_cookie_law_widget").appendTo("body").fadeIn(),a.find("form").on("submit",o),a.hasClass("hide-on-scroll")?(i=e(window).scrollTop(),t=function(){Math.abs(e(window).scrollTop()-i)>50&&o()},e(window).on("scroll",t)):a.hasClass("hide-on-time")&&setTimeout(o,1e3*a.data("hide-timeout"));var s=!1}(jQuery);
1
/* Do not modify this file directly. It is compiled from other files. */
2
+ !function(e){function o(o){if(!c){c=!0,o&&o.preventDefault&&o.preventDefault(),t.hasClass("hide-on-scroll")&&e(window).off("scroll",a);var s=new Date;s.setTime(s.getTime()+24*t.data("consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+s.getTime()+";path=/;expires="+s.toGMTString(),t.hasClass("ads-active")&&t.hasClass("hide-on-button")&&(document.cookie="personalized-ads-consent="+s.getTime()+";path=/;expires="+s.toGMTString()),t.fadeOut(400,function(){t.remove()})}}var s,a,i=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*#x2F;,"$1"),t=e("#eu-cookie-law");if(t.hasClass("ads-active")){var n=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*\=\s*([^;]*).*$)|^.*#x2F;,"$1");""!==i&&""!==n&&t.remove()}else""!==i&&t.remove();e(".widget_eu_cookie_law_widget").appendTo("body").fadeIn(),t.find("form").on("submit",o),t.hasClass("hide-on-scroll")?(s=e(window).scrollTop(),a=function(){Math.abs(e(window).scrollTop()-s)>50&&o()},e(window).on("scroll",a)):t.hasClass("hide-on-time")&&setTimeout(o,1e3*t.data("hide-timeout"));var c=!1}(jQuery);
_inc/jetpack-strings.php CHANGED
@@ -45,6 +45,83 @@ __( "Updated privacy settings.", "jetpack" ), // _inc/client/state/tracking/acti
45
__( "Error updating privacy settings. %(error)s", "jetpack" ), // _inc/client/state/tracking/actions.js:48
46
__( "There are unsaved settings in this tab that will be lost if you leave it. Proceed?", "jetpack" ), // _inc/client/main.jsx:68
47
__( "There are unsaved settings in this tab that will be lost if you leave it. Proceed?", "jetpack" ), // _inc/client/main.jsx:83
48
__( "Comments", "jetpack" ), // _inc/client/discussion/comments.jsx:67
49
__( "Replaces the standard WordPress comment form with a new comment system that includes social media login options.", "jetpack" ), // _inc/client/discussion/comments.jsx:78
50
__( "Comments headline", "jetpack" ), // _inc/client/discussion/comments.jsx:99
@@ -62,6 +139,18 @@ __( "Connect your user account to WordPress.com to view your email followers", "
62
__( "Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:81
63
__( "Show a \"follow blog\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:106
64
__( "Show a \"follow comments\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:116
65
_n( "Please correct the issue below and try again.", "Please correct the issues listed below and try again.", 1, "jetpack" ), // _inc/client/notices/validation-error-list.jsx:20
66
__( "Daily backup of all your site data with unlimited space and one-click restores", "jetpack" ), // _inc/client/plans/plan-body.jsx:103
67
__( "Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:106
@@ -143,84 +232,17 @@ __( "Welcome to Jetpack Professional", "jetpack" ), // _inc/client/plans/plan-he
143
__( "Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, enhanced search, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:112
144
__( "Your site is on Development Mode", "jetpack" ), // _inc/client/plans/plan-header.jsx:125
145
__( "Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:126
146
- __( "{{a}}View your site's activity{{/a}} in a single feed.", "jetpack" ), // _inc/client/at-a-glance/activity.jsx:52
147
- __( "Activity", "jetpack" ), // _inc/client/at-a-glance/activity.jsx:61
148
- __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/activity.jsx:71
149
- __( "Spam Protection", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:42
150
- __( "Akismet checks your comments and contact form submissions against our global database of spam.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:45
151
- __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:59
152
- __( "For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:79
153
- __( "For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:102
154
- __( "Invalid key", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:121
155
- __( "Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:126
156
- _x( "Spam comments blocked.", "Example: \"412 Spam comments blocked\"", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:149
157
- __( "Moderate comments", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:162
158
- __( "Backups", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:30
159
- __( "Jetpack Backups allow you to easily restore or download a backup from a specific moment.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:33
160
- __( "{{a}}View backup details{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:86
161
- __( "To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:102
162
- __( "To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:113
163
- __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:125
164
- __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:137
165
- __( "Your site is being backed up in real-time.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:152
166
- __( "Your site is in Development Mode, so it can not be connected to WordPress.com.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:52
167
- __( "Your site is connected to WordPress.com.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:68
168
- __( "You are the Jetpack owner.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:72
169
- __( "The site is in Development Mode, so you can not connect to WordPress.com.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:111
170
- /* translators: %(username) is the WordPress user login name. */
171
- __( "Connected as {{span}}%(username)s{{/span}}", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:125
172
- __( "Link your account to WordPress.com to get the most out of Jetpack.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:152
173
- _x( "Site connection", "Dashboard widget header", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:175
174
- _x( "Account connection", "Dashboard widget header", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:185
175
- __( "Security", "jetpack" ), // _inc/client/at-a-glance/index.jsx:62
176
- __( "Manage security on WordPress.com", "jetpack" ), // _inc/client/at-a-glance/index.jsx:66
177
- __( "Connections", "jetpack" ), // _inc/client/at-a-glance/index.jsx:76
178
- __( "Performance", "jetpack" ), // _inc/client/at-a-glance/index.jsx:124
179
- __( "Downtime monitoring", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:24
180
- __( "Jetpack’s downtime monitor will keep tabs on your site, and alert you the moment that downtime is detected.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:27
181
- __( "Jetpack is monitoring your site. If we think your site is down, you will receive an email.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:51
182
- __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:65
183
- __( "{{a}}Activate Monitor{{/a}} to receive email notifications if your site goes down.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:66
184
- __( "Image Performance", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:23
185
- __( "Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:27
186
- __( "Jetpack is improving and optimizing your image speed.", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:38
187
- __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:51
188
- __( "{{a}}Activate{{/a}} to enhance the performance and speed of your images.", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:52
189
- __( "Plugin Updates", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:35
190
- __( "Jetpack’s Plugin Updates allows you to choose which plugins update automatically.", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:39
191
- __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:51
192
- _n( "%(number)s", "%(number)s", 1, "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:72
193
- _n( "Plugin needs updating.", "Plugins need updating.", 1, "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:84
194
- __( "{{a}}Turn on plugin autoupdates{{/a}}", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:85
195
- __( "All plugins are up-to-date. Awesome work!", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:89
196
- __( "Manage your plugins", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:100
197
- __( "Protects your site from traditional and distributed brute force login attacks.", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:27
198
- __( "Jetpack is actively blocking malicious login attempts. Data will display here soon!", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:46
199
- __( "Total malicious attacks blocked on your site.", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:59
200
- __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:72
201
- __( "{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:73
202
- __( "Security Scanning", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:34
203
- __( "Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:37
204
- __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:89
205
- _n( "Uh oh, %(number)s threat found.", "Uh oh, %(number)s threats found.", 1, "jetpack" ), // _inc/client/at-a-glance/scan.jsx:100
206
- __( "{{a}}View details at VaultPress.com{{/a}}", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:106
207
- __( "{{a}}Contact Support{{/a}}", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:108
208
- __( "No threats found, you're good to go!", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:118
209
- __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:127
210
- __( "For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:140
211
- __( "For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:145
212
- __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:157
213
- __( "We are making sure your site stays free of security threats. You will be notified if we find one.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:172
214
- __( "Search", "jetpack" ), // _inc/client/at-a-glance/search.jsx:28
215
- __( "Jetpack’s Search module is a powerful replacement for the search capability built into WordPress.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:31
216
- __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/search.jsx:67
217
- __( "Give your visitors {{a}}a great search experience{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:76
218
- __( "Search", "jetpack" ), // _inc/client/at-a-glance/search.jsx:91
219
- __( "Jetpack’s Search module is a powerful replacement for the search capability built into WordPress.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:94
220
- __( "Jetpack Search is powering search on your site.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:102
221
- __( "Add Search (Jetpack) Widget", "jetpack" ), // _inc/client/at-a-glance/search.jsx:105
222
- __( "{{a}}Activate{{/a}} to replace the WordPress built-in search with an improved search experience.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:112
223
- __( "Activate", "jetpack" ), // _inc/client/searchable-modules/index.jsx:75
224
__( "Checking your spam protection…", "jetpack" ), // _inc/client/security/antispam.jsx:93
225
__( "Fetching key…", "jetpack" ), // _inc/client/security/antispam.jsx:97
226
__( "Your site needs an Antispam key.", "jetpack" ), // _inc/client/security/antispam.jsx:102
@@ -254,8 +276,9 @@ _x( "Backups and security scanning", "Settings header", "jetpack" ), // _inc/cli
254
__( "Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.", "jetpack" ), // _inc/client/security/backups-scan.jsx:177
255
__( "Configure your Security Scans", "jetpack" ), // _inc/client/security/backups-scan.jsx:187
256
_x( "Downtime monitoring", "Settings header", "jetpack" ), // _inc/client/security/monitor.jsx:33
257
- __( "Monitor your site's downtime", "jetpack" ), // _inc/client/security/monitor.jsx:44
258
- __( "Configure your notification settings", "jetpack" ), // _inc/client/security/monitor.jsx:55
259
_x( "Brute force attack protection", "Settings header", "jetpack" ), // _inc/client/security/protect.jsx:98
260
__( "Protects your site from traditional and distributed brute force login attacks.", "jetpack" ), // _inc/client/security/protect.jsx:111
261
__( "Your current IP: %(ip)s", "jetpack" ), // _inc/client/security/protect.jsx:119
@@ -266,6 +289,7 @@ _x( "WordPress.com log in", "Settings header", "jetpack" ), // _inc/client/secur
266
__( "Allows registered users to log in to your site with their WordPress.com accounts.", "jetpack" ), // _inc/client/security/sso.jsx:71
267
__( "Match accounts using email addresses", "jetpack" ), // _inc/client/security/sso.jsx:97
268
__( "Require accounts to use WordPress.com Two-Step Authentication", "jetpack" ), // _inc/client/security/sso.jsx:110
269
__( "No search results found for %(term)s", "jetpack" ), // _inc/client/settings/index.jsx:32
270
__( "Enter a search term to find settings or close search.", "jetpack" ), // _inc/client/settings/index.jsx:40
271
_x( "Like buttons", "Settings header", "jetpack" ), // _inc/client/sharing/likes.jsx:24
@@ -415,27 +439,35 @@ __( "Enables a lightweight, mobile-friendly theme that will be displayed to visi
415
__( "Use excerpts instead of full posts on front page and archive pages", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:221
416
__( "Show featured images", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:225
417
__( "Show an ad for the WordPress mobile apps in the footer of the mobile theme", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:229
418
- _x( "privacy", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:56
419
- _x( "tracks", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:57
420
- _x( "data", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:58
421
- _x( "gdpr", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:59
422
- _x( "tos", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:60
423
- _x( "terms of service", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:61
424
- _x( "Privacy Settings", "Settings header", "jetpack" ), // _inc/client/privacy/index.jsx:95
425
- __( "We are committed to your privacy and security. ", "jetpack" ), // _inc/client/privacy/index.jsx:101
426
- __( "Read about how Jetpack uses your data in the {{pp}}Automattic Privacy Policy{{/pp}} and our {{js}}What Data Does Jetpack Sync?{{/js}} support document.", "jetpack" ), // _inc/client/privacy/index.jsx:104
427
- __( "Send information to help us improve our products.", "jetpack" ), // _inc/client/privacy/index.jsx:129
428
- _x( "Threats", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:83
429
- _x( "Threats found!", "Short warning message about new threats found.", "jetpack" ), // _inc/client/pro-status/index.jsx:85
430
- _x( "FIX", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:86
431
- _x( "No scanning", "Short warning message about site having no security scan.", "jetpack" ), // _inc/client/pro-status/index.jsx:95
432
- _x( "Upgrade", "Caption for a button to purchase a paid feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:97
433
- _x( "Upgrade", "Caption for a button to purchase a pro plan.", "jetpack" ), // _inc/client/pro-status/index.jsx:103
434
- _x( "Secure", "Short message informing user that the site is secure.", "jetpack" ), // _inc/client/pro-status/index.jsx:108
435
- _x( "Invalid key", "Short warning message about an invalid key being used for Akismet.", "jetpack" ), // _inc/client/pro-status/index.jsx:112
436
- __( "Connected", "jetpack" ), // _inc/client/pro-status/index.jsx:118
437
- __( "ACTIVE", "jetpack" ), // _inc/client/pro-status/index.jsx:122
438
- _x( "Set up", "Caption for a button to set up a feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:155
439
__( "Get WordPress Apps for every device", "jetpack" ), // _inc/client/components/apps-card/index.jsx:59
440
__( "Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.", "jetpack" ), // _inc/client/components/apps-card/index.jsx:63
441
__( "Download the free apps", "jetpack" ), // _inc/client/components/apps-card/index.jsx:70
@@ -448,6 +480,7 @@ __( "By clicking the button below, you agree to our fascinating {{tosLink}}Terms
448
_x( "Updates needed", "Short warning message", "jetpack" ), // _inc/client/components/dash-item/index.jsx:92
449
__( "Active", "jetpack" ), // _inc/client/components/dash-item/index.jsx:98
450
_x( "Paid", "Short label appearing near a paid feature configuration block.", "jetpack" ), // _inc/client/components/dash-item/index.jsx:114
451
__( "This will reset all Jetpack options, are you sure?", "jetpack" ), // _inc/client/components/footer/index.jsx:40
452
_x( "Reset Options (dev only)", "Navigation item.", "jetpack" ), // _inc/client/components/footer/index.jsx:91
453
__( "Test your site’s compatibility with Jetpack.", "jetpack" ), // _inc/client/components/footer/index.jsx:106
@@ -463,7 +496,8 @@ __( "Automattic's Privacy Policy", "jetpack" ), // _inc/client/components/footer
463
_x( "Privacy", "Shorthand for Privacy Policy.", "jetpack" ), // _inc/client/components/footer/index.jsx:185
464
__( "Saving…", "jetpack" ), // _inc/client/components/forms/index.jsx:131
465
__( "Save Settings", "jetpack" ), // _inc/client/components/forms/index.jsx:131
466
- _x( "Settings", "Noun. Displayed to screen readers.", "jetpack" ), // _inc/client/components/dash-section-header/index.jsx:51
467
__( "Welcome to Jetpack", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:23
468
__( "Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:28
469
__( "WordPress themes and customization tools for designing your site.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:35
@@ -505,8 +539,6 @@ __( "Guard your site against brute force login attacks, spam, and harmfulmalware
505
__( "Backup and restore", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:190
506
__( "Automatic, real-time backups mean your entire site is always ready to be restored.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:194
507
__( "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:207
508
- __( "Stars", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:47
509
- __( "Jupiter", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:48
510
__( "Daily, automated backups (unlimited storage)", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:44
511
__( "Priority support", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:48
512
__( "Spam filtering", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:52
@@ -568,7 +600,6 @@ __( "Person with laptop", "jetpack" ), // _inc/client/components/jumpstart/index
568
__( "Your Jetpack site is ready to go!", "jetpack" ), // _inc/client/components/jumpstart/index.jsx:86
569
__( "Dashboard", "jetpack" ), // _inc/client/components/masthead/index.jsx:80
570
__( "Settings", "jetpack" ), // _inc/client/components/masthead/index.jsx:88
571
- __( "%(moduleName)s has been disabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-overridden-banner/index.jsx:53
572
__( "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.", "jetpack" ), // _inc/client/components/module-settings/index.jsx:31
573
__( "To get started, click on Add Media in your post editor and upload a video; we’ll take care of the rest!", "jetpack" ), // _inc/client/components/module-settings/index.jsx:34
574
__( "Subscriber", "jetpack" ), // _inc/client/components/module-settings/index.jsx:48
@@ -601,6 +632,7 @@ __( "{{link}}Configure your %(module_slug)s Settings {{/link}}", "jetpack" ), //
601
__( "This feature has been enabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-toggle/index.jsx:80
602
__( "This feature has been disabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-toggle/index.jsx:82
603
__( "This feature is being managed by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-toggle/index.jsx:84
604
_x( "At a Glance", "Navigation item.", "jetpack" ), // _inc/client/components/navigation/index.jsx:45
605
_x( "Plans", "Navigation item.", "jetpack" ), // _inc/client/components/navigation/index.jsx:51
606
_x( "At a Glance", "Navigation item.", "jetpack" ), // _inc/client/components/navigation/index.jsx:61
@@ -682,34 +714,5 @@ __( "Your Jetpack Professional plan is taking care of business!", "jetpack" ), /
682
__( "Sharing", "jetpack" ), // _inc/client/components/welcome-new-plan/social-seo-ads-prompt.jsx:16
683
__( "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.", "jetpack" ), // _inc/client/components/welcome-new-plan/social-seo-ads-prompt.jsx:18
684
__( "VideoPress allows you to upload videos from your computer to be hosted on WordPress.com, rather than on your host’s servers. You can then insert these on your self-hosted Jetpack site. ", "jetpack" ), // _inc/client/components/welcome-new-plan/videopress-prompt.jsx:16
685
- /* translators: Referring to a number of page views */
686
- __( "Views today", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:53
687
- /* translators: Referring to a number of page views */
688
- __( "Best overall day", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:57
689
- _n( "%(number)s View", "%(number)s Views", 1, "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:62
690
- /* translators: Referring to a number of page views */
691
- __( "All-time views", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:80
692
- /* translators: Referring to a number of comments */
693
- __( "All-time comments", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:88
694
- __( "{{button}}View detailed stats{{/button}}", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:101
695
- __( "{{button}}View more stats on WordPress.com {{/button}}", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:112
696
- __( "Connect your account to WordPress.com to view more stats", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:134
697
- __( "Week of %(date)s", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:89
698
- __( "Views: %(numberOfViews)s", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:105
699
- __( "Click to view detailed stats.", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:107
700
- __( "Jetpack Stats People", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:152
701
- __( "Hello there! Your stats have been activated.", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:154
702
- __( "Just give us a little time to collect data so we can display it for you here.", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:156
703
- __( "Okay, got it!", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:162
704
- __( "Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:177
705
- __( "Jetpack Stats Icon", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:203
706
- __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:207
707
- __( "{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:208
708
- __( "Activate Site Stats", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:223
709
- __( "Days", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:261
710
- __( "Weeks", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:266
711
- __( "Months", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:271
712
- __( "Site Stats", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:288
713
- __( "Site Stats", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:295
714
);
715
/* THIS IS THE END OF THE GENERATED FILE */
45
__( "Error updating privacy settings. %(error)s", "jetpack" ), // _inc/client/state/tracking/actions.js:48
46
__( "There are unsaved settings in this tab that will be lost if you leave it. Proceed?", "jetpack" ), // _inc/client/main.jsx:68
47
__( "There are unsaved settings in this tab that will be lost if you leave it. Proceed?", "jetpack" ), // _inc/client/main.jsx:83
48
+ __( "{{a}}View your site's activity{{/a}} in a single feed.", "jetpack" ), // _inc/client/at-a-glance/activity.jsx:52
49
+ __( "Activity", "jetpack" ), // _inc/client/at-a-glance/activity.jsx:61
50
+ __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/activity.jsx:71
51
+ __( "Spam Protection", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:42
52
+ __( "Akismet checks your comments and contact form submissions against our global database of spam.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:45
53
+ __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:59
54
+ __( "For state-of-the-art spam defense, please {{a}}install Akismet{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:79
55
+ __( "For state-of-the-art spam defense, please {{a}}activate Akismet{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:102
56
+ __( "Invalid key", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:121
57
+ __( "Whoops! Your Akismet key is missing or invalid. {{akismetSettings}}Go to Akismet settings to fix{{/akismetSettings}}.", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:126
58
+ _x( "Spam comments blocked.", "Example: \"412 Spam comments blocked\"", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:149
59
+ __( "Moderate comments", "jetpack" ), // _inc/client/at-a-glance/akismet.jsx:162
60
+ __( "Backups", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:30
61
+ __( "Jetpack Backups allow you to easily restore or download a backup from a specific moment.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:33
62
+ __( "{{a}}View backup details{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:86
63
+ __( "To automatically back up your entire site, please {{a}}install and activate{{/a}} VaultPress.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:102
64
+ __( "To automatically back up your entire site, please {{a}}upgrade your account{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:113
65
+ __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:125
66
+ __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:137
67
+ __( "Your site is being backed up in real-time.", "jetpack" ), // _inc/client/at-a-glance/backups.jsx:152
68
+ __( "Your site is in Development Mode, so it can not be connected to WordPress.com.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:52
69
+ __( "Your site is connected to WordPress.com.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:68
70
+ __( "You are the Jetpack owner.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:72
71
+ __( "The site is in Development Mode, so you can not connect to WordPress.com.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:111
72
+ /* translators: %(username) is the WordPress user login name. */
73
+ __( "Connected as {{span}}%(username)s{{/span}}", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:125
74
+ __( "Link your account to WordPress.com to get the most out of Jetpack.", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:152
75
+ _x( "Site connection", "Dashboard widget header", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:175
76
+ _x( "Account connection", "Dashboard widget header", "jetpack" ), // _inc/client/at-a-glance/connections.jsx:185
77
+ __( "Security", "jetpack" ), // _inc/client/at-a-glance/index.jsx:62
78
+ __( "Manage security on WordPress.com", "jetpack" ), // _inc/client/at-a-glance/index.jsx:66
79
+ __( "Connections", "jetpack" ), // _inc/client/at-a-glance/index.jsx:76
80
+ __( "Performance", "jetpack" ), // _inc/client/at-a-glance/index.jsx:124
81
+ __( "Downtime monitoring", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:24
82
+ __( "Jetpack’s downtime monitor will keep tabs on your site, and alert you the moment that downtime is detected.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:27
83
+ __( "Jetpack is monitoring your site. If we think your site is down, you will receive an email.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:51
84
+ __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:65
85
+ __( "{{a}}Activate Monitor{{/a}} to receive email notifications if your site goes down.", "jetpack" ), // _inc/client/at-a-glance/monitor.jsx:66
86
+ __( "Image Performance", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:23
87
+ __( "Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:27
88
+ __( "Jetpack is improving and optimizing your image speed.", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:38
89
+ __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:51
90
+ __( "{{a}}Activate{{/a}} to enhance the performance and speed of your images.", "jetpack" ), // _inc/client/at-a-glance/photon.jsx:52
91
+ __( "Plugin Updates", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:35
92
+ __( "Jetpack’s Plugin Updates allows you to choose which plugins update automatically.", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:39
93
+ __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:51
94
+ _n( "%(number)s", "%(number)s", 1, "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:72
95
+ _n( "Plugin needs updating.", "Plugins need updating.", 1, "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:84
96
+ __( "{{a}}Turn on plugin autoupdates{{/a}}", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:85
97
+ __( "All plugins are up-to-date. Awesome work!", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:89
98
+ __( "Manage your plugins", "jetpack" ), // _inc/client/at-a-glance/plugins.jsx:100
99
+ __( "Protects your site from traditional and distributed brute force login attacks.", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:27
100
+ __( "Jetpack is actively blocking malicious login attempts. Data will display here soon!", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:46
101
+ __( "Total malicious attacks blocked on your site.", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:59
102
+ __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:72
103
+ __( "{{a}}Activate Protect{{/a}} to keep your site protected from malicious sign in attempts.", "jetpack" ), // _inc/client/at-a-glance/protect.jsx:73
104
+ __( "Security Scanning", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:34
105
+ __( "Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:37
106
+ __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:89
107
+ _n( "Uh oh, %(number)s threat found.", "Uh oh, %(number)s threats found.", 1, "jetpack" ), // _inc/client/at-a-glance/scan.jsx:100
108
+ __( "{{a}}View details at VaultPress.com{{/a}}", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:106
109
+ __( "{{a}}Contact Support{{/a}}", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:108
110
+ __( "No threats found, you're good to go!", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:118
111
+ __( "Loading…", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:127
112
+ __( "For automated, comprehensive scanning of security threats, please {{a}}install and activate{{/a}} VaultPress.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:140
113
+ __( "For automated, comprehensive scanning of security threats, please {{a}}upgrade your account{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:145
114
+ __( "Unavailable in Dev Mode.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:157
115
+ __( "We are making sure your site stays free of security threats. You will be notified if we find one.", "jetpack" ), // _inc/client/at-a-glance/scan.jsx:172
116
+ __( "Search", "jetpack" ), // _inc/client/at-a-glance/search.jsx:28
117
+ __( "Jetpack’s Search module is a powerful replacement for the search capability built into WordPress.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:31
118
+ __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/search.jsx:67
119
+ __( "Give your visitors {{a}}a great search experience{{/a}}.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:76
120
+ __( "Search", "jetpack" ), // _inc/client/at-a-glance/search.jsx:91
121
+ __( "Jetpack’s Search module is a powerful replacement for the search capability built into WordPress.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:94
122
+ __( "Jetpack Search is powering search on your site.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:102
123
+ __( "Add Search (Jetpack) Widget", "jetpack" ), // _inc/client/at-a-glance/search.jsx:105
124
+ __( "{{a}}Activate{{/a}} to replace the WordPress built-in search with an improved search experience.", "jetpack" ), // _inc/client/at-a-glance/search.jsx:112
125
__( "Comments", "jetpack" ), // _inc/client/discussion/comments.jsx:67
126
__( "Replaces the standard WordPress comment form with a new comment system that includes social media login options.", "jetpack" ), // _inc/client/discussion/comments.jsx:78
127
__( "Comments headline", "jetpack" ), // _inc/client/discussion/comments.jsx:99
139
__( "Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:81
140
__( "Show a \"follow blog\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:106
141
__( "Show a \"follow comments\" option in the comment form", "jetpack" ), // _inc/client/discussion/subscriptions.jsx:116
142
+ _x( "privacy", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:61
143
+ _x( "tracks", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:62
144
+ _x( "data", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:63
145
+ _x( "gdpr", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:64
146
+ _x( "tos", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:65
147
+ _x( "terms of service", "Search term.", "jetpack" ), // _inc/client/privacy/index.jsx:66
148
+ _x( "Privacy Settings", "Settings header", "jetpack" ), // _inc/client/privacy/index.jsx:100
149
+ __( "We are committed to your privacy and security. ", "jetpack" ), // _inc/client/privacy/index.jsx:106
150
+ __( "Share information with our analytics tool about your use of services while logged in to your WordPress.com account. {{cookiePolicyLink}}Learn more{{/cookiePolicyLink}}.", "jetpack" ), // _inc/client/privacy/index.jsx:116
151
+ __( "This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our {{pp}}privacy policy{{/pp}}.", "jetpack" ), // _inc/client/privacy/index.jsx:131
152
+ __( "We use other tracking tools, including some from third parties. {{cookiePolicyLink}}Read about these{{/cookiePolicyLink}} and how to control them.", "jetpack" ), // _inc/client/privacy/index.jsx:144
153
+ __( "For more information on how specific Jetpack features use data and track activity, please refer to our {{privacyCenterLink}}Privacy Center{{/privacyCenterLink}}.", "jetpack" ), // _inc/client/privacy/index.jsx:158
154
_n( "Please correct the issue below and try again.", "Please correct the issues listed below and try again.", 1, "jetpack" ), // _inc/client/notices/validation-error-list.jsx:20
155
__( "Daily backup of all your site data with unlimited space and one-click restores", "jetpack" ), // _inc/client/plans/plan-body.jsx:103
156
__( "Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support", "jetpack" ), // _inc/client/plans/plan-body.jsx:106
232
__( "Full security suite, marketing and revenue automation tools, unlimited video hosting, unlimited themes, enhanced search, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:112
233
__( "Your site is on Development Mode", "jetpack" ), // _inc/client/plans/plan-header.jsx:125
234
__( "Once you connect, you can upgrade to a paid plan in order to unlock world-class security, spam protection tools, and priority support.", "jetpack" ), // _inc/client/plans/plan-header.jsx:126
235
+ _x( "Threats", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:83
236
+ _x( "Threats found!", "Short warning message about new threats found.", "jetpack" ), // _inc/client/pro-status/index.jsx:85
237
+ _x( "FIX", "A caption for a small button to fix security issues.", "jetpack" ), // _inc/client/pro-status/index.jsx:86
238
+ _x( "No scanning", "Short warning message about site having no security scan.", "jetpack" ), // _inc/client/pro-status/index.jsx:95
239
+ _x( "Upgrade", "Caption for a button to purchase a paid feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:97
240
+ _x( "Upgrade", "Caption for a button to purchase a pro plan.", "jetpack" ), // _inc/client/pro-status/index.jsx:103
241
+ _x( "Secure", "Short message informing user that the site is secure.", "jetpack" ), // _inc/client/pro-status/index.jsx:108
242
+ _x( "Invalid key", "Short warning message about an invalid key being used for Akismet.", "jetpack" ), // _inc/client/pro-status/index.jsx:112
243
+ __( "Connected", "jetpack" ), // _inc/client/pro-status/index.jsx:118
244
+ __( "ACTIVE", "jetpack" ), // _inc/client/pro-status/index.jsx:122
245
+ _x( "Set up", "Caption for a button to set up a feature.", "jetpack" ), // _inc/client/pro-status/index.jsx:155
246
__( "Checking your spam protection…", "jetpack" ), // _inc/client/security/antispam.jsx:93
247
__( "Fetching key…", "jetpack" ), // _inc/client/security/antispam.jsx:97
248
__( "Your site needs an Antispam key.", "jetpack" ), // _inc/client/security/antispam.jsx:102
276
__( "Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.", "jetpack" ), // _inc/client/security/backups-scan.jsx:177
277
__( "Configure your Security Scans", "jetpack" ), // _inc/client/security/backups-scan.jsx:187
278
_x( "Downtime monitoring", "Settings header", "jetpack" ), // _inc/client/security/monitor.jsx:33
279
+ __( "Keep tabs on your site and receive alerts the moment downtime is detected.", "jetpack" ), // _inc/client/security/monitor.jsx:40
280
+ __( "Monitor your site's downtime", "jetpack" ), // _inc/client/security/monitor.jsx:52
281
+ __( "Configure your notification settings", "jetpack" ), // _inc/client/security/monitor.jsx:63
282
_x( "Brute force attack protection", "Settings header", "jetpack" ), // _inc/client/security/protect.jsx:98
283
__( "Protects your site from traditional and distributed brute force login attacks.", "jetpack" ), // _inc/client/security/protect.jsx:111
284
__( "Your current IP: %(ip)s", "jetpack" ), // _inc/client/security/protect.jsx:119
289
__( "Allows registered users to log in to your site with their WordPress.com accounts.", "jetpack" ), // _inc/client/security/sso.jsx:71
290
__( "Match accounts using email addresses", "jetpack" ), // _inc/client/security/sso.jsx:97
291
__( "Require accounts to use WordPress.com Two-Step Authentication", "jetpack" ), // _inc/client/security/sso.jsx:110
292
+ __( "Activate", "jetpack" ), // _inc/client/searchable-modules/index.jsx:75
293
__( "No search results found for %(term)s", "jetpack" ), // _inc/client/settings/index.jsx:32
294
__( "Enter a search term to find settings or close search.", "jetpack" ), // _inc/client/settings/index.jsx:40
295
_x( "Like buttons", "Settings header", "jetpack" ), // _inc/client/sharing/likes.jsx:24
439
__( "Use excerpts instead of full posts on front page and archive pages", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:221
440
__( "Show featured images", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:225
441
__( "Show an ad for the WordPress mobile apps in the footer of the mobile theme", "jetpack" ), // _inc/client/writing/theme-enhancements.jsx:229
442
+ /* translators: Referring to a number of page views */
443
+ __( "Views today", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:53
444
+ /* translators: Referring to a number of page views */
445
+ __( "Best overall day", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:57
446
+ _n( "%(number)s View", "%(number)s Views", 1, "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:62
447
+ /* translators: Referring to a number of page views */
448
+ __( "All-time views", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:80
449
+ /* translators: Referring to a number of comments */
450
+ __( "All-time comments", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:88
451
+ __( "{{button}}View detailed stats{{/button}}", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:101
452
+ __( "{{button}}View more stats on WordPress.com {{/button}}", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:112
453
+ __( "Connect your account to WordPress.com to view more stats", "jetpack" ), // _inc/client/at-a-glance/stats/dash-stats-bottom.jsx:134
454
+ __( "Week of %(date)s", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:89
455
+ __( "Views: %(numberOfViews)s", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:105
456
+ __( "Click to view detailed stats.", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:107
457
+ __( "Jetpack Stats People", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:152
458
+ __( "Hello there! Your stats have been activated.", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:154
459
+ __( "Just give us a little time to collect data so we can display it for you here.", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:156
460
+ __( "Okay, got it!", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:162
461
+ __( "Something happened while loading stats. Please try again later or {{a}}view your stats now on WordPress.com{{/a}}", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:177
462
+ __( "Jetpack Stats Icon", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:203
463
+ __( "Unavailable in Dev Mode", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:207
464
+ __( "{{a}}Activate Site Stats{{/a}} to see detailed stats, likes, followers, subscribers, and more! {{a1}}Learn More{{/a1}}", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:208
465
+ __( "Activate Site Stats", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:223
466
+ __( "Days", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:261
467
+ __( "Weeks", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:266
468
+ __( "Months", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:271
469
+ __( "Site Stats", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:288
470
+ __( "Site Stats", "jetpack" ), // _inc/client/at-a-glance/stats/index.jsx:295
471
__( "Get WordPress Apps for every device", "jetpack" ), // _inc/client/components/apps-card/index.jsx:59
472
__( "Manage all your sites from a single dashboard: publish content, track stats, moderate comments, and so much more from anywhere in the world.", "jetpack" ), // _inc/client/components/apps-card/index.jsx:63
473
__( "Download the free apps", "jetpack" ), // _inc/client/components/apps-card/index.jsx:70
480
_x( "Updates needed", "Short warning message", "jetpack" ), // _inc/client/components/dash-item/index.jsx:92
481
__( "Active", "jetpack" ), // _inc/client/components/dash-item/index.jsx:98
482
_x( "Paid", "Short label appearing near a paid feature configuration block.", "jetpack" ), // _inc/client/components/dash-item/index.jsx:114
483
+ _x( "Settings", "Noun. Displayed to screen readers.", "jetpack" ), // _inc/client/components/dash-section-header/index.jsx:51
484
__( "This will reset all Jetpack options, are you sure?", "jetpack" ), // _inc/client/components/footer/index.jsx:40
485
_x( "Reset Options (dev only)", "Navigation item.", "jetpack" ), // _inc/client/components/footer/index.jsx:91
486
__( "Test your site’s compatibility with Jetpack.", "jetpack" ), // _inc/client/components/footer/index.jsx:106
496
_x( "Privacy", "Shorthand for Privacy Policy.", "jetpack" ), // _inc/client/components/footer/index.jsx:185
497
__( "Saving…", "jetpack" ), // _inc/client/components/forms/index.jsx:131
498
__( "Save Settings", "jetpack" ), // _inc/client/components/forms/index.jsx:131
499
+ __( "Stars", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:47
500
+ __( "Jupiter", "jetpack" ), // _inc/client/components/jetpack-dialogue/index.jsx:48
501
__( "Welcome to Jetpack", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:23
502
__( "Hassle-free design, marketing, and security for your WordPress site. Connect Jetpack to a WordPress.com account to start building your own success story.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:28
503
__( "WordPress themes and customization tools for designing your site.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:35
539
__( "Backup and restore", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:190
540
__( "Automatic, real-time backups mean your entire site is always ready to be restored.", "jetpack" ), // _inc/client/components/jetpack-connect/index.jsx:194
541
__( "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:207
542
__( "Daily, automated backups (unlimited storage)", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:44
543
__( "Priority support", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:48
544
__( "Spam filtering", "jetpack" ), // _inc/client/components/jetpack-disconnect-dialog/index.jsx:52
600
__( "Your Jetpack site is ready to go!", "jetpack" ), // _inc/client/components/jumpstart/index.jsx:86
601
__( "Dashboard", "jetpack" ), // _inc/client/components/masthead/index.jsx:80
602
__( "Settings", "jetpack" ), // _inc/client/components/masthead/index.jsx:88
603
__( "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.", "jetpack" ), // _inc/client/components/module-settings/index.jsx:31
604
__( "To get started, click on Add Media in your post editor and upload a video; we’ll take care of the rest!", "jetpack" ), // _inc/client/components/module-settings/index.jsx:34
605
__( "Subscriber", "jetpack" ), // _inc/client/components/module-settings/index.jsx:48
632
__( "This feature has been enabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-toggle/index.jsx:80
633
__( "This feature has been disabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-toggle/index.jsx:82
634
__( "This feature is being managed by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-toggle/index.jsx:84
635
+ __( "%(moduleName)s has been disabled by a site administrator. {{link}}Learn more{{/link}}.", "jetpack" ), // _inc/client/components/module-overridden-banner/index.jsx:53
636
_x( "At a Glance", "Navigation item.", "jetpack" ), // _inc/client/components/navigation/index.jsx:45
637
_x( "Plans", "Navigation item.", "jetpack" ), // _inc/client/components/navigation/index.jsx:51
638
_x( "At a Glance", "Navigation item.", "jetpack" ), // _inc/client/components/navigation/index.jsx:61
714
__( "Sharing", "jetpack" ), // _inc/client/components/welcome-new-plan/social-seo-ads-prompt.jsx:16
715
__( "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.", "jetpack" ), // _inc/client/components/welcome-new-plan/social-seo-ads-prompt.jsx:18
716
__( "VideoPress allows you to upload videos from your computer to be hosted on WordPress.com, rather than on your host’s servers. You can then insert these on your self-hosted Jetpack site. ", "jetpack" ), // _inc/client/components/welcome-new-plan/videopress-prompt.jsx:16
717
);
718
/* THIS IS THE END OF THE GENERATED FILE */
changelog.txt CHANGED
@@ -1,5 +1,50 @@
1
== Changelog ==
2
3
= 6.0 =
4
5
* Release date: April 3, 2018
1
== Changelog ==
2
3
+ = 6.1 =
4
+
5
+ * Release date: May 1, 2018
6
+ * Release post: https://wp.me/p1moTy-7Sj
7
+
8
+ **Major Enhancements**
9
+
10
+ * WordAds: Introduced shortcode for inline Ad placement.
11
+ * WordAds: Added support for the ads.txt file.
12
+
13
+ **Enhancements**
14
+
15
+ * Dashboard: We improved the styles of status numbers so it doesn't look like floating.
16
+ * JSON API: Added support for Google My Business integration available on WordPress.com.
17
+ * Masterbar: We removed the Next Steps link from the Account sidebar.
18
+ * Publicize: Let the user know that we are going to send emails to subscribers and publicize to the different accounts.
19
+ * Settings: Added "Privacy Information" links to each Jetpack module/feature card.
20
+ * Shortcodes: Mixcloud shortcode now uses oEmbed.
21
+ * Stats: Added a new filter jetpack_honor_dnt_header_for_stats, which if enabled would not track stats for visitors with DNT enabled.
22
+ * Sync: Removed requirement for gzencode.
23
+ * Widgets: always load script via HTTPS for Gravatar Hovercards.
24
+
25
+ **Improved compatibility**
26
+
27
+ * Social Icons Widget: Improved support on screen reader text for themes that do not provide support out of the box.
28
+ * Sharing: Removed the sharing and like display functionality from Cart, Checkout, and Account WooCommerce pages.
29
+
30
+ **Bug fixes**
31
+
32
+ * Admin Page: We fixed the internationalization of the plans page.
33
+ * Ads: We fixed a problem that impeded Premium Plan customers to activate Google Analytics.
34
+ * Auto Updates: We fixed a warning being thrown due to a bad concatenation of strings.
35
+ * General: Fixed a warning that was being logged due to attempting to use in_array() over a variable that didn't always contain an array.
36
+ * General: Fixed Warning: count(): Parameter must be an array or an object that implements Countable showing on PHP 7.x.
37
+ * JSON API: Fixed internationalization on embed endpoint.
38
+ * Theme Tools: Show featured images in WooCommerce pages when Display on blog and archives is turned off for Themes that support this feature.
39
+ * Publicize: Avoid adding Publicize post meta when a post transitions to publish and it is not a publicize-able post type.
40
+ * Settings: Fixed the icon representing the minimum plan needed for SEO and Google Analytics features.
41
+ * Slideshow: Fixed an invalid argument supplied for foreach() warning.
42
+ * SSO: We fixed the name of a filter which contained a typo before. The filter is now named: `jetpack_sso_auth_cookie_expiration`.
43
+ * SSO: Fixed some cases where we were not handling secure cookies for sites running over https.
44
+ * Sync: Fixed Warning: Invalid argument supplied for foreach().
45
+ * Sync: Fixed Warning: Warning: json_encode(): recursion detected.
46
+ * WooCommerce Analytics: fixed broken Remove From Cart link.
47
+
48
= 6.0 =
49
50
* Release date: April 3, 2018
class.jetpack-cli.php CHANGED
@@ -1034,6 +1034,174 @@ class Jetpack_CLI extends WP_CLI_Command {
1034
}
1035
}
1036
1037
private function get_api_host() {
1038
$env_api_host = getenv( 'JETPACK_START_API_HOST', true );
1039
return $env_api_host ? $env_api_host : JETPACK__WPCOM_JSON_API_HOST;
1034
}
1035
}
1036
1037
+ /**
1038
+ * Allows calling a WordPress.com API endpoint using the current blog's token.
1039
+ *
1040
+ * ## OPTIONS
1041
+ * --resource=<resource>
1042
+ * : The resource to call with the current blog's token, where `%d` represents the current blog's ID.
1043
+ *
1044
+ * [--api_version=<api_version>]
1045
+ * : The API version to query against.
1046
+ *
1047
+ * [--base_api_path=<base_api_path>]
1048
+ * : The base API path to query.
1049
+ * ---
1050
+ * default: rest
1051
+ * ---
1052
+ *
1053
+ * [--body=<body>]
1054
+ * : A JSON encoded string representing arguments to send in the body.
1055
+ *
1056
+ * [--field=<value>]
1057
+ * : Any number of arguments that should be passed to the resource.
1058
+ *
1059
+ * [--pretty]
1060
+ * : Will pretty print the results of a successful API call.
1061
+ *
1062
+ * [--strip-success]
1063
+ * : Will remove the green success label from successful API calls.
1064
+ *
1065
+ * ## EXAMPLES
1066
+ *
1067
+ * wp jetpack call_api --resource='/sites/%d'
1068
+ */
1069
+ public function call_api( $args, $named_args ) {
1070
+ if ( ! Jetpack::is_active() ) {
1071
+ WP_CLI::error( __( 'Jetpack is not currently connected to WordPress.com', 'jetpack' ) );
1072
+ }
1073
+
1074
+ $consumed_args = array(
1075
+ 'resource',
1076
+ 'api_version',
1077
+ 'base_api_path',
1078
+ 'body',
1079
+ 'pretty',
1080
+ );
1081
+
1082
+ // Get args that should be passed to resource.
1083
+ $other_args = array_diff_key( $named_args, array_flip( $consumed_args ) );
1084
+
1085
+ $decoded_body = ! empty( $named_args['body'] )
1086
+ ? json_decode( $named_args['body'] )
1087
+ : false;
1088
+
1089
+ $resource_url = ( false === strpos( $named_args['resource'], '%d' ) )
1090
+ ? $named_args['resource']
1091
+ : sprintf( $named_args['resource'], Jetpack_Options::get_option( 'id' ) );
1092
+
1093
+ $response = Jetpack_Client::wpcom_json_api_request_as_blog(
1094
+ $resource_url,
1095
+ empty( $named_args['api_version'] ) ? Jetpack_Client::WPCOM_JSON_API_VERSION : $named_args['api_version'],
1096
+ $other_args,
1097
+ empty( $decoded_body ) ? null : $decoded_body,
1098
+ $named_args['base_api_path']
1099
+ );
1100
+
1101
+ if ( is_wp_error( $response ) ) {
1102
+ WP_CLI::error( sprintf(
1103
+ /* translators: %1$s is an endpoint route (ex. /sites/123456), %2$d is an error code, %3$s is an error message. */
1104
+ __( 'Request to %1$s returned an error: (%2$d) %3$s.', 'jetpack' ),
1105
+ $resource_url,
1106
+ $response->get_error_code(),
1107
+ $response->get_error_message()
1108
+ ) );
1109
+ }
1110
+
1111
+ if ( 200 !== wp_remote_retrieve_response_code( $response ) ) {
1112
+ WP_CLI::error( sprintf(
1113
+ /* translators: %1$s is an endpoint route (ex. /sites/123456), %2$d is an HTTP status code. */
1114
+ __( 'Request to %1$s returned a non-200 response code: %2$d.', 'jetpack' ),
1115
+ $resource_url,
1116
+ wp_remote_retrieve_response_code( $response )
1117
+ ) );
1118
+ }
1119
+
1120
+ $output = wp_remote_retrieve_body( $response );
1121
+ if ( isset( $named_args['pretty'] ) ) {
1122
+ $decoded_output = json_decode( $output );
1123
+ if ( $decoded_output ) {
1124
+ $output = wp_json_encode( $decoded_output, JSON_PRETTY_PRINT );
1125
+ }
1126
+ }
1127
+
1128
+ if ( isset( $named_args['strip-success'] ) ) {
1129
+ WP_CLI::log( $output );
1130
+ WP_CLI::halt( 0 );
1131
+ }
1132
+
1133
+ WP_CLI::success( $output );
1134
+ }
1135
+
1136
+ /**
1137
+ * API wrapper for getting stats from the WordPress.com API for the current site.
1138
+ *
1139
+ * ## OPTIONS
1140
+ *
1141
+ * [--quantity=<quantity>]
1142
+ * : The number of units to include.
1143
+ * ---
1144
+ * default: 30
1145
+ * ---
1146
+ *
1147
+ * [--period=<period>]
1148
+ * : The unit of time to query stats for.
1149
+ * ---
1150
+ * default: day
1151
+ * options:
1152
+ * - day
1153
+ * - week
1154
+ * - month
1155
+ * - year
1156
+ * ---
1157
+ *
1158
+ * [--date=<date>]
1159
+ * : The latest date to return stats for. Ex. - 2018-01-01.
1160