PK qhYJF F ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/myvideomania.com/wp-content/plugins/jetpack/_inc/build/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/myvideomania.com/wp-content/plugins/jetpack/_inc/build/admin.js |
/*! For license information please see admin.js.LICENSE.txt */ (()=>{var e={61074:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(69307);const s=(0,n.forwardRef)((function({icon:e,size:t=24,...a},s){return(0,n.cloneElement)(e,{width:t,height:t,...a,ref:s})}))},70157:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})})},79201:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},42229:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},57489:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(n.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},6163:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})})},39517:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})})},15381:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},90496:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})})},30250:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(n.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})},30797:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(70444),s=a(30275);const i=(0,s.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,s.jsx)(n.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})})},16163:(e,t,a)=>{var n=a(46147);e.exports=function(e){var t=null,a=n(e);if(3===e.nodeType){var s=a.createRange();s.selectNodeContents(e),e=s}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var i=a.createElement("span");i.appendChild(a.createTextNode("")),e.insertNode(i),t=i.getBoundingClientRect();var r=i.parentNode;r.removeChild(i),r.normalize()}return t}},52491:function(e){var t;t=function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)a.d(n,s,function(t){return e[t]}.bind(null,s));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var a=e.hasAttribute("readonly");a||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),a||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),s=document.createRange();s.selectNodeContents(e),n.removeAllRanges(),n.addRange(s),t=n.toString()}return t}},function(e,t){function a(){}a.prototype={on:function(e,t,a){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:a}),this},once:function(e,t,a){var n=this;function s(){n.off(e,s),t.apply(a,arguments)}return s._=t,this.on(e,s,a)},emit:function(e){for(var t=[].slice.call(arguments,1),a=((this.e||(this.e={}))[e]||[]).slice(),n=0,s=a.length;n<s;n++)a[n].fn.apply(a[n].ctx,t);return this},off:function(e,t){var a=this.e||(this.e={}),n=a[e],s=[];if(n&&t)for(var i=0,r=n.length;i<r;i++)n[i].fn!==t&&n[i].fn._!==t&&s.push(n[i]);return s.length?a[e]=s:delete a[e],this}},e.exports=a,e.exports.TinyEmitter=a},function(e,t,a){var n=a(3),s=a(4);e.exports=function(e,t,a){if(!e&&!t&&!a)throw new Error("Missing required arguments");if(!n.string(t))throw new TypeError("Second argument must be a String");if(!n.fn(a))throw new TypeError("Third argument must be a Function");if(n.node(e))return function(e,t,a){return e.addEventListener(t,a),{destroy:function(){e.removeEventListener(t,a)}}}(e,t,a);if(n.nodeList(e))return function(e,t,a){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,a)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,a)}))}}}(e,t,a);if(n.string(e))return function(e,t,a){return s(document.body,e,t,a)}(e,t,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var a=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"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,a){var n=a(5);function s(e,t,a,n,s){var r=i.apply(this,arguments);return e.addEventListener(a,r,s),{destroy:function(){e.removeEventListener(a,r,s)}}}function i(e,t,a,s){return function(a){a.delegateTarget=n(a.target,t),a.delegateTarget&&s.call(e,a)}}e.exports=function(e,t,a,n,i){return"function"==typeof e.addEventListener?s.apply(null,arguments):"function"==typeof a?s.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return s(e,t,a,n,i)})))}},function(e,t){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=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,a){"use strict";a.r(t);var n=a(0),s=a.n(n),i="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},r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return r(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 a=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=a+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=s()(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=s()(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(),document.activeElement.blur(),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":i(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}(),c=o,l=a(1),p=a.n(l),d=a(2),u=a.n(d),m="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},h=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),g=function(e){function t(e,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.resolveOptions(a),n.listenClick(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),h(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"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=u()(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 c({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 k("action",e)}},{key:"defaultTarget",value:function(e){var t=k("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return k("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,a=!!document.queryCommandSupported;return t.forEach((function(e){a=a&&!!document.queryCommandSupported(e)})),a}}]),t}(p.a);function k(e,t){var a="data-clipboard-"+e;if(t.hasAttribute(a))return t.getAttribute(a)}t.default=g}]).default},e.exports=t()},29494:(e,t,a)=>{var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function s(e){var t,a;for(t=[],a=0;a<e.length;a++)t.push(n[e[a]%64]);return t.join("")}e.exports=function(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return s(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),n=0;n<e;n++)t[n]=Math.floor(256*Math.random());return s(t)}var i=a(39369);try{return s(i.randomBytes(e))}catch(t){return s(i.pseudoRandomBytes(e))}}},55990:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},o=e.split(s),c=i.decode||a,l=0;l<o.length;l++){var p=o[l],d=p.indexOf("=");if(!(d<0)){var u=p.substr(0,d).trim(),m=p.substr(++d,p.length).trim();'"'==m[0]&&(m=m.slice(1,-1)),null==n[u]&&(n[u]=r(m,c))}}return n},t.serialize=function(e,t,a){var s=a||{},r=s.encode||n;if("function"!=typeof r)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var o=r(t);if(o&&!i.test(o))throw new TypeError("argument val is invalid");var c=e+"="+o;if(null!=s.maxAge){var l=s.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(s.domain){if(!i.test(s.domain))throw new TypeError("option domain is invalid");c+="; Domain="+s.domain}if(s.path){if(!i.test(s.path))throw new TypeError("option path is invalid");c+="; Path="+s.path}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+s.expires.toUTCString()}s.httpOnly&&(c+="; HttpOnly");s.secure&&(c+="; Secure");if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var a=decodeURIComponent,n=encodeURIComponent,s=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function r(e,t){try{return t(e)}catch(t){return e}}},53184:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,n=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(a,n){function s(a){e.removeListener(t,i),n(a)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",s),a([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,a){"function"==typeof e.on&&g(e,"error",t,a)}(e,s,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var r=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,a,n){var s,i,r,l;if(o(a),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),i=e._events),r=i[t]),void 0===r)r=i[t]=a,++e._eventsCount;else if("function"==typeof r?r=i[t]=n?[a,r]:[r,a]:n?r.unshift(a):r.push(a),(s=c(e))>0&&r.length>s&&!r.warned){r.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=e,p.type=t,p.count=r.length,l=p,console&&console.warn&&console.warn(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,a){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},s=p.bind(n);return s.listener=a,n.wrapFn=s,s}function u(e,t,a){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?a?[s.listener||s]:[s]:a?function(e){for(var t=new Array(e.length),a=0;a<t.length;++a)t[a]=e[a].listener||e[a];return t}(s):h(s,s.length)}function m(e){var t=this._events;if(void 0!==t){var a=t[e];if("function"==typeof a)return 1;if(void 0!==a)return a.length}return 0}function h(e,t){for(var a=new Array(t),n=0;n<t;++n)a[n]=e[n];return a}function g(e,t,a,n){if("function"==typeof e.on)n.once?e.once(t,a):e.on(t,a);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(i){n.once&&e.removeEventListener(t,s),a(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");r=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],a=1;a<arguments.length;a++)t.push(arguments[a]);var s="error"===e,i=this._events;if(void 0!==i)s=s&&void 0===i.error;else if(!s)return!1;if(s){var r;if(t.length>0&&(r=t[0]),r instanceof Error)throw r;var o=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw o.context=r,o}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,p=h(c,l);for(a=0;a<l;++a)n(p[a],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return o(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var a,n,s,i,r;if(o(t),void 0===(n=this._events))return this;if(void 0===(a=n[e]))return this;if(a===t||a.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,a.listener||t));else if("function"!=typeof a){for(s=-1,i=a.length-1;i>=0;i--)if(a[i]===t||a[i].listener===t){r=a[i].listener,s=i;break}if(s<0)return this;0===s?a.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(a,s),1===a.length&&(n[e]=a[0]),void 0!==n.removeListener&&this.emit("removeListener",e,r||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,a,n;if(void 0===(a=this._events))return this;if(void 0===a.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==a[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete a[e]),this;if(0===arguments.length){var s,i=Object.keys(a);for(n=0;n<i.length;++n)"removeListener"!==(s=i[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=a[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return u(this,e,!0)},i.prototype.rawListeners=function(e){return u(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2056:(e,t,a)=>{"use strict";a.d(t,{v:()=>u});var n,s=a(58750);function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}var o,c=(o=[],{activateTrap:function(e){if(o.length>0){var t=o[o.length-1];t!==e&&t.pause()}var a=o.indexOf(e);-1===a||o.splice(a,1),o.push(e)},deactivateTrap:function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),o.length>0&&o[o.length-1].unpause()}}),l=function(e){return setTimeout(e,0)},p=function(e,t){var a=-1;return e.every((function(e,n){return!t(e)||(a=n,!1)})),a},d=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,a):e},u=function(e,t){var a,o=document,u=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){i(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),m={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},h=function(e){return m.containers.some((function(t){return t.contains(e)}))},g=function(e){var t=u[e];if(!t)return null;var a=t;if("string"==typeof t&&!(a=o.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(a=t()))throw new Error("`".concat(e,"` did not return a node"));return a},k=function(){var e;if(null!==g("initialFocus"))e=g("initialFocus");else if(h(o.activeElement))e=o.activeElement;else{var t=m.tabbableGroups[0];e=t&&t.firstTabbableNode||g("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},v=function(){if(m.tabbableGroups=m.containers.map((function(e){var t=(0,s.ht)(e);if(t.length>0)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}})).filter((function(e){return!!e})),m.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function e(t){t!==o.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!u.preventScroll}),m.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(k()))},E=function(e){h(e.target)||(d(u.clickOutsideDeactivates,e)?a.deactivate({returnFocus:u.returnFocusOnDeactivate&&!(0,s.EB)(e.target)}):d(u.allowOutsideClick,e)||e.preventDefault())},_=function(e){var t=h(e.target);t||e.target instanceof Document?t&&(m.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),f(m.mostRecentlyFocusedNode||k()))},b=function(e){if(!1!==u.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void a.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){v();var t=null;if(m.tabbableGroups.length>0)if(p(m.tabbableGroups,(function(t){return t.container.contains(e.target)}))<0)t=e.shiftKey?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var a=p(m.tabbableGroups,(function(t){var a=t.firstTabbableNode;return e.target===a}));if(a>=0){var n=0===a?m.tabbableGroups.length-1:a-1;t=m.tabbableGroups[n].lastTabbableNode}}else{var s=p(m.tabbableGroups,(function(t){var a=t.lastTabbableNode;return e.target===a}));if(s>=0){var i=s===m.tabbableGroups.length-1?0:s+1;t=m.tabbableGroups[i].firstTabbableNode}}else t=g("fallbackFocus");t&&(e.preventDefault(),f(t))}(e)},y=function(e){d(u.clickOutsideDeactivates,e)||h(e.target)||d(u.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(m.active)return c.activateTrap(a),n=u.delayInitialFocus?l((function(){f(k())})):f(k()),o.addEventListener("focusin",_,!0),o.addEventListener("mousedown",E,{capture:!0,passive:!1}),o.addEventListener("touchstart",E,{capture:!0,passive:!1}),o.addEventListener("click",y,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),a},C=function(){if(m.active)return o.removeEventListener("focusin",_,!0),o.removeEventListener("mousedown",E,!0),o.removeEventListener("touchstart",E,!0),o.removeEventListener("click",y,!0),o.removeEventListener("keydown",b,!0),a};return(a={activate:function(e){if(m.active)return this;v(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=o.activeElement;var t=e&&e.onActivate?e.onActivate:u.onActivate;return t&&t(),w(),this},deactivate:function(e){if(!m.active)return this;clearTimeout(n),C(),m.active=!1,m.paused=!1,c.deactivateTrap(a);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:u.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:u.returnFocusOnDeactivate)&&l((function(){var e;f((e=m.nodeFocusedBeforeActivation,g("setReturnFocus")||e))})),this},pause:function(){return m.paused||!m.active||(m.paused=!0,C()),this},unpause:function(){return m.paused&&m.active?(m.paused=!1,v(),w(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return m.containers=t.map((function(e){return"string"==typeof e?o.querySelector(e):e})),m.active&&v(),this}}).updateContainerElements(e),a}},46147:e=>{e.exports=function e(t){if(a(t))return t;if(a(t.ownerDocument))return t.ownerDocument;if(a(t.document))return t.document;if(t.parentNode)return e(t.parentNode);if(t.commonAncestorContainer)return e(t.commonAncestorContainer);if(t.startContainer)return e(t.startContainer);if(t.anchorNode)return e(t.anchorNode)};var t=9;function a(e){return e&&e.nodeType===t}},92511:(e,t,a)=>{"use strict";a.d(t,{Ep:()=>d,Hp:()=>m,PP:()=>x,lX:()=>_,ob:()=>u,q_:()=>S});var n=a(80255),s=a(4456),i=a(51260),r=a(94262);function o(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(e){var t=e.pathname,a=e.search,n=e.hash,s=t||"/";return a&&"?"!==a&&(s+="?"===a.charAt(0)?a:"?"+a),n&&"#"!==n&&(s+="#"===n.charAt(0)?n:"#"+n),s}function u(e,t,a,i){var r;"string"==typeof e?(r=function(e){var t=e||"/",a="",n="",s=t.indexOf("#");-1!==s&&(n=t.substr(s),t=t.substr(0,s));var i=t.indexOf("?");return-1!==i&&(a=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===a?"":a,hash:"#"===n?"":n}}(e),r.state=t):(void 0===(r=(0,n.Z)({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return a&&(r.key=a),i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=(0,s.Z)(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,i.Z)(e.state,t.state)}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,a,n,s){if(null!=e){var i="function"==typeof e?e(t,a):e;"string"==typeof i?"function"==typeof n?n(i,s):s(!0):s(!1!==i)}else s(!0)},appendListener:function(e){var a=!0;function n(){a&&e.apply(void 0,arguments)}return t.push(n),function(){a=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,a)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function k(e,t){t(window.confirm(e))}var v="popstate",f="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),g||(0,r.Z)(!1);var t,a=window.history,s=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),c=e,m=c.forceRefresh,_=void 0!==m&&m,b=c.getUserConfirmation,y=void 0===b?k:b,w=c.keyLength,C=void 0===w?6:w,j=e.basename?p(o(e.basename)):"";function S(e){var t=e||{},a=t.key,n=t.state,s=window.location,i=s.pathname+s.search+s.hash;return j&&(i=l(i,j)),u(i,n,a)}function N(){return Math.random().toString(36).substr(2,C)}var x=h();function R(e){(0,n.Z)(V,e),V.length=a.length,x.notifyListeners(V.location,V.action)}function Z(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||M(S(e.state))}function T(){M(S(E()))}var A=!1;function M(e){if(A)A=!1,R();else{x.confirmTransitionTo(e,"POP",y,(function(t){t?R({action:"POP",location:e}):function(e){var t=V.location,a=O.indexOf(t.key);-1===a&&(a=0);var n=O.indexOf(e.key);-1===n&&(n=0);var s=a-n;s&&(A=!0,I(s))}(e)}))}}var P=S(E()),O=[P.key];function L(e){return j+d(e)}function I(e){a.go(e)}var D=0;function U(e){1===(D+=e)&&1===e?(window.addEventListener(v,Z),i&&window.addEventListener(f,T)):0===D&&(window.removeEventListener(v,Z),i&&window.removeEventListener(f,T))}var z=!1;var V={length:a.length,action:"POP",location:P,createHref:L,push:function(e,t){var n="PUSH",i=u(e,t,N(),V.location);x.confirmTransitionTo(i,n,y,(function(e){if(e){var t=L(i),r=i.key,o=i.state;if(s)if(a.pushState({key:r,state:o},null,t),_)window.location.href=t;else{var c=O.indexOf(V.location.key),l=O.slice(0,c+1);l.push(i.key),O=l,R({action:n,location:i})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",i=u(e,t,N(),V.location);x.confirmTransitionTo(i,n,y,(function(e){if(e){var t=L(i),r=i.key,o=i.state;if(s)if(a.replaceState({key:r,state:o},null,t),_)window.location.replace(t);else{var c=O.indexOf(V.location.key);-1!==c&&(O[c]=i.key),R({action:n,location:i})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return z||(U(1),z=!0),function(){return z&&(z=!1,U(-1)),t()}},listen:function(e){var t=x.appendListener(e);return U(1),function(){U(-1),t()}}};return V}var b="hashchange",y={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:o},slash:{encodePath:o,decodePath:o}};function w(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function C(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function j(e){window.location.replace(w(window.location.href)+"#"+e)}function S(e){void 0===e&&(e={}),g||(0,r.Z)(!1);var t=window.history,a=(window.navigator.userAgent.indexOf("Firefox"),e),s=a.getUserConfirmation,i=void 0===s?k:s,c=a.hashType,m=void 0===c?"slash":c,v=e.basename?p(o(e.basename)):"",f=y[m],E=f.encodePath,_=f.decodePath;function S(){var e=_(C());return v&&(e=l(e,v)),u(e)}var N=h();function x(e){(0,n.Z)(z,e),z.length=t.length,N.notifyListeners(z.location,z.action)}var R=!1,Z=null;function T(){var e,t,a=C(),n=E(a);if(a!==n)j(n);else{var s=S(),r=z.location;if(!R&&(t=s,(e=r).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(Z===d(s))return;Z=null,function(e){if(R)R=!1,x();else{var t="POP";N.confirmTransitionTo(e,t,i,(function(a){a?x({action:t,location:e}):function(e){var t=z.location,a=O.lastIndexOf(d(t));-1===a&&(a=0);var n=O.lastIndexOf(d(e));-1===n&&(n=0);var s=a-n;s&&(R=!0,L(s))}(e)}))}}(s)}}var A=C(),M=E(A);A!==M&&j(M);var P=S(),O=[d(P)];function L(e){t.go(e)}var I=0;function D(e){1===(I+=e)&&1===e?window.addEventListener(b,T):0===I&&window.removeEventListener(b,T)}var U=!1;var z={length:t.length,action:"POP",location:P,createHref:function(e){var t=document.querySelector("base"),a="";return t&&t.getAttribute("href")&&(a=w(window.location.href)),a+"#"+E(v+d(e))},push:function(e,t){var a="PUSH",n=u(e,void 0,void 0,z.location);N.confirmTransitionTo(n,a,i,(function(e){if(e){var t=d(n),s=E(v+t);if(C()!==s){Z=t,function(e){window.location.hash=e}(s);var i=O.lastIndexOf(d(z.location)),r=O.slice(0,i+1);r.push(t),O=r,x({action:a,location:n})}else x()}}))},replace:function(e,t){var a="REPLACE",n=u(e,void 0,void 0,z.location);N.confirmTransitionTo(n,a,i,(function(e){if(e){var t=d(n),s=E(v+t);C()!==s&&(Z=t,j(s));var i=O.indexOf(d(z.location));-1!==i&&(O[i]=t),x({action:a,location:n})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=N.setPrompt(e);return U||(D(1),U=!0),function(){return U&&(U=!1,D(-1)),t()}},listen:function(e){var t=N.appendListener(e);return D(1),function(){D(-1),t()}}};return z}function N(e,t,a){return Math.min(Math.max(e,t),a)}function x(e){void 0===e&&(e={});var t=e,a=t.getUserConfirmation,s=t.initialEntries,i=void 0===s?["/"]:s,r=t.initialIndex,o=void 0===r?0:r,c=t.keyLength,l=void 0===c?6:c,p=h();function m(e){(0,n.Z)(_,e),_.length=_.entries.length,p.notifyListeners(_.location,_.action)}function g(){return Math.random().toString(36).substr(2,l)}var k=N(o,0,i.length-1),v=i.map((function(e){return u(e,void 0,"string"==typeof e?g():e.key||g())})),f=d;function E(e){var t=N(_.index+e,0,_.entries.length-1),n=_.entries[t];p.confirmTransitionTo(n,"POP",a,(function(e){e?m({action:"POP",location:n,index:t}):m()}))}var _={length:v.length,action:"POP",location:v[k],index:k,entries:v,createHref:f,push:function(e,t){var n="PUSH",s=u(e,t,g(),_.location);p.confirmTransitionTo(s,n,a,(function(e){if(e){var t=_.index+1,a=_.entries.slice(0);a.length>t?a.splice(t,a.length-t,s):a.push(s),m({action:n,location:s,index:t,entries:a})}}))},replace:function(e,t){var n="REPLACE",s=u(e,t,g(),_.location);p.confirmTransitionTo(s,n,a,(function(e){e&&(_.entries[_.index]=s,m({action:n,location:s}))}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),p.setPrompt(e)},listen:function(e){return p.appendListener(e)}};return _}},57692:(e,t,a)=>{"use strict";var n=a(93801),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function c(e){return n.isMemo(e)?r:o[e.$$typeof]||s}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=r;var l=Object.defineProperty,p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,a,n){if("string"!=typeof a){if(h){var s=m(a);s&&s!==h&&e(t,s,n)}var r=p(a);d&&(r=r.concat(d(a)));for(var o=c(t),g=c(a),k=0;k<r.length;++k){var v=r[k];if(!(i[v]||n&&n[v]||g&&g[v]||o&&o[v])){var f=u(a,v);try{l(t,v,f)}catch(e){}}}}return t}},97676:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1488:()=>{},56878:()=>{},40888:()=>{},59961:()=>{},73443:()=>{},58449:()=>{},86508:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={error:"TcCZnGE6mad8Dvz9pCZi",button:"_mn6o2Dtm5pfFWc8_A1K"}},17472:()=>{},62103:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},64460:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={chip:"ewN_uq5NKbSEO_kL_aRc","is-new":"QuvPmreerZFfqsPl6Wo4"}},46172:()=>{},81285:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={"global-notices":"jT9Kt2ZTvxPKDQ1pa7sN"}},53351:()=>{},67742:()=>{},45460:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={"star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",bluesky:"aLWBKY0yRghEk7tNCgK3",facebook:"aHOlEBGD5EA8NKRw3xTw",instagram:"cL3m0xBYTYhIKI7lCqDB",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43",mastodon:"DKOBOTVmTLbh26gUH_73",nextdoor:"n5XodNsuMfMAAvqHFmbw",whatsapp:"fftumuc_lJ6v0tq4UMVR",threads:"inzgC27qxdt7hSdhTWRI"}},33527:()=>{},49710:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)"}},31418:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smCols:"4",mdCols:"8",lgCols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},87054:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},12077:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={container:"VHYulMcpzbr10HWR0iSE","icon-wrapper":"FGpSkMCiIHQjszcV0dbn","close-button":"KoWZcCwhW13xvkEb0QON","main-content":"smrfczkC53EaFM8OJUXs",title:"IKYRWoPwt9xOVEx1wzNS","action-bar":"qM0qY6mPYp1MPN54A3Kg","is-error":"A5YkDkkXuiYgavrY6Nux",icon:"y_IPyP1wIAOhyNaqvXJq","is-warning":"cT5rwuPMZzWvi5o6shMl","is-info":"yo0O3uvNomPsYUXFCpAS","is-success":"oZdDFf1jBLkzn5ICCC6x"}},37387:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={container:"dovianZYLKhnbnh9I06o","price-container":"lljtQMhW7lq5tE5SDJEf","promo-label":"NubApIV1vQCRUNprfm6b",price:"dhFQXpZfMwVI8vuYHnwC","is-not-off-price":"eD7hzxFmdtG_MgmBtl_k",footer:"C64ZjjUAqJC1T2Sa7apS",legend:"UpZDGew6Ay1hPoP6eI7b",symbol:"TDiiPbuW1Z0_05u_pvcK"}},11334:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={wrapper:"McCYJ2ErFiztX2NeMRou",small:"BzRvZWnrBa4JjQY0uluD",progress:"DKqdDLOgkrxCkDzKGT87"}},31703:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={radio:"XtKE4JhFVI_Vc8GiILir"}},34086:()=>{},48026:()=>{},49807:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={status:"bZ4b33s2MdcOjaDKBbeV",status__indicator:"UzkzDaqt2mXprJh2OXRz",status__label:"QuS0vdcr87FsiBvSSrvA","is-active":"bGx0wbQAwuY7k8P3PHVQ","is-inactive":"wR8Cz8uHgObTQavolv5y","is-error":"IzbBYGwBKhSYFUQlIMww","is-action":"Kdvp_HJf89IBrZuCaLm8","is-initializing":"hVf5vsbBWm8OFye7cy7a"}},67660:()=>{},85837:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},93468:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={global:"_fUXxnSp5pagKBp9gSN7"}},87999:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={toggle:"gecp_0Z0owRZtj8JAYir","is-small":"qgKXEdMmHsIK84VDnLO2","no-label":"Vy6dbB4PsGKm8BDqzJ9J","is-toggling":"ykWv7fKpkVW_vpAoddu4"}},81737:()=>{},54590:()=>{},15035:()=>{},22202:()=>{},52741:()=>{},88043:()=>{},9459:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={"jp-wrap":"EiaNctK1_P9pPqOeiaSI","jp-row":"ogHZg_sJCljylz3VJfsf","sm-col-span-1":"zv7eGvijKRkbPVakubHw","sm-col-span-2":"VoJNoiya_1ck3_kXS6_C","sm-col-span-3":"ecv0NO526NoTNbpALA1A","sm-col-span-4":"OfBdkceMzeHvRbzhqDlP","md-col-span-1":"JLb3NpEKN8pOaWd7K1bu","md-col-span-2":"fsMPGqPKE4mjMIPFwl77","md-col-span-3":"DIK_zdaGAQ09eKspBJ4E","md-col-span-4":"shXYpxPu3WCJsR8aOHtz","md-col-span-5":"s7ElrOqG_yGd5SIfwqOR","md-col-span-6":"Cxml9uzGvArAL8_RDs_p","md-col-span-7":"aANxBKDGx72eDqU0iUPj","md-col-span-8":"XxyzuTY3mnQcl9EGZadm","lg-col-span-1":"Sfo4WaSNIWInJ93Abd3w","lg-col-span-2":"tQS7SKUGrU4THhWMysbo","lg-col-span-3":"I94U7mpY4h16pcOksZNF","lg-col-span-4":"uWMb9k77kQxBdS5MTt0s","lg-col-span-5":"rKwEEZQxK9s_POMg5Jss","lg-col-span-6":"UcPXX_s06IPCkF7ZjH3D","lg-col-span-7":"CrQdtiCFkRbzY6K2dFvt","lg-col-span-8":"rEUALOmOdUBXO0Us871z","lg-col-span-9":"NqXa9TlcTEviVsB53hBV","lg-col-span-10":"OnWVeiQiwgQ9lzdGPW66","lg-col-span-11":"D2PkTcy7b8u2K9QXY6VQ","lg-col-span-12":"EcqBhzAyxo5RDc2Y6m7K","md-col-span-0":"gB1mWzHOM38d80lrhBRX","sm-col-span-0":"KNQXLP78ejczOkour3zg","jp-cut":"rBVbaVWBnBRtTMrUKZxm",modal:"gfM_DIJrVbRhmKdAphIm","jetpack-logo":"zfJfONxRAw0fHjXUS7LN",animating:"pnwbCuWbV0PNQr1LFpRh",button:"_j4GWTmW5psCHFYh6R0x",headline:"saSAjv8yulVXQDoqDJEI",paragraph:"O_hcdbeMivIhBn7ApDnS","jetpack-logo-triangles":"FCnyb_xCK7DhJ63p6TEd","video-wrap":"Qn5xayjI_jH2m1d6BEoq",videoMove:"OmAVpCQ270MqI4IsT9Ky",slidein:"Axe8f2LgqEBZHVcsRgY5","content-wrap":"iBMDoShSmqpt72YfJb36","hi-user":"eQG1KKK8jjKtQyzfv573","content-wrap-text":"l35bIyiqYJiZ6tVYvJtC","powers-wrap":"HQVDZ6J3x6SJNYFX5khS","jetpack-products":"KdvmPIjelQIFiPQGuIYf"}},75124:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={wrapper:"O5Go3eBOBqWlXy7fX0su","connection-name":"fgQ4OdnJ1svMwDnOKu2H","profile-link":"ArQoWnNoP4okGpEbxF6b",confirmDialog:"QsEfjoVyfc0gVACXTvUM","mark-shared-wrap":"eCH_xkiqbqL0UkJjU_1p","connection-panel":"J2Rz6Qb6mWPyJDF0yoqw","connection-list":"fXYYdRkn3LXtN9YH3354","connection-list-item":"LaK9P7Nfi4ZBH0NhtbSs","connection-item":"tI3FtttoJPuF9AJzCAMv","connection-item-name":"msoMjBB_4Uq5qpRgobsH","learn-more":"RjMLptH6v03AX5ABWBp3","connection-name-wrapper":"z5Do97zRnujyW3Oj0pPJ"}},91853:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={"connection-container":"KQcQQLxH5fI08DfOlKwL"}},75631:()=>{"use strict"},58487:()=>{"use strict"},31182:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={confirmation:"udAWaza1u34TkmZZUPq4","header-text":"JsO4jFxFAKjG6Go62bZF",form:"SeoSfJ6eII9O0PiDkl5g","accounts-list":"M6POQFFbhswwolN6D9VN","account-input":"Sk_WQxS97yTokR_rM3Ci","account-label":"CRjatFVv3dQMjG9_Vmjj","submit-wrap":"re3HrL6GJa59uqDgx771","profile-pic":"jPB4ApiYyEswu6AKKJqk","account-info":"JhIphWt8e2X_ee0l7KEZ"}},16845:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={modal:"Mu_jAq5ZcYDM1kmBbxcs","connect-form":"foAsC5GlXOWEzACnxT_P",small:"_7PKKGx44v2H9dJbUltFw"}},42911:()=>{"use strict"},69339:()=>{"use strict"},45811:()=>{"use strict"},82283:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={notice:"ptn8jt555LOvMXWaoLxs","notice--default":"IVzciZv5S5E8XgR5EsLp","notice--highlight":"OpbDsm3F65Z4K5Bz43cz","notice--warning":"dlrSwB0tyuf1TYcypDec","notice--error":"hkpqil8E11PObwu7TVU2",content:"AeqtA3GRe7sFjKaC9SqL",dismiss:"IArBTmNL2K4du5WPBUhg",actions:"T7E2eJJN4qjwPpv3mcjV"}},23761:()=>{"use strict"},45078:()=>{"use strict"},2097:()=>{"use strict"},90934:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={services:"SbpyhN5jnda8H868J3rX","service-list-item":"ONeewrk3aNC1gYJebq7K","service-item":"RoTxOeGFqAwk3pXUZpvF","service-item-info":"AjlYaYB_xi9ciXXCqHIJ","service-basics":"kdYli5nS3b46T57Ih5TQ",heading:"ci8T5eNe1rggYILce596",badges:"W6mPdl5wGQlXfp1hYSK0",badge:"QbcyaAVqz3U_2xlIOZCw",title:"fXvUC1jZNUXR7RSrIylI",description:"d22_aeSA1etqpnckP_Mr",actions:"ddhaNmGMqOySRjR_TtqJ","learn-more":"nnSF_IK4vYviTlCOzPrg","service-panel":"u17AiTny2Jbh35JFAUYw","connect-form-wrapper":"U_Z9JvOsEQ6BtkH9P1IQ","active-connection":"MyXskAb4aXwO7zitR97z","broken-connection":"LpDFeX3TrFuPiNG4xH0i","service-connection-list":"Y_4JpLfOnXVZKvEs179H","example-wrapper":"jdahJvXCrCw0hA5NP3D3",small:"LLeYGX7Owy6gmpNW88VV","service-connection":"EdjyE9tVLH6lWMoB9z3M","connection-details":"EQQHwkVXRn0caD6J7LqV","profile-pic":"vvlyiVm67wUWF9NhpMA4",disconnect:"zqX6xk8KCGK1_qbYKqY5","connect-form":"fNeO_MZFp7cPkgtCdkAF","connect-button":"zK8sijAMFNs2m6WRAoi4","mark-shared-wrap":"zLobzkXnF6jHxNvkfz5_"}},30664:()=>{"use strict"},73640:()=>{"use strict"},40088:()=>{"use strict"},15214:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={footer:"WJ5nPw0EHj7eoNZB06TW"}},47320:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={templates:"m9360_cMWKFHTNk9xpNz",template:"j4EvSJfKIJLGEIAETiEY","template--active":"dQb3Zpl0puk4V6ezZslo"}},28161:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={"publicize-notice":"__nV49on4_ijaV8Brnsw","components-notice":"zZ3Pu7E87XyYIdPR2WTt","components-button":"fLC8AaLf3xcKaoJ4Opax"}},87728:()=>{"use strict"},29740:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={"relative-col":"EUbhyoMhxLWDWad8oB4x","close-link":"JMN8T8oXOn_1IPEIdVFA","account-description":"UNcC1tzv3Ac1W70lnF5h","account-images":"lRoFwOQkX43bRDUcEHDg",wordpress:"A1rQc5jLMOXXd970FJpb",google:"eZpAOdXY2sg81NpZXyIT",apple:"_OSiCTrO9lGPriEoUQJQ","all-features":"mEHVJ_kWwCd0ahLsC0rs"}},73171:e=>{var t=1e3,a=60*t,n=60*a,s=24*n,i=7*s,r=365.25*s;function o(e,t,a,n){var s=t>=1.5*a;return Math.round(e/a)+" "+n+(s?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var c=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*r;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*s;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*a;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=s)return o(e,i,s,"day");if(i>=n)return o(e,i,n,"hour");if(i>=a)return o(e,i,a,"minute");if(i>=t)return o(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=s)return Math.round(e/s)+"d";if(i>=n)return Math.round(e/n)+"h";if(i>=a)return Math.round(e/a)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},20070:(e,t,a)=>{var n=a(97676);e.exports=m,e.exports.parse=i,e.exports.compile=function(e,t){return o(i(e,t),t)},e.exports.tokensToFunction=o,e.exports.tokensToRegExp=u;var s=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var a,n=[],i=0,r=0,o="",p=t&&t.delimiter||"/";null!=(a=s.exec(e));){var d=a[0],u=a[1],m=a.index;if(o+=e.slice(r,m),r=m+d.length,u)o+=u[1];else{var h=e[r],g=a[2],k=a[3],v=a[4],f=a[5],E=a[6],_=a[7];o&&(n.push(o),o="");var b=null!=g&&null!=h&&h!==g,y="+"===E||"*"===E,w="?"===E||"*"===E,C=a[2]||p,j=v||f;n.push({name:k||i++,prefix:g||"",delimiter:C,optional:w,repeat:y,partial:b,asterisk:!!_,pattern:j?l(j):_?".*":"[^"+c(C)+"]+?"})}}return r<e.length&&(o+=e.substr(r)),o&&n.push(o),n}function r(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function o(e,t){for(var a=new Array(e.length),s=0;s<e.length;s++)"object"==typeof e[s]&&(a[s]=new RegExp("^(?:"+e[s].pattern+")$",d(t)));return function(t,s){for(var i="",o=t||{},c=(s||{}).pretty?r:encodeURIComponent,l=0;l<e.length;l++){var p=e[l];if("string"!=typeof p){var d,u=o[p.name];if(null==u){if(p.optional){p.partial&&(i+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(n(u)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var m=0;m<u.length;m++){if(d=c(u[m]),!a[l].test(d))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===m?p.prefix:p.delimiter)+d}}else{if(d=p.asterisk?encodeURI(u).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(u),!a[l].test(d))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+d+'"');i+=p.prefix+d}}else i+=p}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function u(e,t,a){n(t)||(a=t||a,t=[]);for(var s=(a=a||{}).strict,i=!1!==a.end,r="",o=0;o<e.length;o++){var l=e[o];if("string"==typeof l)r+=c(l);else{var u=c(l.prefix),m="(?:"+l.pattern+")";t.push(l),l.repeat&&(m+="(?:"+u+m+")*"),r+=m=l.optional?l.partial?u+"("+m+")?":"(?:"+u+"("+m+"))?":u+"("+m+")"}}var h=c(a.delimiter||"/"),g=r.slice(-h.length)===h;return s||(r=(g?r.slice(0,-h.length):r)+"(?:"+h+"(?=$))?"),r+=i?"$":s&&g?"":"(?="+h+"|$)",p(new RegExp("^"+r,d(a)),t)}function m(e,t,a){return n(t)||(a=t||a,t=[]),a=a||{},e instanceof RegExp?function(e,t){var a=e.source.match(/\((?!\?)/g);if(a)for(var n=0;n<a.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(e,t)}(e,t):n(e)?function(e,t,a){for(var n=[],s=0;s<e.length;s++)n.push(m(e[s],t,a).source);return p(new RegExp("(?:"+n.join("|")+")",d(a)),t)}(e,t,a):function(e,t,a){return u(i(e,a),t,a)}(e,t,a)}},469:(e,t,a)=>{"use strict";var n=a(90758);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,a,s,i,r){if(r!==n){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return a.PropTypes=a,a}},25162:(e,t,a)=>{e.exports=a(469)()},90758:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},47556:(e,t,a)=>{"use strict";var n=a(33713);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,a,s,i,r){if(r!==n){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return a.PropTypes=a,a}},15844:(e,t,a)=>{e.exports=a(47556)()},33713:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8922:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,s=a?Symbol.for("react.portal"):60106,i=a?Symbol.for("react.fragment"):60107,r=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,l=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,u=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,k=a?Symbol.for("react.lazy"):60116,v=a?Symbol.for("react.block"):60121,f=a?Symbol.for("react.fundamental"):60117,E=a?Symbol.for("react.responder"):60118,_=a?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case p:case d:case i:case o:case r:case m:return e;default:switch(e=e&&e.$$typeof){case l:case u:case k:case g:case c:return e;default:return t}}case s:return t}}}function y(e){return b(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=k,t.Memo=g,t.Portal=s,t.Profiler=o,t.StrictMode=r,t.Suspense=m,t.isAsyncMode=function(e){return y(e)||b(e)===p},t.isConcurrentMode=y,t.isContextConsumer=function(e){return b(e)===l},t.isContextProvider=function(e){return b(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===u},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===k},t.isMemo=function(e){return b(e)===g},t.isPortal=function(e){return b(e)===s},t.isProfiler=function(e){return b(e)===o},t.isStrictMode=function(e){return b(e)===r},t.isSuspense=function(e){return b(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===o||e===r||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===k||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===E||e.$$typeof===_||e.$$typeof===v)},t.typeOf=b},93801:(e,t,a)=>{"use strict";e.exports=a(8922)},4223:(e,t)=>{"use strict";var a=60103,n=60106,s=60107,i=60108,r=60114,o=60109,c=60110,l=60112,p=60113,d=60120,u=60115,m=60116,h=60121,g=60122,k=60117,v=60129,f=60131;if("function"==typeof Symbol&&Symbol.for){var E=Symbol.for;a=E("react.element"),n=E("react.portal"),s=E("react.fragment"),i=E("react.strict_mode"),r=E("react.profiler"),o=E("react.provider"),c=E("react.context"),l=E("react.forward_ref"),p=E("react.suspense"),d=E("react.suspense_list"),u=E("react.memo"),m=E("react.lazy"),h=E("react.block"),g=E("react.server.block"),k=E("react.fundamental"),v=E("react.debug_trace_mode"),f=E("react.legacy_hidden")}function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case s:case r:case i:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case m:case u:case o:return e;default:return t}}case n:return t}}}t.isContextConsumer=function(e){return _(e)===c}},51637:(e,t,a)=>{"use strict";e.exports=a(4223)},30373:(e,t,a)=>{"use strict";a.d(t,{E:()=>s});var n=a(99196),s=a.n(n)().createContext(null)},31290:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(99196),s=a.n(n),i=a(30373),r=a(95053),o=a(40999);const c=function(e){var t=e.store,a=e.context,c=e.children,l=(0,n.useMemo)((function(){var e=(0,r.X)(t);return{store:t,subscription:e}}),[t]),p=(0,n.useMemo)((function(){return t.getState()}),[t]);(0,o.L)((function(){var e=l.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),p!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[l,p]);var d=a||i.E;return s().createElement(d.Provider,{value:l},c)}},35642:(e,t,a)=>{"use strict";a.d(t,{Z:()=>y});var n=a(80255),s=a(37921),i=a(57692),r=a.n(i),o=a(99196),c=a.n(o),l=a(51637),p=a(95053),d=a(40999),u=a(30373),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],h=["reactReduxForwardedRef"],g=[],k=[null,null];function v(e,t){var a=e[1];return[t.payload,a+1]}function f(e,t,a){(0,d.L)((function(){return e.apply(void 0,t)}),a)}function E(e,t,a,n,s,i,r){e.current=n,t.current=s,a.current=!1,i.current&&(i.current=null,r())}function _(e,t,a,n,s,i,r,o,c,l){if(e){var p=!1,d=null,u=function(){if(!p){var e,a,u=t.getState();try{e=n(u,s.current)}catch(e){a=e,d=e}a||(d=null),e===i.current?r.current||c():(i.current=e,o.current=e,r.current=!0,l({type:"STORE_UPDATED",payload:{error:a}}))}};a.onStateChange=u,a.trySubscribe(),u();return function(){if(p=!0,a.tryUnsubscribe(),a.onStateChange=null,d)throw d}}}var b=function(){return[null,0]};function y(e,t){void 0===t&&(t={});var a=t,i=a.getDisplayName,d=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,y=a.methodName,w=void 0===y?"connectAdvanced":y,C=a.renderCountProp,j=void 0===C?void 0:C,S=a.shouldHandleStateChanges,N=void 0===S||S,x=a.storeKey,R=void 0===x?"store":x,Z=(a.withRef,a.forwardRef),T=void 0!==Z&&Z,A=a.context,M=void 0===A?u.E:A,P=(0,s.Z)(a,m),O=M;return function(t){var a=t.displayName||t.name||"Component",i=d(a),u=(0,n.Z)({},P,{getDisplayName:d,methodName:w,renderCountProp:j,shouldHandleStateChanges:N,storeKey:R,displayName:i,wrappedComponentName:a,WrappedComponent:t}),m=P.pure;var y=m?o.useMemo:function(e){return e()};function C(a){var i=(0,o.useMemo)((function(){var e=a.reactReduxForwardedRef,t=(0,s.Z)(a,h);return[a.context,e,t]}),[a]),r=i[0],d=i[1],m=i[2],w=(0,o.useMemo)((function(){return r&&r.Consumer&&(0,l.isContextConsumer)(c().createElement(r.Consumer,null))?r:O}),[r,O]),C=(0,o.useContext)(w),j=Boolean(a.store)&&Boolean(a.store.getState)&&Boolean(a.store.dispatch);Boolean(C)&&Boolean(C.store);var S=j?a.store:C.store,x=(0,o.useMemo)((function(){return function(t){return e(t.dispatch,u)}(S)}),[S]),R=(0,o.useMemo)((function(){if(!N)return k;var e=(0,p.X)(S,j?null:C.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,j,C]),Z=R[0],T=R[1],A=(0,o.useMemo)((function(){return j?C:(0,n.Z)({},C,{subscription:Z})}),[j,C,Z]),M=(0,o.useReducer)(v,g,b),P=M[0][0],L=M[1];if(P&&P.error)throw P.error;var I=(0,o.useRef)(),D=(0,o.useRef)(m),U=(0,o.useRef)(),z=(0,o.useRef)(!1),V=y((function(){return U.current&&m===D.current?U.current:x(S.getState(),m)}),[S,P,m]);f(E,[D,I,z,m,V,U,T]),f(_,[N,S,Z,x,D,I,z,U,T,L],[S,Z,x]);var F=(0,o.useMemo)((function(){return c().createElement(t,(0,n.Z)({},V,{ref:d}))}),[d,t,V]);return(0,o.useMemo)((function(){return N?c().createElement(w.Provider,{value:A},F):F}),[w,F,A])}var S=m?c().memo(C):C;if(S.WrappedComponent=t,S.displayName=C.displayName=i,T){var x=c().forwardRef((function(e,t){return c().createElement(S,(0,n.Z)({},e,{reactReduxForwardedRef:t}))}));return x.displayName=i,x.WrappedComponent=t,r()(x,t)}return r()(S,t)}}},51479:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var n=a(80255),s=a(37921),i=a(35642),r=a(38588),o=a(72320),c=a(22004),l=a(24769),p=a(98164),d=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function u(e,t,a){for(var n=t.length-1;n>=0;n--){var s=t[n](e);if(s)return s}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+n.wrappedComponentName+".")}}function m(e,t){return e===t}function h(e){var t=void 0===e?{}:e,a=t.connectHOC,h=void 0===a?i.Z:a,g=t.mapStateToPropsFactories,k=void 0===g?c.ZP:g,v=t.mapDispatchToPropsFactories,f=void 0===v?o.ZP:v,E=t.mergePropsFactories,_=void 0===E?l.ZP:E,b=t.selectorFactory,y=void 0===b?p.ZP:b;return function(e,t,a,i){void 0===i&&(i={});var o=i,c=o.pure,l=void 0===c||c,p=o.areStatesEqual,g=void 0===p?m:p,v=o.areOwnPropsEqual,E=void 0===v?r.Z:v,b=o.areStatePropsEqual,w=void 0===b?r.Z:b,C=o.areMergedPropsEqual,j=void 0===C?r.Z:C,S=(0,s.Z)(o,d),N=u(e,k,"mapStateToProps"),x=u(t,f,"mapDispatchToProps"),R=u(a,_,"mergeProps");return h(y,(0,n.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:N,initMapDispatchToProps:x,initMergeProps:R,pure:l,areStatesEqual:g,areOwnPropsEqual:E,areStatePropsEqual:w,areMergedPropsEqual:j},S))}}const g=h()},72320:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>i});var n=a(57059),s=a(70278);const i=[function(e){return"function"==typeof e?(0,s.xv)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,s.dX)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,s.dX)((function(t){return(0,n.Z)(e,t)})):void 0}]},22004:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>s});var n=a(70278);const s=[function(e){return"function"==typeof e?(0,n.xv)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,n.dX)((function(){return{}}))}]},24769:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>i});var n=a(80255);function s(e,t,a){return(0,n.Z)({},a,e,t)}const i=[function(e){return"function"==typeof e?function(e){return function(t,a){a.displayName;var n,s=a.pure,i=a.areMergedPropsEqual,r=!1;return function(t,a,o){var c=e(t,a,o);return r?s&&i(c,n)||(n=c):(r=!0,n=c),n}}}(e):void 0},function(e){return e?void 0:function(){return s}}]},98164:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>o});var n=a(37921),s=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function i(e,t,a,n){return function(s,i){return a(e(s,i),t(n,i),i)}}function r(e,t,a,n,s){var i,r,o,c,l,p=s.areStatesEqual,d=s.areOwnPropsEqual,u=s.areStatePropsEqual,m=!1;function h(s,m){var h,g,k=!d(m,r),v=!p(s,i);return i=s,r=m,k&&v?(o=e(i,r),t.dependsOnOwnProps&&(c=t(n,r)),l=a(o,c,r)):k?(e.dependsOnOwnProps&&(o=e(i,r)),t.dependsOnOwnProps&&(c=t(n,r)),l=a(o,c,r)):v?(h=e(i,r),g=!u(h,o),o=h,g&&(l=a(o,c,r)),l):l}return function(s,p){return m?h(s,p):(o=e(i=s,r=p),c=t(n,r),l=a(o,c,r),m=!0,l)}}function o(e,t){var a=t.initMapStateToProps,o=t.initMapDispatchToProps,c=t.initMergeProps,l=(0,n.Z)(t,s),p=a(e,l),d=o(e,l),u=c(e,l);return(l.pure?r:i)(p,d,u,e,l)}},70278:(e,t,a)=>{"use strict";function n(e){return function(t,a){var n=e(t,a);function s(){return n}return s.dependsOnOwnProps=!1,s}}function s(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function i(e,t){return function(t,a){a.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,a){n.mapToProps=e,n.dependsOnOwnProps=s(e);var i=n(t,a);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=s(i),i=n(t,a)),i},n}}a.d(t,{dX:()=>n,xv:()=>i})},91654:(e,t,a)=>{"use strict";a.d(t,{$j:()=>i.Z,ET:()=>s.E,zt:()=>n.Z});var n=a(31290),s=(a(35642),a(30373)),i=a(51479);a(87518),a(68882),a(46271)},87518:(e,t,a)=>{"use strict";a(30373),a(46271)},82830:(e,t,a)=>{"use strict";a(99196),a(30373)},68882:(e,t,a)=>{"use strict";a(99196),a(82830),a(95053),a(40999),a(30373)},46271:(e,t,a)=>{"use strict";a(99196),a(30373),a(82830)},59309:(e,t,a)=>{"use strict";a.d(t,{$j:()=>n.$j,ET:()=>n.ET,zt:()=>n.zt});var n=a(91654),s=a(79523);(0,a(72935).F)(s.m)},95053:(e,t,a)=>{"use strict";a.d(t,{X:()=>i});var n=a(72935);var s={notify:function(){},get:function(){return[]}};function i(e,t){var a,i=s;function r(){c.onStateChange&&c.onStateChange()}function o(){var s,o,c;a||(a=t?t.addNestedSub(r):e.subscribe(r),s=(0,n.k)(),o=null,c=null,i={clear:function(){o=null,c=null},notify:function(){s((function(){for(var e=o;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=o;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,a=c={callback:e,next:null,prev:c};return a.prev?a.prev.next=a:o=a,function(){t&&null!==o&&(t=!1,a.next?a.next.prev=a.prev:c=a.prev,a.prev?a.prev.next=a.next:o=a.next)}}})}var c={addNestedSub:function(e){return o(),i.subscribe(e)},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(a)},trySubscribe:o,tryUnsubscribe:function(){a&&(a(),a=void 0,i.clear(),i=s)},getListeners:function(){return i}};return c}},72935:(e,t,a)=>{"use strict";a.d(t,{F:()=>s,k:()=>i});var n=function(e){e()},s=function(e){return n=e},i=function(){return n}},57059:(e,t,a)=>{"use strict";function n(e,t){var a={},n=function(n){var s=e[n];"function"==typeof s&&(a[n]=function(){return t(s.apply(void 0,arguments))})};for(var s in e)n(s);return a}a.d(t,{Z:()=>n})},79523:(e,t,a)=>{"use strict";a.d(t,{m:()=>n.unstable_batchedUpdates});var n=a(91850)},38588:(e,t,a)=>{"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function s(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(var i=0;i<a.length;i++)if(!Object.prototype.hasOwnProperty.call(t,a[i])||!n(e[a[i]],t[a[i]]))return!1;return!0}a.d(t,{Z:()=>s})},40999:(e,t,a)=>{"use strict";a.d(t,{L:()=>s});var n=a(99196),s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},27453:(e,t,a)=>{"use strict";a.d(t,{UT:()=>d});var n=a(44498),s=a(41806),i=a(99196),r=a.n(i),o=a(92511),c=a(80255),l=a(37921),p=a(94262);r().Component;var d=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).history=(0,o.q_)(t.props),t}return(0,s.Z)(t,e),t.prototype.render=function(){return r().createElement(n.F0,{history:this.history,children:this.props.children})},t}(r().Component);var u=function(e,t){return"function"==typeof e?e(t):e},m=function(e,t){return"string"==typeof e?(0,o.ob)(e,null,null,t):e},h=function(e){return e},g=r().forwardRef;void 0===g&&(g=h);var k=g((function(e,t){var a=e.innerRef,n=e.navigate,s=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),o=i.target,p=(0,c.Z)({},i,{onClick:function(e){try{s&&s(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||o&&"_self"!==o||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return p.ref=h!==g&&t||a,r().createElement("a",p)}));var v=g((function(e,t){var a=e.component,s=void 0===a?k:a,i=e.replace,d=e.to,v=e.innerRef,f=(0,l.Z)(e,["component","replace","to","innerRef"]);return r().createElement(n.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var a=e.history,n=m(u(d,e.location),e.location),l=n?a.createHref(n):"",k=(0,c.Z)({},f,{href:l,navigate:function(){var t=u(d,e.location),n=(0,o.Ep)(e.location)===(0,o.Ep)(m(t));(i||n?a.replace:a.push)(t)}});return h!==g?k.ref=t||v:k.innerRef=v,r().createElement(s,k)}))})),f=function(e){return e},E=r().forwardRef;void 0===E&&(E=f);E((function(e,t){var a=e["aria-current"],s=void 0===a?"page":a,i=e.activeClassName,o=void 0===i?"active":i,d=e.activeStyle,h=e.className,g=e.exact,k=e.isActive,_=e.location,b=e.sensitive,y=e.strict,w=e.style,C=e.to,j=e.innerRef,S=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r().createElement(n.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var a=_||e.location,i=m(u(C,a),a),l=i.pathname,N=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=N?(0,n.LX)(a.pathname,{path:N,exact:g,sensitive:b,strict:y}):null,R=!!(k?k(x,a):x),Z="function"==typeof h?h(R):h,T="function"==typeof w?w(R):w;R&&(Z=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((function(e){return e})).join(" ")}(Z,o),T=(0,c.Z)({},T,d));var A=(0,c.Z)({"aria-current":R&&s||null,className:Z,style:T,to:i},S);return f!==E?A.ref=t||j:A.innerRef=j,r().createElement(v,A)}))}))},44498:(e,t,a)=>{"use strict";a.d(t,{AW:()=>P,EN:()=>V,F0:()=>y,LX:()=>M,NL:()=>C,l_:()=>R,rs:()=>z,s6:()=>b});var n=a(41806),s=a(99196),i=a.n(s),r=a(15844),o=a.n(r),c=a(92511),l=a(94262),p=a(80255),d=a(20070),u=a.n(d),m=(a(93801),a(37921)),h=a(57692),g=a.n(h),k=1073741823,v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window||"undefined"!=typeof window?window:{};var f=i().createContext||function(e,t){var a,s,r="__create-react-context-"+function(){var e="__global_unique_id__";return v[e]=(v[e]||0)+1}()+"__",c=function(e){function a(){for(var t,a,n,s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(a=t.props.value,n=[],{on:function(e){n.push(e)},off:function(e){n=n.filter((function(t){return t!==e}))},get:function(){return a},set:function(e,t){a=e,n.forEach((function(e){return e(a,t)}))}}),t}(0,n.Z)(a,e);var s=a.prototype;return s.getChildContext=function(){var e;return(e={})[r]=this.emitter,e},s.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var a,n=this.props.value,s=e.value;((i=n)===(r=s)?0!==i||1/i==1/r:i!=i&&r!=r)?a=0:(a="function"==typeof t?t(n,s):k,0!==(a|=0)&&this.emitter.set(e.value,a))}var i,r},s.render=function(){return this.props.children},a}(i().Component);c.childContextTypes=((a={})[r]=o().object.isRequired,a);var l=function(t){function a(){for(var e,a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return(e=t.call.apply(t,[this].concat(n))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,a){(0|e.observedBits)&a&&e.setState({value:e.getValue()})},e}(0,n.Z)(a,t);var s=a.prototype;return s.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?k:t},s.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?k:e},s.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},s.getValue=function(){return this.context[r]?this.context[r].get():e},s.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},a}(i().Component);return l.contextTypes=((s={})[r]=o().object,s),{Provider:c,Consumer:l}},E=function(e){var t=f();return t.displayName=e,t},_=E("Router-History"),b=E("Router"),y=function(e){function t(t){var a;return(a=e.call(this,t)||this).state={location:t.history.location},a._isMounted=!1,a._pendingLocation=null,t.staticContext||(a.unlisten=t.history.listen((function(e){a._pendingLocation=e}))),a}(0,n.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var a=t.prototype;return a.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},a.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},a.render=function(){return i().createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(_.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i().Component);i().Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,n.Z)(t,e);var a=t.prototype;return a.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},a.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},a.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},a.render=function(){return null},t}(i().Component);function C(e){var t=e.message,a=e.when,n=void 0===a||a;return i().createElement(b.Consumer,null,(function(e){if(e||(0,l.Z)(!1),!n||e.staticContext)return null;var a=e.history.block;return i().createElement(w,{onMount:function(e){e.release=a(t)},onUpdate:function(e,n){n.message!==t&&(e.release(),e.release=a(t))},onUnmount:function(e){e.release()},message:t})}))}var j={},S=1e4,N=0;function x(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(j[e])return j[e];var t=u().compile(e);return N<S&&(j[e]=t,N++),t}(e)(t,{pretty:!0})}function R(e){var t=e.computedMatch,a=e.to,n=e.push,s=void 0!==n&&n;return i().createElement(b.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=e.history,r=e.staticContext,o=s?n.push:n.replace,d=(0,c.ob)(t?"string"==typeof a?x(a,t.params):(0,p.Z)({},a,{pathname:x(a.pathname,t.params)}):a);return r?(o(d),null):i().createElement(w,{onMount:function(){o(d)},onUpdate:function(e,t){var a=(0,c.ob)(t.to);(0,c.Hp)(a,(0,p.Z)({},d,{key:a.key}))||o(d)},to:a})}))}var Z={},T=1e4,A=0;function M(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var a=t,n=a.path,s=a.exact,i=void 0!==s&&s,r=a.strict,o=void 0!==r&&r,c=a.sensitive,l=void 0!==c&&c;return[].concat(n).reduce((function(t,a){if(!a&&""!==a)return null;if(t)return t;var n=function(e,t){var a=""+t.end+t.strict+t.sensitive,n=Z[a]||(Z[a]={});if(n[e])return n[e];var s=[],i={regexp:u()(e,s,t),keys:s};return A<T&&(n[e]=i,A++),i}(a,{end:i,strict:o,sensitive:l}),s=n.regexp,r=n.keys,c=s.exec(e);if(!c)return null;var p=c[0],d=c.slice(1),m=e===p;return i&&!m?null:{path:a,url:"/"===a&&""===p?"/":p,isExact:m,params:r.reduce((function(e,t,a){return e[t.name]=d[a],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var a=e.props.location||t.location,n=e.props.computedMatch?e.props.computedMatch:e.props.path?M(a.pathname,e.props):t.match,s=(0,p.Z)({},t,{location:a,match:n}),r=e.props,o=r.children,c=r.component,d=r.render;return Array.isArray(o)&&function(e){return 0===i().Children.count(e)}(o)&&(o=null),i().createElement(b.Provider,{value:s},s.match?o?"function"==typeof o?o(s):o:c?i().createElement(c,s):d?d(s):null:"function"==typeof o?o(s):null)}))},t}(i().Component);function O(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var a=O(e);return 0!==t.pathname.indexOf(a)?t:(0,p.Z)({},t,{pathname:t.pathname.substr(a.length)})}function I(e){return"string"==typeof e?e:(0,c.Ep)(e)}function D(e){return function(){(0,l.Z)(!1)}}function U(){}i().Component;var z=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(b.Consumer,null,(function(t){t||(0,l.Z)(!1);var a,n,s=e.props.location||t.location;return i().Children.forEach(e.props.children,(function(e){if(null==n&&i().isValidElement(e)){a=e;var r=e.props.path||e.props.from;n=r?M(s.pathname,(0,p.Z)({},e.props,{path:r})):t.match}})),n?i().cloneElement(a,{location:s,computedMatch:n}):null}))},t}(i().Component);function V(e){var t="withRouter("+(e.displayName||e.name)+")",a=function(t){var a=t.wrappedComponentRef,n=(0,m.Z)(t,["wrappedComponentRef"]);return i().createElement(b.Consumer,null,(function(t){return t||(0,l.Z)(!1),i().createElement(e,(0,p.Z)({},n,t,{ref:a}))}))};return a.displayName=t,a.WrappedComponent=e,g()(a,e)}i().useContext},24561:(e,t,a)=>{"use strict";var n=a(99196),s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,a){var n,i={},l=null,p=null;for(n in void 0!==a&&(l=""+a),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(p=t.ref),t)r.call(t,n)&&!c.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:s,type:e,key:l,ref:p,props:i,_owner:o.current}}t.jsx=l,t.jsxs=l},30275:(e,t,a)=>{"use strict";e.exports=a(24561)},75385:(e,t,a)=>{"use strict";function n(e){return function(t){var a=t.dispatch,n=t.getState;return function(t){return function(s){return"function"==typeof s?s(a,n,e):t(s)}}}}a.d(t,{Z:()=>i});var s=n();s.withExtraArgument=n;const i=s},835:(e,t,a)=>{"use strict";a.d(t,{DE:()=>d,MT:()=>o,UY:()=>l,md:()=>g,qC:()=>h});var n=a(407),s=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function r(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,a){var s;if("function"==typeof t&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error("Expected the enhancer to be a function.");return a(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,p=[],d=p,u=!1;function m(){d===p&&(d=p.slice())}function h(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function g(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return m(),d.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,m();var a=d.indexOf(e);d.splice(a,1),p=null}}}function k(e){if(!r(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,l=c(l,e)}finally{u=!1}for(var t=p=d,a=0;a<t.length;a++){(0,t[a])()}return e}return k({type:i.INIT}),(s={dispatch:k,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,k({type:i.REPLACE})}})[n.Z]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function a(){e.next&&e.next(h())}return a(),{unsubscribe:t(a)}}})[n.Z]=function(){return this},e},s}function c(e,t){var a=t&&t.type;return"Given "+(a&&'action "'+String(a)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),a={},n=0;n<t.length;n++){var s=t[n];0,"function"==typeof e[s]&&(a[s]=e[s])}var r,o=Object.keys(a);try{!function(e){Object.keys(e).forEach((function(t){var a=e[t];if(void 0===a(void 0,{type:i.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===a(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(a)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var n=!1,s={},i=0;i<o.length;i++){var l=o[i],p=a[l],d=e[l],u=p(d,t);if(void 0===u){var m=c(l,t);throw new Error(m)}s[l]=u,n=n||u!==d}return(n=n||o.length!==Object.keys(e).length)?s:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var a={};for(var n in e){var s=e[n];"function"==typeof s&&(a[n]=p(s,t))}return a}function u(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function m(e,t){var a=Object.keys(e);return Object.getOwnPropertySymbols&&a.push.apply(a,Object.getOwnPropertySymbols(e)),t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a}function h(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(e){return function(){var a=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:a.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(s)}));return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?m(a,!0).forEach((function(t){u(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):m(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},a,{dispatch:n=h.apply(void 0,i)(a.dispatch)})}}}},4456:(e,t,a)=>{"use strict";function n(e){return"/"===e.charAt(0)}function s(e,t){for(var a=t,n=a+1,s=e.length;n<s;a+=1,n+=1)e[a]=e[n];e.pop()}a.d(t,{Z:()=>i});const i=function(e,t){void 0===t&&(t="");var a,i=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&n(e),c=t&&n(t),l=o||c;if(e&&n(e)?r=i:i.length&&(r.pop(),r=r.concat(i)),!r.length)return"/";if(r.length){var p=r[r.length-1];a="."===p||".."===p||""===p}else a=!1;for(var d=0,u=r.length;u>=0;u--){var m=r[u];"."===m?s(r,u):".."===m?(s(r,u),d++):d&&(s(r,u),d--)}if(!l)for(;d--;d)r.unshift("..");!l||""===r[0]||r[0]&&n(r[0])||r.unshift("");var h=r.join("/");return a&&"/"!==h.substr(-1)&&(h+="/"),h}},407:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n,s=a(37148);e=a.hmd(e),n="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;const i=(0,s.Z)(n)},37148:(e,t,a)=>{"use strict";function n(e){var t,a=e.Symbol;return"function"==typeof a?a.observable?t=a.observable:(t=a("observable"),a.observable=t):t="@@observable",t}a.d(t,{Z:()=>n})},58750:(e,t,a)=>{"use strict";a.d(t,{EB:()=>b,ht:()=>E});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],s=n.join(","),i="undefined"==typeof Element,r=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=!i&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},c=function(e,t,a){var n=Array.prototype.slice.apply(e.querySelectorAll(s));return t&&r.call(e,s)&&n.unshift(e),n=n.filter(a)},l=function e(t,a,n){for(var i=[],o=Array.from(t);o.length;){var c=o.shift();if("SLOT"===c.tagName){var l=c.assignedElements(),p=e(l.length?l:c.children,!0,n);n.flatten?i.push.apply(i,p):i.push({scope:c,candidates:p})}else{r.call(c,s)&&n.filter(c)&&(a||!t.includes(c))&&i.push(c);var d=c.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(c),u=!n.shadowRootFilter||n.shadowRootFilter(c);if(d&&u){var m=e(!0===d?c.children:d.children,!0,n);n.flatten?i.push.apply(i,m):i.push({scope:c,candidates:m})}else o.unshift.apply(o,c.children)}}return i},p=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},d=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},u=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,a=e.form||o(e),n=function(e){return a.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var s=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]}(t,e.form);return!s||s===e}(e)},h=function(e){var t=e.getBoundingClientRect(),a=t.width,n=t.height;return 0===a&&0===n},g=function(e,t){return!(t.disabled||function(e){return u(e)&&"hidden"===e.type}(t)||function(e,t){var a=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var s=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(s,"details:not([open]) *"))return!0;var i=o(e).host,c=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(a&&"full"!==a){if("non-zero-area"===a)return h(e)}else{if("function"==typeof n){for(var l=e;e;){var p=e.parentElement,d=o(e);if(p&&!p.shadowRoot&&!0===n(p))return h(e);e=e.assignedSlot?e.assignedSlot:p||d===e.ownerDocument?p:d.host}e=l}if(c)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var a=0;a<t.children.length;a++){var n=t.children.item(a);if("LEGEND"===n.tagName)return!!r.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},k=function(e,t){return!(m(t)||p(t)<0||!g(e,t))},v=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},f=function e(t){var a=[],n=[];return t.forEach((function(t,s){var i=!!t.scope,r=i?t.scope:t,o=p(r,i),c=i?e(t.candidates):r;0===o?i?a.push.apply(a,c):a.push(r):n.push({documentOrder:s,tabIndex:o,item:t,isScope:i,content:c})})),n.sort(d).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(a)},E=function(e,t){var a;return a=(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:k.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:v}):c(e,t.includeContainer,k.bind(null,t)),f(a)},_=n.concat("iframe").join(","),b=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,_)&&g(t,e)}},6975:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(51128);const s=a.n(n)()("dops:analytics");let i,r;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const o={initialize:function(e,t,a){o.setUser(e,t),o.setSuperProps(a),o.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){r={ID:e,username:t}},setSuperProps:function(e){i=e},assignSuperProps:function(e){i=Object.assign(i||{},e)},mc:{bumpStat:function(e,t){const a=function(e,t){let a="";if("object"==typeof e){for(const t in e)a+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Bumping stats %o",e)}else a="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Bumping stat "%s" in group "%s"',t,e);return a}(e,t);o.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+a+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const a=function(e,t){let a="";if("object"==typeof e){for(const t in e)a+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);s("Built stats %o",e)}else a="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),s('Built stat "%s" in group "%s"',t,e);return a}(e,t);o.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+a+"&t="+Math.random())}},pageView:{record:function(e,t){o.tracks.recordPageView(e),o.ga.recordPageView(e,t)}},purchase:{record:function(e,t,a,n,s,i,r){o.ga.recordPurchase(e,t,a,n,s,i,r)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(i&&(s("- Super Props: %o",i),t=Object.assign(t,i)),s('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):s('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};o.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){o.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){s("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};o.ga.initialized||(r&&(e={userId:"u-"+r.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),o.ga.initialized=!0)},recordPageView:function(e,t){o.ga.initialize(),s("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,a,n){o.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==a&&(i+=" [Option Label: "+a+"]"),void 0!==n&&(i+=" [Option Value: "+n+"]"),s(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,a,n)},recordPurchase:function(e,t,a,n,s,i,r){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:n,currency:r}),window.ga("ecommerce:addItem",{id:e,name:t,sku:a,price:s,quantity:i}),window.ga("ecommerce:send")}},identifyUser:function(){r&&window._tkq.push(["identifyUser",r.ID,r.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=o},64743:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>d});var n=a(61132),s=a(96483);function i(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const r=i("JsonParseError"),o=i("JsonParseAfterRedirectError"),c=i("Api404Error"),l=i("Api404AfterRedirectError"),p=i("FetchNetworkError");const d=new function(e,t){let a=e,i=e,r={"X-WP-Nonce":t},o={credentials:"same-origin",headers:r},c={method:"post",credentials:"same-origin",headers:Object.assign({},r,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),a=t.length>1?t[1]:"",n=a.length?a.split("&"):[];return n.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+n.join("&")};const p={setApiRoot(e){a=e},setWpcomOriginApiUrl(e){i=e},setApiNonce(e){r={"X-WP-Nonce":e},o={credentials:"same-origin",headers:r},c={method:"post",credentials:"same-origin",headers:Object.assign({},r,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,s)=>{const i={registration_nonce:e,no_iframe:!0};return(0,n.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,n.jetpackConfigGet)("consumer_slug")),null!==t&&(i.redirect_uri=t),s&&(i.from=s),h(`${a}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(u).then(m)},fetchAuthorizationUrl:e=>d((0,s.addQueryArgs)(`${a}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),o).then(u).then(m),fetchSiteConnectionData:()=>d(`${a}jetpack/v4/connection/data`,o).then(m),fetchSiteConnectionStatus:()=>d(`${a}jetpack/v4/connection`,o).then(m),fetchSiteConnectionTest:()=>d(`${a}jetpack/v4/connection/test`,o).then(u).then(m),fetchUserConnectionData:()=>d(`${a}jetpack/v4/connection/data`,o).then(m),fetchUserTrackingSettings:()=>d(`${a}jetpack/v4/tracking/settings`,o).then(u).then(m),updateUserTrackingSettings:e=>h(`${a}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(u).then(m),disconnectSite:()=>h(`${a}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(u).then(m),fetchConnectUrl:()=>d(`${a}jetpack/v4/connection/url`,o).then(u).then(m),unlinkUser:()=>h(`${a}jetpack/v4/connection/user`,c,{body:JSON.stringify({linked:!1})}).then(u).then(m),reconnect:()=>h(`${a}jetpack/v4/connection/reconnect`,c).then(u).then(m),fetchConnectedPlugins:()=>d(`${a}jetpack/v4/connection/plugins`,o).then(u).then(m),setHasSeenWCConnectionModal:()=>h(`${a}jetpack/v4/seen-wc-connection-modal`,c).then(u).then(m),fetchModules:()=>d(`${a}jetpack/v4/module/all`,o).then(u).then(m),fetchModule:e=>d(`${a}jetpack/v4/module/${e}`,o).then(u).then(m),activateModule:e=>h(`${a}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(u).then(m),deactivateModule:e=>h(`${a}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${a}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(u).then(m),updateSettings:e=>h(`${a}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(u).then(m),getProtectCount:()=>d(`${a}jetpack/v4/module/protect/data`,o).then(u).then(m),resetOptions:e=>h(`${a}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(u).then(m),activateVaultPress:()=>h(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(u).then(m),getVaultPressData:()=>d(`${a}jetpack/v4/module/vaultpress/data`,o).then(u).then(m),installPlugin:(e,t)=>{const n={slug:e,status:"active"};return t&&(n.source=t),h(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify(n)}).then(u).then(m)},activateAkismet:()=>h(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(u).then(m),getAkismetData:()=>d(`${a}jetpack/v4/module/akismet/data`,o).then(u).then(m),checkAkismetKey:()=>d(`${a}jetpack/v4/module/akismet/key/check`,o).then(u).then(m),checkAkismetKeyTyped:e=>h(`${a}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(u).then(m),fetchStatsData:e=>d(function(e){let t=`${a}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),o).then(u).then(m).then(k),getPluginUpdates:()=>d(`${a}jetpack/v4/updates/plugins`,o).then(u).then(m),getPlans:()=>d(`${a}jetpack/v4/plans`,o).then(u).then(m),fetchSettings:()=>d(`${a}jetpack/v4/settings`,o).then(u).then(m),updateSetting:e=>h(`${a}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(u).then(m),fetchSiteData:()=>d(`${a}jetpack/v4/site`,o).then(u).then(m).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>d(`${a}jetpack/v4/site/features`,o).then(u).then(m).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>d(`${a}jetpack/v4/site/products`,o).then(u).then(m),fetchSitePurchases:()=>d(`${a}jetpack/v4/site/purchases`,o).then(u).then(m).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>d(`${a}jetpack/v4/site/benefits`,o).then(u).then(m).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>d(`${a}jetpack/v4/site/discount`,o).then(u).then(m).then((e=>e.data)),fetchSetupQuestionnaire:()=>d(`${a}jetpack/v4/setup/questionnaire`,o).then(u).then(m),fetchRecommendationsData:()=>d(`${a}jetpack/v4/recommendations/data`,o).then(u).then(m),fetchRecommendationsProductSuggestions:()=>d(`${a}jetpack/v4/recommendations/product-suggestions`,o).then(u).then(m),fetchRecommendationsUpsell:()=>d(`${a}jetpack/v4/recommendations/upsell`,o).then(u).then(m),fetchRecommendationsConditional:()=>d(`${a}jetpack/v4/recommendations/conditional`,o).then(u).then(m),saveRecommendationsData:e=>h(`${a}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(u),fetchProducts:()=>d(`${a}jetpack/v4/products`,o).then(u).then(m),fetchRewindStatus:()=>d(`${a}jetpack/v4/rewind`,o).then(u).then(m).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>d(`${a}jetpack/v4/scan`,o).then(u).then(m).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${a}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(u).then(m),fetchPluginsData:()=>d(`${a}jetpack/v4/plugins`,o).then(u).then(m),fetchIntroOffers:()=>d(`${a}jetpack/v4/intro-offers`,o).then(u).then(m),fetchVerifySiteGoogleStatus:e=>d(null!==e?`${a}jetpack/v4/verify-site/google/${e}`:`${a}jetpack/v4/verify-site/google`,o).then(u).then(m),verifySiteGoogle:e=>h(`${a}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(u).then(m),submitSurvey:e=>h(`${a}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(u).then(m),saveSetupQuestionnaire:e=>h(`${a}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(u).then(m),updateLicensingError:e=>h(`${a}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(u).then(m),updateLicenseKey:e=>h(`${a}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(u).then(m),getUserLicensesCounts:()=>d(`${a}jetpack/v4/licensing/user/counts`,o).then(u).then(m),getUserLicenses:()=>d(`${a}jetpack/v4/licensing/user/licenses`,o).then(u).then(m),updateLicensingActivationNoticeDismiss:e=>h(`${a}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(u).then(m),updateRecommendationsStep:e=>h(`${a}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(u),confirmIDCSafeMode:()=>h(`${a}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(u),startIDCFresh:e=>h(`${a}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(u).then(m),migrateIDC:()=>h(`${a}jetpack/v4/identity-crisis/migrate`,c).then(u),attachLicenses:e=>h(`${a}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(u).then(m),fetchSearchPlanInfo:()=>d(`${i}jetpack/v4/search/plan`,o).then(u).then(m),fetchSearchSettings:()=>d(`${i}jetpack/v4/search/settings`,o).then(u).then(m),updateSearchSettings:e=>h(`${i}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(u).then(m),fetchSearchStats:()=>d(`${i}jetpack/v4/search/stats`,o).then(u).then(m),fetchWafSettings:()=>d(`${a}jetpack/v4/waf`,o).then(u).then(m),updateWafSettings:e=>h(`${a}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(u).then(m),fetchWordAdsSettings:()=>d(`${a}jetpack/v4/wordads/settings`,o).then(u).then(m),updateWordAdsSettings:e=>h(`${a}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>d(`${i}jetpack/v4/search/pricing`,o).then(u).then(m),fetchMigrationStatus:()=>d(`${a}jetpack/v4/migration/status`,o).then(u).then(m),fetchBackupUndoEvent:()=>d(`${a}jetpack/v4/site/backup/undo-event`,o).then(u).then(m),fetchBackupPreflightStatus:()=>d(`${a}jetpack/v4/site/backup/preflight`,o).then(u).then(m)};function d(e,t){return fetch(l(e),t)}function h(e,t,a){return fetch(e,Object.assign({},t,a)).catch(g)}function k(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,p)};function u(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new l(e.redirected):new c})):e.json().catch((e=>h(e))).then((t=>{const a=new Error(`${t.message} (Status ${e.status})`);throw a.response=t,a.name="ApiError",a}))}function m(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,a){throw t?new o(a):new r}function g(){throw new p}},62264:(e,t,a)=>{"use strict";a.d(t,{M:()=>r});var n=a(65736),s=a(65146),i=a(36873);const __=n.__;class r extends Error{constructor(e,t,a){super(),this.httpCode=e,this.body=t,this.parseError=a}get message(){switch(this.httpCode){case 403:return this.getRestApiErrorMessage();case 200:if(this.parseError)return(0,n.sprintf)(/* Translators: %s refers to a browser-supplied error message (hopefully already in the right language) */ __("Received invalid response while communicating with your WordPress site: %s","jetpack"),this.parseError.message)}return(0,n.sprintf)(/* Translators: %d refers to numeric HTTP error code */ __("HTTP %d error received while communicating with the server.","jetpack"),this.httpCode)}getDisplayBody(){return(0,i.b)(this.body)?JSON.stringify(this.body,null," "):(0,s.x)(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return __("Your site's REST API does not seem to be accessible. Jetpack Boost requires access to your REST API in order to receive site performance scores. Please make sure that your site's REST API is active and accessible, and try again.","jetpack")}}},38426:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(65736),s=a(62264),i=a(60259);const __=n.__;async function r(e,t,a,s=null,r){const o={method:e,mode:"cors",headers:{"X-WP-Nonce":r}};"post"!==e&&"delete"!==e||!s||(o.body=JSON.stringify(s),o.headers["Content-Type"]="application/json");const c=function(e,t){return t+i.N+i.L+e}(a,t);let l;try{l=await fetch(c,o)}catch(e){const t=o;delete t.body,delete t.headers["X-WP-Nonce"];const a={requestInitiator:window.location.href,requestUrl:c,requestArgs:t,originalErrorMessage:e.toString()};throw new Error((0,n.sprintf)(/* Translators: %s refers to a string representation of an error object containing useful debug information */ __("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack"),JSON.stringify(a)))}return l}async function o(e,t,a,n=null,i){const o=await r(e,t,a,n,i);let c,l;try{c=await o.text()}catch(e){throw new s.M(o.status,null,e)}try{l=JSON.parse(c)}catch(e){throw new s.M(o.status,c,e)}if(!o.ok)throw new s.M(o.status,l,null);return l}const c={get:function(e,t,a){return o("get",e,t,null,a)},post:function(e,t,a=null,n){return o("post",e,t,a,n)}}},60259:(e,t,a)=>{"use strict";a.d(t,{L:()=>s,N:()=>n});const n="jetpack-boost/v1",s=""},60128:(e,t,a)=>{"use strict";a.d(t,{Fr:()=>g,tZ:()=>u,yn:()=>h});var n=a(65736),s=a(38426),i=a(41061),r=a(65146),o=a(36873),c=a(62653),l=a(32893);const __=n.__,p=12e4,d=5e3;async function u(e=!1,t,a,n){const i=m(await s.Z.post(t,e?"/speed-scores/refresh":"/speed-scores",{url:a},n));return i.scores?i.scores:await async function(e,t,a){return(0,c.Z)({timeout:p,interval:d,timeoutError:__("Timed out while waiting for speed-score.","jetpack"),callback:async n=>{const i=m(await s.Z.post(e,"/speed-scores",{url:t},a));i.scores&&n(i.scores)}})}(t,a,n)}function m(e){if(e.error){const t=__("An unknown error occurred while requesting metrics","jetpack");throw(0,l.V)(e.error,t)}if((0,o.b)(e.scores))return{status:"success",scores:{current:(0,o.b)(e.scores.current)?{mobile:(0,i.W)(e.scores.current.mobile,0),desktop:(0,i.W)(e.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:(0,o.b)(e.scores.noBoost)?{mobile:(0,i.W)(e.scores.noBoost.mobile,0),desktop:(0,i.W)(e.scores.noBoost.desktop,0)}:null,isStale:!!e.scores.isStale}};const t=(0,r.x)(e.status);if(!t)throw new Error(__("Invalid response while requesting metrics","jetpack"));return{status:t}}function h(e,t){const a=(e+t)/2;return a>90?"A":a>75?"B":a>50?"C":a>35?"D":a>25?"E":"F"}function g(e){const t=new Date(e),a=(new Date).valueOf()-t.valueOf();return Math.floor(a/864e5)}},41061:(e,t,a)=>{"use strict";function n(e,t=void 0){if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);if(!isNaN(t))return t}return t}a.d(t,{W:()=>n})},65146:(e,t,a)=>{"use strict";function n(e,t=void 0){return"string"==typeof e?e:e&&e.toString instanceof Function?e.toString():t}a.d(t,{x:()=>n})},36873:(e,t,a)=>{"use strict";function n(e){return!!e&&e instanceof Object&&!(e instanceof Array)}a.d(t,{b:()=>n})},62653:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(65736);const __=n.__;async function s({interval:e,callback:t,timeout:a,timeoutError:n}){let s,i;return new Promise(((r,o)=>{s=setTimeout((()=>{o(new Error(n||__("Timed out","jetpack")))}),a||12e4),i=setInterval((async()=>{try{await Promise.resolve(t(r))}catch(e){o(e)}}),e)})).finally((()=>{clearTimeout(s),clearInterval(i)}))}},32893:(e,t,a)=>{"use strict";function n(e,t){return e instanceof Error?e:"string"==typeof e||e instanceof String?new Error(e.toString()):e.message?new Error(e.message):t?new Error(t):new Error(JSON.stringify(e))}a.d(t,{V:()=>n})},67121:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(55609),s=a(65736),i=a(3228),r=a(15844),o=a.n(r),c=a(99196),l=a.n(c),p=a(90526),d=a(86508);const __=s.__,u=e=>{const{label:t,onClick:a,isLoading:s=!1,loadingText:r,isDisabled:o,displayError:c=!1,errorMessage:u=__("An error occurred. Please try again.","jetpack"),customClass:m}=e,h=r||l().createElement(n.Spinner,null);return l().createElement(l().Fragment,null,l().createElement(p.Z,{className:(0,i.Z)(d.Z.button,"jp-action-button--button",m),label:t,onClick:a,variant:"primary",disabled:s||o},s?h:t),c&&l().createElement("p",{className:(0,i.Z)(d.Z.error,"jp-action-button__error")},u))};u.propTypes={label:o().string.isRequired,onClick:o().func,isLoading:o().bool,isDisabled:o().bool,displayError:o().bool,errorMessage:o().oneOfType([o().string,o().element])};const m=u},37525:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(82674),s=a.n(n),i=a(65736),r=a(3228),o=a(99196),c=a.n(o);const __=i.__,l=({title:e=__("An Automattic Airline","jetpack"),height:t=7,className:a,...n})=>c().createElement("svg",s()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:t,className:(0,r.Z)("jp-automattic-byline-logo",a)},n),c().createElement("desc",{id:"jp-automattic-byline-logo-title"},e),c().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),c().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),c().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))},14186:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(65736),s=a(3228),i=a(67172);a(17472);const __=n.__,r=({score:e,isLoading:t,showPrevScores:a,active:n,prevScore:r=0,scoreBarType:o,noBoostScoreTooltip:c})=>{if(!n)return null;const l=r/e*100,p=__("Desktop score","jetpack"),d=__("Mobile score","jetpack");return React.createElement("div",{className:(0,s.Z)("jb-score-bar",`jb-score-bar--${o}`)},React.createElement("div",{className:"jb-score-bar__label"},"desktop"===o?React.createElement(i.Z,{icon:"computer",size:24}):React.createElement(i.Z,{icon:"phone",size:24}),React.createElement("div",null,"desktop"===o?p:d)),React.createElement("div",{className:"jb-score-bar__bounds"},React.createElement("div",{className:(0,s.Z)("jb-score-bar__filler",t&&!e?"fill-loading":e>70?"fill-good":e>50?"fill-mediocre":"fill-bad"),style:{width:`${e}%`}},t?React.createElement("div",{className:"jb-score-bar__loading"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 128 128"},React.createElement("g",null,React.createElement("path",{d:"M64 0a7 7 0 11-7 7 7 7 0 017-7zm29.86 12.2a2.8 2.8 0 11-3.83 1.02 2.8 2.8 0 013.83-1.02zm22.16 21.68a3.15 3.15 0 11-4.3-1.15 3.15 3.15 0 014.3 1.15zm.87 60.53a4.2 4.2 0 11-1.57-5.7 4.2 4.2 0 011.54 5.73zm7.8-30.5a3.85 3.85 0 11-3.85-3.85 3.85 3.85 0 013.85 3.84zm-30 53.2a4.55 4.55 0 111.66-6.23 4.55 4.55 0 01-1.67 6.22zM64 125.9a4.9 4.9 0 114.9-4.9 4.9 4.9 0 01-4.9 4.9zm-31.06-8.22a5.25 5.25 0 117.17-1.93 5.25 5.25 0 01-7.14 1.93zM9.9 95.1a5.6 5.6 0 117.65 2.06A5.6 5.6 0 019.9 95.1zM1.18 63.9a5.95 5.95 0 115.95 5.94 5.95 5.95 0 01-5.96-5.94zm8.1-31.6a6.3 6.3 0 112.32 8.6 6.3 6.3 0 01-2.3-8.6zM32.25 8.87a6.65 6.65 0 11-2.44 9.1 6.65 6.65 0 012.46-9.1z"}),React.createElement("animateTransform",{attributeName:"transform",type:"rotate",values:"0 64 64;30 64 64;60 64 64;90 64 64;120 64 64;150 64 64;180 64 64;210 64 64;240 64 64;270 64 64;300 64 64;330 64 64",calcMode:"discrete",dur:"1080ms",repeatCount:"indefinite"})))):React.createElement("div",{className:"jb-score-bar__score"},e),a&&!!r&&r<e&&React.createElement("div",{className:"jb-score-bar__no_boost_score",style:{left:`min(${l}%, calc( 100% - var(--clearance-space))`}},r,c&&React.createElement("div",{role:"tooltip",className:"jb-score-bar__no_boost_score_tooltip"},c)))))}},90526:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(82674),s=a.n(n),i=a(55609),r=a(65736),o=a(61074),c=a(15381),l=a(3228),p=a(99196),d=a.n(p),u=a(62103);const __=r.__,m=(0,p.forwardRef)(((e,t)=>{const{children:a,variant:n="primary",size:r="normal",weight:p="bold",icon:m,iconSize:h,disabled:g,isDestructive:k,isLoading:v,isExternalLink:f,className:E,text:_,fullWidth:b,...y}=e,w=(0,l.Z)(u.Z.button,E,{[u.Z.normal]:"normal"===r,[u.Z.small]:"small"===r,[u.Z.icon]:Boolean(m),[u.Z.loading]:v,[u.Z.regular]:"regular"===p,[u.Z["full-width"]]:b,[u.Z["is-icon-button"]]:Boolean(m)&&!a});y.ref=t;const C="normal"===r?20:16,j=f&&d().createElement(d().Fragment,null,d().createElement(o.Z,{size:C,icon:c.Z,className:u.Z["external-icon"]}),d().createElement(i.VisuallyHidden,{as:"span"},/* translators: accessibility text */ __("(opens in a new tab)","jetpack"))),S=f?"_blank":void 0,N=a?.[0]&&null!==a[0]&&"components-tooltip"!==a?.[0]?.props?.className;return d().createElement(i.Button,s()({target:S,variant:n,className:(0,l.Z)(w,{"has-text":!!m&&N}),icon:f?void 0:m,iconSize:h,disabled:g,"aria-disabled":g,isDestructive:k,text:_},y),v&&d().createElement(i.Spinner,null),d().createElement("span",null,a),j)}));m.displayName="Button";const h=m},76144:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(3228),s=a(99196),i=a.n(s),r=a(64460);const o=({type:e="info",text:t})=>{const a=(0,n.Z)(r.Z.chip,r.Z[`is-${e}`]);return i().createElement("span",{className:a},t)}},69026:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});a(46172);const n=({format:e="horizontal",icon:t,imageUrl:a})=>React.createElement("div",{className:"jp-components__decorative-card "+(e?"jp-components__decorative-card--"+e:"")},React.createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:a?`url( ${a} )`:""}}),React.createElement("div",{className:"jp-components__decorative-card__content"},React.createElement("div",{className:"jp-components__decorative-card__lines"})),t?React.createElement("div",{className:"jp-components__decorative-card__icon-container"},React.createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+t})):null)},68841:(e,t,a)=>{"use strict";a.d(t,{C:()=>r});var n=a(55609),s=a(81285),i=a(60068);function r({maxVisibleNotices:e=3}){const{getNotices:t,removeNotice:a}=(0,i._)(),r=t().filter((({type:e})=>"snackbar"===e)).slice(-e);return React.createElement(n.SnackbarList,{notices:r,className:s.Z["global-notices"],onRemove:a})}},60068:(e,t,a)=>{"use strict";a.d(t,{_:()=>i});var n=a(9818),s=a(53961);function i(){const e=(0,n.useDispatch)(s.store),t=(0,n.useSelect)((e=>e(s.store).getNotices()),[]);return{...e,createNotice:(t,a,n)=>e.createNotice(t,a,{type:"snackbar",...n}),createErrorNotice:(t,a)=>e.createErrorNotice(t,{type:"snackbar",...a}),createInfoNotice:(t,a)=>e.createInfoNotice(t,{type:"snackbar",...a}),createSuccessNotice:(t,a)=>e.createSuccessNotice(t,{type:"snackbar",...a}),createWarningNotice:(t,a)=>e.createWarningNotice(t,{type:"snackbar",...a}),getNotices:()=>t}}},67172:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(65736),s=a(3228),i=a(99196);a(53351);const __=n.__;class r extends i.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-arrow-left","gridicons-arrow-right","gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-info-outline","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGDescription(e){if("description"in this.props)return this.props.description;switch(e){default:return"";case"gridicons-audio":return __("Has audio.","jetpack");case"gridicons-arrow-left":return __("Arrow left","jetpack");case"gridicons-arrow-right":return __("Arrow right","jetpack");case"gridicons-calendar":return __("Is an event.","jetpack");case"gridicons-cart":return __("Is a product.","jetpack");case"chevron-down":return __("Show filters","jetpack");case"gridicons-comment":return __("Matching comment.","jetpack");case"gridicons-cross":return __("Close.","jetpack");case"gridicons-filter":return __("Toggle search filters.","jetpack");case"gridicons-folder":return __("Category","jetpack");case"gridicons-info":case"gridicons-info-outline":return __("Information.","jetpack");case"gridicons-image-multiple":return __("Has multiple images.","jetpack");case"gridicons-image":return __("Has an image.","jetpack");case"gridicons-page":return __("Page","jetpack");case"gridicons-post":return __("Post","jetpack");case"gridicons-jetpack-search":case"gridicons-search":return __("Magnifying Glass","jetpack");case"gridicons-tag":return __("Tag","jetpack");case"gridicons-video":return __("Has a video.","jetpack")}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return React.createElement("g",null,React.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-arrow-left":return React.createElement("g",null,React.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}));case"gridicons-arrow-right":return React.createElement("g",null,React.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}));case"gridicons-block":return React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return React.createElement("g",null,React.createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"}));case"gridicons-cart":return React.createElement("g",null,React.createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"}));case"gridicons-checkmark":return React.createElement("g",null,React.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"}));case"gridicons-chevron-left":return React.createElement("g",null,React.createElement("path",{d:"M16.443 7.41L15.0399 6L9.06934 12L15.0399 18L16.443 16.59L11.8855 12L16.443 7.41Z"}));case"gridicons-chevron-right":return React.createElement("g",null,React.createElement("path",{d:"M10.2366 6L8.8335 7.41L13.391 12L8.8335 16.59L10.2366 18L16.2072 12L10.2366 6Z"}));case"gridicons-chevron-down":return React.createElement("g",null,React.createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"}));case"gridicons-comment":return React.createElement("g",null,React.createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"}));case"gridicons-computer":return React.createElement("g",null,React.createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"}));case"gridicons-cross":return React.createElement("g",null,React.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"}));case"gridicons-filter":return React.createElement("g",null,React.createElement("path",{d:"M10 19h4v-2h-4v2zm-4-6h12v-2H6v2zM3 5v2h18V5H3z"}));case"gridicons-folder":return React.createElement("g",null,React.createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"}));case"gridicons-image":return React.createElement("g",null,React.createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"}));case"gridicons-image-multiple":return React.createElement("g",null,React.createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"}));case"gridicons-info":return React.createElement("g",null,React.createElement("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-6h2v6zm0-8h-2V7h2v2z"}));case"gridicons-info-outline":return React.createElement("g",null,React.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"}));case"gridicons-jetpack-search":return React.createElement("g",null,React.createElement("path",{d:"M0 9.257C0 4.15 4.151 0 9.257 0c5.105 0 9.256 4.151 9.256 9.257a9.218 9.218 0 01-2.251 6.045l.034.033h1.053L24 22.01l-1.986 1.989-6.664-6.662v-1.055l-.033-.033a9.218 9.218 0 01-6.06 2.264C4.15 18.513 0 14.362 0 9.257zm4.169 1.537h4.61V1.82l-4.61 8.973zm5.547-3.092v8.974l4.61-8.974h-4.61z"}));case"gridicons-phone":return React.createElement("g",null,React.createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"}));case"gridicons-pages":return React.createElement("g",null,React.createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"}));case"gridicons-posts":return React.createElement("g",null,React.createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"}));case"gridicons-search":return React.createElement("g",null,React.createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"}));case"gridicons-star-outline":return React.createElement("g",null,React.createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"}));case"gridicons-star":return React.createElement("g",null,React.createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"}));case"gridicons-tag":return React.createElement("g",null,React.createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"}));case"gridicons-video":return React.createElement("g",null,React.createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"}));case"gridicons-lock":return React.createElement(React.Fragment,null,React.createElement("g",{id:"lock"},React.createElement("path",{d:"M18,8h-1V7c0-2.757-2.243-5-5-5S7,4.243,7,7v1H6c-1.105,0-2,0.895-2,2v10c0,1.105,0.895,2,2,2h12c1.105,0,2-0.895,2-2V10 C20,8.895,19.105,8,18,8z M9,7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H9V7z M13,15.723V18h-2v-2.277c-0.595-0.346-1-0.984-1-1.723 c0-1.105,0.895-2,2-2s2,0.895,2,2C14,14.738,13.595,15.376,13,15.723z"})),React.createElement("g",{id:"Layer_1"}));case"gridicons-external":return React.createElement("g",null,React.createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"}))}}render(){const{size:e=24,className:t=""}=this.props,a=this.props.height||e,n=this.props.width||e,i=this.props.style||{height:a,width:n},r="gridicons-"+this.props.icon,o=(0,s.Z)("gridicon",r,t,{"needs-offset":this.needsOffset(r,e)}),c=this.getSVGDescription(r);return React.createElement("svg",{className:o,focusable:this.props.focusable,height:a,onClick:this.props.onClick,style:i,viewBox:"0 0 24 24",width:n,xmlns:"http://www.w3.org/2000/svg","aria-hidden":this.props["aria-hidden"]},c?React.createElement("desc",null,c):null,this.renderIcon(r))}}const o=r},69665:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(55609),s=a(3228),i=a(99196),r=a.n(i),o=a(90526),c=a(67172);a(67742);const l=e=>({"top-end":"top left",top:"top center","top-start":"top right","bottom-end":"bottom left",bottom:"bottom center","bottom-start":"bottom right"}[e]),p=({className:e="",iconClassName:t="",placement:a="bottom-end",animate:p=!0,iconCode:d="info-outline",iconSize:u=18,offset:m=10,title:h,children:g,popoverAnchorStyle:k="icon",forceShow:v=!1,wide:f=!1,inline:E=!0,shift:_=!1})=>{const[b,y]=(0,i.useState)(!1),w=(0,i.useCallback)((()=>y(!1)),[y]),C=(0,i.useCallback)((e=>{e.preventDefault(),y(!b)}),[b,y]),j={position:l(a),placement:a,animate:p,noArrow:!1,resize:!1,flip:!1,offset:m,focusOnMount:"container",onClose:w,className:"icon-tooltip-container",inline:E,shift:_},S="wrapper"===k,N=(0,s.Z)("icon-tooltip-wrapper",e),x={left:S?0:-(62-u/2)+"px"},R=S&&v;return r().createElement("div",{className:N,"data-testid":"icon-tooltip_wrapper"},!S&&r().createElement(o.Z,{variant:"link",onMouseDown:C},r().createElement(c.Z,{className:t,icon:d,size:u})),r().createElement("div",{className:(0,s.Z)("icon-tooltip-helper",{"is-wide":f}),style:x},(R||b)&&r().createElement(n.Popover,j,r().createElement("div",null,h&&r().createElement("div",{className:"icon-tooltip-title"},h),r().createElement("div",{className:"icon-tooltip-content"},g)))))}},3396:(e,t,a)=>{"use strict";a.d(t,{VS:()=>d,av:()=>u});var n=a(82674),s=a.n(n),i=a(55609),r=a(3228),o=a(56286),c=a(45460);const l=({className:e,size:t=24,viewBox:a="0 0 24 24",opacity:n=1,color:o="#2C3338",children:l})=>{const p={className:(0,r.Z)(c.Z.iconWrapper,e),width:t,height:t,viewBox:a,opacity:n,fill:void 0};return o&&(p.fill=o),React.createElement(i.SVG,s()({},p,{fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"}),React.createElement(i.G,{opacity:n},l))},p={...{"anti-spam":({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"M13.2,4.7l4.7,12.8c0.4,1.1,1,1.5,2.1,1.6c0.1,0,0.1,0,0.1,0l0.1,0.1l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1 s0,0.1-0.1,0.1c-0.1,0-0.1,0.1-0.1,0.1s-0.1,0-0.2,0h-5.1c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1 c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1l0.1-0.1c0,0,0.1,0,0.2,0c0.5,0,1.1-0.2,1.1-0.8c0-0.3-0.1-0.5-0.2-0.8l-1.1-3.1 c-0.1-0.2-0.1-0.2-0.2-0.2h-4.3c-0.7,0-1.5,0-1.9,0.9l-1.1,2.4C7.1,17.6,7,17.8,7,18.1c0,0.8,1,0.9,1.6,0.9c0.1,0,0.1,0,0.2,0 L8.8,19l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1s-0.1,0.1-0.1,0.1l-0.1,0.1c-0.1,0-0.1,0-0.2,0H4.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1L4,19c0,0,0.1,0,0.1,0C5.2,19,5.5,18.5,6,17.5 l5.4-12.4c0.2-0.5,0.8-1,1.3-1C13,4.2,13.1,4.4,13.2,4.7z M9.1,13.1c0,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.1,0.1h4.4 c0.3,0,0.4-0.1,0.4-0.3c0-0.1,0-0.2-0.1-0.3l-1.2-3.5c-0.3-0.8-0.8-1.9-0.8-2.7c0-0.1,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0.1 c-0.1,0.6-0.4,1.2-0.7,1.7L9.1,13.1z"}),React.createElement(i.Path,{d:"M13.2,4.7l4.7,12.8c0.4,1.1,1,1.5,2.1,1.6c0.1,0,0.1,0,0.1,0l0.1,0.1l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1 s0,0.1-0.1,0.1c-0.1,0-0.1,0.1-0.1,0.1s-0.1,0-0.2,0h-5.1c-0.1,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1 c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1l0.1-0.1c0,0,0.1,0,0.2,0c0.5,0,1.1-0.2,1.1-0.8c0-0.3-0.1-0.5-0.2-0.8l-1.1-3.1 c-0.1-0.2-0.1-0.2-0.2-0.2h-4.3c-0.7,0-1.5,0-1.9,0.9l-1.1,2.4C7.1,17.6,7,17.8,7,18.1c0,0.8,1,0.9,1.6,0.9c0.1,0,0.1,0,0.2,0 L8.8,19l0.1,0.1c0,0.1,0,0.1,0,0.2c0,0.1,0,0.1,0,0.1s-0.1,0.1-0.1,0.1l-0.1,0.1c-0.1,0-0.1,0-0.2,0H4.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.1-0.1-0.1-0.1l-0.1-0.1c0-0.1,0-0.1,0-0.1c0-0.1,0-0.1,0-0.2s0-0.1,0.1-0.1L4,19c0,0,0.1,0,0.1,0C5.2,19,5.5,18.5,6,17.5 l5.4-12.4c0.2-0.5,0.8-1,1.3-1C13,4.2,13.1,4.4,13.2,4.7z M9.1,13.1c0,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.1,0.1h4.4 c0.3,0,0.4-0.1,0.4-0.3c0-0.1,0-0.2-0.1-0.3l-1.2-3.5c-0.3-0.8-0.8-1.9-0.8-2.7c0-0.1,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0.1 c-0.1,0.6-0.4,1.2-0.7,1.7L9.1,13.1z"}),React.createElement(i.Path,{d:"M21.6,12.5c0,0.6-0.3,1-0.9,1c-0.6,0-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1C21.3,11.7,21.6,12.1,21.6,12.5z"}),React.createElement(i.Path,{d:"M4.1,12.5c0,0.6-0.3,1-0.9,1s-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1S4.1,12.1,4.1,12.5z"})),backup:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"M2.1,5.8c0-0.1,0-0.1,0-0.2c0-0.2,0.1-0.5,0.1-0.7c0.1-0.4,0.4-0.6,0.7-0.8l8.3-2.9c0.1-0.1,0.3-0.1,0.4-0.1l0.5,0.1 l8.3,2.9c0.3,0.2,0.5,0.4,0.7,0.7c0.2,0.2,0.2,0.4,0.2,0.7c0,0.1,0,0.1,0,0.2v0.1c-0.1,0.5-0.2,0.9-0.3,1.4 c-0.2,0.4-0.3,1.2-0.7,2.2c-0.3,1-0.7,2.1-1.1,3.1c-0.5,1-1,2.1-1.6,3.3s-1.4,2.3-2.2,3.5c-0.9,1.1-1.8,2.2-2.8,3.1 c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4c-1.2-1.1-2.4-2.4-3.5-4c-1-1.6-1.9-3-2.5-4.3c-0.6-1.3-1.1-2.7-1.6-4 C2.8,8.7,2.5,7.6,2.3,7C2.3,6.5,2.1,6.1,2.1,5.8z M2.9,5.9c0,0.2,0.1,0.4,0.1,0.8C3.1,7,3.2,7.5,3.5,8.2C3.7,9,3.9,9.7,4.2,10.6 c0.3,0.7,0.7,1.7,1.1,2.7c0.4,1,1,2,1.5,2.9c0.5,1,1.2,1.9,1.9,2.9c0.8,1,1.6,1.9,2.4,2.6c0.2,0.2,0.4,0.2,0.5,0.2 c0.2,0,0.4-0.1,0.5-0.2c1.2-1,2.2-2.3,3.2-3.8c1-1.5,1.8-2.8,2.3-4c0.6-1.3,1.1-2.5,1.5-3.9c0.4-1.3,0.7-2.2,0.9-2.8 c0.1-0.5,0.2-1,0.3-1.3c0-0.1,0-0.1,0-0.1c0-0.2,0-0.3-0.1-0.4C20.3,5.2,20.2,5.1,20,5L12,2.1c0,0-0.1,0-0.2,0s-0.1,0-0.1,0h-0.2 l-8,2.8C3.2,5,3.1,5.2,3,5.3C2.9,5.5,2.9,5.6,2.9,5.8C2.9,5.8,2.9,5.8,2.9,5.9z M5.9,6.7h3l2.8,7l2.8-7h3c-0.1,0.1-0.2,0.5-0.3,0.8 C17,7.8,17,8.2,16.8,8.4c-0.1,0.3-0.2,0.5-0.4,0.8c0,0.1-0.1,0.1-0.1,0.1s-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.2,0.1-0.2,0.2c0,0-0.1,0.1-0.1,0.1s-0.1,0.1-0.1,0.1c0,0,0,0.1-0.1,0.2c0,0.1-0.1,0.1-0.1,0.1l-0.4,1.1 c-1.3,3.3-2.1,5.2-2.3,5.8h-2.2l-1-2.4c-0.1-0.3-0.3-0.8-0.5-1.3c-0.1-0.3-0.3-0.8-0.5-1.3L8,10.8c-0.1-0.1-0.1-0.2-0.1-0.4 C7.8,10.2,7.7,10,7.7,9.8C7.6,9.7,7.5,9.5,7.4,9.4C7.3,9.3,7.3,9.3,7.3,9.3c-0.1,0-0.2,0-0.2,0s-0.1,0-0.1,0 C6.6,8.5,6.3,7.6,5.9,6.7z"})),boost:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19505 16.2545C4.47368 16.561 4.94802 16.5836 5.25451 16.3049L10.2595 11.7549L14.2842 15.2765L19 10.5607V13.75H20.5V9.5V8.75239V8.7476V8H19.7529H19.7471H19H14.75V9.5H17.9393L14.2158 13.2235L10.2405 9.74507L4.2455 15.195C3.93901 15.4737 3.91642 15.948 4.19505 16.2545Z"})),crm:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"M15.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm-2.25 6v-2a2.75 2.75 0 0 0-2.75-2.75h-4A2.75 2.75 0 0 0 3.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5Zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0 1 20.25 15ZM9.5 8.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"})),extras:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5ZM12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6h-1.5v6a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h6V4Z"})),protect:({opacity:e=1,size:t,className:a,color:n})=>React.createElement(l,{className:a,size:t,opacity:e,color:n},React.createElement(i.Path,{d:"M12 3.17627L18.75 6.24445V10.8183C18.75 14.7173 16.2458 18.4089 12.7147 19.5735C12.2507 19.7265 11.7493 19.7265 11.2853 19.5735C7.75416 18.4089 5.25 14.7173 5.25 10.8183V6.24445L12 3.17627ZM6.75 7.21032V10.8183C6.75 14.1312 8.89514 17.2057 11.7551 18.149C11.914 18.2014 12.086 18.2014 12.2449 18.149C15.1049 17.2057 17.25 14.1312 17.25 10.8183V7.21032L12 4.82396L6.75 7.21032Z"}),React.createElement(i.Path,{d:"M15.5291 10.0315L11.1818 14.358L8.47095 11.66L9.52907 10.5968L11.1818 12.2417L14.4709 8.96826L15.5291 10.0315Z"})),scan:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"m12 3.176 6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 0 1-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176ZM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21Z"})),search:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"M17.5 11.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm1.5 0a5.5 5.5 0 0 1-9.142 4.121l-3.364 2.943-.988-1.128 3.373-2.952A5.5 5.5 0 1 1 19 11.5Z"})),social:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{d:"M15.5 3.97809V18.0219L7.5 15.5977V20H6V15.1431L3.27498 14.3173C2.22086 13.9979 1.5 13.0262 1.5 11.9248V10.0752C1.5 8.97375 2.22087 8.00207 3.27498 7.68264L15.5 3.97809ZM14 16L7.5 14.0303L7.5 7.96969L14 5.99999V16ZM6 8.42423L6 13.5757L3.70999 12.8818C3.28835 12.754 3 12.3654 3 11.9248V10.0752C3 9.63462 3.28835 9.24595 3.70999 9.11818L6 8.42423ZM17.5 11.75H21.5V10.25H17.5V11.75ZM21.5 16L17.5 15V13.5L21.5 14.5V16ZM17.5 8.5L21.5 7.5V6L17.5 7V8.5Z"})),star:({size:e,className:t=c.Z["star-icon"],color:a})=>React.createElement(l,{className:t,size:e,color:a},React.createElement(i.Path,{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})),videopress:({opacity:e=1,size:t,color:a})=>React.createElement(l,{size:t,opacity:e,color:a},React.createElement(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3,6.2c0.8,0,1.6,0.6,1.8,1.4l2.3,7.9c0,0,0,0,0,0l2.7-9.3h1.5h4.2c2.9,0,4.9,1.9,4.9,4.7c0,2.9-2,4.7-5,4.7 h-2h-2.5l-0.5,1.5c-0.4,1.4-1.7,2.3-3.2,2.3c-1.4,0-2.7-0.9-3.2-2.3L2.5,8.7C2.1,7.4,3,6.2,4.3,6.2z M13,12.8h2.9c1.3,0,2-0.7,2-1.9 c0-1.2-0.8-1.8-2-1.8h-1.7L13,12.8z"})),jetpack:({size:e,className:t=c.Z.jetpack,color:a})=>React.createElement(l,{className:t,size:e,color:a,viewBox:"0 0 32 32"},React.createElement(i.Path,{className:"jetpack-logo__icon-circle",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),React.createElement(i.Polygon,{fill:"#fff",points:"15,19 7,19 15,3"}),React.createElement(i.Polygon,{fill:"#fff",points:"17,29 17,13 25,13"})),share:({size:e=16,className:t,color:a})=>React.createElement(l,{className:t,size:e,color:a,viewBox:"0 0 16 16"},React.createElement(i.Path,{fill:"#161722",fillRule:"evenodd",d:"M8.3 4.66C3.85 5.308.727 9.75.034 13.69l-.02.117c-.137.842.809 1.232 1.446.68 2.013-1.745 3.648-2.475 5.318-2.719a10.482 10.482 0 011.524-.103v2.792c0 .694.82 1.041 1.3.55l6.176-6.307a.79.79 0 00.012-1.088L9.614 1.004C9.14.496 8.301.84 8.301 1.542v3.117zm1.525-1.175v1.85a.773.773 0 01-.654.77l-.655.096c-2.133.311-3.987 1.732-5.295 3.672-.472.7-.854 1.44-1.143 2.18a12.32 12.32 0 011.675-.972c1.58-.75 3.048-.972 4.548-.972h.762a.77.77 0 01.762.779v1.69l4.347-4.44-4.347-4.653z",clipRule:"evenodd"})),ai:({size:e=24,color:t="#069e08"})=>React.createElement(l,{color:t,size:e,viewBox:"0 0 32 32"},React.createElement(i.Path,{className:"spark-first",d:"M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z"}),React.createElement(i.Path,{className:"spark-second",d:"M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z"}),React.createElement(i.Path,{className:"spark-third",d:"M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z"}))}};function d(e){return p[e]?p[e]:null}const u=({serviceName:e,className:t,iconSize:a})=>React.createElement(o.ZP,{className:(0,r.Z)(c.Z.socialIcon,c.Z[e],t),icon:e,size:a||24})},38237:(e,t,a)=>{"use strict";a.d(t,{Z:()=>_});var n=a(82674),s=a.n(n),i=a(9818),r=a(65736),o=a(61074),c=a(15381),l=a(3228),p=a(99196),d=a.n(p),u=a(6895),m=a(80428),h=a(92497),g=a(37525),k=(a(33527),a(78868)),v=a(32054);const __=r.__,_x=r._x,f=()=>d().createElement(k.Z,{logoColor:"#000",showText:!1,height:16,"aria-hidden":"true"}),E=()=>d().createElement(d().Fragment,null,d().createElement(o.Z,{icon:c.Z,size:16}),d().createElement("span",{className:"jp-dashboard-footer__accessible-external-link"},/* translators: accessibility text */ __("(opens in a new tab)","jetpack"))),_=({moduleName:e=__("Jetpack","jetpack"),className:t,moduleNameHref:a="https://jetpack.com",menu:n,onAboutClick:r,onPrivacyClick:o,onTermsClick:c,...p})=>{const[k]=(0,v.Z)("sm","<="),[_]=(0,v.Z)("md","<="),[b]=(0,v.Z)("lg",">"),{isActive:y,connectedPlugins:w}=(0,i.useSelect)((e=>{const t=e(m.t);return{connectedPlugins:t?.getConnectedPlugins(),...t.getConnectionStatus()}}),[m.t]),C=(0,h.Z)(),j=C&&y&&w?.some((({slug:e})=>"jetpack"===e));let S=[{label:_x("About","Link to learn more about Jetpack.","jetpack"),title:__("About Jetpack","jetpack"),href:j?new URL("admin.php?page=jetpack_about",C).href:(0,u.Z)("jetpack-about"),target:j?"_self":"_blank",onClick:r},{label:_x("Privacy","Shorthand for Privacy Policy.","jetpack"),title:__("Automattic's Privacy Policy","jetpack"),href:j?new URL("admin.php?page=jetpack#/privacy",C).href:(0,u.Z)("a8c-privacy"),target:j?"_self":"_blank",onClick:o},{label:_x("Terms","Shorthand for Terms of Service.","jetpack"),title:__("WordPress.com Terms of Service","jetpack"),href:(0,u.Z)("wpcom-tos"),target:"_blank",onClick:c}];n&&(S=[...S,...n]);const N=d().createElement(d().Fragment,null,d().createElement(f,null),e);return d().createElement("footer",s()({className:(0,l.Z)("jp-dashboard-footer",{"is-sm":k,"is-md":_,"is-lg":b},t),"aria-label":__("Jetpack","jetpack")},p),d().createElement("ul",null,d().createElement("li",{className:"jp-dashboard-footer__jp-item"},a?d().createElement("a",{href:a},N):N),S.map((e=>{const t="button"===e.role,a=!t&&"_blank"===e.target;return d().createElement("li",{key:e.label},d().createElement("a",{href:e.href,title:e.title,target:e.target,onClick:e.onClick,onKeyDown:e.onKeyDown,className:(0,l.Z)("jp-dashboard-footer__menu-item",{"is-external":a}),role:e.role,rel:a?"noopener noreferrer":void 0,tabIndex:t?0:void 0},e.label,a&&d().createElement(E,null)))})),d().createElement("li",{className:"jp-dashboard-footer__a8c-item"},d().createElement("a",{href:j?new URL("admin.php?page=jetpack_about",C).href:(0,u.Z)("a8c-about"),"aria-label":__("An Automattic Airline","jetpack")},d().createElement(g.Z,{"aria-hidden":"true"})))))}},78868:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(82674),s=a.n(n),i=a(65736),r=a(3228),o=a(99196),c=a.n(o);const __=i.__,l=({logoColor:e="#069e08",showText:t=!0,className:a,height:n=32,...i})=>{const o=t?"0 0 118 32":"0 0 32 32";return c().createElement("svg",s()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:(0,r.Z)("jetpack-logo",a),"aria-labelledby":"jetpack-logo-title",height:n},i,{role:"img"}),c().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack")),c().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&c().createElement(c().Fragment,null,c().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),c().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),c().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),c().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),c().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),c().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),c().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},73846:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(3228),s=a(99196),i=a(31418);const r=Number(i.Z.smCols),o=Number(i.Z.mdCols),c=Number(i.Z.lgCols),l=e=>{const{children:t,tagName:a="div",className:l}=e,p=Math.min(r,"number"==typeof e.sm?e.sm:r),d=Math.min(r,"object"==typeof e.sm?e.sm.start:0),u=Math.min(r,"object"==typeof e.sm?e.sm.end:0),m=Math.min(o,"number"==typeof e.md?e.md:o),h=Math.min(o,"object"==typeof e.md?e.md.start:0),g=Math.min(o,"object"==typeof e.md?e.md.end:0),k=Math.min(c,"number"==typeof e.lg?e.lg:c),v=Math.min(c,"object"==typeof e.lg?e.lg.start:0),f=Math.min(c,"object"==typeof e.lg?e.lg.end:0),E=(0,n.Z)(l,{[i.Z[`col-sm-${p}`]]:!(d&&u),[i.Z[`col-sm-${d}-start`]]:d>0,[i.Z[`col-sm-${u}-end`]]:u>0,[i.Z[`col-md-${m}`]]:!(h&&g),[i.Z[`col-md-${h}-start`]]:h>0,[i.Z[`col-md-${g}-end`]]:g>0,[i.Z[`col-lg-${k}`]]:!(v&&f),[i.Z[`col-lg-${v}-start`]]:v>0,[i.Z[`col-lg-${f}-end`]]:f>0});return(0,s.createElement)(a,{className:E},t)}},13363:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(3228),s=a(99196),i=a(87054);const r=({children:e,fluid:t=!1,tagName:a="div",className:r,horizontalGap:o=1,horizontalSpacing:c=1})=>{const l=(0,s.useMemo)((()=>{const e=`calc( var(--horizontal-spacing) * ${c} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${o} )`}}),[o,c]),p=(0,n.Z)(r,i.Z.container,{[i.Z.fluid]:t});return(0,s.createElement)(a,{className:p,style:l},e)}},32054:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(94333),s=a(49710);const i=["sm","md","lg"],r=(e,t)=>{const a=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],[o,c,l]=i,p={sm:(0,n.useMediaQuery)(s.Z[o]),md:(0,n.useMediaQuery)(s.Z[c]),lg:(0,n.useMediaQuery)(s.Z[l])};return a.map(((e,t)=>{const a=r[t];return a?((e,t,a)=>{const n=i.indexOf(e),s=n+1,r=t.includes("=");let o=[];return t.startsWith("<")&&(o=i.slice(0,r?s:n)),t.startsWith(">")&&(o=i.slice(r?n:s)),o?.length?o.some((e=>a[e])):a[e]})(e,a,p):p[e]}))}},41342:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(30797),s=a(90496),i=a(79201),r=a(61074),o=a(39517),c=a(3228),l=a(99196),p=a.n(l),d=a(12077);const u=e=>{switch(e){case"error":case"warning":default:return n.Z;case"info":return s.Z;case"success":return i.Z}},m=({level:e="info",title:t,children:a,actions:n,hideCloseButton:s=!1,onClose:i})=>{const l=(0,c.Z)(d.Z.container,d.Z[`is-${e}`]);return p().createElement("div",{className:l},p().createElement("div",{className:d.Z["icon-wrapper"]},p().createElement(r.Z,{icon:u(e),className:d.Z.icon})),p().createElement("div",{className:d.Z["main-content"]},t&&p().createElement("div",{className:d.Z.title},t),a,n&&n.length>0&&p().createElement("div",{className:d.Z["action-bar"]},n.map(((e,t)=>p().createElement("div",{key:t,className:d.Z.action},e))))),!s&&p().createElement("button",{"aria-label":"close",className:d.Z["close-button"],onClick:i},p().createElement(r.Z,{icon:o.Z})))}},52947:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(98709);const s=(e,t={})=>{const a=(0,n.X)();return new Intl.NumberFormat(a,t).format(e)}},25347:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(65736),s=a(3228),i=a(45106),r=a(33789),o=a(37387);const __=n.__,c=({price:e,offPrice:t,currency:a="",showNotOffPrice:n=!0,hideDiscountLabel:c=!0,promoLabel:l="",legend:p=__("/month, paid yearly","jetpack"),isNotConvenientPrice:d=!1,hidePriceFraction:u=!1,children:m})=>{if(null==e&&null==t||!a)return null;n=n&&null!=t;const h="number"==typeof e&&"number"==typeof t?Math.floor((e-t)/e*100):0,g=!c&&h&&h>0?h+__("% off","jetpack"):null;return React.createElement(React.Fragment,null,React.createElement("div",{className:o.Z.container},React.createElement("div",{className:(0,s.Z)(o.Z["price-container"],"product-price_container")},React.createElement(r.t,{value:t??e,currency:a,isOff:!d,hidePriceFraction:u}),n&&React.createElement(r.t,{value:e,currency:a,isOff:!1,hidePriceFraction:u}),g&&React.createElement(i.ZP,{className:(0,s.Z)(o.Z["promo-label"],"product-price_promo_label")},g))),React.createElement("div",{className:o.Z.footer},m||React.createElement(i.ZP,{className:(0,s.Z)(o.Z.legend,"product-price_legend")},p),l&&React.createElement(i.ZP,{className:(0,s.Z)(o.Z["promo-label"],"product-price_promo_label")},l)))}},33789:(e,t,a)=>{"use strict";a.d(t,{t:()=>o});var n=a(25607),s=a(3228),i=a(45106),r=a(37387);const o=({value:e,currency:t,isOff:a,hidePriceFraction:o})=>{const c=(0,s.Z)(r.Z.price,"product-price_price",{[r.Z["is-not-off-price"]]:!a}),{symbol:l,integer:p,fraction:d}=(0,n.LR)(e,t),u=!o||!d.endsWith("00");return React.createElement(i.ZP,{className:c,variant:"headline-medium",component:"p"},React.createElement(i.ZP,{className:r.Z.symbol,component:"sup",variant:"title-medium"},l),p,u&&React.createElement(i.ZP,{component:"sup",variant:"body-small","data-testid":"PriceFraction"},React.createElement("strong",null,d)))}},94343:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(3228),s=a(11334);const i=({className:e,progressClassName:t,progress:a,size:i="normal"})=>{if(null==a)return null;const r={width:100*Math.max(Math.min(a,1),0)+"%"};return React.createElement("div",{className:(0,n.Z)(e,s.Z.wrapper,{[s.Z.small]:"small"===i})},React.createElement("div",{className:(0,n.Z)(t,s.Z.progress),style:r}))}},94918:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(55609),s=a(3228),i=a(31703);const r=({selected:e,className:t,disabled:a,help:r,label:o,hideLabelFromVision:c,options:l,onChange:p})=>React.createElement(n.RadioControl,{selected:e,className:(0,s.Z)(i.Z.radio,t),disabled:a,help:r,label:o,hideLabelFromVision:c,options:l,onChange:p})},43521:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(65736),s=a(3228),i=a(99196),r=a.n(i),o=a(52947);a(34086);const __=n.__,c=({totalCount:e,items:t=[],showLegendLabelBeforeCount:a=!1,sortByCount:n,className:c,tableCaption:l,legendTitle:p,recordTypeLabel:d,recordCountLabel:u})=>{const m=(0,i.useMemo)((()=>e||t.reduce(((e,{count:t})=>e+t),0)),[t,e]),h=(0,i.useMemo)((()=>n?[...t].sort(((e,t)=>"ascending"===n?e.count-t.count:t.count-e.count)):t),[t,n]);return r().createElement("div",{className:(0,s.Z)("record-meter-bar",c)},r().createElement("div",{className:"record-meter-bar__items","aria-hidden":"true"},h.map((({count:e,label:t,backgroundColor:a})=>{const n=(e/m*100).toPrecision(2);return r().createElement("div",{key:t,style:{backgroundColor:a,flexBasis:`${n}%`}})}))),r().createElement("div",{className:"record-meter-bar__legend","aria-hidden":"true"},p&&r().createElement("div",{className:"record-meter-bar__legend--title"},p),r().createElement("ul",{className:"record-meter-bar__legend--items"},h.map((({count:e,label:t,backgroundColor:n})=>{const s=(0,o.Z)(e);return r().createElement("li",{key:t,className:"record-meter-bar__legend--item"},r().createElement("div",{className:"record-meter-bar__legend--item-circle",style:{backgroundColor:n}}),!a&&r().createElement("span",null,r().createElement("span",{className:"record-meter-bar__legend--item-count"},s),r().createElement("span",{className:"record-meter-bar__legend--item-label"},t)),a&&r().createElement("span",null,r().createElement("span",{className:"record-meter-bar__legend--item-label record-meter-bar__legend--item-label-first"},t),r().createElement("span",{className:"record-meter-bar__legend--item-count"},"(",s,")")))})))),r().createElement("table",{className:"screen-reader-text"},r().createElement("caption",null,l||__("Summary of the records","jetpack")),r().createElement("tbody",null,r().createElement("tr",null,r().createElement("th",{scope:"col"},d||__("Record type","jetpack")),r().createElement("th",{scope:"col"},u||__("Record count","jetpack"))),h.map((({label:e,count:t})=>r().createElement("tr",{key:e},r().createElement("td",null,e),r().createElement("td",null,t)))))))}},45033:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(15844),s=a.n(n),i=a(99196),r=a.n(i);a(48026);const o=({color:e="#FFFFFF",className:t="",size:a=20})=>{const n=t+" jp-components-spinner",s={width:a,height:a,fontSize:a,borderTopColor:e},i={borderTopColor:e,borderRightColor:e};return r().createElement("div",{className:n},r().createElement("div",{className:"jp-components-spinner__outer",style:s},r().createElement("div",{className:"jp-components-spinner__inner",style:i})))};o.propTypes={color:s().string,className:s().string,size:s().number};const c=o},73474:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(65736),s=a(3228),i=a(45106),r=a(49807);const __=n.__,o=({className:e,label:t,status:a="inactive"})=>{const n={active:__("Active","jetpack"),error:__("Error","jetpack"),action:__("Action needed","jetpack"),inactive:__("Inactive","jetpack"),initializing:__("Setting up","jetpack")};return React.createElement(i.ZP,{variant:"body-extra-small",className:(0,s.Z)(r.Z.status,{[r.Z[`is-${a}`]]:a},e)},React.createElement("span",{className:r.Z.status__indicator}),React.createElement("span",{className:r.Z.status__label},t||""===t?t:n[a]))}},37325:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(69307),s=a(65736),i=a(3228),r=a(6895),o=a(45106);a(67660);const __=s.__,c=({multipleButtonsLabels:e})=>Array.isArray(e)&&e.length>1?(0,n.createInterpolateElement)((0,s.sprintf)(/* translators: %1$s is button label 1 and %2$s is button label 2 */ __("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),e[0],e[1]),{strong:React.createElement("strong",null),tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,n.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),{tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),l=({agreeButtonLabel:e})=>(0,n.createInterpolateElement)((0,s.sprintf)(/* translators: %s is a button label */ __("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(p,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=({slug:e,children:t})=>React.createElement("a",{className:"terms-of-service__link",href:(0,r.Z)(e),rel:"noopener noreferrer",target:"_blank"},t),d=({className:e,multipleButtons:t,agreeButtonLabel:a})=>React.createElement(o.ZP,{className:(0,i.Z)(e,"terms-of-service")},t?React.createElement(c,{multipleButtonsLabels:t}):React.createElement(l,{agreeButtonLabel:a}))},66017:(e,t,a)=>{"use strict";a.d(t,{h:()=>n,s:()=>s});const n={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},s=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},45106:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>d});var n=a(82674),s=a.n(n),i=a(3228),r=a(99196),o=a.n(r),c=a(66017),l=a(85837);const p=(0,r.forwardRef)((({variant:e="body",children:t,component:a,className:n,...p},d)=>{const u=a||c.h[e]||"span",m=(0,r.useMemo)((()=>c.s.reduce(((e,t)=>(void 0!==p[t]&&(e+=l.Z[`${t}-${p[t]}`]+" ",delete p[t]),e)),"")),[p]);return p.ref=d,o().createElement(u,s()({className:(0,i.Z)(l.Z.reset,l.Z[e],n,m)},p),t)}));p.displayName="Text";const d=p},88275:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>u});var n=a(99196),s=a.n(n),i=a(93468);const r={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},o={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},p={},d=(e,t,a)=>{const n={...r,...o,...c,...l};for(const t in n)e.style.setProperty(t,n[t]);a&&e.classList.add(i.Z.global),t&&(p[t]={provided:!0,root:e})},u=({children:e=null,targetDom:t,id:a,withGlobalStyles:i=!0})=>{const r=(0,n.useRef)(),o=p?.[a]?.provided;return(0,n.useLayoutEffect)((()=>{if(!o)return t?d(t,a,i):void(r?.current&&d(r.current,a,i))}),[t,r,o,a,i]),t?s().createElement(s().Fragment,null,e):s().createElement("div",{ref:r},e)}},48229:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(55609),s=a(3228),i=a(99196),r=a(87999);const o=({checked:e,className:t,disabled:a,help:o,toggling:c,label:l,size:p="normal",onChange:d})=>{const u=void 0!==c?e&&!c||!e&&c:e,m=(0,i.useCallback)((e=>{c||d(e)}),[c,d]);return React.createElement(n.ToggleControl,{checked:u,className:(0,s.Z)(r.Z.toggle,t,{[r.Z["is-toggling"]]:c,[r.Z["is-small"]]:"small"===p,[r.Z["no-label"]]:!l}),disabled:a,help:o,label:l,onChange:m})}},94706:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(90526),s=a(55609),i=a(69307),r=a(99196),o=a.n(r);a(81737);const c=e=>{const{icon:t,title:a,description:r,primaryCtaLabel:c,primaryCtaURL:l,primaryCtaIsExternalLink:p,primaryCtaOnClick:d,secondaryCtaLabel:u,secondaryCtaURL:m,secondaryCtaIsExternalLink:h,secondaryCtaOnClick:g}=e;return o().createElement(s.Card,{isRounded:!0,size:"large"},o().createElement(s.CardBody,{className:"upsell-banner",size:"large"},t&&o().createElement("div",{className:"upsell-banner--icon"},o().createElement("img",{src:t,alt:""})),o().createElement("div",{className:"upsell-banner--content"},o().createElement("div",{className:"upsell-banner--content-info"},o().createElement("h3",null,a),o().createElement("p",null,(0,i.createInterpolateElement)(r,{br:o().createElement("br",null)}))),o().createElement("div",{className:"upsell-banner--content-cta"},u&&m&&o().createElement(n.Z,{className:"upsell-banner--content-cta-button secondary",href:m,onClick:g??void 0,isExternalLink:h},u),c&&l&&o().createElement(n.Z,{className:"upsell-banner--content-cta-button primary",href:l,onClick:d??void 0,isExternalLink:p},c)))))}},98709:(e,t,a)=>{"use strict";a.d(t,{X:()=>s});var n=a(69771);const s=()=>{const{l10n:{locale:e}}=(0,n.getSettings)();if(e)return(e=>{const t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?`${t[1]}${t[2]?t[2]:""}`.replace("_","-"):"en-US"})(e);return window?.window?.navigator?.language??"en-US"}},92497:(e,t,a)=>{"use strict";function n(){return window.Initial_State?.adminUrl||window.Jetpack_Editor_Initial_State?.adminUrl||window?.myJetpackInitialState?.adminUrl||null}a.d(t,{Z:()=>n})},6895:(e,t,a)=>{"use strict";function n(e,t={}){const a={};let n;if("undefined"!=typeof window&&(n=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,a.url=encodeURIComponent(e)}else a.source=encodeURIComponent(e);for(const e in t)a[e]=encodeURIComponent(t[e]);!Object.keys(a).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(a.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),n&&(a.calypso_env=n);return"https://jetpack.com/redirect/?"+Object.keys(a).map((e=>e+"="+a[e])).join("&")}a.d(t,{Z:()=>n})},16554:(e,t,a)=>{"use strict";function n(e){return 1===e?.interval_count&&"month"===e?.interval_unit}a.d(t,{Z:()=>n})},61132:(e,t,a)=>{let n={};try{n=a(92787)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),n={missingConfig:!0}}const s=e=>n.hasOwnProperty(e);e.exports={jetpackConfigHas:s,jetpackConfigGet:e=>{if(!s(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return n[e]}}},14792:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(67121),s=a(65736),i=a(15844),r=a.n(i),o=a(99196),c=a.n(o),l=a(31294);const __=s.__,p=e=>{const{apiRoot:t,apiNonce:a,connectLabel:s=__("Connect","jetpack"),registrationNonce:i,redirectUri:r=null,from:o,autoTrigger:p=!1}=e,{handleRegisterSite:d,isRegistered:u,isUserConnected:m,siteIsRegistering:h,userIsConnecting:g,registrationError:k}=(0,l.Z)({registrationNonce:i,redirectUri:r,apiRoot:t,apiNonce:a,autoTrigger:p,from:o});return c().createElement(c().Fragment,null,(!u||!m)&&c().createElement(n.Z,{label:s,onClick:d,displayError:!!k,isLoading:h||g}))};p.propTypes={connectLabel:r().string,apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,from:r().string,redirectUri:r().string.isRequired,registrationNonce:r().string.isRequired,autoTrigger:r().bool};const d=p},66183:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(65736),s=a(99196),i=a.n(s),r=a(31294),o=a(67851);const __=n.__,c=({title:e,buttonLabel:t,loadingLabel:a,apiRoot:n,apiNonce:s,registrationNonce:c,from:l,redirectUri:p,images:d,children:u,assetBaseUrl:m,autoTrigger:h,footer:g,skipUserConnection:k,logo:v})=>{const{handleRegisterSite:f,siteIsRegistering:E,userIsConnecting:_,registrationError:b,isOfflineMode:y}=(0,r.Z)({registrationNonce:c,redirectUri:p,apiRoot:n,apiNonce:s,autoTrigger:h,from:l,skipUserConnection:k}),w=Boolean(b),C=E||_,j=b?.response?.code;return i().createElement(o.Z,{title:e||__("Over 5 million WordPress sites are faster and more secure","jetpack"),images:d||[],assetBaseUrl:m,buttonLabel:t||__("Set up Jetpack","jetpack"),loadingLabel:a,handleButtonClick:f,displayButtonError:w,errorCode:j,buttonIsLoading:C,footer:g,isOfflineMode:y,logo:v},u)}},67851:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(37325),s=a(67121),i=a(6895),r=a(69307),o=a(65736),c=a(99196),l=a.n(c),p=a(30016);a(54590);const __=o.__,d=(e,t)=>{switch(e){case"fail_domain_forbidden":case"fail_ip_forbidden":case"fail_domain_tld":case"fail_subdomain_wpcom":case"siteurl_private_ip":return __("Your site host is on a private network. Jetpack can only connect to public sites.","jetpack")}if(t)return(0,r.createInterpolateElement)(__("Unavailable in <a>Offline Mode</a>","jetpack"),{a:l().createElement("a",{href:(0,i.Z)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})})},u=({title:e,images:t,children:a,assetBaseUrl:i,isLoading:r,buttonLabel:o,handleButtonClick:c,displayButtonError:u,errorCode:m,buttonIsLoading:h,loadingLabel:g,footer:k,isOfflineMode:v,logo:f})=>l().createElement(p.Z,{title:e,assetBaseUrl:i,images:t,className:"jp-connection__connect-screen"+(r?" jp-connection__connect-screen__loading":""),logo:f},l().createElement("div",{className:"jp-connection__connect-screen__content"},a,l().createElement("div",{className:"jp-connection__connect-screen__tos"},l().createElement(n.Z,{agreeButtonLabel:o})),l().createElement(s.Z,{label:o,onClick:c,displayError:u||v,errorMessage:d(m,v),isLoading:h,isDisabled:v}),l().createElement("span",{className:"jp-connection__connect-screen__loading-message",role:"status"},h?g||__("Loading","jetpack"):""),k&&l().createElement("div",{className:"jp-connection__connect-screen__footer"},k)))},7593:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(99196),s=a.n(n);const i=({images:e,assetBaseUrl:t=""})=>{if(!e?.length)return null;const a=e.map(((e,a)=>s().createElement(s().Fragment,{key:a},s().createElement("img",{src:t+e,alt:""}))));return s().createElement("div",{className:"jp-connection__connect-screen__image-slider"},a)}},30016:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(78868),s=a(3228),i=a(99196),r=a.n(i),o=a(7593);a(15035);const c=({title:e,children:t,className:a,assetBaseUrl:i,images:c,logo:l,rna:p=!1})=>{const d=c?.length;return r().createElement("div",{className:(0,s.Z)("jp-connection__connect-screen-layout",d?"jp-connection__connect-screen-layout__two-columns":"",a?" "+a:"")},p&&r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs"},r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__green"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__yellow"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__blue"})),r().createElement("div",{className:"jp-connection__connect-screen-layout__left"},l||r().createElement(n.Z,null),r().createElement("h2",null,e),t),d?r().createElement("div",{className:"jp-connection__connect-screen-layout__right"},r().createElement(o.Z,{images:c,assetBaseUrl:i})):null)}},57879:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(65736),s=a(15844),i=a.n(s),r=a(99196),o=a.n(r),c=a(14322);const __=n.__,l=e=>{const{connectedPlugins:t,disconnectingPlugin:a}=e,n=(0,r.useMemo)((()=>{if(t){return Object.keys(t).map((e=>Object.assign({slug:e},t[e]))).filter((e=>a!==e.slug))}return[]}),[t,a]);return t&&n.length>0?o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack"))),o().createElement("div",{className:"jp-connection__disconnect-card__group"},n.map((e=>o().createElement(c.Z,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:i().array,disconnectingPlugin:i().string};const p=l},14322:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(15844),s=a.n(n),i=a(99196),r=a.n(i);a(22202);const o=e=>{const{title:t,value:a,description:n}=e;return r().createElement("div",{className:"jp-connection__disconnect-card card"},r().createElement("div",{className:"jp-connection__disconnect-card__card-content"},r().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},t),(a||n)&&r().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},r().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},a),r().createElement("div",{className:"jp-connection__disconnect-card__card-description"},n))))};o.propTypes={title:s().string,value:s().oneOfType([s().string,s().number]),description:s().string};const c=o},16168:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(6975),s=a(64743),i=a(61132),r=a(55609),o=a(65736),c=a(15844),l=a.n(c),p=a(99196),d=a.n(p),u=(a(52741),a(9015)),m=a(45995),h=a(31702),g=a(61166);const __=o.__,k=e=>{const[t,a]=(0,p.useState)(!1),[o,c]=(0,p.useState)(!1),[l,k]=(0,p.useState)(!1),[v,f]=(0,p.useState)(!1),[E,_]=(0,p.useState)(!1),[b,y]=(0,p.useState)(!1),{apiRoot:w,apiNonce:C,connectedPlugins:j,title:S=__("Are you sure you want to disconnect?","jetpack"),pluginScreenDisconnectCallback:N,onDisconnected:x,onError:R,disconnectStepComponent:Z,context:T="jetpack-dashboard",connectedUser:A={},connectedSiteId:M,isOpen:P,onClose:O}=e;let L="";(0,i.jetpackConfigHas)("consumer_slug")&&(L=(0,i.jetpackConfigGet)("consumer_slug"));const I=(0,p.useMemo)((()=>({context:T,plugin:L})),[T,L]);(0,p.useEffect)((()=>{s.ZP.setApiRoot(w),s.ZP.setApiNonce(C)}),[w,C]),(0,p.useEffect)((()=>{A&&A.ID&&A.login&&n.Z.initialize(A.ID,A.login)}),[A,A.ID,A.login]),(0,p.useEffect)((()=>{P&&n.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",I)}),[P,I]),(0,p.useEffect)((()=>{P&&(o?!o||v||E?v&&!E?n.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},I)):E&&n.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},I)):n.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},I)):n.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},I)))}),[P,o,v,E,I]);const D=(0,p.useCallback)((()=>{s.ZP.disconnectSite().then((()=>{a(!1),c(!0)})).catch((e=>{a(!1),k(e),R&&R(e)}))}),[a,c,k,R]),U=(0,p.useCallback)(((e,t)=>{y(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);n.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",t),_(!0),y(!1)})).catch((e=>{n.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},t)),_(!0),y(!1)}))}),[y,_]),z=(0,p.useCallback)((e=>{e&&e.preventDefault(),k(!1),a(!0),"plugins"!==T?D():N&&N(e)}),[k,a,N,T,D]),V=(0,p.useCallback)((e=>n.Z.tracks.recordEvent(e,I)),[I]),F=(0,p.useCallback)((()=>!(!A.ID||!M)),[A,M]),B=(0,p.useCallback)(((e,t,a)=>{if(a&&a.preventDefault(),!F())return void _(!0);const n={site_id:M,user_id:A.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:t||null}}},s=Object.assign({},I,{disconnect_reason:e});U(n,s)}),[U,_,F,M,A,I]),H=(0,p.useCallback)((e=>{e&&e.preventDefault(),x&&x(),O()}),[x,O]),q=(0,p.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]);return d().createElement(d().Fragment,null,P&&d().createElement(r.Modal,{title:"",contentLabel:S,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:O,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(o?" jp-connection__disconnect-dialog__success":"")},o?!o||v||E?v&&!E?d().createElement(h.Z,{isSubmittingFeedback:b,onFeedBackProvided:B,onExit:H}):E?d().createElement(g.Z,{onExit:H}):void 0:d().createElement(m.Z,{canProvideFeedback:F(),onProvideFeedback:q,onExit:H}):d().createElement(u.Z,{title:S,connectedPlugins:j,disconnectStepComponent:Z,isDisconnecting:t,closeModal:O,onDisconnect:z,disconnectError:l,context:T,disconnectingPlugin:L,trackModalClick:V})))};k.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,title:l().string,onDisconnected:l().func,onError:l().func,context:l().string,connectedPlugins:l().oneOfType([l().array,l().object]),pluginScreenDisconnectCallback:l().func,disconnectStepComponent:l().element,connectedUser:l().object,connectedSiteId:l().number,isOpen:l().bool,onClose:l().func};const v=k},45995:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(69026),s=a(55609),i=a(69307),r=a(65736),o=a(15844),c=a.n(o),l=a(99196),p=a.n(l),d=a(62042);const __=r.__,u=e=>{const{onExit:t,canProvideFeedback:a,onProvideFeedback:r}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(n.Z,{icon:"unlink",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},p().createElement("h1",null,(0,i.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack"),{br:p().createElement("br",null)})),a&&p().createElement(p().Fragment,null,p().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack")),p().createElement("p",null,p().createElement(s.Button,{variant:"primary",onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack"))),p().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("No thank you","jetpack"))),!a&&p().createElement(p().Fragment,null,p().createElement("p",null,p().createElement(s.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack"))))))};u.propTypes={onExit:c().func,onProvideFeedback:c().func,canProvideFeedback:c().bool};const m=u},9015:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(6895),s=a(55609),i=a(69307),r=a(65736),o=a(15844),c=a.n(o),l=a(99196),p=a.n(l),d=a(57879);const __=r.__,u=e=>{const{title:t,isDisconnecting:a,onDisconnect:r,disconnectError:o,disconnectStepComponent:c,connectedPlugins:u,disconnectingPlugin:m,closeModal:h,context:g,trackModalClick:k}=e,v=(0,l.useCallback)((()=>k("jetpack_disconnect_dialog_click_learn_about")),[k]),f=(0,l.useCallback)((()=>k("jetpack_disconnect_dialog_click_support")),[k]),E=(0,l.useCallback)((()=>{k("jetpack_disconnect_dialog_click_stay_connected"),h()}),[k,h]),_=(0,l.useCallback)((e=>{k("jetpack_disconnect_dialog_click_disconnect"),r(e)}),[k,r]),b=(0,l.useCallback)((e=>{"Escape"!==e.key||a||E()}),[E,a]);(0,l.useEffect)((()=>(document.addEventListener("keydown",b,!1),()=>{document.removeEventListener("keydown",b,!1)})),[]);return p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},t),p().createElement(d.Z,{connectedPlugins:u,disconnectingPlugin:m}),c,(()=>{if(!(u&&Object.keys(u).filter((e=>e!==m)).length)&&!c)return p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack"),p().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack")))})()),p().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},p().createElement("div",{className:"jp-row"},p().createElement("div",{className:"lg-col-span-8 md-col-span-9 sm-col-span-4"},p().createElement("p",null,(0,i.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack"),{strong:p().createElement("strong",null),jpConnectionInfoLink:p().createElement(s.ExternalLink,{href:(0,n.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__disconnect-dialog__link",onClick:v}),jpSupportLink:p().createElement(s.ExternalLink,{href:(0,n.Z)("jetpack-support"),className:"jp-connection__disconnect-dialog__link",onClick:f})}))),p().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-4 md-col-span-7 sm-col-span-4"},p().createElement(s.Button,{variant:"primary",disabled:a,onClick:E,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===g?__("Cancel","jetpack"):__("Stay connected","jetpack",0)),(()=>{let e=__("Disconnect","jetpack");return a?e=__("Disconnecting…","jetpack"):"plugins"===g&&(e=__("Deactivate","jetpack")),p().createElement(s.Button,{variant:"primary",disabled:a,onClick:_,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),o&&p().createElement("p",{className:"jp-connection__disconnect-dialog__error"},o)))};u.propTypes={title:c().string,isDisconnecting:c().bool,onDisconnect:c().func,disconnectError:c().bool,disconnectStepComponent:c().element,connectedPlugins:c().array,disconnectingPlugin:c().string,closeModal:c().func,context:c().string,trackModalClick:c().func};const m=u},31702:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(65736),s=a(15844),i=a.n(s),r=a(99196),o=a.n(r),c=(a(88043),a(36336));const __=n.__,l=e=>{const{onExit:t,onFeedBackProvided:a,isSubmittingFeedback:n}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack")),o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack")),o().createElement(c.Z,{onSubmit:a,isSubmittingFeedback:n}),o().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("Skip for now","jetpack")))};l.PropTypes={onExit:i().func,onFeedBackProvided:i().func,isSubmittingFeedback:i().bool};const p=l},61166:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(69026),s=a(55609),i=a(69307),r=a(65736),o=a(15844),c=a.n(o),l=a(99196),p=a.n(l),d=a(90724);const __=r.__,u=e=>{const{onExit:t}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(n.Z,{format:"vertical",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},p().createElement("h1",null,__("Thank you!","jetpack")),p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,i.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack"),{br:p().createElement("br",null)})),p().createElement(s.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack"))))};u.PropTypes={onExit:c().func,assetBaseUrl:c().string};const m=u},36336:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(55609),s=a(65736),i=a(15844),r=a.n(i),o=a(99196),c=a.n(o),l=a(54372);const __=s.__,p=e=>{const{onSubmit:t,isSubmittingFeedback:a}=e,[s,i]=(0,o.useState)(),[r,p]=(0,o.useState)(),d=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack")},{id:"not-working",answerText:__("I can't get it to work.","jetpack")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack")},{id:"buggy",answerText:__("It's buggy.","jetpack")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack")}],u="another-reason",m=(0,o.useCallback)((()=>{t(s,s===u?r:"")}),[t,u,r,s]),h=(0,o.useCallback)((e=>{const t=e.target.value;e.stopPropagation(),p(t)}),[p]),g=e=>e===s?"jp-connect__disconnect-survey-card--selected":"",k=(0,o.useCallback)(((e,t)=>{switch(t.key){case"Enter":case"Space":case"Spacebar":case" ":i(e)}}),[i]);return c().createElement(c().Fragment,null,c().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},d.map((e=>c().createElement(l.Z,{id:e.id,onClick:i,onKeyDown:k,className:"card jp-connect__disconnect-survey-card "+g(e.id)},c().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),c().createElement(l.Z,{id:u,key:u,onClick:i,onKeyDown:k,className:"card jp-connect__disconnect-survey-card "+g(u)},c().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack")," ",c().createElement("input",{placeholder:__("share your experience","jetpack"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:r,onChange:h,maxLength:1e3})))),c().createElement("p",null,c().createElement(n.Button,{disabled:!s||a,variant:"primary",onClick:m,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},a?__("Submitting…","jetpack"):__("Submit Feedback","jetpack",0))))};p.PropTypes={onSubmit:r().func,isSubmittingFeedback:r().bool};const d=p},54372:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(99196),s=a.n(n);a(88043);const i=e=>{const{id:t,onClick:a,onKeyDown:i,children:r,className:o}=e,c=(0,n.useCallback)((()=>{a(t)}),[t,a]),l=(0,n.useCallback)((e=>{i(t,e)}),[t,i]);return s().createElement("div",{tabIndex:"0",role:"button",onClick:c,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+o},r)}},31294:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(64743),s=a(9818),i=a(99196),r=a(80428);const o=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{},c=({registrationNonce:e=o.registrationNonce,apiRoot:t=o.apiRoot,apiNonce:a=o.apiNonce,redirectUri:c,autoTrigger:l,from:p,skipUserConnection:d}={})=>{const{registerSite:u,connectUser:m,refreshConnectedPlugins:h}=(0,s.useDispatch)(r.t),g=(0,s.useSelect)((e=>e(r.t).getRegistrationError())),{siteIsRegistering:k,userIsConnecting:v,userConnectionData:f,connectedPlugins:E,connectionErrors:_,isRegistered:b,isUserConnected:y,hasConnectedOwner:w,isOfflineMode:C}=(0,s.useSelect)((e=>({siteIsRegistering:e(r.t).getSiteIsRegistering(),userIsConnecting:e(r.t).getUserIsConnecting(),userConnectionData:e(r.t).getUserConnectionData(),connectedPlugins:e(r.t).getConnectedPlugins(),connectionErrors:e(r.t).getConnectionErrors(),isOfflineMode:e(r.t).getIsOfflineMode(),...e(r.t).getConnectionStatus()}))),j=()=>d?c?(window.location=c,Promise.resolve(c)):Promise.resolve():m({from:p,redirectUri:c}),S=t=>(t&&t.preventDefault(),b?j():u({registrationNonce:e,redirectUri:c,from:p}).then((()=>j())));return(0,i.useEffect)((()=>{n.ZP.setApiRoot(t),n.ZP.setApiNonce(a)}),[t,a]),(0,i.useEffect)((()=>{!l||k||v||S()}),[]),{handleRegisterSite:S,handleConnectUser:j,refreshConnectedPlugins:h,isRegistered:b,isUserConnected:y,siteIsRegistering:k,userIsConnecting:v,registrationError:g,userConnectionData:f,hasConnectedOwner:w,connectedPlugins:E,connectionErrors:_,isOfflineMode:C}}},51045:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(64743),s=a(9818),i=a(99196),r=a(80428);const{apiRoot:o,apiNonce:c}=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};function l(){const[e,t]=(0,i.useState)(!1),[a,l]=(0,i.useState)(null),{disconnectUserSuccess:p,setConnectionErrors:d}=(0,s.useDispatch)(r.t);return(0,i.useEffect)((()=>{n.ZP.setApiRoot(o),n.ZP.setApiNonce(c)}),[]),{restoreConnection:(e=!0)=>(t(!0),l(null),n.ZP.reconnect().then((t=>("in_progress"===t.status?(p(),d({}),e&&(window.location.href="/wp-admin/admin.php?page=my-jetpack#/connection")):window.location.reload(),t))).catch((e=>{throw l(e),t(!1),e}))),isRestoringConnection:e,restoreConnectionError:a}}},27523:(e,t,a)=>{"use strict";a.d(t,{LI:()=>i,N4:()=>o,Qo:()=>d,T1:()=>l,TS:()=>p,ZP:()=>y,b5:()=>m,i6:()=>s,qJ:()=>h,qV:()=>c,r7:()=>r,wQ:()=>u});var n=a(64743);const s="SET_CONNECTION_STATUS",i="SET_CONNECTION_STATUS_IS_FETCHING",r="SET_SITE_IS_REGISTERING",o="SET_USER_IS_CONNECTING",c="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",p="SET_AUTHORIZATION_URL",d="DISCONNECT_USER_SUCCESS",u="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",h="SET_IS_OFFLINE_MODE",g=e=>({type:s,connectionStatus:e}),k=e=>({type:r,isRegistering:e}),v=e=>({type:o,isConnecting:e}),f=e=>({type:c,registrationError:e}),E=()=>({type:l}),_=e=>({type:p,authorizationUrl:e}),b=e=>({type:u,connectedPlugins:e});const y={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:i,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:k,setUserIsConnecting:v,setRegistrationError:f,clearRegistrationError:E,setAuthorizationUrl:_,registerSite:function*({registrationNonce:e,redirectUri:t,from:a=""}){yield E(),yield k(!0);try{const n=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:a};return yield g({isRegistered:!0}),yield _(n.authorizeUrl),yield k(!1),Promise.resolve(n)}catch(e){return yield f(e),yield k(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:a}={}){yield v(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:a}},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:b,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>n.ZP.fetchConnectedPlugins().then((a=>{e(b(a)),t(a)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},31432:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(64743),s=a(9818),i=a(27057);const r={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>n.ZP.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:a})=>n.ZP.registerSite(e,t,a),CONNECT_USER:(0,s.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:a,redirectUri:n}={})=>new Promise(((s,r)=>{e(i.Z).getAuthorizationUrl(n).then((e=>{const n=a||(e=>window.location.assign(e)),i=new URL(e);t&&i.searchParams.set("from",encodeURIComponent(t));const r=i.toString();n(r),s(r)})).catch((e=>{r(e)}))}))))}},41479:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(9818),s=a(27523);const i=(0,n.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case s.i6:return{...e,...t.connectionStatus};case s.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===s.LI?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===s.r7?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===s.N4?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case s.T1:return!1;case s.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===s.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===s.wQ?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===s.b5?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===s.qJ?t.isConnecting:e})},77728:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(9818),s=a(27523),i=a(27057);const r={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const a=Boolean(e.authorizationUrl),s=(0,n.select)(i.Z).hasFinishedResolution("getAuthorizationUrl",t);return a&&!s&&(0,n.dispatch)(i.Z).finishResolution("getAuthorizationUrl",t),a},*fulfill(e){const t=yield s.ZP.fetchAuthorizationUrl(e);yield s.ZP.setAuthorizationUrl(t.authorizeUrl)}}}}},82725:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},13535:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(9818);class s{static store=null;static mayBeInit(e,t){null===s.store&&(s.store=(0,n.createReduxStore)(e,t),(0,n.register)(s.store))}}const i=s},27057:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n="jetpack-connection"},80428:(e,t,a)=>{"use strict";a.d(t,{t:()=>l.Z});var n=a(27523),s=a(31432),i=a(41479),r=a(77728),o=a(82725),c=a(13535),l=a(27057);const p=window.JP_CONNECTION_INITIAL_STATE;p||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),c.Z.mayBeInit(l.Z,{__experimentalUseThunks:!0,reducer:i.Z,actions:n.ZP,selectors:o.Z,resolvers:r.Z,controls:s.Z,initialState:p||{}})},18728:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(6975),s=a(78868),i=a(45033),r=a(55609),o=a(69307),c=a(65736),l=a(61074),p=a(30797),d=a(25162),u=a.n(d),m=a(99196),h=a.n(m);const __=c.__,g=e=>{const{className:t,disabled:a,onChange:n,value:s}=e;return h().createElement(r.TextControl,{className:t,label:__("License key","jetpack"),value:s,onChange:n,disabled:a})},k=e=>{const{className:t,availableLicenses:a,disabled:n,onChange:s,value:i}=e,[o,l]=(0,m.useState)(""),p=null===a,d=(0,m.useMemo)((()=>p?[{label:__("Fetching available licenses…","jetpack"),value:""}]:[...a.map((({product:e,license_key:t})=>({label:(0,c.sprintf)(/* translators: placeholder is the product name and license key */ __("%1$s - %2$s","jetpack"),e,t),value:t}))),{label:__("I want to add a license key manually","jetpack"),value:""}]),[a,p]);(0,m.useEffect)((()=>{l(d?.length?d[0].value:"")}),[d]);const u=(0,m.useCallback)((e=>{l(e),s(e)}),[s]);return h().createElement(h().Fragment,null,h().createElement(r.SelectControl,{className:t,disabled:n,label:__("Select a license key","jetpack"),value:o,options:d,onChange:u}),!p&&!o&&h().createElement(r.TextControl,{className:t,label:__("Input a license key","jetpack"),value:i,onChange:s,disabled:n}))},v=e=>{const{activateLicense:t,availableLicenses:a,fetchingAvailableLicenses:c,isActivating:d,license:u,licenseError:v,onLicenseChange:f}=e,E=null!=v;(0,m.useEffect)((()=>{n.Z.tracks.recordEvent("jetpack_wpa_license_key_activation_view")}),[]);const _=E?"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field",b=a&&a.length;return h().createElement("div",{className:"jp-license-activation-screen-controls"},h().createElement("div",{className:"jp-license-activation-screen-controls--content"},h().createElement(s.Z,{showText:!1,height:48}),h().createElement("h1",null,__("Add a license key","jetpack")),h().createElement("p",null,(0,o.createInterpolateElement)(__("<strong>Check your email</strong> for your license key. You should have received it after making your purchase.","jetpack"),{strong:h().createElement("strong",null)})),c||b?h().createElement(k,{className:_,disabled:c||d,onChange:f,availableLicenses:c?null:a,value:u}):h().createElement(g,{className:_,disabled:d,onChange:f,value:u}),E&&h().createElement("div",{className:"jp-license-activation-screen-controls--license-field-error"},h().createElement(l.Z,{icon:p.Z}),h().createElement("span",null,v))),h().createElement("div",null,h().createElement(r.Button,{className:"jp-license-activation-screen-controls--button",onClick:t,disabled:!u},d?h().createElement(i.Z,null):__("Activate","jetpack"))))};v.propTypes={activateLicense:u().func.isRequired,availableLicenses:u().array,fetchingAvailableLicenses:u().bool,isActivating:u().bool.isRequired,license:u().string.isRequired,licenseError:u().string,onLicenseChange:u().func.isRequired,siteUrl:u().string.isRequired};const f=v},58781:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(6895),s=a(69307),i=a(65736),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c);const __=i.__,p=e=>{const{imageUrl:t,showSupportLink:a=!1}=e;return l().createElement("div",{className:"jp-license-activation-screen-illustration"},l().createElement("div",{className:"jp-license-activation-screen-illustration--wrapper"},l().createElement("img",{className:"jp-license-activation-screen-illustration--img",src:t,alt:""})),a&&l().createElement("p",{className:"jp-license-activation-screen-illustration--support-link"},(0,s.createInterpolateElement)(__("Do you need help? <a>Contact us.</a>","jetpack"),{a:l().createElement("a",{href:(0,n.Z)("jetpack-support-license-activation")})})))};p.propTypes={imageUrl:o().string.isRequired,showSupportLink:o().bool};const d=p},37554:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(78868),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r),c=a(83157),l=a(48288),p=a(14172);const d=e=>{const{productId:t,siteRawUrl:a,siteAdminUrl:s,currentRecommendationsStep:i}=e;return o().createElement("div",{className:"jp-license-activation-screen-success-info"},o().createElement("div",{className:"jp-license-activation-screen-success-info--content"},o().createElement(n.Z,{showText:!1,height:48})),o().createElement(l.Z,{siteRawUrl:a,productId:t}),o().createElement("div",{className:"jp-license-activation-screen-success-info--buttons"},o().createElement(c.c,{currentRecommendationsStep:i,siteAdminUrl:s,siteRawUrl:a,productId:t}),o().createElement(p.o,{siteRawUrl:a,productId:t})))};d.propTypes={siteRawUrl:i().string,productId:i().number,siteAdminUrl:i().string,currentRecommendationsStep:i().string};const u=d},83157:(e,t,a)=>{"use strict";a.d(t,{c:()=>m});var n=a(45033),s=a(6895),i=a(55609),r=a(65736),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(82180),u=a(69430);const __=r.__,m=e=>{const{currentRecommendationsStep:t,siteAdminUrl:a,siteRawUrl:r,productId:o}=e,[c,l]=(0,d.Z)(),m=e=>c.map((e=>e.name)).includes(e),h=(0,u.F)(o),g=m("Jetpack"),k=m("Jetpack Social"),v="jetpack_social_advanced"===h||"jetpack_social_basic"===h;return l?p().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button"},p().createElement(n.Z,null)):v&&(g||k)?p().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button",href:a+(g?"admin.php?page=jetpack#/recommendations/"+("jetpack_social_advanced"===h?"welcome-social-advanced":"welcome-social-basic"):"admin.php?page=jetpack-social")},__("Configure my site","jetpack")):"not-started"===t?p().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button",href:a+"admin.php?page=jetpack#/recommendations"},__("Configure my site","jetpack")):p().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button",href:(0,s.Z)("license-activation-view-my-plans",{site:r})},__("View my plans","jetpack"))};m.propTypes={siteAdminUrl:c().string.isRequired,currentRecommendationsStep:c().string,siteRawUrl:c().string.isRequired}},14172:(e,t,a)=>{"use strict";a.d(t,{o:()=>d});var n=a(6895),s=a(55609),i=a(65736),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(69430);const __=i.__,d=e=>{const{productId:t,siteRawUrl:a}=e,i={jetpack_backup:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_complete:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_scan:{text:__("View scan results","jetpack"),redirectSource:"jetpack-license-activation-success-scan"},jetpack_search:{text:__("Configure search","jetpack"),redirectSource:"jetpack-license-activation-success-search"},jetpack_security:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},default:null}[(0,p.F)(t)];return l().createElement(l().Fragment,null,i&&l().createElement(s.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,n.Z)(i.redirectSource,{site:a})},i.text))};d.propTypes={siteRawUrl:o().string,productId:o().number}},20468:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(6975),s=a(64743),i=a(69307),r=a(65736),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(18728),u=a(58781),m=a(37554),h=a(89644),g=a(88702),k=a(21160);const __=r.__,v=e=>{const{availableLicenses:t=[],currentRecommendationsStep:a,fetchingAvailableLicenses:r=!1,onActivationSuccess:o=(()=>null),siteAdminUrl:c,siteRawUrl:v,startingLicense:f,displayName:E=""}=e,[_,b]=(0,l.useState)(f??""),[y,w]=(0,l.useState)(null),[C,j]=(0,l.useState)(!1),[S,N]=(0,l.useState)(null);(0,l.useEffect)((()=>{t&&t[0]&&b(t[0].license_key)}),[t]);const x=(0,l.useCallback)((()=>C?Promise.resolve():_.length<1?(w(__("This is not a valid license key. Please try again.","jetpack")),Promise.resolve()):(w(null),j(!0),n.Z.tracks.recordJetpackClick({target:"license_activation_button"}),s.ZP.attachLicenses([_]).then((e=>{const t=(e=>{let t=e;for(;Array.isArray(t)&&t.length>0;)t=t[0];if(t?.activatedProductId)return t.activatedProductId;if(t?.errors)for(const e in t.errors)if(t.errors[e].length>0)throw new Error(t.errors[e][0]);throw new Error(__("An unknown error occurred during license activation. Please try again.","jetpack"))})(e);N(t),o(t),n.Z.tracks.recordEvent("jetpack_wpa_license_activation_success")})).catch((e=>{n.Z.tracks.recordEvent("jetpack_wpa_license_activation_error");"invalid_permission_manage_user_licenses"===e.response?.code?w((0,i.createInterpolateElement)(__("You either do not have permissions to perform this action or a user account needs to be connected. <connectLink>Click here to connect your user account</connectLink> or contact your administrator.","jetpack"),{connectLink:p().createElement("a",{href:"admin.php?page=my-jetpack#/connection?returnTo=add-license"})})):w(e.message)})).finally((()=>{j(!1)})))),[C,_,o]);return null!==S&&_.startsWith("jetpack-golden-token")?p().createElement(h.Z,{tokenRedeemed:!0,displayName:E}):null!==S?p().createElement("div",{className:"jp-license-activation-screen"},p().createElement(m.Z,{siteRawUrl:v,productId:S,siteAdminUrl:c,currentRecommendationsStep:a}),p().createElement(u.Z,{imageUrl:k,showSupportLink:!1})):p().createElement("div",{className:"jp-license-activation-screen"},p().createElement(d.Z,{availableLicenses:t,activateLicense:x,fetchingAvailableLicenses:r,isActivating:C,license:_,licenseError:y,onLicenseChange:b,siteUrl:v}),p().createElement(u.Z,{imageUrl:g,showSupportLink:!0}))};v.propTypes={availableLicenses:c().array,currentRecommendationsStep:c().string,fetchingAvailableLicenses:c().bool,onActivationSuccess:c().func,siteAdminUrl:c().string.isRequired,siteRawUrl:c().string.isRequired,startingLicense:c().string,displayName:c().string};const f=v},89644:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(3396),s=a(13363),i=a(73846),r=a(78868),o=a(90526),c=a(55609),l=a(65736),p=a(3228),d=a(25162),u=a.n(d),m=a(99196),h=a.n(m),g=a(9459);const __=l.__,_x=l._x,k=e=>{document.referrer.includes(window.location.host)?(e.preventDefault(),history.back()):(e.preventDefault(),window.location.href=window?.myJetpackInitialState?.myJetpackUrl)};function v({redeemClick:e,displayName:t,onModalClose:a=k,tokenRedeemed:d=!1}){const[u,v]=(0,m.useState)(!1),f=(0,m.useRef)(null);(0,m.useEffect)((()=>{setTimeout((()=>{f?.current?.play()}),500)}),[f]);const E=(0,n.VS)("scan"),_=(0,n.VS)("backup"),b=(0,m.useCallback)((t=>{e?.(t),v(!0),f.current.play()}),[f,e]),y=(0,m.useCallback)((()=>{u&&f.current.play()}),[u]),w=(0,p.Z)(g.Z.modal,{[g.Z.animating]:u});return h().createElement("div",null,h().createElement(c.Modal,{className:w,onRequestClose:a,isDismissible:!1,__experimentalHideHeader:!0},h().createElement(s.Z,{horizontalSpacing:3,horizontalGap:3},h().createElement(i.Z,null,h().createElement(r.Z,{className:g.Z["jetpack-logo"]}),h().createElement("div",{className:g.Z["video-wrap"],onClick:y,role:"presentation"},h().createElement("video",{ref:f,src:"https://videos.files.wordpress.com/oSlNIBQO/jetpack-golden-token.mp4",muted:"muted"})),h().createElement("div",{className:g.Z["content-wrap"]},h().createElement("div",{className:g.Z["content-wrap-text"]},t.length>0&&h().createElement("p",{className:g.Z["hi-user"]},(0,l.sprintf)(/* Translators: %s is the user's display name. */ __("Hey, %s","jetpack"),t)),h().createElement("h2",{className:g.Z.headline},__("You have been gifted a Jetpack Golden Token.","jetpack")),h().createElement("p",null,d&&__("This unlocked a lifetime of Jetpack powers for your website. Your exclusive Jetpack Experience is already active.","jetpack"),!d&&__("This unlocks a lifetime of Jetpack powers for your website. Your exclusive Jetpack Experience awaits.","jetpack"))),h().createElement(o.Z,{variant:"primary",weight:"regular",onClick:b,className:g.Z.button},d&&__("Awesome!","jetpack"),!d&&__("Redeem your token","jetpack"))),h().createElement("div",{className:`${g.Z["powers-wrap"]} ${g.Z["content-wrap"]}`},h().createElement("div",{className:g.Z["content-wrap-text"]},h().createElement("h2",{className:g.Z.headline},__("Super powers are ready!","jetpack")),h().createElement("p",{className:g.Z.paragraph},__("Your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack"))),h().createElement("div",{className:g.Z["jetpack-products"]},h().createElement("div",null,h().createElement(_,null),h().createElement("h3",null,__("VaultPress Backup","jetpack")),h().createElement("p",null,__("Save every change and get back online quickly with one‑click restores.","jetpack"))),h().createElement("div",null,h().createElement(E,null),h().createElement("h3",null,_x("Scan","Plugin name (noun).","jetpack")),h().createElement("p",null,__("Automated scanning and one‑click fixes to keep your site ahead of security threats.","jetpack")))),h().createElement(o.Z,{variant:"primary",weight:"regular",onClick:b,href:window?.myJetpackInitialState?.myJetpackUrl,className:g.Z.button},__("Explore your new powers","jetpack")))))))}v.propTypes={redeemClick:u().func,tokenRedeemed:u().bool,displayName:u().string,onModalClose:u().func};const f=v},53281:(e,t,a)=>{"use strict";a.d(t,{I:()=>n.Z});var n=a(20468);a(89644)},10221:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a.n(i),o=a(881),c=a(84859);const l=e=>{const{apiNonce:t,apiRoot:a,connectionStatus:n,partnerCoupon:s,assetBaseUrl:i,registrationNonce:l,siteRawUrl:p,tracksUserData:d,analytics:u}=e;return n.hasConnectedOwner?r().createElement(o.ZP,{assetBaseUrl:i,connectionStatus:n,partnerCoupon:s,siteRawUrl:p,tracksUserData:!!d,analytics:u}):r().createElement(c.Z,{apiNonce:t,registrationNonce:l,apiRoot:a,assetBaseUrl:i,connectionStatus:n,partnerCoupon:s,siteRawUrl:p,tracksUserData:!!d,analytics:u})};l.propTypes={apiRoot:s().string.isRequired,apiNonce:s().string.isRequired,assetBaseUrl:s().string.isRequired,connectionStatus:s().object.isRequired,partnerCoupon:s().object.isRequired,registrationNonce:s().string.isRequired,siteRawUrl:s().string.isRequired,tracksUserData:s().bool.isRequired,analytics:s().object};const p=l},881:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>h});var n=a(78868),s=a(67121),i=a(65736),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(9864);const __=i.__,d="jetpackRedeemPartnerCouponDismissedAt";function u(){const e=localStorage.getItem(d);return!(!e||(new Date).getTime()>parseInt(e)+2592e5)}const m=e=>{const{connectionStatus:t,partnerCoupon:a,assetBaseUrl:r,siteRawUrl:o,tracksUserData:m,analytics:h}=e,[g,k]=(0,c.useState)(u()),v=(0,p.i)(a,o,t,m,h),f=(0,c.useCallback)((()=>{localStorage.setItem(d,(new Date).getTime()),k(u())}),[k]);if(g)return null;let E=null;return E=a.partner.logo?l().createElement(l().Fragment,null,l().createElement(n.Z,null),l().createElement("span",null,"+"),l().createElement("img",{src:`${r}${a.partner.logo.src}`,alt:(0,i.sprintf)(/* translators: %s: Name of Jetpack partner. */ __("Logo of %s who are offering a coupon in partnership with Jetpack","jetpack"),a.partner.name),width:a.partner.logo.width,height:a.partner.logo.height})):l().createElement(n.Z,null),l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection"},l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__layout"},l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__content"},l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__logo"},E),l().createElement("h2",{className:"jetpack-redeem-partner-coupon-post-connection__heading"},__("One free year of Jetpack Backup","jetpack"))),l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__aside",style:{backgroundImage:`url(${r}/images/jetpack-aside-background.jpg)`}},l().createElement("img",{src:r+"/images/cloud-checkmark.svg",alt:""})),l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__subcontent"},l().createElement("p",null,(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Redeem your coupon and get started with %s for free the first year! Never worry about losing your data, ever.","jetpack"),a.product.title)),l().createElement("ul",null,a.product.features.map(((e,t)=>l().createElement("li",{key:t},e)))),l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__actions"},l().createElement("div",null,l().createElement(s.Z,{label:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Redeem %s","jetpack"),a.product.title),onClick:v})),l().createElement("div",null,l().createElement("button",{className:"jetpack-redeem-partner-coupon-post-connection__remind-me-later",onClick:f},__("Remind me later","jetpack")))))))};m.propTypes={assetBaseUrl:o().string.isRequired,connectionStatus:o().object.isRequired,partnerCoupon:o().object.isRequired,siteRawUrl:o().string.isRequired,tracksUserData:o().bool.isRequired,analytics:o().object};const h=m},84859:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(67121),s=a(66183),i=a(65736),r=a(3228),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(9864);const __=i.__,u=e=>{const{apiNonce:t,apiRoot:a,connectionStatus:o,partnerCoupon:c,assetBaseUrl:l,registrationNonce:u,siteRawUrl:m,tracksUserData:h,analytics:g}=e,k=(0,d.i)(c,m,o,h,g),v=(0,r.Z)("jetpack-redeem-partner-coupon-pre-connection",{"jetpack-redeem-partner-coupon-pre-connection--connected":!!o.hasConnectedOwner});return p().createElement("div",{className:v},p().createElement(s.Z,{apiNonce:t,registrationNonce:u,apiRoot:a,images:["/images/connect-right-partner-backup.png"],assetBaseUrl:l,from:"jetpack-partner-coupon",title:(0,i.sprintf)(/* translators: %s: Jetpack partner name. */ __("Welcome to Jetpack %s traveler!","jetpack"),c.partner.name),buttonLabel:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Set up & redeem %s","jetpack"),c.product.title),redirectUri:`admin.php?page=jetpack&partnerCoupon=${c.coupon_code}`,connectionStatus:o},p().createElement("p",null,(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Redeem your coupon and get started with %s for free the first year!","jetpack"),c.product.title)),p().createElement("ul",null,c.product.features.map(((e,t)=>p().createElement("li",{key:t},e)))),o.hasConnectedOwner&&p().createElement(n.Z,{label:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Redeem %s","jetpack"),c.product.title),onClick:k})))};u.propTypes={apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,assetBaseUrl:c().string.isRequired,connectionStatus:c().object.isRequired,partnerCoupon:c().object.isRequired,registrationNonce:c().string.isRequired,siteRawUrl:c().string.isRequired,tracksUserData:c().bool.isRequired,analytics:c().object};const m=u},1862:(e,t,a)=>{"use strict";a.d(t,{es:()=>n.Z});var n=a(10221);a(84859),a(881)},81050:(e,t,a)=>{"use strict";a.d(t,{AutoConversionToggle:()=>s.Z,ConnectionManagement:()=>o.Z,RefreshJetpackSocialSettingsWrapper:()=>r.Z,SocialImageGeneratorToggle:()=>n.Z,TemplatePickerButton:()=>i.Z});a(23177),a(4277),a(49021),a(84703),a(8454),a(74140),a(54005),a(8350);var n=a(76848),s=a(92116),i=a(79631),r=(a(8714),a(19649),a(52403),a(91750),a(77106)),o=a(75674);a(57492),a(48751),a(14085),a(45579),a(75323),a(42032),a(91474),a(19890),a(32637),a(86419),a(34431),a(71806),a(22917),a(95766)},92116:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(48229),s=a(9818),i=a(69307),r=a(99196),o=a.n(r),c=a(23177);const l=({toggleClass:e,children:t})=>{const{isEnabled:a,isUpdating:r}=(0,s.useSelect)((e=>{const t=e(c.Eg);return{isEnabled:t.isAutoConversionEnabled(),isUpdating:t.isAutoConversionSettingsUpdating()}}),[]),l=(0,s.useDispatch)(c.Eg).updateAutoConversionSettings,p=(0,i.useCallback)((()=>{l({enabled:!a})}),[a,l]);return o().createElement(n.Z,{className:e,disabled:r,checked:a,onChange:p,label:t})}},85761:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(3396),s=a(69307),i=a(3228),r=a(15844),o=a.n(r);const c=e=>{const{checked:t,serviceName:a,label:r,onClick:o,profilePicture:c}=e,[l,p]=(0,s.useState)(!!c),d=(0,s.useCallback)((()=>p(!1)),[]),u=(0,s.useCallback)((e=>{13===e.keyCode&&o()}),[o]);return React.createElement("div",{onClick:o,onKeyDown:u,role:"switch","aria-checked":t,tabIndex:"0",className:(0,i.Z)("components-connection-icon",{"components-connection-icon__picture":l})},l&&React.createElement("img",{src:c,alt:r,onError:d}),React.createElement(n.av,{alt:r,serviceName:"instagram-business"===a?"instagram":"twitter"===a?"x":a,className:"jetpack-publicize-gutenberg-social-icon"}))};c.propTypes={serviceName:o().string,label:o().string,profilePicture:o().string};const l=c},60676:(e,t,a)=>{"use strict";a.d(t,{b:()=>v});var n=a(90526),s=a(69665),i=a(55609),r=a(65736),o=a(61074),c=a(57489),l=a(42229),p=a(99196),d=a(85761),u=a(62878),m=a(25893),h=a(20841),g=a(43876),k=a(75124);const __=r.__,_x=r._x;function v({connection:e,service:t}){const[a,r]=(0,p.useReducer)((e=>!e),!1);return React.createElement(React.Fragment,null,React.createElement("div",{className:k.Z["connection-item"]},React.createElement(d.Z,{serviceName:e.service_name,label:e.display_name||e.external_display,profilePicture:e.profile_picture}),React.createElement("div",{className:k.Z["connection-name-wrapper"]},React.createElement("div",{className:k.Z["connection-item-name"]},React.createElement(u.d,{connection:e})),React.createElement(m.Q,{connection:e,service:t})),React.createElement(n.Z,{size:"small",className:k.Z["learn-more"],variant:"tertiary",onClick:r,"aria-label":a?__("Close panel","jetpack"):_x("Open panel","Accessibility label","jetpack")},React.createElement(o.Z,{className:k.Z.chevron,icon:a?c.Z:l.Z}))),React.createElement(i.Panel,{className:k.Z["connection-panel"]},React.createElement(i.PanelBody,{opened:a,onToggle:r},React.createElement("div",{className:k.Z["mark-shared-wrap"]},React.createElement(g.l,{connection:e}),React.createElement(s.Z,null,__("If enabled, the connection will be available to all administrators, editors, and authors.","jetpack"))),React.createElement(h.c,{connection:e}))))}},62878:(e,t,a)=>{"use strict";a.d(t,{d:()=>c});var n=a(55609),s=a(9818),i=a(65736),r=a(23177),o=a(75124);const __=i.__;function c({connection:e}){const t=(0,s.useSelect)((t=>t(r.h).getUpdatingConnections().includes(e.connection_id)),[e.connection_id]);return React.createElement("div",{className:o.Z["connection-name"]},e.profile_link?React.createElement(n.ExternalLink,{className:o.Z["profile-link"],href:e.profile_link},e.display_name||e.external_display):React.createElement("span",{className:o.Z["profile-link"]},e.display_name),t?React.createElement(n.Spinner,{color:"black","aria-label":__("Updating account","jetpack")}):null)}},25893:(e,t,a)=>{"use strict";a.d(t,{Q:()=>r});var n=a(65736),s=a(20841),i=a(50038);const __=n.__,_x=n._x;function r({connection:e,service:t}){return"broken"!==e.status?null:React.createElement("div",null,React.createElement("span",{className:"description"},t?__("There is an issue with this connection.","jetpack"):_x("This platform is no longer supported.","","jetpack"))," ",t?React.createElement(i.w,{connection:e,service:t}):React.createElement(s.c,{connection:e,variant:"link",isDestructive:!1}))}},20841:(e,t,a)=>{"use strict";a.d(t,{c:()=>p});var n=a(90526),s=a(55609),i=a(9818),r=a(69307),o=a(65736),c=a(23177),l=a(75124);const __=o.__,_x=o._x;function p({connection:e,variant:t="secondary",isDestructive:a=!0,buttonClassName:p}){const[d,u]=(0,r.useReducer)((e=>!e),!1),{deleteConnectionById:m}=(0,i.useDispatch)(c.h),{isDisconnecting:h}=(0,i.useSelect)((t=>{const{getDeletingConnections:a}=t(c.h);return{isDisconnecting:a().includes(e.connection_id)}}),[e.connection_id]),g=(0,r.useCallback)((async()=>{u(),await m({connectionId:e.connection_id})}),[e.connection_id,m]);return e.can_disconnect?React.createElement(React.Fragment,null,React.createElement(s.__experimentalConfirmDialog,{className:l.Z.confirmDialog,isOpen:d,onConfirm:g,onCancel:u,cancelButtonText:__("Cancel","jetpack"),confirmButtonText:__("Yes","jetpack")},(0,r.createInterpolateElement)((0,o.sprintf)( // translators: %s: The name of the connection the user is disconnecting. __("Are you sure you want to disconnect <strong>%s</strong>?","jetpack"),e.display_name),{strong:React.createElement("strong",null)})),React.createElement(n.Z,{size:"small",onClick:u,disabled:h,variant:t,isDestructive:a,className:p},h?__("Disconnecting…","jetpack"):_x("Disconnect","Disconnect a social media account","jetpack"))):null}},75674:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var n=a(90526),s=a(55609),i=a(9818),r=a(69307),o=a(65736),c=a(3228),l=a(57492),p=a(23177),d=a(95766),u=a(66475),m=a(60676),h=a(75124);const __=o.__,g=({className:e=null})=>{const{refresh:t}=(0,l.Z)(),{connections:a,deletingConnections:o,updatingConnections:g}=(0,i.useSelect)((e=>{const{getConnections:t,getDeletingConnections:a,getUpdatingConnections:n}=e(p.h);return{connections:t(),deletingConnections:a(),updatingConnections:n()}}),[]);a.sort(((e,t)=>e.service_name===t.service_name?e.connection_id.localeCompare(t.connection_id):e.service_name.localeCompare(t.service_name))),(0,r.useEffect)((()=>{t()}),[t]);const k=(0,u.i)().reduce(((e,t)=>(e[t.ID]=t,e)),{}),{openConnectionsModal:v}=(0,i.useDispatch)(p.h);return React.createElement("div",{className:(0,c.Z)(h.Z.wrapper,e)},a.length?React.createElement(React.Fragment,null,React.createElement("h3",null,__("Connected accounts","jetpack")),React.createElement("ul",{className:h.Z["connection-list"]},a.map((e=>{const t=g.includes(e.connection_id)||o.includes(e.connection_id);return React.createElement("li",{className:h.Z["connection-list-item"],key:e.connection_id},React.createElement(s.Disabled,{isDisabled:t},React.createElement(m.b,{connection:e,service:k[e.service_name]})))})))):null,React.createElement(d.i,null),React.createElement(n.Z,{variant:a.length?"secondary":"primary",onClick:v},__("Connect an account","jetpack")))}},43876:(e,t,a)=>{"use strict";a.d(t,{l:()=>c});var n=a(55609),s=a(9818),i=a(69307),r=a(65736),o=a(23177);const __=r.__;function c({connection:e}){const{updateConnectionById:t}=(0,s.useDispatch)(o.h),{isUpdating:a}=(0,s.useSelect)((t=>{const{getUpdatingConnections:a}=t(o.h);return{isUpdating:a().includes(e.connection_id)}}),[e.connection_id]),r=(0,i.useCallback)((a=>{t(e.connection_id,{shared:a})}),[e.connection_id,t]);return React.createElement(n.CheckboxControl,{checked:e.shared??!1,onChange:r,disabled:a||"broken"===e.status,label:__("Mark the connection as shared","jetpack")})}},50038:(e,t,a)=>{"use strict";a.d(t,{w:()=>l});var n=a(90526),s=a(9818),i=a(69307),r=a(65736),o=a(23177),c=a(58300);const __=r.__,_x=r._x;function l({connection:e,service:t,variant:a="link"}){const{deleteConnectionById:r,setKeyringResult:l,openConnectionsModal:p}=(0,s.useDispatch)(o.h),{isDisconnecting:d}=(0,s.useSelect)((t=>{const{getDeletingConnections:a}=t(o.h);return{isDisconnecting:a().includes(e.connection_id)}}),[e.connection_id]),u=(0,i.useCallback)((e=>{l(e),e?.ID&&p()}),[p,l]),m=(0,c.N)({service:t,onConfirm:u}),h=(0,i.useCallback)((async()=>{if(!await r({connectionId:e.connection_id,showSuccessNotice:!1}))return;const a=new FormData;"mastodon"===t.ID&&a.set("instance",e.external_display),m(a)}),[e,r,m,t.ID]);return e.can_disconnect?React.createElement(React.Fragment,null,React.createElement(n.Z,{size:"small",onClick:h,disabled:d,variant:a},d?__("Disconnecting…","jetpack"):_x("Reconnect","Reconnect a social media account","jetpack"))):null}},24479:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(3228),s=a(15844),i=a.n(s),r=a(85761);const o=e=>{const{checked:t,disabled:a,onChange:s,serviceName:i,label:o,profilePicture:c}=e,l=(0,n.Z)("components-connection-toggle",{"is-not-checked":!t,"is-disabled":a});return React.createElement("div",{className:l,title:o},React.createElement(r.Z,{checked:t,label:o,onClick:s,serviceName:i,profilePicture:c}))};o.propTypes={className:i().string,checked:i().bool,id:i().string.isRequired,disabled:i().bool,onChange:i().func,serviceName:i().string,label:i().string,profilePicture:i().string};const c=o},49021:(e,t,a)=>{"use strict";var n=a(94333),s=a(9818),i=a(69307),r=a(23177);class o extends i.Component{componentDidMount(){this.props.refreshConnections()}render(){return null}}(0,n.compose)([(0,s.withSelect)((e=>({failedConnections:e(r.Eg).getFailedConnections()}))),(0,s.withDispatch)((e=>({refreshConnections:e(r.Eg).refreshConnectionTestResults})))])(o)},4277:(e,t,a)=>{"use strict";var n=a(13419),s=a(55609),i=a(9818),r=a(69307),o=a(65736),c=a(23177),l=a(24479),p=a(28161),d=a(91853);const __=o.__;class u extends r.Component{maybeDisplayLinkedInNotice=()=>this.connectionNeedsReauth()&&React.createElement(s.Notice,{className:p.Z["publicize-notice"],isDismissible:!1,status:"error"},React.createElement("p",null,__("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),React.createElement(s.ExternalLink,{href:`https://wordpress.com/marketing/connections/${(0,n.lQ)()}`},__("Go to Sharing settings","jetpack")));connectionNeedsReauth=()=>this.props.mustReauthConnections.includes(this.props.name);onConnectionChange=()=>{const{id:e}=this.props;this.isDisabled()||this.props.toggleConnection(e)};connectionIsFailing(){const{failedConnections:e,name:t}=this.props;return e.some((e=>e.service_name===t))}isDisabled(){return this.props.disabled||this.connectionIsFailing()||this.connectionNeedsReauth()}render(){const{enabled:e,id:t,label:a,name:n,profilePicture:s}=this.props,i="connection-"+n+"-"+t,r=n.replace("_","-"),o=React.createElement(l.Z,{id:i,className:d.Z["connection-toggle"],checked:e,onChange:this.onConnectionChange,disabled:this.isDisabled(),serviceName:r,label:a,profilePicture:s});return React.createElement("li",null,this.maybeDisplayLinkedInNotice(),React.createElement("div",{className:d.Z["connection-container"]},o))}}(0,i.withSelect)((e=>({failedConnections:e(c.Eg).getFailedConnections(),mustReauthConnections:e(c.Eg).getMustReauthConnections()})))(u)},1922:(e,t,a)=>{"use strict";a(13419),a(55609),a(69307),a(65736),a(81050),a(75323),a(62578)},87029:(e,t,a)=>{"use strict";a(13419),a(55609),a(69307),a(65736),a(81050),a(75323),a(62578),a(75631)},63503:(e,t,a)=>{"use strict";a(55609),a(9818),a(69307),a(65736),a(14085),a(57492),a(23177),a(62578),a(75631)},75457:(e,t,a)=>{"use strict";a(14085),a(57492),a(4277),a(89510),a(75631),a(28155)},82356:(e,t,a)=>{"use strict";a(55609),a(65736),a(14085),a(57492),a(75631),a(28155)},84703:(e,t,a)=>{"use strict";a(55609),a(9818),a(69307),a(65736),a(81050),a(88219),a(75323),a(39118),a(75263),a(98811),a(46791),a(6230),a(96672),a(57492),a(23177),a(95766),a(1922),a(87029),a(63503),a(75457),a(82356),a(50523),a(89510),a(27730),a(63411),a(75631),a(22124),a(45334)},50523:(e,t,a)=>{"use strict";a(55609),a(65736),a(81050),a(62578)},89510:(e,t,a)=>{"use strict";a(55609),a(9818),a(65736),a(14085),a(23177),a(75631)},27730:(e,t,a)=>{"use strict";a(13419),a(55609),a(9818),a(65736),a(34431),a(23177),a(32637),a(27941),a(75631),a(6785)},27941:(e,t,a)=>{"use strict";a(13419),a(55609),a(9818),a(65736),a(34431),a(23177),a(62578),a(6785)},63411:(e,t,a)=>{"use strict";a(81050),a(48751),a(29753),a(71961)},22124:(e,t,a)=>{"use strict";a(55609),a(69307),a(65736),a(81050),a(57492),a(62578)},6785:(e,t,a)=>{"use strict";a(9818),a(12238),a(69307)},28155:(e,t,a)=>{"use strict";a(9818),a(69307),a(99196),a(81050),a(88219),a(39118),a(75263),a(98811),a(46791),a(57492),a(23177)},45334:(e,t,a)=>{"use strict";a(55609),a(65736),a(62578)},9888:(e,t,a)=>{"use strict";a(86989),a(55609),a(9818),a(12238),a(65736),a(99196),a(75263),a(58487)},15805:(e,t,a)=>{"use strict";a.d(t,{Y:()=>m});var n=a(60068),s=a(90526),i=a(55609),r=a(9818),o=a(69307),c=a(65736),l=a(23177),p=a(66475),d=a(31182);const __=c.__,_x=c._x;function u({label:e,profile_picture:t}){return React.createElement("div",{className:d.Z["account-info"]},t?React.createElement("img",{className:d.Z["profile-pic"],src:t,alt:e}):null,React.createElement("span",null,e))}function m({keyringResult:e,onComplete:t,isAdmin:a}){const c=(0,p.i)(),{existingConnections:m}=(0,r.useSelect)((e=>({existingConnections:e(l.h).getConnections()})),[]),{createErrorNotice:h}=(0,n._)(),g=c.find((t=>t.ID===e.service)),k=(0,o.useCallback)((e=>m.some((t=>t.service_name===g?.ID&&t.external_id===e))),[m,g.ID]),v=(0,o.useMemo)((()=>{const t=[],a=[];if(!g)return{connected:t,not_connected:a};const n=[];if(g.external_users_only||n.push({label:e.external_display,value:e.external_ID,profile_picture:e.external_profile_picture}),g.multiple_external_user_ID_support&&e.additional_external_users?.length)for(const t of e.additional_external_users)n.push({label:t.external_name,value:t.external_ID,profile_picture:t.external_profile_picture});for(const e of n)k(e.value)?t.push(e):a.push(e);return{connected:t,not_connected:a}}),[k,e,g]),{createConnection:f}=(0,r.useDispatch)(l.h),E=(0,o.useCallback)((async a=>{a.preventDefault(),a.stopPropagation();const n=a.target,s=new FormData(n),i=s.get("external_user_ID");if(!i)return void h(__("Please select an account to connect.","jetpack"));const r={external_user_ID:g.multiple_external_user_ID_support?i:void 0,keyring_connection_ID:e.ID,shared:"1"===s.get("shared")||void 0},o=v.not_connected.find((e=>e.value===i));f(r,{display_name:o?.label,profile_picture:o?.profile_picture,service_name:g.ID}),t()}),[f,h,e.ID,t,g.multiple_external_user_ID_support,g.ID,v.not_connected]);return React.createElement("section",{className:d.Z.confirmation},v.not_connected.length?React.createElement("div",null,React.createElement("p",{className:d.Z["header-text"]},__("Select the account you'd like to connect. All your new blog posts will be automatically shared to this account. You'll be able to change this option in the editor sidebar when you're writing a post.","jetpack")),React.createElement("form",{className:d.Z.form,onSubmit:E,id:"connection-confirmation-form"},React.createElement("div",{className:d.Z["accounts-list"]},v.not_connected.map(((e,t)=>React.createElement("label",{key:e.value,className:d.Z["account-label"],"aria-required":!0},React.createElement("input",{type:"radio",name:"external_user_ID",value:e.value,defaultChecked:0===t,className:d.Z["account-input"],required:!0}),React.createElement(u,{label:e.label,profile_picture:e.profile_picture}))))),a?React.createElement(i.BaseControl,{id:"mark-connection-as-shared",help:`${__("If enabled, the connection will be available to all administrators, editors, and authors.","jetpack")} ${__("You can change this later.","jetpack")}`},React.createElement(i.__experimentalHStack,{justify:"flex-start",spacing:3},React.createElement("span",null,React.createElement("input",{type:"checkbox",id:"mark-connection-as-shared",name:"shared",value:"1"})),React.createElement(i.FlexBlock,{as:"label",htmlFor:"mark-connection-as-shared"},__("Mark the connection as shared","jetpack")))):null,React.createElement("input",{type:"hidden",name:"keyring_connection_ID",value:e.ID}))):React.createElement("p",{className:d.Z["header-text"]},v.connected.length?_x("No more accounts/pages found.","Message shown when there are no connections found to connect","jetpack"):__("No accounts/pages found.","jetpack")),v.connected.length?React.createElement("section",null,React.createElement("h3",null,__("Already connected","jetpack")),React.createElement("ul",null,v.connected.map(((e,t)=>React.createElement("li",{key:e.label+t},React.createElement(u,{label:e.label,profile_picture:e.profile_picture})))))):null,React.createElement("div",{className:d.Z["submit-wrap"]},React.createElement(s.Z,{variant:"secondary",onClick:t},__("Cancel","jetpack")),v.not_connected.length?React.createElement(s.Z,{form:"connection-confirmation-form",type:"submit"},__("Confirm","jetpack")):null))}},95766:(e,t,a)=>{"use strict";a.d(t,{i:()=>k});var n=a(32054),s=a(88275),i=a(55609),r=a(37798),o=a(9818),c=a(69307),l=a(65736),p=a(3228),d=a(23177),u=a(5803),m=a(15805),h=a(16845);const __=l.__,_x=l._x,g=()=>{const{keyringResult:e}=(0,o.useSelect)((e=>{const{getKeyringResult:t}=e(d.h);return{keyringResult:t()}}),[]),{setKeyringResult:t,closeConnectionsModal:a}=(0,o.useDispatch)(d.h),[s]=(0,n.Z)("sm"),l=(0,c.useCallback)((()=>{t(null),a()}),[a,t]),g=Boolean(e?.ID),k=g?__("Connection confirmation","jetpack"):_x("Manage Jetpack Social connections","","jetpack"),v=(0,o.useSelect)((e=>e(r.store).canUser("update","settings")),[]);return React.createElement(i.Modal,{className:(0,p.Z)(h.Z.modal,{[h.Z.small]:s}),onRequestClose:l,title:k},g?React.createElement(m.Y,{keyringResult:e,onComplete:l,isAdmin:v}):React.createElement(u.v,null))};function k(){const e=(0,o.useSelect)((e=>e(d.h).isConnectionsModalOpen()),[]);return React.createElement(s.ZP,{targetDom:document.body},e?React.createElement(g,null):null)}},3176:(e,t,a)=>{"use strict";a(55609),a(65736),a(34607),a(37548),a(42911)},37548:(e,t,a)=>{"use strict";a(55609),a(65736)},88649:(e,t,a)=>{"use strict";a(52175),a(55609),a(69307),a(65736),a(46791),a(1795),a(13858),a(69339)},29753:(e,t,a)=>{"use strict";a(55609),a(69307);var n=a(65736);a(99196),a(88219),a(98811),a(88649),a(45811);const __=n.__;__("Choose Media","jetpack")},71961:(e,t,a)=>{"use strict";a(55609),a(65736)},62578:(e,t,a)=>{"use strict";var n=a(55609),s=a(65736),i=a(61074),r=a(6163),o=a(3228),c=a(15844),l=a.n(c),p=a(82283);const __=s.__,d=({children:e,type:t="default",actions:a=[],onDismiss:s})=>{const c=(0,o.Z)(p.Z.notice,p.Z[`notice--${t}`]);return React.createElement("div",{className:c},React.createElement("div",{className:p.Z.content}," ",e," "),s&&React.createElement("button",{className:p.Z.dismiss,onClick:s},React.createElement(n.VisuallyHidden,null,__("Dismiss notice","jetpack")),React.createElement(i.Z,{icon:r.Z})),a&&a.length>0&&React.createElement("div",{className:p.Z.actions},a.map((e=>e))))};d.propTypes={children:l().node.isRequired,type:l().oneOf(["default","highlight","warning","error"]),actions:l().arrayOf(l().element),onDismiss:l().func}},8714:(e,t,a)=>{"use strict";a(55609),a(9818),a(12238),a(69307),a(65736),a(14085),a(86419),a(57492),a(49021),a(84703),a(3176),a(91474),a(23761)},91750:(e,t,a)=>{"use strict";a(13419),a(9818),a(72067),a(12238),a(65736),a(37548),a(34607),a(45078)},52403:(e,t,a)=>{"use strict";a(13419),a(86989),a(72067),a(69307),a(14085),a(86419),a(57492),a(19649)},77106:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(9818),s=a(23177);function i({shouldRefresh:e,children:t}){const a=(0,n.useDispatch)(s.Eg).refreshJetpackSocialSettings;return e&&a(),t}},19649:(e,t,a)=>{"use strict";a(13419),a(65736),a(99196),a(2097)},26211:(e,t,a)=>{"use strict";a.d(t,{p:()=>d});var n=a(90526),s=a(9818),i=a(65736),r=a(3228),o=a(99196),c=a(23177),l=a(90934),p=a(58300);const __=i.__,_x=i._x;function d({service:e,isSmall:t,onSubmit:a,displayInputs:i,hasConnections:d,buttonLabel:u}){const{setKeyringResult:m}=(0,s.useDispatch)(c.h),{isConnectionsModalOpen:h}=(0,s.useSelect)((e=>e(c.h)),[]),g=(0,o.useCallback)((e=>{h()&&m(e)}),[m,h]),k=(0,p.N)({service:e,onConfirm:g}),v=(0,o.useCallback)((e=>{if(e.preventDefault(),e.stopPropagation(),a)return a();const t=new FormData(e.target);k(t)}),[a,k]);return React.createElement("form",{className:(0,r.Z)(l.Z["connect-form"],{[l.Z.small]:t}),onSubmit:v},i?React.createElement(React.Fragment,null,"mastodon"===e.ID?React.createElement("input",{required:!0,type:"text",name:"instance","aria-label":__("Mastodon username","jetpack"),placeholder:"@mastodon@mastodon.social"}):null):null,React.createElement(n.Z,{variant:d?"secondary":"primary",type:"submit",className:l.Z["connect-button"]},u||(d?_x("Connect more","","jetpack"):__("Connect","jetpack"))))}},86782:(e,t,a)=>{"use strict";a.d(t,{v:()=>d});var n=a(69665),s=a(45106),i=a(65736),r=a(62878),o=a(25893),c=a(20841),l=a(43876),p=a(90934);const __=i.__,d=({connection:e,service:t,isAdmin:a})=>{return React.createElement("div",{className:p.Z["service-connection"]},React.createElement("div",null,e.profile_picture?React.createElement("img",{className:p.Z["profile-pic"],src:e.profile_picture,alt:e.display_name}):React.createElement(t.icon,{iconSize:40})),React.createElement("div",{className:p.Z["connection-details"]},React.createElement(r.d,{connection:e}),"broken"===(i=e).status?React.createElement(o.Q,{connection:i,service:t}):a?React.createElement("div",{className:p.Z["mark-shared-wrap"]},React.createElement(l.l,{connection:i}),React.createElement(n.Z,{placement:"top",inline:!1,shift:!0},__("If enabled, the connection will be available to all administrators, editors, and authors.","jetpack"))):i.can_disconnect?null:React.createElement(s.ZP,{className:p.Z.description},__("This connection is added by a site administrator.","jetpack"))),React.createElement("div",{className:p.Z["connection-actions"]},React.createElement(c.c,{connection:e,isDestructive:!1,variant:"tertiary",buttonClassName:p.Z.disconnect})));var i}},51770:(e,t,a)=>{"use strict";a.d(t,{L:()=>d});var n=a(32054),s=a(55609),i=a(37798),r=a(9818),o=a(3228),c=a(23177),l=a(86782),p=a(90934);function d({service:e,serviceConnections:t}){const[a]=(0,n.Z)("sm"),{deletingConnections:d,updatingConnections:u}=(0,r.useSelect)((e=>{const{getDeletingConnections:t,getUpdatingConnections:a}=e(c.h);return{deletingConnections:t(),updatingConnections:a()}}),[]),m=(0,r.useSelect)((e=>e(i.store).canUser("update","settings")),[]);return t.length?React.createElement("ul",{className:p.Z["service-connection-list"]},t.map((t=>{const a=u.includes(t.connection_id)||d.includes(t.connection_id);return React.createElement("li",{key:t.connection_id},React.createElement(s.Disabled,{isDisabled:a},React.createElement(l.v,{connection:t,service:e,isAdmin:m})))}))):React.createElement("div",{className:(0,o.Z)(p.Z["example-wrapper"],{[p.Z.small]:a})},e.examples.map(((t,a)=>React.createElement("div",{key:e.ID+a,className:p.Z.example},React.createElement(t,null)))))}},87805:(e,t,a)=>{"use strict";a.d(t,{D:()=>g});var n=a(32054),s=a(90526),i=a(55609),r=a(69307),o=a(65736),c=a(61074),l=a(57489),p=a(42229),d=a(26211),u=a(51770),m=a(65378),h=a(90934);const __=o.__;function g({service:e,serviceConnections:t}){const[a]=(0,n.Z)("sm"),[o,g]=(0,r.useReducer)((e=>!e),!1),k=o&&"mastodon"===e.ID;return React.createElement("div",{className:h.Z["service-item"]},React.createElement("div",{className:h.Z["service-item-info"]},React.createElement("div",null,React.createElement(e.icon,{iconSize:a?36:48})),React.createElement("div",{className:h.Z["service-basics"]},React.createElement("div",{className:h.Z.heading},React.createElement("span",{className:h.Z.title},e.label),e.badges?.length?React.createElement("div",{className:h.Z.badges},e.badges.map((({text:e,style:t},a)=>React.createElement("span",{key:a,className:h.Z.badge,style:t},e)))):null),a||t.length?null:React.createElement("span",{className:h.Z.description},e.description),React.createElement(m.$,{serviceConnections:t,onClickBroken:o?void 0:g})),React.createElement("div",{className:h.Z.actions},k?null:React.createElement(d.p,{service:e,isSmall:a,onSubmit:e.needsCustomInputs?g:void 0,hasConnections:t.length>0}),React.createElement(s.Z,{size:"small",className:h.Z["learn-more"],variant:"tertiary",onClick:g,"aria-label":__("Learn more","jetpack")},React.createElement(c.Z,{className:h.Z.chevron,icon:o?l.Z:p.Z})))),React.createElement(i.Panel,{className:h.Z["service-panel"]},React.createElement(i.PanelBody,{opened:o,onToggle:g},React.createElement(u.L,{service:e,serviceConnections:t}),"mastodon"===e.ID?React.createElement("div",{className:h.Z["connect-form-wrapper"]},React.createElement(d.p,{service:e,displayInputs:!0,isSmall:!1,buttonLabel:__("Connect","jetpack")})):null)))}},65378:(e,t,a)=>{"use strict";a.d(t,{$:()=>r});var n=a(90526),s=a(65736),i=a(90934);const __=s.__,_x=s._x;function r({serviceConnections:e,onClickBroken:t}){return e.length?e.some((({status:e})=>"broken"===e))?React.createElement("span",null,React.createElement(n.Z,{variant:"link",className:i.Z["broken-connection"],onClick:t},e.length>1?__("Broken connections","jetpack"):_x("Broken connection","","jetpack"))):React.createElement("span",{className:i.Z["active-connection"]},e.length>1?(0,s.sprintf)( // translators: %d: Number of connections __("%d connections","jetpack"),e.length):__("Connected","jetpack")):null}},5803:(e,t,a)=>{"use strict";a.d(t,{v:()=>c});var n=a(9818),s=a(23177),i=a(87805),r=a(90934),o=a(66475);function c(){const e=(0,o.i)(),t=(0,n.useSelect)((e=>e(s.h).getConnections().reduce(((e,t)=>(e[t.service_name]||(e[t.service_name]=[]),e[t.service_name].push(t),e)),{})),[]);return React.createElement("ul",{className:r.Z.services},e.map((e=>React.createElement("li",{key:e.ID,className:r.Z["service-list-item"]},React.createElement(i.D,{service:e,serviceConnections:t[e.ID]||[]})))))}},58300:(e,t,a)=>{"use strict";a.d(t,{N:()=>p});var n=a(60068),s=a(9818),i=a(69307),r=a(65736),o=a(23177),c=a(42032);const __=r.__,l=e=>/^@?\b([A-Z0-9_]+)@([A-Z0-9.-]+\.[A-Z]{2,})$/gi.test(e);function p({service:e,onConfirm:t}){const{createErrorNotice:a}=(0,n._)(),r=(0,s.useSelect)((e=>e(o.h).isMastodonAccountAlreadyConnected),[]);return(0,i.useCallback)((n=>{const s=new URL(e.connect_URL);switch(e.ID){case"mastodon":{const e=n.get("instance").toString().trim();if(!l(e))return void a(__("Invalid Mastodon username","jetpack"));if(r?.(e))return void a(__("This Mastodon account is already connected","jetpack"));s.searchParams.set("instance",n.get("instance"));break}}(0,c.requestExternalAccess)(s.toString(),t)}),[a,r,t,e.ID,e.connect_URL])}},66475:(e,t,a)=>{"use strict";a.d(t,{i:()=>v});var n=a(82674),s=a.n(n),i=a(3396),r=a(55609),o=a(9818),c=a(69307),l=a(65736),p=a(40644),d=a(93926),u=a(98611),m=a(44654),h=a(16723),g=a(27182),k=a(23177);const __=l.__;function v(){const e=(0,o.useSelect)((e=>e(k.h).getServices().reduce(((e,t)=>({...e,[t.ID]:t})),{})),[]),t={text:__("New","jetpack"),style:{background:"#e9eff5",color:"#0675C4"}};return[{...e.facebook,icon:e=>React.createElement(i.av,s()({serviceName:"facebook"},e)),description:__("Share to your pages","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,c.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts on your Facebook page.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:p,alt:__("Add Facebook connection","jetpack")})]},{...e["instagram-business"],icon:e=>React.createElement(i.av,s()({serviceName:"instagram"},e)),description:__("Share to your Instagram Business account.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,__("Drive engagement and save time by automatically sharing images to Instagram when you publish blog posts.","jetpack"),React.createElement("div",{className:"instagram-business__requirements"},React.createElement("h4",null,__("Requirements for connecting Instagram:","jetpack")),React.createElement("ol",null,React.createElement("li",null,__("You must have an Instagram Business account.","jetpack")),React.createElement("li",null,__("Your Instagram Business account must be linked to a Facebook page.","jetpack")))),(0,c.createInterpolateElement)(__("<i>When you click “connect” you'll be asked to <strong>log into Facebook</strong>. If your Instagram Business account isn't listed, ensure it's linked to a Facebook page.</i>","jetpack"),{strong:React.createElement("strong",null),i:React.createElement("em",null)}),React.createElement("br",null),React.createElement("br",null),React.createElement(r.ExternalLink,{className:"instagram-business__help-link",href:"https://jetpack.com/redirect/?source=jetpack-social-instagram-business-help"},__("Learn how to convert & link your Instagram account.","jetpack"))),()=>React.createElement("img",{src:d,alt:__("Add Instagram photo","jetpack")})]},{...e.threads,icon:e=>React.createElement(i.av,s()({serviceName:"threads"},e)),description:__("Share posts to your Threads feed.","jetpack"),badges:[t],examples:[()=>React.createElement(React.Fragment,null,__("Increase your presence in social media by sharing your posts automatically to Threads.","jetpack")),()=>React.createElement("img",{src:h,alt:__("Add Threads connection","jetpack")})]},{...e.linkedin,icon:e=>React.createElement(i.av,s()({serviceName:"linkedin"},e)),description:__("Share with your LinkedIn community.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,c.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts with your LinkedIn connections.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:u,alt:__("Add LinkedIn connection","jetpack")})]},{...e.nextdoor,icon:e=>React.createElement(i.av,s()({serviceName:"nextdoor"},e)),description:__("Share on communities","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,c.createInterpolateElement)(__("<strong>Connect</strong> with friends, neighbors, and local businesses by automatically sharing your posts to Nextdoor.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:m,alt:__("Add Instagram photo","jetpack")})]},{...e.tumblr,icon:e=>React.createElement(i.av,s()({serviceName:"tumblr-alt"},e)),description:__("Share to your Tumblr blog.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,c.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts to your Tumblr blog.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:g,alt:__("Add Tumblr connection","jetpack")})]},{...e.mastodon,needsCustomInputs:!0,icon:e=>React.createElement(i.av,s()({serviceName:"mastodon"},e)),description:__("Share with your network.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,__("To share to Mastodon please enter your Mastodon username below, then click connect.","jetpack"))]}].filter((e=>Boolean(e.ID)))}},2817:(e,t,a)=>{"use strict";var n=a(65736);const __=n.__;__("X","jetpack"),__("WhatsApp","jetpack"),__("Facebook","jetpack")},22917:(e,t,a)=>{"use strict";a(34607)},34607:(e,t,a)=>{"use strict";a(13419),a(69307),a(65736),a(2817),a(30664),a(38730)},38730:(e,t,a)=>{"use strict";a(9818),a(69307),a(71806)},32637:(e,t,a)=>{"use strict";a(69307),a(65736),a(73640)},91474:(e,t,a)=>{"use strict";a(55609),a(9818),a(12238),a(69307),a(65736),a(53961),a(14085),a(45579),a(57492),a(23177)},54005:(e,t,a)=>{"use strict";a(55609),a(69307),a(65736),a(75263),a(34282),a(9888),a(81469)},81469:(e,t,a)=>{"use strict";a(55609),a(69307);var n=a(65736);a(75263),a(98811),a(9888),a(88649),a(39356),a(40088);const __=n.__;__("Choose Image","jetpack")},79631:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(32054),s=a(90526),i=a(9818),r=a(69307),o=a(65736),c=a(99196),l=a.n(c),p=a(23177),d=a(8350);const __=o.__,u=()=>{const[e,t]=(0,r.useState)(null),{isEnabled:a,isUpdating:o,defaultTemplate:c}=(0,i.useSelect)((e=>{const t=e(p.Eg);return{isEnabled:t.isSocialImageGeneratorEnabled(),isUpdating:t.isUpdatingSocialImageGeneratorSettings(),defaultTemplate:t.getSocialImageGeneratorDefaultTemplate()}}),[]),u=(0,i.useDispatch)(p.Eg).updateSocialImageGeneratorSettings;(0,r.useEffect)((()=>{if(e){u({template:e})}}),[e,u]);const[m]=(0,n.Z)("sm"),h=(0,r.useCallback)((({open:e})=>l().createElement(s.Z,{fullWidth:m,variant:"secondary",size:"small",disabled:o||!a,onClick:e},__("Change default template","jetpack"))),[a,m,o]);return l().createElement(d.Z,{value:e||c,onSelect:t,render:h})}},8350:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(88275),s=a(55609),i=a(69307),r=a(65736),o=a(39356),c=a(15214);const __=r.__,l=({onSelect:e,render:t,value:a=null})=>{const[r,l]=(0,i.useState)(!1),[p,d]=(0,i.useState)(a),u=(0,i.useCallback)((()=>l(!0)),[l]),m=(0,i.useCallback)((()=>{l(!1)}),[l]),h=(0,i.useCallback)((()=>{e(p),l(!1)}),[e,l,p]);return React.createElement(n.ZP,{targetDom:document.body},t({open:u}),r&&React.createElement(s.Modal,{onRequestClose:m,title:__("Pick a Template","jetpack")},React.createElement(o.Z,{value:p,onTemplateSelected:d}),React.createElement("div",{className:c.Z.footer},React.createElement(s.Button,{variant:"tertiary",onClick:m},__("Cancel","jetpack")),React.createElement(s.Button,{variant:"primary",onClick:h},__("Save","jetpack")))))}},39356:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(69307),s=a(65736),i=a(3228),r=a(47320),o=a(57227);const __=s.__,c=({value:e=null,onTemplateSelected:t=null})=>{const a=(0,n.useCallback)((e=>{const a=e.target.id;t?.(a)}),[t]);return React.createElement("div",{className:r.Z.templates},o.Z.map((t=>React.createElement("button",{onClick:a,id:t.name,key:t.name,className:(0,i.Z)(r.Z.template,{[r.Z["template--active"]]:t.name===e})},React.createElement("img",{src:t.image,alt:t.label}),React.createElement("span",{className:"screen-reader-text"},/* translators: %s is the name of the template */ /* translators: %s is the name of the template */ (0,s.sprintf)(__("Pick the %s template","jetpack"),t.label))))))}},57227:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(30253),s=a(91948),i=a(5353);const r=[{name:"highway",label:"Highway",image:a(27956)},{name:"dois",label:"Dois",image:n},{name:"edge",label:"Edge",image:s},{name:"fullscreen",label:"Fullscreen",image:i}]},76848:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(48229),s=a(9818),i=a(69307),r=a(99196),o=a.n(r),c=a(23177);const l=({toggleClass:e,children:t})=>{const{isEnabled:a,isUpdating:r}=(0,s.useSelect)((e=>{const t=e(c.Eg);return{isEnabled:t.isSocialImageGeneratorEnabled(),isUpdating:t.isUpdatingSocialImageGeneratorSettings()}}),[]),l=(0,s.useDispatch)(c.Eg).updateSocialImageGeneratorSettings,p=(0,i.useCallback)((()=>{l({enabled:!a})}),[a,l]);return o().createElement(n.Z,{className:e,disabled:r,checked:a,onChange:p,label:t})}},63855:(e,t,a)=>{"use strict";var n=a(82674),s=a.n(n),i=a(13477),r=a(9818),o=a(48751),c=a(23177);(0,r.withSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor");return{excerpt:t("excerpt"),content:t("content").split("\x3c!--more")[0]}}))((e=>{const{message:t}=(0,o.Z)(),{title:a,excerpt:n,content:l}=e,p=(0,r.useSelect)((e=>{const{displayName:t,profileImage:a}=e(c.Eg).getConnectionProfileDetails(c.uJ);return{displayName:t,avatarUrl:a}}));return React.createElement(i.S,s()({},e,{type:"article",user:p,customText:t||n||l||a}))}))},83704:(e,t,a)=>{"use strict";a(82674),a(9818),a(22629),a(99196)},4124:(e,t,a)=>{"use strict";a(55609),a(9818),a(65736),a(99196),a(14085),a(48751),a(23177)},27725:(e,t,a)=>{"use strict";a(9818),a(65736),a(99196),a(48751),a(23177)},28586:(e,t,a)=>{"use strict";a(82674),a(9818),a(22629),a(71806),a(48751),a(23177)},8454:(e,t,a)=>{"use strict";a(55609),a(65736),a(41809),a(9279)},18553:(e,t,a)=>{"use strict";a(9818),a(99196),a(48751),a(23177)},74140:(e,t,a)=>{"use strict";a(55609),a(65736),a(41809)},78485:(e,t,a)=>{"use strict";a(9818),a(22629),a(99196),a(71806),a(23177)},94714:(e,t,a)=>{"use strict";a(82674),a(9818),a(48751),a(23177)},24766:(e,t,a)=>{"use strict";a(9818),a(99196),a(71806),a(23177)},41809:(e,t,a)=>{"use strict";a(82674),a(65736),a(99196),a(23177),a(42032),a(63855),a(83704),a(4124),a(27725),a(28586),a(18553),a(78485),a(94714),a(24766)},9279:(e,t,a)=>{"use strict";a(9818),a(65736),a(71806)},13858:(e,t,a)=>{"use strict";a(69307),a(87728)},88219:(e,t,a)=>{"use strict";a(71806)},75323:(e,t,a)=>{"use strict";a(13419),a(86989),a(69307)},39118:(e,t,a)=>{"use strict";a(9818),a(12238)},75263:(e,t,a)=>{"use strict";a(9818),a(12238),a(69307),a(71806)},98811:(e,t,a)=>{"use strict";a(9818),a(69307)},46791:(e,t,a)=>{"use strict";a(69307),a(1795)},1795:(e,t,a)=>{"use strict";const n="video/mp4",s="video/mov",i="video/videopress",r=["image/jpeg","image/jpg","image/png"],o=r.concat(["image/gif","image/bmp"]),c=["video/3g2","video/3gp","video/3gpp","video/asf","video/avi","video/dat","video/divx","video/dv","video/f4v","video/flv","video/gif","video/m2ts","video/m4v","video/mkv","video/mod","video/mov","video/mp4","video/mpe","video/mpeg","video/mpeg4","video/mpg","video/mts","video/nsv","video/ogm","video/ogv","video/qt","video/tod","video/ts","video/vob","video/wmv"],l=r.concat(["image/gif","image/heic","image/heif","image/webp","image/avif"]),p=["video/webm","video/quicktime","video/ogg"],d=r.concat(["image/gif","image/jpe","image/tif","image/tiff","image/webp"]),u=[s,"video/avi","video/mpg","video/mpeg","video/m4v"];r.concat([n,i,s]),r.concat([n,i]),o.concat([i,...c]),r.concat([n,s,i]),r.concat([n,i]),l.concat([...p,n,i]),d.concat([...u,n,i]),new Set([...r,...o,...l,...c,...p,"image/png","image/jpeg","image/jpg","image/heic","image/heif","image/webp"])},71806:(e,t,a)=>{"use strict";a.d(t,{R:()=>o});var n=a(9818),s=a(12238),i=a(69307),r=a(42032);function o(){const{editPost:e}=(0,n.useDispatch)(s.store),t=(0,n.useSelect)((e=>{const t=e(s.store).getEditedPostAttribute("meta")||{},a=t.jetpack_publicize_feature_enabled??!0,n=t.jetpack_social_options||{};return{isPublicizeEnabled:a,jetpackSocialOptions:n,attachedMedia:n.attached_media||[],imageGeneratorSettings:n.image_generator_settings??{enabled:!1},isPostAlreadyShared:t.jetpack_social_post_already_shared??!1,shareMessage:`${t.jetpack_publicize_message||""}`.substring(0,(0,r.getShareMessageMaxLength)())}}),[]),a=(0,i.useCallback)(((t,a)=>{e({meta:{[t]:a}})}),[e]),o=(0,i.useCallback)((()=>{a("jetpack_publicize_feature_enabled",!t.isPublicizeEnabled)}),[t.isPublicizeEnabled,a]),c=(0,i.useCallback)(((e,n)=>{a("jetpack_social_options",{...t.jetpackSocialOptions,[e]:n,version:2})}),[t.jetpackSocialOptions,a]);return(0,i.useMemo)((()=>({...t,togglePublicizeFeature:o,updateJetpackSocialOptions:c,updateMeta:a})),[t,o,c,a])}},14085:(e,t,a)=>{"use strict";a(13419),a(9818),a(12238),a(23177),a(71806)},6230:(e,t,a)=>{"use strict";a(9818),a(69307),a(23177)},96672:(e,t,a)=>{"use strict";a(94333),a(69307),a(57492)},34282:(e,t,a)=>{"use strict";a(65736),a(58141),a(99196)},86419:(e,t,a)=>{"use strict";a(94333),a(9818),a(12238),a(69307)},34431:(e,t,a)=>{"use strict";a(9818),a(65736),a(23177)},45579:(e,t,a)=>{"use strict";a(13419),a(86989),a(9818),a(12238),a(69307),a(65736),a(57492),a(48751)},57492:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(9818),s=a(23177);function i(){const{refreshConnectionTestResults:e,toggleConnectionById:t}=(0,n.useDispatch)(s.h);return{...(0,n.useSelect)((e=>{const t=e(s.h),a=t.getConnections(),n=t.getEnabledConnections(),i=t.getDisabledConnections().map((e=>e.connection_id));return{connections:a,hasConnections:a.length>0,hasEnabledConnections:n.length>0,skippedConnections:i,enabledConnections:n}}),[]),toggleById:t,refresh:e}}},48751:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(42032),s=a(71806);function i(){const{updateMeta:e,shareMessage:t}=(0,s.R)();return{message:t,maxLength:(0,n.getShareMessageMaxLength)(),updateMessage:function(t){e("jetpack_publicize_message",t)}}}},19890:(e,t,a)=>{"use strict";a(9818),a(12238),a(23177),a(86419)},21052:(e,t,a)=>{"use strict";a.d(t,{Au:()=>c,Wh:()=>l,ZP:()=>p,hi:()=>o,wO:()=>r});var n=a(9818),s=a(23177),i=a(4957);const r="SET_AUTO_CONVERSION_SETTINGS";function o(){return l({isUpdating:!0})}function c(){return l({isUpdating:!1})}function l(e){return{type:r,options:e}}const p={updateAutoConversionSettings:function*(e){try{yield o(),yield l(e),yield(0,i.Fl)(e);const t=yield(0,i.wi)();return yield l(t.jetpack_social_autoconvert_images),!0}catch(e){const t=(0,n.select)(s.Eg).getAutoConversionSettings();return yield l(t),!1}finally{yield c()}},setAutoConversionSettings:l,refreshAutoConversionSettings:function*(){try{yield o();const e=yield(0,i.wi)();return yield l(e.jetpack_social_autoconvert_images),!0}catch(e){return!1}finally{yield c()}}}},23013:(e,t,a)=>{"use strict";a.r(t),a.d(t,{addConnection:()=>u,closeConnectionsModal:()=>x,createConnection:()=>y,deleteConnection:()=>f,deleteConnectionById:()=>_,deletingConnection:()=>E,mergeConnections:()=>h,openConnectionsModal:()=>N,refreshConnectionTestResults:()=>g,setConnections:()=>p,setKeyringResult:()=>d,syncConnectionsToPostMeta:()=>k,toggleConnection:()=>m,toggleConnectionById:()=>v,toggleConnectionsModal:()=>S,updateConnection:()=>w,updateConnectionById:()=>j,updatingConnection:()=>C});var n=a(53961),s=a(86989),i=a.n(s),r=a(9818),o=a(12238),c=a(65736),l=a(74442);const __=c.__;function p(e){return{type:l.b1,connections:e}}function d(e){return{type:l.fI,keyringResult:e}}function u(e){return{type:l.es,connection:e}}function m(e){return{type:l.LH,connectionId:e}}function h(e){return function({dispatch:t,select:a}){const n=a.getConnections(),s=[],i={done:!1,enabled:Boolean(a.numberOfSharesRemaining()),toggleable:!0};for(const t of e){const e=n.find((e=>e.connection_id?e.connection_id===t.connection_id:e.id===t.id)),a={...i,...e,...t,shared:e?.shared,is_healthy:t.test_success};s.push(a)}t(p(s))}}function g(e=!1){return async function({dispatch:t,select:a}){try{const n=a.connectionRefreshPath()||"/wpcom/v2/publicize/connection-test-results";t(h(await i()({path:n}))),e&&t(k())}catch(e){}}}function k(){return function({registry:e,select:t}){const a=t.getConnections();return e.dispatch(o.store).editPost({jetpack_publicize_connections:a})}}function v(e,t=!0){return function({dispatch:a}){a(m(e)),t&&a(k())}}function f(e){return{type:l.dz,connectionId:e}}function E(e,t=!0){return{type:l.oI,connectionId:e,deleting:t}}function _({connectionId:e,showSuccessNotice:t=!0}){return async function({registry:a,dispatch:s}){const{createErrorNotice:c,createSuccessNotice:l}=(0,r.dispatch)(n.store);try{const n=`/jetpack/v4/social/connections/${e}`;return s(E(e)),await i()({method:"DELETE",path:n}),s(f(e)),t&&l(__("Account disconnected successfully.","jetpack"),{type:"snackbar",isDismissible:!0}),a.select(o.store).getCurrentPostId()&&s(k()),!0}catch(e){let t=__("Error disconnecting account.","jetpack");"object"==typeof e&&"message"in e&&e.message&&(t=`${t} ${e.message}`),c(t,{type:"snackbar",isDismissible:!0})}finally{s(E(e,!1))}return!1}}let b=1;function y(e,t={}){return async function({registry:a,dispatch:s}){const{createErrorNotice:l,createSuccessNotice:p}=(0,r.dispatch)(n.store),d="new-"+ ++b;try{const n="/jetpack/v4/social/connections/";s(u({connection_id:d,...t})),s(C(d));const r=await i()({method:"POST",path:n,data:e});r&&(s(w(d,{...r,can_disconnect:!0,enabled:!0})),p((0,c.sprintf)(/* translators: %s is the name of the social media platform e.g. "Facebook" */ __("%s account connected successfully.","jetpack"),r.label),{type:"snackbar",isDismissible:!0}),a.select(o.store).getCurrentPostId()&&s(k()))}catch(e){let t=__("Error connecting account.","jetpack");"object"==typeof e&&"message"in e&&e.message&&(t=`${t} ${e.message}`),l(t,{type:"snackbar",isDismissible:!0})}finally{s(C(d,!1)),s(f(d))}}}function w(e,t){return{type:l.$Q,connectionId:e,data:t}}function C(e,t=!0){return{type:l.fV,connectionId:e,updating:t}}function j(e,t){return async function({dispatch:a,select:s}){const{createErrorNotice:o,createSuccessNotice:c}=(0,r.dispatch)(n.store),l=s.getConnectionById(e);try{const n=`/jetpack/v4/social/connections/${e}`;a(w(e,t)),a(C(e));await i()({method:"POST",path:n,data:t})&&c(__("Account updated successfully.","jetpack"),{type:"snackbar",isDismissible:!0})}catch(t){let n=__("Error updating account.","jetpack");"object"==typeof t&&"message"in t&&t.message&&(n=`${n} ${t.message}`),a(w(e,l)),o(n,{type:"snackbar",isDismissible:!0})}finally{a(C(e,!1))}}}function S(e){return{type:l.Tb,isOpen:e}}function N(){return S(!0)}function x(){return S(!1)}},74442:(e,t,a)=>{"use strict";a.d(t,{$Q:()=>c,LH:()=>i,Tb:()=>d,b1:()=>n,dz:()=>r,es:()=>s,fI:()=>p,fV:()=>l,oI:()=>o});const n="SET_CONNECTIONS",s="ADD_CONNECTION",i="TOGGLE_CONNECTION",r="DELETE_CONNECTION",o="DELETING_CONNECTION",c="UPDATE_CONNECTION",l="UPDATING_CONNECTION",p="SET_KEYRING_RESULT",d="TOGGLE_CONNECTIONS_MODAL"},54725:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(21052),s=a(23013),i=a(371),r=a(72438),o=a(4462),c=a(64704);const l={...i.ZP,...o.ZP,...n.ZP,...r.Z,...s,...c.ZP}},371:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>c,dz:()=>r,ff:()=>o});var n=a(9818),s=a(23177),i=a(4957);const r="SET_JETPACK_SETTINGS";function o(e){return{type:r,options:e}}const c={updateJetpackSettings:function*(e){try{yield o({is_updating:!0}),yield o(e),yield(0,i.RF)(e);const t=yield(0,i.es)();return yield o(t),!0}catch(e){const t=(0,n.select)(s.Eg).getJetpackSettings();return yield o(t),!1}finally{yield o({is_updating:!1})}},setJetpackSettings:o}},72438:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(4957),s=a(21052),i=a(4462);const r={refreshJetpackSocialSettings:function*(){try{yield(0,s.hi)(),yield(0,i.ds)();const e=yield(0,n.mu)();return yield(0,s.Wh)(e.jetpack_social_autoconvert_images),yield(0,i.ch)(e.jetpack_social_image_generator_settings),!0}catch(e){return!1}finally{yield(0,s.Au)(),yield(0,i.Gr)()}}}},4462:(e,t,a)=>{"use strict";a.d(t,{Gr:()=>c,ZP:()=>p,ch:()=>l,ds:()=>o,kg:()=>r});var n=a(9818),s=a(23177),i=a(4957);const r="SET_SOCIAL_IMAGE_GENERATOR_SETTINGS";function o(){return l({isUpdating:!0})}function c(){return l({isUpdating:!1})}function l(e){return{type:r,options:e}}const p={updateSocialImageGeneratorSettings:function*(e){try{yield o(),yield l(e),yield(0,i.Ux)(e);const t=yield(0,i.oB)();return yield l(t.jetpack_social_image_generator_settings),!0}catch(e){const t=(0,n.select)(s.Eg).getSocialImageGeneratorSettings();return yield l(t),!1}finally{yield c()}},setSocialImageGeneratorSettings:l,refreshSocialImageGeneratorSettings:function*(){try{yield o();const e=yield(0,i.oB)();return yield l(e.jetpack_social_image_generator_settings),!0}catch(e){return!1}finally{yield c()}}}},64704:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>l});var n=a(9818),s=a(23177),i=a(4957),r=a(371);function o(){return(0,r.ff)({social_notes_is_updating:!0})}function c(){return(0,r.ff)({social_notes_is_updating:!1})}const l={updateSocialNotesSettings:function*(e){try{yield o(),yield(0,r.ff)(e),yield(0,i.RF)(e);const t=yield(0,i.es)();return yield(0,r.ff)(t),!0}catch(e){const t=(0,n.select)(s.Eg).getSocialNotesSettings();return yield(0,r.ff)(t),!1}finally{yield c()}},updateSocialNotesConfig:function*(e){const t=(0,n.select)(s.Eg).getSocialNotesConfig(),a={...t,...e};try{yield(0,r.ff)({social_notes_config:a}),yield(0,i.RF)({social_notes_config:e});const t=yield(0,i.es)();return yield(0,r.ff)(t),!0}catch(e){return yield(0,r.ff)({social_notes_config:t}),!1}},refreshSocialNotesSettings:function*(){try{yield o();const e=yield(0,i.es)();return yield(0,r.ff)(e),!0}catch(e){return!1}finally{yield c()}}}},4957:(e,t,a)=>{"use strict";a.d(t,{Fl:()=>f,RF:()=>m,Ux:()=>g,ZP:()=>E,es:()=>u,mu:()=>v,oB:()=>h,wi:()=>k});var n=a(86989),s=a.n(n);const i="FETCH_JETPACK_SETTINGS",r="UPDATE_JETPACK_SETTINGS",o="FETCH_SOCIAL_IMAGE_GENERATOR_SETTINGS",c="UPDATE_SOCIAL_IMAGE_GENERATOR_SETTINGS",l="FETCH_AUTO_CONVERSION_SETTINGS",p="UPDATE_AUTO_CONVERSION_SETTINGS",d="FETCH_JETPACK_SOCIAL_SETTINGS",u=()=>({type:i}),m=e=>({type:r,settings:e}),h=()=>({type:o}),g=e=>({type:c,settings:e}),k=()=>({type:l}),v=()=>({type:d}),f=e=>({type:p,settings:e}),E={[i]:function(){return s()({path:"/jetpack/v4/social/settings"})},[r]:function(e){return s()({path:"/jetpack/v4/social/settings",method:"POST",data:e.settings})},[o]:function(){return s()({path:"/wp/v2/settings?_fields=jetpack_social_image_generator_settings"})},[c]:function(e){return s()({path:"/wp/v2/settings",method:"POST",data:{jetpack_social_image_generator_settings:e.settings}})},[l]:function(){return s()({path:"/wp/v2/settings?_fields=jetpack_social_autoconvert_images"})},[p]:function(e){return s()({path:"/wp/v2/settings",method:"POST",data:{jetpack_social_autoconvert_images:e.settings}})},[d]:function(){return s()({path:"/wp/v2/settings?_fields=jetpack_social_autoconvert_images,jetpack_social_image_generator_settings"})}}},23177:(e,t,a)=>{"use strict";a.d(t,{Eg:()=>l,h:()=>u,uJ:()=>d});var n=a(9818),s=a(54725),i=a(4957),r=a(45272),o=a(15781),c=a(22987);const l="jetpack-social-plugin",p={reducer:r.Z,actions:s.Z,selectors:c.Z,resolvers:o.ZP,controls:i.ZP,initialState:window?.jetpackSocialInitialState||window?.Initial_State?.socialInitialState||window?.Jetpack_Editor_Initial_State?.social||{}},d="facebook",u=(0,n.createReduxStore)(l,p);(0,n.register)(u)},20750:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(21052);const s=(e={},t)=>t.type===n.wO?{...e,...t.options}:e},71837:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(74442);const s=(e={},t)=>{switch(t.type){case n.Tb:return{...e,isConnectionsModalOpen:t.isOpen};case n.es:return{...e,connections:[...e.connections,t.connection]};case n.b1:return{...e,connections:t.connections};case n.dz:return{...e,connections:e.connections.filter((({connection_id:e})=>e!==t.connectionId))};case n.oI:{const a=new Set(e.deletingConnections);return t.deleting?a.add(t.connectionId):a.delete(t.connectionId),{...e,deletingConnections:[...a]}}case n.$Q:return{...e,connections:e.connections.map((e=>e.connection_id===t.connectionId?{...e,...t.data}:e))};case n.fV:{const a=new Set(e.updatingConnections);return t.updating?a.add(t.connectionId):a.delete(t.connectionId),{...e,updatingConnections:[...a]}}case n.fI:return{...e,keyringResult:t.keyringResult};case n.LH:return{...e,connections:e.connections.map((e=>(e.connection_id?e.connection_id===t.connectionId:e.id===t.connectionId)?{...e,enabled:!e.enabled}:e))}}return e}},45272:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(9818),s=a(20750),i=a(71837),r=a(80697),o=a(35652),c=a(28696),l=a(54489);const p=(0,n.combineReducers)({sharesData:o.Z,siteData:c.Z,connectionData:i.Z,jetpackSettings:r.Z,socialImageGeneratorSettings:l.Z,autoConversionSettings:s.Z,hasPaidPlan:(e=!1)=>e,userConnectionUrl:(e="")=>e,useAdminUiV1:(e=!1)=>e,hasPaidFeatures:(e=!1)=>e,connectionRefreshPath:(e="")=>e})},80697:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(371);const s=(e={},t)=>t.type===n.dz?{...e,...t.options}:e},35652:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n=(e={})=>e},28696:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n=(e={})=>e},54489:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(4462);const s=(e={},t)=>t.type===n.kg?{...e,...t.options}:e},15781:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>l});var n=a(12238),s=a(21052),i=a(23013),r=a(371),o=a(4462),c=a(4957);const l={getJetpackSettings:function*(){try{const e=yield(0,c.es)();if(e)return(0,r.ff)(e)}catch(e){console.log(e)}},getSocialImageGeneratorSettings:function*(){try{const e=yield(0,c.oB)();if(e)return(0,o.ch)(e.jetpack_social_image_generator_settings)}catch(e){console.log(e)}},getAutoConversionSettings:function*(){try{const e=yield(0,c.wi)();if(e)return(0,s.Wh)(e.jetpack_social_autoconvert_images)}catch(e){console.log(e)}},getConnections:function(){return function({dispatch:e,registry:t}){const a=t.select(n.store);if(!a.getCurrentPostId())return;const s=a.getEditedPostAttribute("jetpack_publicize_connections");e((0,i.setConnections)(s||[]))}}}},68113:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={getAutoConversionSettings:e=>e.autoConversionSettings,isAutoConversionAvailable:e=>e.autoConversionSettings.available,isAutoConversionEnabled:e=>e.autoConversionSettings.available&&e.autoConversionSettings.enabled,isAutoConversionSettingsUpdating:e=>e.autoConversionSettings.isUpdating}},43354:(e,t,a)=>{"use strict";function n(e){return e.connectionData?.connections??[]}function s(e,t){return n(e).find((e=>e.connection_id===t))}function i(e,t){return n(e).filter((({service_name:e})=>e===t))}function r(e){return e.connectionData?.adminUrl??null}function o(e){return n(e).length>0}function c(e){return n(e).filter((e=>!1===e.test_success))}function l(e){return n(e).filter((e=>"must_reauth"===e.test_success)).map((e=>e.service_name))}function p(e){return n(e).filter((e=>e.enabled))}function d(e){return n(e).filter((e=>!e.enabled))}function u(e,t,{forceDefaults:a=!1}={}){let s="",i="",r="";if(!a){const a=n(e).find((({service_name:e})=>t===e));if(a){const{display_name:e,profile_display_name:n,profile_picture:o,external_display:c}=a;s="twitter"===t?n:e||c,r="twitter"===t?e:a.username,i=o}}return{displayName:s,profileImage:i,username:r}}function m(e){return e.connectionData?.deletingConnections??[]}function h(e){return e.connectionData?.updatingConnections??[]}function g(e,t){return i(e,"mastodon").some((e=>e.external_display===t))}function k(e){return e.connectionData?.services??[]}function v(e){return e.connectionData?.keyringResult}function f(e){return e.connectionData?.isConnectionsModalOpen??!1}a.r(t),a.d(t,{getConnectionById:()=>s,getConnectionProfileDetails:()=>u,getConnections:()=>n,getConnectionsAdminUrl:()=>r,getConnectionsByService:()=>i,getDeletingConnections:()=>m,getDisabledConnections:()=>d,getEnabledConnections:()=>p,getFailedConnections:()=>c,getKeyringResult:()=>v,getMustReauthConnections:()=>l,getServices:()=>k,getUpdatingConnections:()=>h,hasConnections:()=>o,isConnectionsModalOpen:()=>f,isMastodonAccountAlreadyConnected:()=>g})},22987:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(68113),s=a(43354),i=a(82836),r=a(31473),o=a(85675),c=a(45073);const l={...o.Z,...s,...i.Z,...r,...c.Z,...n.Z,userConnectionUrl:e=>e.userConnectionUrl,useAdminUiV1:e=>e.useAdminUiV1,hasPaidFeatures:e=>e.hasPaidFeatures,connectionRefreshPath:e=>e.connectionRefreshPath}},82836:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={getJetpackSettings:e=>e.jetpackSettings,isModuleEnabled:e=>e.jetpackSettings.publicize_active,showPricingPage:e=>e.jetpackSettings.show_pricing_page,isUpdatingJetpackSettings:e=>e.jetpackSettings.is_updating,hasPaidPlan:e=>!(e.jetpackSettings?.showNudge??1),isEnhancedPublishingEnabled:e=>e.jetpackSettings?.isEnhancedPublishingEnabled??!1,getDismissedNotices:e=>e.jetpackSettings?.dismissedNotices,isSocialNotesEnabled:e=>e.jetpackSettings?.social_notes_enabled,isSocialNotesSettingsUpdating:e=>e.jetpackSettings?.social_notes_is_updating,getSocialNotesConfig:e=>e.jetpackSettings?.social_notes_config??{}}},31473:(e,t,a)=>{"use strict";a.r(t),a.d(t,{getScheduledSharesCount:()=>c,getShareLimit:()=>r,getSharedPostsCount:()=>p,getSharesUsedCount:()=>o,getTotalSharesCount:()=>l,isShareLimitEnabled:()=>s,numberOfSharesRemaining:()=>u,shouldShowAdvancedPlanNudge:()=>d,showShareLimits:()=>i});var n=a(82836);function s(e){return e.sharesData?.is_share_limit_enabled??!1}function i(e){return!n.Z.hasPaidPlan(e)&&!e.hasPaidPlan&&s(e)}function r(e){return e.sharesData?.share_limit??30}function o(e){return e.sharesData?.publicized_count??0}function c(e){return e.sharesData?.to_be_publicized_count??0}function l(e){const t=o(e)+c(e);return Math.max(t,0)}function p(e){return e.sharesData?.shared_posts_count??0}function d(e){return e.sharesData?.show_advanced_plan_upgrade_nudge??!1}function u(e,t={}){if(!i(e))return 1/0;const{includeScheduled:a}={includeScheduled:!0,...t},n=o(e),s=r(e),l=a?c(e):0;return Math.max(s-n-l,0)}},85675:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={getAdminUrl:e=>e.siteData?.adminUrl??null,getAPIRootUrl:e=>e.siteData?.apiRoot??null,getAPINonce:e=>e.siteData?.apiNonce??null,getRegistrationNonce:e=>e.siteData?.registrationNonce??null,getSiteSuffix:e=>e.siteData?.siteSuffix??null,getBlogID:e=>e.siteData?.blogID??null,getPluginVersion:e=>e.siteData?.pluginVersion??null}},45073:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={getSocialImageGeneratorSettings:e=>e.socialImageGeneratorSettings,isSocialImageGeneratorAvailable:e=>e.socialImageGeneratorSettings.available,isSocialImageGeneratorEnabled:e=>e.socialImageGeneratorSettings.enabled,isUpdatingSocialImageGeneratorSettings:e=>e.socialImageGeneratorSettings.isUpdating,getSocialImageGeneratorDefaultTemplate:e=>e.socialImageGeneratorSettings.template}},5463:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const n=255;function s(){return n}},12677:(e,t,a)=>{"use strict";a(13419)},42032:(e,t,a)=>{"use strict";a.d(t,{getShareMessageMaxLength:()=>n.A,requestExternalAccess:()=>s.Y});var n=a(5463),s=(a(12677),a(28574))},28574:(e,t,a)=>{"use strict";a.d(t,{Y:()=>s});var n=a(7211);const s=(e,t)=>{const a=new n.Z;let s;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(()=>{t(s?.ID?s:{})})),a.on("message",(e=>{s=e?.data}))}},13419:(e,t,a)=>{"use strict";a.d(t,{lQ:()=>n.Z});var n=a(35004);a(76714),a(80354),a(75404),a(61053),a(11380),a(6342),a(96959),a(39058)},6342:(e,t,a)=>{"use strict";a(99196)},96959:(e,t,a)=>{"use strict";a(69307)},35004:(e,t,a)=>{"use strict";function n(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}a.d(t,{Z:()=>n})},61053:(e,t,a)=>{"use strict";var n=a(6975);a(69307);const{tracks:s}=n.Z,{recordEvent:i}=s},11380:(e,t,a)=>{"use strict";a(9818),a(69307),a(39058)},44166:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>u,rW:()=>d});var n=a(9818),s=a(99505),i=a(82162),r=a(39058);const o="SET_JETPACK_MODULES",c="SET_MODULE_UPDATING";function l(e){return d({isLoading:e})}function p(e,t){return{type:c,name:e,isUpdating:t}}function d(e){return{type:o,options:e}}const u={updateJetpackModuleStatus:function*(e){try{yield p(e.name,!0),yield(0,i.zL)(e);const t=yield(0,i.Bs)();return yield d({data:t}),!0}catch(e){const t=(0,n.select)(r.p).getJetpackModules();return yield d(t),!1}finally{yield p(e.name,!1)}},setJetpackModules:d,fetchModules:function*(){if((0,s.Wp)())return!0;try{yield l(!0);const e=yield(0,i.Bs)();return yield d({data:e}),!0}catch(e){const t=(0,n.select)(r.p).getJetpackModules();return yield d(t),!1}finally{yield l(!1)}}}},82162:(e,t,a)=>{"use strict";a.d(t,{Bs:()=>o,ZP:()=>l,zL:()=>c});var n=a(86989),s=a.n(n);const i="FETCH_JETPACK_MODULES",r="UPDATE_JETPACK_MODULE_STATUS",o=()=>({type:i}),c=e=>({type:r,settings:e}),l={[i]:function(){return s()({path:"/jetpack/v4/module/all",method:"GET"})},[r]:function({settings:e}){return s()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},39058:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var n=a(9818),s=a(44166),i=a(82162),r=a(42469),o=a(55133),c=a(43524);const l="jetpack-modules",p=(0,n.createReduxStore)(l,{reducer:r.Z,actions:s.ZP,controls:i.ZP,resolvers:o.Z,selectors:c.Z});(0,n.register)(p);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,n.dispatch)(l).setJetpackModules({data:{...d}})},42469:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});const n={isLoading:!1,isUpdating:{},data:{}},s=(e=n,t)=>{switch(t.type){case"SET_JETPACK_MODULES":return{...e,...t.options};case"SET_MODULE_UPDATING":return{...e,isUpdating:{...e.isUpdating,[t.name]:t.isUpdating}}}return e}},55133:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(44166),s=a(82162);const i={getJetpackModules:function*(){try{const e=yield(0,s.Bs)();if(e)return(0,n.rW)({data:e})}catch(e){console.error(e)}}}},43524:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(99505);const s={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,n.Wp)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},75404:(e,t,a)=>{"use strict";var n=a(65736);a(96483),a(92819);const __=n.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},76714:(e,t,a)=>{"use strict";a(98817)},99505:(e,t,a)=>{"use strict";function n(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function s(){return"simple"===n()}a.d(t,{Wp:()=>s})},80354:(e,t,a)=>{"use strict";a(82674),a(94333)},56286:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>n.Y});var n=a(49614);a(9839)},9839:(e,t,a)=>{"use strict";a.d(t,{N:()=>n});const n=[{name:"amazon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M13.582 8.182c-1.648.185-3.802.308-5.344.984-1.781.769-3.03 2.337-3.03 4.644 0 2.953 1.86 4.429 4.253 4.429 2.02 0 3.125-.477 4.685-2.065.516.747.685 1.109 1.629 1.894a.59.59 0 0 0 .672-.066l.006.006c.567-.505 1.599-1.401 2.18-1.888.231-.188.19-.496.009-.754-.52-.718-1.072-1.303-1.072-2.634V8.305c0-1.876.133-3.599-1.249-4.891C15.23 2.369 13.422 2 12.04 2 9.336 2 6.318 3.01 5.686 6.351c-.068.355.191.542.423.594l2.754.298c.258-.013.445-.266.494-.523.236-1.151 1.2-1.706 2.284-1.706.584 0 1.249.215 1.595.738.398.584.346 1.384.346 2.061zm-.533 5.906c-.451.8-1.169 1.291-1.967 1.291-1.09 0-1.728-.83-1.728-2.061 0-2.42 2.171-2.86 4.227-2.86v.615c.001 1.108.027 2.031-.532 3.015m7.634 5.251C18.329 21.076 14.917 22 11.979 22c-4.118 0-7.826-1.522-10.632-4.057-.22-.199-.024-.471.241-.317 3.027 1.762 6.771 2.823 10.639 2.823 2.608 0 5.476-.541 8.115-1.66.397-.169.73.262.341.55m.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684s-1.99-.183-2.749-.092c-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59"})))},{name:"behance",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156q.722.155 1.241.507.516.351.804.938c.188.387.281.871.281 1.443q0 .93-.421 1.551-.424.62-1.255 1.014 1.133.328 1.689 1.146.559.822.557 1.975 0 .935-.359 1.612a3.14 3.14 0 0 1-.973 1.114q-.613.432-1.399.637A6.1 6.1 0 0 1 7.963 18H2V5.698zm-.35 4.97q.721 0 1.192-.345.465-.344.463-1.119 0-.43-.152-.707a1.1 1.1 0 0 0-.416-.427 1.7 1.7 0 0 0-.596-.216 3.6 3.6 0 0 0-.697-.06H4.709v2.874zm.151 5.237q.401.001.759-.077c.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491q.164-.31.163-.798-.002-.948-.533-1.357c-.356-.27-.83-.404-1.413-.404H4.709v3.388zm8.562-.041q.552.538 1.583.538.74 0 1.277-.374c.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693q-1.05 0-1.899-.337a4 4 0 0 1-1.439-.958 4.4 4.4 0 0 1-.904-1.484 5.4 5.4 0 0 1-.32-1.899q0-1 .329-1.863a4.4 4.4 0 0 1 .933-1.492q.607-.63 1.444-.994a4.6 4.6 0 0 1 1.857-.363q1.131-.001 1.98.44a3.94 3.94 0 0 1 1.389 1.181 4.8 4.8 0 0 1 .783 1.69q.24.947.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496q-.585 0-.973.2a2 2 0 0 0-.621.491 1.8 1.8 0 0 0-.328.628 2.7 2.7 0 0 0-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41m-3.916-3.446h4.985V6.524h-4.985z"})))},{name:"blogger-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 0 1-1.16-1.079l-.001-.013A5.813 5.813 0 0 0 11.803 3H8.871a5.813 5.813 0 0 0-5.813 5.813v6.375a5.813 5.813 0 0 0 5.813 5.813h6.257a5.814 5.814 0 0 0 5.813-5.813l.002-4.121a1.164 1.164 0 0 0-1.164-1.163M8.726 7.713h3.291a1.117 1.117 0 1 1 0 2.234H8.726a1.117 1.117 0 1 1 0-2.234m6.601 8.657H8.72a1.057 1.057 0 1 1 0-2.114h6.607a1.057 1.057 0 1 1 0 2.114"})))},{name:"blogger",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M14.722 14.019a.654.654 0 0 1-.654.654H9.977a.654.654 0 0 1 0-1.308h4.091c.361 0 .654.293.654.654m-4.741-3.321h2.038a.692.692 0 0 0 0-1.384H9.981a.692.692 0 0 0 0 1.384M21 5v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-3.456 6.39a.72.72 0 0 0-.72-.72h-.607l-.013.001a.72.72 0 0 1-.718-.668l-.001-.008a3.6 3.6 0 0 0-3.599-3.599H10.07a3.6 3.6 0 0 0-3.599 3.599v3.947a3.6 3.6 0 0 0 3.599 3.599h3.874a3.6 3.6 0 0 0 3.599-3.599z"})))},{name:"bluesky",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.2 3.3c-.5-.2-1.4-.5-3.6 1C15.4 6 12.9 9.2 12 11c-.9-1.8-3.4-5-5.7-6.7-2.2-1.6-3-1.3-3.6-1S2 4.6 2 5.1s.3 4.7.5 5.4c.7 2.3 3.1 3.1 5.3 2.8-3.3.5-6.2 1.7-2.4 5.9 4.2 4.3 5.7-.9 6.5-3.6.8 2.7 1.7 7.7 6.4 3.6 3.6-3.6 1-5.4-2.3-5.9 2.2.2 4.6-.5 5.3-2.8.4-.7.7-4.8.7-5.4 0-.5-.1-1.5-.8-1.8"})))},{name:"codepen",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m22.016 8.84-.007-.037q-.006-.037-.015-.072-.007-.022-.013-.042l-.023-.062-.02-.042a.4.4 0 0 0-.03-.057l-.025-.038-.035-.052-.03-.037q-.021-.026-.043-.045-.015-.018-.035-.035a.4.4 0 0 0-.048-.04l-.037-.03-.015-.012-9.161-6.096a.86.86 0 0 0-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 0 0-.078.082q-.018.018-.03.037-.018.026-.035.052l-.025.038q-.016.031-.03.059l-.02.041a1 1 0 0 0-.034.106q-.01.034-.016.071-.003.02-.006.037a1 1 0 0 0-.009.114v6.093q0 .056.008.112l.007.038q.006.035.015.072a.2.2 0 0 0 .013.04q.01.032.022.063l.02.04a.4.4 0 0 0 .055.096l.035.052.03.037.042.045.035.035q.023.02.048.04l.038.03.013.01 9.163 6.095a.858.858 0 0 0 .959.004l9.163-6.095.015-.01q.02-.015.037-.03l.048-.04q.02-.017.035-.035.025-.024.043-.045l.03-.037.035-.052.025-.038a.4.4 0 0 0 .03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04q.009-.037.015-.072l.007-.037q.006-.062.007-.117V8.954a1 1 0 0 0-.008-.114m-9.154-4.376 6.751 4.49-3.016 2.013-3.735-2.492zm-1.724 0v4.009l-3.735 2.494-3.014-2.013zm-7.439 6.098L5.853 12l-2.155 1.438zm7.439 8.974-6.749-4.491 3.015-2.011 3.735 2.492zM12 14.035 8.953 12 12 9.966 15.047 12zm.862 5.501v-4.009l3.735-2.492 3.016 2.011zm7.441-6.098L18.147 12l2.156-1.438z"})))},{name:"deezer",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.129 3.662c.222-1.287.548-2.096.909-2.098h.001c.673.002 1.219 2.809 1.219 6.274s-.546 6.274-1.22 6.274c-.276 0-.531-.477-.736-1.276-.324 2.926-.997 4.937-1.776 4.937-.603 0-1.144-1.208-1.507-3.114-.248 3.624-.872 6.195-1.602 6.195-.458 0-.875-1.019-1.184-2.678C13.861 21.6 13.003 24 12.002 24s-1.861-2.399-2.231-5.824c-.307 1.659-.724 2.678-1.184 2.678-.73 0-1.352-2.571-1.602-6.195-.363 1.905-.903 3.114-1.507 3.114-.778 0-1.452-2.011-1.776-4.937-.204.802-.46 1.276-.736 1.276-.674 0-1.22-2.809-1.22-6.274s.546-6.274 1.22-6.274c.362 0 .685.812.91 2.098.357-2.22.94-3.662 1.6-3.662.784 0 1.463 2.04 1.784 5.002.314-2.156.791-3.53 1.325-3.53.749 0 1.385 2.703 1.621 6.474.443-1.933 1.085-3.146 1.795-3.146s1.352 1.214 1.795 3.146c.237-3.771.872-6.474 1.621-6.474.533 0 1.009 1.374 1.325 3.53.321-2.962 1-5.002 1.784-5.002.658 0 1.244 1.443 1.603 3.662M0 7.221c0-1.549.31-2.805.692-2.805s.692 1.256.692 2.805-.31 2.805-.692 2.805S0 8.77 0 7.221m22.616 0c0-1.549.31-2.805.692-2.805S24 5.672 24 7.221s-.31 2.805-.692 2.805-.692-1.256-.692-2.805"})))},{name:"discord",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.33 4.523A20 20 0 0 0 15.379 3a14 14 0 0 0-.634 1.289 18.4 18.4 0 0 0-5.495 0A14 14 0 0 0 8.615 3 20 20 0 0 0 3.66 4.527C.527 9.163-.323 13.684.102 18.141a20 20 0 0 0 6.073 3.049 14.7 14.7 0 0 0 1.301-2.097 13 13 0 0 1-2.048-.978q.258-.189.502-.378a14.27 14.27 0 0 0 12.142 0q.247.202.502.378a13 13 0 0 1-2.052.98 14.5 14.5 0 0 0 1.301 2.095 19.9 19.9 0 0 0 6.076-3.047c.498-5.168-.851-9.648-3.568-13.62M8.013 15.4c-1.183 0-2.161-1.074-2.161-2.395S6.796 10.6 8.01 10.6s2.183 1.083 2.163 2.405S9.22 15.4 8.013 15.4m7.974 0c-1.186 0-2.16-1.074-2.16-2.395s.944-2.405 2.16-2.405 2.178 1.083 2.157 2.405-.951 2.395-2.158 2.395"})))},{name:"dribbble",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10m8.434-8.631c-.292-.092-2.644-.794-5.32-.365 1.117 3.07 1.572 5.57 1.659 6.09a8.56 8.56 0 0 0 3.661-5.725m-5.098 6.507c-.127-.749-.623-3.361-1.822-6.477l-.056.019c-4.818 1.679-6.547 5.02-6.701 5.334A8.5 8.5 0 0 0 12 20.555a8.5 8.5 0 0 0 3.336-.679m-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637q.167-.054.337-.102a29 29 0 0 0-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 0 0 2.19 5.973m-2.015-7.46c.382.005 3.901.02 7.897-1.041a55 55 0 0 0-3.167-4.94 8.57 8.57 0 0 0-4.73 5.981m6.359-6.555a46 46 0 0 1 3.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.51 8.51 0 0 0-7.664-1.915m8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27 27 0 0 1 .751 1.678c2.842-.357 5.666.215 5.948.275a8.5 8.5 0 0 0-1.929-5.32"})))},{name:"dropbox",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 6.134 6.069 9.797 2 6.54l5.883-3.843zm-10 6.92 5.883 3.843L12 13.459 6.069 9.797zm10 .405 4.116 3.439L22 13.054l-4.069-3.257zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663zm-9.989 7.66-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153z"})))},{name:"eventbrite",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18.041 3.931 5.959 3A2.96 2.96 0 0 0 3 5.959v12.083A2.96 2.96 0 0 0 5.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959M16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048q-.23 1.061-.451 2.128c.932-.004 1.873.005 2.81.005.726 0 1.462-.069 1.586.525.04.189-.001.426-.052.615-.105.38-.258.676-.625.783-.185.054-.408.058-.646.058-1.145 0-2.345.017-3.493.02-.169.772-.328 1.553-.489 2.333 1.57-.005 3.067-.041 4.633-.058.627-.007 1.085.194 1.009.85a2.2 2.2 0 0 1-.211.725c-.102.208-.248.376-.488.452-.237.075-.541.064-.862.078-.304.014-.614.008-.924.016-.309.009-.619.022-.919.022-1.253 0-2.429.08-3.683.073-.603-.004-1.014-.249-1.124-.757-.059-.273-.018-.58.036-.841a3543 3543 0 0 1 1.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 0 1 .79-.62c.368-.099.883-.047 1.344-.047.305 0 .612.008.914.016.925.026 1.817.03 2.747.053.304.007.615.016.915.016.621 0 1.17.073 1.245.614.039.288-.051.567-.132.783"})))},{name:"facebook",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10"})))},{name:"fediverse",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 743 743"},React.createElement("g",null,React.createElement("path",{d:"M181.131 275.137a68.9 68.9 0 0 1-29.465 29.328l161.758 162.389 38.998-19.764zm213.363 214.187-38.998 19.764 81.963 82.283a68.9 68.9 0 0 1 29.471-29.332zM581.646 339.391l-91.576 46.41 6.752 43.189 103.616-52.513a68.9 68.9 0 0 1-18.792-37.086m-144.738 73.351L220.383 522.477a68.9 68.9 0 0 1 18.795 37.089L443.66 455.934zM367.275 142.438l-104.48 203.97 30.848 30.967 110.623-215.957a68.9 68.9 0 0 1-36.991-18.98M235.621 399.459l-52.922 103.314a68.9 68.9 0 0 1 36.987 18.979l46.781-91.328zM150.768 304.918a68.9 68.9 0 0 1-34.416 7.195 69 69 0 0 1-6.651-.695l30.903 197.662a68.9 68.9 0 0 1 34.416-7.195 69 69 0 0 1 6.646.695zM239.342 560.545c.707 4.589.949 9.239.72 13.877a68.9 68.9 0 0 1-7.267 27.18l197.629 31.712c-.708-4.59-.95-9.24-.723-13.878a68.9 68.9 0 0 1 7.27-27.178zM601.133 377.199l-91.219 178.082a68.9 68.9 0 0 1 36.994 18.983l91.217-178.08a68.9 68.9 0 0 1-36.992-18.985M476.723 125.33a68.9 68.9 0 0 1-29.471 29.332l141.266 141.811a68.9 68.9 0 0 1 29.468-29.332zM347.787 104.631l-178.576 90.498a68.9 68.9 0 0 1 18.793 37.086l178.574-90.502a68.9 68.9 0 0 1-18.791-37.082M446.926 154.826a68.9 68.9 0 0 1-34.983 7.483 69 69 0 0 1-6.029-.633l15.818 101.291 43.163 6.926zm-16 167.028 37.4 239.482a68.9 68.9 0 0 1 33.914-6.943q3.625.206 7.207.791L474.09 328.777zM188.131 232.975c.734 4.66.988 9.383.758 14.095a68.9 68.9 0 0 1-7.16 26.983l101.369 16.281 19.923-38.908zm173.736 27.9-19.926 38.912 239.514 38.467a69 69 0 0 1-.695-13.719 68.9 68.9 0 0 1 7.349-27.324z"}),React.createElement("path",{fillOpacity:".996",d:"M412.284 156.054c34.538 1.882 64.061-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.882-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943M646.144 390.82c34.538 1.881 64.062-24.593 65.943-59.131s-24.592-64.061-59.13-65.943-64.062 24.593-65.943 59.131 24.592 64.061 59.13 65.943M495.086 685.719c34.538 1.881 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M167.866 633.211c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.13-65.943-64.062 24.592-65.943 59.13 24.592 64.062 59.13 65.943M116.692 305.86c34.538 1.882 64.062-24.592 65.943-59.13s-24.592-64.062-59.131-65.943c-34.538-1.881-64.061 24.592-65.943 59.13s24.593 64.062 59.131 65.943"})))},{name:"feed",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333M2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2m2.5 15a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5"})))},{name:"flickr",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5m11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5"})))},{name:"foursquare",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17.573 2H6.905C5.434 2 5 3.107 5 3.805v16.948c0 .785.422 1.077.66 1.172.238.097.892.177 1.285-.275 0 0 5.035-5.843 5.122-5.93.132-.132.132-.132.262-.132h3.26c1.368 0 1.588-.977 1.732-1.552.078-.318.692-3.428 1.225-6.122l.675-3.368C19.56 2.893 19.14 2 17.573 2m-1.078 5.22c-.053.252-.372.518-.665.518h-4.157c-.467 0-.802.318-.802.787v.508c0 .467.337.798.805.798h3.528c.331 0 .655.362.583.715s-.407 2.102-.448 2.295c-.04.193-.262.523-.655.523h-2.88c-.523 0-.683.068-1.033.503-.35.437-3.505 4.223-3.505 4.223-.032.035-.063.027-.063-.015V4.852c0-.298.26-.648.648-.648h8.562c.315 0 .61.297.528.683z"})))},{name:"ghost",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M10.203 20.997H3.005v-3.599h7.198zm10.792-3.599h-7.193v3.599h7.193zm.003-7.198H3v3.599h17.998zm-7.195-7.197H3.005v3.599h10.798zm7.197 0h-3.599v3.599H21z"})))},{name:"git",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M23.519 10.947 13.053.482a1.543 1.543 0 0 0-2.183 0L8.696 2.656l2.756 2.756a1.83 1.83 0 0 1 1.886.439 1.84 1.84 0 0 1 .436 1.898l2.656 2.657a1.83 1.83 0 0 1 1.899.436 1.837 1.837 0 0 1 0 2.597 1.84 1.84 0 0 1-2.599 0 1.84 1.84 0 0 1-.4-1.998l-2.478-2.477v6.521a1.837 1.837 0 0 1 .485 2.945 1.837 1.837 0 0 1-2.597 0 1.837 1.837 0 0 1 0-2.598 1.8 1.8 0 0 1 .602-.401V8.85a1.8 1.8 0 0 1-.602-.4 1.84 1.84 0 0 1-.395-2.009L7.628 3.723.452 10.898a1.544 1.544 0 0 0 0 2.184l10.467 10.467a1.544 1.544 0 0 0 2.183 0l10.417-10.418a1.546 1.546 0 0 0 0-2.184"})))},{name:"github",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.419 2.865 8.166 6.839 9.489.5.09.682-.218.682-.484 0-.236-.009-.866-.014-1.699-2.782.602-3.369-1.34-3.369-1.34-.455-1.157-1.11-1.465-1.11-1.465-.909-.62.069-.608.069-.608 1.004.071 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.647.349-1.086.635-1.337-2.22-.251-4.555-1.111-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.6 9.6 0 0 1 12 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.202 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.935.359.307.679.917.679 1.852 0 1.335-.012 2.415-.012 2.741 0 .269.18.579.688.481A10 10 0 0 0 22 12c0-5.523-4.477-10-10-10"})))},{name:"google-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.05 16c-3.312 0-6-2.688-6-6s2.688-6 6-6c1.62 0 2.976.594 4.014 1.566L14.26 9.222c-.432-.408-1.188-.888-2.31-.888-1.986 0-3.606 1.65-3.606 3.672s1.62 3.672 3.606 3.672c2.298 0 3.144-1.59 3.3-2.532h-3.306v-2.238h5.616c.084.378.15.732.15 1.23 0 3.426-2.298 5.862-5.76 5.862"})))},{name:"google-plus-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M8 11h6.61c.06.35.11.7.11 1.16 0 4-2.68 6.84-6.72 6.84-3.87 0-7-3.13-7-7s3.13-7 7-7c1.89 0 3.47.69 4.69 1.83l-1.9 1.83c-.52-.5-1.43-1.08-2.79-1.08-2.39 0-4.34 1.98-4.34 4.42S5.61 16.42 8 16.42c2.77 0 3.81-1.99 3.97-3.02H8zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})))},{name:"google-plus",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-1.919 14.05a4.051 4.051 0 0 1 0-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.23 2.23 0 0 0-1.559-.599c-1.341 0-2.434 1.114-2.434 2.479s1.094 2.479 2.434 2.479c1.551 0 2.122-1.073 2.227-1.709h-2.232v-1.511h3.791c.057.255.101.494.101.83.001 2.312-1.55 3.956-3.887 3.956M19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19z"})))},{name:"google",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05z"})))},{name:"instagram",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 4.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.671.31.42.163.72.358 1.035.673s.51.615.673 1.035c.123.317.27.794.31 1.671.043.949.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671-.163.42-.358.72-.673 1.035s-.615.51-1.035.673c-.317.123-.794.27-1.671.31-.949.043-1.233.052-3.637.052s-2.688-.009-3.637-.052c-.877-.04-1.354-.187-1.671-.31a2.8 2.8 0 0 1-1.035-.673 2.8 2.8 0 0 1-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.671.163-.42.358-.72.673-1.035s.615-.51 1.035-.673c.317-.123.794-.27 1.671-.31.949-.043 1.234-.052 3.637-.052M12 3c-2.444 0-2.751.01-3.711.054-.958.044-1.612.196-2.184.418a4.4 4.4 0 0 0-1.594 1.039c-.5.5-.808 1.002-1.038 1.594-.223.572-.375 1.226-.419 2.184C3.01 9.249 3 9.556 3 12s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.267.054 3.711.054s2.751-.01 3.711-.054c.958-.044 1.612-.196 2.185-.418a4.4 4.4 0 0 0 1.594-1.038c.5-.5.808-1.002 1.038-1.594.222-.572.375-1.227.418-2.185.044-.96.054-1.267.054-3.711s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.418-2.185A4.4 4.4 0 0 0 19.49 4.51c-.5-.5-1.002-.808-1.594-1.038-.572-.222-1.227-.375-2.185-.418C14.751 3.01 14.444 3 12 3m0 4.378a4.622 4.622 0 1 0 0 9.244 4.622 4.622 0 0 0 0-9.244M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m4.804-8.884a1.08 1.08 0 1 0 .001 2.161 1.08 1.08 0 0 0-.001-2.161"})))},{name:"json-feed",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m8.522 17.424.027.027c1.076-1.076 1.854-.993 3.154.306l2.053 2.053c2.136 2.136 4.131 2.028 6.515-.356l.729-.728-1.548-1.548-.373.373c-1.349 1.349-2.293 1.366-3.585.075l-2.409-2.409c-1.242-1.242-2.475-1.366-3.659-.381l-.232-.232c1.01-1.225.911-2.368-.29-3.568l-2.16-2.162c-1.317-1.317-1.308-2.236.058-3.602l.372-.372-1.54-1.54-.728.729c-2.393 2.393-2.525 4.346-.439 6.433l1.78 1.78c1.3 1.3 1.383 2.095.315 3.163l.008.008a1.384 1.384 0 0 0 1.952 1.951"}),React.createElement("circle",{cx:"13.089",cy:"10.905",r:"1.383"}),React.createElement("circle",{cx:"16.349",cy:"7.644",r:"1.383"}),React.createElement("circle",{cx:"19.61",cy:"4.383",r:"1.383"})))},{name:"line",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M14.255 9.572v3.333c0 .084-.066.15-.15.15h-.534a.16.16 0 0 1-.122-.061l-1.528-2.063v1.978c0 .084-.066.15-.15.15h-.534a.15.15 0 0 1-.15-.15V9.576c0-.084.066-.15.15-.15h.529a.14.14 0 0 1 .122.066l1.528 2.063V9.577c0-.084.066-.15.15-.15h.534a.15.15 0 0 1 .155.145m-3.844-.15h-.534a.15.15 0 0 0-.15.15v3.333c0 .084.066.15.15.15h.534c.084 0 .15-.066.15-.15V9.572c0-.08-.066-.15-.15-.15m-1.289 2.794H7.664V9.572a.15.15 0 0 0-.15-.15H6.98a.15.15 0 0 0-.15.15v3.333q0 .062.042.103a.16.16 0 0 0 .103.042h2.142c.084 0 .15-.066.15-.15v-.534a.15.15 0 0 0-.145-.15m7.945-2.794h-2.142c-.08 0-.15.066-.15.15v3.333c0 .08.066.15.15.15h2.142c.084 0 .15-.066.15-.15v-.534a.15.15 0 0 0-.15-.15h-1.458v-.563h1.458c.084 0 .15-.066.15-.15v-.539a.15.15 0 0 0-.15-.15h-1.458v-.563h1.458c.084 0 .15-.066.15-.15v-.534c-.005-.08-.07-.15-.15-.15M22.5 5.33v13.373c-.005 2.1-1.725 3.802-3.83 3.797H5.297c-2.1-.005-3.802-1.73-3.797-3.83V5.297c.005-2.1 1.73-3.802 3.83-3.797h13.373c2.1.005 3.802 1.725 3.797 3.83m-2.888 5.747c0-3.422-3.431-6.206-7.645-6.206s-7.645 2.784-7.645 6.206c0 3.066 2.719 5.634 6.394 6.122.895.192.792.52.591 1.725-.033.192-.155.755.661.413s4.402-2.592 6.009-4.439c1.106-1.219 1.636-2.452 1.636-3.82"})))},{name:"link",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17 13H7v-2h10zm1-6h-1c-1.631 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1a4 4 0 0 0 4-4v-2a4 4 0 0 0-4-4M2 11v2a4 4 0 0 0 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.631 7 7 7H6a4 4 0 0 0-4 4"})))},{name:"linkedin",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.7 3H4.3A1.3 1.3 0 0 0 3 4.3v15.4A1.3 1.3 0 0 0 4.3 21h15.4a1.3 1.3 0 0 0 1.3-1.3V4.3A1.3 1.3 0 0 0 19.7 3M8.339 18.338H5.667v-8.59h2.672zM7.004 8.574a1.548 1.548 0 1 1-.002-3.096 1.548 1.548 0 0 1 .002 3.096m11.335 9.764H15.67v-4.177c0-.996-.017-2.278-1.387-2.278-1.389 0-1.601 1.086-1.601 2.206v4.249h-2.667v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.779 3.203 4.092v4.711z"})))},{name:"mail",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 4.236-8 4.882-8-4.882V6h16z"})))},{name:"mastodon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M11.973 2.352c-2.468.02-4.842.286-6.225.921 0 0-2.742 1.229-2.742 5.415 0 .958-.018 2.105.012 3.32.1 4.094.75 8.128 4.535 9.129 1.745.462 3.244.56 4.45.494 2.19-.122 3.417-.781 3.417-.781l-.072-1.588s-1.565.491-3.32.431c-1.74-.06-3.576-.188-3.858-2.324a4 4 0 0 1-.04-.598s1.709.416 3.874.516c1.324.06 2.563-.076 3.824-.226 2.418-.29 4.524-1.78 4.79-3.141.416-2.144.38-5.232.38-5.232 0-4.186-2.74-5.415-2.74-5.415-1.383-.635-3.76-.9-6.227-.921zM9.18 5.622c1.028 0 1.804.395 2.318 1.185l.502.84.5-.84c.514-.79 1.292-1.186 2.32-1.186.888 0 1.605.313 2.15.922q.795.915.794 2.469v5.068h-2.008V9.16c0-1.037-.438-1.562-1.31-1.562-.966 0-1.448.622-1.448 1.857v2.693h-1.996V9.455c0-1.235-.484-1.857-1.45-1.857-.872 0-1.308.525-1.308 1.562v4.92H6.236V9.012q-.001-1.554.793-2.469c.547-.609 1.263-.922 2.15-.922"})))},{name:"medium-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{fillRule:"nonzero",d:"M7.423 6c3.27 0 5.922 2.686 5.922 6s-2.651 6-5.922 6S1.5 15.313 1.5 12s2.652-6 5.923-6m9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648S13.92 15.119 13.92 12s1.325-5.649 2.96-5.649m4.577.589c.576 0 1.042 2.265 1.042 5.06s-.466 5.06-1.042 5.06c-.575 0-1.04-2.265-1.04-5.06s.465-5.06 1.04-5.06"})))},{name:"medium",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M3 3v18h18V3zm15 4.26-1 .93a.28.28 0 0 0-.11.27v6.8a.27.27 0 0 0 .11.27l.94.93v.2h-4.75v-.2l1-1c.09-.1.09-.12.09-.27V9.74l-2.71 6.9h-.37L8 9.74v4.62a.67.67 0 0 0 .17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 0 0 .17-.54V9a.5.5 0 0 0-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18z"})))},{name:"messenger",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.026.375C5.462.375.375 5.172.375 11.652c0 3.389 1.393 6.318 3.66 8.341.391.352.311.556.377 2.73a.934.934 0 0 0 1.307.823c2.48-1.092 2.512-1.178 2.933-1.064 7.185 1.977 14.973-2.621 14.973-10.83 0-6.48-5.035-11.277-11.599-11.277m6.996 8.678L15.6 14.47a1.75 1.75 0 0 1-2.527.465l-2.723-2.038a.7.7 0 0 0-.844 0l-3.674 2.786c-.49.372-1.133-.216-.802-.735l3.422-5.417a1.75 1.75 0 0 1 2.527-.465l2.722 2.037a.7.7 0 0 0 .844 0L18.22 8.32c.489-.374 1.132.213.801.732"})))},{name:"microblog",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.641 17.086c1.294-1.522 2.067-3.438 2.067-5.521 0-4.957-4.371-8.972-9.763-8.972s-9.763 4.015-9.763 8.972 4.371 8.972 9.763 8.972a10.5 10.5 0 0 0 3.486-.59.315.315 0 0 1 .356.112c.816 1.101 2.09 1.876 3.506 2.191a.194.194 0 0 0 .192-.309 3.82 3.82 0 0 1 .162-4.858zm-3.065-6.575-2.514 1.909.912 3.022a.286.286 0 0 1-.437.317l-2.592-1.802-2.592 1.802a.285.285 0 0 1-.436-.317l.912-3.022-2.515-1.909a.285.285 0 0 1 .167-.513l3.155-.066 1.038-2.981a.285.285 0 0 1 .539 0l1.038 2.981 3.155.066a.285.285 0 0 1 .17.513"})))},{name:"nextdoor",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeMiterlimit:"10",viewBox:"0 0 130 130"},React.createElement("g",null,React.createElement("path",{d:"M64.25 3.531c-31.144.337-57.596 24.22-60.469 55.907-3.064 33.799 21.857 63.685 55.657 66.75s63.685-21.857 66.75-55.657-21.857-63.686-55.657-66.75a62 62 0 0 0-6.281-.25m3.938 34.907C82.468 38.438 93.5 48.58 93.5 61.5v27c0 .685-.565 1.25-1.25 1.25H80.906a1.267 1.267 0 0 1-1.25-1.25V63.375c0-5.58-4.309-11.937-11.469-11.937-7.47 0-11.468 6.357-11.468 11.937V88.5c0 .685-.565 1.25-1.25 1.25H44.125c-.68 0-1.219-.57-1.219-1.25V64.156c0-.74-.529-1.364-1.25-1.531-13.13-2.93-15.115-10.285-15.375-21.125-.005-.332.142-.67.375-.906.233-.237.543-.375.875-.375l11.688.062c.66.01 1.187.529 1.218 1.188.13 4.44.438 9.406 4.438 9.406.83 0 1.443-1.179 1.813-1.719 4.41-6.48 12.28-10.718 21.5-10.718"})))},{name:"patreon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20 7.408c-.003-2.299-1.746-4.182-3.79-4.862-2.54-.844-5.888-.722-8.312.453-2.939 1.425-3.862 4.545-3.896 7.656-.028 2.559.22 9.297 3.92 9.345 2.75.036 3.159-3.603 4.43-5.356.906-1.247 2.071-1.599 3.506-1.963 2.465-.627 4.146-2.626 4.142-5.273"})))},{name:"pinterest-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.289 2C6.617 2 3.606 5.648 3.606 9.622c0 1.846 1.025 4.146 2.666 4.878.25.111.381.063.439-.169.044-.175.267-1.029.365-1.428a.37.37 0 0 0-.091-.362c-.54-.63-.975-1.791-.975-2.873 0-2.777 2.194-5.464 5.933-5.464 3.23 0 5.49 2.108 5.49 5.122 0 3.407-1.794 5.768-4.13 5.768-1.291 0-2.257-1.021-1.948-2.277.372-1.495 1.089-3.112 1.089-4.191 0-.967-.542-1.775-1.663-1.775-1.319 0-2.379 1.309-2.379 3.059 0 1.115.394 1.869.394 1.869s-1.302 5.279-1.54 6.261c-.405 1.666.053 4.368.094 4.604.021.126.167.169.25.063.129-.165 1.699-2.419 2.142-4.051.158-.59.817-2.995.817-2.995.43.784 1.681 1.446 3.013 1.446 3.963 0 6.822-3.494 6.822-7.833C20.394 5.112 16.849 2 12.289 2"})))},{name:"pinterest",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.236 2.636 7.855 6.356 9.312-.087-.791-.166-2.005.035-2.869.182-.78 1.173-4.971 1.173-4.971s-.299-.599-.299-1.484c0-1.39.806-2.429 1.809-2.429.853 0 1.265.641 1.265 1.409 0 .858-.546 2.141-.828 3.329-.236.996.499 1.807 1.481 1.807 1.777 0 3.144-1.874 3.144-4.579 0-2.394-1.72-4.068-4.177-4.068-2.845 0-4.515 2.134-4.515 4.34 0 .859.331 1.781.744 2.282a.3.3 0 0 1 .069.287c-.077.316-.246.995-.279 1.134-.044.183-.145.222-.334.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.051 6.607-6.051 3.469 0 6.165 2.472 6.165 5.775 0 3.446-2.173 6.22-5.189 6.22-1.013 0-1.966-.526-2.292-1.148l-.623 2.377c-.226.869-.835 1.957-1.243 2.622.936.289 1.93.445 2.961.445 5.523 0 10-4.477 10-10S17.523 2 12 2"})))},{name:"pocket",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.927 4.194A1.82 1.82 0 0 0 20.222 3H3.839a1.823 1.823 0 0 0-1.813 1.814v6.035l.069 1.2c.29 2.73 1.707 5.115 3.899 6.778l.119.089.025.018a9.9 9.9 0 0 0 3.91 1.727 10.06 10.06 0 0 0 4.049-.014.3.3 0 0 0 .064-.023 9.9 9.9 0 0 0 3.753-1.691l.025-.018q.06-.043.119-.089c2.192-1.664 3.609-4.049 3.898-6.778l.069-1.2V4.814a1.8 1.8 0 0 0-.098-.62m-4.235 6.287-4.704 4.512a1.37 1.37 0 0 1-1.898 0l-4.705-4.512a1.371 1.371 0 1 1 1.898-1.979l3.756 3.601 3.755-3.601a1.372 1.372 0 0 1 1.898 1.979"})))},{name:"polldaddy",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.487 2 2 6.487 2 12c0 5.514 4.487 10 10 10 5.514 0 10-4.486 10-10 0-5.513-4.486-10-10-10m.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.78 7.78 0 0 0-6.094-2.94 7.76 7.76 0 0 0-5.896 2.703q-.008.006-.016.014l-.152.159-.031.032a6.12 6.12 0 0 0-1.633 4.165 6.15 6.15 0 0 0 6.143 6.143c.57 0 1.123-.081 1.649-.227-1.849.839-4.131.747-5.926-.324-1.841-1.089-3.171-3.111-3.433-5.313A7.39 7.39 0 0 1 6.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68m3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.67 3.67 0 0 0 .2 2.653c.39.8 1.067 1.451 1.894 1.759 1.664.654 3.63-.27 4.173-1.863.593-1.58-.396-3.423-1.94-3.776-1.52-.407-3.161.757-3.204 2.243a2.36 2.36 0 0 0 .753 1.879c.501.476 1.23.667 1.871.529a2.07 2.07 0 0 0 1.469-1.134 1.91 1.91 0 0 0-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.7 1.7 0 0 0-1.437.679 1.53 1.53 0 0 0-.18 1.489q.006.016.016.03c.193.634.774 1.1 1.467 1.117a1.6 1.6 0 0 1-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 0 1 .499-1.539 2.02 2.02 0 0 1 1.58-.606c.593.04 1.159.35 1.517.859.364.496.51 1.156.383 1.773-.116.62-.529 1.174-1.093 1.514a2.52 2.52 0 0 1-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.83 2.83 0 0 1-.341-2.031c.143-.7.573-1.321 1.176-1.753 1.193-.883 3.056-.751 4.106.411 1.106 1.1 1.327 3.027.406 4.371-.877 1.376-2.74 2.086-4.374 1.594-1.639-.449-2.913-2.079-3.031-3.853-.07-.884.13-1.797.583-2.577.445-.777 1.155-1.432 1.972-1.862 1.64-.88 3.816-.743 5.349.424 1.251.924 2.083 2.42 2.236 4.009l.001.03c0 2.9-2.359 5.26-5.26 5.26a5.2 5.2 0 0 1-1.947-.376 5 5 0 0 0 2.613-.079 4.96 4.96 0 0 0 2.514-1.751c.618-.828.95-1.861.901-2.869M12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a7 7 0 0 0-.397.06c-2.644.453-5.017 2.106-6.32 4.409-1.309 2.301-1.391 5.19-.3 7.527 1.056 2.34 3.253 4.156 5.776 4.553 2.497.44 5.133-.483 6.787-2.301 1.719-1.797 2.269-4.529 1.486-6.796-.583-1.81-1.976-3.331-3.7-4.046 3.417.594 6.174 3.221 6.174 6.781 0 1.004-.241 2.02-.657 2.966-1.498 2.984-4.586 5.041-8.149 5.041"})))},{name:"print",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M9 16h6v2H9zm13 1h-3v3a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2V9a2 2 0 0 1 2-2h1V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2h1a2 2 0 0 1 2 2zM7 7h10V5H7zm10 7H7v6h10zm3-3.5a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 20 10.5"})))},{name:"quora",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M47.736 16.521c-.41-.81-.898-1.631-1.846-1.631a1 1 0 0 0-.527.107l-.322-.644a2.93 2.93 0 0 1 1.836-.595c1.26 0 1.914.605 2.431 1.397a6.8 6.8 0 0 0 .449-2.675c0-2.773-.869-4.199-2.929-4.199-1.992 0-2.851 1.465-2.851 4.199s.859 4.17 2.851 4.17a4 4 0 0 0 .869-.107zm.498.966a6 6 0 0 1-1.367.185 5.27 5.27 0 0 1-5.263-5.204c0-3.114 2.558-5.233 5.263-5.233s5.282 2.109 5.282 5.233a5.08 5.08 0 0 1-1.992 4.072c.381.566.781.956 1.319.956.595 0 .839-.459.878-.82h.781c.049.488-.195 2.48-2.373 2.48-1.319 0-2.012-.761-2.529-1.66zm5.624-2.646v-3.563c0-.371-.146-.586-.615-.586h-.498v-.956h3.251v5.048c0 .849.459 1.231 1.161 1.231a1.56 1.56 0 0 0 1.465-.839V11.28c0-.371-.146-.586-.615-.586h-.527v-.957h3.28v5.302c0 .527.195.732.8.732h.107v.976l-2.929.468V16.21h-.057a3.12 3.12 0 0 1-2.509 1.152c-1.28 0-2.304-.644-2.304-2.558zm12.059 1.611c1.152 0 1.592-1.005 1.611-3.027.02-1.982-.459-2.929-1.611-2.929-1.005 0-1.641.956-1.641 2.929 0 2.021.625 3.027 1.641 3.027m0 .956a3.906 3.906 0 0 1-3.974-3.974c0-2.334 1.836-3.886 3.974-3.886 2.226 0 4.004 1.582 4.004 3.886a3.867 3.867 0 0 1-4.004 3.974m4.072-.146v-.956h.312c.781 0 .859-.224.859-.908v-4.121c0-.371-.215-.586-.732-.586h-.42v-.955h2.968l.146 1.553h.108c.371-1.113 1.221-1.699 2.051-1.699.693 0 1.221.39 1.221 1.181 0 .547-.264 1.093-1.005 1.093-.664 0-.8-.449-1.358-.449-.488 0-.869.468-.869 1.152v2.783c0 .673.166.908.937.908h.439v.956h-4.658zm9.901-1.093c.956 0 1.338-.898 1.338-1.797v-1.211c-.732.722-2.304.742-2.304 2.021 0 .625.371.986.966.986m1.387 0c-.39.752-1.191 1.26-2.314 1.26-1.309 0-2.148-.732-2.148-1.914 0-2.451 3.417-1.797 4.423-3.427v-.185c0-1.25-.488-1.445-1.035-1.445-1.524 0-.83 1.631-2.226 1.631-.673 0-.937-.371-.937-.859 0-.927 1.093-1.67 3.173-1.67 1.963 0 3.163.537 3.163 2.49v3.114q-.02.742.595.742a1 1 0 0 0 .449-.127l.254.615c-.205.312-.752.869-1.836.869-.908 0-1.465-.42-1.543-1.113h-.01zm-68.554 2.558c-.83-1.641-1.807-3.3-3.711-3.3a2.9 2.9 0 0 0-1.093.215l-.644-1.299a5.66 5.66 0 0 1 3.662-1.211c2.548 0 3.857 1.231 4.892 2.792q.917-2.012.908-5.38c0-5.585-1.748-8.417-5.829-8.417-4.033 0-5.76 2.87-5.76 8.417s1.738 8.397 5.76 8.397a5.9 5.9 0 0 0 1.748-.224zm.996 1.953a9.8 9.8 0 0 1-2.744.371C5.614 21.041.371 16.764.371 10.545.371 4.277 5.614 0 10.965 0c5.448 0 10.642 4.248 10.642 10.545a10.25 10.25 0 0 1-4.013 8.201c.732 1.152 1.563 1.914 2.665 1.914 1.201 0 1.689-.927 1.768-1.66h1.572c.088.966-.4 4.999-4.775 4.999-2.646 0-4.052-1.543-5.106-3.339z"})))},{name:"reddit",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22 11.816a2.28 2.28 0 0 0-2.277-2.277c-.593 0-1.122.24-1.526.614-1.481-.965-3.455-1.594-5.647-1.69l1.171-3.702 3.18.748a1.88 1.88 0 0 0 1.876 1.862 1.88 1.88 0 0 0 1.877-1.878 1.88 1.88 0 0 0-1.877-1.877c-.769 0-1.431.466-1.72 1.13l-3.508-.826a.386.386 0 0 0-.46.261l-1.35 4.268c-2.316.038-4.411.67-5.97 1.671a2.24 2.24 0 0 0-1.492-.581A2.28 2.28 0 0 0 2 11.816c0 .814.433 1.523 1.078 1.925a4 4 0 0 0-.061.672c0 3.292 4.011 5.97 8.941 5.97s8.941-2.678 8.941-5.97q-.002-.32-.053-.632A2.26 2.26 0 0 0 22 11.816m-3.224-7.422a1.1 1.1 0 1 1-.001 2.199 1.1 1.1 0 0 1 .001-2.199M2.777 11.816c0-.827.672-1.5 1.499-1.5.313 0 .598.103.838.269-.851.676-1.477 1.479-1.812 2.36a1.48 1.48 0 0 1-.525-1.129m9.182 7.79c-4.501 0-8.164-2.329-8.164-5.193S7.457 9.22 11.959 9.22s8.164 2.329 8.164 5.193-3.663 5.193-8.164 5.193m8.677-6.605c-.326-.89-.948-1.701-1.797-2.384.248-.186.55-.301.883-.301.827 0 1.5.673 1.5 1.5.001.483-.23.911-.586 1.185m-11.64 1.703c-.76 0-1.397-.616-1.397-1.376s.637-1.397 1.397-1.397 1.376.637 1.376 1.397-.616 1.376-1.376 1.376m7.405-1.376c0 .76-.616 1.376-1.376 1.376s-1.399-.616-1.399-1.376.639-1.397 1.399-1.397 1.376.637 1.376 1.397m-1.172 3.38a.39.39 0 0 1 0 .55c-.674.674-1.727 1.002-3.219 1.002l-.011-.002-.011.002c-1.492 0-2.544-.328-3.218-1.002a.389.389 0 1 1 .55-.55c.521.521 1.394.775 2.669.775l.011.002.011-.002c1.275 0 2.148-.253 2.669-.775a.387.387 0 0 1 .549 0"})))},{name:"share",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18 16c-.788 0-1.499.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118A3 3 0 0 0 15 19a3 3 0 1 0 3-3"})))},{name:"skype",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m10.113 2.699.1-.02q.05.025.098.051zM2.72 10.223l-.017.103q.025.048.051.095zm18.555 3.548q.009-.053.018-.106-.025-.047-.052-.095zm-7.712 7.428q.049.027.096.053l.105-.017zM22 16.386a5.55 5.55 0 0 1-1.637 3.953 5.55 5.55 0 0 1-3.953 1.637 5.6 5.6 0 0 1-2.75-.725l.105-.017-.202-.035q.049.027.096.053a9.5 9.5 0 0 1-1.654.147 9.4 9.4 0 0 1-3.676-.743 9.4 9.4 0 0 1-3.002-2.023 9.4 9.4 0 0 1-2.023-3.002 9.4 9.4 0 0 1-.743-3.676c0-.546.049-1.093.142-1.628q.025.048.051.095l-.034-.199-.017.103A5.6 5.6 0 0 1 2 7.615c0-1.493.582-2.898 1.637-3.953A5.56 5.56 0 0 1 7.59 2.024c.915 0 1.818.228 2.622.655l-.1.02.199.031q-.049-.026-.098-.051l.004-.001a9.5 9.5 0 0 1 1.788-.169 9.41 9.41 0 0 1 6.678 2.766 9.4 9.4 0 0 1 2.024 3.002 9.4 9.4 0 0 1 .743 3.676c0 .575-.054 1.15-.157 1.712q-.025-.047-.052-.095l.034.201q.009-.053.018-.106c.461.829.707 1.767.707 2.721m-5.183-2.248c0-1.331-.613-2.743-3.033-3.282l-2.209-.49c-.84-.192-1.807-.444-1.807-1.237s.679-1.348 1.903-1.348c2.468 0 2.243 1.696 3.468 1.696.645 0 1.209-.379 1.209-1.031 0-1.521-2.435-2.663-4.5-2.663-2.242 0-4.63.952-4.63 3.488 0 1.221.436 2.521 2.839 3.123l2.984.745c.903.223 1.129.731 1.129 1.189 0 .762-.758 1.507-2.129 1.507-2.679 0-2.307-2.062-3.743-2.062-.645 0-1.113.444-1.113 1.078 0 1.236 1.501 2.886 4.856 2.886 3.195 0 4.776-1.538 4.776-3.599"})))},{name:"sms",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M17.696 4C20.069 4 22 5.973 22 8.398v4.357c0 2.04-1.368 3.783-3.261 4.266v4.427l-5.234-4.295h-7.2C3.93 17.153 2 15.18 2 12.755V8.398C2 5.973 3.931 4 6.304 4zM7.028 8.515c-.98 0-1.66.562-1.66 1.349-.009.497.322.91.985 1.178l.39.142c.242.097.305.171.305.297 0 .162-.131.251-.442.251s-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.315-.224-.741-.316-1.171-.316m10.302 0c-.98 0-1.66.562-1.66 1.349-.008.497.322.91.985 1.178l.39.142c.243.097.305.171.305.297 0 .162-.13.251-.442.251-.311 0-.76-.135-1.004-.284l-.112.046-.215.868c.359.258.832.364 1.33.364 1.104 0 1.764-.523 1.764-1.333-.008-.574-.305-.956-.954-1.216l-.393-.146c-.266-.108-.341-.181-.341-.287 0-.152.131-.243.387-.243.274 0 .587.093.808.214l.109-.047.214-.837c-.316-.224-.741-.316-1.171-.316m-3.733 0c-.297 0-.55.066-.78.202l-.144.098a2 2 0 0 0-.264.247l-.078.095-.027-.077c-.15-.34-.55-.565-1.033-.565l-.169.007a1.36 1.36 0 0 0-.896.42l-.08.09-.038-.363-.075-.067H8.994l-.075.079.024.634c.005.2.008.397.008.604v2.652l.075.075h1.178l.075-.075v-2.269q-.002-.168.042-.274c.083-.23.262-.392.496-.392.314 0 .483.267.483.753v2.182l.075.075h1.179l.075-.075v-2.277c0-.097.016-.213.043-.285.077-.224.26-.373.486-.373.33 0 .5.272.5.817v2.118l.074.075h1.179l.075-.075v-2.293c0-1.131-.537-1.763-1.39-1.763Z"})))},{name:"snapchat",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M11.989 1.728c3.221.001 5.904 2.683 5.908 5.912q.002 1.133.067 2.094a.737.737 0 0 0 .902.669l1.009-.237a.6.6 0 0 1 .129-.015c.256 0 .492.175.55.434a.74.74 0 0 1-.479.861l-1.532.618a.823.823 0 0 0-.485.98c1.229 4.543 4.661 4.071 4.661 4.662 0 .743-2.587.848-2.821 1.082s-.01 1.368-.532 1.588a1.1 1.1 0 0 1-.409.056c-.393 0-.95-.077-1.536-.077-.509 0-1.04.058-1.507.273-1.239.572-2.433 1.641-3.914 1.641S9.325 21.2 8.086 20.628c-.467-.216-.998-.273-1.507-.273-.586 0-1.143.077-1.536.077-.17 0-.31-.014-.409-.056-.522-.22-.299-1.354-.532-1.588s-2.821-.337-2.821-1.08c0-.592 3.432-.119 4.661-4.662a.824.824 0 0 0-.486-.98l-1.532-.618a.74.74 0 0 1-.479-.861.56.56 0 0 1 .679-.419l1.009.237q.086.02.169.02a.737.737 0 0 0 .733-.689q.065-.961.067-2.094c.004-3.229 2.666-5.91 5.887-5.912m0-1.281c-.961 0-1.898.194-2.784.574A7.2 7.2 0 0 0 6.93 2.572a7.2 7.2 0 0 0-1.539 2.282A7.1 7.1 0 0 0 4.82 7.64a33 33 0 0 1-.029 1.369l-.375-.088a2 2 0 0 0-.421-.049 1.86 1.86 0 0 0-1.135.389 1.84 1.84 0 0 0-.666 1.049 2.024 2.024 0 0 0 1.271 2.335l1.124.454c-.744 2.285-2.117 2.723-3.041 3.018a5 5 0 0 0-.659.246C.087 16.76 0 17.436 0 17.708c0 .521.247.996.694 1.339.223.17.499.311.844.43.47.162 1.016.265 1.459.347.021.164.053.341.106.518.22.738.684 1.069 1.034 1.217.332.14.676.156.905.156.224 0 .462-.018.713-.036.269-.02.548-.041.823-.041.426 0 .743.051.97.155.311.144.64.337.989.542.972.571 2.073 1.217 3.462 1.217s2.49-.647 3.462-1.217c.349-.205.679-.399.989-.542.226-.105.544-.155.97-.155.275 0 .554.021.823.041.251.019.488.036.713.036.229 0 .573-.016.905-.156.35-.147.814-.478 1.034-1.217.053-.178.084-.354.106-.518.443-.082.989-.185 1.459-.347.345-.119.621-.259.844-.43.448-.342.694-.818.694-1.339 0-.272-.087-.948-.891-1.347a5 5 0 0 0-.659-.246c-.924-.295-2.297-.733-3.041-3.018l1.124-.454a2.025 2.025 0 0 0 1.271-2.335 1.83 1.83 0 0 0-.666-1.049 1.86 1.86 0 0 0-1.556-.34l-.375.088a33 33 0 0 1-.029-1.369 7.1 7.1 0 0 0-.575-2.789c-.365-.853-.886-1.62-1.547-2.282s-1.428-1.182-2.28-1.547a7.1 7.1 0 0 0-2.786-.574"})))},{name:"soundcloud",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M23.587 13.923a3.303 3.303 0 0 1-3.344 3.117h-8.037a.674.674 0 0 1-.667-.67V7.717a.74.74 0 0 1 .444-.705s.739-.512 2.296-.512a5.27 5.27 0 0 1 2.702.742 5.35 5.35 0 0 1 2.516 3.485 3.1 3.1 0 0 1 .852-.116 3.217 3.217 0 0 1 3.237 3.312m-13.05-5.659c.242 2.935.419 5.612 0 8.538a.261.261 0 0 1-.519 0c-.39-2.901-.221-5.628 0-8.538a.26.26 0 0 1 .398-.25.26.26 0 0 1 .12.25zm-1.627 8.541a.273.273 0 0 1-.541 0 32.7 32.7 0 0 1 0-7.533.274.274 0 0 1 .544 0 29.4 29.4 0 0 1-.003 7.533m-1.63-7.788c.264 2.69.384 5.099-.003 7.782a.262.262 0 0 1-.522 0c-.374-2.649-.249-5.127 0-7.782a.264.264 0 0 1 .525 0m-1.631 7.792a.268.268 0 0 1-.532 0 27.6 27.6 0 0 1 0-7.034.27.27 0 1 1 .541 0 25.8 25.8 0 0 1-.01 7.034zm-1.63-5.276c.412 1.824.227 3.435-.015 5.294a.255.255 0 0 1-.504 0c-.22-1.834-.402-3.482-.015-5.295a.268.268 0 0 1 .535 0m-1.626-.277c.378 1.869.254 3.451-.01 5.325-.031.277-.506.28-.531 0-.239-1.846-.352-3.476-.01-5.325a.277.277 0 0 1 .551 0m-1.643.907c.396 1.239.261 2.246-.016 3.517a.258.258 0 0 1-.514 0c-.239-1.246-.336-2.274-.021-3.517a.276.276 0 0 1 .55 0z"})))},{name:"spotify",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424a.62.62 0 0 1-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 1 1-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 0 1 .206.857M17.81 13.7a.78.78 0 0 1-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 1 1 6.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 0 1 .256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 1 1-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 1 1-.955 1.608"})))},{name:"squarespace",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M20.87 9.271a3.86 3.86 0 0 0-5.458 0l-6.141 6.141a.964.964 0 1 0 1.365 1.364l6.14-6.14a1.929 1.929 0 1 1 2.729 2.729l-6.022 6.022a1.93 1.93 0 0 0 2.729 0l4.658-4.658a3.86 3.86 0 0 0 0-5.458m-2.047 2.047a.965.965 0 0 0-1.365 0l-6.14 6.14a1.93 1.93 0 0 1-2.729 0 .964.964 0 1 0-1.364 1.364 3.86 3.86 0 0 0 5.458 0l6.14-6.14a.966.966 0 0 0 0-1.364m-2.047-6.141a3.86 3.86 0 0 0-5.458 0l-6.14 6.14a.964.964 0 1 0 1.364 1.364l6.141-6.14a1.93 1.93 0 0 1 2.729 0 .965.965 0 1 0 1.364-1.364m-2.047 2.047a.964.964 0 0 0-1.364 0l-6.14 6.141a1.929 1.929 0 1 1-2.729-2.729l6.022-6.022a1.93 1.93 0 0 0-2.729 0L3.13 9.271a3.86 3.86 0 0 0 5.458 5.458l6.14-6.141a.963.963 0 0 0 .001-1.364"})))},{name:"stackexchange",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M4 11.606h16v3.272H4zM4 7.377h16v3.272H4zM17.514 3H6.55C5.147 3 4 4.169 4 5.614v.848h16v-.85C20 4.167 18.895 3 17.514 3M4 15.813v.85c0 1.445 1.147 2.614 2.55 2.614h6.799v3.463l3.357-3.463h.744c1.402 0 2.55-1.169 2.55-2.614v-.85z"})))},{name:"stackoverflow",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M18.18 20.103V14.78h1.767v7.09H4v-7.09h1.767v5.323z"}),React.createElement("path",{d:"m7.717 14.275 8.673 1.813.367-1.744-8.673-1.813zm1.147-4.13 8.031 3.74.734-1.606-8.031-3.763zm2.226-3.946 6.815 5.667 1.124-1.354-6.815-5.667zM15.495 2l-1.423 1.055 5.277 7.113 1.423-1.055zM7.533 18.314h8.857v-1.767H7.533z"})))},{name:"stumbleupon",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 4.294a4.47 4.47 0 0 0-4.471 4.471v6.353a1.059 1.059 0 1 1-2.118 0v-2.824H2v2.941a4.471 4.471 0 0 0 8.942 0v-6.47a1.059 1.059 0 1 1 2.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0 0 12 4.294m1.059 8.059v2.882a4.471 4.471 0 0 0 8.941 0v-2.824h-3.412v2.824a1.059 1.059 0 1 1-2.118 0v-2.882l-2 .647z"})))},{name:"substack",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19.904 9.182H4.095V7.054h15.81v2.127M4.095 11.109V21L12 16.583 19.905 21v-9.891zM19.905 3H4.095v2.127h15.81z"})))},{name:"telegram",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m3.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486s-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238z"})))},{name:"threads",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 192"},React.createElement("g",null,React.createElement("path",{d:"M141.537 88.988a67 67 0 0 0-2.518-1.143c-1.482-27.307-16.403-42.94-41.457-43.1h-.34c-14.986 0-27.449 6.396-35.12 18.036l13.779 9.452c5.73-8.695 14.724-10.548 21.348-10.548h.229c8.249.053 14.474 2.452 18.503 7.129 2.932 3.405 4.893 8.111 5.864 14.05-7.314-1.243-15.224-1.626-23.68-1.14-23.82 1.371-39.134 15.264-38.105 34.568.522 9.792 5.4 18.216 13.735 23.719 7.047 4.652 16.124 6.927 25.557 6.412 12.458-.683 22.231-5.436 29.049-14.127 5.178-6.6 8.453-15.153 9.899-25.93 5.937 3.583 10.337 8.298 12.767 13.966 4.132 9.635 4.373 25.468-8.546 38.376-11.319 11.308-24.925 16.2-45.488 16.351-22.809-.169-40.06-7.484-51.275-21.742C35.236 139.966 29.808 120.682 29.605 96c.203-24.682 5.63-43.966 16.133-57.317C56.954 24.425 74.204 17.11 97.013 16.94c22.975.17 40.526 7.52 52.171 21.847 5.71 7.026 10.015 15.86 12.853 26.162l16.147-4.308c-3.44-12.68-8.853-23.606-16.219-32.668C147.036 9.607 125.202.195 97.07 0h-.113C68.882.194 47.292 9.642 32.788 28.08 19.882 44.485 13.224 67.315 13.001 95.932L13 96v.067c.224 28.617 6.882 51.447 19.788 67.854C47.292 182.358 68.882 191.806 96.957 192h.113c24.96-.173 42.554-6.708 57.048-21.189 18.963-18.945 18.392-42.692 12.142-57.27-4.484-10.454-13.033-18.945-24.723-24.553M98.44 129.507c-10.44.588-21.286-4.098-21.82-14.135-.397-7.442 5.296-15.746 22.461-16.735q2.948-.17 5.79-.169c6.235 0 12.068.606 17.371 1.765-1.978 24.702-13.58 28.713-23.802 29.274"})))},{name:"tiktok-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm7.531 3h2.053s-.114 2.635 2.85 2.82v2.04s-1.582.099-2.85-.87l.021 4.207a3.804 3.804 0 1 1-3.802-3.802h.533v2.082a1.73 1.73 0 0 0-1.922.648 1.727 1.727 0 0 0 1.947 2.646 1.73 1.73 0 0 0 1.19-1.642z"})))},{name:"tiktok",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.012a6.338 6.338 0 1 1-6.34-6.339h.89v3.472a2.882 2.882 0 1 0 2.024 2.752z"})))},{name:"tripadvisor",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.01 9.859c.236-1.002.985-2.003.985-2.003l-3.341-.002C16.779 6.643 14.502 6 11.979 6 9.363 6 7 6.659 5.135 7.877L2 7.88s.74.988.98 1.983a4.98 4.98 0 0 0-.977 2.961 5.01 5.01 0 0 0 5.009 5.003 5 5 0 0 0 3.904-1.875l1.065 1.592 1.076-1.606a4.96 4.96 0 0 0 1.838 1.448 4.98 4.98 0 0 0 3.831.151 5.01 5.01 0 0 0 2.963-6.431 5 5 0 0 0-.679-1.247m-13.998 6.96a4 4 0 0 1-3.998-3.995 4 4 0 0 1 3.998-3.997 4 4 0 0 1 3.996 3.997 4 4 0 0 1-3.996 3.995m4.987-4.36A5.007 5.007 0 0 0 7.11 7.821c1.434-.613 3.081-.947 4.867-.947 1.798 0 3.421.324 4.853.966a4.984 4.984 0 0 0-4.831 4.619m6.288 4.134a3.97 3.97 0 0 1-3.058-.122 3.96 3.96 0 0 1-2.075-2.245v-.001a3.97 3.97 0 0 1 .118-3.056 3.97 3.97 0 0 1 2.246-2.077 4.005 4.005 0 0 1 5.135 2.366 4.006 4.006 0 0 1-2.366 5.135"}),React.createElement("path",{d:"M6.949 10.307a2.477 2.477 0 0 0-2.475 2.472 2.48 2.48 0 0 0 2.475 2.474 2.474 2.474 0 0 0 0-4.946m0 4.094a1.626 1.626 0 0 1-1.624-1.623 1.621 1.621 0 1 1 1.624 1.623M16.981 10.307a2.477 2.477 0 0 0-2.474 2.472 2.48 2.48 0 0 0 2.474 2.474 2.476 2.476 0 0 0 2.472-2.474 2.475 2.475 0 0 0-2.472-2.472m0 4.094a1.625 1.625 0 0 1-1.622-1.623 1.622 1.622 0 1 1 1.622 1.623"}),React.createElement("path",{d:"M7.778 12.778a.832.832 0 1 1-1.664.002.832.832 0 0 1 1.664-.002M16.981 11.947a.832.832 0 1 0 .002 1.666.832.832 0 0 0-.002-1.666"})))},{name:"tumblr-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M16.749 17.396c-.357.17-1.041.319-1.551.332-1.539.041-1.837-1.081-1.85-1.896V9.847h3.861v-2.91h-3.847V2.039h-2.817c-.046 0-.127.041-.138.144-.165 1.499-.867 4.13-3.783 5.181v2.484h1.945v6.282c0 2.151 1.587 5.206 5.775 5.135 1.413-.024 2.982-.616 3.329-1.126z"})))},{name:"tumblr",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5.569 14.265c-2.446.042-3.372-1.742-3.372-2.998v-3.668H8.923v-1.45c1.703-.614 2.113-2.15 2.209-3.025.007-.06.054-.084.081-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.131 1.081 1.107.298-.008.697-.094.906-.194l.54 1.601c-.205.296-1.121.641-1.946.656"})))},{name:"twitch",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M16.499 8.089h-1.636v4.91h1.636zm-4.499 0h-1.637v4.91H12zM4.228 3.178 3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501z"})))},{name:"twitter-alt",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22.23 5.924a8.2 8.2 0 0 1-2.357.646 4.12 4.12 0 0 0 1.804-2.27 8.2 8.2 0 0 1-2.606.996 4.103 4.103 0 0 0-6.991 3.742 11.65 11.65 0 0 1-8.457-4.287 4.1 4.1 0 0 0-.556 2.063 4.1 4.1 0 0 0 1.825 3.415 4.1 4.1 0 0 1-1.859-.513v.052a4.104 4.104 0 0 0 3.292 4.023 4.1 4.1 0 0 1-1.853.07 4.11 4.11 0 0 0 3.833 2.85 8.24 8.24 0 0 1-5.096 1.756 8 8 0 0 1-.979-.057 11.6 11.6 0 0 0 6.29 1.843c7.547 0 11.675-6.252 11.675-11.675q0-.267-.012-.531a8.3 8.3 0 0 0 2.047-2.123"})))},{name:"twitter",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-2.534 6.71q.007.148.007.298c0 3.045-2.318 6.556-6.556 6.556a6.5 6.5 0 0 1-3.532-1.035q.27.032.55.032a4.63 4.63 0 0 0 2.862-.986 2.31 2.31 0 0 1-2.152-1.6 2.3 2.3 0 0 0 1.04-.04 2.306 2.306 0 0 1-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 0 1-.713-3.076 6.54 6.54 0 0 0 4.749 2.407 2.305 2.305 0 0 1 3.926-2.101 4.6 4.6 0 0 0 1.463-.559 2.3 2.3 0 0 1-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192"})))},{name:"untappd",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m11 13.299-5.824 8.133c-.298.416-.8.635-1.308.572-.578-.072-1.374-.289-2.195-.879S.392 19.849.139 19.323a1.4 1.4 0 0 1 .122-1.425l5.824-8.133a3.1 3.1 0 0 1 1.062-.927l1.146-.604c.23-.121.436-.283.608-.478.556-.631 2.049-2.284 4.696-4.957l.046-.212a.13.13 0 0 1 .096-.1l.146-.037a.135.135 0 0 0 .101-.141l-.015-.18a.13.13 0 0 1 .125-.142c.176-.005.518.046 1.001.393s.64.656.692.824a.13.13 0 0 1-.095.164l-.175.044a.13.13 0 0 0-.101.141l.012.15a.13.13 0 0 1-.063.123l-.186.112c-1.679 3.369-2.764 5.316-3.183 6.046a2.2 2.2 0 0 0-.257.73l-.205 1.281A3.1 3.1 0 0 1 11 13.3zm12.739 4.598-5.824-8.133a3.1 3.1 0 0 0-1.062-.927l-1.146-.605a2.1 2.1 0 0 1-.608-.478 51 51 0 0 0-.587-.654.09.09 0 0 0-.142.018 97 97 0 0 1-1.745 3.223 1.4 1.4 0 0 0-.171.485 3.5 3.5 0 0 0 0 1.103l.01.064c.075.471.259.918.536 1.305l5.824 8.133c.296.413.79.635 1.294.574a4.76 4.76 0 0 0 2.209-.881 4.76 4.76 0 0 0 1.533-1.802 1.4 1.4 0 0 0-.122-1.425zM8.306 3.366l.175.044a.134.134 0 0 1 .101.141l-.012.15a.13.13 0 0 0 .063.123l.186.112q.465.933.869 1.721c.026.051.091.06.129.019q.655-.703 1.585-1.668a.137.137 0 0 0 .003-.19c-.315-.322-.645-.659-1.002-1.02l-.046-.212a.13.13 0 0 0-.096-.099l-.146-.037a.135.135 0 0 1-.101-.141l.015-.18a.13.13 0 0 0-.123-.142c-.175-.005-.518.045-1.002.393-.483.347-.64.656-.692.824a.13.13 0 0 0 .095.164z"})))},{name:"vimeo",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M22.396 7.164q-.139 3.039-4.245 8.32Q13.907 21 10.97 21q-1.82 0-3.079-3.359l-1.68-6.159q-.934-3.36-2.005-3.36-.234.001-1.634.98l-.978-1.261q1.541-1.353 3.037-2.708 2.056-1.774 3.084-1.869 2.429-.234 2.99 3.321.607 3.836.841 4.769.7 3.181 1.542 3.181.653 0 1.963-2.065 1.307-2.063 1.401-3.142.187-1.781-1.401-1.782-.747.001-1.541.341 1.534-5.024 5.862-4.884 3.21.095 3.024 4.161"})))},{name:"vk",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{fillRule:"evenodd",d:"M1.687 1.687C0 3.374 0 6.09 0 11.52v.96c0 5.431 0 8.146 1.687 9.833S6.09 24 11.52 24h.96c5.431 0 8.146 0 9.833-1.687S24 17.91 24 12.48v-.96c0-5.431 0-8.146-1.687-9.833S17.91 0 12.48 0h-.96C6.09 0 3.374 0 1.687 1.687M4.05 7.3c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92z"})))},{name:"whatsapp",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"m2.048 22 1.406-5.136a9.9 9.9 0 0 1-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.85 9.85 0 0 1 7.011 2.906 9.85 9.85 0 0 1 2.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.9 9.9 0 0 1-4.736-1.206zm5.497-3.172.301.179a8.2 8.2 0 0 0 4.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.2 8.2 0 0 0-2.41-5.828 8.18 8.18 0 0 0-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.2 8.2 0 0 0 1.259 4.384l.196.312-.832 3.04zm9.49-4.554c-.062-.103-.227-.165-.475-.289s-1.465-.723-1.692-.806-.392-.124-.557.124-.64.806-.784.971-.289.186-.536.062-1.046-.385-1.991-1.229c-.736-.657-1.233-1.468-1.378-1.715s-.015-.382.109-.505c.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413s.041-.31-.021-.434-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.9.9 0 0 0-.66.31c-.226.248-.866.847-.866 2.066s.887 2.396 1.011 2.562 1.746 2.666 4.23 3.739c.591.255 1.052.408 1.412.522.593.189 1.133.162 1.56.098.476-.071 1.465-.599 1.671-1.177.206-.58.206-1.075.145-1.179"})))},{name:"woocommerce",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M19 2H5C3.3 2 2 3.3 2 5v11c0 1.7 1.3 3 3 3h4l6 3-1-3h5c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3m-1.6 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7s-.3.4-.6.4-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6q.75 0 .9.9c.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2q.3.3.3.6c0 .3 0 .4-.1.5"})))},{name:"wordpress",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M12.158 12.786 9.46 20.625a9 9 0 0 0 5.526-.144 1 1 0 0 1-.065-.124zM3.009 12a8.99 8.99 0 0 0 5.067 8.092L3.788 8.341A8.95 8.95 0 0 0 3.009 12m15.06-.454c0-1.112-.399-1.881-.741-2.48-.456-.741-.883-1.368-.883-2.109 0-.826.627-1.596 1.51-1.596q.06.002.116.007A8.96 8.96 0 0 0 12 3.009a8.98 8.98 0 0 0-7.512 4.052c.211.007.41.011.579.011.94 0 2.396-.114 2.396-.114.484-.028.541.684.057.741 0 0-.487.057-1.029.085l3.274 9.739 1.968-5.901-1.401-3.838c-.484-.028-.943-.085-.943-.085-.485-.029-.428-.769.057-.741 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.485-.028.542.684.057.741 0 0-.488.057-1.029.085l3.249 9.665.897-2.996q.684-1.753.684-2.907m1.82-3.86q.06.428.06.924c0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.98 8.98 0 0 0 4.47-7.771 8.9 8.9 0 0 0-1.1-4.313M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})))},{name:"x",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387z"})))},{name:"xanga",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M9 9h6v6H9zM3 9h6V3H3zm12 0h6V3h-6zm0 12h6v-6h-6zM3 21h6v-6H3z"})))},{name:"youtube",svg:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement("g",null,React.createElement("path",{d:"M21.8 8.001s-.195-1.378-.795-1.985c-.76-.797-1.613-.801-2.004-.847-2.799-.202-6.997-.202-6.997-.202h-.009s-4.198 0-6.997.202c-.39.047-1.242.051-2.003.847-.6.607-.795 1.985-.795 1.985S2 9.62 2 11.238v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.761.797 1.76.771 2.205.855 1.6.153 6.8.201 6.8.201s4.203-.006 7.001-.209c.391-.047 1.243-.051 2.004-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517c0-1.618-.2-3.237-.2-3.237M9.935 14.594l-.001-5.62 5.404 2.82z"})))}]},49614:(e,t,a)=>{"use strict";a.d(t,{Y:()=>p});var n=a(82674),s=a.n(n),i=a(15844),r=a.n(i),o=a(99196),c=a.n(o),l=a(9839);class p extends o.PureComponent{static defaultProps={size:24};static propTypes={icon:r().string.isRequired,size:r().number,onClick:r().func,className:r().string};render(){const{size:e,onClick:t,icon:a,className:n,...i}=this.props,r=["social-logo","social-logo-"+a,n].filter(Boolean).join(" "),o=l.N.find((e=>e.name===a));if(!o)return c().createElement("svg",s()({height:e,width:e},i));return c().cloneElement(o.svg,{className:r,height:e,width:e,onClick:t,...i})}}},88067:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(82674),s=a.n(n),i=a(6895),r=a(66183),o=a(55609),c=a(65736),l=a(61074),p=a(15381),d=a(39542),u=a(29740);const __=c.__,m=e=>{const{title:t}=e;return React.createElement(r.Z,s()({buttonLabel:__("Connect your user account","jetpack"),loadingLabel:__("Connecting your account…","jetpack"),images:[d],from:"my-jetpack"},e,{title:t||__("Unlock all the amazing features of Jetpack by connecting now","jetpack")}),React.createElement("ul",{role:"list"},React.createElement("li",null,__("Receive instant downtime alerts","jetpack")),React.createElement("li",null,__("Automatically share your content on social media","jetpack")),React.createElement("li",null,__("Let your subscribers know when you post","jetpack")),React.createElement("li",null,__("Receive notifications about new likes and comments","jetpack")),React.createElement("li",null,__("Let visitors share your content on social media","jetpack")),React.createElement("li",null,__("Create better content with powerful AI tools","jetpack")),React.createElement("li",null,__("And more!","jetpack")," ",React.createElement("a",{href:(0,i.Z)("jetpack-features"),target:"_blank",className:u.Z["all-features"],rel:"noreferrer"},__("See all Jetpack features","jetpack"),React.createElement(l.Z,{icon:p.Z}),React.createElement(o.VisuallyHidden,{as:"span"},/* translators: accessibility text */ __("(opens in a new tab)","jetpack"))))))}},4341:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(6895),s=a(65736),i=a(3228),r=a(85799),o=a(43255),c=a(84069),l=a(25162),p=a.n(l),d=a(99196),u=a.n(d),m=a(59309),h=a(96300);const __=s.__;class g extends d.Component{static propTypes={inOfflineMode:p().bool.isRequired,siteRawUrl:p().string.isRequired};static defaultProps={inOfflineMode:!1,siteRawUrl:""};trackActivityClick=()=>{c.Z.tracks.recordJetpackClick({type:"activity-link",target:"at-a-glance",feature:"activity-log"})};render(){const{inOfflineMode:e}=this.props,t=__("Jetpack keeps a complete record of everything that happens on your site, taking the guesswork out of site management, debugging, and repair.","jetpack");return u().createElement("div",{className:"jp-dash-item__interior"},u().createElement(o.Z,{label:__("Activity","jetpack"),isModule:!1,className:(0,i.Z)({"jp-dash-item__is-inactive":e}),pro:!1},u().createElement("p",{className:"jp-dash-item__description"},e?__("Unavailable in Offline Mode.","jetpack"):t)),u().createElement(r.Z,{key:"view-activity",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:(0,n.Z)("calypso-activity-log",{site:this.props.siteRawUrl}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackActivityClick},__("View site activity","jetpack")))}}const k=(0,m.$j)((e=>({inOfflineMode:(0,h.Ex)(e)})))(g)},91248:(e,t,a)=>{"use strict";a.d(t,{Z:()=>R});var n=a(82674),s=a.n(n),i=a(64743),r=a(52947),o=a(69307),c=a(65736),l=a(97506),p=a(85799),d=a(43255),u=a(11020),m=a(41549),h=a(85733),g=a(84069),k=a(59584),v=a(92819),f=a(1137),E=a(25162),_=a.n(E),b=a(99196),y=a.n(b),w=a(59309),C=a(17296),j=a(96300),S=a(69508),N=a(33002);const __=c.__,_x=c._x;class x extends b.Component{static propTypes={siteRawUrl:_().string.isRequired,siteAdminUrl:_().string.isRequired,trackUpgradeButtonView:_().func,akismetData:_().oneOfType([_().string,_().object,_().number]).isRequired,isOfflineMode:_().bool.isRequired,upgradeUrl:_().string.isRequired,hasConnectedOwner:_().bool.isRequired};static defaultProps={siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isOfflineMode:"",trackUpgradeButtonView:v.noop};trackActivateClick(){g.Z.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"anti-spam"})}onActivateClick=()=>(this.trackActivateClick(),this.props.createNotice("is-info",__("Activating Akismet…","jetpack"),{id:"activating-akismet"}),i.ZP.activateAkismet().then((()=>{this.props.removeNotice("activating-akismet"),window.location.href=this.props.siteAdminUrl+"admin.php?page=akismet-key-config"})).catch((()=>{this.props.removeNotice("activating-akismet"),this.props.createNotice("is-error",__("Could not activate Akismet.","jetpack"),{id:"activate-akismet-failure"})})),!1);trackModerateClick(){g.Z.tracks.recordJetpackClick({type:"moderate-link",target:"at-a-glance",feature:"anti-spam"})}onModerateClick=()=>{this.trackModerateClick()};getContent(){const{akismetData:e,siteAdminUrl:t}=this.props,a=__("Akismet Anti-spam","jetpack"),n={text:__("Comments and contact form submissions are checked against our global database of spam.","jetpack"),link:this.props.isAtomicSite?null:"https://akismet.com/features",privacyLink:"https://automattic.com/privacy/"},i=()=>{let a;return"not_active"===e?a=(0,o.createInterpolateElement)(__("Already have an API key? <Button>Activate Akismet Anti-spam</Button>.","jetpack"),{Button:y().createElement(l.Z,{className:"jp-link-button",onClick:this.onActivateClick})}):"invalid_key"===e&&(a=(0,o.createInterpolateElement)(__("Already have an API key? <a>Get started</a>.","jetpack"),{a:y().createElement("a",{href:t+"admin.php?page=akismet-key-config"})})),y().createElement(h.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Automatically clear spam from comments and forms.","jetpack"),description:a,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"akismet",path:"dashboard",plan:(0,k.o2o)(k.V37),trackBannerDisplay:this.props.trackUpgradeButtonView,noIcon:!0})},c=()=>y().createElement(h.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"akismet",path:"dashboard",plan:(0,k.o2o)(k.V37)}),u=()=>this.props.hasConnectedOwner?i():c();if("N/A"===e)return y().createElement(d.Z,{label:a,module:"akismet",support:n,pro:!0},y().createElement("p",{className:"jp-dash-item__description"},__("Loading…","jetpack")));if(["not_installed","not_active","invalid_key"].includes(e)){const e={label:a,module:"akismet",support:n,className:"jp-dash-item__is-inactive",pro:!0};return this.props.hasAntiSpam||this.props.hasAkismet?y().createElement(d.Z,e,__("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.","jetpack")):this.props.isOfflineMode?y().createElement(d.Z,e,y().createElement("p",{className:"jp-dash-item__description"},__("Unavailable in Offline Mode.","jetpack"))):y().createElement(d.Z,s()({},e,{overrideContent:u()}))}return[y().createElement(d.Z,{key:"comment-moderation",label:a,module:"akismet",support:n,status:"is-working",pro:!0},(()=>0!==this.props.akismetData?y().createElement(y().Fragment,null,y().createElement("h2",{className:"jp-dash-item__count"},(0,r.Z)(this.props.akismetData)),y().createElement("p",{className:"jp-dash-item__description"},_x("Spam comments blocked.",'Example: "412 Spam comments blocked"',"jetpack"))):y().createElement("div",{className:"jp-dash-item__recently-activated"},y().createElement("p",{className:"jp-dash-item__description"},__("Akismet is now monitoring all comments on your site. Data will display here soon!","jetpack"))))()),!this.props.isOfflineMode&&y().createElement(p.Z,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:`${this.props.siteAdminUrl}edit-comments.php`,onClick:this.onModerateClick},__("Moderate comments","jetpack"))]}render(){return y().createElement("div",{className:"jp-dash-item__interior"},y().createElement(u.Z,null),this.getContent())}}const R=(0,w.$j)((e=>({akismetData:(0,C.fU)(e),isAtomicSite:(0,S.Ug)(e),isOfflineMode:(0,j.Ex)(e),upgradeUrl:(0,f.z)(e,"akismet"),nonce:(0,S.VY)(e),hasConnectedOwner:(0,j.it)(e),hasAntiSpam:(0,N.CV)(e,"antispam"),hasAkismet:(0,N.CV)(e,"akismet")})),(e=>({createNotice:m.iI,removeNotice:m.qq,connectUser:()=>e((0,j.bL)())})))(x)},83326:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(80800),s=a(65736),i=a(97506),r=a(85799),o=a(84069),c=a(99196),l=a.n(c),p=a(59309),d=a(3230);const __=s.__,u=(0,p.$j)((e=>({isDismissed:(0,d.wS)(e)})),(e=>({dismiss:()=>e((0,d.VP)({dismiss_dash_backup_getting_started:!0}))})))((({isDismissed:e,dismiss:t})=>{const a=(0,c.useCallback)((()=>{t(),o.Z.tracks.recordEvent("jetpack_backup_getting_started_video_dismiss",{position:"at_a_glance"})}),[t]),s=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"at_a_glance"})}),[]);return e?null:l().createElement(r.Z,{className:"dash-backup-getting-started"},l().createElement(i.Z,{borderless:!0,compact:!0,className:"dash-backup-getting-started__dismiss",onClick:a},l().createElement("span",{className:"dashicons dashicons-no"})),l().createElement("a",{href:n.zh,target:"_blank",rel:"noreferrer"},l().createElement("img",{className:"dash-backup-getting-started__thumbnail",src:n.hp+"backup-getting-started-thumbnail.png",srcSet:`${n.hp+"backup-getting-started-thumbnail.png"} 1x, ${n.hp+"backup-getting-started-thumbnail-2x.png"} 2x`,alt:""})),l().createElement("div",{className:"dash-backup-getting-started__content"},l().createElement("h3",{className:"dash-backup-getting-started__header"},__("Getting started with Jetpack Backup","jetpack")),l().createElement("p",{className:"dash-backup-getting-started__text"},__("A short video guide on how to back up your website","jetpack"))),l().createElement(i.Z,{className:"dash-backup-getting-started__cta",href:n.zh,onClick:s,target:"_blank",rel:"noreferrer",compact:!0,primary:!0},__("Watch the video","jetpack")))}))},30647:(e,t,a)=>{"use strict";a.d(t,{v:()=>p});var n=a(43521),s=a(65736),i=a(85799),r=a(84069),o=a(99196),c=a.n(o),l=a(49890);const __=s.__,p=({comments:e,plugins:t,posts:a,onClosePopup:s})=>{const p=(0,o.useRef)(!1);(0,o.useEffect)((()=>{p.current||(r.Z.tracks.recordEvent("jetpack_wpa_aag_backup_bar_chart_view",{comments:e,plugins:t,posts:a}),p.current=!0)}),[]);const d=(0,o.useMemo)((()=>[{count:a,label:__("Posts","jetpack"),backgroundColor:"#00BA37"},{count:t,label:__("Plugins","jetpack"),backgroundColor:"#3895BA"},{count:e,label:__("Comments","jetpack"),backgroundColor:"#E68B28"}]),[e,t,a]);return c().createElement(i.Z,{className:"jp-dash-upgrade-backup"},c().createElement(l.G,{posts:a,comments:e,onClosePopup:s}),c().createElement(n.Z,{items:d}))}},91498:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(84069),s=a(99196),i=a.n(s),r=a(59309),o=a(17296),c=a(30647);const l=(0,r.$j)((e=>{const t=(0,o.yZ)(e)?.general?.stats;return{comments:t?.comments,plugins:Object.keys((0,o.Fb)(e)).length,posts:t?.posts,isFetchingData:(0,o.vz)(e)||(0,o.F2)(e)}}))((({comments:e,isFetchingData:t,plugins:a,posts:r})=>{const[o,l]=(0,s.useState)(!0),p=(0,s.useCallback)((()=>{const t={comments:e,plugins:a,posts:r,target:"backup_bar_chart_close",type:"dismiss"};n.Z.tracks.recordJetpackClick(t),l(!1)}),[e,a,r]);return!t&&o&&r>20?i().createElement(c.v,{posts:r,comments:e,plugins:a,onClosePopup:p}):null}))},49890:(e,t,a)=>{"use strict";a.d(t,{G:()=>c});var n=a(80800),s=a(65736),i=a(97506),r=a(99196),o=a.n(r);const __=s.__,c=({posts:e,comments:t,onClosePopup:a})=>o().createElement("div",{className:"jp-dash-upgrade-backup__popup"},o().createElement(i.Z,{onClick:a,className:"jp-dash-upgrade-backup__popup-close-icon",compact:!0,borderless:!0},o().createElement("img",{src:n.hp+"/close.svg",alt:__("Close","jetpack")})),o().createElement("img",{className:"jp-dash-upgrade-backup__popup-lock-icon",src:n.hp+"/lock.svg",alt:__("Locked","jetpack")}),o().createElement("p",{className:"jp-dash-upgrade-backup__popup-title"},__("Upgrade to backup","jetpack")),o().createElement("p",null,(0,s.sprintf)(/* translators: 1 number of posts, 2 number of comments */ __("Be sure your %1$d posts, %2$d comments, and more information are safely backed up with Jetpack","jetpack"),e,t)))},92792:(e,t,a)=>{"use strict";a.d(t,{Z:()=>P});var n=a(6895),s=a(55609),i=a(69771),r=a(69307),o=a(65736),c=a(61074),l=a(70157),p=a(97506),d=a(85799),u=a(43255),m=a(75402),h=a(83526),g=a(85733),k=a(84069),v=a(59584),f=a(92819),E=a(1137),_=a(25162),b=a.n(_),y=a(99196),w=a.n(y),C=a(59309),j=a(17296),S=a(96300),N=a(69508),x=a(33002),R=a(61372),Z=a(83326),T=a(91498);const __=o.__,_x=o._x,A=e=>w().createElement(u.Z,{label:__("VaultPress Backup","jetpack"),module:e.feature||"backups",support:{text:__("VaultPress Backup allows you to easily restore or download a backup from a specific moment.","jetpack"),link:(0,n.Z)("jetpack-support-backup")},className:e.className+" dash-backups",status:e.status,pro:!0,overrideContent:e.overrideContent},w().createElement("p",{className:"jp-dash-item__description"},e.content));class M extends y.Component{static propTypes={siteRawUrl:b().string.isRequired,getOptionValue:b().func.isRequired,rewindStatus:b().string.isRequired,rewindStatusReason:b().string.isRequired,trackUpgradeButtonView:b().func,vaultPressData:b().any.isRequired,hasBackups:b().bool.isRequired,hasRealTimeBackups:b().bool.isRequired,isOfflineMode:b().bool.isRequired,isVaultPressInstalled:b().bool.isRequired,isWoA:b().bool.isRequired,upgradeUrl:b().string.isRequired,hasConnectedOwner:b().bool.isRequired,backupUndoEvent:b().any.isRequired};static defaultProps={siteRawUrl:"",getOptionValue:f.noop,vaultPressData:"",isOfflineMode:!1,isVaultPressInstalled:!1,isWoA:!1,rewindStatus:"",trackUpgradeButtonView:f.noop,backupUndoEvent:{}};trackBackupsClick=(e="backups-link")=>function(){k.Z.tracks.recordJetpackClick({type:e,target:"at-a-glance",feature:"backups"})};trackRedeemCouponButtonView=()=>{const{partnerCoupon:e}=this.props;k.Z.tracks.recordEvent("jetpack_wpa_aag_redeem_partner_coupon_button_view",{feature:"backups",coupon_preset:e.preset})};getJetpackBackupBanner(){const{partnerCoupon:e,upgradeUrl:t,siteRawUrl:a,trackUpgradeButtonView:s}=this.props;if(this.props.hasConnectedOwner){if(e&&"jetpack_backup_daily"===e.product.slug){const t=(0,n.Z)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:a,query:`coupon=${e.coupon_code}`});return w().createElement(g.ZP,{callToAction:__("Redeem","jetpack"),title:(0,o.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Redeem your coupon and get started with %s for free the first year!","jetpack"),e.product.title),disableHref:"false",href:t,eventFeature:"backups",path:"dashboard",eventProps:{type:"redeem_partner_coupon",coupon_preset:e.preset},plan:(0,v.o2o)(v.N_2),trackBannerDisplay:this.trackRedeemCouponButtonView})}return w().createElement(w().Fragment,null,w().createElement(T.Z,null),w().createElement(g.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Never worry about losing your site – automatic backups keep your content safe.","jetpack"),disableHref:"false",href:t,eventFeature:"backups",path:"dashboard",plan:(0,v.o2o)(v.N_2),trackBannerDisplay:s}))}return w().createElement(g.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get automatic backups that keep your content safe.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"backups",path:"dashboard",plan:(0,v.o2o)(v.N_2)})}getVPContent(){const{hasBackups:e,isFetchingSite:t,isVaultPressInstalled:a,getOptionValue:s,siteRawUrl:i,vaultPressData:o}=this.props;return s("vaultpress")&&"success"===(0,f.get)(o,"code","")?A({className:"jp-dash-item__is-active",status:"is-working",content:w().createElement("span",null,(0,f.get)(o,"message","")," ",(0,r.createInterpolateElement)(__("<a>View backup details</a>.","jetpack"),{a:w().createElement("a",{href:(0,n.Z)("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})}))}):t?this.renderLoading():A(e?{className:"jp-dash-item__is-inactive",status:a?"pro-inactive":"pro-uninstalled",content:(0,r.createInterpolateElement)(__("To automatically back up your entire site, please <a>install and activate</a> VaultPress.","jetpack"),{a:w().createElement("a",{href:(0,n.Z)("calypso-plugins-setup",{site:i,query:"only=backups"}),target:"_blank",rel:"noopener noreferrer"})})}:{className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:this.getJetpackBackupBanner()})}renderManageBackupsLinks(){const{isWoA:e,siteRawUrl:t}=this.props;return w().createElement(d.Z,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom"},w().createElement("div",{className:"jp-dash-item__action-links"},w().createElement(s.ExternalLink,{href:e?(0,n.Z)("calypso-backups",{site:t}):(0,n.Z)("my-jetpack-manage-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("backups-link")},__("View your site's backups","jetpack")),w().createElement(s.ExternalLink,{href:(0,n.Z)("calypso-activity-log",{site:t,query:"group=rewind"}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("restore-points-link")},__("View your most recent restore points","jetpack"))))}getRewindContent(){const{hasRealTimeBackups:e,rewindStatus:t,siteRawUrl:a,backupUndoEventLoaded:i}=this.props,o=(e,t,a)=>w().createElement(d.Z,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick(a)},t),c=e=>A({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",content:e});switch(t){case"provisioning":return w().createElement(w().Fragment,null,c(__("We are configuring your site's backups.","jetpack")));case"awaiting_credentials":return w().createElement(w().Fragment,null,c(__("Enter your SSH, SFTP or FTP credentials to enable one-click site restores and faster backups","jetpack")),o((0,n.Z)("jetpack-backup-dash-credentials",{site:a}),__("Enter credentials","jetpack"),"enter-credentials-link"));case"active":{if(i)return this.renderUndo();let t=__("We are backing up your site daily.","jetpack");return e&&(t=(0,r.createInterpolateElement)(__("Every change you make will be backed up, in real-time, as you edit your site. <ExternalLink>Learn More</ExternalLink>","jetpack"),{ExternalLink:w().createElement(s.ExternalLink,{href:(0,n.Z)("jetpack-blog-realtime-mechanics"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("realtime-learn-more-link")})})),w().createElement(w().Fragment,null,c(t),this.renderManageBackupsLinks())}}return!1}renderLoading(){return A({className:"",status:"",content:__("Loading…","jetpack")})}renderFromRewindStatus(){return this.props.hasBackups&&"unavailable"===this.props.rewindStatus&&"site_new"===this.props.rewindStatusReason?A({className:"jp-dash-item__is-inactive",status:"pro-inactive",content:__("Your site is new and may still be preparing backup configuration.","jetpack")}):"unavailable"===this.props.rewindStatus||""===this.props.rewindStatus?this.getVPContent():w().createElement("div",{className:"jp-dash-item"},this.getRewindContent())}trackUndoFeatureView(){k.Z.tracks.recordEvent("jetpack_wpa_aag_backup_undo_view")}trackUndoButtonClick(){k.Z.tracks.recordEvent("jetpack_wpa_aag_backup_undo_button_click")}renderUndo(){const{backupUndoEvent:e}=this.props,{activityDate:t,activityTitle:a,activityDescription:s,actorName:o,actorRole:d,actorAvatarUrl:u,undoBackupId:m}=e,h=(0,i.dateI18n)("M jS, g:i a",t),g=w().createElement("div",{className:"dops-card jp-dash-item__card dash-backup-undo"},w().createElement("div",{className:"jp-dash-item__description dash-backup-undo__activity-log"},w().createElement("div",{className:"dash-backup-undo__activity-log-date"},h),w().createElement("div",{className:"dash-backup-undo__activity-log-action"},a),w().createElement("div",{className:"dash-backup-undo__activity-log-description"},s),w().createElement("div",{className:"dash-backup-undo__activity-log-user-meta"},w().createElement("div",{className:"dash-backup-undo__activity-log-user-meta-avatar"},w().createElement("img",{alt:o,src:u??"https://www.gravatar.com/avatar/0?s=96&d=mm",width:"30",height:"30"})),w().createElement("div",{className:"dash-backup-undo__activity-log-user-meta-name"},o,d&&" - "+d))),w().createElement("div",{className:"dash-backup-undo__cta"},(0,r.createInterpolateElement)(__("<button><icon /> Undo</button>","jetpack"),{button:w().createElement(p.Z,{href:(0,n.Z)("jetpack-backup-undo-cta",{path:m}),primary:!0,target:"_blank",onClick:this.trackUndoButtonClick}),icon:w().createElement(c.Z,{icon:l.Z})})));return this.trackUndoFeatureView(),w().createElement(w().Fragment,null,A({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",overrideContent:g}),this.renderManageBackupsLinks())}renderGettingStartedVideo(){return"awaiting_credentials"!==this.props.rewindStatus?null:w().createElement(Z.Z,null)}render(){return this.props.showBackups?this.props.isOfflineMode?w().createElement("div",{className:"jp-dash-item__interior"},A({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:__("Unavailable in Offline Mode.","jetpack")})):(this.props.isFetchingSite&&this.renderLoading(),w().createElement("div",null,w().createElement(h.Z,null),"active"===this.props.rewindStatus&&w().createElement(m.Z,null),this.renderFromRewindStatus(),this.renderGettingStartedVideo())):null}}const P=(0,C.$j)((e=>({vaultPressData:(0,j.XK)(e),isOfflineMode:(0,S.Ex)(e),isVaultPressInstalled:(0,R.P8)(e,"vaultpress/vaultpress.php"),showBackups:(0,N.xR)(e),upgradeUrl:(0,E.z)(e,"backup"),hasConnectedOwner:(0,S.it)(e),isFetchingSite:(0,x._5)(e),hasBackups:(0,x.CV)(e,"backups"),hasRealTimeBackups:(0,x.CV)(e,"real-time-backups"),partnerCoupon:(0,N.DV)(e),isWoA:(0,N.Pw)(e),backupUndoEvent:(0,j.b9)(e),backupUndoEventLoaded:(0,j.O1)(e),backupUndoEventIsFetching:(0,j.Ve)(e)})),(e=>({connectUser:()=>e((0,S.bL)())})))(M)},96438:(e,t,a)=>{"use strict";a.d(t,{Z:()=>N});var n=a(64743),s=a(60128),i=a(14186),r=a(6895),o=a(55609),c=a(69307),l=a(65736),p=a(3228),d=a(42698),u=a(87553),m=a(81114),h=a(84069),g=a(25162),k=a.n(g),v=a(99196),f=a(59309),E=a(96300),_=a(69508),b=a(33002),y=a(61372);const __=l.__,_x=l._x,w="admin.php?page=jetpack-boost",C=["jetpack-boost/jetpack-boost.php","jetpack-boost-dev/jetpack-boost.php"],j="jetpack-boost",S=({siteAdminUrl:e,siteConnectionStatus:t,siteUrl:a,apiRoot:r,apiNonce:o,fetchPluginsData:d,fetchingPluginsData:g,isBoostInstalled:k,isBoostActive:f,hasActiveBoostPurchase:E,latestSpeedScores:_={}})=>{const b="offline"===t,[y,S]=(0,v.useState)(!1),[N,T]=(0,v.useState)(!1),[A,M]=(0,v.useState)(!1),[P,O]=(0,v.useState)("C"),[L,I]=(0,v.useState)(1),[D,U]=(0,v.useState)(0),[z,V]=(0,v.useState)(0),[F,B]=(0,v.useState)(!1),H=k&&f,q=!(H||b||g||F),J=_x("Boost","The Jetpack Boost product name, without the Jetpack prefix","jetpack"),W=()=>{U(_.scores.mobile),V(_.scores.desktop),O((0,s.yn)(_.scores.mobile,_.scores.desktop)),I((0,s.Fr)(1e3*_.timestamp))};(0,v.useEffect)((()=>{_&&(0,s.Fr)(1e3*_.timestamp)<21?W():(async()=>{if(!b&&!H){S(!0);try{const e=await(0,s.tZ)(!0,r,a,o),t=(0,s.yn)(e.current.mobile,e.current.desktop);O(t),U(e.current.mobile),V(e.current.desktop),I(0),S(!1)}catch(e){h.Z.tracks.recordEvent("jetpack_boost_speed_score_error",{feature:j,position:"at-a-glance",error:e}),_&&_.scores?W():B(!0),S(!1)}}})()}),[]);const G=()=>{switch(P){case"A":return{top:__("A one-second delay in loading times can reduce your site traffic by 10%.","jetpack"),bottom:__("Use Boost’s automated acceleration tools to optimize your performance on the go.","jetpack")};case"B":return{top:__("A one-second improvement in loading times can increase your site traffic by 10%.","jetpack"),bottom:__("Jetpack Boost enhance your site’s performance like top websites, no developer needed.","jetpack")};default:return{top:__("You can lose 10% of your visitors for every additional second your site takes to load.","jetpack"),bottom:__("Make your site blazing fast for free with Boost’s simple dashboard and acceleration tools.","jetpack")}}},$=(0,v.useCallback)((()=>{if(!H)return k?M(!0):T(!0),h.Z.tracks.recordJetpackClick({target:"boost_instant_tests_install",type:k?"activate":"install",feature:j}),n.ZP.installPlugin(j,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>d())).finally((()=>{T(!1),M(!1)}))}),[d,k,H]);return React.createElement("div",{className:"dash-boost-speed-score"},q?React.createElement(React.Fragment,null,y?React.createElement(m.Z,{className:"dash-boost-speed-score__section-header",label:J}):React.createElement("div",{className:"dash-boost-speed-score__summary"},React.createElement("div",null,React.createElement("span",{className:"dash-boost-speed-score__summary-grade"},(0,l.sprintf)( // translators: %s is the letter grade of the site's speed performance. __("Your site’s speed performance score: %s","jetpack"),P),React.createElement(x,null)),React.createElement("p",{className:(0,p.Z)("dash-boost-speed-score__score-text",["C","D","E","F"].includes(P)?"warning":"")},(()=>{switch(P){case"A":return __("Your site is fast! But maintaining a high speed isn’t easy.","jetpack");case"B":return __("You are one step away from making your site blazing fast.","jetpack");default:return __("Your site needs performance improvements!","jetpack")}})())),React.createElement("div",null,React.createElement("p",{className:"dash-boost-speed-score__last-tested"},(()=>{switch(L){case 0:return __("Your site was tested in the last 24 hours","jetpack");case 1:return __("Your site was tested yesterday","jetpack");default:return(0,l.sprintf)( // translators: %s is the number of days since the site was last tested. __("Your site was tested %s days ago","jetpack"),L)}})()),React.createElement("button",{className:"dash-boost-speed-score__install-button-link",onClick:$,disabled:N||A},(()=>{let e;if(!H)return N?e=__("Installing…","jetpack"):A?e=__("Activating…","jetpack"):k&&(e=__("Activate Boost to run instant tests","jetpack")),e??__("Install Boost to run instant tests","jetpack")})()))),React.createElement("div",{className:"dash-boost-speed-score__score-bars"},React.createElement(i.Z,{score:D,active:!0,isLoading:y,showPrevScores:!1,scoreBarType:"mobile"}),React.createElement(i.Z,{score:z,active:!0,isLoading:y,showPrevScores:!1,scoreBarType:"desktop"}))):React.createElement(m.Z,{className:"dash-boost-speed-score__section-header",label:J}),React.createElement("div",null,React.createElement(u.Z,{pluginName:J,pluginSlug:j,pluginFiles:C,pluginLink:e+w,installOrActivatePrompt:(0,c.createInterpolateElement)((0,l.sprintf)("<b>%1$s<Info/><br/></b>%2$s",G().top,G().bottom),{br:React.createElement("br",null),b:React.createElement("b",null),Info:React.createElement(R,null)}),installedPrompt:E?__("We’re automatically re-generating your site’s Critical CSS.","jetpack"):(0,c.createInterpolateElement)(__("<a>Re-generate your Critical CSS after you make changes on your site</a><Info/>","jetpack"),{a:React.createElement("a",{href:e+w}),Info:React.createElement(Z,null)})})))};S.propTypes={siteAdminUrl:k().string.isRequired,siteConnectionStatus:k().oneOfType([k().bool,k().string]).isRequired,siteUrl:k().string.isRequired,apiRoot:k().string.isRequired,apiNonce:k().string.isRequired,fetchingPluginsData:k().bool.isRequired,isBoostInstalled:k().bool.isRequired,isBoostActive:k().bool.isRequired,hasActiveBoostPurchase:k().bool.isRequired,latestSpeedScores:k().shape({timestamp:k().number,scores:k().shape({mobile:k().number,desktop:k().number}),theme:k().string})};const N=(0,f.$j)((e=>({siteConnectionStatus:(0,E.Gz)(e),siteUrl:(0,_.JR)(e),apiRoot:(0,_.yB)(e),apiNonce:(0,_.VY)(e),fetchingPluginsData:(0,y.vz)(e),isBoostInstalled:C.some((t=>(0,y.P8)(e,t))),isBoostActive:C.some((t=>(0,y.TB)(e,t))),hasActiveBoostPurchase:(0,b.az)(e),latestSpeedScores:(0,_.aZ)(e)})),(e=>({fetchPluginsData:()=>e((0,y.s4)())})))(S),x=()=>{const e=(0,v.useCallback)((()=>{h.Z.tracks.recordJetpackClick({target:"boost-grade-info-button",feature:j})}),[]);return React.createElement("div",{className:"boost-grade-info"},React.createElement(d.Z,{onClick:e,screenReaderText:__("Learn more about how this grade is calculated","jetpack")},React.createElement("p",{className:"boost-grade-info__grades-description"},__("Your Overall Score is a summary of your website performance across both mobile and desktop devices. It gives a general idea of your sites’ overall performance.","jetpack")),React.createElement("div",{className:"boost-grade-info__grades-table"},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null,"A"),React.createElement("td",null,"90+")),React.createElement("tr",null,React.createElement("th",null,"B"),React.createElement("td",null,"75-90")),React.createElement("tr",null,React.createElement("th",null,"C"),React.createElement("td",null,"50-75")))),React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null,"D"),React.createElement("td",null,"35-50")),React.createElement("tr",null,React.createElement("th",null,"E"),React.createElement("td",null,"25-35")),React.createElement("tr",null,React.createElement("th",null,"F"),React.createElement("td",null,"0-25")))))))},R=()=>{const e=(0,v.useCallback)((()=>{h.Z.tracks.recordJetpackClick({target:"boost-conversion-loss-info-button",feature:j})}),[]),t=(0,v.useCallback)((()=>{h.Z.tracks.recordJetpackClick({target:"boost-conversion-loss-info-source",feature:j})}),[]);return React.createElement("div",{className:"boost-conversion-loss-info"},React.createElement(d.Z,{onClick:e,screenReaderText:__("Learn more about how slow sites lose visitors","jetpack")},React.createElement("p",{className:"boost-conversion-loss-info__source"},__("Source: ","jetpack"),React.createElement(o.ExternalLink,{href:"https://web.dev/why-speed-matters/",target:"_blank",rel:"noopener noreferrer",onClick:t},"web.dev"))))},Z=()=>{const e=(0,r.Z)("jetpack-boost-critical-css"),t=(0,v.useCallback)((()=>{h.Z.tracks.recordJetpackClick({target:"boost-critical-css-info-button",feature:j})}),[]),a=(0,v.useCallback)((()=>{h.Z.tracks.recordJetpackClick({target:"boost-critical-css-info-link",feature:j})}),[]);return React.createElement("div",{className:"boost-critical-css-info"},React.createElement(d.Z,{onClick:t,screenReaderText:__("Learn more about how critical CSS works","jetpack")},React.createElement("h3",{className:"boost-critical-css-info__title"},__("Regenerate Critical CSS","jetpack")),React.createElement("p",null,(0,c.createInterpolateElement)(__("You should regenerate <ExternalLink>Critical CSS</ExternalLink> to optimize speed whenever your site’s HTML or CSS structure changes after:","jetpack"),{ExternalLink:React.createElement(o.ExternalLink,{onClick:a,href:e,target:"_blank",rel:"noopener noreferrer"})})),React.createElement("ul",{className:"boost-critical-css-info__list"},React.createElement("li",null,__("Making theme changes","jetpack")),React.createElement("li",null,__("Writing a new post/page","jetpack")),React.createElement("li",null,__("Editing a post/page","jetpack")),React.createElement("li",null,__("Activating, deactivating, or updating plugins that impact your site layout","jetpack")),React.createElement("li",null,__("Upgrading your WordPress version if the new release includes core CSS changes","jetpack"))),React.createElement("p",{className:"boost-critical-css-info__bottom-text"},__("Being on top of this can be tedious and time-consuming. Boost’s cloud service can automatically detect when your site needs a new Critical CSS and generate it, improving site performance and SEO without requiring manual monitoring.","jetpack"))))}},21475:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(69307),s=a(65736),i=a(57633),r=a(43255),o=a(27583),c=a(5060),l=a(25162),p=a.n(l),d=a(99196),u=a.n(d),m=a(59309),h=a(96300),g=a(69508);const __=s.__,_x=s._x;class k extends d.Component{siteConnection(){let e="";return this.props.isOfflineMode?e=u().createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?u().createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):u().createElement(c.Z,{icon:"globe",size:64}),u().createElement("div",{className:"jp-connection-settings__text"},__("Your site is in Offline Mode, so it can not be connected to WordPress.com.","jetpack"))):!0===this.props.siteConnectionStatus&&(e=u().createElement("div",null,u().createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?u().createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):u().createElement(c.Z,{icon:"globe",size:64}),u().createElement("div",{className:"jp-connection-settings__text"},__("Your site is connected to WordPress.com.","jetpack"),this.props.isConnectionOwner&&u().createElement("span",{className:"jp-connection-settings__is-owner"},__("You are the Jetpack owner.","jetpack")),this.props.userCanDisconnectSite&&u().createElement("div",{className:"jp-connection-settings__actions"},u().createElement(i.Z,{asLink:!0,autoOpenInDisconnectRoute:!0})))))),e}userConnection(){const e=this.props.isConnectionOwner?null:u().createElement(i.Z,{asLink:!0,connectUser:!0,from:"connection-settings"});let t="";return this.props.isOfflineMode?u().createElement("div",{className:"jp-connection-settings__info"},this.props.userGravatar?u().createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userGravatar}):u().createElement(c.Z,{icon:"user",size:64}),u().createElement("div",{className:"jp-connection-settings__text"},__("The site is in Offline Mode, so you can not connect to WordPress.com.","jetpack"))):(t=this.props.isLinked?this.props.isFetchingUserData?__("Loading…","jetpack"):u().createElement("div",null,u().createElement("div",{className:"jp-connection-settings__info"},u().createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.wpComConnectedUser.avatar}),u().createElement("div",{className:"jp-connection-settings__text"},(0,n.createInterpolateElement)((0,s.sprintf)(/* translators: Placeholder is the WordPress user login name. */ __("Connected as <span>%s</span>","jetpack"),this.props.wpComConnectedUser.login),{span:u().createElement("span",{className:"jp-connection-settings__username"})}),u().createElement("div",{className:"jp-connection-settings__email"},this.props.wpComConnectedUser.email))),u().createElement("div",{className:"jp-connection-settings__actions"},e)):u().createElement("div",null,u().createElement("div",{className:"jp-connection-settings__info"},__("Get the most out of Jetpack.","jetpack")),u().createElement("div",{className:"jp-connection-settings__actions"},e)),t)}render(){return u().createElement("div",null,u().createElement(o.Z,null),u().createElement("div",{className:"jp-at-a-glance__item-grid"},u().createElement("div",{className:"jp-at-a-glance__left"},u().createElement("div",{className:"jp-dash-item__interior"},u().createElement(r.Z,{className:"jp-connection-type",label:_x("Site connection","Dashboard widget header","jetpack")},this.siteConnection()))),this.props.userCanConnectAccount&&u().createElement("div",{className:"jp-at-a-glance__right"},u().createElement("div",{className:"jp-dash-item__interior"},u().createElement(r.Z,{className:"jp-connection-type",label:_x("Account connection","Dashboard widget header","jetpack")},this.userConnection())))))}}k.propTypes={siteConnectionStatus:p().any.isRequired,isOfflineMode:p().bool.isRequired,userCanDisconnectSite:p().bool.isRequired,isConnectionOwner:p().bool.isRequired,isLinked:p().bool.isRequired,userGravatar:p().any.isRequired,username:p().any.isRequired};const v=(0,m.$j)((e=>({siteConnectionStatus:(0,h.Gz)(e),isOfflineMode:(0,h.Ex)(e),userCanDisconnectSite:(0,g.WB)(e),userCanConnectAccount:(0,g.n0)(e),userGravatar:(0,g.KF)(e),username:(0,g.Ms)(e),isConnectionOwner:(0,h.QM)(e),isLinked:(0,h.BU)(e),siteIcon:(0,g.ze)(e),isFetchingUserData:(0,h.Dd)(e),wpComConnectedUser:(0,h.tN)(e)})))(k)},6408:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var n=a(6895),s=a(55609),i=a(69307),r=a(65736),o=a(88154),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p),u=a(97436);const __=r.__,_x=r._x,m=["zero-bs-crm/ZeroBSCRM.php"];class h extends p.Component{static propTypes={siteAdminUrl:l().string.isRequired};render(){return d().createElement(o.Z,{iconAlt:__("Plugin icon","jetpack"),iconSrc:u,pluginName:_x("CRM","The Jetpack CRM product name, without the Jetpack prefix","jetpack"),pluginFiles:m,pluginSlug:"zero-bs-crm",pluginLink:this.props.siteAdminUrl+"admin.php?page=zerobscrm-dash",installOrActivatePrompt:(0,i.createInterpolateElement)(__("Sell more and get more leads with the free Jetpack CRM plugin built specifically for WordPress.<br /><ExternalLink>Learn more</ExternalLink>","jetpack"),{ExternalLink:d().createElement(s.ExternalLink,{href:(0,n.Z)("stats-nudges-crm-learn")}),br:d().createElement("br",null)})})}}const g=h},36288:(e,t,a)=>{"use strict";a.d(t,{Z:()=>D});var n=a(82674),s=a.n(n),i=a(88275),r=a(1862),o=a(65736),c=a(69552),l=a(70298),p=a(26551),d=a(69270),u=a(7679),m=a(2353),h=a(84069),g=a(92819),k=a(99196),v=a.n(k),f=a(59309),E=a(96300),_=a(69508),b=a(50416),y=a(15080),w=a(4341),C=a(91248),j=a(92792),S=a(96438),N=a(21475),x=a(6408),R=a(51806),Z=a(73823),T=a(50786),A=a(49260),M=a(39441),P=a(46158),O=a(10242),L=a(86354);const __=o.__;class I extends k.Component{trackSecurityClick=()=>h.Z.tracks.recordJetpackClick("aag_manage_security_wpcom");trackUpgradeButtonView=(e="")=>()=>h.Z.tracks.recordEvent("jetpack_wpa_aag_upgrade_button_view",{feature:e});shouldAddCard=(e,t=!1)=>{const a="inactive"!==this.props.getModuleOverride(e),n=!t||this.props.isModuleAvailable(e);return a&&n};render(){const e={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating,multisite:this.props.multisite},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},a=v().createElement(c.Z,{label:__("Security","jetpack"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isOfflineMode||!this.props.userCanManageModules?"":__("Manage security settings","jetpack"),externalLinkPath:this.props.isOfflineMode?"":"#/security",externalLinkClick:this.trackSecurityClick}),n=v().createElement("div",null,v().createElement(c.Z,{label:__("Connections","jetpack"),className:"jp-dash-section-header__connections"}),v().createElement(N.Z,null)),o=(0,g.get)(this.props.rewindStatus,["state"],""),m=(0,g.get)(this.props.rewindStatus,["reason"],""),k=[],f=!this.props.fetchingScanStatus&&"vp_active_on_site"===this.props.scanStatus?.reason;if(this.props.isAtomicSite||this.props.multisite&&!f||k.push(v().createElement(A.Z,s()({},e,t,{trackUpgradeButtonView:this.trackUpgradeButtonView("scan")}))),k.push(v().createElement(C.Z,s()({},t,{trackUpgradeButtonView:this.trackUpgradeButtonView("akismet")}))),this.shouldAddCard("protect",!0)&&k.push(v().createElement(T.Z,e)),this.shouldAddCard("monitor",!0)&&k.push(v().createElement(R.Z,e)),"active"===o&&k.unshift(v().createElement(w.Z,s()({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){const g=!this.props.multisite&&!this.props.isOfflineMode&&this.props.hasConnectedOwner,f=[];this.shouldAddCard("photon",!0)&&f.push(v().createElement(Z.Z,e)),this.shouldAddCard("search")&&f.push(v().createElement(M.Z,s()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("search")}))),this.shouldAddCard("videopress",!0)&&f.push(v().createElement(L.Z,s()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("videopress")}))),this.props.userCanManagePlugins&&f.push(v().createElement(x.Z,{siteAdminUrl:this.props.siteAdminUrl}));const E=!this.props.isOfflineMode&&this.props.partnerCoupon&&v().createElement(r.es,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,assetBaseUrl:this.props.pluginBaseUrl,connectionStatus:this.props.connectionStatus,partnerCoupon:this.props.partnerCoupon,siteRawUrl:this.props.siteRawUrl,tracksUserData:!!this.props.tracksUserData,analytics:h.Z}),_=g?v().createElement("div",{className:"jp-at-a-glance__pinned-bundle"},v().createElement(P.Z,null),v().createElement(j.Z,s()({},e,{siteRawUrl:this.props.siteRawUrl,rewindStatus:o,rewindStatusReason:m,trackUpgradeButtonView:this.trackUpgradeButtonView("backups")}))):null,b=this.props.userCanManagePlugins?v().createElement("div",{className:"jp-at-a-glance__pinned-bundle"},v().createElement(S.Z,{siteAdminUrl:this.props.siteAdminUrl})):void 0;return v().createElement(i.ZP,null,v().createElement("div",{className:"jp-at-a-glance"},v().createElement("h1",{className:"screen-reader-text"},__("Jetpack At A Glance Dashboard","jetpack")),v().createElement(u.Z,null),v().createElement(d.Z,null),v().createElement(l.Z,null),v().createElement(p.Z,null),E,v().createElement(O.Z,s()({},e,t)),v().createElement(U,{header:a,cards:k,pinnedBundle:_}),v().createElement(U,{header:v().createElement(c.Z,{label:__("Performance and Growth","jetpack")}),cards:f,pinnedBundle:b}),n))}let E="";this.props.userCanViewStats&&(E=v().createElement(O.Z,s()({},e,t)));const _=v().createElement(T.Z,e),b=this.props.getOptionValue("protect")&&this.props.hasConnectedOwner;return this.props.userIsSubscriber?v().createElement("div",null,E,n):v().createElement("div",null,E,b&&a,b&&_,n)}}const D=(0,f.$j)((e=>({userCanManageModules:(0,_.pK)(e),userCanViewStats:(0,_.px)(e),userCanManagePlugins:(0,_.ic)(e),userIsSubscriber:(0,_.dc)(e),isAtomicSite:(0,_.Ug)(e),isOfflineMode:(0,E.Ex)(e),getModuleOverride:t=>(0,b.Qy)(e,t),isModuleAvailable:t=>(0,b.v1)(e,t),multisite:(0,_.TA)(e),scanStatus:(0,y.C8)(e),fetchingScanStatus:(0,y.gE)(e),hasConnectedOwner:(0,E.it)(e),connectionStatus:(0,E.Zp)(e),partnerCoupon:(0,_.DV)(e),pluginBaseUrl:(0,_.wB)(e),tracksUserData:(0,_.hv)(e),apiRoot:(0,_.yB)(e),apiNonce:(0,_.VY)(e),registrationNonce:(0,_.H$)(e)})))((0,m.u)(I)),U=({cards:e=[],header:t,pinnedBundle:a})=>e.length?v().createElement(v().Fragment,null,t,a,(0,g.chunk)(e,2).map((([e,t],a)=>v().createElement("div",{className:"jp-at-a-glance__item-grid",key:`card-${a}`},v().createElement("div",{className:"jp-at-a-glance__left"},e),v().createElement("div",{className:"jp-at-a-glance__right"},t))))):null},51806:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(6895),s=a(69307),i=a(65736),r=a(97506),o=a(43255),c=a(84069),l=a(25162),p=a.n(l),d=a(99196),u=a.n(d),m=a(59309),h=a(96300),g=a(50416);const __=i.__;class k extends d.Component{static propTypes={isOfflineMode:p().bool.isRequired,isModuleAvailable:p().bool.isRequired,hasConnectedOwner:p().bool.isRequired};activateAndTrack=()=>{c.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),this.props.updateOptions({monitor:!0})};connect=()=>this.props.connectUser();getContent(){const e=__("Downtime monitoring","jetpack"),t={text:__("Jetpack’s downtime monitor will continuously monitor your site and alert you the moment that downtime is detected.","jetpack"),link:(0,n.Z)("jetpack-support-monitor")};if(this.props.getOptionValue("monitor")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner)return u().createElement(o.Z,{label:e,module:"monitor",support:t,status:"is-working"},u().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is monitoring your site. If we think your site is down, you will receive an email.","jetpack")));const a=this.props.hasConnectedOwner?(0,s.createInterpolateElement)(__("<Button>Activate Monitor</Button> to receive email notifications if your site goes down.","jetpack"),{Button:u().createElement(r.Z,{className:"jp-link-button",onClick:this.activateAndTrack})}):__("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack");return u().createElement(o.Z,{label:e,module:"monitor",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},u().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode.","jetpack"):a),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&u().createElement("p",{className:"jp-dash-item__description jp-dash-item__connect"},(0,s.createInterpolateElement)(__("<Button>Connect your WordPress.com</Button> account to use this feature.","jetpack"),{Button:u().createElement(r.Z,{className:"jp-link-button",onClick:this.connect})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}const v=(0,m.$j)((e=>({isOfflineMode:(0,h.Ex)(e),isModuleAvailable:(0,g.v1)(e,"monitor"),hasConnectedOwner:(0,h.it)(e)})),(e=>({connectUser:()=>e((0,h.bL)())})))(k)},73823:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(6895),s=a(69307),i=a(65736),r=a(97506),o=a(43255),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p),u=a(59309),m=a(96300),h=a(50416);const __=i.__;class g extends p.Component{static propTypes={isOfflineMode:l().bool.isRequired,isModuleAvailable:l().bool.isRequired};activatePhoton=()=>this.props.updateOptions({photon:!0});getContent(){const e=__("Image Accelerator","jetpack"),t={text:__("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"),link:(0,n.Z)("jetpack-support-photon")};return this.props.getOptionValue("photon")?d().createElement(o.Z,{label:e,module:"photon",support:t,status:"is-working"},d().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is optimizing your image sizes and download speed using our fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"))):d().createElement(o.Z,{label:e,module:"photon",support:t,className:"jp-dash-item__is-inactive"},d().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,s.createInterpolateElement)(__("<Button>Activate</Button> to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"),{Button:d().createElement(r.Z,{className:"jp-link-button",onClick:this.activatePhoton})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}const k=(0,u.$j)((e=>({isOfflineMode:(0,m.Ex)(e),isModuleAvailable:(0,h.v1)(e,"photon")})))(g)},50786:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(6895),s=a(52947),i=a(69307),r=a(65736),o=a(97506),c=a(43255),l=a(4681),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u),h=a(59309),g=a(17296),k=a(96300),v=a(50416);const __=r.__;class f extends u.Component{static propTypes={isOfflineMode:d().bool.isRequired,protectCount:d().any.isRequired,isModuleAvailable:d().bool.isRequired,hasConnectedOwner:d().bool.isRequired,connectUser:d().func.isRequired};activateProtect=()=>this.props.updateOptions({protect:!0});connect=()=>this.props.connectUser();getContent(){const e=__("Brute force protection","jetpack"),t={text:__("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:(0,n.Z)("jetpack-support-protect")};if(this.props.getOptionValue("protect")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner){const a=this.props.protectCount;return"N/A"===a?m().createElement(c.Z,{label:e,module:"protect",support:t},m().createElement("p",{className:"jp-dash-item__description"},__("Loading…","jetpack"))):0===a?m().createElement(c.Z,{label:e,module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},m().createElement("div",{className:"jp-dash-item__recently-activated-lower"},m().createElement(l.Z,null),m().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is actively blocking malicious login attempts. Data will display here soon!","jetpack")))):m().createElement(c.Z,{label:e,module:"protect",support:t,status:"is-working"},m().createElement("h2",{className:"jp-dash-item__count"},(0,s.Z)(a)),m().createElement("p",{className:"jp-dash-item__description"},__("Total malicious attacks blocked on your site.","jetpack")))}return m().createElement(c.Z,{label:e,module:"protect",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},m().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode&&__("Unavailable in Offline Mode","jetpack"),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&(0,i.createInterpolateElement)(__("<Button>Connect your WordPress.com</Button> account to keep your site protected from malicious sign in attempts.","jetpack"),{Button:m().createElement(o.Z,{className:"jp-link-button",onClick:this.connect})}),!this.props.isOfflineMode&&this.props.hasConnectedOwner&&(0,i.createInterpolateElement)(__("<Button>Activate Protect</Button> to keep your site protected from malicious sign in attempts.","jetpack"),{Button:m().createElement(o.Z,{className:"jp-link-button",onClick:this.activateProtect})})))}render(){return this.props.isModuleAvailable&&m().createElement("div",{className:"jp-dash-item__interior"},m().createElement(l.Z,{isActive:this.props.getOptionValue("protect")}),this.getContent())}}const E=(0,h.$j)((e=>({protectCount:(0,g.xz)(e),isOfflineMode:(0,k.Ex)(e),isModuleAvailable:(0,v.v1)(e,"protect"),hasConnectedOwner:(0,k.it)(e)})),(e=>({connectUser:()=>e((0,k.bL)())})))(f)},49260:(e,t,a)=>{"use strict";a.d(t,{Z:()=>T});var n=a(64743),s=a(6895),i=a(52947),r=a(69307),o=a(65736),c=a(97506),l=a(85799),p=a(43255),d=a(41549),u=a(85733),m=a(84069),h=a(59584),g=a(92819),k=a(1137),v=a(25162),f=a.n(v),E=a(99196),_=a.n(E),b=a(59309),y=a(17296),w=a(96300),C=a(69508),j=a(15080),S=a(33002),N=a(61372);const __=o.__,_n=o._n,_x=o._x,x=e=>_().createElement(p.Z,{label:__("Scan","jetpack"),module:e.feature||"scan",support:{text:__("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data.","jetpack"),link:(0,s.Z)("jetpack-support-security")},className:e.className||"",status:e.status||"",pro:!0,overrideContent:e.overrideContent},(0,g.isArray)(e.content)?e.content.map(((e,t)=>_().createElement(_().Fragment,{key:t},e))):_().createElement("p",{className:"jp-dash-item__description"},e.content)),R=e=>x({className:"jp-dash-item__is-active",status:"is-working",content:e});class Z extends E.Component{static propTypes={siteRawUrl:f().string.isRequired,siteAdminUrl:f().string.isRequired,trackUpgradeButtonView:f().func,vaultPressData:f().any.isRequired,scanThreats:f().any.isRequired,sitePlan:f().object.isRequired,isOfflineMode:f().bool.isRequired,isVaultPressInstalled:f().bool.isRequired,fetchingSiteData:f().bool.isRequired,upgradeUrl:f().string.isRequired,hasConnectedOwner:f().bool.isRequired};static defaultProps={siteRawUrl:"",siteAdminUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isOfflineMode:!1,isVaultPressInstalled:!1,fetchingSiteData:!1,trackUpgradeButtonView:g.noop};trackScansClick=()=>{m.Z.tracks.recordJetpackClick({type:"scans-link",target:"at-a-glance",feature:"scans"})};onActivateVaultPressClick=()=>(m.Z.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"vaultpress"}),this.props.createNotice("is-info",__("Activating VaultPress…","jetpack"),{id:"activating-vaultpress"}),n.ZP.activateVaultPress().then((()=>{this.props.removeNotice("activating-vaultpress"),window.location.href=this.props.siteAdminUrl+"admin.php?page=vaultpress"})).catch((()=>{this.props.removeNotice("activating-vaultpress"),this.props.createNotice("is-error",__("Could not activate VaultPress.","jetpack"),{id:"activate-vaultpress-failure"})})),!1);getVPContent(){const{vaultPressData:e,hasConnectedOwner:t}=this.props;if("not_registered"===e?.code)return x({className:"jp-dash-item__is-inactive",status:"not-registered",content:(0,r.createInterpolateElement)(__("VaultPress is having difficulties scanning. Please make sure your <keyLink>registration key is entered</keyLink>. If you require further assistance please <supportLink>contact support</supportLink>.","jetpack"),{keyLink:_().createElement("a",{href:this.props.siteAdminUrl+"admin.php?page=vaultpress"}),supportLink:_().createElement("a",{href:(0,s.Z)("vaultpress-help")})})});if((0,g.get)(e,["data","features","security"],!1)){const t=this.props.scanThreats;if(0!==t)return this.renderThreatsFound(t,(0,s.Z)("vaultpress-dashboard"));if("success"===e.code)return x({status:"is-working",content:__("No threats found, you're good to go!","jetpack")})}if(this.props.fetchingSiteData)return x({content:__("Loading…","jetpack")});const a=!1!==this.props.sitePlan,n=["is-premium-plan","is-business-plan"].includes(this.props.planClass);return a&&n?this.props.isVaultPressInstalled?x({className:"jp-dash-item__is-inactive",status:"pro-inactive",content:[_().createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},(0,r.createInterpolateElement)(__("VaultPress is not active, <Button>please activate</Button> to enable automatic scanning for security for threats.","jetpack"),{Button:_().createElement(c.Z,{className:"jp-link-button",onClick:this.onActivateVaultPressClick})}))]}):x({className:"jp-dash-item__is-inactive",status:"pro-uninstalled",content:[_().createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},(0,r.createInterpolateElement)(__("VaultPress is not installed, <a>please install</a> to enable automatic scanning for security for threats.","jetpack"),{a:_().createElement("a",{href:(0,s.Z)("calypso-plugins-vaultpress"),target:"_blank",rel:"noopener noreferrer"})}))]}):x({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:t?this.getUpgradeBanner():this.getConnectBanner()})}getUpgradeBanner(){return _().createElement(u.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Purchase Jetpack Scan to protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"scan",path:"dashboard",plan:(0,h.o2o)(h.eMt),trackBannerDisplay:this.props.trackUpgradeButtonView,noIcon:!0})}getConnectBanner(){return _().createElement(u.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade to Jetpack Scan and protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"scan",path:"dashboard",plan:(0,h.o2o)(h.eMt)})}renderAction(e,t){return this.props.isAtomicSite?null:_().createElement(l.Z,{compact:!0,key:"manage-scan",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer",onClick:this.trackScansClick},t)}renderThreatsFound(e,t){return _().createElement(_().Fragment,null,R([_().createElement("h2",{className:"jp-dash-item__count is-alert"},(0,i.Z)(e)),_().createElement("p",{className:"jp-dash-item__description"},(0,r.createInterpolateElement)(_n("Security threat found. <a>Click here</a> to fix them immediately.","Security threats found. <a>Click here</a> to fix them immediately.",e,"jetpack"),{a:_().createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"})}))]),this.renderAction(t,__("View security scan details","jetpack")))}getRewindContent(){const{scanStatus:e,siteRawUrl:t}=this.props,a=(0,s.Z)("calypso-scanner",{site:t});if(Array.isArray(e.threats)&&e.threats.length>0)return this.renderThreatsFound(e.threats.length,a);if(e.credentials&&0===e.credentials.length)return _().createElement(_().Fragment,null,R(__("Enter your SSH, SFTP, or FTP credentials to enable one-click fixes","jetpack")),this.renderAction((0,s.Z)("jetpack-scan-dash-credentials",{site:t}),__("Enter credentials","jetpack")));switch(e.state){case"provisioning":return _().createElement(_().Fragment,null,R(__("We are configuring your site protection.","jetpack")));case"idle":case"scanning":return _().createElement(_().Fragment,null,R(__("No security threats found. Your site will continue to be monitored for future threats.","jetpack")),this.renderAction((0,s.Z)("calypso-scanner",{site:t}),__("View security scan details","jetpack")))}return!1}getUpgradeContent(){const{hasConnectedOwner:e}=this.props;return x({className:"jp-dash-item__is-inactive",overrideContent:e?this.getUpgradeBanner():this.getConnectBanner()})}getContent(){const{scanStatus:e}=this.props;return e.state&&"unavailable"!==e.state?_().createElement("div",{className:"jp-dash-item"},this.getRewindContent()):"vp_active_on_site"===e.reason?this.getVPContent():this.getUpgradeContent()}render(){if(!this.props.showBackups)return null;if(this.props.isOfflineMode)return x({className:"jp-dash-item__is-inactive",content:__("Unavailable in Offline Mode.","jetpack")});const e=this.props.fetchingScanStatus||this.props.fetchingVaultPressData;return _().createElement("div",null,e?x({content:__("Loading…","jetpack")}):this.getContent())}}const T=(0,b.$j)((e=>{const t=(0,S.UL)(e);return{isAtomicSite:(0,C.Ug)(e),isOfflineMode:(0,w.Ex)(e),scanStatus:(0,j.C8)(e),fetchingScanStatus:(0,j.gE)(e),isVaultPressInstalled:(0,N.P8)(e,"vaultpress/vaultpress.php"),fetchingVaultPressData:(0,y.P_)(e),vaultPressData:(0,y.XK)(e),scanThreats:(0,y._R)(e),fetchingSiteData:(0,S._5)(e),sitePlan:t,planClass:(0,h.scx)((0,g.get)(t,"product_slug","")),showBackups:(0,C.xR)(e),upgradeUrl:(0,k.z)(e,"scan"),hasConnectedOwner:(0,w.it)(e)}}),(e=>({createNotice:d.iI,removeNotice:d.qq,connectUser:()=>e((0,w.bL)())})))(Z)},39441:(e,t,a)=>{"use strict";a.d(t,{Z:()=>N});var n=a(6895),s=a(69307),i=a(65736),r=a(97506),o=a(85799),c=a(43255),l=a(85733),p=a(84069),d=a(59584),u=a(92819),m=a(1137),h=a(25162),g=a.n(h),k=a(99196),v=a.n(k),f=a(59309),E=a(96300),_=a(69508),b=a(33002);const __=i.__,_x=i._x,y=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),w=__("Customize your Search experience.","jetpack"),C=__("Search supports many customizations. ","jetpack"),j=e=>v().createElement(c.Z,{label:__("Search","jetpack"),module:"search",support:{text:C,link:(0,n.Z)("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent},v().createElement("p",{className:"jp-dash-item__description"},e.content));class S extends k.Component{static propTypes={getOptionValue:g().func.isRequired,trackUpgradeBanner:g().func,isOfflineMode:g().bool.isRequired,hasConnectedOwner:g().bool.isRequired};static defaultProps={getOptionValue:u.noop,isOfflineMode:!1,trackUpgradeBanner:u.noop};trackConfigureSearchLink=()=>{p.Z.tracks.recordJetpackClick({type:"configure-search-link",target:"at-a-glance",feature:"search"})};trackAddSearchWidgetLink=()=>{p.Z.tracks.recordJetpackClick({type:"search-widget-link",target:"at-a-glance",feature:"search"})};trackAddSearchBlockLink=()=>{p.Z.tracks.recordJetpackClick({type:"search-block-link",target:"at-a-glance",feature:"search"})};activateSearch=()=>{this.props.updateOptions({search:!0,...this.props.hasInstantSearch?{instant_search_enabled:!0}:{}})};render(){return this.props.isFetching?j({status:"",content:__("Loading…","jetpack")}):this.props.isOfflineMode?j({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:__("Unavailable in Offline Mode","jetpack")}):this.props.hasClassicSearch||this.props.hasInstantSearch?this.props.getOptionValue("search")?v().createElement("div",{className:"jp-dash-item"},v().createElement(c.Z,{label:__("Search","jetpack"),module:"search",support:{text:C,link:(0,n.Z)("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0},v().createElement("p",{className:"jp-dash-item__description"},__("Jetpack Search is powering search on your site.","jetpack"))),this.props.hasInstantSearch&&v().createElement(o.Z,{compact:!0,className:"jp-search-config-aag",href:"admin.php?page=jetpack-search-configure",onClick:this.trackConfigureSearchLink},w),!this.props.hasInstantSearch&&!this.props.isBlockThemeActive&&v().createElement(o.Z,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets",onClick:this.trackAddSearchWidgetLink},__("Add Search (Jetpack) Widget","jetpack")),!this.props.hasInstantSearch&&this.props.isBlockThemeActive&&v().createElement(o.Z,{compact:!0,className:"jp-search-config-aag",href:"site-editor.php",onClick:this.trackAddSearchBlockLink},__("Add a Search Block","jetpack"))):j({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,s.createInterpolateElement)(__("<Button>Activate</Button> to help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),{Button:v().createElement(r.Z,{className:"jp-link-button",onClick:this.activateSearch})})}):j({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:this.props.hasConnectedOwner?v().createElement(l.ZP,{callToAction:(0,m.I)()?__("Start for free","jetpack"):_x("Upgrade","Call to action to buy a new plan","jetpack"),title:y,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"search",path:"dashboard",plan:(0,d.o2o)(d.T54),icon:"search",trackBannerDisplay:this.props.trackUpgradeButtonView,noIcon:!0}):v().createElement(l.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get Jetpack Search, which helps your visitors instantly find the right content – right when they need it.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"search",path:"dashboard",plan:(0,d.o2o)(d.T54),noIcon:!0})})}}const N=(0,f.$j)((e=>({isBlockThemeActive:(0,_.$2)(e),isOfflineMode:(0,E.Ex)(e),isFetching:(0,b.GR)(e),hasClassicSearch:(0,b.CV)(e,"search"),hasInstantSearch:(0,b.CV)(e,"instant-search"),upgradeUrl:(0,m.z)(e,"search"),hasConnectedOwner:(0,E.it)(e)})),(e=>({connectUser:()=>e((0,E.bL)())})))(S)},46158:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(6895),s=a(69307),i=a(65736),r=a(97506),o=a(85799),c=a(84069),l=a(1137),p=a(99196),d=a.n(p),u=a(59309),m=a(33002),h=a(5060),g=a(80118);const __=i.__,_x=i._x;class k extends p.Component{trackUpgradeClick=()=>{c.Z.tracks.recordJetpackClick({page:"aag",target:"upgrade-button",feature:"security"})};render(){const{hasActiveSecurityPurchase:e,isFetchingSitePurchases:t}=this.props;return e||t?null:d().createElement(o.Z,{className:"dash-security-bundle"},d().createElement("div",{className:"dash-security-bundle--icon"},d().createElement("img",{src:g,alt:__("A shield and check mark representing the Jetpack Security Bundle","jetpack")})),d().createElement("div",{className:"dash-security-bundle--content"},d().createElement("div",{className:"dash-security-bundle--content-info"},d().createElement("h3",null,__("Comprehensive Site Security","jetpack")),d().createElement("p",null,(0,s.createInterpolateElement)(__("Total protection for your site, including<br /> VaultPress Backup, Scan, and Akismet Anti-spam.","jetpack"),{br:d().createElement("br",null)}))),d().createElement("div",{className:"dash-security-bundle--content-cta"},d().createElement(r.Z,{className:"dash-security-bundle--content-cta-button",href:this.props.productDescriptionUrl,onClick:this.trackUpgradeClick,primary:!0},_x("Upgrade","Call to action to buy a new plan","jetpack")),d().createElement(r.Z,{className:"dash-security-bundle--content-cta-button",href:(0,n.Z)("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"},_x("Learn more","Learn more about the new plan","jetpack"),d().createElement(h.Z,{className:"dops-card__link-indicator",icon:"external"})))))}}const v=(0,u.$j)((e=>({hasActiveSecurityPurchase:(0,m.VL)(e),isFetchingSitePurchases:(0,m.GR)(e),productDescriptionUrl:(0,l.z)(e,"security")})))(k)},33361:(e,t,a)=>{"use strict";a.d(t,{Z:()=>_});var n=a(52947),s=a(6895),i=a(55609),r=a(69771),o=a(69307),c=a(65736),l=a(3228),p=a(97506),d=a(57633),u=a(84069),m=a(25162),h=a.n(m),g=a(99196),k=a.n(g),v=a(59309),f=a(69508);const __=c.__,_x=c._x,_n=c._n;class E extends g.Component{statsBottom(){let e;return e="object"==typeof 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}}]}trackViewDetailedStats=()=>u.Z.tracks.recordJetpackClick("view_detailed_stats");trackViewWpcomStats=()=>u.Z.tracks.recordJetpackClick("view_wpcom_stats");render(){const e=this.statsBottom()[0];return k().createElement("div",null,k().createElement("div",{className:"jp-at-a-glance__stats-summary"},k().createElement("div",{className:"jp-at-a-glance__stats-summary-today"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Views today","Referring to a number of page views","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),k().createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Best overall day","Referring to a number of page views","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,c.sprintf)(/* Translators: placeholder is a number of views. */ _n("%s View","%s Views",e.bestDay.count,"jetpack"),(0,n.Z)(e.bestDay.count))),k().createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,r.dateI18n)(this.props.dateFormat,e.bestDay.day))),k().createElement("div",{className:"jp-at-a-glance__stats-summary-alltime-views"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time views","Referring to a number of page views","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,n.Z)(e.allTime.views))),k().createElement("div",{className:"jp-at-a-glance__stats-summary-alltime-comments"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time comments","Referring to a number of comments","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,n.Z)(e.allTime.comments)))),k().createElement("div",{className:"jp-at-a-glance__stats-cta"},k().createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),k().createElement("div",{className:"jp-at-a-glance__stats-ctas"},(0,o.createInterpolateElement)(__("<button>View detailed stats</button>","jetpack"),{button:k().createElement(p.Z,{href:this.props.siteAdminUrl+"admin.php?page=stats",onClick:this.trackViewDetailedStats,primary:!0})}),!this.props.isLinked&&this.props.userCanConnectAccount&&k().createElement(d.Z,{connectUser:!0,from:"unlinked-user-connect",connectLegend:__("Connect your WordPress.com account for more metrics","jetpack")}),this.props.isLinked&&!this.props.isOdysseyStatsEnabled&&(0,o.createInterpolateElement)(__("<ExternalLink>View on WordPress.com</ExternalLink>","jetpack"),{ExternalLink:k().createElement(i.ExternalLink,{onClick:this.trackViewWpcomStats,href:(0,s.Z)("calypso-stats-insights",{site:this.props.siteRawUrl}),rel:"noopener noreferrer",target:"_blank",className:(0,l.Z)("jp-at-a-glance__stats-ctas-wpcom-stats",this.props.className)})}))))}}E.propTypes={siteRawUrl:h().string.isRequired,siteAdminUrl:h().string.isRequired,statsData:h().object.isRequired,isLinked:h().bool.isRequired,dateFormat:h().string.isRequired},E.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1,dateFormat:"F j, Y"};const _=(0,v.$j)((e=>({isOdysseyStatsEnabled:(0,f.ij)(e),isWoASite:(0,f.Pw)(e),userCanConnectAccount:(0,f.n0)(e)})))(E)},10242:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Z});var n=a(6895),s=a(52947),i=a(78868),r=a(55609),o=a(69771),c=a(69307),l=a(65736),p=a(97506),d=a(85799),u=a(53068),m=a(69552),h=a(67619),g=a(39224),k=a(84069),v=a(92819),f=a(25162),E=a.n(f),_=a(99196),b=a.n(_),y=a(59309),w=a(17296),C=a(96300),j=a(69508),S=a(50416),N=a(3230),x=a(33361);const __=l.__;class R extends _.Component{static propTypes={isOfflineMode:E().bool.isRequired,siteRawUrl:E().string.isRequired,siteAdminUrl:E().string.isRequired,statsData:E().any.isRequired,isModuleAvailable:E().bool.isRequired};constructor(e){super(e),this.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed}}shouldLinkToWpcomStats(){return!this.props.isOdysseyStatsEnabled}barClick=e=>{e.data.link&&(k.Z.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,this.props.isOdysseyStatsEnabled?"_self":"_blank"))};statsChart(e){const{siteAdminUrl:t,siteRawUrl:a,statsData:i}=this.props,r=[];let c=0;const/* translators: short date format, such as: Jan 12. */ p=__("M j","jetpack"), /* translators: long date format, such as: January 12th. */ d=__("F jS","jetpack"), /* translators: long month/year format, such as: January, 2021. */ u=__("F Y","jetpack");return"object"!=typeof i[e]?{chartData:r,totalViews:!1}:((0,v.forEach)(i[e].data,(i=>{const m=i[1];let h=i[0],g="",k="";c+=m,"day"===e?(g=(0,o.dateI18n)(p,h),k=(0,o.dateI18n)(d,h)):"week"===e?(h=h.replace(/W/g,"-"),g=(0,o.dateI18n)(p,h),k=(0,l.sprintf)(/* translators: placeholder is a date. */ __("Week of %s","jetpack"),(0,o.dateI18n)(d,h))):"month"===e&&(g=(0,o.dateI18n)("M",h),k=(0,o.dateI18n)(u,h)),r.push({label:g,value:m,nestedValue:null,className:"statsChartbar",data:{link:this.shouldLinkToWpcomStats()?(0,n.Z)(`calypso-stats-${e}`,{site:a,query:`startDate=${h}`}):`${t}admin.php?page=stats#!/stats/day/${a}?startDate=${h}`},tooltipData:[{label:k,value:(0,l.sprintf)(/* translators: placeholder is a number */ __("Views: %s","jetpack"),(0,s.Z)(m)),className:"tooltip class"}]})})),{chartData:r,totalViews:c})}statsErrors(){return(0,v.get)(this.props.statsData,["general","errors"],!1)}renderStatsChart(e){return b().createElement("div",{className:"jp-at-a-glance__stats-chart-container"},b().createElement("div",{className:"jp-at-a-glance__stats-chart"},b().createElement(u.Z,{data:e,barClick:this.barClick}),0===e.length&&b().createElement(r.Spinner,null)),b().createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},b().createElement(x.Z,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,dateFormat:this.props.dateFormat})))}dismissCard=()=>{this.setState({emptyStatsDismissed:!0}),this.props.updateOptions({dismiss_empty_stats_card:!0})};renderEmptyStatsCard(){return b().createElement(d.Z,{className:"jp-at-a-glance__stats-empty-container"},b().createElement("div",{className:"jp-at-a-glance__stats-empty"},b().createElement(i.Z,{height:64,showText:!1}),b().createElement("p",null,__("Hello there! Jetpack Stats has been activated.","jetpack"),b().createElement("br",null),__("Just give us a little time to collect data so we can display it for you here.","jetpack")),b().createElement(p.Z,{onClick:this.dismissCard,primary:!0},__("Okay, got it!","jetpack"))))}activateStats=e=>{this.props.updateOptions({stats:!0}),e.preventDefault()};renderStatsArea(){if(this.props.getOptionValue("stats")){if(this.statsErrors())return b().createElement("div",{className:"jp-at-a-glance__stats-inactive"},b().createElement("span",null,(0,c.createInterpolateElement)(__("Something happened while loading Jetpack Stats. Please try again later or <a>view your stats now on WordPress.com</a>","jetpack"),{a:b().createElement("a",{href:(0,n.Z)("calypso-stats-insights",{site:this.props.siteRawUrl})})})));const e=this.statsChart(this.props.activeTab),t=e.chartData,a=e.totalViews,s=t.length&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return b().createElement("div",{className:"jp-at-a-glance__stats-container"+(s&&" jp-at-a-glance__stats-container-empty")},s?this.renderEmptyStatsCard():"",this.renderStatsChart(t))}return b().createElement("div",{className:"jp-at-a-glance__stats-inactive"},b().createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},b().createElement(i.Z,{height:40,showText:!1})),b().createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):b().createElement(b().Fragment,null,b().createElement("h3",null," ",__("Activate Jetpack Stats","jetpack")),(0,c.createInterpolateElement)(__("Get insights on page views, likes, subscribers, and more! <a1>Learn More</a1>","jetpack"),{a1:b().createElement(r.ExternalLink,{href:(0,n.Z)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})}))),!this.props.isOfflineMode&&b().createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},b().createElement(p.Z,{onClick:this.activateStats,primary:!0},__("Activate Stats","jetpack"))))}switchTo(e){k.Z.tracks.recordJetpackClick({target:"stats_switch_view",view:e}),this.props.switchView(e),this.props.fetchStatsData(e)}switchToDay=e=>{this.switchTo("day"),e.preventDefault()};switchToWeek=e=>{this.switchTo("week"),e.preventDefault()};switchToMonth=e=>{this.switchTo("month"),e.preventDefault()};maybeShowStatsTabs(){return!(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)&&(this.props.getOptionValue("stats")&&!this.statsErrors()?b().createElement("ul",{className:"jp-at-a-glance__stats-views"},b().createElement("li",{className:"jp-at-a-glance__stats-view"},b().createElement("a",{tabIndex:"0",href:"#",onClick:this.switchToDay,className:this.getClass("day")},__("Days","jetpack"))),b().createElement("li",{className:"jp-at-a-glance__stats-view"},b().createElement("a",{tabIndex:"0",href:"#",onClick:this.switchToWeek,className:this.getClass("week")},__("Weeks","jetpack"))),b().createElement("li",{className:"jp-at-a-glance__stats-view"},b().createElement("a",{tabIndex:"0",href:"#",onClick:this.switchToMonth,className:this.getClass("month")},__("Months","jetpack")))):void 0)}getClass(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}render(){return"inactive"===this.props.getModuleOverride("stats")?b().createElement("div",null,b().createElement(g.Z,{moduleName:__("Jetpack Stats","jetpack")})):this.props.isModuleAvailable&&b().createElement("div",null,b().createElement(h.Z,{range:this.props.activeTab}),b().createElement(m.Z,{label:__("Jetpack Stats","jetpack"),className:"jp-dash-section-header-stats"},this.maybeShowStatsTabs()),b().createElement(d.Z,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},this.renderStatsArea()))}}const Z=(0,y.$j)((e=>({isModuleAvailable:(0,S.v1)(e,"stats"),activeTab:(0,w.l5)(e),dateFormat:(0,j.mh)(e),isOfflineMode:(0,C.Ex)(e),isLinked:(0,C.BU)(e),connectUrl:(0,C.AM)(e),statsData:(0,v.isEmpty)((0,w.yZ)(e))?(0,j.Uu)(e):(0,w.yZ)(e),isEmptyStatsCardDismissed:(0,N.g0)(e),getModuleOverride:t=>(0,S.Qy)(e,t),isOdysseyStatsEnabled:(0,j.ij)(e),isAtomicSite:(0,j.Ug)(e)})),(e=>({switchView:t=>e((0,w.D3)(t)),fetchStatsData:t=>e((0,w.g4)(t))})))(R)},86354:(e,t,a)=>{"use strict";a.d(t,{Z:()=>y});var n=a(6895),s=a(94343),i=a(69307),r=a(65736),o=a(97506),c=a(43255),l=a(85733),p=a(59584),d=a(92819),u=a(1137),m=a(25162),h=a.n(m),g=a(99196),k=a.n(g),v=a(59309),f=a(96300),E=a(50416),_=a(33002);const __=r.__,_x=r._x;class b extends g.Component{static propTypes={hasConnectedOwner:h().bool.isRequired,isOffline:h().bool.isRequired,isModuleAvailable:h().bool.isRequired,trackUpgradeButtonView:h().func};static defaultProps={trackUpgradeButtonView:d.noop};activateVideoPress=()=>this.props.updateOptions({videopress:!0});getContent(){const e=__("VideoPress","jetpack"),t={text:__("Engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. With Jetpack VideoPress, you can customize your video player to deliver your message without the distraction.","jetpack"),link:(0,n.Z)("jetpack-support-videopress")},{hasConnectedOwner:a,hasVideoPressFeature:d,hasVideoPressUnlimitedStorage:u,isFetching:m,isOffline:h,upgradeUrl:g,videoPressStorageUsed:v}=this.props,f=d&&!u&&null!==v,E=a&&!d&&!h&&!m,_=d||null===v||0!==v?__("You have used your free video. Upgrade now to unlock more videos and 1TB of storage.","jetpack",0):__("1 free video available. Upgrade now to unlock more videos and 1TB of storage.","jetpack");return this.props.getOptionValue("videopress")&&a&&!h?k().createElement(c.Z,{className:"jp-dash-item__videopress",label:e,module:"videopress",support:t,status:"is-working",overrideContent:k().createElement(k().Fragment,null,k().createElement("div",{className:"dops-card jp-dash-item__card"},k().createElement("p",{className:"jp-dash-item__description"},__("VideoPress is enabled and will optimize your videos for smooth playback on any device. To add a new video, upload it to the Media Library or Post Editor.","jetpack")),f&&k().createElement("div",{className:"jp-dash-item__videopress-storage"},k().createElement(s.Z,{progress:v/1e6}),k().createElement("span",null,(0,i.createInterpolateElement)((0,r.sprintf)(/* translators: %s is a number (disk space used) */ __("Using <strong>%dGB</strong> of 1TB","jetpack"),Math.round(v/1024)),{strong:k().createElement("strong",null)})))),E&&k().createElement(l.ZP,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:_,disableHref:"false",eventFeature:"videopress",noIcon:!0,path:"dashboard",plan:(0,p.o2o)(p.qbT),feature:"jetpack_videopress",href:g,trackBannerDisplay:this.props.trackUpgradeButtonView}))}):k().createElement(c.Z,{label:e,module:"videopress",support:t,className:"jp-dash-item__is-inactive",noToggle:!a,overrideContent:a||h?null:k().createElement(l.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"videopress",path:"dashboard",plan:(0,p.o2o)(p.qbT),icon:"video"})},k().createElement("p",{className:"jp-dash-item__description"},h?__("Unavailable in Offline Mode","jetpack"):(0,i.createInterpolateElement)(__("<Button>Activate</Button> to engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. Try it for free.","jetpack"),{Button:k().createElement(o.Z,{className:"jp-link-button",onClick:this.activateVideoPress})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}const y=(0,v.$j)((e=>({hasConnectedOwner:(0,f.it)(e),hasVideoPressFeature:(0,_.CV)(e,"videopress-1tb-storage")||(0,_.CV)(e,"videopress-unlimited-storage")||(0,_.CV)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,_.CV)(e,"videopress-unlimited-storage"),isModuleAvailable:(0,E.v1)(e,"videopress"),isOffline:(0,f.Ex)(e),isFetching:(0,_.GR)(e),sitePlan:(0,_.UL)(e),upgradeUrl:(0,u.z)(e,"videopress"),videoPressStorageUsed:(0,_.VH)(e)})),(e=>({connectUser:()=>e((0,f.bL)())})))(b)},57301:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(19567),s=a.n(n),i=a(99196),r=a.n(i);class o extends r().Component{adminNoticesRef=r().createRef();componentDidMount(){const e=s()(this.adminNoticesRef.current),t=s()(".vp-deactivated");t.length>0&&t.each((function(){const t=s()(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"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></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"><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"/></svg><span class="screen-reader-text"/></span>'),t.find("h2").replaceWith((function(){return s()("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return s()("<div/>",{html:this.innerHTML})})),t.prependTo(e).css("display","flex")}));const a=s()(".vp-notice");a.length>0&&a.each((function(){const t=s()(this);if(0===t.find(".dops-notice__icon").length){const e=t.hasClass("vp-registered"),a=e?"is-success":"is-error";t.addClass("dops-notice vp-notice-jp "+a),t.wrapInner('<span class="dops-notice__content">');const n=e?'<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"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></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"><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"/></svg></span>';t.find(".dops-notice__content").before(n),t.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),t.find("h3").replaceWith((function(){return s()("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return s()("<div/>",{html:this.innerHTML})})),t.css("display","flex")}t.find('a[href*="admin.php?page=vaultpress"]').remove(),t.prependTo(e).removeClass("wrap vp-notice")}));const n=s()(".woocommerce-message");n.length>0&&n.each((function(){const t=s()(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"/>');const a=t.find(".dops-notice__text");a.find("p").replaceWith((function(){return s()("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})})),a.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(a),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)}));const i=s()(".notice");i.length>0&&i.each((function(){s()(this).hide()})),e.length>0&&s()(".dops-notice__dismiss").on("click",(function(){s()(this).parent().closest("div").hide()}))}render(){return r().createElement("div",{id:"jp-admin-notices",ref:this.adminNoticesRef,"aria-live":"polite"})}}const c=o},20408:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(80800),s=a(98709),i=a(65736),r=a(3228),o=a(92819),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p);const __=i.__,u={ios:{defaultSrc:n.hp+"/get-apps-ios-store.svg",src:"https://linkmaker.itunes.apple.com/assets/shared/badges/{localeSlug}/appstore-lrg.svg",tracksEvent:"calypso_app_download_ios_click",getStoreLink:e=>`https://apps.apple.com/app/apple-store/id1565481562?pt=299112&ct=${e}&mt=8`,getTitleText:()=>__("Download the Jetpack iOS mobile app.","jetpack"),getAltText:()=>__("Apple App Store download badge","jetpack"),getLocaleSlug:function(){const e=(0,s.X)().split("-")[0];return"en"===e?"en-us":`${e}-${e}`}},android:{defaultSrc:n.hp+"/get-apps-google-play.png",src:"https://play.google.com/intl/en_us/badges/images/generic/{localeSlug}_badge_web_generic.png",tracksEvent:"calypso_app_download_android_click",getStoreLink:(e,t="web",a="mobile-download-promo-pages")=>`https://play.google.com/store/apps/details?id=com.jetpack.android&referrer=utm_source%3D%${e}%26utm_medium%3D${t}%26utm_campaign%3D${a}`,getTitleText:()=>__("Download the Jetpack Android mobile app.","jetpack"),getAltText:()=>__("Google Play Store download badge","jetpack"),getLocaleSlug:function(){return(0,s.X)().split("-")[0]}}};class m extends p.PureComponent{static propTypes={altText:l().string,storeLink:l().string,storeName:l().oneOf(["ios","android"]).isRequired,titleText:l().string,onBadgeClick:l().func,utm_source:l().string,utm_campaign:l().string,utm_medium:l().string};static defaultProps={altText:"",storeLink:null,titleText:""};constructor(e){super(e);const t=u[e.storeName].getLocaleSlug().toLowerCase(),a=!(0,o.startsWith)(t,"en");this.state={shouldLoadExternalImage:a,imageSrc:a?u[e.storeName].src.replace("{localeSlug}",t):u[e.storeName].defaultSrc},a&&(this.image=null,this.loadImage())}loadImage(){this.image=new window.Image,this.image.src=this.state.imageSrc,this.image.onload=this.onLoadImageComplete,this.image.onerror=this.onLoadImageError}onLoadImageComplete=()=>{this.setState({hasExternalImageLoaded:!0})};onLoadImageError=()=>{this.setState({hasExternalImageLoaded:!1,imageSrc:u[this.props.storeName].defaultSrc})};onLinkClick=()=>{this.props.onBadgeClick(this.props.storeName)};render(){const{altText:e,titleText:t,storeLink:a,storeName:n,utm_source:s,utm_medium:i,utm_campaign:o}=this.props,{imageSrc:c,hasExternalImageLoaded:l}=this.state,p=(0,r.Z)("apps-badge",{[`${n}-app-badge`]:!0,"is-external-image":l}),m=u[n];return d().createElement("figure",{className:p},d().createElement("a",{href:a||m.getStoreLink(s,i,o),onClick:this.onLinkClick,target:"_blank",rel:"noopener noreferrer"},d().createElement("img",{src:c,title:t||m.getTitleText(),alt:e||m.getAltText()})))}}const h=m},17363:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(80800),s=a(6895),i=a(69307),r=a(65736),o=a(3228),c=a(20408),l=a(85799),p=a(84069),d=a(34443),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h),k=a(44498);const __=r.__;class v extends g().Component{static displayName="AppsCard";trackDownloadClick=e=>{p.Z.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:this.props.location.pathname,store:e})};trackAppLinkClick=()=>{p.Z.tracks.recordJetpackClick({target:"jetpack-apps-link",page:this.props.location.pathname})};getAppLinkSection=()=>{const e=(0,d.Z)();switch(e){case"ios":case"android":return this.getAppCards(e);default:return this.getQrCode()}};getAppCards=e=>g().createElement("div",{className:"jp-apps-card__apps-badges"},"android"===e?g().createElement(c.Z,{altText:__("Google Play Store download badge.","jetpack"),titleText:__("Download the Jetpack Android mobile app.","jetpack"),storeName:"android",storeLink:"https://play.google.com/store/apps/details?id=com.jetpack.android&utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard",onBadgeClick:this.trackDownloadClick}):g().createElement(c.Z,{altText:__("Apple App Store download badge.","jetpack"),titleText:__("Download the Jetpack iOS mobile app.","jetpack"),storeName:"ios",storeLink:"https://apps.apple.com/us/app/jetpack-website-builder/id1565481562?pt=299112ct=jpdash&mt=8",onBadgeClick:this.trackDownloadClick}));getQrCode=()=>g().createElement("div",{className:"jp-apps-card__apps-qr-code"},g().createElement("img",{src:n.hp+"get-apps-qr-code.svg",alt:"",width:114}));render(){const e=(0,o.Z)(this.props.className,"jp-apps-card");return g().createElement("div",{className:e},g().createElement(l.Z,{className:"jp-apps-card__content"},g().createElement("div",{className:"jp-apps-card__description"},g().createElement("img",{className:"jp-apps-card__top_img",src:n.hp+"get-apps-icon.svg",alt:""}),g().createElement("h3",{className:"jp-apps-card__header"},__("Bring your stats with you using the Jetpack mobile app","jetpack")),g().createElement("p",{className:"jp-apps-card__paragraph"},(0,i.createInterpolateElement)(__("Visit <a>jetpack.com/app</a> or scan this code to download the Jetpack mobile app.","jetpack"),{a:g().createElement("a",{className:"jp-apps-card__link",href:(0,s.Z)("jetpack-plugin-dashboard-apps-card"),onClick:this.trackAppLinkClick})}))),this.getAppLinkSection()))}}v.propTypes={className:m().string};const f=(0,k.EN)(v)},47407:(e,t,a)=>{"use strict";a.d(t,{$j:()=>_,ZP:()=>b,jL:()=>E});var n=a(61074),s=a(3228),i=a(97506),r=a(85799),o=a(5060),c=a(53234),l=a(84069),p=a(59584),d=a(92819),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h),k=a(59309),v=a(96300),f=a(69508);class E extends h.Component{static propTypes={callToAction:m().string,className:m().string,currentVersion:m().string.isRequired,description:m().node,eventFeature:m().string,eventProps:m().object,feature:m().string,href:m().string,icon:m().string,iconAlt:m().string,iconSrc:m().string,iconRaw:m().string,iconWp:m().any,list:m().arrayOf(m().string),onClick:m().func,path:m().string,plan:m().string,siteSlug:m().string,title:m().node.isRequired,isCurrentUserLinked:m().bool,isConnectionOwner:m().bool,noIcon:m().bool,rna:m().bool};static defaultProps={onClick:d.noop,eventProps:{},rna:!1,noIcon:!1};getHref(){const{href:e,feature:t,siteSlug:a}=this.props;return!e&&a?t?`/plans/${a}?feature=${t}`:`/plans/${a}`:e}handleClick=()=>{this.props.onClick();const{eventFeature:e,path:t,currentVersion:a,eventProps:n}=this.props;if(e||t){const s=e?{feature:e}:{},i=t?{path:t}:{},r={target:"banner",type:"upgrade",current_version:a,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no",...s,...i,...n};l.Z.tracks.recordJetpackClick(r)}};getIcon(){const{icon:e,iconAlt:t,iconSrc:a,iconRaw:s,iconWp:i,plan:r}=this.props;return s?g().createElement("div",{className:"dops-banner__icon-plan"},g().createElement("img",{src:s,alt:t})):!r||e&&a?i?g().createElement("div",{className:"dops-banner__icon-wp"},g().createElement(n.Z,{icon:i})):g().createElement("div",{className:"dops-banner__icons"},g().createElement("div",{className:"dops-banner__icon"},e&&g().createElement(o.Z,{icon:e||"info-outline",size:18}),a&&g().createElement("img",{className:"dops-banner__icon-circle-svg",src:a,alt:t})),g().createElement("div",{className:"dops-banner__icon-circle"},e&&g().createElement(o.Z,{icon:e||"info-outline",size:18}),a&&g().createElement("img",{className:"dops-banner__icon-circle-svg",src:a,alt:t}))):g().createElement("div",{className:"dops-banner__icon-plan"},g().createElement(c.Z,{plan:r}))}getContent(){const{callToAction:e,description:t,list:a,title:n,rna:s}=this.props;return g().createElement("div",{className:"dops-banner__content"},g().createElement("div",{className:"dops-banner__info"},g().createElement("div",{className:"dops-banner__title"},n),t&&g().createElement("div",{className:"dops-banner__description"},t),(0,d.size)(a)>0&&g().createElement("ul",{className:"dops-banner__list"},a.map(((e,t)=>g().createElement("li",{key:t},g().createElement(o.Z,{icon:"checkmark",size:18}),e))))),e&&g().createElement("div",{className:"dops-banner__action"},e&&g().createElement(i.Z,{rna:s,compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0},e)))}render(){const{callToAction:e,className:t,plan:a,noIcon:n}=this.props,i=(0,p.scx)(a),o=(0,p.G1J)(a),c=(0,p.yy5)(a),l=(0,s.Z)("dops-banner",t,{"has-call-to-action":e},{"is-upgrade-personal":o&&"is-personal-plan"===i},{"is-upgrade-premium":o&&"is-premium-plan"===i},{"is-upgrade-business":o&&"is-business-plan"===i},{"is-product":c},{"is-plan":!c},{"is-bundle":!c&&(0,p.Pu7)(a)});return g().createElement(r.Z,{className:l,href:e?null:this.getHref(),target:e||!this.getHref()?null:"_blank",onClick:e?d.noop:this.handleClick},!n&&this.getIcon(),this.getContent())}}function _(e){return(0,k.$j)((e=>({currentVersion:(0,f.w1)(e),isCurrentUserLinked:(0,v.BU)(e),isConnectionOwner:(0,v.QM)(e)})))(e)}const b=_(E)},98492:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(3228),s=a(99196),i=a.n(s);class r extends i().Component{static displayName="ButtonGroup";static propTypes={children(e){let t=null;return i().Children.forEach(e.children,(e=>{e.props&&"button"===e.props.type||(t=new Error("All children elements should be a Button."))})),t}};render(){const e=(0,n.Z)("dops-button-group",this.props.className);return i().createElement("span",{className:e},this.props.children)}}},97506:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(3228),s=a(92819),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);class l extends c().Component{static displayName="Button";static propTypes={disabled:r().bool,compact:r().bool,primary:r().bool,scary:r().bool,type:r().string,href:r().string,onClick:r().func,borderless:r().bool,rna:r().bool,className:r().string};static defaultProps={disabled:!1,type:"button",onClick:s.noop,borderless:!1};domNode=null;render(){const e=this.props.href?"a":"button",{primary:t,compact:a,scary:s,borderless:i,rna:r,className:o,...l}=this.props,p=(0,n.Z)({"dops-button":!0,"is-compact":a,"is-primary":t,"is-scary":s,"is-borderless":i,"is-rna":r});return l.className=(0,n.Z)(o,p),l.ref=e=>this.domNode=e,c().createElement(e,l,this.props.children)}}},15773:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(3228),s=a(85799),i=a(92819),r=a(99196),o=a.n(r);class c extends o().Component{static displayName="CompactCard";render(){const e=(0,i.assign)({},this.props,{className:(0,n.Z)(this.props.className,"is-compact")});return o().createElement(s.Z,e,this.props.children)}}},85799:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(3228),s=a(92819),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o),l=a(5060);class p extends c().Component{static propTypes={title:r().any,vertical:r().any,style:r().object,className:r().string,device:r().oneOf(["desktop","tablet","phone"])};static defaultProps={vertical:null};render(){return c().createElement("div",{className:(0,n.Z)("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)}_renderWithTitle=()=>{const e="dops-card-section-orient-"+(this.props.vertical?"vertical":"horizontal");return c().createElement("div",{className:e},c().createElement("h4",{className:"dops-card-section-label"},this.props.title),c().createElement("div",{className:"dops-card-section-content"},this.props.children))}}class d extends c().Component{render(){return c().createElement("div",{className:"dops-card-footer"},this.props.children)}}class u extends c().Component{static propTypes={meta:r().any,icon:r().string,iconLabel:r().any,iconColor:r().string,style:r().object,className:r().string,href:r().string,onClick:r().func,title:r().string,tagName:r().string,target:r().string,compact:r().bool,children:r().node};static defaultProps={iconColor:"#787878",className:"",tagName:"div",onClick:()=>{}};render(){const e=(0,n.Z)("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),t=["compact","tagName","meta","iconColor"];let a,i;return this.props.href?a=this.props.target&&c().createElement(l.Z,{className:"dops-card__link-indicator",icon:"external"}):t.push("href","target"),this.props.title&&(i=c().createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&c().createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),c().createElement(this.props.href?"a":this.props.tagName,(0,s.assign)((0,s.omit)(this.props,t),{className:e}),i,this.props.children,a)}_renderIcon=()=>c().createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&c().createElement(l.Z,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)}u.Section=p,u.Footer=d;const m=u},17855:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(25162),s=a.n(n),i=a(99196),r=a.n(i),o=a(48918),c=a(42224);class l extends r().Component{static displayName="ModuleChartBarContainer";static propTypes={isTouch:s().bool,data:s().array,yAxisMax:s().number,width:s().number,barClick:s().func};buildBars=e=>{const t=this.props.data.length,a=this.props.chartWidth,n=a/t;let s="bottom right";return this.props.data.map((function(i,c){const l=n*(c+1);return l+230>a&&l+n-230>0&&(s="bottom left"),r().createElement(o.Z,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:s,className:i.className,clickHandler:this.props.barClick,data:i,max:e,count:t})}),this)};render(){return r().createElement("div",null,r().createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),r().createElement(c.Z,{data:this.props.data,labelWidth:42}))}}},48918:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(3228),s=a(5060),i=a(54088),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c);class p extends l().Component{static displayName="ModuleChartBar";static propTypes={isTouch:o().bool,tooltipPosition:o().string,className:o().string,clickHandler:o().func,data:o().object.isRequired,max:o().number,count:o().number};valueBarRef=l().createRef();state={showPopover:!1};buildSections=()=>{const e=this.props.data.value,t=this.props.max,a=100-(t?Math.ceil(e/t*1e4)/100:0),s=Math.max(1,Math.floor(a)),i=[],r=this.props.data.nestedValue,o={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===a&&!this.props.active};let c,p,d;const u={height:s+"%"};i.push(l().createElement("div",{key:"spacer",className:(0,n.Z)(o),style:u}));const m={top:s+"%"};return r&&(p=e?Math.ceil(r/e*1e4)/100:0,d={height:p+"%"},c=l().createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:d})),i.push(l().createElement("div",{ref:this.valueBarRef,key:"value",className:"dops-chart__bar-section is-bar",style:m},c)),i.push(l().createElement("div",{key:"label",className:"dops-chart__bar-label"},this.props.label)),i};keyHandler=e=>{"function"==typeof this.props.clickHandler&&13===e.keyCode&&this.props.clickHandler(this.props.data)};clickHandler=()=>{"function"==typeof this.props.clickHandler&&this.props.clickHandler(this.props.data)};mouseEnter=()=>{this.setState({showPopover:!0})};mouseLeave=()=>{this.setState({showPopover:!1})};renderTooltip=()=>{if(!this.props.data.tooltipData||!this.props.data.tooltipData.length||this.props.isTouch)return null;const{tooltipData:e}=this.props.data,t=e.map((function(e,t){const a=["module-content-list-item"];let n;return e.icon&&(n=l().createElement(s.Z,{icon:e.icon,size:18})),a.push(e.className),l().createElement("li",{key:t,className:a.join(" ")},l().createElement("span",{className:"dops-wrapper"},l().createElement("span",{className:"value"},e.value),l().createElement("span",{className:"label"},n,e.label)))}));return l().createElement(i.Z,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.valueBarRef.current,isVisible:this.state.showPopover,position:this.props.tooltipPosition},l().createElement("ul",null,t))};render(){const e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);const a={width:1/e*100+"%"};return l().createElement("div",{role:"button",tabIndex:0,onKeyUp:this.keyHandler,onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,"aria-label":this.props.data.tooltipData[0].label+" — "+this.props.data.value+".",className:(0,n.Z)(t),style:a},this.buildSections(),l().createElement("div",{className:"dops-chart__bar-marker is-hundred"}),l().createElement("div",{className:"dops-chart__bar-marker is-fifty"}),l().createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}},53068:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(65736),s=a(77733),i=a(92819),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(17855);const _x=n._x;class d extends l().Component{static displayName="ModuleChart";static propTypes={loading:o().bool,data:o().array,minTouchBarWidth:o().number,minBarWidth:o().number,barClick:o().func};static defaultProps={minTouchBarWidth:42,minBarWidth:15,barClick:i.noop};chartRef=l().createRef();state={maxBars:100,width:650};componentDidMount(){this.resize=(0,i.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.resize)}UNSAFE_componentWillReceiveProps(e){this.props.loading&&!e.loading&&this.resize()}resize=()=>{let e,t=this.chartRef.current.clientWidth-82;(0,s._)()?(t=t<=0?350:t,e=Math.floor(t/this.props.minTouchBarWidth)):e=Math.floor(t/this.props.minBarWidth),this.setState({maxBars:e,width:t})};getYAxisMax=e=>{const t=Math.max.apply(null,e),a=Math.pow(10,t.toString().length-1);let n=Math.ceil((t+1)/a)*a;return n<10&&(n=10),n};getData=()=>{let e=this.props.data;return e=e.slice(0-this.state.maxBars),e};getValues=()=>{let e=this.getData();return e=e.map((function(e){return e.value}),this),e};isEmptyChart=e=>0===(e=e.filter((function(e){return e>0}),this)).length;render(){const e=this.getValues(),t=this.getYAxisMax(e),a=this.getData();let n;return e.length&&this.isEmptyChart(e)&&(n=l().createElement("div",{className:"dops-chart__empty"},l().createElement("span",{className:"dops-chart__empty_notice"},_x("No activity this period","Notice in the empty statistics chart","jetpack")))),l().createElement("div",{ref:this.chartRef,className:"dops-chart"},l().createElement("div",{className:"dops-chart__y-axis-markers"},l().createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),l().createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),l().createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),l().createElement("div",{className:"dops-chart__y-axis"},l().createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),l().createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),l().createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),l().createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),l().createElement(p.Z,{barClick:this.props.barClick,data:a,yAxisMax:t,chartWidth:this.state.width,isTouch:(0,s._)()}),n)}}},28914:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(25162),s=a.n(n),i=a(99196),r=a.n(i);class o extends r().Component{static displayName="ModuleChartLabel";static propTypes={width:s().number.isRequired,x:s().number.isRequired,label:s().string.isRequired};render(){const e={width:this.props.width+"px"};return e.left=this.props.x+"px",r().createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}},42224:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(92819),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r),c=a(28914);class l extends o().Component{static displayName="ModuleChartXAxis";static propTypes={labelWidth:i().number.isRequired,data:i().array.isRequired};axisRef=o().createRef();state={divisor:1,spacing:this.props.labelWidth};componentDidMount(){this.resizeThrottled=(0,n.throttle)(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}componentWillUnmount(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}UNSAFE_componentWillReceiveProps(e){this.resize(e)}resize=e=>{let t=this.props;const a=this.axisRef.current;!e||e instanceof Event||(t=e),a.style.overflow="hidden";const n=a.clientWidth;a.style.overflow="visible";const s=n/(t.data.length||1),i=t.labelWidth,r=Math.ceil(i/s);this.setState({divisor:r,spacing:s})};render(){const e=this.props.data,t=e.map((function(t,a){const n=a*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2;let s;return(e.length-a-1)%this.state.divisor==0&&(s=o().createElement(c.Z,{key:a,label:t.label,width:this.props.labelWidth,x:n})),s}),this);return o().createElement("div",{ref:this.axisRef,className:"dops-chart__x-axis"},t)}}},64104:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(82674),s=a.n(n),i=a(3228),r=a(99026),o=a(9494),c=a(92819),l=a(25162),p=a.n(l),d=a(99196),u=a.n(d);class m extends u().Component{static displayName="ClipboardButtonInput";static propTypes={value:p().string,disabled:p().bool,className:p().string,copied:p().string,copy:p().string,prompt:p().string,rna:p().bool};static defaultProps={value:"",rna:!1};state={isCopied:!1,disabled:!1};componentWillUnmount(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}showConfirmation=()=>{this.setState({isCopied:!0}),this.confirmationTimeout=setTimeout((()=>{this.setState({isCopied:!1})}),4e3)};render(){const e=(0,c.omit)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus","rna");return u().createElement("span",{className:(0,i.Z)("dops-clipboard-button-input",this.props.className)},u().createElement(o.Z,s()({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),u().createElement(r.Z,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0,rna:this.props.rna},this.state.isCopied?this.props.copied:this.props.copy))}}},57633:(e,t,a)=>{"use strict";a.d(t,{Z:()=>j});var n=a(82674),s=a.n(n),i=a(6895),r=a(16168),o=a(55609),c=a(69307),l=a(65736),p=a(96483),d=a(97506),u=a(71865),m=a(84069),h=a(25162),g=a.n(h),k=a(99196),v=a.n(k),f=a(59309),E=a(96300),_=a(69508),b=a(33002),y=a(3915),w=a(6165);const __=l.__;class C extends v().Component{static displayName="ConnectButton";static propTypes={connectUser:g().bool,from:g().string,asLink:g().bool,connectLegend:g().string,connectInPlace:g().bool,customConnect:g().func,autoOpenInDisconnectRoute:g().bool,rna:g().bool,compact:g().bool};static defaultProps={connectUser:!1,from:"",asLink:!1,connectInPlace:!0,autoOpenInDisconnectRoute:!1,rna:!1,compact:!1};constructor(e){super(e),this.state={showModal:e.autoOpenInDisconnectRoute&&"#/disconnect"===(0,p.getFragment)(window.location.href)}}handleOpenModal=e=>{m.Z.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),this.toggleVisibility()};handleDisconnected=()=>{this.props.fetchConnectUrl(),this.props.fetchSiteConnectionStatus()};toggleVisibility=()=>{this.setState({showModal:!this.state.showModal})};loadConnectionScreen=e=>{e.preventDefault(),this.props.isAuthorizing||this.props.fetchingConnectUrl||(m.Z.tracks.recordJetpackClick("link_account_in_place"),this.props.customConnect?this.props.customConnect():this.props.doConnectUser(null,this.props.from))};renderDisconnectStepComponent=()=>this.props.siteBenefits?v().createElement(w.Z,{siteBenefits:this.props.siteBenefits}):null;renderUserButton=()=>{if(this.props.isLinked)return v().createElement("div",null,v().createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:(0,y.Z)(this.props.unlinkUser),onClick:this.props.unlinkUser,disabled:this.props.isUnlinking},this.props.connectLegend||__("Disconnect your WordPress.com account","jetpack")));let e=this.props.connectUrl;this.props.from&&(e+=`&from=${this.props.from}`,e+="&additional-user");const t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl||this.props.isAuthorizing,onClick:this.loadConnectionScreen},a=this.props.connectLegend||__("Connect your WordPress.com account","jetpack");return this.props.asLink?v().createElement("a",t,a):v().createElement(d.Z,s()({rna:this.props.rna,compact:this.props.compact},t),a)};renderContent=()=>{if(this.props.connectUser)return this.renderUserButton();if(this.props.isSiteConnected)return v().createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,y.Z)(this.handleOpenModal),onClick:this.handleOpenModal,disabled:this.props.isDisconnecting},this.props.connectLegend||__("Manage site connection","jetpack"));let e=this.props.connectUrl;this.props.from&&(e+=`&from=${this.props.from}`);const t={className:"jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},a=this.props.connectLegend||__("Set up Jetpack","jetpack");return this.props.asLink?v().createElement("a",t,a):v().createElement(d.Z,t,a)};render(){return v().createElement("div",null,v().createElement(u.Z,null),!this.props.isSiteConnected&&v().createElement("p",{className:"jp-banner__tos-blurb"},(0,c.createInterpolateElement)(__("By clicking the button below, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),{tosLink:v().createElement(o.ExternalLink,{href:(0,i.Z)("wpcom-tos")}),shareDetailsLink:v().createElement(o.ExternalLink,{href:(0,i.Z)("jetpack-support-what-data-does-jetpack-sync")})})),this.renderContent(),v().createElement(r.Z,{apiNonce:this.props.apiNonce,apiRoot:this.props.apiRoot,connectedPlugins:this.props.connectedPlugins,connectedUser:{ID:this.props.userWpComId,login:this.props.userWpComLogin},connectedSiteId:this.props.connectedSiteId,disconnectStepComponent:this.renderDisconnectStepComponent(),onDisconnected:this.handleDisconnected,isOpen:this.state.showModal,onClose:this.toggleVisibility,context:"jetpack"}))}}const j=(0,f.$j)((e=>({siteRawUrl:(0,_.JR)(e),isSiteConnected:(0,E.Gz)(e),isDisconnecting:(0,E.e_)(e),fetchingConnectUrl:(0,E.Mq)(e),connectUrl:(0,E.AM)(e),isLinked:(0,E.BU)(e),isUnlinking:(0,E.jZ)(e),isAuthorizing:(0,E.zq)(e),isSafari:(0,_.G6)(e),doNotUseConnectionIframe:(0,_.jq)(e),apiNonce:(0,_.VY)(e),apiRoot:(0,_.yB)(e),connectedPlugins:(0,_.xz)(e),siteBenefits:(0,b.nq)(e),pluginUrl:(0,_.wB)(e),userWpComLogin:(0,_.IU)(e),userWpComId:(0,_._G)(e),connectedSiteId:(0,_.EZ)(e)})),(e=>({fetchConnectUrl:()=>e((0,E.eW)()),fetchSiteConnectionStatus:()=>e((0,E.I7)()),unlinkUser:()=>e((0,E.EP)()),doConnectUser:(t,a)=>e((0,E.bL)(t,a))})))(C)},66164:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(65736),s=a(85799),i=a(57633),r=a(84069),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(59309),u=a(96300);const __=n.__,m=e=>{const{feature:t,featureLabel:a,text:o,doConnectUser:c}=e,d="unlinked-user-connect",u=(0,l.useCallback)((()=>{r.Z.tracks.recordJetpackClick({target:"connection-bar-click",feature:t,is_user_wpcom_connected:"no",is_connection_owner:"no"}),c(a,d)}),[c,t,a,d]);return p().createElement(s.Z,{compact:!0,className:"jp-connect-user-bar__card"},p().createElement("span",null,(0,n.sprintf)(/* translators: placeholder is text adding extra instructions on what to do next. */ __("This feature is provided by the WordPress.com cloud. %s","jetpack"),o)),p().createElement(i.Z,{connectUser:!0,from:d,connectLegend:__("Connect your WordPress.com account","jetpack"),customConnect:u,rna:!0,compact:!0}))};m.propTypes={text:c().string.isRequired,feature:c().string,featureLabel:c().string};const h=(0,d.$j)(null,(e=>({doConnectUser:(t,a)=>e((0,u.bL)(t,a))})))(m)},79099:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(41342),s=a(67121),i=a(65736),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(59309),d=a(96300);const __=i.__;class u extends l().Component{static propTypes={title:o().string.isRequired,description:o().node,from:o().string};handleClick(){this.props.doConnectUser(null,this.props.from)}render(){const{description:e,title:t}=this.props,a={label:__("Connect your WordPress.com account","jetpack"),onClick:()=>this.handleClick()};return l().createElement(n.Z,{title:t,hideCloseButton:!0,actions:[l().createElement(s.Z,a)]},e)}}const m=(0,p.$j)((e=>e),(e=>({doConnectUser:(t,a)=>e((0,d.bL)(t,a))})))(u)},16102:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var n=a(78868),s=a(37325),i=a(14792),r=a(55609),o=a(69307),c=a(65736),l=a(84069),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u);const __=c.__,h=e=>{const{title:t,logo:a,children:c,className:p,buttonLabel:d,apiRoot:h,apiNonce:g,registrationNonce:k,redirectUri:v,redirectTo:f,autoTrigger:E,isSiteConnected:_,setHasSeenWCConnectionModal:b}=e;(0,u.useEffect)((()=>{b()}),[b]);const y=(0,u.useCallback)((()=>{l.Z.tracks.recordJetpackClick("contextualized_connection_continue_button")}),[]);return m().createElement("div",{className:"jp-contextualized-connection"+(p?" "+p:"")},m().createElement("div",{className:"jp-contextualized-connection__content"},m().createElement("div",{className:"jp-contextualized-connection__logo"},a||m().createElement(n.Z,null)),m().createElement("h2",null,t),c,_&&m().createElement(r.Button,{variant:"primary",className:"jp-contextualized-connection__button",label:__("Continue to Jetpack","jetpack"),href:f,onClick:y},__("Continue to Jetpack","jetpack")),!_&&m().createElement(m().Fragment,null,m().createElement(i.Z,{autoTrigger:E,apiRoot:h,apiNonce:g,registrationNonce:k,redirectUri:v,connectLabel:d}),m().createElement("div",{className:"jp-contextualized-connection__tos"},m().createElement(s.Z,{agreeButtonLabel:d})))),m().createElement("footer",{className:"jp-contextualized-connection__footer"},m().createElement("div",{className:"jp-contextualized-connection__footer-row"},m().createElement("div",{className:"jp-contextualized-connection__footer-column"},m().createElement("h3",null,__("Security tools","jetpack")),m().createElement("ul",{className:"jp-contextualized-connection__feature-list"},m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> downtime monitoring","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> brute force attack prevention","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,__("Full store & order backups","jetpack")),m().createElement("li",null,__("Automated malware scanning","jetpack")),m().createElement("li",null,__("Comment and form spam protection","jetpack")))),m().createElement("div",{className:"jp-contextualized-connection__footer-column"},m().createElement("h3",null,__("Performance tools","jetpack")),m().createElement("ul",{className:"jp-contextualized-connection__feature-list"},m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> Content Delivery Network (CDN)","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> SEO tools","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,__("Instant site search","jetpack")),m().createElement("li",null,__("Ad-free WordPress video hosting","jetpack")))),m().createElement("div",{className:"jp-contextualized-connection__footer-column"},m().createElement("h3",null,__("Growth tools","jetpack")),m().createElement("ul",{className:"jp-contextualized-connection__feature-list"},m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> site stats","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> social media tools","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,(0,o.createInterpolateElement)(__("<strong>Free</strong> related posts","jetpack"),{strong:m().createElement("strong",null)})),m().createElement("li",null,__("Accept payments","jetpack")),m().createElement("li",null,__("Ad network access","jetpack"))))),m().createElement("div",{className:"jp-contextualized-connection__footer-bottom-title"},__("More than 5 million WordPress sites trust Jetpack for their website security and performance.","jetpack"))))};h.propTypes={title:d().string,className:d().string,buttonLabel:d().string,apiRoot:d().string.isRequired,apiNonce:d().string.isRequired,registrationNonce:d().string.isRequired,redirectUri:d().string.isRequired,redirectTo:d().string.isRequired,autoTrigger:d().bool,isSiteConnected:d().bool.isRequired,logo:d().shape({type:d().oneOf(["img","svg"])})};const g=h},85582:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(25162),s=a.n(n),i=a(99196),r=a.n(i);const o=class extends r().PureComponent{static displayName="Count";static propTypes={count:s().number.isRequired};render(){return r().createElement("span",{className:"dops-count"},this.numberFormat(this.props.count))}}},43255:(e,t,a)=>{"use strict";a.d(t,{Z:()=>N});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(3228),c=a(97506),l=a(85799),p=a(2353),d=a(5004),u=a(71668),m=a(81114),h=a(79032),g=a(84069),k=a(92819),v=a(86450),f=a(25162),E=a.n(f),_=a(99196),b=a.n(_),y=a(59309),w=a(96300),C=a(69508),j=a(50416);const __=r.__,_x=r._x;class S extends _.Component{static propTypes={label:E().string,status:E().string,statusText:E().string,disabled:E().bool,module:E().string,pro:E().bool,isModule:E().bool,support:E().object,overrideContent:E().element,noToggle:E().bool};static defaultProps={label:"",module:"",pro:!1,isModule:!0,support:{text:"",link:""},noToggle:!1};toggleModule=()=>{const{updateOptions:e,module:t,getOptionValue:a}=this.props;e({[t]:!a(t)})};trackPaidBtnClick=()=>{g.Z.tracks.recordJetpackClick({target:"paid-button",feature:this.props.module,page:"aag"})};render(){let e,t,a="";const n=(0,o.Z)(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":"");return""!==this.props.module&&(t=(0,k.includes)(["monitor","protect","photon","vaultpress","scan","backups","akismet","search","videopress"],this.props.module)&&this.props.isOfflineMode||this.props.noToggle||"manage"===this.props.module?"":b().createElement(d.T,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:this.toggleModule,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=b().createElement("a",{href:this.props.isOfflineMode?this.props.siteAdminUrl+"update-core.php":(0,i.Z)("calypso-plugins-manage",{site:this.props.siteRawUrl})},b().createElement(u.Z,{showDismiss:!1,status:this.props.status,isCompact:!0},_x("Updates needed","Short warning message","jetpack")))),"is-working"===this.props.status&&(t=b().createElement("span",{className:"jp-dash-item__active-label"},__("Active","jetpack")))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isOfflineMode&&(a=b().createElement(c.Z,{onClick:this.trackPaidBtnClick,compact:!0,href:"#/plans"},_x("Paid","Short label appearing near a paid feature configuration block.","jetpack")),this.props.isModule&&(t=b().createElement(v.Z,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),this.props.module&&this.props.getModule&&(e=this.props.getModule(this.props.module)),b().createElement("div",{className:n},b().createElement(m.Z,{label:this.props.label,cardBadge:a},this.props.userCanToggle?t:""),this.props.overrideContent?this.props.overrideContent:b().createElement(l.Z,{className:"jp-dash-item__card",href:this.props.href},b().createElement("div",{className:"jp-dash-item__content"},this.props.support.text&&b().createElement(h.Z,s()({module:e},this.props.support)),this.props.children)))}}const N=(0,y.$j)((e=>({getModule:t=>(0,j.rT)(e,t),isOfflineMode:(0,w.Ex)(e),userCanToggle:(0,C.pK)(e),siteRawUrl:(0,C.JR)(e),siteAdminUrl:(0,C.wW)(e)})))((0,p.u)(S))},69552:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(3228),s=a(84069),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);class l extends c().Component{static displayName="DashSectionHeader";static propTypes={label:r().string.isRequired,settingsPath:r().string,externalLinkPath:r().string,externalLink:r().string,externalLinkClick:r().func};static defaultProps={label:"",settingsPath:"",externalLinkPath:"",externalLink:""};trackCogClick=()=>{s.Z.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})};render(){let e,t;const a=(0,n.Z)(this.props.className,"jp-dash-section-header");return this.props.externalLink&&(e=c().createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(t=c().createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),c().createElement("div",{className:a},c().createElement("div",{className:"jp-dash-section-header__label"},c().createElement("h2",{className:"jp-dash-section-header__name"},this.props.label)),e,t)}}const p=l},11020:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(99196),s=a(59309),i=a(835),r=a(17296);class o extends n.Component{UNSAFE_componentWillMount(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}render(){return null}}o.defaultProps={fetchAkismetData:()=>{}};const c=(0,s.$j)((e=>({fetchAkismetData:(0,r.bB)(),fetchingAkismetData:(0,r.bV)(e)})),(e=>(0,i.DE)({fetchAkismetData:r.bB},e)))(o)},3544:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(99196),s=a(59309),i=a(835),r=a(17296);class o extends n.Component{UNSAFE_componentWillMount(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}render(){return null}}o.defaultProps={checkAkismetKey:()=>{}};const c=(0,s.$j)((e=>({checkAkismetKey:(0,r.Bt)(),isCheckingAkismetKey:(0,r.gw)(e)})),(e=>(0,i.DE)({checkAkismetKey:r.Bt},e)))(o)},75402:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(99196),s=a(59309),i=a(835),r=a(17296);class o extends n.Component{componentDidMount(){this.props.fetchingBackupUndoEvent||this.props.hasLoadedBackupUndoEvent||this.props.fetchBackupUndoEvent()}render(){return null}}o.defaultProps={fetchBackupUndoEvent:()=>{}};const c=(0,s.$j)((e=>({fetchBackupUndoEvent:r.zx,fetchingBackupUndoEvent:(0,r.Ve)(e),hasLoadedBackupUndoEvent:(0,r.O1)(e)})),(e=>(0,i.DE)({fetchBackupUndoEvent:r.zx},e)))(o)},4681:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(835),c=a(17296),l=a(50416);class p extends i.Component{static propTypes={isActive:s().bool};UNSAFE_componentWillMount(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}componentDidUpdate(e){this.props.fetchingProtectData||!0!==this.props.isActive||!1!==e.isActive||this.props.fetchProtectCount()}render(){return null}}p.defaultProps={fetchProtectCount:()=>{}};const d=(0,r.$j)((e=>({fetchProtectCount:(0,c.eR)(),fetchingProtectData:(0,c.Xu)(e),isModuleActivated:t=>(0,l.mp)(e,t)})),(e=>(0,o.DE)({fetchProtectCount:c.eR},e)))(p)},53190:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(99196),s=a(59309),i=a(36920);class r extends n.Component{static defaultProps={isFetchingIntroOffers:!1};componentDidMount(){this.props.isFetchingIntroOffers||this.props.fetchIntroOffers()}render(){return null}}const o=(0,s.$j)((e=>({isFetchingIntroOffers:(0,i.HW)(e)})),(e=>({fetchIntroOffers:()=>e((0,i.lR)())})))(r)},85182:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsConditional:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingRecommendationsConditional:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsConditional||this.props.isOfflineMode||this.props.fetchRecommendationsConditional()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingRecommendationsConditional:(0,c.E4)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsConditional:()=>e((0,c.AP)())})))(l)},70298:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsData:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingRecommendationsData:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsData||this.props.isOfflineMode||this.props.fetchRecommendationsData()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingRecommendationsData:(0,c.WS)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsData:()=>e((0,c.V2)())})))(l)},18882:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsProductSuggestions:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingRecommendationsProductSuggestions:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsProductSuggestions||this.props.isOfflineMode||this.props.fetchRecommendationsProductSuggestions()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingRecommendationsProductSuggestions:(0,c.at)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsProductSuggestions:()=>e((0,c.km)())})))(l)},90023:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsUpsell:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingRecommendationsUpsell:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsUpsell||this.props.isOfflineMode||this.props.fetchRecommendationsUpsell()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingRecommendationsUpsell:(0,c.b5)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsUpsell:()=>e((0,c.tR)())})))(l)},88546:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(69377);class l extends i.Component{static propTypes={isFetchingRewindStatus:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingRewindStatus:!1,isOfflineMode:!1};UNSAFE_componentWillMount(){this.props.isFetchingRewindStatus||this.props.isOfflineMode||this.props.fetchRewind()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingRewindStatus:(0,c.Li)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRewind:()=>e((0,c.Au)())})))(l)},26551:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(15080);class l extends i.Component{static propTypes={isFetchingScanStatus:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingScanStatus:!1,isOfflineMode:!1};UNSAFE_componentWillMount(){this.props.isFetchingScanStatus||this.props.isOfflineMode||this.props.fetchScan()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingScanStatus:(0,c.gE)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchScan:()=>e((0,c.eR)())})))(l)},71865:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(99196),s=a(59309),i=a(33002);class r extends n.Component{static defaultProps={isFetchingSiteBenefitsData:!1};componentDidMount(){this.props.isFetchingSiteBenefits||this.props.fetchSiteBenefits()}render(){return null}}const o=(0,s.$j)((e=>({isFetchingSiteBenefits:(0,i.bl)(e)})),(e=>({fetchSiteBenefits:()=>e((0,i.IO)())})))(r)},92658:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(99196),s=a(59309),i=a(33002);class r extends n.Component{static defaultProps={isFetchingSiteDiscount:!1};componentDidMount(){this.props.isFetchingSiteDiscount||this.props.fetchSiteDiscount()}render(){return null}}const o=(0,s.$j)((e=>({isFetchingSiteDiscount:(0,i.Zd)(e)})),(e=>({fetchSiteDiscount:()=>e((0,i.N$)())})))(r)},7679:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(99196),s=a.n(n),i=a(59309),r=a(61372);class o extends s().Component{UNSAFE_componentWillMount(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}render(){return null}}const c=(0,i.$j)((e=>({isFetchingPluginsData:(0,r.vz)(e)})),(e=>({fetchPluginsData:()=>e((0,r.s4)())})))(o)},24289:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(92819),s=a(25162),i=a.n(s),r=a(99196),o=a(59309),c=a(77805);class l extends r.Component{static propTypes={isFetchingSiteProducts:i().bool};static defaultProps={isFetchingSiteProducts:!1};componentDidMount(){!this.props.isFetchingSiteProducts&&(0,n.isEmpty)(this.props.siteProducts)&&this.props.fetchSiteProducts()}render(){return null}}const p=(0,o.$j)((e=>({isFetchingSiteProducts:(0,c.aX)(e),products:(0,c.dt)(e)})),(e=>({fetchSiteProducts:()=>e((0,c.pW)())})))(l)},69270:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(92819),s=a(25162),i=a.n(s),r=a(99196),o=a(59309),c=a(96300),l=a(33002);class p extends r.Component{static propTypes={isFetchingSiteData:i().bool,isOfflineMode:i().bool,sitePlan:i().object};static defaultProps={isFetchingSiteData:!1,isOfflineMode:!1,sitePlan:{}};UNSAFE_componentWillMount(){this.props.isFetchingSiteData||this.props.isOfflineMode||!(0,n.isEmpty)(this.props.sitePlan)||(this.props.fetchSiteData(),this.props.fetchSiteFeatures(),this.props.fetchAvailablePlans(),this.props.fetchSitePurchases())}render(){return null}}const d=(0,o.$j)((e=>({isFetchingSiteData:(0,l._5)(e),isOfflineMode:(0,c.Ex)(e),sitePlan:(0,l.UL)(e)})),(e=>({fetchSiteData:()=>e((0,l.tO)()),fetchSiteFeatures:()=>e((0,l.ij)()),fetchAvailablePlans:()=>e((0,l.lA)()),fetchSitePurchases:()=>e((0,l.Z_)())})))(p)},67619:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(99196),s=a(59309),i=a(17296);class r extends n.Component{UNSAFE_componentWillMount(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}render(){return null}}r.defaultProps={fetchStatsData:()=>{}};const o=(0,s.$j)((e=>({fetchStatsData:t=>(0,i.g4)(e,t),fetchingStatsData:(0,i.F2)(e)})),(e=>({fetchStatsData:t=>e((0,i.g4)(t))})))(r)},27583:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(99196),s=a.n(n),i=a(59309),r=a(96300),o=a(69508);class c extends s().Component{UNSAFE_componentWillMount(){!this.props.isFetchingUserData&&this.props.userCanConnectAccount&&this.props.fetchUserConnectionData()}render(){return null}}const l=(0,i.$j)((e=>({isFetchingUserData:(0,r.Dd)(e),userCanConnectAccount:(0,o.n0)(e)})),(e=>({fetchUserConnectionData:()=>e((0,r.jb)())})))(c)},83526:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(99196),s=a(59309),i=a(835),r=a(17296),o=a(50416);class c extends n.Component{componentDidMount(){this.props.fetchingVaultPressData||this.props.hasLoadedVaultPressData||!this.props.isModuleActivated("vaultpress")||this.props.fetchVaultPressData()}render(){return null}}c.defaultProps={fetchVaultPressData:()=>{}};const l=(0,s.$j)((e=>({fetchVaultPressData:(0,r.l7)(),fetchingVaultPressData:(0,r.P_)(e),isModuleActivated:t=>(0,o.mp)(e,t),hasLoadedVaultPressData:(0,r.V_)(e)})),(e=>(0,i.DE)({fetchVaultPressData:r.l7},e)))(c)},5074:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(96300),c=a(22948);class l extends i.Component{static propTypes={isFetchingWafSettings:s().bool,isOfflineMode:s().bool};static defaultProps={isFetchingWafSettings:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingWafSettings||this.props.isOfflineMode||this.props.fetchWafSettings()}render(){return null}}const p=(0,r.$j)((e=>({isFetchingWafSettings:(0,c.vd)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchWafSettings:()=>e((0,c.Iv)())})))(l)},78088:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(3228),s=a(85799),i=a(59584),r=a(92819),o=a(99196),c=a.n(o),l=a(59309),p=a(17296),d=a(96300),u=a(80625),m=a(69508),h=a(69377),g=a(15080),k=a(33002),v=a(3915);class f extends c().Component{static displayName="DevCard";onPlanChange=e=>{this.props.switchPlanPreview(e.target.value)};onPermissionsChange=e=>{this.props.switchUserPermissions(e.target.value)};onThreatsChange=e=>{this.props.switchThreats(e.target.value)};onRewindStatusChange=e=>{this.props.switchRewindState(e.target.value)};onScanStatusChange=e=>{this.props.switchScanState(e.target.value)};maybeShowStatsToggle=()=>{if(!this.props.isAdmin)return c().createElement("div",null,c().createElement("hr",null),c().createElement("ul",null,c().createElement("li",null,c().createElement("label",{htmlFor:"view_stats"},c().createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats")),c().createElement("li",null,c().createElement("label",{htmlFor:"hide_stats"},c().createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!this.props.canViewStats,onChange:this.onPermissionsChange}),"Can not view stats"))))};showIsLinkedToggle=()=>c().createElement("div",null,c().createElement("hr",null),c().createElement("ul",null,c().createElement("li",null,c().createElement("label",{htmlFor:"is_linked"},c().createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked")),c().createElement("li",null,c().createElement("label",{htmlFor:"is_unlinked"},c().createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!this.props.isUserLinked,onChange:this.onPermissionsChange}),"Unlinked"))));render(){if(!this.props.canDisplayDevCard)return null;const e=(0,n.Z)(this.props.className,"jp-dev-card"),t=(0,i.scx)(this.props.sitePlan.product_slug),a=(0,r.get)(this.props.rewindStatus,["state"],!1),o=(0,r.get)(this.props.scanStatus,["state"],!1);return c().createElement(s.Z,{compact:!0,className:e},c().createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,v.Z)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),c().createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),c().createElement("ul",null,c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_free"},c().createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_personal"},c().createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_premium"},c().createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_business"},c().createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_starter"},c().createElement("input",{type:"radio",id:"jetpack_starter",value:"jetpack_starter_yearly",name:"jetpack_starter_yearly",checked:"is-jetpack-starter-plan"===t,onChange:this.onPlanChange}),"Security (10 GB)")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_security_t1"},c().createElement("input",{type:"radio",id:"jetpack_security_t1",value:"jetpack_security_t1_yearly",name:"jetpack_security_t1_yearly",checked:"is-security-t1-plan"===t,onChange:this.onPlanChange}),"Security (10 GB)")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_security_t2"},c().createElement("input",{type:"radio",id:"jetpack_security_t2",value:"jetpack_security_t2_yearly",name:"jetpack_security_t2_yearly",checked:"is-security-t2-plan"===t,onChange:this.onPlanChange}),"Security (1 TB)")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_complete"},c().createElement("input",{type:"radio",id:"jetpack_complete",value:"jetpack_complete",name:"jetpack_complete",checked:"is-complete-plan"===t,onChange:this.onPlanChange}),"Complete")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_backup_t0"},c().createElement("input",{type:"radio",id:"jetpack_backup_t0",value:"jetpack_backup_t0_yearly",name:"jetpack_backup_t0_yearly",checked:"is-backup-t0-plan"===t,onChange:this.onPlanChange}),"Backup (1 GB)")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_backup_t1"},c().createElement("input",{type:"radio",id:"jetpack_backup_t1",value:"jetpack_backup_t1_yearly",name:"jetpack_backup_t1_yearly",checked:"is-backup-t1-plan"===t,onChange:this.onPlanChange}),"Backup (10 GB)")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_backup_t2"},c().createElement("input",{type:"radio",id:"jetpack_backup_t2",value:"jetpack_backup_t2_yearly",name:"jetpack_backup_t2_yearly",checked:"is-backup-t2-plan"===t,onChange:this.onPlanChange}),"Backup (1 TB)")),c().createElement("li",{className:"jp-dev-card__deprecated-plans-list-header"},"— DEPRECATED —"),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_security_daily"},c().createElement("input",{type:"radio",id:"jetpack_security_daily",value:"jetpack_security_daily",name:"jetpack_security_daily",checked:"is-daily-security-plan"===t,onChange:this.onPlanChange}),"Security Daily")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_security_realtime"},c().createElement("input",{type:"radio",id:"jetpack_security_realtime",value:"jetpack_security_realtime",name:"jetpack_security_realtime",checked:"is-realtime-security-plan"===t,onChange:this.onPlanChange}),"Security Real-Time")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_backup_daily"},c().createElement("input",{type:"radio",id:"jetpack_backup_daily",value:"jetpack_backup_daily",name:"jetpack_backup_daily",checked:"is-daily-backup-plan"===t,onChange:this.onPlanChange}),"Backup Daily")),c().createElement("li",null,c().createElement("label",{htmlFor:"jetpack_backup_realtime"},c().createElement("input",{type:"radio",id:"jetpack_backup_realtime",value:"jetpack_backup_realtime",name:"jetpack_backup_realtime",checked:"is-realtime-backup-plan"===t,onChange:this.onPlanChange}),"Backup Real-time"))),c().createElement("hr",null),c().createElement("ul",null,c().createElement("li",null,c().createElement("label",{htmlFor:"admin_master"},c().createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (master)")),c().createElement("li",null,c().createElement("label",{htmlFor:"admin_secondary"},c().createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (secondary)")),c().createElement("li",null,c().createElement("label",{htmlFor:"editor"},c().createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),c().createElement("li",null,c().createElement("label",{htmlFor:"subscriber"},c().createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),c().createElement("hr",null),c().createElement("ul",null,c().createElement("li",null,c().createElement("label",{htmlFor:"nothreats"},c().createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),c().createElement("li",null,c().createElement("label",{htmlFor:"threats"},c().createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),c().createElement("hr",null),c().createElement("ul",null,c().createElement("strong",null,"Backup"),c().createElement("li",null,c().createElement("label",{htmlFor:"rewindUnavailable"},c().createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===a,onChange:this.onRewindStatusChange}),"Unavailable")),c().createElement("li",null,c().createElement("label",{htmlFor:"rewindProvisioning"},c().createElement("input",{type:"radio",id:"rewindProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===a,onChange:this.onRewindStatusChange}),"Provisioning")),c().createElement("li",null,c().createElement("label",{htmlFor:"rewindAwatingCreds"},c().createElement("input",{type:"radio",id:"rewindAwatingCreds",value:"awaiting_credentials",name:"awaiting_credentials",checked:"awaiting_credentials"===a,onChange:this.onRewindStatusChange}),"Awaiting credentials")),c().createElement("li",null,c().createElement("label",{htmlFor:"rewindActive"},c().createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===a,onChange:this.onRewindStatusChange}),"Active"))),c().createElement("ul",null,c().createElement("strong",null,"Scan"),c().createElement("li",null,c().createElement("label",{htmlFor:"scanUnavailable"},c().createElement("input",{type:"radio",id:"scanUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===o,onChange:this.onScanStatusChange}),"Unavailable")),c().createElement("li",null,c().createElement("label",{htmlFor:"scanProvisioning"},c().createElement("input",{type:"radio",id:"scanProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===o,onChange:this.onScanStatusChange}),"Provisioning")),c().createElement("li",null,c().createElement("label",{htmlFor:"scanIdle"},c().createElement("input",{type:"radio",id:"scanIdle",value:"idle",name:"idle",checked:"idle"===o,onChange:this.onScanStatusChange}),"Idle")),c().createElement("li",null,c().createElement("label",{htmlFor:"scanScanning"},c().createElement("input",{type:"radio",id:"scanScanning",value:"scanning",name:"scanning",checked:"scanning"===o,onChange:this.onScanStatusChange}),"Scanning"))),this.maybeShowStatsToggle(),this.showIsLinkedToggle())}}const E=(0,l.$j)((e=>({isDevVersion:(0,m._W)(e),sitePlan:(0,k.UL)(e),canDisplayDevCard:(0,u.Ry)(e),isUserLinked:(0,d.BU)(e),canViewStats:(0,m.px)(e),isConnectionOwner:(0,d.QM)(e),isAdmin:(0,m.WB)(e),canEditPosts:(0,m.rp)(e),getVaultPressScanThreatCount:()=>(0,p._R)(e),rewindStatus:(0,h.of)(e),scanStatus:(0,g.C8)(e)})),(e=>({switchPlanPreview:t=>e((0,u.fb)(t)),switchUserPermissions:t=>e((0,u.Yw)(t)),switchThreats:t=>e((0,u.aX)(parseInt(t))),disableDevCard:()=>e((0,u.Wh)()),switchRewindState:t=>e((0,u._s)(t)),switchScanState:t=>e((0,u.pH)(t))})))(f)},30860:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(82674),s=a.n(n),i=a(3228),r=a(85799),o=a(15773),c=a(5060),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u),h=a(3915);class g extends m().Component{static propTypes={actionButton:d().element,actionButtonExpanded:d().element,cardKey:d().string,compact:d().bool,disabled:d().bool,expandedSummary:d().oneOfType([d().string,d().element]),expanded:d().bool,icon:d().string,onClick:d().func,onClose:d().func,onOpen:d().func,summary:d().oneOfType([d().string,d().element]),clickableHeader:d().bool,clickableHeaderText:d().bool};static defaultProps={onOpen:l.noop,onClose:l.noop,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1};state={expanded:this.props.expanded};onClick=()=>{this.props.children&&this.setState({expanded:!this.state.expanded}),this.props.onClick&&this.props.onClick(),this.state.expanded?this.props.onClose(this.props.cardKey):this.props.onOpen(this.props.cardKey)};getClickAction=()=>{if(!this.props.disabled)return this.onClick};getActionButton=()=>this.state.expanded&&this.props.actionButtonExpanded||this.props.actionButton;renderActionButton=()=>{const e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return m().createElement("button",{className:"dops-foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){const t=24;return m().createElement("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e},m().createElement("span",{className:"screen-reader-text"},"More"),m().createElement(c.Z,{icon:this.props.icon,size:t}))}};renderContent=()=>m().createElement("div",{className:"dops-foldable-card__content"},this.props.children);renderHeader=()=>{const e=this.props.summary?m().createElement("span",{className:"dops-foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?m().createElement("span",{className:"dops-foldable-card__summary_expanded"},this.props.expandedSummary," "):null,a=this.props.header?m().createElement("div",{className:"dops-foldable-card__header-text"},this.props.header):null,n=this.props.subheader?m().createElement("div",{className:"dops-foldable-card__subheader"},this.props.subheader):null,r={role:"button",tabIndex:0,onClick:this.getClickAction(),onKeyDown:(0,h.Z)(this.getClickAction())},o=(0,i.Z)("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),c=(0,i.Z)("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return m().createElement("div",s()({className:o},this.props.clickableHeader?r:{}),m().createElement("span",{className:"dops-foldable-card__main"},m().createElement("div",s()({className:c},this.props.clickableHeaderText?r:{}),a,n)),m().createElement("span",{className:"dops-foldable-card__secondary"},e,t,this.renderActionButton()))};render(){const e=this.props.compact?o.Z:r.Z,t=(0,i.Z)("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return m().createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}const k=g},7516:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(6895),s=a(88275),i=a(38237),r=a(65736),o=a(3228),c=a(78088),l=a(84069),p=a(99196),d=a.n(p),u=a(59309),m=a(96300),h=a(80625),g=a(69508),k=a(3915);const __=r.__,_x=r._x,v=()=>{const e=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-e/1.5),window.scrollY>e&&window.requestAnimationFrame(v)};class f extends d().Component{static displayName="Footer";resetOnClick=()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&this.props.resetOptions()};trackVersionClick=()=>{l.Z.tracks.recordJetpackClick({target:"footer_link",link:"version"})};trackTermsClick=()=>{l.Z.tracks.recordJetpackClick({target:"footer_link",link:"terms"})};trackAboutClick=()=>{l.Z.tracks.recordJetpackClick({target:"footer_link",link:"about"})};trackPrivacyClick=()=>{window.requestAnimationFrame(v),l.Z.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})};trackModulesClick=()=>{l.Z.tracks.recordJetpackClick({target:"footer_link",link:"modules"})};trackDebugClick=()=>{l.Z.tracks.recordJetpackClick({target:"footer_link",link:"debug"})};render(){const e=(0,o.Z)(this.props.className,"jp-footer"),t=this.props.currentVersion,a=[];return this.props.isAtomicPlatform||a.push({label:(0,r.sprintf)(/* Translators: placeholder is a version number. */ __("Version %s","jetpack"),t),href:(0,n.Z)("jetpack"),target:"_blank",onClick:this.trackVersionClick}),this.props.siteConnectionStatus&&this.props.userCanManageOptions&&a.push({label:_x("Modules","Navigation item. Noun. Links to a list of modules for Jetpack.","jetpack"),title:__("Access the full list of Jetpack modules available on your site.","jetpack"),href:this.props.siteAdminUrl+"admin.php?page=jetpack_modules",onClick:this.trackModulesClick}),this.props.userCanManageOptions&&a.push({label:_x("Debug","Navigation item. Noun. Links to a debugger tool for Jetpack.","jetpack"),title:__("Test your site’s compatibility with Jetpack.","jetpack"),href:this.props.siteAdminUrl+"admin.php?page=jetpack-debugger",onClick:this.trackDebugClick}),this.props.isDevVersion&&this.props.userCanManageOptions&&a.push({label:_x("Reset Options (dev only)","Navigation item.","jetpack"),role:"button",onKeyDown:(0,k.Z)(this.resetOnClick),onClick:this.resetOnClick}),this.props.isDevVersion&&a.push({label:_x("Dev Tools","Navigation item.","jetpack"),role:"button",onKeyDown:(0,k.Z)(this.props.enableDevCard),onClick:this.props.enableDevCard}),d().createElement(s.ZP,null,d().createElement("div",{className:(0,o.Z)("jp-footer",e)},d().createElement("div",{className:"jp-footer__container"},d().createElement(i.Z,{menu:a,moduleNameHref:(0,n.Z)("jetpack"),onAboutClick:this.trackAboutClick,onPrivacyClick:this.trackPrivacyClick,onTermsClick:this.trackTermsClick})),this.props.isDevVersion&&this.props.displayDevCard&&d().createElement(c.Z,null)))}}const E=(0,u.$j)((e=>({currentVersion:(0,g.w1)(e),displayDevCard:(0,h.Ry)(e),isAtomicPlatform:(0,g.vL)(e),isDevVersion:(0,g._W)(e),isInIdentityCrisis:(0,m.l9)(e),siteConnectionStatus:(0,m.Gz)(e),userCanManageOptions:(0,g.UF)(e)})),(e=>({resetOptions:()=>e((0,h._G)("options")),enableDevCard:()=>e((0,h.vN)())})))(f)},45452:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(3228),s=a(5060),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);class l extends c().Component{static displayName="FormInputValidation";static propTypes={isError:r().bool,isWarning:r().bool,text:r().node,icon:r().string};static defaultProps={isError:!1};render(){const e=(0,n.Z)({"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 c().createElement("div",{className:e},c().createElement("span",null,c().createElement(s.Z,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}},99026:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(82674),s=a.n(n),i=a(52491),r=a.n(i),o=a(3228),c=a(97506),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u);class h extends m().Component{static displayName="ClipboardButton";static propTypes={className:d().string,text:d().string,prompt:d().string,onCopy:d().func,rna:d().bool};static defaultProps={onCopy:l.noop,rna:!1};buttonRef=m().createRef();componentDidMount(){const e=this.buttonRef.current.domNode;this.clipboard=new(r())(e,{text:()=>this.props.text}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}componentWillUnmount(){this.clipboard.destroy(),delete this.clipboard}displayPrompt=()=>{window.prompt(this.props.prompt,this.props.text)};render(){const e=(0,o.Z)("dops-clipboard-button",this.props.className);return m().createElement(c.Z,s()({rna:this.props.rna,ref:this.buttonRef},(0,l.omit)(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}}},81674:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(82674),s=a.n(n),i=a(3228),r=a(44517),o=a(92819),c=a(99196),l=a.n(c);class p extends l().Component{static displayName="CompactFormToggle";render(){return l().createElement(r.Z,s()({},(0,o.omit)(this.props,"className"),{className:(0,i.Z)(this.props.className,"is-compact")}),this.props.children)}}},44517:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(3228),s=a(28402),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);class l extends o.Component{static propTypes={onChange:r().func,onKeyDown:r().func,checked:r().bool,disabled:r().bool,id:r().string,className:r().string,toggling:r().bool,"aria-label":r().string,children:r().node,disabledReason:r().node};static defaultProps={checked:!1,disabled:!1,onKeyDown:()=>{},onChange:()=>{},disabledPopoverPosition:"bottom",disabledReason:""};toggleSwitchRef=c().createRef();state={showPopover:!1};static idNum=0;constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.onClick=this.onClick.bind(this),this.onLabelClick=this.onLabelClick.bind(this)}togglePopover=()=>{this.setState({showPopover:!this.state.showPopover})};_onPopoverClose=()=>{this.setState({showPopover:!1})};UNSAFE_componentWillMount(){this.id=this.constructor.idNum++}onKeyDown(e){this.props.disabled||("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.props.onChange()),this.props.onKeyDown(e))}onClick(){this.props.disabled?this.props.disabledReason&&this.togglePopover():this.props.onChange()}onLabelClick(e){if(this.props.disabled)return;const t=e.target.nodeName.toLowerCase();"a"!==t&&"input"!==t&&"select"!==t&&(e.preventDefault(),this.props.onChange())}renderPopover=()=>c().createElement(s.Z,{isVisible:this.state.showPopover,context:this.toggleSwitchRef.current,position:this.props.disabledPopoverPosition,onClose:this._onPopoverClose,className:"dops-info-popover__tooltip"},this.props.disabledReason);render(){const e=this.props.id||"toggle-"+this.id,t=(0,n.Z)("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return c().createElement("span",null,c().createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),c().createElement("label",{className:"form-toggle__label",htmlFor:e},c().createElement("span",{className:"form-toggle__switch",disabled:this.props.disabled,id:e,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0,ref:this.toggleSwitchRef}),c().createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}},61775:(e,t,a)=>{"use strict";a.d(t,{B1:()=>m,C_:()=>p,Gj:()=>u,ih:()=>h,lX:()=>d});var n=a(82674),s=a.n(n),i=(a(65736),a(3228)),r=(a(97506),a(96200)),o=a(92819),c=a(99196),l=a.n(c);const p=e=>l().createElement("fieldset",s()({},(0,o.omit)(e,"className"),{className:(0,i.Z)(e.className,"jp-form-fieldset")}),e.children);class d extends l().Component{static displayName="FormLabel";render(){const{className:e,htmlFor:t,...a}=this.props;return l().createElement("label",s()({},a,{htmlFor:t,className:(0,i.Z)(e,"jp-form-label")}),this.props.children)}}class u extends l().Component{static displayName="FormLegend";render(){return l().createElement("legend",s()({},(0,o.omit)(this.props,"className"),{className:(0,i.Z)(this.props.className,"jp-form-legend")}),this.props.children)}}l().Component;l().Component;class m extends l().Component{static displayName="FormTextarea";render(){return l().createElement("textarea",s()({},(0,o.omit)(this.props,"className"),{className:(0,i.Z)(this.props.className,"jp-form-textarea")}),this.props.children)}}l().Component;l().Component;class h extends l().Component{handleOnSelect=e=>{this.props.onOptionChange({target:{type:"select",name:this.props.name,value:e.value}})};render(){const e=[];return(0,o.forOwn)(this.props.validValues,((t,a)=>{e.push({label:t,value:a})})),l().createElement(r.Z,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value,rna:this.props.rna})}}},37851:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(71668),s=a(52099),i=a(51128),r=a.n(i),o=a(91088),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p),u=a(59309),m=a(835),h=a(41549);const g=r()("calypso:notices");class k extends d().Component{static displayName="NoticesList";static propTypes={id:l().string,notices:l().oneOfType([l().object,l().array])};static defaultProps={id:"overlay-notices",notices:Object.freeze([])};UNSAFE_componentWillMount(){g("Mounting Global Notices React component.")}removeNotice=e=>{e&&o.Z.removeNotice(e)};handleLocalNoticeDismissClick=e=>()=>this.removeNotice(e);handleReduxNoticeDismissClick=e=>()=>this.props.removeNotice(e);render(){let e=(this.props.notices[this.props.id]||[]).map((function(e,t){return d().createElement(n.Z,{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&&d().createElement(s.Z,{href:e.href,onClick:e.onClick},e.button))}),this);return e=e.concat(this.props.storeNotices.map((function(e,t){return d().createElement(n.Z,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})}),this)),e.length?d().createElement("div",{id:this.props.id,className:"global-notices"},e):null}}const v=(0,u.$j)((e=>({storeNotices:e.globalNotices})),(e=>(0,m.DE)({removeNotice:h.qq},e)))(k)},65901:(e,t,a)=>{"use strict";a.d(t,{m:()=>s,o:()=>n});const n="NEW_NOTICE",s="REMOVE_NOTICE"},41549:(e,t,a)=>{"use strict";a.d(t,{RT:()=>o,iI:()=>r,qq:()=>i,tF:()=>c});var n=a(92819),s=a(65901);function i(e){return{noticeId:e,type:s.m}}function r(e,t,a={}){const i={noticeId:a.id||(0,n.uniqueId)(),duration:a.duration,showDismiss:"boolean"!=typeof a.showDismiss||a.showDismiss,isPersistent:a.isPersistent||!1,displayOnNextPage:a.displayOnNextPage||!1,status:e,text:t};return{type:s.o,notice:i}}const o=r.bind(null,"is-success"),c=r.bind(null,"is-error");r.bind(null,"is-info"),r.bind(null,"is-warning")},33929:(e,t,a)=>{"use strict";a.d(t,{x:()=>i});var n=a(835),s=a(65901);function i(e=[],t){switch(t.type){case s.o:return[t.notice,...e];case s.m:return e.filter((e=>e.noticeId!==t.noticeId))}return e}(0,n.UY)({globalNotices:i})},5060:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(3228),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r);class c extends o().PureComponent{static displayName="Gridicon";static defaultProps={className:"",size:24};static propTypes={icon:i().string.isRequired,size:i().number,onClick:i().func,className:i().string};needsOffset(e,t){return["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-backspace","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plans","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle"].indexOf(e)>=0&&t%18==0}needsOffsetX(e,t){return["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e)>=0&&t%18==0}needsOffsetY(e,t){return["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e)>=0&&t%18==0}render(){const e="gridicons-"+this.props.icon,t=this.needsOffset(e,this.props.size),a=this.needsOffsetX(e,this.props.size),s=this.needsOffsetY(e,this.props.size),i=(0,n.Z)("gridicon",e,this.props.className,{"needs-offset":t,"needs-offset-x":a,"needs-offset-y":s});let r;switch(e){default:r=o().createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-backspace":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 7H8l-5 5 5 5h11c1.104 0 2-.896 2-2V9c0-1.104-.896-2-2-2zm-.647 6.646l-.707.707L16 12.707l-1.647 1.647-.707-.707L15.293 12l-1.647-1.646.707-.707L16 11.293l1.646-1.647.707.707L16.707 12l1.646 1.646z"})));break;case"gridicons-bell":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 6h-4V3c0-.5-.5-1-1-1H8c-.5 0-1 .5-1 1v3H3c-.6 0-1 .4-1 1v5h20V7c0-.6-.4-1-1-1zm-6 0H9V4h6v2zM14 15h-4v-2H2v8c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-8h-8v2z"})));break;case"gridicons-calendar":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-cart":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-checkmark-circle":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-create":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-small":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("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"})));break;case"gridicons-custom-post-type":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-dropdown":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-flag":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-globe":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})));break;case"gridicons-help":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("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-2h2v2zm2.003-6.41c-.23.36-.6.704-1.108 1.028-.43.28-.7.482-.808.61-.108.13-.163.283-.163.46V13H11.04v-.528c0-.4.08-.74.245-1.017.163-.276.454-.546.872-.808.332-.21.57-.397.716-.565.145-.168.217-.36.217-.577 0-.172-.077-.308-.233-.41-.156-.1-.358-.15-.608-.15-.62 0-1.342.22-2.17.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.286z"})));break;case"gridicons-history":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),o().createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("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-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10v-2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8v.5c0 .827-.673 1.5-1.5 1.5s-1.5-.673-1.5-1.5V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.65 0 3.102-.81 4.013-2.043C16.648 15.6 17.527 16 18.5 16c1.93 0 3.5-1.57 3.5-3.5V12c0-5.523-4.477-10-10-10zm0 13c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"})));break;case"gridicons-menu":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 13c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2-1.105 0-2 .896-2 2v5c0 1.104.895 2 2 2zm4-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6c0 2.972 2.164 5.433 5 5.91V20h2v-3.09c2.836-.478 5-2.94 5-5.91h-2z"})));break;case"gridicons-minus-small":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("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"})));break;case"gridicons-pages":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pencil":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plans":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-plugins":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-quote":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-reader":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reader-following":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M23,13.482L15.508,21L12,17.4l1.412-1.388l2.106,2.188l6.094-6.094L23,13.482z M15.545,15.344L20,10.889V2H2v14c0,1.1,0.9,2,2,2h4.538l4.913-4.832L15.545,15.344z M8,13H4v-1h4V13z M11,11H4v-1h7V11z M11,9H4V8h7V9z M18,6H4V4h14V6z"})));break;case"gridicons-reblog":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-reply":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-rotate":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-sign-out":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-circle":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-chat":r=o().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o().createElement("g",null,o().createElement("path",{d:"M20,4h-8c-1.1,0-2,0.9-2,2v2h2c1.7,0,3,1.3,3,3v2h2v3.5l3.3-2.3c1.1-0.8,1.7-2,1.7-3.3V6C22,4.9,21.1,4,20,4z"}),o().createElement("g",null,o().createElement("path",{d:"M14,11v5c0,1.1-0.9,2-2,2H7v3.5l-3.3-2.3c-1.1-0.8-1.7-2-1.7-3.3V11c0-1.1,0.9-2,2-2h8C13.1,9,14,9.9,14,11z"}))))}return r}}const l=c},42698:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(3228),s=a(5060),i=a(28402),r=a(84069),o=a(92819),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p);const u=class extends d().Component{static displayName="InfoPopover";static propTypes={id:l().string,position:l().string,className:l().string,rootClassName:l().string,gaEventCategory:l().string,popoverName:l().string,onClick:l().func,ignoreContext:l().shape({getDOMNode:l().function})};static defaultProps={position:"bottom",onClick:o.noop};infoPopoverRef=d().createRef();state={showPopover:!1};render(){const e=(0,n.Z)("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return d().createElement("button",{ref:this.infoPopoverRef,className:e,onClick:this._onClick},d().createElement(s.Z,{icon:"info-outline",size:18}),this.props.screenReaderText?d().createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",d().createElement(i.Z,{id:this.props.id,isVisible:this.state.showPopover,context:this.infoPopoverRef.current,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:(0,n.Z)("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))}_onClick=e=>{this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)};_onClose=()=>{this.setState({showPopover:!1},this._recordStats)};_recordStats(){const{gaEventCategory:e,popoverName:t}=this.props;if(e&&t){const a=this.state.showPopover?" Opened":" Closed";r.Z.ga.recordEvent(e,"InfoPopover: "+t+a)}}}},16626:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(55609),s=a(97506),i=a(99196),r=a.n(i);const o=e=>{const{isInstalling:t=!1,children:a=null,...i}=e,o=t?r().createElement("div",{className:"jp-install-button__spinner-container"},r().createElement(n.Spinner,null)):a;return r().createElement(s.Z,i,o)}},85733:(e,t,a)=>{"use strict";a.d(t,{$j:()=>u,ZP:()=>m,zv:()=>d});var n=a(47407),s=a(92819),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o),l=a(59309),p=a(69508);class d extends n.jL{static propTypes={callToAction:r().string,className:r().string,description:r().node,eventFeature:r().string,feature:r().string,href:r().string,icon:r().string,iconAlt:r().string,iconSrc:r().string,list:r().arrayOf(r().string),onClick:r().func,trackBannerDisplay:r().func,path:r().string,plan:r().string,siteSlug:r().string,title:r().node.isRequired,noIcon:r().bool,rna:r().bool};static defaultProps={onClick:s.noop,trackBannerDisplay:s.noop,plan:"",rna:!1,noIcon:!1};componentDidMount(){!this.props.hidePromotionBanner&&this.props.arePromotionsActive&&this.props.trackBannerDisplay()}render(){return this.props.hidePromotionBanner?null:this.props.arePromotionsActive?c().createElement(n.jL,this.props):null}}function u(e){return(0,l.$j)(((e,t)=>{const a=(0,p.pK)(e);return{arePromotionsActive:(0,p.Hy)(e),userCanPurchasePlan:a,hidePromotionBanner:!!t.plan&&!a}}))((0,n.$j)(e))}const m=u(d)},6165:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(6895),s=a(14322),i=a(55609),r=a(69307),o=a(65736),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p);const __=o.__,u=e=>{const{siteBenefits:t,context:a="disconnect"}=e;return d().createElement(d().Fragment,null,t.length>0&&d().createElement(d().Fragment,null,d().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},d().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},"disconnect"===a?__("Jetpack is currently powering features on your site. Once you disconnect Jetpack, these features will no longer be available and your site may no longer function the same way.","jetpack"):__("Jetpack is currently powering features on your site. Once you deactivate Jetpack, these features will no longer be available.","jetpack",0))),d().createElement("div",{className:"jp-connection__disconnect-card__group"},t.map((({value:e,description:t,title:a},n)=>d().createElement(s.Z,{title:a,value:e,description:t,key:n}))))),t.length<=2&&d().createElement("div",{className:"jetpack-benefits__general-benefits-section"},d().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack has many powerful tools that can help you achieve your goals","jetpack")),d().createElement("ul",{className:"jetpack-benefits__general-benefits-list"},d().createElement("li",{key:"reason-cdn"},(0,r.createInterpolateElement)(__("Speed up your site and provide mobile-ready images with <ExternalLink>our CDN</ExternalLink>","jetpack"),{ExternalLink:d().createElement(i.ExternalLink,{href:(0,n.Z)("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})})),d().createElement("li",{key:"reason-brute-force"},(0,r.createInterpolateElement)(__("Block <ExternalLink>brute force attacks</ExternalLink> and get immediate notifications if your site is down","jetpack"),{ExternalLink:d().createElement(i.ExternalLink,{href:(0,n.Z)("jetpack-features-brute-force"),rel:"noopener noreferrer",target:"_blank"})})),d().createElement("li",{key:"reason-social"},(0,r.createInterpolateElement)(__("Grow your traffic with automated social <ExternalLink>publishing and sharing</ExternalLink>","jetpack"),{ExternalLink:d().createElement(i.ExternalLink,{href:(0,n.Z)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})})))))};u.propTypes={siteBenefits:l().array,context:l().oneOf(["disconnect","deactivate"])};const m=u},88120:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(3228),s=a(5060),i=a(92819),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(3915);class d extends c.Component{maybeDismiss=e=>{!this.props.showDismiss||e.code&&"Escape"!==e.code||this.props.dismiss(e)};componentDidMount(){document.addEventListener("keydown",this.maybeDismiss.bind(this),!1)}componentWillUnmount(){document.removeEventListener("keydown",this.maybeDismiss.bind(this),!1)}clickForeground(e){e.stopPropagation()}render(){const e=(0,n.Z)(this.props.className,"jp-dialogue-modern",{"has-featured-image":!!this.props.svg});return l().createElement("div",{className:"jp-dialogue-modern-full__container",role:"presentation",onClick:this.maybeDismiss,onKeyDown:(0,p.Z)(this.maybeDismiss)},l().createElement("div",{className:e,role:"presentation",onClick:this.clickForeground,onKeyDown:(0,p.Z)(this.clickForeground)},this.props.showDismiss&&l().createElement(s.Z,{icon:"cross-small",className:"jp-dialogue-modern-full__dismiss",tabIndex:"0",onKeyDown:(0,p.Z)(this.props.dismiss),onClick:this.props.dismiss}),this.props.svg,l().createElement("div",{className:"jp-dialogue-modern__content"},l().createElement("h1",{className:"jp-dialogue-modern__title"},this.props.title),this.props.content),l().createElement("div",null,this.props.belowContent)))}}d.propTypes={content:o().oneOfType([o().string,o().object]).isRequired,belowContent:o().oneOfType([o().string,o().object]).isRequired,svg:o().oneOfType([o().bool,o().object]),dismissOnClick:o().func,showDismiss:o().bool,title:o().string,adminUrl:o().string,dismiss:o().func},d.defaultProps={svg:!1,showDismiss:!0,dismiss:i.noop,content:"",belowContent:"",title:""};const u=d},72129:(e,t,a)=>{"use strict";a.d(t,{D:()=>l});var n=a(80800),s=a(65736),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);const __=s.__,l=({altText:e=__("Loading…","jetpack")})=>c().createElement("div",{className:"jp-loading-icon"},c().createElement("img",{src:n.hp+"/jetpack-logomark-blue.svg",alt:e}));l.propTypes={altText:r().string}},12832:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(6895),s=a(94706),i=a(65736),r=a(84069),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(33951);const __=i.__,u=e=>{const t={path:"",isUserLinked:!1,isOwner:!1,isFetchingData:!1,isAgencyAccount:!1,...e};(0,l.useEffect)((()=>{r.Z.tracks.recordEvent("jetpack_manage_banner_view",{feature:"manage",page:t.path})}),[t.path]);const a=(0,l.useCallback)((e=>{r.Z.tracks.recordJetpackClick({target:e,feature:"manage",page:t.path})}),[t.path]),i=(0,l.useCallback)((()=>{a("jp-manage-learn-more")}),[a]),o=(0,l.useCallback)((()=>{a("jp-manage-dashboard-sites")}),[a]),c=(0,l.useCallback)((()=>{a("jp-manage-sign-up")}),[a]);let u,m,h;return t.isAgencyAccount?(u=__("Manage sites","jetpack"),m=(0,n.Z)("jetpack-at-a-glance-to-jetpack-manage-dashboard"),h=o):(u=__("Sign up for free","jetpack"),m=(0,n.Z)("jetpack-at-a-glance-to-jetpack-manage-sign-up"),h=c),p().createElement(s.Z,{icon:d,title:__("Manage your clients' sites with ease","jetpack"),description:__("Jetpack Manage has the tools you need to manage multiple WordPress sites. Monitor site security, performance, and traffic, and get alerted if a site needs attention. Plus, get bulk discounts.","jetpack"),secondaryCtaLabel:__("Learn more","jetpack"),secondaryCtaURL:(0,n.Z)("jetpack-at-a-glance-to-jetpack-manage-learn-more"),secondaryCtaIsExternalLink:!0,secondaryCtaOnClick:i,primaryCtaLabel:u,primaryCtaURL:m,primaryCtaIsExternalLink:!0,primaryCtaOnClick:h})};u.propTypes={path:c().string,isUserLinked:c().bool,isOwner:c().bool,isFetchingData:c().bool,isAgencyAccount:c().bool};const m=u},90381:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(99196),s=a.n(n),i=a(59309),r=a(835),o=a(35613);class c extends s().Component{static displayName="DismissableNotices";dismissJetpackActionNotice=()=>{this.props.dismissJetpackActionNotice(this.props.jetpackNotices)};renderNotices=()=>{this.props.jetpackNotices;return!1};render(){return s().createElement("div",null,this.renderNotices())}}const l=(0,i.$j)((e=>({jetpackNotices:(0,o.gq)(e),isDismissed:t=>(0,o.jE)(e,t)})),(e=>(0,r.DE)({dismissJetpackActionNotice:o.Sn},e)))(c)},77332:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(65736),s=a(71668),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o),l=a(4721);const __=n.__;class p extends c().Component{static defaultProps={text:__("Connection Error, please reconnect.","jetpack"),display:!0};static propTypes={text:r().string.isRequired,errorCode:r().string,errorData:r().object,action:r().string,display:r().bool};render(){return c().createElement(s.Z,{showDismiss:!1,text:this.props.text,status:"is-error",icon:"link-break",display:this.props.display},c().createElement(l.Z,{errorCode:this.props.errorCode,errorData:this.props.errorData,action:this.props.action},__("Restore Connection","jetpack")))}}},75060:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>P});var n=a(80800),s=a(6895),i=a(55609),r=a(69307),o=a(65736),c=a(79099),l=a(37851),p=a(71668),d=a(52099),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h),k=a(59309),v=a(44498),f=a(56286),E=a(96300),_=a(69508),b=a(59963),y=a(50416),w=a(33002),C=a(61372),j=a(34358),S=a(90381),N=a(69635),x=a(41225),R=a(81375);const __=o.__;class Z extends g().Component{static displayName="DevVersionNotice";render(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&g().createElement(p.Z,{showDismiss:!1,text:__("You are currently running a development version of Jetpack.","jetpack")},g().createElement(d.Z,{href:n.Ez,external:!0},__("Submit Beta feedback","jetpack")))}}Z.propTypes={isDevVersion:m().bool.isRequired,userIsSubscriber:m().bool.isRequired};class T extends g().Component{static displayName="OfflineModeNotice";render(){if("offline"===this.props.siteConnectionStatus){const e=this.props.siteOfflineMode,t=[];e.filter&&t.push(__("The jetpack_development_mode filter is active","jetpack")),e.constant&&t.push((0,o.sprintf)(/* translators: placeholder is a constant, such as WP_LOCAL_DEV. */ __("The %s constant is defined","jetpack"),"JETPACK_DEV_DEBUG")),e.wpLocalConstant&&t.push((0,o.sprintf)(/* translators: placeholder is a constant, such as WP_LOCAL_DEV. */ __("The %s constant is defined","jetpack"),"WP_LOCAL_DEV")),e.url&&t.push(__("Your site URL is a known local development environment URL","jetpack"));const a=(0,r.createInterpolateElement)(/* translators: reasons is an unordered list of reasons why a site may be in Offline mode. */ __("Currently in <a>Offline Mode</a> (some features are disabled) because: <reasons/>","jetpack"),{a:g().createElement("a",{href:(0,s.Z)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:g().createElement("ul",null,t.map(((e,t)=>g().createElement("li",{key:t},e))))});return g().createElement(p.Z,{showDismiss:!1,status:"is-info",text:a},g().createElement(d.Z,{href:(0,s.Z)("jetpack-support-development-mode")},__("Learn More","jetpack")))}return!1}}T.propTypes={siteConnectionStatus:m().oneOfType([m().string,m().bool]).isRequired,siteOfflineMode:m().oneOfType([m().bool,m().object]).isRequired};class A extends g().Component{static displayName="UserUnlinked";render(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&g().createElement("div",{className:"jp-unlinked-notice"},g().createElement(c.Z,{title:__("Connect your WordPress.com account","jetpack"),description:__("Jetpack is powering your site, but to access all of its features you’ll need to connect your account to WordPress.com.","jetpack"),callToAction:__("Create account","jetpack"),href:`${this.props.connectUrl}&from=unlinked-user-connect`,icon:g().createElement(f.ZP,{icon:"wordpress",size:24}),className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0}))}}A.propTypes={connectUrl:m().string.isRequired,siteConnected:m().bool.isRequired};class M extends g().Component{static displayName="JetpackNotices";render(){const e=this.props.siteDataErrors.filter((e=>e.hasOwnProperty("action"))),t=this.props.location.pathname.startsWith("/connect-user");return g().createElement("div",{"aria-live":"polite"},g().createElement(l.Z,null),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&(this.props.connectionErrors.length>0||e.length>0)&&g().createElement(N.Z,{errors:this.props.connectionErrors.concat(e),display:!this.props.isReconnectingSite}),g().createElement(R.Z,null),g().createElement(Z,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),g().createElement(T,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),g().createElement(x.Z,null),g().createElement(S.Z,null),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&!t&&g().createElement(A,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&g().createElement(p.Z,{showDismiss:!1,status:"is-warning",text:__("This site is not connected to WordPress.com. Please ask the site administrator to connect.","jetpack")}),this.props.licensingError&&g().createElement(p.Z,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}),this.props.startFreshEnabled&&g().createElement(p.Z,{status:"is-warning",showDismiss:!1},g().createElement(j.F,{siteAdminUrl:this.props.siteAdminUrl})),this.props.showGoogleAnalyticsNotice&&g().createElement(p.Z,{status:"is-warning",showDismiss:!1},g().createElement("div",null,__("Jetpack's Google Analytics feature will be removed on August 6, 2024.","jetpack")),g().createElement(i.ExternalLink,{href:(0,s.Z)("jetpack-support-google-analytics")},__("Read this document for details and how to keep tracking visits with Google Analytics","jetpack"))))}}const P=(0,k.$j)((e=>({connectUrl:(0,E.AM)(e),siteConnectionStatus:(0,E.Gz)(e),userCanConnectSite:(0,_.Mc)(e),userCanConnectAccount:(0,_.n0)(e),userIsSubscriber:(0,_.dc)(e),isConnectionOwner:(0,E.QM)(e),isLinked:(0,E.BU)(e),isDevVersion:(0,_._W)(e),isAtomicSite:(0,_.Ug)(e),siteOfflineMode:(0,E.Hu)(e),isInIdentityCrisis:(0,E.l9)(e),connectionErrors:(0,_.PK)(e),siteDataErrors:(0,w.Vc)(e),isReconnectingSite:(0,E.O_)(e),licensingError:(0,b.Tk)(e),hasConnectedOwner:(0,E.it)(e),siteAdminUrl:(0,_.wW)(e),startFreshEnabled:!!(0,y.rT)(e,"custom-css")?.options?.replace,showGoogleAnalyticsNotice:(0,y.mp)(e,"google-analytics")&&!(0,_.Pw)(e)&&!(0,C.vz)(e)&&!(0,C.TB)(e,"jetpack-legacy-google-analytics/jetpack-legacy-google-analytics.php")})),(e=>({clearLicensingError:()=>e((0,b.xw)())})))((0,v.EN)(M))},69635:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(80800),s=a(65736),i=a(71668),r=a(52099),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(77332);const __=s.__;class u extends p().Component{static propTypes={errors:c().array.isRequired,display:c().bool};static defaultProps={display:!0};getAction(e,t,a,n,s){switch(e){case"reconnect":return p().createElement(d.Z,{text:t,errorCode:a,errorData:n,action:e,display:this.props.display});case"support":return p().createElement(i.Z,{text:t,status:"is-error",icon:"link-break",showDismiss:!1,display:this.props.display},p().createElement(r.Z,{href:s,external:!0},__("Contact support","jetpack")))}return null}renderOne(e){const t=this.props.isDevVersion?n.Ez:n.Fr,a=this.getAction(e.action,e.message,e.code,e.hasOwnProperty("data")?e.data:{},t);return null===a?null:p().createElement(p().Fragment,{key:e.action},a)}render(){const e={},t=this.props.errors.filter((e=>e.hasOwnProperty("action")));for(const a of t)e.hasOwnProperty(a.action)||(e[a.action]=a);return Object.values(e).map((e=>this.renderOne(e)))}}},4721:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(51045),s=a(65736),i=a(41549),r=a(52099),o=a(84069),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p),u=a(59309),m=a(51975),h=a(96300);const __=s.__,g=e=>{const{restoreConnection:t}=(0,n.Z)(),a=(0,p.useCallback)((()=>{const t={location:"dashboard",purpose:"reconnect"};return e.errorCode&&(t.error_code=e.errorCode),e.errorData&&(e.errorData.api_error_code&&(t.api_error_code=e.errorData.api_error_code),e.errorData.api_http_code&&(t.api_http_code=e.errorData.api_http_code)),t}),[e.errorCode,e.errorData]),s=(0,p.useCallback)((()=>(e.beforeReconnectSite(),t(!1).then((t=>{"in_progress"===t.status&&e.initiateUserConnection(t.authorizeUrl)})).catch((t=>e.reconnectFailed(t))))),[e,t]),i=(0,p.useCallback)((()=>{e.isReconnectingSite||(o.Z.tracks.recordEvent("jetpack_termination_error_notice_click",a()),s())}),[e.isReconnectingSite,a,s]);return(0,p.useEffect)((()=>{o.Z.tracks.recordEvent("jetpack_termination_error_notice_view",a())}),[a]),d().createElement(r.Z,{icon:e.icon,onClick:i},e.children)};g.propTypes={icon:l().string,errorCode:l().string,errorData:l().object,action:l().string};const k=(0,u.$j)((e=>({isReconnectingSite:(0,h.O_)(e)})),(e=>({beforeReconnectSite:()=>{e({type:m.bGw}),e((0,i.iI)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:m.dDV}),e({type:m.hmP,connectUrl:t}),e((0,h.bL)())},reconnectFailed:t=>{e({type:m.B9W,error:t}),e((0,i.qq)("reconnect-jetpack")),e((0,i.iI)("is-error",(0,s.sprintf)(/* translators: placeholder is the error. */ __("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}})))(g)},41225:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(65736),s=a(71668),i=a(99196),r=a.n(i),o=a(59309),c=a(44498),l=a(33002);const __=n.__;const p=(0,c.EN)((function({activeSitePurchases:e,location:{pathname:t}}){if("/plans"!==t)return null;if(e.length<=1)return null;const a=e.map((({product_slug:e,...t})=>({...t,product_slug:e.replace("_monthly","")}))),i=a.find((({product_slug:e})=>e.includes("backup")));if(!i)return null;const o=a.find((({product_slug:e})=>"jetpack_personal"===e||"jetpack_premium"===e||"jetpack_business"===e));if(!o)return null;if("jetpack_backup_realtime"===i.product_slug&&"jetpack_business"!==o.product_slug)return null;let c=__("daily backups","jetpack");return"jetpack_business"===o.product_slug&&(c=__("real-time backups","jetpack")),r().createElement(s.Z,{status:"is-warning",showDismiss:!1,text:(0,n.sprintf)(/* translators: %1$s: feature, such as "daily backups". %2$s: Plan name, such as "Jetpack Premium". %3$s: Product name, such as "Jetpack Backups". */ __("Your %2$s Plan includes %1$s. Looks like you also purchased the %3$s product. Consider removing %3$s.","jetpack"),c,o.product_name,i.product_name)})})),d=(0,o.$j)((e=>({activeSitePurchases:(0,l.nl)(e)})))(p)},81375:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(6895),s=a(55609),i=a(69307),r=a(65736),o=a(71668),c=a(52099),l=a(39327),p=a(99196),d=a.n(p),u=a(59309),m=a(69508),h=a(35613);const __=r.__;class g extends d().Component{static displayName="JetpackStateNotices";state={showNotice:!0};dismissJetpackStateNotice=()=>{this.setState({showNotice:!1})};getErrorFromKey=e=>{const t=this.props.jetpackStateNoticesErrorDescription||!1;let a="";switch(e){case"cheatin":a=__("Cheatin' uh?","jetpack");break;case"access_denied":a=(0,i.createInterpolateElement)(__("<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>","jetpack"),{a:d().createElement("a",{href:(0,n.Z)("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:d().createElement("p",null)});break;case"wrong_state":a=__("You need to stay logged in to your WordPress blog while you authorize Jetpack.","jetpack");break;case"invalid_client":a=__("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.","jetpack");break;case"invalid_grant":a=__('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.',"jetpack");break;case"site_inaccessible":case"site_requires_authorization":a=(0,r.sprintf)(/* translators: placeholder is an error code and message. */ __("Your website needs to be publicly accessible to use Jetpack: %s","jetpack"),e);break;case"connection_disabled":a=(0,i.createInterpolateElement)(__("This site can't be connected to WordPress.com because it violates our <a>Terms of Service</a>.","jetpack"),{a:d().createElement(s.ExternalLink,{href:(0,n.Z)("wpcom-tos")})});break;case"not_public":a=(0,i.createInterpolateElement)(__("<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).","jetpack"),{s:d().createElement("strong",null)});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":a=__("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.","jetpack");break;case"register_http_request_failed":case"token_http_request_failed":a=(0,r.sprintf)(/* translators: placeholder is an error code and message. */ __("Jetpack could not contact WordPress.com: %s. This usually means something is incorrectly configured on your web host.","jetpack"),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":a=(0,i.createInterpolateElement)((0,r.sprintf)(/* translators: placeholder is an error code and message. */ __("<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: %s","jetpack"),e),{s:d().createElement("strong",null)});break;default:a=e}return t?d().createElement("div",null,a,d().createElement("br",null),t):d().createElement("div",null,a)};getMessageFromKey=e=>{let t,a="",s="is-info";switch(e){case"modules_activated":this.props.isAtomicPlatform||(a=(0,i.createInterpolateElement)((0,r.sprintf)(/* translators: placeholder is a version number, like 8.8. */ __("Welcome to <s>Jetpack %s</s>!","jetpack"),this.props.currentVersion),{s:d().createElement("strong",null)}));break;case"already_authorized":a=__("Your Jetpack is already connected.","jetpack"),s="is-success";break;case"authorized":a=__("You're fueled up and ready to go, Jetpack is now active.","jetpack"),s="is-success";break;case"linked":a=__("You're fueled up and ready to go.","jetpack"),s="is-success";break;case"protect_misconfigured_ip":a=__("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.","jetpack"),s="is-info",t=d().createElement(c.Z,{href:(0,n.Z)("jetpack-support-security-troubleshooting-protect")},__("Learn More","jetpack"));break;case"reconnection_completed":a=(0,i.createInterpolateElement)(__("Jetpack successfully reconnected! You can check your Jetpack Connection health by visiting the <a>Site Health tool</a>.","jetpack"),{a:d().createElement("a",{href:this.props.siteAdminUrl+"site-health.php"})}),s="is-success";break;default:a=e}return[a,s,t]};renderContent=()=>{let e,t="is-info",a="";const n=this.props.jetpackStateNoticesErrorCode,s=this.props.jetpackStateNoticesMessageCode,i=this.props.jetpackStateNoticesMessageContent;if(n||s||i){if(n&&(a=this.getErrorFromKey(n),"access_denied"!==n&&(t="is-error")),i&&i.release_post_content&&!this.props.isAtomicPlatform)return d().createElement(l.Z,{dismiss:this.dismissJetpackStateNotice,version:this.props.currentVersion,releasePostContent:i.release_post_content,featuredImage:i.release_post_featured_image,title:i.release_post_title});if(s){const n=this.getMessageFromKey(s);a=n[0],t=n[1],e=n[2]}if(""!==a)return d().createElement(o.Z,{status:t,onDismissClick:this.dismissJetpackStateNotice,text:a},e)}};render(){return d().createElement("div",null,this.state.showNotice?this.renderContent():null)}}const k=(0,u.$j)((e=>({currentVersion:(0,m.w1)(e),isAtomicPlatform:(0,m.vL)(e),jetpackStateNoticesErrorCode:(0,h.gB)(e),jetpackStateNoticesMessageCode:(0,h.pt)(e),jetpackStateNoticesErrorDescription:(0,h.XF)(e),jetpackStateNoticesMessageContent:(0,h.Rv)(e),siteAdminUrl:(0,m.wW)(e)})))(g)},22177:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(25347),s=a(37325),i=a(55609),r=a(65736),o=a(3228),c=a(97506),l=a(5060),p=a(84069),d=a(25162),u=a.n(d),m=a(99196),h=a.n(m);const __=r.__,g=e=>{const{icon:t,title:a,productSlug:d,description:u="",features:g=[],disclaimer:k,currencyCode:v,price:f,discountedPrice:E,billingDescription:_,callToAction:b,checkoutText:y,checkoutUrl:w,priority:C="primary",illustrationPath:j}=e,S=!!j,N=!!b;(0,m.useEffect)((()=>{p.Z.tracks.recordEvent("jetpack_product_card_view",{type:d})}),[d]);const x=(0,m.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_product_card_checkout_click",{type:d})}),[d]),R=(0,m.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_product_card_disclaimer_click",{type:d})}),[d]),Z=(0,o.Z)({"jp-product-card":!0,"jp-product-card--has-media":S,"jp-product-card--has-cta":N}),T=(0,o.Z)(["jp-product-card__checkout",`jp-product-card__checkout--${C}`]);return h().createElement("div",{className:Z},N&&h().createElement("div",{className:"jp-product-card__cta"},h().createElement(l.Z,{icon:"star"})," ",b),h().createElement("div",{className:"jp-product-card__inner"},!!t&&h().createElement("div",{className:"jp-product-card__icon"},t),h().createElement("h3",{className:"jp-product-card__title"},a),h().createElement("p",{className:"jp-product-card__description"},u),g.length&&h().createElement("ul",{className:"jp-product-card__features"},g.map(((e,t)=>h().createElement("li",{className:"jp-product-card__feature",key:t},h().createElement(l.Z,{icon:"checkmark"}),e)))),h().createElement("div",{className:"jp-product-card__price"},h().createElement(n.Z,{currency:v,price:f,offPrice:E,showNotOffPrice:!!E,legend:_})),h().createElement(s.Z,{agreeButtonLabel:y}),h().createElement(c.Z,{className:T,href:w,onClick:x},y),k&&h().createElement("p",{className:"jp-product-card__disclaimer"},`${k.text} `,h().createElement(i.ExternalLink,{onClick:R,href:k.url,target:"_blank",rel:"noopener noreferrer"},k.link_text))),S&&h().createElement("img",{className:"jp-product-card__media",src:j,alt:(0,r.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Graphical illustration of product: %s","jetpack"),a)}))};g.propTypes={checkoutText:u().string.isRequired,checkoutUrl:u().string.isRequired,title:u().string.isRequired,price:u().number.isRequired,discountedPrice:u().number,currencyCode:u().string.isRequired,billingDescription:u().string.isRequired,productSlug:u().string.isRequired,description:u().string,features:u().array,disclaimer:u().object,icon:u().element,callToAction:u().string,priority:u().string,illustrationPath:u().string};const k=g},56484:(e,t,a)=>{"use strict";a.d(t,{e:()=>m});var n=a(65736),s=a(97506),i=a(98492),r=a(84069),o=a(99196),c=a.n(o),l=a(59309),p=a(96300),d=a(69508),u=a(50416);const __=n.__,m=(0,l.$j)((e=>({canEditPosts:(0,d.rp)(e),canManageOptions:(0,d.UF)(e),hasConnectedOwner:(0,p.it)(e),isCurrentUserLinked:(0,p.BU)(e),isSiteConnected:(0,p.j8)(e),activeModules:(0,u.Xx)(e),siteConnectionStatus:(0,p.Gz)(e)})))((e=>{const{activeModules:t,canEditPosts:a,canManageOptions:n,hasConnectedOwner:l,isCurrentUserLinked:p,isSiteConnected:d,location:u={pathname:""},siteConnectionStatus:m}=e,{pathname:h}=u,g=["/","/dashboard","/my-plan","/plans"].includes(h)||h.includes("/recommendations"),k=""===h,v=(0,o.useCallback)((()=>{r.Z.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})}),[]),f=(0,o.useCallback)((()=>{r.Z.tracks.recordJetpackClick({target:"masthead",path:"nav_settings"})}),[]);if(k)return null;if(!m)return null;if(h.startsWith("/setup"))return null;if(!a)return null;if("offline"!==m&&!d)return null;if("offline"!==m&&!n){if(!l)return null;if(!p)return null;if(!t.some((e=>["post-by-email","publicize"].includes(e))))return null}return c().createElement("div",{className:"jp-masthead__nav"},c().createElement(i.Z,null,c().createElement(s.Z,{compact:!0,href:"#/dashboard",primary:g&&!k,onClick:v},__("Dashboard","jetpack")),c().createElement(s.Z,{compact:!0,href:"#/settings",primary:!g&&!k,onClick:f},__("Settings","jetpack"))))}))},36795:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(78868),s=a(84069),i=a(99196),r=a.n(i),o=a(59309),c=a(96300),l=a(69508),p=a(56484);class d extends r().Component{trackLogoClick=()=>{s.Z.tracks.recordJetpackClick({target:"masthead",path:"logo"})};testConnection=()=>this.props.testConnection();render(){const{isWoASite:e,sandboxDomain:t,siteConnectionStatus:a}=this.props,s="offline"===a?r().createElement("code",null,"Offline Mode"):"",i=t?r().createElement("code",{id:"sandbox-domain-badge",onClick:this.testConnection,onKeyDown:this.testConnection,role:"button",tabIndex:0,title:`Sandboxing via ${t}. Click to test connection.`},"API Sandboxed"):"";return r().createElement("div",{className:"jp-masthead"},r().createElement("div",{className:"jp-masthead__inside-container"},r().createElement("div",{className:"jp-masthead__logo-container"},r().createElement("a",{onClick:this.trackLogoClick,className:"jp-masthead__logo-link",href:"#dashboard"},r().createElement(n.Z,{className:"jetpack-logo__masthead",height:40})),s,i),e&&r().createElement(p.e,{location:this.props.location})))}}const u=(0,o.$j)((e=>({isWoASite:(0,l.Pw)(e),sandboxDomain:(0,c.LN)(e),siteConnectionStatus:(0,c.Gz)(e)})),(e=>({testConnection:()=>e((0,c.SG)())})))(d)},42676:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(82674),s=a.n(n),i=a(3228),r=a(2056),o=a(19567),c=a.n(o),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u);let h=!1;class g extends m().Component{static propTypes={style:d().object,width:d().oneOf(["wide","medium","narrow"]),className:d().string,title:d().string,initialFocus:d().string,onRequestClose:d().func};static defaultProps={style:{}};domNode=null;state={overlayMouseDown:!1};componentDidMount(){c()("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),c()(document).keyup(this.handleEscapeKey);try{this.focusTrap=(0,r.v)(this.domNode),this.focusTrap.activate({initialFocus:this.props.initialFocus})}catch(e){}}componentWillUnmount(){c()("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),c()(document).unbind("keyup",this.handleEscapeKey);try{this.focusTrap.deactivate()}catch(e){}}handleEscapeKey=e=>{"Escape"===e.code&&this.maybeClose()};maybeClose=()=>{this.props.onRequestClose&&!h&&this.props.onRequestClose()};handleMouseDownOverlay=e=>{e.preventDefault(),e.stopPropagation(),this.setState({overlayMouseDown:!0})};handleClickOverlay=e=>{e.preventDefault(),e.stopPropagation(),this.state.overlayMouseDown&&this.props.onRequestClose&&!h&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())};handleMouseEventModal=e=>{e.stopPropagation()};render(){let e;const{style:t,className:a,width:n,title:r,...o}=this.props,{forwardedProps:c}=(0,l.omit)(o,"onRequestClose");switch(n){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}const p=(0,l.assign)({},t,e);return m().createElement("div",{ref:e=>this.domNode=e,className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},m().createElement("div",s()({className:(0,i.Z)("dops-modal",a),style:p,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":r},c),this.props.children))}}g.preventClose=function(){h=!0},g.allowClose=function(){h=!1};const k=g},39224:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(6895),s=a(69307),i=a(65736),r=a(3228),o=a(85733),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p);const __=i.__;class u extends o.zv{static propTypes={moduleName:l().string.isRequired};render(){if(!this.props.moduleName)return null;const e=(0,r.Z)("module-overridden-banner",{"is-compact":this.props.compact});return d().createElement(o.zv,{className:e,title:this.props.moduleName,icon:"cog",description:(0,s.createInterpolateElement)((0,i.sprintf)(/* translators: placeholder is a feature name. */ __("%s has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),this.props.moduleName),{link:d().createElement("a",{href:(0,n.Z)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}const m=(0,o.$j)(u)},39031:(e,t,a)=>{"use strict";a.d(t,{l:()=>p});var n=a(65736),s=a(92819),i=a(59309),r=a(96300),o=a(69508),c=a(50416),l=a(3230);const __=n.__;function p(e){return(0,i.$j)(((e,t)=>({validValues:(a,n="")=>("string"==typeof(0,s.get)(t,["module","module"])&&(n=t.module.module),(0,c.R9)(e,n,a)),getOptionCurrentValue:(t,a)=>(0,c.C5)(e,t,a),getSettingCurrentValue:(t,a="",n=!0)=>(0,l.$8)(e,t,a,n),getSiteRoles:()=>(0,o.Td)(e),isUpdating:t=>(0,l.Cu)(e,t),adminEmailAddress:(0,o.je)(e),currentIp:(0,o.de)(e),siteAdminUrl:(0,o.wW)(e),isCurrentUserLinked:(0,r.BU)(e)})),(e=>({updateOptions:(t,a={})=>e((0,l.VP)(t,a)),regeneratePostByEmailAddress:()=>{const t={progress:__("Updating Post by Email address…","jetpack"),success:__("Regenerated Post by Email address.","jetpack"),error:e=>(0,n.sprintf)(/* translators: placeholder is an error message. */ __("Error regenerating Post by Email address. %s","jetpack"),e)};return e((0,l.VP)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:()=>e((0,l.a6)()),clearUnsavedSettingsFlag:()=>e((0,l._1)()),refreshSettings:()=>e((0,l.wv)())})))(e)}},2353:(e,t,a)=>{"use strict";a.d(t,{u:()=>p});var n=a(82674),s=a.n(n),i=a(39031),r=a(84069),o=a(92819),c=a(99196),l=a.n(c);function p(e){class t extends l().Component{state={options:{}};onOptionChange=e=>{const t=e.target.name;let a;a="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,this.updateFormStateOptionValue(t,a)};updateFormStateOptionValue=(e,t=void 0)=>{"string"==typeof e&&(e={[e]:t});const a={...this.state.options,...e};return this.setState({options:a}),!0};resetFormStateOption=e=>(this.setState({options:(0,o.omit)(this.state.options,[e])}),!0);updateFormStateAndSaveOptionValue=(e,t=void 0)=>{"string"==typeof e&&(e={[e]:t}),this.props.updateOptions({...this.state.options,...e}).then((()=>{this.setState({options:{...this.state.options,...e}})}))};updateFormStateModuleOption=(e,t,a=!1)=>{this.trackSettingsToggle(e,t,!this.getOptionValue(t)),this.getOptionValue(e)?a?this.props.updateOptions({[e]:!1,[t]:!this.getOptionValue(t)}):this.props.updateOptions({[t]:!this.getOptionValue(t)}):this.props.updateOptions({[e]:!0,[t]:!0})};toggleModuleNow=e=>{this.props.updateOptions({[e]:!this.getOptionValue(e)})};componentDidUpdate(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}onSubmit=e=>{e.preventDefault(),this.props.updateOptions(this.state.options).then((()=>{const e={};(0,o.each)(this.state.options,((t,a)=>{a=a.replace(/\-/,"_"),e[a]=t})),this.trackFormSubmission(e),this.setState({options:{}})})).then((()=>{this.props.refreshSettings(),this.props.clearUnsavedSettingsFlag()}))};getOptionValue=(e,t="",a=!0)=>(0,o.get)(this.state.options,e,this.props.getSettingCurrentValue(e,t,a));shouldSaveButtonBeDisabled=()=>this.isSavingAnyOption()||!this.isDirty();isDirty=()=>!!Object.keys(this.state.options).length;isSavingAnyOption=(e="")=>this.props.isUpdating(e);trackFormSubmission=e=>{r.Z.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)};trackSettingsToggle=(e,t,a)=>{r.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:a?"on":"off"})};render(){return l().createElement(e,s()({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,updateFormStateAndSaveOptionValue:this.updateFormStateAndSaveOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty,resetFormStateOption:this.resetFormStateOption,optionsState:this.state.options},this.props))}}return(0,i.l)(t)}},5004:(e,t,a)=>{"use strict";a.d(t,{T:()=>g});var n=a(6895),s=a(48229),i=a(69307),r=a(65736),o=a(84069),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p),u=a(59309),m=a(50416);const __=r.__;class h extends p.Component{static displayName="ModuleToggle";static propTypes={toggleModule:l().func,activated:l().bool,disabled:l().bool,className:l().string,compact:l().bool,id:l().string,overrideCondition:l().string};static defaultProps={activated:!1,disabled:!1,overrideCondition:""};toggleModule=()=>(this.trackModuleToggle(this.props.slug,this.props.activated),this.props.toggleModule(this.props.slug,this.props.activated));trackModuleToggle=(e,t)=>{"stats"!==e&&o.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})};isDisabledByOverride=()=>{const e=this.props.getModuleOverride(this.props.slug);return this.props.overrideCondition?this.props.overrideCondition===e:!!e};getDisabledReason=()=>{if(!this.isDisabledByOverride())return null;const e=this.props.getModuleOverride(this.props.slug),t={link:d().createElement("a",{href:(0,n.Z)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}})};switch(e){case"active":return(0,i.createInterpolateElement)(__("This feature has been enabled by a site administrator. <link>Learn more</link>.","jetpack"),t);case"inactive":return(0,i.createInterpolateElement)(__("This feature has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),t);default:return(0,i.createInterpolateElement)(__("This feature is being managed by a site administrator. <link>Learn more</link>.","jetpack"),t)}};render(){return d().createElement(s.Z,{checked:this.props.activated||this.props.isModuleActivated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled||this.isDisabledByOverride(),onChange:this.toggleModule,help:this.getDisabledReason(),label:this.props.children})}}const g=(0,u.$j)((e=>({getModuleOverride:t=>(0,m.Qy)(e,t)})))(h)},86138:(e,t,a)=>{"use strict";a.d(t,{B:()=>i});var n=a(99196),s=a.n(n);const i=s().createElement("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0862 0.22949C10.7536 -0.0764963 10.2464 -0.0764967 9.9138 0.229489L7.7667 2.20503C7.59755 2.36066 7.37497 2.44281 7.14676 2.43386L4.24981 2.32013C3.80111 2.30252 3.41252 2.63319 3.35171 3.08438L2.95909 5.99736C2.92816 6.22684 2.80973 6.43486 2.62923 6.57677L0.337958 8.37807C-0.0169309 8.65707 -0.105018 9.1637 0.134374 9.54896L1.67996 12.0364C1.80172 12.2323 1.84285 12.4689 1.79452 12.6952L1.18104 15.5687C1.08602 16.0138 1.33965 16.4593 1.76723 16.5984L4.52782 17.4963C4.7453 17.5671 4.92675 17.7215 5.03321 17.9264L6.38456 20.5275C6.59387 20.9304 7.07055 21.1064 7.48625 20.9342L10.1701 19.8225C10.3816 19.7349 10.6184 19.7349 10.8299 19.8225L13.5137 20.9342C13.9294 21.1064 14.4061 20.9304 14.6154 20.5275L15.9668 17.9264C16.0733 17.7215 16.2547 17.5671 16.4722 17.4963L19.2328 16.5984C19.6603 16.4593 19.914 16.0138 19.819 15.5687L19.2055 12.6953C19.1572 12.4689 19.1983 12.2323 19.32 12.0364L20.8656 9.54896C21.105 9.1637 21.0169 8.65707 20.662 8.37807L18.3708 6.57677C18.1903 6.43486 18.0718 6.22684 18.0409 5.99736L17.6483 3.08438C17.5875 2.63319 17.1989 2.30252 16.7502 2.32013L13.8532 2.43386C13.625 2.44281 13.4024 2.36066 13.2333 2.20503L11.0862 0.22949ZM8.76611 14H7.15771V9.11328H7.07422L5.54492 10.146V8.75732L7.15771 7.65869H8.76611V14ZM14.2072 14H12.6823V12.9189H9.56662V11.7017C10.3401 10.2822 11.1443 8.95068 11.966 7.65869H14.2072V11.6621H14.9983V12.9189H14.2072V14ZM10.9641 11.6401V11.7192H12.7219V8.81006H12.6428C12.0759 9.69336 11.4738 10.6865 10.9641 11.6401Z",fill:"black"}))},23609:(e,t,a)=>{"use strict";a.d(t,{N:()=>c});var n=a(25162),s=a.n(n),i=a(99196),r=a.n(i),o=a(86138);const c=({text:e})=>r().createElement("div",{className:"jetpack-money-back-guarantee"},r().createElement("div",{className:"jetpack-money-back-guarantee__icon"},o.B),r().createElement("div",{className:"jetpack-money-back-guarantee__text"},e));c.propTypes={text:s().string.isRequired}},54265:(e,t,a)=>{"use strict";a.d(t,{Z:()=>S});var n=a(65736),s=a(7679),i=a(11677),r=a(24399),o=a(21675),c=a(56923),l=a(51128),p=a.n(l),d=a(84069),u=a(92819),m=a(25162),h=a.n(m),g=a(99196),k=a.n(g),v=a(59309),f=a(44498),E=a(96300),_=a(69508),b=a(50416),y=a(89292),w=a(61372);const __=n.__,_x=n._x,C=p()("calypso:url-search");class j extends k().Component{static displayName="NavigationSettings";state={searchOpen:!1};UNSAFE_componentWillMount(){this.onRouteChange(this.props.location),this.props.history.listen(this.onRouteChange)}UNSAFE_componentWillReceiveProps(e){e.search||this.setState({searchOpen:!1})}doSearch=e=>{if(this.setState({searchOpen:!1!==e}),this.onSearch)return void this.onSearch(e);const t=window.location.href.split("#")[1].split("?");this.props.searchForTerm(e);const a="#"+t[0]+(e?"?term="+e:"");C("search posts for:",e),C("setting URL: "+a),window.location.href=a};onRouteChange=e=>{const t=(e.search||"").substr(1).split("&").filter((e=>0===e.indexOf("term=")));let a="";t.length>0&&(a=t[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(a))};maybeShowSearch(){if(this.props.userCanManageModules)return k().createElement(i.Z,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:__("Search for a Jetpack feature.","jetpack"),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})}trackNavClick(e){d.Z.tracks.recordJetpackClick({target:"nav_item",path:e})}handleClickForTracking(e){return()=>this.trackNavClick(e)}render(){let e,t,a;return this.props.userCanManageModules?e=k().createElement(c.Z,{selectedText:this.props.routeName},this.props.hasAnySecurityFeature&&k().createElement(o.Z,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.location.pathname||"/settings"===this.props.location.pathname},_x("Security","Navigation item.","jetpack")),this.props.hasAnyPerformanceFeature&&k().createElement(o.Z,{path:"#performance",onClick:this.handleClickForTracking("performance"),selected:"/performance"===this.props.location.pathname},_x("Performance","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["masterbar","markdown","custom-content-types","post-by-email","infinite-scroll","copy-post"])&&k().createElement(o.Z,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["publicize","sharedaddy","likes"])&&k().createElement(o.Z,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname},_x("Sharing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["comments","gravatar-hovercards","markdown"])&&k().createElement(o.Z,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.location.pathname},_x("Discussion","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["seo-tools","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&k().createElement(o.Z,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.location.pathname},_x("Traffic","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["subscriptions"])&&k().createElement(o.Z,{path:"#newsletter",onClick:this.handleClickForTracking("newsletter"),selected:"/newsletter"===this.props.location.pathname},_x("Newsletter","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["wordads"])&&k().createElement(o.Z,{path:"#earn",onClick:this.handleClickForTracking("earn"),selected:"/earn"===this.props.location.pathname},_x("Monetize","Navigation item.","jetpack"))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["publicize"])&&k().createElement(o.Z,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname||"/settings"===this.props.location.pathname},_x("Sharing","Navigation item.","jetpack")):"",a=this.props.isModuleActivated("post-by-email")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["post-by-email"])&&k().createElement(o.Z,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")):"",e=k().createElement(c.Z,{selectedText:this.props.routeName},a,t)),k().createElement("div",{id:"jp-navigation",className:"dops-navigation"},k().createElement(s.Z,null),k().createElement(r.Z,{selectedText:this.props.routeName},e,this.maybeShowSearch()))}}j.propTypes={userCanManageModules:h().bool.isRequired,isSubscriber:h().bool.isRequired,userCanPublish:h().bool.isRequired,isLinked:h().bool.isRequired,isSiteConnected:h().bool.isRequired,isModuleActivated:h().func.isRequired,searchHasFocus:h().bool.isRequired,location:h().object.isRequired},j.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:u.noop,searchHasFocus:!1};const S=(0,v.$j)((e=>({hasAnyOfTheseModules:t=>(0,b.og)(e,t),hasAnyPerformanceFeature:(0,b.zc)(e),hasAnySecurityFeature:(0,b.Su)(e),userCanManageModules:(0,_.pK)(e),isSubscriber:(0,_.dc)(e),userCanPublish:(0,_.D6)(e),isLinked:(0,E.BU)(e),isSiteConnected:(0,E.q7)(e),isModuleActivated:t=>(0,b.mp)(e,t),moduleList:(0,b.hU)(e),isPluginActive:t=>(0,w.TB)(e,t),searchTerm:(0,y.He)(e)})),(e=>({searchForTerm:t=>e((0,y.eb)(t))})))((0,f.EN)(j))},32977:(e,t,a)=>{"use strict";a.d(t,{Z:()=>y});var n=a(6895),s=a(69307),i=a(65736),r=a(3228),o=a(24399),c=a(21675),l=a(56923),p=a(84069),d=a(25162),u=a.n(d),m=a(99196),h=a.n(m),g=a(59309),k=a(44498),v=a(96300),f=a(69508),E=a(50416),_=a(8722);const _x=i._x;class b extends h().Component{trackNavClick=e=>{p.Z.tracks.recordJetpackClick({target:"nav_item",path:e})};trackNewRecommendations=()=>{this.props.newRecommendationsCount>0&&!this.props.location.pathname.startsWith("/recommendations")&&p.Z.tracks.recordEvent("jetpack_recommendations_new_recommendation_bubble_visible",{path:this.props.location.pathname})};trackDashboardClick=()=>{this.trackNavClick("dashboard")};trackMyPlanClick=()=>{this.trackNavClick("my-plan")};trackPlansClick=()=>{this.trackNavClick("plans")};trackRecommendationsClick=()=>{const e=this.props.newRecommendationsCount>0;p.Z.tracks.recordJetpackClick({target:"nav_item",path:"recommendations",is_new_recommendations_bubble_visible:e})};componentDidMount(){this.trackNewRecommendations()}render(){let e;const t=(0,n.Z)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-site-only-plans",{site:this.props.blogID??this.props.siteUrl,...this.props.purchaseToken?{query:`purchasetoken=${this.props.purchaseToken}`}:{}});return e=this.props.userCanManageModules?h().createElement(l.Z,{selectedText:this.props.routeName},h().createElement(c.Z,{path:"#/dashboard",onClick:this.trackDashboardClick,selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},_x("At a Glance","Navigation item.","jetpack")),!this.props.isOfflineMode&&this.props.isLinked&&h().createElement(c.Z,{path:"#/my-plan",onClick:this.trackMyPlanClick,selected:"/my-plan"===this.props.location.pathname},_x("My Plan","Navigation item.","jetpack")),!this.props.isOfflineMode&&h().createElement(c.Z,{isExternalLink:!0,path:t,onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname},_x("Plans","Navigation item.","jetpack")),this.props.showRecommendations&&h().createElement(c.Z,{path:"#/recommendations",onClick:this.trackRecommendationsClick,selected:this.props.location.pathname.startsWith("/recommendations")},(0,s.createInterpolateElement)((0,i.sprintf)(/* translators: %d is a count of how many new (unread) recommendations are available. */ _x("Recommendations <count>%d</count>","Navigation item.","jetpack"),this.props.newRecommendationsCount),{count:h().createElement("span",{className:(0,r.Z)("dops-section-nav-tab__update-badge",{"is-hidden":this.props.location.pathname.startsWith("/recommendations")||!this.props.newRecommendationsCount})})}))):h().createElement(l.Z,{selectedText:this.props.routeName},h().createElement(c.Z,{path:"#/dashboard",selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},_x("At a Glance","Navigation item.","jetpack"))),h().createElement("div",{id:"jp-navigation",className:"dops-navigation"},h().createElement(o.Z,{selectedText:this.props.routeName},e))}}b.propTypes={routeName:u().string.isRequired,isOfflineMode:u().bool};const y=(0,g.$j)((e=>({userCanManageModules:(0,f.pK)(e),userCanViewStats:(0,f.px)(e),isModuleActivated:t=>(0,E.mp)(e,t),isOfflineMode:(0,v.Ex)(e),isLinked:(0,v.BU)(e),hasConnectedOwner:(0,v.it)(e),showRecommendations:(0,f.mb)(e),newRecommendationsCount:(0,_.dU)(e),siteUrl:(0,f.JR)(e),purchaseToken:(0,f.as)(e)})))((0,k.EN)(b))},14241:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(36288),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r),c=a(59309),l=a(49517),p=a(96300),d=a(69508),u=a(50416);class m extends o().Component{shouldComponentUpdate(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.location.pathname!==this.props.location.pathname}renderMainContent=e=>{let t;switch(e){case"/dashboard":default:this.props.history.replace("/dashboard"),t=o().createElement(n.Z,this.props);break;case"/settings":case"/writing":case"/sharing":case"/performance":this.props.isSubscriber||(t=o().createElement(l.Z,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,userCanManageModules:this.props.userCanManageModules}))}return window.wpNavMenuClassChange(),o().createElement("div",null,t)};render(){return this.renderMainContent(this.props.location.pathname)}}m.propTypes={userCanViewStats:i().bool.isRequired,isSubscriber:i().bool.isRequired,siteConnectionStatus:i().any.isRequired};const h=(0,c.$j)((e=>({userCanViewStats:(0,d.px)(e),siteConnectionStatus:(0,p.Gz)(e),isSubscriber:(0,d.dc)(e),isModuleActivated:t=>(0,u.mp)(e,t),userCanManageModules:(0,d.pK)(e)})))(m)},71668:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(3228),s=a(5060),i=a(92819),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(3915);class d extends l().Component{static displayName="SimpleNotice";static defaultProps={duration:0,status:null,showDismiss:!0,className:"",onDismissClick:i.noop,display:!0};static propTypes={status:o().string,showDismiss:o().bool,isCompact:o().bool,duration:o().number,text:o().oneOfType([o().oneOfType([o().string,o().node]),o().arrayOf(o().oneOfType([o().string,o().node]))]),icon:o().string,onDismissClick:o().func,className:o().string,display:o().bool};dismissTimeout=null;componentDidMount(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}componentWillUnmount(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}getIcon=()=>{let e;switch(this.props.status){case"is-info":default:e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice"}return e};clearText=e=>"string"==typeof e?e.replace(/(<([^>]+)>)/gi,""):e;render(){const{children:e,className:t,icon:a,isCompact:i,onDismissClick:r,showDismiss:o=!i,status:c,text:d,dismissText:u,display:m}=this.props,h=(0,n.Z)("dops-notice",c,t,{"is-compact":i,"is-dismissable":o,"is-hidden":!m});return l().createElement("div",{className:h},l().createElement("span",{className:"dops-notice__icon-wrapper"},l().createElement(s.Z,{className:"dops-notice__icon",icon:a||this.getIcon(),size:24})),l().createElement("span",{className:"dops-notice__content"},l().createElement("span",{className:"dops-notice__text"},d?this.clearText(d):e)),d?e:null,o&&l().createElement("span",{role:"button",onKeyDown:(0,p.Z)(r),tabIndex:"0",className:"dops-notice__dismiss",onClick:r},l().createElement(s.Z,{icon:"cross",size:24}),l().createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},u)))}}},52099:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(5060),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r);class c extends o().Component{static displayName="NoticeAction";static propTypes={href:i().string,onClick:i().func,external:i().bool,icon:i().string};static defaultProps={external:!1};render(){const e={className:"dops-notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(e.target="_blank"),o().createElement("a",e,o().createElement("span",null,this.props.children),this.props.icon&&o().createElement(n.Z,{icon:this.props.icon,size:24}),this.props.external&&o().createElement(n.Z,{icon:"external",size:24}))}}},53234:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(80800),s=a(59584),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);const l={[s._dN]:"plans/wpcom-free.svg",[s.syR]:"plans/wpcom-personal.svg",[s.Qm2]:"plans/wpcom-personal.svg",[s.TID]:"plans/wpcom-personal.svg",[s.wmd]:"plans/wpcom-personal.svg",[s.pd0]:"plans/wpcom-personal.svg",[s.xfZ]:"plans/wpcom-premium.svg",[s.G6C]:"plans/wpcom-premium.svg",[s._BF]:"plans/wpcom-premium.svg",[s.OEg]:"plans/wpcom-premium.svg",[s.p7x]:"plans/wpcom-business.svg",[s.j2d]:"plans/wpcom-business.svg",[s.hhG]:"plans/wpcom-business.svg",[s.Wgk]:"plans/wpcom-business.svg",[s.sqC]:"plans/wpcom-business.svg",[s.f$H]:"plans/wpcom-business.svg",[s.$Kn]:"plans/wpcom-business.svg",[s.fDC]:"plans/wpcom-business.svg",[s.JA7]:"plans/wpcom-ecommerce.svg",[s.f3A]:"plans/wpcom-ecommerce.svg",[s.A3l]:"plans/wpcom-ecommerce.svg",[s.lv]:"plans/wpcom-ecommerce.svg",[s.EcK]:"plans/wpcom-ecommerce.svg",[s.TBc]:"plans/wpcom-ecommerce.svg",[s.e9K]:"plans/wpcom-ecommerce.svg",[s.Pte]:"plans/wpcom-ecommerce.svg",[s.vQF]:"plans/wpcom-ecommerce.svg",[s.uzL]:"plans/wpcom-ecommerce.svg",[s.Ijo]:"products/product-jetpack-search.svg",[s.unl]:"products/product-jetpack-search.svg",[s.ZRv]:"products/product-jetpack-backup.svg",[s.hI$]:"products/product-jetpack-backup.svg",[s.Ba4]:"products/product-jetpack-backup.svg",[s.tVY]:"products/product-jetpack-backup.svg",[s.XLA]:"products/product-jetpack-backup.svg",[s.LAg]:"products/product-jetpack-backup.svg",[s.UsJ]:"products/product-jetpack-backup.svg",[s.Yq$]:"products/product-jetpack-scan.svg",[s.WSn]:"products/product-jetpack-scan.svg",[s.tlC]:"products/product-jetpack-scan.svg",[s.INL]:"products/product-jetpack-anti-spam.svg",[s.shc]:"products/product-jetpack-anti-spam.svg",[s.vSC]:"products/product-jetpack-anti-spam.svg",[s.Q1Y]:"products/product-jetpack-search.svg",[s.dWz]:"products/product-jetpack-search.svg",[s.YN_]:"products/product-jetpack-search.svg",[s.uxe]:"products/product-jetpack-search.svg",[s.ljz]:"plans/jetpack.svg",[s.apc]:"plans/jetpack.svg",[s.nsL]:"plans/jetpack.svg",[s.Xzm]:"plans/jetpack.svg",[s.p2b]:"plans/jetpack.svg",[s.NJq]:"plans/jetpack.svg",[s.yYZ]:"plans/jetpack.svg",[s.WjF]:"plans/jetpack.svg",[s.Rw2]:"plans/jetpack.svg",[s.ns9]:"plans/jetpack.svg",[s.Etl]:"plans/jetpack.svg",[s.Cb]:"plans/jetpack.svg",[s.s1w]:"plans/jetpack.svg",[s.aSV]:"plans/jetpack.svg",[s.iPR]:"plans/jetpack.svg",[s.th6]:"plans/jetpack.svg",[s.JX4]:"plans/jetpack.svg",[s.FLw]:"products/product-jetpack-videopress.svg",[s.v_I]:"products/product-jetpack-videopress.svg",[s.Bi]:"products/product-jetpack-videopress.svg",[s.vKQ]:"products/product-jetpack-social.svg",[s.eld]:"products/product-jetpack-social.svg",[s.k31]:"products/product-jetpack-social.svg",[s.lF9]:"products/product-jetpack-social.svg",[s.vbP]:"products/product-jetpack-social.svg",[s.k2r]:"products/product-jetpack-social.svg",[s.dNW]:"products/product-jetpack-social.svg",[s.Hmm]:"products/product-jetpack-social.svg",[s.qBb]:"products/product-jetpack-social.svg",[s.ko$]:"plans/jetpack-golden-token.svg",[s.O3V]:"plans/jetpack.svg",[s.PuQ]:"plans/jetpack.svg",[s.FSp]:"plans/jetpack.svg",[s._dE]:"products/product-jetpack-backup.svg",[s.icM]:"products/product-jetpack-backup.svg",[s.sTY]:"products/product-jetpack-backup.svg",[s.$Po]:"products/product-jetpack-backup.svg",[s.VlB]:"plans/jetpack.svg",[s.DlI]:"plans/jetpack.svg",[s.jIY]:"plans/jetpack.svg",[s.G$d]:"plans/jetpack.svg",[s.Mzu]:"products/product-jetpack-boost.svg",[s.qnt]:"products/product-jetpack-boost.svg",[s.C7d]:"products/product-jetpack-boost.svg",[s.Dgm]:"products/product-jetpack-ai.svg",[s.yWn]:"products/product-jetpack-ai.svg",[s.our]:"products/product-jetpack-ai.svg",[s.nE6]:"products/product-jetpack-stats.svg",[s.JEv]:"products/product-jetpack-stats.svg",[s.JBA]:"products/product-jetpack-stats.svg",[s.Guz]:"products/product-jetpack-stats.svg",[s.j2v]:"products/product-jetpack-stats.svg"};class p extends o.Component{render(){const{className:e,alt:t,plan:a}=this.props;return c().createElement("img",{className:e,src:n.hp+l[a],width:32,height:32,alt:t||""})}}p.propTypes={classNames:r().string,alt:r().string,plan:r().oneOf([s._dN,s.syR,s.Qm2,s.TID,s.wmd,s.pd0,s.xfZ,s.G6C,s._BF,s.OEg,s.p7x,s.j2d,s.hhG,s.Wgk,s.JA7,s.f3A,s.A3l,s.lv,s.uzL,s.Ijo,s.unl,s.ZRv,s.hI$,s.tVY,s.Ba4,s.XLA,s.LAg,s.UsJ,s.Yq$,s.WSn,s.tlC,s.INL,s.shc,s.vSC,s.Q1Y,s.dWz,s.YN_,s.uxe,s.ljz,s.apc,s.nsL,s.Xzm,s.p2b,s.NJq,s.yYZ,s.WjF,s.Rw2,s.ns9,s.Etl,s.Cb,s.s1w,s.aSV,s.iPR,s.th6,s.JX4,s.FLw,s.v_I,s.Bi,s.vKQ,s.eld,s.k31,s.lF9,s.vbP,s.k2r,s.dNW,s.Hmm,s.qBb,s.ko$,s.O3V,s.PuQ,s.FSp,s._dE,s.icM,s.sTY,s.$Po,s.VlB,s.DlI,s.jIY,s.G$d,s.FLw,s.v_I,s.Bi,s.nE6,s.JEv,s.JBA,s.Guz,s.j2v]).isRequired}},88154:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(87553),s=a(81114),i=a(25162),r=a.n(i);const o=({installOrActivatePrompt:e,pluginLink:t,pluginName:a,pluginSlug:i,pluginFiles:r})=>React.createElement("div",{className:"plugin-dash-item"},React.createElement(s.Z,{className:"plugin-dash-item__section-header",label:a}),React.createElement(n.Z,{pluginName:a,pluginSlug:i,pluginLink:t,pluginFiles:r,installOrActivatePrompt:e}));o.propTypes={pluginName:r().string.isRequired,pluginFiles:r().arrayOf(r().string).isRequired,pluginSlug:r().string.isRequired,pluginLink:r().string.isRequired,installOrActivatePrompt:r().element.isRequired};const c=o},87553:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(64743),s=a(55609),i=a(65736),r=a(85799),o=a(85733),c=a(84069),l=a(99196),p=a(59309),d=a(61372);const __=i.__,u=(0,p.$j)(((e,{pluginFiles:t})=>({isFetchingPluginsData:(0,d.vz)(e),aPluginIsInstalled:t.some((t=>(0,d.P8)(e,t))),aPluginIsActive:t.some((t=>(0,d.TB)(e,t)))})),(e=>({fetchPluginsData:()=>e((0,d.s4)())})))((({fetchPluginsData:e,isFetchingPluginsData:t,aPluginIsActive:a,aPluginIsInstalled:p,pluginName:d,pluginSlug:u,pluginLink:m,installOrActivatePrompt:h,installedPrompt:g})=>{const[k,v]=(0,l.useState)(!1),[f,E]=(0,l.useState)(!1),_=(0,l.useCallback)((()=>{if(p)if(a){if(p&&a)return Promise.resolve()}else v(!0);else E(!0);return c.Z.tracks.recordJetpackClick({target:"plugin_dash_item",type:p?"install":"activate",feature:u}),n.ZP.installPlugin(u,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>e())).finally((()=>{v(!1),E(!1)}))}),[e,a,p,u]);return t?React.createElement(r.Z,{className:"plugin-dash-item__content"},React.createElement("p",null,__("Loading…","jetpack"))):f?React.createElement(r.Z,{className:"plugin-dash-item__content"},React.createElement(s.Spinner,null),React.createElement("p",null,(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Installing %s","jetpack"),d))):k?React.createElement(r.Z,{className:"plugin-dash-item__content"},React.createElement(s.Spinner,null),React.createElement("p",null,(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Activating %s","jetpack"),d))):p?a?React.createElement(o.ZP,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Manage %s","jetpack"),d),title:g??__("Plugin is installed & active.","jetpack"),href:m,noIcon:!0}):React.createElement(o.ZP,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Activate %s","jetpack"),d),title:h,onClick:_,noIcon:!0}):React.createElement(o.ZP,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Install %s","jetpack"),d),title:h,onClick:_,noIcon:!0})}))},28402:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(3228),s=a(29494),i=a.n(s),r=a(40616),o=a(51128),c=a.n(o),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u),h=a(91850),g=a.n(h),k=a(98355);const v=()=>{},f=c()("calypso:popover"),E=new Set;class _ extends u.Component{static propTypes={autoPosition:d().bool,className:d().string,closeOnEsc:d().bool,id:d().string,ignoreContext:d().shape({getDOMNode:d().function}),position:d().string,rootClassName:d().string,showDelay:d().number,onClose:d().func.isRequired,onShow:d().func};static defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:v};constructor(e){super(e),this.setPopoverId(e.id),this.setDOMBehavior=this.setDOMBehavior.bind(this),this.setPosition=this.setPosition.bind(this),this.onClickout=this.onClickout.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onWindowChange=this.onWindowChange.bind(this),this.state={show:e.isVisible,left:-99999,top:-99999,positionClass:this.getPositionClass(e.position)}}componentDidMount(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,k.fN)()}UNSAFE_componentWillReceiveProps(e){if((0,k.kK)(e.context)?this.domContext=e.context:this.domContext=g().findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}componentDidUpdate(e){const{isVisible:t}=this.props;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after render completes"),void setTimeout((()=>this.setPosition()),0)):null}componentWillUnmount(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,k.zR)(),E.delete(this.id),f("current popover instances: ",E.size)}bindEscKeyListener(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}unbindEscKeyListener(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}onKeydown(e){if(27!==e.keyCode)return null;this.close(!0)}bindClickoutHandler(e=this.domContainer){return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),this._clickoutHandlerReference=t=>{e.contains(t.target)||this.onClickout(t)},void document.addEventListener("click",this._clickoutHandlerReference,!0)):(this.debug("no element to bind clickout side "),null)}unbindClickoutHandler(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),document.removeEventListener("click",this._clickoutHandlerReference,!0),this._clickoutHandlerReference=null)}onClickout(e){let t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){const a=g().findDOMNode(this.props.ignoreContext);t=t&&a&&a.contains&&!a.contains(e.target)}t&&this.close()}bindDebouncedReposition(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}unbindDebouncedReposition(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}onWindowChange(){this.willReposition=window.requestAnimationFrame(this.setPosition)}setDOMBehavior(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,k.kK)(this.props.context)?this.domContext=this.props.context:this.domContext=g().findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}getPositionClass(e=this.props.position){return`is-${e.replace(/\s+/g,"-")}`}computePosition(){if(!this.props.isVisible)return null;const{domContainer:e,domContext:t}=this,{position:a}=this.props;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;let n=a;this.debug("position: %o",a),this.props.autoPosition&&(n=(0,k.X6)(a,e,t),this.debug("suggested position: %o",n));const s=(0,l.assign)({},(0,k.Ou)((0,k.cv)(n,e,t),e),{positionClass:this.getPositionClass(n)});return this.debug("updating reposition: ",s),s}debug(e,...t){f(`[%s] ${e}`,this.id,...t)}setPopoverId(e){this.id=e||`pop__${i()(16)}`,E.add(this.id),this.debug("creating ..."),f("current popover instances: ",E.size)}setPosition(){const e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}getStylePosition(){const{left:e,top:t}=this.state;return{left:e,top:t}}show(){if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",`${this.props.showDelay}ms`),this.clearShowTimer(),this._openDelayTimer=setTimeout((()=>{this.setState({show:!0})}),this.props.showDelay)}hide(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}clearShowTimer(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}close(e=!1){if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}render(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;const e=(0,n.Z)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),m().createElement(r.Z,{className:this.props.rootClassName},m().createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},m().createElement("div",{className:"dops-popover__arrow"}),m().createElement("div",{className:"dops-popover__inner"},this.props.children)))}}const b=_},98355:(e,t,a)=>{"use strict";a.d(t,{Ou:()=>v,X6:()=>g,cv:()=>k,fN:()=>m,kK:()=>f,zR:()=>h});var n=a(16163),s=a.n(n),i=a(51128);const r=a.n(i)()("calypso:popover:util");function o(){const e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,r("viewport: %o",e),e}const c={top:"bottom",bottom:"top",left:"right",right:"left"},l={top:"right",left:"top",bottom:"left",right:"bottom"};let p=o();function d(){p=o()}let u=!1;const m=()=>{if(u)return r("window events already bound");u=!0,r("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",d,!0),window.addEventListener("scroll",d,!0)},h=()=>{if(!u)return r("window events are not bound");u=!1,r("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",d,!0),window.removeEventListener("scroll",d,!0)},g=(e,t,a)=>{const n=s()(a),i=t.clientHeight,r=t.clientWidth,o={top:n.top-i,bottom:p.height-n.bottom-i,left:n.left-r,right:p.width-n.right-r},d=e.split(/\s+/),[u]=d;let[,m]=d;const h=function(e,t){const a=[e,c[e],l[e],c[l[e]]];let n,s=-1/0;for(let i=0,r=a.length;i<r;i++){const r=a[i],o=t[r];if(o>0)return r;o>s&&(s=o,n=e)}return n}(u,o);return m!==h&&m!==c[h]||(m=null),function(e,t,a,n,s,i){const r=t?[e+" "+t,e,e+" "+c[t]]:[e,e+" "+l[e],e+" "+c[l[e]]];let o,d=0;const u=s*i;for(let e=0,t=r.length;e<t;e++){const t=r[e],c=k(t,a,n),l=c.left+s,m=c.top+i,h=Math.min(c.top<p.top?m-p.top:p.bottom-c.top,i),g=Math.min(c.left<p.left?l-p.left:p.right-c.left,s)*h;if(g===u)return t;g>d&&(d=g,o=t)}return o}(h,m,t,a,r,i)||e};function k(e,t,a){const n=s()(t);if(!n)throw new Error("could not get bounding client rect of Tip element");const i=n.width,r=n.height,o=s()(a);if(!o)throw new Error("could not get bounding client rect of `target`");const c=o.width,l=o.height,p=function(e,t){const a=t.body||t.getElementsByTagName("body")[0],n=t.documentElement||a.parentNode,s=n.clientTop||a.clientTop||0,i=n.clientLeft||a.clientLeft||0,r=window.pageYOffset||n.scrollTop,o=window.pageXOffset||n.scrollLeft;return{top:e.top+r-s,left:e.left+o-i}}(o,document);if(!p)throw new Error("could not determine page offset of `target`");let d={};switch(e){case"top":d={top:p.top-r,left:p.left+c/2-i/2};break;case"bottom":d={top:p.top+l,left:p.left+c/2-i/2};break;case"right":d={top:p.top+l/2-r/2,left:p.left+c};break;case"left":d={top:p.top+l/2-r/2,left:p.left-i};break;case"top left":d={top:p.top-r,left:p.left+c/2-i+15};break;case"top right":d={top:p.top-r,left:p.left+c/2-15};break;case"bottom left":d={top:p.top+l,left:p.left+c/2-i+15};break;case"bottom right":d={top:p.top+l,left:p.left+c/2-15};break;case"left top":d={top:p.top+l/2-r,left:p.left-i};break;case"left bottom":d={top:p.top+l/2,left:p.left-i};break;case"right top":d={top:p.top+l/2-r,left:p.left+c};break;case"right bottom":d={top:p.top+l/2,left:p.left+c};break;default:throw new Error(`invalid position "${e}"`)}return d}const v=function(e,t){const a=s()(t).width;return e.left=Math.max(0,Math.min(e.left,p.width-a)),e},f=e=>{try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}},30420:(e,t,a)=>{"use strict";a.d(t,{w:()=>r});var n=a(65736),s=a(99196),i=a.n(s);const __=n.__,_x=n._x,r=({type:e})=>"product-expired"===e?i().createElement("div",{className:"jp-product-activated-label expired"},i().createElement("span",{className:"jp-product-expired-label__text"},__("Expired","jetpack"))):i().createElement("div",{className:"jp-product-activated-label"+("never-expires"===e?" never-expires":"")},i().createElement("span",{className:"jp-product-activated-label__text"},"never-expires"===e?_x("Never expires","Label for a subscription that never expires","jetpack"):_x("Subscription active","Label for an active subscription","jetpack")))},38833:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(6895),s=a(55609),i=a(69771),r=a(69307),o=a(65736),c=a(25162),l=a.n(c),p=a(99196),d=a.n(p);const __=o.__;class u extends d().PureComponent{static propTypes={expiryDate:l().string,purchaseDate:l().string,isRefundable:l().bool,dateFormat:l().string};static defaultProps={expiryDate:"",purchaseDate:"",isRefundable:!1,dateFormat:"F j, Y"};render(){const{expiryDate:e,purchaseDate:t,isRefundable:a,dateFormat:c,isGift:l,purchaseID:p}=this.props;if(!e&&!t)return null;if(l){const e=new Date(t);return"Invalid Date"!==e.toString()?(0,o.sprintf)(/* translators: placeholder is a date. */ __("Gifted on %s.","jetpack"),(0,i.dateI18n)(c,e)):null}if(!e||a){const e=new Date(t);return"Invalid Date"!==e.toString()?(0,o.sprintf)(/* translators: placeholder is a date. */ __("Purchased on %s.","jetpack"),(0,i.dateI18n)(c,e)):null}const u=new Date(e),m=p;return"Invalid Date"===u.toString()?null:(0,i.isInTheFuture)(u)?(0,o.sprintf)(/* translators: placeholder is a date. */ __("Renews on %s.","jetpack"),(0,i.dateI18n)(c,u)):(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %d is a count of how many new (unread) recommendations are available. */ __("<span>Expired on %s.</span> <renewLink />","jetpack"),(0,i.dateI18n)(c,u)),{span:d().createElement("span",{className:"my-plan-card__expired"}),renewLink:d().createElement("span",{className:"my-plan-card__renew"},d().createElement(s.ExternalLink,{href:(0,n.Z)("jetpack-subscription-renew",{path:m}),className:"my-plan-card__renew"},__("Renew subscription","jetpack")))})}}const m=u},86799:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(51045),s=a(65736),i=a(97506),r=a(85799),o=a(41549),c=a(42676),l=a(84069),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u),h=a(59309),g=a(51975),k=a(96300);const __=s.__,_x=s._x;function v(e){const{show:t=!1,onHide:a,isSiteConnected:s,isReconnectingSite:o,beforeReconnectSite:p,initiateUserConnection:d,reconnectFailed:h,clickReconnectSite:g}=e,k=(0,u.useCallback)((()=>t&&s&&!o),[t,s,o]),v=(0,u.useCallback)((()=>{a&&a()}),[a]),{restoreConnection:f}=(0,n.Z)(),E=(0,u.useCallback)((e=>{e.preventDefault(),l.Z.tracks.recordJetpackClick("confirm_reconnect_modal"),p(),f(!1).then((e=>{"in_progress"===e.status&&d(e.authorizeUrl)})).catch((e=>h(e))),v()}),[p,d,h,f,v]);return k()&&m().createElement(c.Z,{className:"reconnect__modal",onRequestClose:v},m().createElement(r.Z,{className:"reconnect__modal__body"},m().createElement("h2",null,__("Reconnect Jetpack","jetpack")),m().createElement("h4",null,__("You’ve clicked a link to restore your Jetpack connection.","jetpack")),m().createElement("h4",null,m().createElement("strong",null,__("You should only do this if advised by Site Health tests or Jetpack Support.","jetpack"))),m().createElement("h4",null,__("Click below to reconnect Jetpack","jetpack")),m().createElement("div",{className:"reconnect__modal-actions"},m().createElement(i.Z,{className:"reconnect__modal-cancel",onClick:v},_x("Cancel","A caption for a button to cancel an action.","jetpack")),m().createElement(i.Z,{className:"reconnect__modal-reconnect",onClick:g||E,primary:!0},_x("Reconnect Jetpack","A caption for a button to reconnect Jetpack.","jetpack")))))}v.displayName="ReconnectModal",v.propTypes={show:d().bool,onHide:d().func,clickReconnectSite:d().func};const f=(0,h.$j)((e=>({isSiteConnected:(0,k.q7)(e),isReconnectingSite:(0,k.O_)(e)})),(e=>({beforeReconnectSite:()=>{e({type:g.bGw}),e((0,o.iI)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:g.dDV}),e({type:g.hmP,connectUrl:t}),e((0,k.bL)())},reconnectFailed:t=>{e({type:g.B9W,error:t}),e((0,o.qq)("reconnect-jetpack")),e((0,o.iI)("is-error",(0,s.sprintf)(/* translators: placeholder is the error. */ __("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}})))(v)},40616:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(69307),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r),c=a(59309);class l extends o().Component{static displayName="RootChild";static propTypes={children:i().node};static contextType=c.ET;componentDidMount(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.containerRoot=n.createRoot(this.container),this.renderChildren()}componentDidUpdate(){this.renderChildren()}componentWillUnmount(){if(!this.container)return;const e=this.containerRoot;setTimeout((()=>{e.unmount()})),document.body.removeChild(this.container),delete this.container,delete this.containerRoot}renderChildren=()=>{let e;e=this.props&&(Object.keys(this.props).length>1||!this.props.children)?o().createElement("div",this.props,this.props.children):this.props.children,this.context.store&&(e=o().createElement(c.zt,{store:this.context.store},e)),this.containerRoot.render(e)};render(){return null}}},11677:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(82674),s=a.n(n),i=a(2816),r=a(3228),o=a(5060),c=a(84069),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u);function h(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}class g extends m().Component{static displayName="Search";static instances=0;static propTypes={additionalClasses:d().string,initialValue:d().string,placeholder:d().string,pinned:d().bool,delaySearch:d().bool,delayTimeout:d().number,onSearch:d().func.isRequired,onSearchChange:d().func,onSearchOpen:d().func,onSearchClose:d().func,analyticsGroup:d().string,overlayStyling:d().func,autoFocus:d().bool,disabled:d().bool,onKeyDown:d().func,onClick:d().func,disableAutocorrect:d().bool,onBlur:d().func,searching:d().bool,isOpen:d().bool,dir:d().oneOf(["ltr","rtl"]),fitsContainer:d().bool,maxLength:d().number,hideClose:d().bool};static defaultProps={pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:l.noop,onSearchOpen:l.noop,onSearchClose:l.noop,onKeyDown:l.noop,onClick:l.noop,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1};overlayRef=m().createRef();searchInputRef=m().createRef();openIconRef=m().createRef();state={keyword:this.props.initialValue||"",isOpen:!!this.props.isOpen,hasFocus:!1};UNSAFE_componentWillMount(){this.setState({instanceId:++g.instances}),this.closeListener=h.bind(this,"closeSearch"),this.openListener=h.bind(this,"openSearch")}UNSAFE_componentWillReceiveProps(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,l.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch),e.isOpen&&this.setState({isOpen:e.isOpen}),e.initialValue===this.props.initialValue||this.state.keyword!==this.props.initialValue&&""!==this.state.keyword||this.setState({keyword:e.initialValue||""})}componentDidUpdate(e,t){this.scrollOverlay(),(this.state.isOpen&&!t.isOpen||this.props.autoFocus&&!e.autoFocus)&&this.focus(),this.state.keyword!==t.keyword&&(this.state.keyword?this.onSearch(this.state.keyword):(this.props.delaySearch&&this.onSearch.cancel(),this.props.onSearch(this.state.keyword)),this.props.onSearchChange(this.state.keyword))}componentDidMount(){this.onSearch=this.props.delaySearch?(0,l.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout((()=>this.focus()),0)}scrollOverlay=()=>{this.overlayRef.current&&window.requestAnimationFrame((()=>{this.overlayRef.current&&this.searchInputRef.current&&(this.overlayRef.current.scrollLeft=this.getScrollLeft(this.searchInputRef.current))}))};getScrollLeft=e=>{if(!e.createTextRange)return e.scrollLeft;const t=e.createTextRange(),a=window.getComputedStyle(e,void 0),n=parseFloat(a.paddingLeft),s=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+n-s.left};focus=()=>{setTimeout((()=>this.searchInputRef.current&&this.searchInputRef.current.focus()),0)};blur=()=>{this.searchInputRef.current.blur()};getCurrentSearchValue=()=>this.searchInputRef.current.value;clear=()=>{this.setState({keyword:""})};onBlur=e=>{this.props.onBlur&&this.props.onBlur(e),this.setState({hasFocus:!1})};onChange=()=>{this.setState({keyword:this.getCurrentSearchValue()})};openSearch=e=>{this.props.onClick(),e.preventDefault(),this.setState({keyword:"",isOpen:!0}),c.Z.ga.recordEvent(this.props.analyticsGroup,"Clicked Open Search")};closeSearch=e=>{if(e.preventDefault(),this.props.disabled)return;const t=this.searchInputRef.current;this.setState({keyword:"",isOpen:this.props.isOpen||!1}),t.value="",t.blur(),this.props.pinned&&this.openIconRef.current.focus(),this.props.onSearchClose(e),c.Z.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search")};keyUp=e=>{"Enter"===e.key&&(0,i.tq)()&&this.blur(),this.props.pinned&&("Escape"===e.key&&this.closeSearch(e),this.scrollOverlay())};keyDown=e=>{this.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&this.closeSearch(e),this.props.onKeyDown(e)};onFocus=()=>{const e=this.searchInputRef.current,t=e.value;t&&(e.value="",e.value=t),this.setState({hasFocus:!0}),this.props.onSearchOpen()};render(){const e=this.state.keyword,t=this.props.placeholder||"Search…",a=this.props.pinned&&!this.state.isOpen,n=this.state.isOpen||!this.props.pinned||this.props.initialValue,i=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},c=(0,r.Z)(this.props.additionalClasses,this.props.dir,{"is-expanded-to-container":this.props.fitsContainer,"is-open":n,"is-searching":this.props.searching,"has-focus":this.state.hasFocus,"dops-search":!0}),l=(0,r.Z)("dops-search__input-fade",this.props.dir),p=(0,r.Z)("dops-search__input",this.props.dir);return m().createElement("div",{dir:this.props.dir||null,className:c,role:"search"},m().createElement("div",{role:"button",className:"dops-search__icon-navigation",ref:this.openIconRef,onClick:a?this.openSearch:this.focus,tabIndex:a?"0":null,onKeyDown:a?this.openListener:null,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Open Search"},m().createElement(o.Z,{icon:"search",className:"dops-search__open-icon"})),m().createElement("div",{className:l},m().createElement("input",s()({type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:p,placeholder:t,role:"searchbox",value:e,ref:this.searchInputRef,onKeyUp:this.keyUp,onKeyDown:this.keyDown,onMouseUp:this.props.onClick,onFocus:this.onFocus,onBlur:this.onBlur,disabled:this.props.disabled,"aria-hidden":!n,autoCapitalize:"none",dir:this.props.dir,maxLength:this.props.maxLength},i)),this.props.overlayStyling&&this.renderStylingDiv()),this.closeButton())}renderStylingDiv=()=>m().createElement("div",{className:"dops-search__text-overlay",ref:this.overlayRef},this.props.overlayStyling(this.state.keyword));closeButton=()=>this.props.hideClose||!this.state.keyword&&!this.state.isOpen?null:m().createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:this.closeSearch,tabIndex:"0",onKeyDown:this.closeListener,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Close Search"},m().createElement(o.Z,{icon:"cross",className:"dops-search__close-icon"}))}const k=g},81114:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(3228),s=a(85799),i=a(99196),r=a.n(i);const o=({label:e,children:t,className:a})=>{const i=(0,n.Z)(a,"dops-section-header");return r().createElement(s.Z,{compact:!0,className:i},r().createElement("div",{className:"dops-section-header__label"},r().createElement("span",{className:"dops-section-header__label-text"},e)),r().createElement("div",{className:"dops-section-header__actions"},t))}},24399:(e,t,a)=>{"use strict";a.d(t,{Z:()=>m});var n=a(3228),s=a(11677),i=a(92819),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(21675),d=a(56923);class u extends l().Component{static displayName="SectionNav";static propTypes={children:o().node,selectedText:o().node,selectedCount:o().number,hasPinnedItems:o().bool,onMobileNavPanelOpen:o().func};state={mobileOpen:!1};static defaultProps={onMobileNavPanelOpen:()=>{}};UNSAFE_componentWillMount(){this.checkForSiblingControls(this.props.children)}UNSAFE_componentWillReceiveProps(e){(0,i.isEqual)(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())}render(){const e=this.getChildren();let t;return e?(t=(0,n.Z)({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),l().createElement("div",{className:t},l().createElement("div",{className:"dops-section-nav__mobile-header",role:"button",onClick:this.toggleMobileOpenState,tabIndex:0,onKeyUp:this.toggleMobileOpenState},l().createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),l().createElement("div",{className:"dops-section-nav__panel"},e))):(t=(0,n.Z)({"dops-section-nav":!0,"is-empty":!0}),l().createElement("div",{className:t},l().createElement("div",{className:"dops-section-nav__panel"},l().createElement(p.Z,null))))}getChildren(){return l().Children.map(this.props.children,function(e){const t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==d.Z||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===d.Z&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===s.Z&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),l().cloneElement(e,t)):null}.bind(this))}closeMobilePanel(){window.innerWidth<480&&this.state.mobileOpen&&this.setState({mobileOpen:!1})}toggleMobileOpenState=()=>{const e=!this.state.mobileOpen;this.setState({mobileOpen:e}),e&&this.props.onMobileNavPanelOpen()};generateOnSearch(e){return function(){e.apply(this,arguments),this.closeMobilePanel()}.bind(this)}checkForSiblingControls(e){this.hasSiblingControls=!1,l().Children.forEach(e,function(e,t){t&&e&&e.type!==s.Z&&(this.hasSiblingControls=!0)}.bind(this))}}const m=u},21675:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(55609),s=a(3228),i=a(85582),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c);class p extends l().PureComponent{static displayName="NavItem";static propTypes={itemType:o().string,path:o().string,selected:o().bool,tabIndex:o().number,onClick:o().func,isExternalLink:o().bool,disabled:o().bool,count:o().number};domNode=null;render(){const e=this.props.itemType?this.props.itemType:"tab",t={"is-selected":this.props.selected,"is-external":this.props.isExternalLink};t["dops-section-nav-"+e]=!0;const a=(0,s.Z)(t);let r;return this.props.disabled||(r=this.props.onClick),l().createElement("li",{ref:e=>this.domNode=e,className:a},!this.props.isExternalLink&&l().createElement("a",{href:this.props.path,className:"dops-section-nav-"+e+"__link",onClick:r,tabIndex:this.props.tabIndex||0,disabled:this.props.disabled,role:"menuitem"},l().createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&l().createElement(i.Z,{count:this.props.count}))),this.props.isExternalLink&&l().createElement(n.ExternalLink,{href:this.props.path,target:"_blank",rel:"external",onClick:r,className:"dops-section-nav-"+e+"__link",disabled:this.props.disabled,role:"menuitem"},l().createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&l().createElement(i.Z,{count:this.props.count}))))}}const d=p},56923:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var n=a(82674),s=a.n(n),i=a(2816),r=a(3228),o=a(96200),c=a(51226),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u);class h extends m().Component{static propTypes={selectedText:d().string,selectedCount:d().number,label:d().string,hasSiblingControls:d().bool};static defaultProps={hasSiblingControls:!1};navGroupRef=m().createRef();tabRefs={};state={isDropdown:!1};componentDidMount(){this.setDropdown(),this.debouncedAfterResize=(0,l.debounce)(this.setDropdown,300),window.addEventListener("resize",this.debouncedAfterResize)}UNSAFE_componentWillReceiveProps(){this.setDropdown()}componentWillUnmount(){window.removeEventListener("resize",this.debouncedAfterResize)}render(){const e=this,t=m().Children.map(this.props.children,(function(t,a){return e.tabRefs["tab-"+a]=m().createRef(),t&&m().cloneElement(t,{ref:e.tabRefs["tab-"+a]})})),a=(0,r.Z)({"dops-section-nav-tabs":!0,"is-dropdown":this.state.isDropdown,"is-open":this.state.isDropdownOpen,"has-siblings":this.props.hasSiblingControls}),n=(0,i.bQ)();return m().createElement("div",{className:"dops-section-nav-group",ref:this.navGroupRef},m().createElement("div",{className:a},this.props.label&&m().createElement("h6",{className:"dops-section-nav-group__label"},this.props.label),m().createElement("ul",{className:"dops-section-nav-tabs__list",role:"menu",onKeyDown:this.keyHandler},t),this.state.isDropdown&&n>660&&this.getDropdown()))}getTabWidths=()=>{const e=this;let t=0;m().Children.forEach(this.props.children,function(a,n){if(!a)return;const s=e.tabRefs["tab-"+n].current.domNode.offsetWidth;t+=s}.bind(this)),this.tabsWidth=t};getDropdown=()=>{const e=m().Children.map(this.props.children,(function(e,t){return e?m().createElement(c.Z,s()({},e.props,{key:"navTabsDropdown-"+t}),e.props.children):null}));return m().createElement(o.Z,{className:"dops-section-nav-tabs__dropdown",selectedText:this.props.selectedText,selectedCount:this.props.selectedCount},e)};setDropdown=()=>{let e;if(window.innerWidth>660){if(!this.navGroupRef.current)return;e=this.navGroupRef.current.offsetWidth,this.tabsWidth||this.getTabWidths(),e<=this.tabsWidth&&!this.state.isDropdown?this.setState({isDropdown:!0}):e>this.tabsWidth&&this.state.isDropdown&&this.setState({isDropdown:!1})}else window.innerWidth<=660&&this.state.isDropdown&&this.setState({isDropdown:!1})};keyHandler=e=>{switch(e.keyCode){case 32:case 13:e.preventDefault(),document.activeElement.click()}}}const g=h},96200:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(3228),s=a(85582),i=a(51226),r=a(65668),o=a(6764),c=a(92819),l=a(25162),p=a.n(l),d=a(99196),u=a.n(d);const{Component:m}=u(),h=()=>{};class g extends m{itemRefs={};dropdownContainerRef=u().createRef();constructor(e){super(e),this.navigateItem=this.navigateItem.bind(this),this.toggleDropdown=this.toggleDropdown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this),this._onClick=this._onClick.bind(this);const t={isOpen:!1};e.options.length&&(t.selected=this.getInitialSelectedItem(e)),this.state=t}UNSAFE_componentWillMount(){this.setState({instanceId:++g.instances})}UNSAFE_componentWillReceiveProps(e){this.state.isOpen&&this.closeDropdown(),void 0!==this.state.selected&&this.props.initialSelected!==e.initialSelected&&this.setState({selected:e.initialSelected})}componentWillUnmount(){window.removeEventListener("click",this.handleOutsideClick)}componentDidUpdate(e,t){this.state.isOpen?window.addEventListener("click",this.handleOutsideClick):window.removeEventListener("click",this.handleOutsideClick),this.state.isOpen!==t.isOpen&&this.props.onToggle({target:this,open:this.state.isOpen})}getInitialSelectedItem(e){if((e=e||this.props).initialSelected)return e.initialSelected;if(!e.options.length)return;const t=(0,c.find)(e.options,(e=>!e.isLabel));return t&&t.value}dropdownOptions(){let e=0;const t=this;return this.props.children?u().Children.map(this.props.children,(function(a,n){if(!a)return null;t.itemRefs["item-"+e]=a.type===i.Z?u().createRef():void 0;const s=u().cloneElement(a,{ref:t.itemRefs["item-"+e],key:"item-"+n,onClick:function(e){t.dropdownContainerRef.current.focus(),"function"==typeof a.props.onClick&&a.props.onClick(e)}});return a.type===i.Z&&e++,s}),this):this.props.options.map((function(a,n){if(!a)return u().createElement(o.Z,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(a.isLabel)return u().createElement(r.Z,{key:"dropdown-label-"+this.state.instanceId+"-"+n},a.label);t.itemRefs["item-"+e]=u().createRef();const s=u().createElement(i.Z,{key:"dropdown-item-"+this.state.instanceId+"-"+a.value,ref:t.itemRefs["item-"+e],selected:this.state.selected===a.value,onClick:this.onSelectItem(a),path:a.path},a.label);return e++,s}),this)}render(){const e={"dops-select-dropdown":!0,"is-compact":this.props.compact,"is-open":this.state.isOpen,"is-disabled":this.props.disabled,"is-rna":this.props.rna};this.props.className&&this.props.className.split(" ").forEach((function(t){e[t]=!0}));const t=(0,n.Z)(e),a=this.props.selectedText?this.props.selectedText:(0,c.result)((0,c.find)(this.props.options,{value:this.state.selected}),"label");return u().createElement("div",{style:this.props.style,className:t},u().createElement("div",{ref:this.dropdownContainerRef,className:"dops-select-dropdown__container",tabIndex:this.props.tabIndex||0,role:"listbox","aria-labelledby":"select-dropdown-"+this.state.instanceId,"aria-owns":"select-submenu-"+this.state.instanceId,"aria-controls":"select-submenu-"+this.state.instanceId,"aria-expanded":this.state.isOpen,onClick:this._onClick,onKeyDown:this.navigateItem},u().createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},u().createElement("span",{className:"dops-select-dropdown__header-text"},a,"number"==typeof this.props.selectedCount&&u().createElement(s.Z,{count:this.props.selectedCount}))),u().createElement("ul",{id:"select-submenu-"+this.state.instanceId,className:"dops-select-dropdown__options"},this.dropdownOptions())))}_onClick(){this.props.disabled||this.toggleDropdown()}toggleDropdown(){this.setState({isOpen:!this.state.isOpen})}openDropdown(){this.setState({isOpen:!0})}closeDropdown(){this.state.isOpen&&(delete this.focused,this.setState({isOpen:!1}))}onSelectItem(e){return this.selectItem.bind(this,e)}selectItem(e){e&&(this.props.onSelect&&this.props.onSelect(e),this.setState({selected:e.value}),this.dropdownContainerRef.current.focus())}navigateItem(e){switch(e.keyCode){case 9:this.navigateItemByTabKey(e);break;case 32:case 13:e.preventDefault(),this.activateItem();break;case 38:e.preventDefault(),this.focusSibling("previous"),this.openDropdown();break;case 40:e.preventDefault(),this.focusSibling("next"),this.openDropdown();break;case 27:e.preventDefault(),this.closeDropdown(),this.dropdownContainerRef.current.focus()}}navigateItemByTabKey(e){if(!this.state.isOpen)return;e.preventDefault();const t=e.shiftKey?"previous":"next";this.focusSibling(t)}activateItem(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}focusSibling(e){let t,a;if(!this.state.isOpen)return;this.props.options.length?(t=(0,c.map)((0,c.filter)(this.props.options,(e=>e&&!e.isLabel)),"value"),a="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=(0,c.filter)(this.props.children,(function(e){return e.type===i.Z})),a="number"==typeof this.focused?this.focused:(0,c.findIndex)(t,(function(e){return e.props.selected})));const n=a+("previous"===e?-1:1);n>=t.length||n<0||(this.itemRefs["item-"+n].current.itemLinkRef.current.focus(),this.focused=n)}handleOutsideClick(e){this.dropdownContainerRef.current.contains(e.target)||this.closeDropdown()}}g.defaultProps={options:[],onSelect:h,onToggle:h,disabled:!1,style:{},rna:!1},g.propTypes={selectedText:p().string,selectedCount:p().number,initialSelected:p().string,className:p().string,style:p().object,onSelect:p().func,onToggle:p().func,focusSibling:p().func,tabIndex:p().number,disabled:p().bool,options:p().arrayOf(p().shape({value:p().string.isRequired,label:p().string.isRequired,path:p().string})),rna:p().bool},g.instances=0;const k=g},51226:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(3228),s=a(85582),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);class l extends c().Component{static propTypes={children:r().node.isRequired,path:r().string,selected:r().bool,onClick:r().func,count:r().number};static defaultProps={selected:!1};itemLinkRef=c().createRef();render(){const e=(0,n.Z)(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return c().createElement("li",{className:"dops-select-dropdown__option"},c().createElement("a",{ref:this.itemLinkRef,href:this.props.path,className:e,onClick:this.props.disabled?null:this.props.onClick,"data-bold-text":this.props.value||this.props.children,role:"option",tabIndex:0,"aria-selected":this.props.selected},c().createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&c().createElement(s.Z,{count:this.props.count}))))}}const p=l},65668:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(99196),s=a.n(n);const{Component:i}=s(),r=e=>e.stopPropagation();const o=class extends i{render(){return s().createElement("li",{role:"menuitem",onClick:r,className:"dops-select-dropdown__label"},s().createElement("label",null,this.props.children))}}},6764:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(99196),s=a.n(n);class i extends s().Component{render(){return s().createElement("li",{className:"dops-select-dropdown__separator"})}}const r=i},93806:(e,t,a)=>{"use strict";a.d(t,{Z:()=>S});var n=a(82674),s=a.n(n),i=a(65736),r=a(97506),o=a(85733),c=a(39224),l=a(81114),p=a(84069),d=a(59584),u=a(92819),m=a(86450),h=a(1137),g=a(25162),k=a.n(g),v=a(99196),f=a.n(v),E=a(59309),_=a(17296),b=a(96300),y=a(69508),w=a(50416),C=a(33002);const __=i.__,_x=i._x,j=e=>{const t={action:"",saveDisabled:!1,...e},a=e=>()=>(e=>{p.Z.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})})(e),n=(e,a)=>()=>{(e=>{p.Z.tracks.recordJetpackClick({target:"connect-banner",feature:e,type:"connect"})})(e),t.doConnectUser(a)},i=!!t.module&&t.getModule(t.module),g=t.vaultPressData,k=(0,u.get)(g,["data","features","backups"],!1),v=(0,u.get)(g,["data","features","security"],!1);if(!t.userCanManageModules&&!(0,u.includes)(["post-by-email","publicize"],t.module))return f().createElement("span",null);const E=t.saveDisabled,_=!!t.feature&&t.feature;let b=t.header?t.header:"";""===b&&i&&(b=i.name);const y=()=>{switch(_){case d.BD8:return"inactive"===t.getModuleOverride("videopress");case d.N8_:return"inactive"===t.getModuleOverride("wordads");case d.r2Z:return"inactive"===t.getModuleOverride("google-analytics");case d.T54:return"inactive"===t.getModuleOverride("search");default:return!1}},w=(()=>{if(t.fetchingSiteData)return!0;switch(_){case d.eMt:if(!t.hasScan&&!v)return!1;break;case d.N8_:if(!t.hasWordAds)return!1;break;case d.r2Z:if(!t.hasGoogleAnalytics)return!1;break;case d.V37:if(!t.hasAntispam&&!t.isAkismetKeyValid&&!t.isCheckingAkismetKey)return!1}return!0})()&&t.children,C=!t.fetchingSiteData&&!y()&&!t.inOfflineMode&&(()=>{const e=_x("Upgrade","A caption for a button to upgrade an existing paid feature to a higher tier.","jetpack"),s=_x("Connect","A caption for a button to connect a user account to access paid features.","jetpack");switch(_){case d.BD8:return t.hasConnectedOwner||t.hasVideoPress?"":f().createElement(o.ZP,{title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),callToAction:s,plan:(0,d.o2o)(d.BD8),feature:_,onClick:n(_),rna:!0});case d.N8_:return t.hasWordAds?"":t.hasConnectedOwner?f().createElement(o.ZP,{title:f().createElement("span",{className:"jp-form-toggle-explanation"},__("Generate income with high-quality ads.","jetpack")),callToAction:e,plan:(0,d.o2o)(d.N8_),feature:_,onClick:a(_),href:t.adsUpgradeUrl,rna:!0}):f().createElement(o.ZP,{title:__("Connect your WordPress.com account to upgrade and generate income with high-quality ads.","jetpack"),callToAction:s,plan:(0,d.o2o)(d.N8_),feature:_,onClick:n(_),rna:!0});case d.eMt:return k||t.hasScan&&t.hasBackups||t.multisite?"":t.hasScan&&!t.hasBackups?t.hasConnectedOwner?f().createElement(o.ZP,{title:__("Save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,d.o2o)(d.N_2),callToAction:e,feature:_,onClick:a(_),href:t.securityUpgradeUrl,rna:!0}):f().createElement(o.ZP,{title:__("Connect your WordPress.com account to upgrade and save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,d.o2o)(d.N_2),callToAction:s,feature:_,onClick:n(_),rna:!0}):t.hasConnectedOwner?f().createElement(o.ZP,{callToAction:e,title:__("Automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,d.o2o)(d.eMt),feature:_,onClick:a(_),href:t.scanUpgradeUrl,rna:!0}):f().createElement(o.ZP,{callToAction:s,title:__("Connect your WordPress.com account to upgrade for automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,d.o2o)(d.eMt),feature:_,onClick:n(_),rna:!0});case d.r2Z:return t.hasGoogleAnalytics?"":t.hasConnectedOwner?f().createElement(o.ZP,{callToAction:e,title:__("Connect your site to Google Analytics.","jetpack"),plan:(0,d.o2o)(d.r2Z),feature:_,onClick:a(_),href:t.gaUpgradeUrl,rna:!0}):f().createElement(o.ZP,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and connect your site to Google Analytics.","jetpack"),plan:(0,d.o2o)(d.r2Z),feature:_,onClick:n(_),rna:!0});case d.T54:return t.hasInstantSearch?"":t.hasConnectedOwner?f().createElement(o.ZP,{callToAction:(0,h.I)()?__("Start for free","jetpack"):_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:(0,d.o2o)(d.T54),feature:_,onClick:a(_),href:t.searchUpgradeUrl,rna:!0}):f().createElement(o.ZP,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:(0,d.o2o)(d.T54),feature:_,onClick:n(_),rna:!0});case d.V37:return t.isCheckingAkismetKey||t.isAkismetKeyValid||t.hasAntispam?"":t.hasConnectedOwner?f().createElement(o.ZP,{callToAction:e,title:__("Automatically clear spam from comments and forms.","jetpack"),plan:(0,d.o2o)(d.V37),feature:_,href:t.spamUpgradeUrl,rna:!0}):f().createElement(o.ZP,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms.","jetpack"),plan:(0,d.o2o)(d.V37),feature:_,onclick:t.doConnectUser,rna:!0});case d.S5m:return t.hasSimplePayments?"":t.hasConnectedOwner?f().createElement(o.ZP,{callToAction:e,title:__("Start accepting PayPal payments for physical products, digital goods, or donations.","jetpack"),plan:(0,d.o2o)(d.S5m),feature:_,href:t.simplePaymentsUpgradeUrl,rna:!0}):f().createElement(o.ZP,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and access PayPal features in your editor.","jetpack"),plan:(0,d.o2o)(d.S5m),feature:_,onclick:t.doConnectUser,rna:!0});default:return""}})();if(!w&&!C)return null;let j="";return t.feature?j=`jp-settings-${t.feature}`:t.module&&(j=`jp-settings-${t.module}`),(()=>{if(!y())return!1;if(_!==d.r2Z)return null;const e=t.getModule("google-analytics");return f().createElement(c.Z,{moduleName:e.name})})()||f().createElement("form",s()({},j?{id:j}:null,{className:"jp-form-settings-card",onSubmit:E?void 0:t.onSubmit}),f().createElement(l.Z,{label:b},!t.hideButton&&f().createElement(r.Z,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:E||!t.isDirty()},E?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0)),t.action&&f().createElement(m.Z,{proFeature:t.action,siteAdminUrl:t.siteAdminUrl,isCompact:!1})),w,C)};j.propTypes={action:k().string,saveDisabled:k().bool};const S=(0,E.$j)((e=>({fetchingSiteData:(0,C._5)(e),siteAdminUrl:(0,y.wW)(e),userCanManageModules:(0,y.pK)(e),isAkismetKeyValid:(0,_._2)(e),isCheckingAkismetKey:(0,_.gw)(e),vaultPressData:(0,_.XK)(e),getModuleOverride:t=>(0,w.Qy)(e,t),getModule:t=>(0,w.rT)(e,t),adsUpgradeUrl:(0,y.Qq)(e,"jetpack-creator-cta"),securityUpgradeUrl:(0,h.z)(e,"security"),scanUpgradeUrl:(0,h.z)(e,"scan"),gaUpgradeUrl:(0,y.Qq)(e,"settings-ga"),searchUpgradeUrl:(0,h.z)(e,"search"),simplePaymentsUpgradeUrl:(0,y.Qq)(e,"jetpack-creator-cta"),spamUpgradeUrl:(0,h.z)(e,"akismet"),multisite:(0,y.TA)(e),inOfflineMode:(0,b.Ex)(e),hasConnectedOwner:(0,b.it)(e),hasAntispam:(0,C.CV)(e,"antispam"),hasBackups:(0,C.CV)(e,"backups"),hasGoogleAnalytics:(0,C.CV)(e,"google-analytics"),hasInstantSearch:(0,C.CV)(e,"instant-search"),hasScan:(0,C.CV)(e,"scan"),hasSimplePayments:(0,C.CV)(e,"simple-payments"),hasVideoPress:(0,C.CV)(e,"videopress"),hasWordAds:(0,C.CV)(e,"wordads")})),(e=>({doConnectUser:t=>e((0,b.bL)(t))})))(j)},28178:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(82674),s=a.n(n),i=a(3228),r=a(85799),o=a(79032),c=a(92819),l=a(25162),p=a.n(l),d=a(99196),u=a.n(d),m=a(59309),h=a(96300),g=a(69508),k=a(50416);const v=e=>{const t={support:{text:"",link:""},module:{},disableInOfflineMode:!1,disableInSiteConnectionMode:!1,isOfflineMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInOfflineMode:c.noop,className:"",...e},a=t.module;if(a.module&&!t.userCanManageModules&&!(0,c.includes)(["post-by-email","publicize"],a.module))return u().createElement("span",null);const n=t.disableInOfflineMode&&t.isUnavailableInOfflineMode(a.module),l=t.disableInSiteConnectionMode&&t.isUnavailableInSiteConnectionMode(a.module);let p=n||l;return"post-by-email"!==a.module||t.isLinked||(p=!0),u().createElement("div",{className:(0,i.Z)("jp-form-settings-group",t.className)},u().createElement(r.Z,{className:(0,i.Z)({"jp-form-has-child":t.hasChild,"jp-form-settings-disable":n||l})},p&&u().createElement("div",{className:"jp-form-block-fade"}),t.support.link&&u().createElement(o.Z,s()({module:a},t.support)),t.children))};v.propTypes={support:p().object,module:p().object,disableInOfflineMode:p().bool,disableInSiteConnectionMode:p().bool,isOfflineMode:p().bool,isSitePublic:p().bool,userCanManageModules:p().bool,isLinked:p().bool,isUnavailableInOfflineMode:p().func,className:p().string};const f=(0,m.$j)((e=>({isOfflineMode:(0,h.Ex)(e),isSitePublic:(0,g.$r)(e),userCanManageModules:(0,g.pK)(e),userCanEditPosts:(0,g.rp)(e),isLinked:(0,h.BU)(e),isModuleActivated:t=>(0,k.mp)(e,t),isUnavailableInOfflineMode:t=>(0,h.t_)(e,t),isUnavailableInSiteConnectionMode:t=>(0,h.IK)(e,t)})))(v)},92685:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(6895),s=a(65736),i=a(3228),r=a(97506),o=a(85799),c=a(5060),l=a(85733),p=a(84069),d=a(59584),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h),k=a(59309),v=a(96300),f=a(69508),E=a(33002);const __=s.__,_x=s._x;class _ extends g().Component{static displayName="SupportCard";static defaultProps={className:"",siteConnectionStatus:!1};trackBannerClick=()=>{p.Z.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:this.props.path,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no"})};handleConnectClick=()=>{this.trackBannerClick(),this.props.connectUser()};trackSearchClick=()=>{p.Z.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:this.props.path})};trackGettingStartedClick=()=>{p.Z.tracks.recordJetpackClick({target:"support-card",button:"getting-started",page:this.props.path})};render(){const{hasSupport:e}=this.props;if(this.props.isFetchingSiteData)return g().createElement("div",null);const t=(0,i.Z)(this.props.className,"jp-support-card");return g().createElement("div",{className:t},g().createElement(o.Z,{className:"jp-support-card__happiness"},g().createElement("div",{className:"jp-support-card__happiness-contact"},g().createElement("h3",{className:"jp-support-card__header"},__("We’re here to help","jetpack")),g().createElement("p",{className:"jp-support-card__description"},e?(0,s.sprintf)(/* translators: placeholder is either Jetpack or WordPress.com */ __("Your paid plan gives you access to prioritized %s support.","jetpack"),this.props.isAtomicSite?"WordPress.com":"Jetpack"):__("Jetpack offers support via community forums for any site without a paid product.","jetpack")),g().createElement("p",{className:"jp-support-card__description"},this.props.isAtomicSite||g().createElement(r.Z,{onClick:this.trackGettingStartedClick,href:(0,n.Z)("jetpack-support-getting-started")},__("Getting started with Jetpack","jetpack"),g().createElement(c.Z,{className:"dops-card__link-indicator",icon:"external"})),g().createElement(r.Z,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?(0,n.Z)("calypso-help"):(0,n.Z)("jetpack-support")},__("Search our support site","jetpack"),g().createElement(c.Z,{className:"dops-card__link-indicator",icon:"external"}))))),this.props.siteConnectionStatus&&!e&&this.props.hasConnectedOwner&&g().createElement(l.ZP,{title:__("Get a faster resolution to your support questions.","jetpack"),plan:(0,d.o2o)(d.psy),callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),onClick:this.trackBannerClick,href:this.props.supportUpgradeUrl}),this.props.siteConnectionStatus&&!e&&!this.props.hasConnectedOwner&&g().createElement(l.ZP,{title:__("Connect your WordPress.com account and upgrade to get a faster resolution to your support questions.","jetpack"),plan:(0,d.o2o)(d.psy),callToAction:__("Connect","jetpack"),onClick:this.handleConnectClick}))}}_.propTypes={siteConnectionStatus:m().any.isRequired,className:m().string,isCurrentUserLinked:m().bool,isConnectionOwner:m().bool};const b=(0,k.$j)((e=>({siteConnectionStatus:(0,v.Gz)(e),isFetchingSiteData:(0,E._5)(e),isAtomicSite:(0,f.Ug)(e),isDevVersion:(0,f._W)(e),supportUpgradeUrl:(0,f.Qq)(e,"support"),isCurrentUserLinked:(0,v.BU)(e),isConnectionOwner:(0,v.QM)(e),hasConnectedOwner:(0,v.it)(e),hasSupport:(0,E.CV)(e,"support")||(0,E.b2)(e)})),(e=>({connectUser:()=>e((0,v.bL)())})))(_)},79032:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(55609),s=a(65736),i=a(42698),r=a(84069),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l);const __=s.__;class d extends l.Component{static propTypes={module:c().object,text:c().string,link:c().string,privacyLink:c().string};static defaultProps={module:void 0,text:"",link:"",privacyLink:""};constructor(){super(...arguments),this.getModule=this.getModule.bind(this),this.trackInfoClick=this.trackInfoClick.bind(this),this.trackLearnMoreClick=this.trackLearnMoreClick.bind(this),this.trackPrivacyInfoClick=this.trackPrivacyInfoClick.bind(this)}getModule(){return this.props.module||{}}trackInfoClick(){r.Z.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}trackLearnMoreClick(){r.Z.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}trackPrivacyInfoClick(){r.Z.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}render(){const{text:e,link:t}=this.props;let{privacyLink:a}=this.props;return!a&&t&&(a=t+"#privacy"),p().createElement("div",{className:"jp-support-info"},p().createElement(i.Z,{position:"left",onClick:this.trackInfoClick,screenReaderText:__("Learn more","jetpack")},e+" ",t&&p().createElement("div",{className:"jp-support-info__learn-more"},p().createElement(n.ExternalLink,{href:t,onClick:this.trackLearnMoreClick,rel:"noopener noreferrer"},__("Learn more","jetpack"))),p().createElement("span",{className:"jp-support-info__privacy"},p().createElement(n.ExternalLink,{href:a,onClick:this.trackPrivacyInfoClick,rel:"noopener noreferrer"},__("Privacy information","jetpack")))))}}},9494:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(82674),s=a.n(n),i=a(3228),r=a(92819),o=a(99196),c=a.n(o);class l extends c().Component{static displayName="TextInput";static defaultProps={isError:!1,isValid:!1,selectOnFocus:!1,type:"text"};textFieldRef=c().createRef();focus=()=>{this.textFieldRef.current.focus()};render(){const{className:e,selectOnFocus:t}=this.props,a=(0,i.Z)(e,{"dops-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),n=(0,r.omit)(this.props,"selectOnFocus","isError","isValid");return c().createElement("input",s()({},n,{ref:this.textFieldRef,className:a,onClick:t?this.selectOnFocus:null}))}selectOnFocus=e=>{e.target.select()}}},65936:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(82674),s=a.n(n),i=a(3228),r=a(92819),o=a(99196),c=a.n(o);class l extends c().Component{static displayName="Textarea";render(){return c().createElement("textarea",s()({},(0,r.omit)(this.props,"className"),{className:(0,i.Z)(this.props.className,"dops-textarea")}),this.props.children)}}},54088:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(2816),s=a(3228),i=a(28402),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c);const p=()=>{};class d extends c.Component{static propTypes={autoPosition:o().bool,className:o().string,id:o().string,isVisible:o().bool,position:o().string,rootClassName:o().string,status:o().string,showDelay:o().number,showOnMobile:o().bool};static defaultProps={showDelay:100,position:"top",showOnMobile:!1};render(){if(!this.props.showOnMobile&&(0,n.tq)())return null;const e=(0,s.Z)("dops-popover","dops-tooltip",`is-${this.props.position}`,this.props.className);return l().createElement(i.Z,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:p,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}const u=d},63157:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(25162),s=a.n(n),i=a(99196),r=a(59309),o=a(89292);class c extends i.Component{UNSAFE_componentWillReceiveProps(e){const t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&e.searchTerm.length>=3&&t("jetpack_wpa_search_term",{term:e.searchTerm})}render(){return null}}c.propTypes={analytics:s().object,searchTerm:s().string};const l=(0,r.$j)((e=>({searchTerm:(0,o.He)(e)})))(c)},48191:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var n=a(61074),s=a(30250),i=a(6163),r=a(3228),o=a(99196),c=a(69317);const l=e=>{const{items:t,onChange:a,selectedItems:l,disabled:p}=e,[d,u]=(0,o.useState)(""),[m,h]=(0,o.useState)(!1),g=(0,o.useRef)(null),k=(0,o.useRef)(null),v=(0,r.Z)("tree-dropdown__input-container",m&&"active",p&&"disabled"),f=(0,o.useMemo)((()=>l?.map((e=>t.find((t=>t.id===e)))).filter(Boolean)||[]),[l,t]),E=(0,o.useCallback)((()=>h(!0)),[]),_=(0,o.useCallback)((e=>{u(e.target.value)}),[]),b=(0,o.useCallback)((e=>a(e.id,!1)),[a]),y=(0,o.useCallback)((e=>t=>{t.stopPropagation(),b(e)}),[b]),w=(0,o.useCallback)((e=>{"Backspace"!==e.key||d?"Escape"===e.key&&(h(!1),u(""),k.current.blur()):b(f[f.length-1])}),[d,b,f]),C=(0,o.useCallback)((e=>{g.current&&!g.current.contains(e.target)&&h(!1)}),[]);(0,o.useEffect)((()=>(document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)})),[C]);const j=(0,o.useCallback)((()=>{E(),k.current.focus()}),[E,k]);return React.createElement("div",{className:"tree-dropdown",ref:g},React.createElement("div",{className:v,onClick:j},React.createElement(n.Z,{icon:s.Z}),f.map(((e,t)=>React.createElement("span",{key:t,className:"tree-dropdown__tag"},e.name,React.createElement("button",{onClick:y(e),className:"tree-dropdown__tag-remove-button",disabled:p,type:"button"},React.createElement(n.Z,{icon:i.Z}))))),React.createElement("input",{className:"tree-dropdown__input",ref:k,type:"text",value:d,onFocus:E,onChange:_,onKeyDown:w,disabled:p})),React.createElement("div",{className:"tree-dropdown__dropdown-container"},React.createElement("div",{className:(0,r.Z)("tree-dropdown__dropdown",{visible:m})},React.createElement("div",{className:(0,r.Z)("tree-dropdown-colapsable",{hide:!m})},React.createElement(c.Z,{items:t,selectedItems:l,disabled:p,onChange:a,keyword:d})))))}},69317:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(55609),s=a(65736),i=a(99196),r=a(66964);const __=s.__,o=e=>{const{items:t,onChange:a,selectedItems:s,disabled:o,keyword:c=""}=e,l=(0,r.r)(t),p=""!==c?.trim(),d=p?l.filter((e=>e.name.toLowerCase().includes(c?.toLowerCase()))):l,u=(0,i.useCallback)((e=>()=>a(e,!s.includes(e))),[a,s]),m=d.map((e=>React.createElement("li",{key:e.id,className:"jp-tree-item",style:{marginLeft:p?0:25*e.depth}},React.createElement(n.CheckboxControl,{id:`jp-tree-item-${e.id}`,name:"jp-tree-item",checked:s.includes(e.id),onChange:u(e.id),disabled:o}),React.createElement("label",{htmlFor:`jp-tree-item-${e.id}`},e.name,p&&e.parentNames.length>0?React.createElement(React.Fragment,null," ",React.createElement("small",null,"(",[...e.parentNames,e.name].join(" > "),")")):React.createElement(React.Fragment,null)))));return React.createElement("ul",{className:"jp-tree-items"},p&&0===d.length?React.createElement("li",{className:"jp-tree-item jp-tree-item__no-results"},React.createElement("span",null,__("Nothing found","jetpack"))):m)}},66964:(e,t,a)=>{"use strict";function n(e){const t={},a=[];e.forEach((e=>{t[e.id]={...e,children:[]}})),e.forEach((e=>{0!==e.parent&&t[e.parent]&&t[e.parent].children.push(e.id)}));const n=(e,s,i)=>{const r=t[e],o={...r,depth:s,parentNames:[...i]};a.push(o),r.children.forEach((e=>n(e,s+1,[...i,r.name])))};return e.filter((e=>0===e.parent)).forEach((e=>n(e.id,0,[]))),a.map((({children:e,...t})=>t))}a.d(t,{r:()=>n})},37834:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(84069),s=a(25162),i=a.n(s),r=a(99196),o=a.n(r),c=a(59309),l=a(69508);class p extends r.PureComponent{static propTypes={source:i().string.isRequired,target:i().string.isRequired,feature:i().string,upgradeUrl:i().string.isRequired};trackClick=()=>{const{target:e,feature:t}=this.props;if(e){const a=t?{feature:t}:{};n.Z.tracks.recordJetpackClick({type:"upgrade-link",target:e,...a})}};render(){return o().createElement("a",{href:this.props.upgradeUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.trackClick},this.props.children)}}const d=(0,c.$j)(((e,{source:t})=>({upgradeUrl:(0,l.Qq)(e,t)})))(p)},39327:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(65736),s=a(88120),i=a(2353),r=a(19567),o=a.n(r),c=a(84069),l=a(99196),p=a.n(l);const __=n.__,d=(0,i.u)(class extends l.Component{componentDidMount(){o()("body").addClass("jp-dialogue-modern-showing"),c.Z.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}componentWillUnmount(){o()("body").removeClass("jp-dialogue-modern-showing")}trackLearnMoreClick=()=>{c.Z.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:this.props.version})};dismissNotice=()=>{c.Z.tracks.recordJetpackClick({target:"warm_welcome_dismiss",version:this.props.version}),this.props.dismiss()};renderInnerContent(){const e=(new DOMParser).parseFromString(this.props.releasePostContent,"text/html"),t=e.getElementsByTagName("a");for(let e=0;e<t.length;e++)t[e].setAttribute("target","_blank"),t[e].setAttribute("rel","noopener noreferrer");const a=e.body.innerHTML;return p().createElement("div",{className:"jp-upgrade-notice__content"},p().createElement("div",{dangerouslySetInnerHTML:{__html:a}}))}render(){const{featuredImage:e}=this.props;let t=null,{title:a}=this.props;return e&&e.length>0&&(t=p().createElement("img",{src:e,alt:""})),a&&0!==a.length||(a=(0,n.sprintf)(/* translators: Placeholder is a version number. */ __("New in Jetpack %s","jetpack"),this.props.version)),p().createElement(s.Z,{svg:t,title:a,content:this.renderInnerContent(),dismiss:this.dismissNotice})}})},35182:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});const n={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};const s=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")}},80800:(e,t,a)=>{"use strict";a.d(t,{Ez:()=>r,Fr:()=>i,hp:()=>s,x8:()=>o,zh:()=>c});var n=a(6895);const s=window.Initial_State.pluginBaseUrl+"/images/",i=(0,n.Z)("jetpack-contact-support"),r=(0,n.Z)("jetpack-contact-support-beta-group"),o=(0,n.Z)("jetpack-stats-2023-opt-out-survey"),c="https://jetpack.com/support/backup/the-jetpack-backup-plugin/getting-started-with-the-jetpack-backup-plugin/#starting-your-first-backup"},13067:(e,t,a)=>{"use strict";a.d(t,{H:()=>f});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(65736),c=a(61775),l=a(2353),p=a(5004),d=a(93806),u=a(28178),m=a(79032),h=a(9494),g=a(99196),k=a.n(g);const __=o.__;class v extends k().Component{updateFormStateByMarkdown=e=>this.props.getSettingCurrentValue("wpcom_publish_posts_with_markdown",e)?this.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown"):this.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown",!0);handleMarkdownCommentsToggle=()=>{this.props.updateFormStateModuleOption("markdown","wpcom_publish_comments_with_markdown")};render(){const e=this.props.isModuleFound("comments"),t=this.props.isModuleFound("gravatar-hovercards"),a=this.props.isModuleFound("markdown"),n=this.props.isModuleFound("comment-likes");if(!(e||t||a||n))return null;const{isUnavailableInOfflineMode:o,getOptionValue:l}=this.props,g=this.props.getModule("comments"),v=this.props.getOptionValue("comments"),f=this.props.isUnavailableInOfflineMode("comments"),E=this.props.getModule("gravatar-hovercards"),_=this.props.getModule("markdown"),b=o("comment-likes"),y=l("comment-likes");return k().createElement(d.Z,s()({},this.props,{header:__("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&k().createElement(u.Z,{hasChild:!0,disableInOfflineMode:!0,module:g,support:{text:__("Replaces the standard WordPress comment form with a new comment system that includes social media login options.","jetpack"),link:(0,i.Z)("jetpack-support-comments")}},k().createElement(p.T,{slug:"comments",compact:!0,disabled:f,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},k().createElement("span",{className:"jp-form-toggle-explanation"},g.description)),k().createElement(c.C_,null,k().createElement(c.lX,null,k().createElement("span",{className:"jp-form-label-wide"},__("Comment form introduction","jetpack")),k().createElement(h.Z,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!v||f||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),k().createElement("span",{className:"jp-form-setting-explanation"},__("A few catchy words to motivate your visitors to comment.","jetpack")),k().createElement(c.lX,null,k().createElement("span",{className:"jp-form-label-wide"},__("Color scheme","jetpack")),k().createElement(c.ih,s()({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!v||f||this.props.isSavingAnyOption("jetpack_comment_form_color_scheme"),onChange:this.props.onOptionChange},this.props,{validValues:this.props.validValues("jetpack_comment_form_color_scheme","comments"),rna:!0}))))),(t||a||n)&&k().createElement(u.Z,null,t&&k().createElement("div",{className:"jp-toggle-set"},k().createElement(c.C_,null,k().createElement(p.T,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},k().createElement("span",{className:"jp-form-toggle-explanation"},E.description))),k().createElement(m.Z,{text:__("Show Gravatar hovercards alongside comments.","jetpack"),link:E.learn_more_button,privacyLink:E.learn_more_button+"#privacy"})),a&&k().createElement("div",{className:"jp-toggle-set"},k().createElement(c.C_,null,k().createElement(r.Z,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown"])||"inactive"===this.props.getModuleOverride("markdown"),toggling:this.props.isSavingAnyOption(["wpcom_publish_comments_with_markdown"]),onChange:this.handleMarkdownCommentsToggle,label:k().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable Markdown use for comments.","jetpack"))})),k().createElement(m.Z,{text:__("Allow readers to use markdown in comments.","jetpack"),link:_.learn_more_button,privacyLink:_.learn_more_button+"#privacy"})),n&&k().createElement("div",{className:"jp-toggle-set"},k().createElement(c.C_,null,k().createElement(p.T,{slug:"comment-likes",compact:!0,disabled:b,activated:y,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable comment Likes.","jetpack")))),k().createElement(m.Z,{text:__("Allow readers to like individual comments.","jetpack"),link:(0,i.Z)("jetpack-support-comment-likes"),privacyLink:(0,i.Z)("jetpack-support-comment-likes",{anchor:"privacy"})}))))}}const f=(0,l.u)(v)},70399:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(82674),s=a.n(n),i=a(65736),r=a(69270),o=a(99196),c=a.n(o),l=a(59309),p=a(96300),d=a(69508),u=a(50416),m=a(89292),h=a(3230),g=a(13067);const __=i.__;class k extends c().Component{static displayName="DiscussionSettings";render(){const e={settings:this.props.settings,getModule:this.props.module,isOdysseyStatsEnabled:this.props.isOdysseyStatsEnabled,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isWoASite:this.props.isWoASite,siteAdminUrl:this.props.siteAdminUrl},t=this.props.isModuleFound("comments"),a=this.props.isModuleFound("markdown"),n=this.props.isModuleFound("gravatar-hovercards"),i=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||a||n||i)?c().createElement("div",null,c().createElement(r.Z,null),c().createElement("h1",{className:"screen-reader-text"},__("Jetpack Discussion Settings","jetpack")),c().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Discussion","jetpack"):__("Manage advanced comment settings.","jetpack")),c().createElement(g.H,s()({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride}))):null}}const v=(0,l.$j)((e=>({module:t=>(0,u.rT)(e,t),settings:(0,h.Gw)(e),isOfflineMode:(0,p.Ex)(e),isUnavailableInOfflineMode:t=>(0,p.t_)(e,t),isModuleFound:t=>(0,m.CX)(e,t),connectUrl:(0,p.AM)(e),isLinked:(0,p.BU)(e),getModuleOverride:t=>(0,u.Qy)(e,t),isOdysseyStatsEnabled:(0,d.ij)(e),isWoASite:(0,d.Pw)(e),siteAdminUrl:(0,d.wW)(e)})))(k)},83693:(e,t,a)=>{"use strict";a.d(t,{f:()=>y});var n=a(82674),s=a.n(n),i=a(48229),r=a(6895),o=a(55609),c=a(69307),l=a(65736),p=a(85799),d=a(61775),u=a(2353),m=a(5004),h=a(93806),g=a(28178),k=a(9494),v=a(65936),f=a(84069),E=a(59584),_=a(99196),b=a.n(_);const __=l.__,_x=l._x,y=(0,u.u)(class extends b().Component{updateOptions=e=>{this.props.updateFormStateModuleOption("wordads",e)};trackConfigureClick=()=>{f.Z.tracks.recordJetpackClick("view-earnings")};trackConfigureWidgetClick=()=>{f.Z.tracks.recordJetpackClick("place_ad_widget")};handleChange=e=>()=>this.updateOptions(e);renderAdsTxtSection(){const{getOptionValue:e,isUnavailableInOfflineMode:t}=this.props,a=e("wordads_custom_adstxt_enabled","wordads"),n=e("wordads_custom_adstxt","wordads"),s=e("wordads"),o=t("wordads");return b().createElement(g.Z,{hasChild:!0,support:{text:__("Ads.txt (Authorized Digital Sellers) is a mechanism that enables content owners to declare who is authorized to sell their ad inventory. It’s the formal list of advertising partners you support as a publisher.","jetpack"),link:"https://jetpack.com/support/ads/"}},b().createElement(i.Z,{checked:a,disabled:!s||o||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_custom_adstxt_enabled"]),onChange:this.handleChange("wordads_custom_adstxt_enabled"),label:__("Customize your ads.txt file","jetpack")}),a&&b().createElement(d.C_,null,b().createElement("br",null),b().createElement("p",null,s&&(0,c.createInterpolateElement)(__("WordAds automatically generates a custom <link1>ads.txt</link1> tailored for your site. If you need to add additional entries for other networks please add them in the space below, one per line. <link2>Check here for more details</link2>.","jetpack"),{link1:b().createElement("a",{href:"/ads.txt",target:"_blank",rel:"noopener noreferrer"}),link2:b().createElement("a",{href:(0,r.Z)("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}),!s&&__("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.","jetpack")),b().createElement(v.Z,{name:"wordads_custom_adstxt",value:n,disabled:!s||o||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt"]),onChange:this.props.onOptionChange})))}render(){const e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInOfflineMode("wordads"),a=this.props.getOptionValue("enable_header_ad","wordads"),n=this.props.getOptionValue("wordads_second_belowpost","wordads"),l=this.props.getOptionValue("wordads_inline_enabled","wordads"),u=this.props.getOptionValue("wordads_display_front_page","wordads"),v=this.props.getOptionValue("wordads_display_post","wordads"),f=this.props.getOptionValue("wordads_display_page","wordads"),_=this.props.getOptionValue("wordads_display_archive","wordads"),y=this.props.getOptionValue("wordads_ccpa_enabled","wordads"),w=this.props.getOptionValue("wordads_ccpa_privacy_policy_url","wordads"),C=this.props.getOptionValue("wordads_cmp_enabled","wordads"),j=-1!==this.props.siteRawUrl.indexOf("::");return b().createElement(h.Z,s()({},this.props,{header:_x("Ads","Ads header","jetpack"),feature:E.N8_,saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"])}),b().createElement(g.Z,{disableInOfflineMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:__("Displays high-quality ads on your site that allow you to earn income.","jetpack"),link:(0,r.Z)("jetpack-support-ads")}},b().createElement("p",null,__("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings.","jetpack"),b().createElement("br",null),b().createElement("small",{className:"jp-form-setting-explanation"},(0,c.createInterpolateElement)(__("By activating ads, you agree to the Automattic Ads <link>Terms of Service</link>.","jetpack"),{link:b().createElement(o.ExternalLink,{href:(0,r.Z)("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}))),b().createElement(m.T,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},b().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable ads and display an ad below each post","jetpack"))),b().createElement(d.C_,null,b().createElement(d.Gj,null,__("Display ads below posts on","jetpack")),b().createElement(i.Z,{checked:u,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page"),label:__("Front page","jetpack")}),b().createElement(i.Z,{checked:v,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_post"]),onChange:this.handleChange("wordads_display_post"),label:__("Posts","jetpack")}),b().createElement(i.Z,{checked:f,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_page"]),onChange:this.handleChange("wordads_display_page"),label:__("Pages","jetpack")}),b().createElement(i.Z,{checked:_,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive"),label:__("Archives","jetpack")})),b().createElement(d.C_,null,b().createElement(d.Gj,null,__("Additional ad placements","jetpack")),b().createElement(i.Z,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["enable_header_ad"]),onChange:this.handleChange("enable_header_ad"),label:__("Top of each page","jetpack")}),b().createElement(i.Z,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost"),label:__("Second ad below post","jetpack")}),b().createElement(i.Z,{checked:l,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_inline_enabled"]),onChange:this.handleChange("wordads_inline_enabled"),label:__("Inline within post content","jetpack")}))),b().createElement(g.Z,{hasChild:!0,support:{text:__("Enables a targeted advertising opt-out link in US states where this is legally required.","jetpack"),link:this.props.isAtomicSite?(0,r.Z)("wpcom-support-us-privacy"):(0,r.Z)("jetpack-support-ads")}},b().createElement(i.Z,{checked:y,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_ccpa_enabled"]),onChange:this.handleChange("wordads_ccpa_enabled"),label:__("Enable targeted advertising to site visitors in all US states.","jetpack")}),y&&b().createElement(d.C_,null,b().createElement("p",null,b().createElement("small",{className:"jp-form-setting-explanation"},__("Some US states have laws that require offering site visitors an opt-out from having their data used to personalize ads. Targeted advertising is off in certain states unless you enable it.","jetpack"))),b().createElement("p",null,b().createElement(d.Gj,null,__("Do Not Sell Link","jetpack")),(0,c.createInterpolateElement)(__('If you enable targeted advertising in all US states, you are required to place a "Do Not Sell or Share My Personal Information" link on every page of your site where targeted advertising will appear. You can use the <widgetLink>Do Not Sell Link Widget</widgetLink>, or the <code>[privacy-do-not-sell-link]</code> shortcode to automatically place this link on your site. Note: the link will always display to logged in administrators regardless of geolocation.',"jetpack"),{code:b().createElement("code",null),widgetLink:b().createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}),b().createElement("span",{className:"jp-form-setting-explanation"},__("Failure to add this link will result in non-compliance with privacy laws in some US states.","jetpack")))),y&&b().createElement(d.C_,null,b().createElement(d.Gj,null,__("Privacy Policy URL","jetpack")),b().createElement(k.Z,{name:"wordads_ccpa_privacy_policy_url",placeholder:"https://",value:w,disabled:!e||t||!y||this.props.isSavingAnyOption(["wordads","wordads_ccpa_privacy_policy_url"]),onChange:this.props.onOptionChange}),b().createElement("span",{className:"jp-form-setting-explanation"},__("Adds a link to your privacy policy to the notice popup triggered by the do not sell link (optional).","jetpack")))),b().createElement(g.Z,{support:{text:__("Show a cookie banner to all EU and UK site visitors prompting them to consent to their personal data being used to personalize the ads they see. Without proper consents EU/UK visitors will only see lower paying non-personalized ads.","jetpack"),link:(0,r.Z)("jetpack-support-ads")}},b().createElement(i.Z,{checked:C,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_cmp_enabled"]),onChange:this.handleChange("wordads_cmp_enabled"),label:__("Enable GDPR Consent Banner","jetpack")})),!j&&this.renderAdsTxtSection(),!t&&e&&b().createElement(p.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},__("View your earnings","jetpack")))}})},32223:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var n=a(82674),s=a.n(n),i=a(6895),r=a(69307),o=a(65736),c=a(85799),l=a(66164),p=a(69270),d=a(93806),u=a(28178),m=a(84069),h=a(59584),g=a(99196),k=a.n(g),v=a(59309),f=a(96300),E=a(69508),_=a(50416),b=a(89292),y=a(83693);const __=o.__;function w(e){const{buttonText:t,featureConstant:a="",featureName:n,infoLink:i,infoDescription:o,supportLink:l,title:p}=e,h=(0,r.useCallback)((()=>{m.Z.tracks.recordJetpackClick({target:`visit-${n}`,feature:"earn"})}),[n]);return k().createElement(d.Z,s()({},e,{header:p,hideButton:!0,module:"earn",feature:a||void 0}),k().createElement(u.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{link:l}},o),k().createElement(c.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:h,href:i,target:"_blank"},t))}const C=(0,v.$j)((e=>({hasConnectedOwner:(0,f.it)(e),module:t=>(0,_.rT)(e,t),isOffline:(0,f.Ex)(e),isModuleFound:t=>(0,b.CX)(e,t),isUnavailableInOfflineMode:t=>(0,f.t_)(e,t),isAtomicSite:(0,E.Ug)(e),blogID:(0,E.EZ)(e)})))((function(e){const{active:t,hasConnectedOwner:a,isModuleFound:n,isOffline:r,searchTerm:o,siteRawUrl:c,blogID:m}=e,g=n("wordads"),v=n("earn");return(o||t)&&(g||v)?k().createElement("div",null,k().createElement(p.Z,null),k().createElement("h1",{className:"screen-reader-text"},__("Jetpack Earn Settings","jetpack")),k().createElement("h2",{className:"jp-settings__section-title"},o?__("Earn","jetpack"):__("Explore tools to earn money with your site.","jetpack",0)),g&&k().createElement(y.f,s()({},e,{configureUrl:(0,i.Z)("calypso-stats-ads-day",{site:m??c})})),v&&(r?k().createElement(u.Z,null,k().createElement("div",{className:"jp-form-block-fade"}),__("Unavailable in Offline Mode.","jetpack")):a?k().createElement(k().Fragment,null,k().createElement(w,s()({},e,{featureName:"payments",title:__("Collect payments","jetpack"),supportLink:(0,i.Z)("jetpack-support-jetpack-blocks-payments-block"),infoLink:(0,i.Z)("wpcom-earn-payments",{site:m??c}),infoDescription:__("Let visitors pay for digital goods and services or make quick, pre-set donations by enabling the Payment Button block.","jetpack"),buttonText:__("Enable payment button","jetpack")})),k().createElement(w,s()({},e,{featureName:"donations",title:__("Accept donations and tips","jetpack"),supportLink:(0,i.Z)("jetpack-support-jetpack-blocks-donations-block"),infoLink:(0,i.Z)("wpcom-earn-payments",{site:m??c}),infoDescription:__("Accept one-time and recurring donations by enabling the Donations Form block.","jetpack"),buttonText:__("Enable donations form","jetpack")})),k().createElement(w,s()({},e,{featureName:"paypal",title:__("Collect PayPal payments","jetpack"),supportLink:(0,i.Z)("jetpack-support-pay-with-paypal"),infoLink:(0,i.Z)("jetpack-support-pay-with-paypal"),infoDescription:__("Accept credit card payments via PayPal for physical products, services, donations, or support of your creative work.","jetpack"),buttonText:__("Learn how to get started","jetpack"),featureConstant:h.S5m}))):k().createElement(d.Z,s()({},e,{hideButton:!0,module:"earn",header:__("Collect payments","jetpack")}),k().createElement(l.Z,{feature:"earn",featureLabel:__("Collect payments","jetpack"),text:__("Connect to discover tools to earn money with your site.","jetpack")})))):null}))},31493:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});const n=[9,32,37,38,39,40];let s=!1;const i=function(){document.addEventListener("keydown",(function(e){s||-1!==n.indexOf(e.keyCode)&&(s=!0,document.documentElement.classList.add("dops-accessible-focus"))})),document.addEventListener("mouseup",(function(){s&&(s=!1,document.documentElement.classList.remove("dops-accessible-focus"))}))}},84069:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(6975),s=a(35182);n.Z.setMcAnalyticsEnabled((0,s.Z)("mc_analytics_enabled")),n.Z.setGoogleAnalyticsEnabled((0,s.Z)("google_analytics_enabled"),(0,s.Z)("google_analytics_key"));const i=n.Z},34443:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n=function(){const e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"windows":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":"unknown"}},59584:(e,t,a)=>{"use strict";a.d(t,{$Kn:()=>R,$Po:()=>Ue,A3l:()=>m,BD8:()=>_t,Ba4:()=>z,Bi:()=>be,C7d:()=>oe,Cb:()=>Q,Cbu:()=>rt,DMv:()=>It,Dgm:()=>ce,DlI:()=>Ve,ECB:()=>Tt,EcK:()=>g,Etl:()=>X,FLw:()=>Ee,FSp:()=>Me,G$d:()=>Be,G1J:()=>Dt,G6C:()=>b,Guz:()=>We,Hmm:()=>Ze,INL:()=>ke,Ijo:()=>de,JA7:()=>d,JBA:()=>Je,JEv:()=>qe,JX4:()=>se,LAg:()=>B,MC3:()=>Zt,Mvu:()=>Mt,Mzu:()=>ie,N8_:()=>yt,NJq:()=>M,N_2:()=>ft,O$n:()=>xt,O3V:()=>Oe,OEg:()=>w,OMh:()=>it,Pte:()=>f,Pu7:()=>Lt,PuQ:()=>Pe,Q1Y:()=>q,Qm2:()=>j,Qox:()=>lt,Rw2:()=>K,S5m:()=>St,SsR:()=>Ut,T54:()=>Ct,TBc:()=>k,TID:()=>S,UsJ:()=>H,V37:()=>vt,VlB:()=>ze,WSn:()=>he,Wgk:()=>o,WjF:()=>$,XLA:()=>F,Xzm:()=>A,YN_:()=>W,Yq$:()=>me,ZRv:()=>D,Zyl:()=>pt,_BF:()=>y,_dE:()=>Le,_dN:()=>Z,aSV:()=>te,apc:()=>P,dNW:()=>Re,dWz:()=>J,e8w:()=>Pt,e9K:()=>v,eMt:()=>Et,eld:()=>Ce,f$H:()=>l,f3A:()=>u,fCb:()=>nt,fDC:()=>p,fOq:()=>at,hI$:()=>U,hhG:()=>r,iPR:()=>ae,icM:()=>Ie,j2d:()=>i,j2v:()=>Ge,jIY:()=>Fe,jTC:()=>st,k2r:()=>xe,k31:()=>je,kdX:()=>Rt,ko$:()=>Ae,lF9:()=>Se,ljz:()=>T,lv:()=>h,nAQ:()=>tt,nE6:()=>He,ns9:()=>Y,nsL:()=>I,o2o:()=>zt,oay:()=>Ft,our:()=>pe,p2b:()=>O,p7x:()=>s,pd0:()=>x,psy:()=>bt,qBb:()=>Te,qSP:()=>ot,qbT:()=>jt,qnt:()=>re,r2Z:()=>wt,rVK:()=>ct,s1w:()=>ee,sTY:()=>De,scx:()=>Vt,shc:()=>ve,sqC:()=>c,syR:()=>C,tVY:()=>V,th6:()=>ne,tlC:()=>ge,unl:()=>ue,uxe:()=>G,uzL:()=>ye,vKQ:()=>we,vQF:()=>E,vSC:()=>fe,vZK:()=>At,v_I:()=>_e,vbP:()=>Ne,wmd:()=>N,xfZ:()=>_,yWn:()=>le,yYZ:()=>L,yy5:()=>Ot,z6U:()=>et});var n=a(92819);const s="business-bundle",i="business-bundle-2y",r="business-bundle-3y",o="business-bundle-monthly",c="wp_bundle_hosting_trial_monthly",l="wp_bundle_migration_trial_monthly",p="wp_com_hundred_year_bundle_centennially",d="ecommerce-bundle",u="ecommerce-bundle-2y",m="ecommerce-bundle-3y",h="ecommerce-bundle-monthly",g="wooexpress-small-bundle-yearly",k="wooexpress-small-bundle-monthly",v="wooexpress-medium-bundle-yearly",f="wooexpress-medium-bundle-monthly",E="ecommerce-trial-bundle-monthly",_="value_bundle",b="value_bundle-2y",y="value_bundle-3y",w="value_bundle-monthly",C="personal-bundle",j="personal-bundle-2y",S="personal-bundle-3y",N="personal-bundle-monthly",x="starter-plan",R="pro-plan",Z="free_plan",T="jetpack_free",A="jetpack_premium",M="jetpack_business",P="jetpack_personal",O="jetpack_premium_monthly",L="jetpack_business_monthly",I="jetpack_personal_monthly",D="jetpack_backup_t0_yearly",U="jetpack_backup_t0_monthly",z="jetpack_backup_t1_bi_yearly",V="jetpack_backup_t1_yearly",F="jetpack_backup_t1_monthly",B="jetpack_backup_t2_yearly",H="jetpack_backup_t2_monthly",q="jetpack_search_bi_yearly",J="jetpack_search",W="jetpack_search_free",G="jetpack_search_monthly",$="jetpack_starter_yearly",K="jetpack_starter_monthly",Y="jetpack_security_t1_bi_yearly",X="jetpack_security_t1_yearly",Q="jetpack_security_t1_monthly",ee="jetpack_security_t2_yearly",te="jetpack_security_t2_monthly",ae="jetpack_complete_bi_yearly",ne="jetpack_complete",se="jetpack_complete_monthly",ie="jetpack_boost_bi_yearly",re="jetpack_boost_yearly",oe="jetpack_boost_monthly",ce="jetpack_ai_monthly",le="jetpack_ai_yearly",pe="jetpack_ai_bi_yearly",de="wpcom_search",ue="wpcom_search_monthly",me="jetpack_scan_bi_yearly",he="jetpack_scan",ge="jetpack_scan_monthly",ke="jetpack_anti_spam_bi_yearly",ve="jetpack_anti_spam",fe="jetpack_anti_spam_monthly",Ee="jetpack_videopress_bi_yearly",_e="jetpack_videopress",be="jetpack_videopress_monthly",ye="vip",we="jetpack_social_basic_bi_yearly",Ce="jetpack_social_basic_yearly",je="jetpack_social_basic_monthly",Se="jetpack_social_advanced_bi_yearly",Ne="jetpack_social_advanced_yearly",xe="jetpack_social_advanced_monthly",Re="jetpack_social_v1_bi_yearly",Ze="jetpack_social_v1_yearly",Te="jetpack_social_v1_monthly",Ae="jetpack_golden_token_lifetime",Me="jetpack_creator_monthly",Pe="jetpack_creator_yearly",Oe="jetpack_creator_bi_yearly",Le="jetpack_backup_daily",Ie="jetpack_backup_daily_monthly",De="jetpack_backup_realtime",Ue="jetpack_backup_realtime_monthly",ze="jetpack_security_daily",Ve="jetpack_security_daily_monthly",Fe="jetpack_security_realtime",Be="jetpack_security_realtime_monthly",He="jetpack_stats_bi_yearly",qe="jetpack_stats",Je="jetpack_stats_monthly",We="jetpack_stats_pwyw_yearly",Ge="jetpack_stats_free_yearly",$e=[A,M,P,O,L,I],Ke=[A,M,O,L],Ye=[$,K,Y,X,Q,ee,te,Ae,ze,Ve,Fe,Be],Xe=[A,M,P,O,L,I,$,K,Y,X,Q,ee,te,ae,ne,se,Ae],Qe=[A,M,P,O,L,I,$,K,Y,X,Q,ee,te,ae,ne,se,ze,Ve,Fe,Be],et=[ae,ne,se],tt=[Ae],at=[Y,X,Q,ee,te,s,i,r,o,d,u,m,h,R,ye,"wpcom-enterprise",ze,Ve,Fe,Be],nt=[$,K],st=[D,U,z,V,F,B,H,Le,Ie,De,Ue],it=[q,J,G,W,de,ue],rt=[me,he,ge],ot=[ke,ve,fe],ct=[Ee,_e,be],lt=[we,Ce,je],pt=[Se,Ne,xe],dt=[Re,Ze,Te],ut=[...lt,...pt,...dt],mt=[ie,re,oe],ht=[pe,le,ce],gt=[He,qe,Je,We,Ge],kt=[Me,Pe,Oe],vt="spam-akismet-plus",ft="site-backups-jetpack",Et="security-scanning-jetpack",_t="video-hosting-jetpack",bt="priority-support-jetpack",yt="wordads-jetpack",wt="google-analytics-jetpack",Ct="search-jetpack",jt="videopress-jetpack",St="simple-payments-jetpack",Nt={[bt]:X,[Ct]:J,[Et]:he,[ft]:V,[vt]:ve,[_t]:X,[yt]:X,[wt]:X,[vt]:ve,[jt]:_e,[St]:X};function xt(e){return(0,n.includes)(Qe,e)}function Rt(e){return(0,n.includes)(Xe,e)}function Zt(e){return(0,n.includes)(st,e)}function Tt(e){return ot.includes(e)}function At(e){return ut.includes(e)}function Mt(e){return mt.includes(e)}function Pt(e){return kt.includes(e)}function Ot(e){return Zt(e)||function(e){return(0,n.includes)(it,e)}(e)||function(e){return rt.includes(e)}(e)||Tt(e)||function(e){return ct.includes(e)}(e)||At(e)||Mt(e)||function(e){return ht.includes(e)}(e)||function(e){return gt.includes(e)}(e)||Pt(e)}function Lt(e){return Ye.includes(e)}function It(e){return at.includes(e)}function Dt(e){return $e.includes(e)}function Ut(e){return Ke.includes(e)}function zt(e){return Nt[e]}function Vt(e){switch(e){case T:case Z:return"is-free-plan";case C:case j:case S:case N:case x:case P:case I:return"is-personal-plan";case _:case b:case y:case w:case A:case O:return"is-premium-plan";case s:case i:case r:case o:case M:case L:case d:case u:case m:case h:case R:case c:case l:case p:case g:case k:case v:case f:case E:return"is-business-plan";case $:case K:return"is-jetpack-starter-plan";case Y:case X:case Q:return"is-security-t1-plan";case ee:case te:return"is-security-t2-plan";case ae:case ne:case se:case ye:return"is-complete-plan";case D:case U:return"is-backup-t0-plan";case z:case V:case F:return"is-backup-t1-plan";case B:case H:return"is-backup-t2-plan";case q:case J:case G:case de:case ue:return"is-search-plan";case W:return"is-free-search-plan";case me:case he:case ge:return"is-scan-plan";case ke:case ve:case fe:return"is-anti-spam-plan";case Ee:case _e:case be:return"is-videopress-plan";case Ae:return"is-jetpack-golden-token-plan";case Oe:case Pe:case Me:return"is-jetpack-creator-plan";case ze:case Ve:return"is-daily-security-plan";case Fe:case Be:return"is-realtime-security-plan";case Le:case Ie:return"is-daily-backup-plan";case De:case Ue:return"is-realtime-backup-plan";case we:case Ce:case je:return"is-jetpack-social-basic-plan";case Se:case Ne:case xe:return"is-jetpack-social-advanced-plan";case Re:case Ze:case Te:return"is-jetpack-social-v1-plan";case ie:case re:case oe:return"is-jetpack-boost-plan";case pe:case ce:case le:return"is-jetpack-ai-plan";case He:case qe:case Je:case We:return"is-jetpack-stats-plan";case Ge:return"is-free-jetpack-stats-plan";default:return""}}function Ft(e){return[Ae].includes(e)}},23962:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(7211);const s=(e,t)=>{const a=new n.Z;let s;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(()=>{let e=null;s&&s.keyring_id&&(e=Number(s.keyring_id)),t(e)})),a.on("message",(e=>s=e))}},77733:(e,t,a)=>{"use strict";function n(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}a.d(t,{_:()=>n})},31215:(e,t,a)=>{"use strict";a.d(t,{Z:()=>Q});var n=a(80800),s=a(64743),i=a(6895),r=a(66183),o=a(80428),c=a(53281),l=a(88067),p=a(1862),d=a(9818),u=a(65736),m=a(36288),h=a(57301),g=a(17363),k=a(16102),v=a(88546),f=a(7516),E=a(75060),_=a(36795),b=a(32977),y=a(54265),w=a(14241),C=a(86799),j=a(92685),S=a(63157),N=a(19567),x=a.n(N),R=a(84069),Z=a(38106),T=a(35150),A=a(94648),M=a(99196),P=a.n(M),O=a(59309),L=a(44498),I=a(22267),D=a(49517),U=a(96300),z=a(69508),V=a(59963),F=a(50416),B=a(69377),H=a(89292),q=a(3230),J=a(33002),W=a(12832);const __=u.__,G=["/recommendations","/recommendations/site-type","/recommendations/product-suggestions","/recommendations/product-purchased","/recommendations/agency","/recommendations/woocommerce","/recommendations/monitor","/recommendations/newsletter","/recommendations/related-posts","/recommendations/creative-mail","/recommendations/site-accelerator","/recommendations/publicize","/recommendations/protect","/recommendations/anti-spam","/recommendations/videopress","/recommendations/backup-plan","/recommendations/boost","/recommendations/summary","/recommendations/vaultpress-backup","/recommendations/vaultpress-for-woocommerce","/recommendations/welcome-backup","/recommendations/welcome-complete","/recommendations/welcome-security","/recommendations/welcome-starter","/recommendations/welcome-antispam","/recommendations/welcome-videopress","/recommendations/welcome-search","/recommendations/welcome-scan","/recommendations/welcome-social-basic","/recommendations/welcome-social-advanced","/recommendations/welcome-social-image-generator","/recommendations/welcome-golden-token","/recommendations/backup-activated","/recommendations/scan-activated","/recommendations/unlimited-sharing-activated","/recommendations/social-advanced-activated","/recommendations/antispam-activated","/recommendations/videopress-activated","/recommendations/search-activated","/recommendations/server-credentials"],$=["my-jetpack "],K=["/","/dashboard","/reconnect","/my-plan","/plans"],Y=["/settings","/security","/performance","/writing","/sharing","/discussion","/earn","/newsletter","/traffic","/privacy"];class X extends P().Component{constructor(e){super(e),this.closeReconnectModal=this.closeReconnectModal.bind(this),this.onLicenseActivationSuccess=this.onLicenseActivationSuccess.bind(this)}UNSAFE_componentWillMount(){this.props.setInitialState(),s.ZP.setApiRoot(this.props.apiRoot),s.ZP.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&R.Z.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}componentDidMount(){const e=x()(".jp-jetpack-connect__container"),t=x()(".jp-connect-full__container");e&&t.length>0&&t.prependTo(e),this.props.isWooCommerceActive&&!this.props.hasSeenWCConnectionModal&&this.props.userCanManageModules&&this.props.history.replace({pathname:"/woo-setup",state:{previousPath:this.props.location.pathname}})}handleRouterWillLeave=()=>{const e=__("There are unsaved settings in this tab that will be lost if you leave it. Proceed?","jetpack");return!!confirm(e)&&(window.setTimeout(this.props.clearUnsavedSettingsFlag,10),!0)};initializeAnalytics=()=>{const e=this.props.tracksUserData;e&&R.Z.initialize(e.userid,e.username,{blog_id:e.blogid})};shouldComponentUpdate(e){return!["/wpbody-content","/wp-toolbar"].includes(e.location.pathname)&&(JSON.stringify(e.connectionStatus)!==JSON.stringify(this.props.connectionStatus)||e.siteConnectionStatus!==this.props.siteConnectionStatus||e.isLinked!==this.props.isLinked||e.isConnectingUser!==this.props.isConnectingUser||e.location.pathname!==this.props.location.pathname||e.searchTerm!==this.props.searchTerm||e.rewindStatus!==this.props.rewindStatus||e.areThereUnsavedSettings!==this.props.areThereUnsavedSettings||e.isReconnectingSite!==this.props.isReconnectingSite)}componentDidUpdate(e){if(e.location.pathname!==this.props.location.pathname&&this.props.isSiteConnected&&R.Z.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){const e=x()("#toplevel_page_jetpack").find("ul.wp-submenu li");e.find('a[href$="#/settings"]').hide(),e.find('a[href$="admin.php?page=stats"]').hide(),e.find('a[href$="admin.php?page=jetpack-search"]').hide()}this.props.setConnectionStatus(this.props.connectionStatus)}renderMainNav=e=>{if(this.shouldShowWooConnectionScreen())return null;if(this.props.partnerCoupon){const e=new URLSearchParams(window.location.search).get("showCouponRedemption");if(!this.props.isOfflineMode&&(!this.props.isSiteConnected||e))return null}if(this.isUserConnectScreen()&&(this.props.userCanManageModules||this.props.hasConnectedOwner))return null;if(!this.props.userCanManageModules){if(!this.props.siteConnectionStatus)return null;switch(e){case"/settings":case"/writing":case"/sharing":case"/performance":if(!this.props.isSubscriber)return P().createElement(y.Z,this.props)}return P().createElement(b.Z,this.props)}if(this.isMainConnectScreen())return null;switch(e){case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/earn":case"/newsletter":case"/traffic":case"/privacy":return P().createElement(y.Z,{routeName:this.props.routeName,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl});case"/license/activation":if(this.props.isLinked&&this.props.isConnectionOwner)return null}return P().createElement(b.Z,{routeName:this.props.routeName,blogID:this.props.blogID})};renderMainContent=e=>{if(this.shouldShowWooConnectionScreen()){const e=this.props.location.state?.previousPath,t=e&&"/woo-setup"!==e?`#${e}`:"#/dashboard";return P().createElement(k.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,title:__("Welcome to Jetpack! Security, Growth, & Performance tools for WordPress businesses","jetpack"),logo:P().createElement("img",{src:n.hp+"/jetpack-woocommerce-logo.svg",alt:__("Jetpack and WooCommerce","jetpack")}),buttonLabel:__("Set up Jetpack","jetpack"),redirectUri:"admin.php?page=jetpack",redirectTo:t,from:this.props.location.pathname,isSiteConnected:this.props.isSiteConnected,setHasSeenWCConnectionModal:this.props.setHasSeenWCConnectionModal},P().createElement("p",null,__("Jetpack is the perfect companion plugin for WooCommerce - made by WordPress experts to make your store faster, safer, and to help grow your business.","jetpack")))}if(this.props.partnerCoupon){const e=new URLSearchParams(window.location.search).get("showCouponRedemption");if(!this.props.isOfflineMode&&(!this.props.isSiteConnected||e))return P().createElement(p.es,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,assetBaseUrl:this.props.pluginBaseUrl,connectionStatus:this.props.connectionStatus,partnerCoupon:this.props.partnerCoupon,siteRawUrl:this.props.siteRawUrl,tracksUserData:!!this.props.tracksUserData,analytics:R.Z})}if(this.isUserConnectScreen()&&(this.props.userCanManageModules||this.props.hasConnectedOwner)){const e=new URLSearchParams(location.search.split("?")[1]);return P().createElement(l.Z,{title:this.props.connectingUserFeatureLabel&&(0,u.sprintf)(/* translators: placeholder is a feature label (e.g. SEO, Notifications) */ __("Unlock %s and more amazing features","jetpack"),this.props.connectingUserFeatureLabel),from:e&&e.get("from")||this.props.connectingUserFrom,redirectUri:"admin.php?page=jetpack",apiRoot:this.props.apiRoot,apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,autoTrigger:this.shouldAutoTriggerConnection()})}if(!this.props.userCanManageModules)return!!this.props.siteConnectionStatus&&P().createElement("div",{"aria-live":"assertive"},P().createElement(w.Z,this.props));if(this.isMainConnectScreen()){const e=new URLSearchParams(location.search.split("?")[1]);return P().createElement(r.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,images:["/images/connect-right.jpg"],assetBaseUrl:this.props.pluginBaseUrl,autoTrigger:this.shouldAutoTriggerConnection(),redirectUri:"admin.php?page=jetpack",from:e&&e.get("from")},P().createElement("p",null,__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack")),P().createElement("ul",{role:"list"},P().createElement("li",null,__("Measure your impact with Jetpack Stats","jetpack")),P().createElement("li",null,__("Speed up your site with optimized images","jetpack")),P().createElement("li",null,__("Protect your site against bot attacks","jetpack")),P().createElement("li",null,__("Get notifications if your site goes offline","jetpack")),P().createElement("li",null,__("Enhance your site with dozens of other features","jetpack"))))}let t;switch(e){case"/dashboard":case"/reconnect":case"/disconnect":case"/connect-user":case"/connect-user-setup":case"/woo-setup":t=P().createElement(m.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/setup":this.props.isSiteConnected&&(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;case"/my-plan":t=P().createElement(Z.Z,{siteRawUrl:this.props.siteRawUrl,blogID:this.props.blogID,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/plans":case"/plans-prompt":window.location.href=(0,i.Z)("jetpack-plans",{site:this.props.siteRawUrl});break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/earn":case"/newsletter":case"/traffic":case"/privacy":t=P().createElement(D.Z,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,blogID:this.props.blogID,searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus,userCanManageModules:this.props.userCanManageModules});break;case"/license/activation":this.props.isLinked&&this.props.isConnectionOwner?t=P().createElement(c.I,{siteRawUrl:this.props.siteRawUrl,onActivationSuccess:this.onLicenseActivationSuccess,siteAdminUrl:this.props.siteAdminUrl,currentRecommendationsStep:this.props.currentRecommendationsStep}):(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;case"/recommendations":case"/recommendations/site-type":case"/recommendations/product-suggestions":case"/recommendations/product-purchased":case"/recommendations/agency":case"/recommendations/woocommerce":case"/recommendations/monitor":case"/recommendations/newsletter":case"/recommendations/related-posts":case"/recommendations/creative-mail":case"/recommendations/site-accelerator":case"/recommendations/publicize":case"/recommendations/protect":case"/recommendations/anti-spam":case"/recommendations/videopress":case"/recommendations/backup-plan":case"/recommendations/boost":case"/recommendations/summary":case"/recommendations/vaultpress-backup":case"/recommendations/vaultpress-for-woocommerce":case"/recommendations/welcome-backup":case"/recommendations/welcome-complete":case"/recommendations/welcome-security":case"/recommendations/welcome-starter":case"/recommendations/welcome-antispam":case"/recommendations/welcome-videopress":case"/recommendations/welcome-search":case"/recommendations/welcome-scan":case"/recommendations/welcome-social-basic":case"/recommendations/welcome-social-advanced":case"/recommendations/welcome-golden-token":case"/recommendations/backup-activated":case"/recommendations/scan-activated":case"/recommendations/unlimited-sharing-activated":case"/recommendations/social-advanced-activated":case"/recommendations/welcome-social-image-generator":case"/recommendations/antispam-activated":case"/recommendations/videopress-activated":case"/recommendations/search-activated":case"/recommendations/server-credentials":this.props.showRecommendations?t=P().createElement(I.V,null):(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;default:if(A.w7.includes(e)){t=P().createElement(T.Z,null);break}this.props.history.replace("/dashboard"),t=this.getAtAGlance()}return this.props.isWoaSite&&!this.props.showMyJetpack?window.wpNavMenuClassChange({dashboard:1,settings:1}):this.props.isLinked||this.props.showMyJetpack?!this.props.isLinked&&this.props.showMyJetpack?window.wpNavMenuClassChange({myJetpack:1,dashboard:2,settings:3}):this.props.isLinked&&!this.props.showMyJetpack?window.wpNavMenuClassChange({activityLog:1,dashboard:2,settings:3}):window.wpNavMenuClassChange():window.wpNavMenuClassChange({dashboard:1,settings:2}),P().createElement("div",{"aria-live":"assertive",className:""+(this.shouldBlurMainContent()?"blur":"")},t)};getAtAGlance(){return P().createElement(m.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus})}shouldShowAppsCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&this.props.userCanViewStats&&K.includes(this.props.location.pathname)}shouldShowJetpackManageBanner(){const{site_count:e}=this.props.connectedWpComUser;return this.props.userCanConnectSite&&e>=2&&this.props.isSiteConnected&&!this.props.isAtomicSite&&!this.shouldShowWooConnectionScreen()&&K.includes(this.props.location.pathname)}shouldShowSupportCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&this.props.userCanManageModules&&K.includes(this.props.location.pathname)}shouldShowRewindStatus(){return this.props.isSiteConnected&&K.includes(this.props.location.pathname)}shouldShowMasthead(){return!this.isMainConnectScreen()&&[...K,...G,...Y].includes(this.props.location.pathname)}shouldShowFooter(){return[...K,...Y,...G,...A.w7].includes(this.props.location.pathname)}shouldBlurMainContent(){return this.props.isReconnectingSite}shouldShowReconnectModal(){return"/reconnect"===this.props.location.pathname}closeReconnectModal(){this.props.history.replace("/dashboard")}isMainConnectScreen(){return!1===this.props.siteConnectionStatus&&this.props.userCanConnectSite}isUserConnectScreen(){return"/connect-user"===this.props.location.pathname||"/connect-user-setup"===this.props.location.pathname}shouldShowWooConnectionScreen(){return"/woo-setup"===this.props.location.pathname}shouldConnectUser(){return this.props.isConnectingUser}connectUser(){this.props.resetConnectUser(),this.props.history.replace("/connect-user")}isLicensingScreen(){return this.props.location.pathname.startsWith("/license")}shouldAutoTriggerConnection(){return this.props.location.pathname.startsWith("/setup")||this.props.location.pathname.startsWith("/connect-user-setup")}onLicenseActivationSuccess(){this.props.updateUserLicensesCounts().then((()=>{this.props.updateLicensingActivationNoticeDismiss()})),this.props.fetchSiteData(),this.props.fetchSitePurchases(),this.props.fetchModules(),this.props.fetchSettings()}render(){const e=["jp-lower"];this.isMainConnectScreen()&&e.push("jp-main-connect-screen"),this.isUserConnectScreen()&&e.push("jp-user-connect-screen"),this.isLicensingScreen()&&e.push("jp-licensing-screen");const t=this.renderMainNav(this.props.location.pathname),a=t||this.shouldShowMasthead()||this.shouldShowRewindStatus();return P().createElement("div",null,this.shouldShowReconnectModal()&&P().createElement(C.Z,{show:!0,onHide:this.closeReconnectModal}),a&&P().createElement("div",{className:"jp-top"},P().createElement("div",{className:"jp-top-inside"},this.shouldShowMasthead()&&P().createElement(_.Z,{location:this.props.location}),this.shouldShowRewindStatus()&&P().createElement(v.Z,null),t)),P().createElement("div",{className:e.join(" ")},P().createElement(h.Z,null),P().createElement(E.ZP,null),this.shouldConnectUser()&&this.connectUser(),P().createElement(L.NL,{when:this.props.areThereUnsavedSettings,message:this.handleRouterWillLeave}),this.renderMainContent(this.props.location.pathname),this.shouldShowJetpackManageBanner()&&P().createElement(W.Z,{path:this.props.location.pathname,isAgencyAccount:this.props.jetpackManage.isAgencyAccount}),this.shouldShowSupportCard()&&P().createElement(j.Z,{path:this.props.location.pathname}),this.shouldShowAppsCard()&&P().createElement(g.Z,null)),this.shouldShowFooter()&&P().createElement(f.Z,{siteAdminUrl:this.props.siteAdminUrl}),P().createElement(S.Z,{analytics:R.Z}))}}const Q=(0,O.$j)((e=>({isOfflineMode:(0,U.Ex)(e),connectionStatus:(0,U.Zp)(e),siteConnectionStatus:(0,U.Gz)(e),connectedWpComUser:(0,U.tN)(e),isLinked:(0,U.BU)(e),isConnectingUser:(0,U.zq)(e),hasConnectedOwner:(0,U.it)(e),isConnectionOwner:(0,U.QM)(e),siteRawUrl:(0,z.JR)(e),blogID:(0,z.EZ)(e),siteAdminUrl:(0,z.wW)(e),searchTerm:(0,H.He)(e),apiRoot:(0,z.yB)(e),apiNonce:(0,z.VY)(e),registrationNonce:(0,z.H$)(e),tracksUserData:(0,z.hv)(e),areThereUnsavedSettings:(0,q.GD)(e),userCanManageModules:(0,z.pK)(e),userCanConnectSite:(0,z.Mc)(e),userCanViewStats:(0,z.px)(e),isSiteConnected:(0,U.q7)(e),isReconnectingSite:(0,U.O_)(e),rewindStatus:(0,B.of)(e),currentVersion:(0,z.w1)(e),showRecommendations:(0,z.mb)(e),pluginBaseUrl:(0,z.wB)(e),connectUrl:(0,U.AM)(e),connectingUserFeatureLabel:(0,U.xP)(e),connectingUserFrom:(0,U._8)(e),isAtomicSite:(0,z.Ug)(e),isWoaSite:(0,z.Pw)(e),showMyJetpack:(0,z.GC)(e),isWooCommerceActive:(0,z.nP)(e),hasSeenWCConnectionModal:(0,U.rH)(e),partnerCoupon:(0,z.DV)(e),currentRecommendationsStep:(0,z.rd)(e),isSubscriber:(0,z.dc)(e),jetpackManage:(0,z.jT)(e)})),(e=>({setInitialState:()=>e((0,z.KY)()),clearUnsavedSettingsFlag:()=>e((0,q._1)()),setHasSeenWCConnectionModal:()=>e((0,U.qJ)()),resetConnectUser:()=>e((0,U.HD)()),updateLicensingActivationNoticeDismiss:()=>e((0,V.bT)()),updateUserLicensesCounts:()=>e((0,V.Ng)()),fetchSiteData:()=>e((0,J.tO)()),fetchSitePurchases:()=>e((0,J.Z_)()),fetchModules:()=>e((0,F.Z$)()),fetchSettings:()=>e((0,q.wv)())})))((0,d.withDispatch)((e=>({setConnectionStatus:t=>{e(o.t).setConnectionStatus(t)}})))((0,L.EN)(X)));window.wpNavMenuClassChange=function(e={myJetpack:1,activityLog:2,dashboard:3,settings:4}){let t=window.location.hash,a=new URLSearchParams(window.location.search);x()(".current").each((function(e,t){x()(t).removeClass("current")}));const n=e=>x()("#toplevel_page_jetpack").find("li").filter((function(t){return t===e}))[0];t=t.split("?")[0].replace(/#/,""),a=a.get("page"),$.includes(a)?n(e.myJetpack)?.classList.add("current"):K.includes(t)||G.includes(t)||A.w7.includes(t)?n(e.dashboard)?.classList.add("current"):Y.includes(t)&&n(e.settings)?.classList.add("current");const s=x()("body");s.on("click",'a[href$="#/dashboard"], a[href$="#/settings"], .jp-dash-section-header__settings[href="#/security"], .dops-button[href="#/my-plan"], .dops-button[href="#/plans"], .jp-dash-section-header__external-link[href="#/security"]',(function(){window.scrollTo(0,0)})),s.on("click",".jetpack-js-stop-propagation",(function(e){e.stopPropagation()}))}},6257:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(53184),s=a(92819);function i(e){(0,s.assign)(e,n.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},38106:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(65736),s=a(70298),i=a(69270),r=a(99196),o=a.n(r),c=a(59309),l=a(96300),p=a(33002),d=a(49308),u=a(92709),m=a(41863);const __=n.__;const h=(0,c.$j)((e=>({activeFeatures:(0,p.$l)(e),activeProducts:(0,p.p)(e),availableFeatures:(0,p.ms)(e),getSiteConnectionStatus:()=>(0,l.Gz)(e),purchases:(0,p.qn)(e),sitePlan:(0,p.UL)(e)})))((function(e){let t=e.sitePlan.product_slug||"",a=e.availableFeatures,n=e.activeFeatures;return"offline"===e.getSiteConnectionStatus(e)&&(t="offline",a={},n={}),o().createElement(o().Fragment,null,o().createElement("h1",{className:"screen-reader-text"},__("Jetpack My Plan Details","jetpack")),o().createElement(i.Z,null),o().createElement(s.Z,null),o().createElement(m.Z,{siteRawUrl:e.siteRawUrl}),o().createElement(u.Z,{activeProducts:e.activeProducts,plan:t,purchases:e.purchases,siteAdminUrl:e.siteAdminUrl}),o().createElement(d.Z,{activeFeatures:n,availableFeatures:a,plan:t,rewindStatus:e.rewindStatus,siteAdminUrl:e.siteAdminUrl,siteRawUrl:e.siteRawUrl,blogID:e.blogID}))}))},18669:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(80800),s=a(84069),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o),l=a(71459);const p=e=>{const{additionalEventProperties:t,productSlug:a,action:i,title:r,tagLine:p,trackingId:d}=e;(0,o.useEffect)((()=>{s.Z.tracks.recordEvent("jetpack_my_plan_banner_view",{type:d,...t})}),[t,d]);const u=(0,o.useCallback)((()=>{s.Z.tracks.recordJetpackClick({target:d,feature:"my-plan-banner",page:"my-plan",...t})}),[t,d]);return c().createElement("div",{className:"jp-my-plan-banner"},c().createElement("div",{className:"jp-my-plan-banner__card dops-card",style:{backgroundImage:`url(${n.hp}jetpack-banner-gradient.png)`}},c().createElement(l.Z,{productSlug:a,action:c().cloneElement(i,{onClick:u}),title:r,tagLine:p})))};p.propTypes={action:r().element.isRequired,productSlug:r().string.isRequired,trackingId:r().string.isRequired,additionalEventProperties:r().object,tagLine:r().oneOfType([r().string,r().node,r().element]),title:r().oneOfType([r().string,r().node,r().element])};const d=p},49308:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var n=a(80800),s=a(6895),i=a(55609),r=a(65736),o=a(97506),c=a(7679),l=a(84069),p=a(59584),d=a(92819),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h),k=a(59309),v=a(69508),f=a(50416),E=a(91952),_=a(11834),b=a(33002),y=a(61372);const __=r.__;class w extends g().Component{static propTypes={plan:m().string};static defaultProps={plan:""};trackPlansClick=e=>{l.Z.tracks.recordJetpackClick({page:"my-plan",target:e,plan:this.props.plan})};handleButtonClickForTracking=e=>()=>this.trackPlansClick(e);activateAds=()=>{this.props.activateModule("wordads"),this.trackPlansClick("activate_wordads")};activatePublicize=()=>{this.props.activateModule("publicize"),this.trackPlansClick("activate_publicize")};activateVideoPress=()=>{this.props.activateFeature("videopress"),this.trackPlansClick("activate_videopress")};activateGoogleAnalytics=()=>{this.props.activateModule("google-analytics"),this.trackPlansClick("activate_ga")};render(){let e="";const t="offline"!==this.props.plan?(0,p.scx)(this.props.plan):"offline",a=(0,d.includes)(["is-premium-plan","is-business-plan","is-security-t1-plan","is-security-t2-plan","is-complete-plan","is-daily-security-plan","is-realtime-security-plan"],t),r="active"===(0,d.get)(this.props.rewindStatus,["state"],!1),l=!this.props.showBackups||!r&&"unavailable"!==(0,d.get)(this.props.rewindStatus,["state"],!1),u=e=>{const{title:t,description:a}=e;return g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:__("A Jetpack Site securely backed up with Jetpack Backup","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},t),g().createElement("p",null,a),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_backup_dash"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-activity-log",{site:this.props.blogID??this.props.siteRawUrl})},__("View your backups","jetpack")))))},m=()=>{if(l)return;if(r)return g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site backups","jetpack")),g().createElement("p",null,__("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_security_dash_rewind"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-activity-log",{site:this.props.blogID??this.props.siteRawUrl})},__("View your security activity","jetpack")))));let e="";switch(t){case"is-personal-plan":e=__("Daily backup of all your site data with unlimited space and one-click restores","jetpack");break;case"is-premium-plan":e=__("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support","jetpack");break;case"is-business-plan":e=__("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support","jetpack");break;default:e=""}return g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-protect.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site security","jetpack")),g().createElement("p",null,e+__(" (powered by VaultPress).","jetpack")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_security_dash"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("vaultpress-dashboard")},__("View your security dashboard","jetpack"))):g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("configure_vault"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-plugins-setup",{site:this.props.blogID??this.props.siteRawUrl,query:"only=vaultpress"})},__("View settings","jetpack")))))};let h;"is-daily-backup-plan"===t&&(h=u({title:__("Automated Daily Backups","jetpack"),description:__("We back up your website every day, so you never have to worry about your data again.","jetpack")})),["is-backup-t1-plan","is-backup-t2-plan","is-jetpack-starter-plan","is-realtime-backup-plan"].includes(t)&&(h=u({title:__("Automated real-time backups","jetpack"),description:__("We back up your website with every change you make, making it easy to fix your mistakes.","jetpack")}));const k=()=>g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-search.svg",className:"jp-landing__plan-features-icon",alt:__("A Jetpack Site with the power of Jetpack Search","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Instant search and filtering","jetpack")),g().createElement("p",null,__("Relevant search results and filtering tightly integrated with your theme.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_search_customizer"),href:this.props.siteAdminUrl+"admin.php?page=jetpack-search-configure",compact:!0,rna:!0},__("Customize Search","jetpack"))));switch(t){case"is-personal-plan":case"is-premium-plan":case"is-jetpack-starter-plan":case"is-security-t1-plan":case"is-security-t2-plan":case"is-business-plan":case"is-complete-plan":case"is-daily-security-plan":case"is-realtime-security-plan":e=g().createElement("div",{className:"jp-landing__plan-features"},"is-personal-plan"===t&&m(),"is-premium-plan"===t&&m(),"is-business-plan"===t&&m(),this.props.hasInstantSearch&&k(),"is-jetpack-starter-plan"===t&&h,g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-boost.svg",className:"jp-landing__plan-features-icon",alt:__("A fast and performant website","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Optimized performance","jetpack")),g().createElement("p",null,__("Load pages faster by serving your images from our global network of servers.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("paid_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance",compact:!0,rna:!0},__("Make your site faster","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-anti-spam.svg",className:"jp-landing__plan-features-icon",alt:__("A folder holding real comments","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Anti-spam","jetpack")),g().createElement("p",null,__("Spam is automatically blocked from your comments.","jetpack")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:`${this.props.siteAdminUrl}admin.php?page=akismet-key-config&view=stats`,compact:!0,rna:!0},__("View your spam stats","jetpack")):g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("configure_akismet"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-plugins-setup",{site:this.props.blogID??this.props.siteRawUrl,query:"only=akismet"})},__("View settings","jetpack"))))),a&&"inactive"!==this.props.getModuleOverride("videopress")&&g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-videopress.svg",className:"jp-landing__plan-features-icon",alt:__("A cloud with multiple types of content floating around it","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("VideoPress","jetpack")),g().createElement("p",null,__("High-speed, high-definition video hosting with no third-party ads.","jetpack")),this.props.getFeatureState("videopress")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php",compact:!0,rna:!0},__("Upload videos","jetpack")):g().createElement(o.Z,{onClick:this.activateVideoPress,disabled:this.props.isActivatingFeature("videopress"),compact:!0,rna:!0},__("Activate VideoPress","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Interface showing a chronological list of changes and updates in a site","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site activity","jetpack")),g().createElement("p",null,__("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_site_activity"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-activity-log",{site:this.props.blogID??this.props.siteRawUrl})},__("View your site activity","jetpack"))))),a&&"inactive"!==this.props.getModuleOverride("wordads")&&g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("A chart showing an healthy increase in earnings","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Monetize your site with ads","jetpack")),g().createElement("p",null,__("WordAds lets you earn money by displaying promotional content. Start earning today.","jetpack")),this.props.isModuleActivated("wordads")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_earnings"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("wpcom-ads-earnings",{site:this.props.blogID??this.props.siteRawUrl})},__("View your earnings","jetpack"))):g().createElement(o.Z,{onClick:this.activateAds,disabled:this.props.isActivatingModule("wordads"),compact:!0,rna:!0},__("Start earning","jetpack")))),a&&"inactive"!==this.props.getModuleOverride("google-analytics")&&g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Charts depicting an evolution in traffic and engagement","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Google Analytics","jetpack")),g().createElement("p",null,__("Complement WordPress.com’s stats with Google’s in-depth look at your visitors and traffic patterns.","jetpack")),this.props.isModuleActivated("google-analytics")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("configure_ga"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-marketing-traffic",{site:this.props.blogID??this.props.siteRawUrl})},__("Configure Google Analytics","jetpack"))):g().createElement(o.Z,{onClick:this.activateGoogleAnalytics,disabled:this.props.isActivatingModule("google-analytics"),compact:!0,rna:!0},__("Activate Google Analytics","jetpack")))),a&&"inactive"!==this.props.getModuleOverride("publicize")&&g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-social.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Marketing automation","jetpack")),g().createElement("p",null,__("Schedule unlimited tweets, Facebook posts, and other social posts in advance.","jetpack")),this.props.isModuleActivated("publicize")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("schedule_posts"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-edit-posts",{site:this.props.blogID??this.props.siteRawUrl})},__("Schedule posts","jetpack"))):g().createElement(o.Z,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize"),compact:!0,rna:!0},__("Activate Jetpack Social","jetpack")))));break;case"is-free-plan":case"is-backup-t0-plan":case"is-backup-t1-plan":case"is-backup-t2-plan":case"is-search-plan":case"is-jetpack-golden-token-plan":case"is-free-search-plan":case"is-jetpack-creator-plan":case"offline":case"is-daily-backup-plan":case"is-realtime-backup-plan":e=g().createElement("div",{className:"jp-landing__plan-features"},h,this.props.hasInstantSearch&&k(),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-protect.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Always-on security","jetpack")),g().createElement("p",null,__("Prevent login attacks, and get instant notifications when there’s an issue with your site.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_security"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-settings-security",{site:this.props.blogID??this.props.siteRawUrl})},__("Set up your site security","jetpack"))))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-boost.svg",className:"jp-landing__plan-features-icon",alt:__("A fast and performant website","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Optimized performance","jetpack")),g().createElement("p",null,__("Load pages faster by serving your images from our global network of servers.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance",compact:!0,rna:!0},__("Make your site faster","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("A wide variety of themes and tools to customize a site","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Design the perfect website","jetpack")),g().createElement("p",null,__("Get access to professionally crafted themes offered on WordPress.com, & customize your site exactly how you like it.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_themes"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-themes",{site:this.props.blogID??this.props.siteRawUrl})},__("Explore themes","jetpack"))))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"products/product-jetpack-social.svg",className:"jp-landing__plan-features-icon",alt:__("Jetpack Stats showing an evolution in traffic and engagement","jetpack")})),"inactive"!==this.props.getModuleOverride("publicize")&&g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Increase traffic to your site","jetpack")),g().createElement("p",null,__("Reach a wider audience by automatically sharing your posts on social media.","jetpack")),this.props.isModuleActivated("publicize")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_sharing"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-marketing-connections",{site:this.props.blogID??this.props.siteRawUrl})},__("Start sharing","jetpack"))):g().createElement(o.Z,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize"),compact:!0,rna:!0},__("Activate Jetpack Social","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Interface showing a chronological list of changes and updates in a site","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site activity","jetpack")),g().createElement("p",null,__("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_site_activity"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("calypso-activity-log",{site:this.props.blogID??this.props.siteRawUrl})},__("View your site activity","jetpack"))))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:n.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Chat bubbles representing getting in touch with support","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Support documentation","jetpack")),g().createElement("p",null,__("Need help? Learn about getting started, customizing your site, using advanced code snippets, and more.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_support_documentation"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,s.Z)("jetpack-support")},__("Search support docs","jetpack"))))));break;default:e=g().createElement("div",{className:"jp-landing__plan-features is-loading"},g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),g().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),g().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),g().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return g().createElement("div",null,g().createElement(c.Z,null),e)}}const C=(0,k.$j)((e=>({hasInstantSearch:(0,b.CV)(e,"instant-search"),isFetchingPluginsData:(0,y.vz)(e),isPluginActive:t=>(0,y.TB)(e,t),isPluginInstalled:t=>(0,y.P8)(e,t),isModuleActivated:t=>(0,f.mp)(e,t),isActivatingModule:t=>(0,f.ZY)(e,t),getModuleOverride:t=>(0,f.Qy)(e,t),showBackups:(0,v.xR)(e),getFeatureState:t=>(0,_.$8)(e,t),isActivatingFeature:t=>(0,_.Cu)(e,t)})),(e=>({fetchPluginsData:()=>e((0,y.s4)()),activateModule:t=>e((0,f.d)(t)),activateFeature:t=>e((0,E.VP)({[t]:!0}))})))(w)},71459:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(3228),s=a(53234),i=a(25162),r=a.n(i),o=a(99196),c=a.n(o);const l=({productSlug:e,action:t,isError:a,isPlaceholder:i,details:r,tagLine:o,title:l,isPlan:p,cardClassNames:d=[]})=>{d=(0,n.Z)("my-plan-card",...d,{"is-placeholder":i,"is-plan":p,"has-action-only":t&&!r&&!i});const u=(0,n.Z)("my-plan-card__details",{"is-error":a});return c().createElement("div",{className:d},c().createElement("div",{className:"my-plan-card__primary"},c().createElement("div",{className:"my-plan-card__icon"},e&&c().createElement(s.Z,{plan:e,alt:""})),c().createElement("div",{className:"my-plan-card__header"},l&&c().createElement("h2",{className:"my-plan-card__title"},l),o&&c().createElement("p",{className:"my-plan-card__tag-line"},o))),(r||t||i)&&c().createElement("div",{className:"my-plan-card__secondary"},c().createElement("div",{className:u},i?null:r),c().createElement("div",{className:"my-plan-card__action"},i?null:t)))};l.propTypes={productSlug:r().string.isRequired,action:r().oneOfType([r().node,r().element]),isError:r().bool,isPlaceholder:r().bool,details:r().oneOfType([r().string,r().node,r().element]),tagLine:r().oneOfType([r().string,r().node,r().element]),title:r().oneOfType([r().string,r().node,r().element]),classNames:r().array};const p=l},92709:(e,t,a)=>{"use strict";a.d(t,{Z:()=>R});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69771),c=a(69307),l=a(65736),p=a(3228),d=a(97506),u=a(85799),m=a(30420),h=a(38833),g=a(37834),k=a(84069),v=a(59584),f=a(92819),E=a(25162),_=a.n(E),b=a(99196),y=a.n(b),w=a(59309),C=a(69508),j=a(59963),S=a(71459),N=a(47487);const __=l.__,_n=l._n,_x=l._x;class x extends y().Component{getProductProps(e,t=[]){const{displayBackups:a,dateFormat:n,purchases:s}=this.props,i={productSlug:e};if(!e)return{...i,isPlaceholder:!0};const r=(0,f.find)(s,(t=>t.product_slug===e));let p,d;switch(r&&(p=y().createElement(h.Z,{key:"product-expiration",dateFormat:n,expiryDate:r.expiry_date,purchaseDate:r.subscribed_date,isRefundable:r.is_refundable,isGift:(0,v.oay)(r.product_slug),purchaseID:r.ID}),d="1"===r.active?(0,o.isInTheFuture)(r.expiry_date)||null===r.expiry_date?y().createElement(m.w,{key:"product-activated",type:null===r.expiry_date?"never-expires":""}):y().createElement(m.w,{key:"product-expired",type:"product-expired"}):null),(0,v.scx)(e)){case"is-free-plan":{let e=__("Worried about security? Get backups, automated security fixes and more: <a>Upgrade now</a>","jetpack");if(t.length){const a=t.some((({product_slug:e})=>v.jTC.includes(e))),n=t.some((({product_slug:e})=>v.Cbu.includes(e)));a&&n?e=__("Upgrade your site to access additional features, including spam protection and priority support: <a>Upgrade now</a>","jetpack"):a?e=__("Upgrade your site to access additional features, including spam protection, security scanning, and priority support: <a>Upgrade now</a>","jetpack"):n&&(e=__("Upgrade your site to access additional features, including spam protection, backups, and priority support: <a>Upgrade now</a>","jetpack"))}return{...i,tagLine:(0,c.createInterpolateElement)(e,{a:y().createElement(g.Z,{source:"my-plan-header-free-plan-text-link",target:"upgrade-now",feature:"my-plan-header-free-upgrade"})}),title:__("Jetpack Free","jetpack")}}case"is-personal-plan":return{...i,details:p,tagLine:a?__("Daily backups, spam filtering, and priority support.","jetpack"):__("Spam filtering and priority support.","jetpack",0),title:__("Jetpack Personal","jetpack")};case"is-premium-plan":return{...i,details:[d,p],tagLine:__("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.","jetpack"),title:__("Jetpack Premium","jetpack")};case"is-business-plan":return{...i,details:[d,p],tagLine:__("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.","jetpack"),title:__("Jetpack Professional","jetpack")};case"is-security-t1-plan":return{...i,details:[d,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ _n("Enjoy the peace of mind of complete site protection. You have <strong>%1$dGB</strong> of storage space.","Enjoy the peace of mind of complete site protection. You have <strong>%1$dGB</strong> of storage space.",10,"jetpack"),10),{strong:y().createElement("strong",null)}),title:__("Jetpack Security","jetpack")};case"is-security-t2-plan":return{...i,details:[d,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ _n("Enjoy the peace of mind of complete site protection. You have <strong>%1$dTB</strong> of storage space.","Enjoy the peace of mind of complete site protection. You have <strong>%1$dTB</strong> of storage space.",1,"jetpack"),1),{strong:y().createElement("strong",null)}),title:__("Jetpack Security","jetpack")};case"is-complete-plan":return{...i,details:[d,p],tagLine:__("The ultimate toolkit for best-in-class websites: complete security, performance, and growth.","jetpack"),title:__("Jetpack Complete","jetpack")};case"is-backup-t0-plan":return{...i,details:[d,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ _n("Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.",1,"jetpack"),1),{strong:y().createElement("strong",null)}),title:__("VaultPress Backup","jetpack")};case"is-backup-t1-plan":return{...i,details:[d,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ _n("Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.",10,"jetpack"),10),{strong:y().createElement("strong",null)}),title:__("VaultPress Backup","jetpack")};case"is-backup-t2-plan":return{...i,details:[d,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of terabytes of storage space the site has. */ _n("Your data is being securely backed up as you edit. You have <strong>%1$dTB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dTB</strong> of storage space.",1,"jetpack"),1),{strong:y().createElement("strong",null)}),title:__("VaultPress Backup","jetpack")};case"is-search-plan":return{...i,details:[d,p],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search","jetpack")};case"is-free-search-plan":return{...i,details:[d,p],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search Free","jetpack")};case"is-scan-plan":return{...i,details:[d,p],tagLine:__("Automatic scanning and one-click fixes keep your site one step ahead of security threats.","jetpack"),title:(0,c.createInterpolateElement)(__("Jetpack Scan","jetpack"),{em:y().createElement("em",null)})};case"is-anti-spam-plan":return{...i,details:[d,p],tagLine:__("Automatically clear spam from comments and forms. Save time, get more responses, give your visitors a better experience – all without lifting a finger.","jetpack"),title:__("Akismet Anti-spam","jetpack")};case"is-daily-security-plan":return{...i,details:p,tagLine:__("Enjoy the peace of mind of complete site protection. Great for brochure sites, restaurants, blogs, and resume sites.","jetpack"),title:__("Jetpack Security Daily","jetpack")};case"is-realtime-security-plan":return{...i,details:p,tagLine:__("Additional security for sites with 24/7 activity. Recommended for eCommerce stores, news organizations, and online forums.","jetpack"),title:__("Jetpack Security Real-Time","jetpack")};case"is-daily-backup-plan":return{...i,details:p,tagLine:__("Your data is being securely backed up every day with a 30-day archive.","jetpack"),title:(0,c.createInterpolateElement)(__("Jetpack Backup <em>Daily</em>","jetpack"),{em:y().createElement("em",null)})};case"is-realtime-backup-plan":return{...i,details:p,tagLine:__("Your data is being securely backed up as you edit.","jetpack"),title:(0,c.createInterpolateElement)(__("Jetpack Backup <em>Real-Time</em>","jetpack"),{em:y().createElement("em",null)})};case"is-videopress-plan":return{...i,details:[d,p],tagLine:__("High-quality, ad-free video built specifically for WordPress.","jetpack"),title:__("Jetpack VideoPress","jetpack")};case"is-jetpack-social-basic-plan":return{...i,details:[d,p],tagLine:__("You can automatically share your content to social media sites.","jetpack"),title:(0,c.createInterpolateElement)(__("Jetpack Social Basic","jetpack"),{em:y().createElement("em",null)})};case"is-jetpack-social-v1-plan":return{...i,details:[d,p],tagLine:__("You can automatically share your content to social media sites.","jetpack"),title:(0,c.createInterpolateElement)(__("Jetpack Social","jetpack"),{em:y().createElement("em",null)})};case"is-jetpack-social-advanced-plan":return{...i,details:[d,p],tagLine:__("You can automatically share your content to social media sites and get access to advanced posting options.","jetpack"),title:(0,c.createInterpolateElement)(__("Jetpack Social Advanced","jetpack"),{em:y().createElement("em",null)})};case"is-jetpack-boost-plan":return{...i,details:[d,p],tagLine:__("Jetpack Boost gives your site the same performance advantages as the world’s leading websites, no developer required.","jetpack"),title:__("Jetpack Boost","jetpack")};case"is-jetpack-ai-plan":return{...i,details:[d,p],tagLine:__("Experience the ease of crafting content with intuitive and powerful AI.","jetpack"),title:__("Jetpack AI","jetpack")};case"is-jetpack-golden-token-plan":return{...i,details:[d,p],tagLine:__("You have been gifted a Jetpack Golden Token. This unlocks a lifetime of Jetpack VaultPress Backup and Jetpack Scan for your website.","jetpack"),title:__("Jetpack Golden Token","jetpack"),cardClassNames:["plan-golden-token"]};case"is-jetpack-starter-plan":return{...i,details:[d,p],tagLine:__("Essential security tools: real-time backups and comment spam protection.","jetpack"),title:__("Jetpack Starter","jetpack")};case"is-jetpack-stats-plan":return{...i,details:[d,p],tagLine:__("Simple, yet powerful analytics with priority support.","jetpack"),title:__("Jetpack Stats","jetpack")};case"is-free-jetpack-stats-plan":return{...i,details:[d,p],tagLine:__("Simple, yet powerful analytics.","jetpack"),title:__("Jetpack Stats Free","jetpack")};case"is-jetpack-creator-plan":return{...i,details:[d,p],tagLine:__("Craft stunning content, boost your subscriber base, and monetize your online presence.","jetpack"),title:__("Jetpack Creator","jetpack")};default:return{...i,isPlaceholder:!0}}}renderPlan(){return(0,f.isEmpty)(this.props.activeProducts)||this.props.plan!==v.ljz?y().createElement(u.Z,{compact:!0},this.renderHeader(__("My Plan","jetpack")),y().createElement(S.Z,s()({},this.getProductProps(this.props.plan,this.props.activeProducts),{isPlan:!0}))):null}renderProducts(){return(0,f.isEmpty)(this.props.activeProducts)?null:y().createElement(u.Z,{compact:!0},this.renderHeader(__("My Products","jetpack")),this.props.activeProducts.map((({ID:e,product_slug:t})=>y().createElement(S.Z,s()({key:"product-card-"+e},this.getProductProps(t))))))}renderHeader(e){return y().createElement("h3",{className:"jp-landing__card-header"},e)}renderLicensingActions=(e="header")=>{const{hasDetachedUserLicenses:t,showRecommendations:a,siteAdminUrl:n,purchases:s}=this.props;if(!a)return null;const o=!!s?.length&&"header"===e;return y().createElement(u.Z,{compact:!0},y().createElement("div",{className:"jp-landing__licensing-actions"},"header"===e&&y().createElement("span",null,(0,c.createInterpolateElement)(/* translators: %s is the link to the License management page. */ __("Got a license key? <a>Activate it here.</a>","jetpack"),{a:y().createElement("a",{href:window.Initial_State?.useMyJetpackLicensingUI?n+"admin.php?page=my-jetpack#/add-license":n+"admin.php?page=jetpack#/license/activation",onClick:this.trackLicenseActivationClick,className:"jp-landing__licensing-actions-link"})})),y().createElement("div",{className:(0,p.Z)("jp-landing__licensing-actions-item",{"no-licenses":!t,"no-purchases":!o})},o&&y().createElement(d.Z,{onClick:this.trackAllPurchasesClick,compact:!0,rna:!0},y().createElement(r.ExternalLink,{href:(0,i.Z)("calypso-purchases")},__("View all purchases","jetpack"))),"footer"===e&&y().createElement(d.Z,{href:n+"admin.php?page=jetpack#/recommendations",onClick:this.trackRecommendationsClick,primary:!0,rna:!0},_x("Recommendations","Navigation item.","jetpack")))))};trackAllPurchasesClick=()=>{k.Z.tracks.recordJetpackClick({target:"calypso_purchases_link",page:"my-plan"})};trackLicenseActivationClick=()=>{k.Z.tracks.recordJetpackClick({target:"licensing_activation_button",path:"licensing/activation",page:"my-plan"})};trackRecommendationsClick=()=>{k.Z.tracks.recordJetpackClick({target:"recommendations-button",page:"my-plan"})};renderFooter(){return!this.props.hasDetachedUserLicenses&&this.renderLicensingActions("footer")}render(){return y().createElement("div",{className:"jp-landing__plans"},this.renderLicensingActions(),this.renderPlan(),this.renderProducts(),this.renderFooter(),this.props.showLicensingUi&&y().createElement(u.Z,{compact:!0},y().createElement(N.Z,null)))}}x.propTypes={activeProducts:_().array,plan:_().string,purchases:_().array,siteAdminUrl:_().string,dateFormat:_().string,displayBackups:_().bool,plansMainTopUpgradeUrl:_().string,showRecommendations:_().bool};const R=(0,w.$j)((e=>({dateFormat:(0,C.mh)(e),displayBackups:(0,C.xR)(e),plansMainTopUpgradeUrl:(0,C.Qq)(e,"plans-main-top"),showRecommendations:(0,C.mb)(e),showLicensingUi:(0,C.Yg)(e),hasDetachedUserLicenses:!!(0,j.O4)(e)})))(x)},47487:(e,t,a)=>{"use strict";a.d(t,{Z:()=>u});var n=a(64743),s=a(65736),i=a(97506),r=a(41549),o=a(9494),c=a(99196),l=a.n(c),p=a(59309),d=a(59963);const __=s.__,_x=s._x,u=(0,p.$j)(null,{errorNotice:r.tF,successNotice:r.RT,updateUserLicensesCounts:d.Ng})((({errorNotice:e,successNotice:t,updateUserLicensesCounts:a})=>{const[s,r]=(0,c.useState)(!1),[p,d]=(0,c.useState)(""),u=(0,c.useCallback)((e=>{d(e.target.value)}),[]),m=(0,c.useCallback)((()=>{p&&!s&&(r(!0),n.ZP.updateLicenseKey(p).then((()=>{a(),t(__("Jetpack license key added. It may take a minute for the license to be processed.","jetpack")),r(!1),d("")})).catch((()=>{e(__("Error adding Jetpack license key.","jetpack")),r(!1)})))}),[e,t,s,p,a]);return l().createElement("div",{className:"jp-landing__plan-features-header-jetpack-license"},l().createElement("h3",null,__("Jetpack License","jetpack")),l().createElement("p",null,__('If you have a Jetpack license key paste it here to queue it for activation. Once your license is processed your product will appear under "My Plan".',"jetpack")),l().createElement(o.Z,{name:"jetpack_license_key",className:"code",value:p,placeholder:__("Jetpack licence key","jetpack"),disabled:s,onChange:u}),l().createElement(i.Z,{primary:!0,compact:!0,onClick:m},s?_x("Applying…","Button caption","jetpack"):_x("Apply license","Button caption","jetpack",0)))}))},41863:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var n=a(6895),s=a(65736),i=a(97506),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(59309),d=a(69508),u=a(18669);const __=s.__,m=({partnerCoupon:e,siteRawUrl:t})=>{if("object"!=typeof e)return null;const a=l().createElement(i.Z,{primary:!0,href:(0,n.Z)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:t,query:`coupon=${e.coupon_code}`})},__("Redeem","jetpack"));return l().createElement(u.Z,{productSlug:e.product.slug,action:a,title:(0,s.sprintf)(/* translators: %s: Jetpack product or plan name. */ __("Get %s free for one year!","jetpack"),e.product.title),tagLine:(0,s.sprintf)(/* translators: %1$s: the name of a Jetpack partner, %2$s: the name of a Jetpack product or plan. */ __("Redeem your %1$s coupon to get started with %2$s for free the first year!","jetpack"),e.partner.name,e.product.title),trackingId:"jetpack-partner-coupon",additionalEventProperties:{coupon:e.coupon_code}})};m.propTypes={partnerCoupon:o().oneOfType([o().object,o().bool]).isRequired,siteRawUrl:o().string.isRequired};const h=(0,p.$j)((e=>({partnerCoupon:(0,d.DV)(e)})))(m)},3869:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(69307),s=a(65736);const __=s.__,i=e=>{const{isGravatarEnabled:t,isAuthorEnabled:a,isPostDateEnabled:i,gravatar:r,displayName:o,dateExample:c}=e;if(!t&&!a&&!i)return React.createElement("div",{className:"byline-preview"},React.createElement("span",null,(0,n.createInterpolateElement)(/* translators: <Empty /> placeholder is set to "Byline will be empty" */ __("<Preview>Preview:</Preview> <Empty>Byline will be empty</Empty>","jetpack"),{Preview:React.createElement("span",{className:"byline-preview__label"}),Empty:React.createElement("em",null)})));let l="";return a&&i?l=(0,n.createInterpolateElement)((0,s.sprintf)(/* translators: %1$s placeholder is the user display name, %2$s is example date */ __("By <Author>%1$s</Author> on <Date>%2$s</Date>","jetpack"),o,c),{Author:React.createElement("strong",{className:"byline-preview__author"},o),Date:React.createElement("time",{className:"byline-preview__date"},c)}):a&&!i?l=(0,n.createInterpolateElement)(/* translators: %1$s placeholder is the user display name */ /* translators: %1$s placeholder is the user display name */ (0,s.sprintf)(__("By <Author>%1$s</Author>","jetpack"),o),{Author:React.createElement("strong",{className:"byline-preview__author"})}):!a&&i&&(l=React.createElement("time",{className:"byline-preview__date"},c)),React.createElement(React.Fragment,null,React.createElement("div",{className:"byline-preview"},React.createElement("span",{className:"byline-preview__label"},__("Preview:","jetpack")),t&&React.createElement("img",{className:"byline-preview__gravatar",src:r,alt:__("User's Avatar","jetpack")}),React.createElement("span",null,l)))}},68926:(e,t,a)=>{"use strict";a.d(t,{y:()=>n});const n="subscriptions"},26202:(e,t,a)=>{"use strict";a.d(t,{Z:()=>L});var n=a(82674),s=a.n(n),i=a(48229),r=a(76144),o=a(90526),c=a(94918),l=a(13363),p=a(73846),d=a(6895),u=a(69307),m=a(65736),h=a(97506),g=a(61775),k=a(2353),v=a(93806),f=a(28178),E=a(79032),_=a(9494),b=a(84069),y=a(99196),w=a(59309),C=a(96300),j=a(69508),S=a(50416),N=a(3869),x=a(68926);const __=m.__,R="wpcom_featured_image_in_email",Z="wpcom_subscription_emails_use_excerpt",T="jetpack_gravatar_in_email",A="jetpack_author_in_email",M="jetpack_post_date_in_email",P="jetpack_subscriptions_reply_to",O="jetpack_subscriptions_from_name",L=(0,k.u)((0,w.$j)(((e,t)=>({moduleName:t.moduleName,subscriptionsModule:(0,S.rT)(e,x.y),isSavingAnyOption:t.isSavingAnyOption,isFeaturedImageInEmailEnabled:t.getOptionValue(R),isGravatarEnabled:t.getOptionValue(T),isPostDateEnabled:t.getOptionValue(M),isAuthorEnabled:t.getOptionValue(A),subscriptionEmailsUseExcerpt:t.getOptionValue(Z),email:(0,j.xT)(e),siteName:(0,j.aW)(e),gravatar:(0,j.KF)(e),displayName:(0,j.Gf)(e),adminUrl:(0,j.wW)(e),subscriptionReplyTo:t.getOptionValue(P),subscriptionFromName:t.getOptionValue(O),dateExample:(0,j.RZ)(e),unavailableInOfflineMode:(0,C.t_)(e,x.y),unavailableInSiteConnectionMode:(0,C.IK)(e,x.y)})))((e=>{const{isSavingAnyOption:t,subscriptionsModule:a,unavailableInOfflineMode:n,isFeaturedImageInEmailEnabled:k,isGravatarEnabled:w,isAuthorEnabled:C,isPostDateEnabled:j,subscriptionEmailsUseExcerpt:S,subscriptionReplyTo:L,subscriptionFromName:I,updateFormStateAndSaveOptionValue:D,unavailableInSiteConnectionMode:U,gravatar:z,email:V,adminUrl:F,displayName:B,dateExample:H,siteName:q}=e,J=n||U,W=J||t([T]),G=J||t([A]),$=J||t([M]),[K,Y]=(0,y.useState)({isGravatarEnabled:w,isAuthorEnabled:C,isPostDateEnabled:j}),X=(0,y.useCallback)((()=>{const e=!k;D(R,e),b.Z.tracks.recordEvent("jetpack_newsletter_set_toggle_featured_image_in_email",{value:e})}),[k,D]),Q=(0,y.useCallback)((()=>{const e=!w;D(T,e),b.Z.tracks.recordEvent("jetpack_newsletter_set_toggle_gravatar_in_email",{value:e}),Y({...K,isGravatarEnabled:e})}),[w,D,Y,K]),ee=(0,y.useCallback)((()=>{const e=!C;D(A,e),b.Z.tracks.recordEvent("jetpack_newsletter_set_toggle_author_in_email",{value:e}),Y({...K,isAuthorEnabled:e})}),[C,D,Y,K]),te=(0,y.useCallback)((()=>{const e=!j;D(M,e),b.Z.tracks.recordEvent("jetpack_newsletter_set_toggle_post_data_in_email",{value:e}),Y({...K,isPostDateEnabled:e})}),[j,D,Y,K]),ae=(0,y.useCallback)((e=>{D(Z,"excerpt"===e),b.Z.tracks.recordEvent("jetpack_newsletter_set_emails_use_excerpt",{value:e})}),[D]),ne=(0,y.useCallback)((e=>{D(P,e),b.Z.tracks.recordEvent("jetpack_newsletter_set_reply_to",{value:e})}),[D]),se=J||t([R]),ie=J||t([Z]),re=J||t([P]),oe=J||t([O]),[ce,le]=(0,y.useState)({value:I,hasChanged:!1}),pe=(0,y.useCallback)((e=>{le({value:e.target.value,hasChanged:I!==e.target.value})}),[le,I]),de=(0,y.useCallback)((()=>{D(O,ce.value),b.Z.tracks.recordEvent("jetpack_newsletter_set_from_name_click",{value:ce.value}),le({value:ce.value,hasChanged:!1})}),[ce,D]),ue="author"!==L?"donotreply@wordpress.com":"author-name@example.com";return React.createElement(v.Z,s()({},e,{header:__("Email configuration","jetpack"),hideButton:!0,module:x.y,saveDisabled:J}),React.createElement(f.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:a,support:{link:"https://wordpress.com/support/featured-images/",text:__("Includes your post's featured image in the email sent out to your readers.","jetpack")}},React.createElement(i.Z,{disabled:se,checked:k,toogling:t([R]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Enable featured image on your new post emails","jetpack")),onChange:X})),React.createElement(f.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:a,className:"newsletter-group"},React.createElement(g.Gj,{className:"jp-form-label-wide"},__("Email byline","jetpack"),React.createElement(r.Z,{type:"new",text:__("New","jetpack")})),React.createElement("p",null,__("Customize the information you want to display below your post title in emails.","jetpack")),React.createElement(N.Z,{isGravatarEnabled:K.isGravatarEnabled,isAuthorEnabled:K.isAuthorEnabled,isPostDateEnabled:K.isPostDateEnabled,gravatar:z,displayName:B,dateExample:H}),React.createElement("div",{className:"email-settings__gravatar"},React.createElement(i.Z,{disabled:W,checked:w,toogling:t([T]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Show author avatar on your emails","jetpack")),onChange:Q}),K.isGravatarEnabled&&React.createElement("div",{className:"email-settings__help-info"},React.createElement("div",{className:"email-settings__gravatar-help-info"},React.createElement("img",{src:z,className:"email-settings__gravatar-image",alt:""}),React.createElement("div",null,React.createElement("div",{className:"email-settings__gravatar-help-text"},__("We use Gravatar, a service that associates an avatar image with your primary email address.","jetpack")),React.createElement(o.Z,{isExternalLink:!0,href:"https://gravatar.com/profile/avatars",variant:"secondary",size:"small"},__("Update your Gravatar","jetpack"))))),React.createElement(E.Z,{text:(0,m.sprintf)( // translators: %s is the user's email address __("The avatar comes from Gravatar, a universal avatar service. Your image may also appear on other sites using Gravatar when you're logged in with %s.","jetpack"),V),privacyLink:"https://support.gravatar.com/account/data-privacy/"})),React.createElement(i.Z,{disabled:G,checked:C,toogling:t([A]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Show author display name","jetpack")),onChange:ee}),React.createElement(i.Z,{disabled:$,checked:j,toogling:t([M]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Add the post date","jetpack")),onChange:te}),K.isPostDateEnabled&&React.createElement("div",{className:"email-settings__help-info"},(0,u.createInterpolateElement)(__("You can customize the date format in your site’s <settingsLink>general settings</settingsLink>","jetpack"),{settingsLink:React.createElement(o.Z,{variant:"link",isExternalLink:!0,href:F+"options-general.php"})}))),React.createElement(f.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:a,support:{link:"https://wordpress.com/support/subscriptions-and-newsletters/",text:__("Sets whether email subscribers can read full posts in emails or just an excerpt and link to the full version of the post.","jetpack")}},React.createElement(g.Gj,{className:"jp-form-label-wide"},__("For each new post email, include","jetpack")),React.createElement(c.Z,{className:"jp-form-radio-gap",selected:S?"excerpt":"full",disabled:ie,options:[{label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Full text","jetpack")),value:"full"},{label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Excerpt","jetpack")),value:"excerpt"}],onChange:ae})),React.createElement(f.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:a,className:"newsletter-group"},React.createElement(g.Gj,{className:"jp-form-label-wide"},__("Sender name","jetpack")),React.createElement("p",null,__("This is the name that appears in subscribers' inboxes. It's usually the name of your newsletter or the author.","jetpack")),React.createElement(l.Z,{horizontalGap:0,fluid:!0,className:"sender-name"},React.createElement(p.Z,{sm:3,md:4,lg:4},React.createElement(_.Z,{value:ce.value,disabled:oe,onChange:pe,placeholder:q||__("Enter sender name","jetpack")})),React.createElement(p.Z,{sm:1,md:1,lg:1},React.createElement(h.Z,{primary:!0,rna:!0,onClick:de,disabled:oe||!ce.hasChanged},__("Save","jetpack"))),React.createElement(p.Z,{className:"sender-name-example"},(0,m.sprintf)(/* translators: 1. placeholder is the user entered value for From Name, 2. is the example email */ __("Example: %1$s <%2$s>","jetpack"),ce.value||q,ue)))),React.createElement(f.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:a,support:{link:(0,d.Z)("jetpack-support-subscriptions",{anchor:"reply-to-email-address"}),text:__("Sets the reply to email address for your newsletter emails. It's the email where subscribers send their replies.","jetpack")}},React.createElement(g.Gj,{className:"jp-form-label-wide"},__("Reply-to email","jetpack")),React.createElement("p",null,__("Choose who receives emails when subscribers reply to your newsletter.","jetpack")),React.createElement(c.Z,{className:"jp-form-radio-gap",selected:L||"no-reply",disabled:re,options:[{label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Replies are not allowed","jetpack")),value:"no-reply"},{label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Replies will be a public comment on the post","jetpack")),value:"comment"},{label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Replies will be sent to the post author's email","jetpack")),value:"author"}],onChange:ne})))})))},32466:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(65736),s=a(69270),i=a(99196),r=a.n(i),o=a(59309),c=a(50416),l=a(89292),p=a(68926),d=a(26202),u=a(52210),m=a(72555),h=a(72929),g=a(72108),k=a(19366);const __=n.__;const v=(0,o.$j)((e=>({module:t=>(0,c.rT)(e,t),isModuleFound:t=>(0,l.CX)(e,t)})))((function(e){const{active:t,isModuleFound:a,searchTerm:n,siteRawUrl:i,blogID:o}=e,c=a(p.y);return(n||t)&&c?r().createElement("div",null,r().createElement(s.Z,null),r().createElement("h1",{className:"screen-reader-text"},__("Jetpack Newsletter Settings","jetpack")),r().createElement("h2",{className:"jp-settings__section-title"},n?__("Newsletter","jetpack"):__("Transform your blog posts into newsletters to easily reach your subscribers.","jetpack",0)),c&&r().createElement(r().Fragment,null,r().createElement(m.Z,{siteRawUrl:i,blogID:o}),r().createElement(k.Z,null),r().createElement(g.Z,null),r().createElement(h.Z,null),r().createElement(d.Z,null),r().createElement(u.Z,e))):null}))},52210:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(82674),s=a.n(n),i=a(65736),r=a(61775),o=a(2353),c=a(93806),l=a(28178),p=a(99196),d=a.n(p),u=a(59309),m=a(96300),h=a(50416),g=a(65936),k=a(68926);const __=i.__,v="subscription_options",f=(0,o.u)((0,u.$j)(((e,t)=>({subscriptionsModule:(0,h.rT)(e,k.y),isSavingAnyOption:t.isSavingAnyOption,moduleName:t.moduleName,onOptionChange:t.onOptionChange,welcomeMessage:t.getOptionValue(v)?.welcome||"",unavailableInOfflineMode:(0,m.t_)(e,k.y),unavailableInSiteConnectionMode:(0,m.IK)(e,k.y)})))((e=>{const{isSavingAnyOption:t,subscriptionsModule:a,onOptionChange:n,welcomeMessage:i,unavailableInOfflineMode:o,unavailableInSiteConnectionMode:u}=e,m=(0,p.useCallback)((e=>{const t={target:{name:e.target.name,value:{welcome:e.target.value}}};n(t)}),[n]),h=o||u||t([v]);return d().createElement(c.Z,s()({},e,{header:__("Messages","jetpack"),module:k.y,saveDisabled:h}),d().createElement(l.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:a},d().createElement("p",{className:"jp-settings-card__email-settings"},__("These settings change the emails sent from your site to your readers.","jetpack")),d().createElement(r.lX,null,d().createElement("span",{className:"jp-form-label-wide email-settings__title"},__("Welcome email message","jetpack")),d().createElement(g.Z,{disabled:h,name:v,value:i,onChange:m})),d().createElement("p",{className:"jp-form-setting-explanation"},__("You can use plain text or HTML tags in this textarea for formatting.","jetpack"))))})))},72929:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(65736),c=a(3228),l=a(93806),p=a(28178),d=a(99196),u=a.n(d),m=a(59309),h=a(96300),g=a(50416),k=a(85799),v=a(2353),f=a(48191),E=a(68926);const __=o.__,_="wpcom_newsletter_categories_enabled",b="wpcom_newsletter_categories",y=e=>{switch(typeof e){case"number":return e;case"string":return parseInt(e);case"object":return e.term_id}};const w=(0,v.u)((0,m.$j)(((e,t)=>({subscriptionsModule:(0,g.rT)(e,E.y),isNewsletterCategoriesEnabled:t.getOptionValue(_),newsletterCategories:t.getOptionValue(b),categories:t.getOptionValue("categories"),requiresConnection:(0,h.tM)(e,E.y),unavailableInOfflineMode:(0,h.t_)(e,E.y),unavailableInSiteConnectionMode:(0,h.IK)(e,E.y)})))((function(e){const{updateFormStateModuleOption:t,isNewsletterCategoriesEnabled:a,newsletterCategories:n,categories:o,unavailableInOfflineMode:m,unavailableInSiteConnectionMode:h,subscriptionsModule:g,updateFormStateOptionValue:v,isSavingAnyOption:w}=e,C=(0,d.useCallback)((()=>{t(E.y,_)}),[t]),j=n.map(y),S=(0,d.useMemo)((()=>o.map((e=>({...e,name:e.cat_name,id:e.term_id})))),[o]),N=(0,d.useCallback)(((e,t)=>{let a;t?j.includes(e)||(a=[...j,e].sort(((e,t)=>e-t))):a=j.filter((t=>t!==e)),v(b,a)}),[j,v]),x=m||h||w([_,b]);return u().createElement(l.Z,s()({},e,{header:__("Newsletter categories","jetpack"),module:E.y,saveDisabled:x}),u().createElement(p.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:g,support:{text:__("When you add a new category, your existing subscribers will be automatically subscribed to it.","jetpack"),link:(0,i.Z)("jetpack-support-subscriptions")}},u().createElement("p",null,__("Newsletter categories allow visitors to subscribe only to specific topics. When enabled, only posts published under the categories selected below will be emailed to your subscribers.","jetpack")),u().createElement("div",{className:"newsletter-categories-toggle-wrapper"},u().createElement(r.Z,{disabled:x,checked:a,onChange:C,label:u().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable newsletter categories","jetpack"))})),u().createElement("div",{className:(0,c.Z)("newsletter-colapsable",{hide:!a})},u().createElement(f.Z,{items:S,selectedItems:j,onChange:N,disabled:x}))),u().createElement("div",{className:(0,c.Z)("newsletter-card-colapsable",{hide:!a})},u().createElement(k.Z,{compact:!0,className:"jp-settings-card__configure-link",href:"/wp-admin/edit-tags.php?taxonomy=category&referer=newsletter-categories",target:"_blank"},__("Add New Category","jetpack"))))})))},72555:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(85799),c=a(66164),l=a(2353),p=a(5004),d=a(93806),u=a(28178),m=a(84069),h=a(99196),g=a.n(h),k=a(59309),v=a(96300),f=a(50416),E=a(68926);const __=r.__,_=()=>{m.Z.tracks.recordJetpackClick("manage-subscribers")};const b=(0,l.u)((0,k.$j)(((e,t)=>({isLinked:(0,v.BU)(e),isOffline:(0,v.Ex)(e),isSubscriptionsActive:t.getOptionValue(E.y),unavailableInOfflineMode:(0,v.t_)(e,E.y),subscriptions:(0,f.rT)(e,E.y)})))((function(e){const{siteRawUrl:t,blogID:a,toggleModuleNow:n,isSavingAnyOption:r,isLinked:l,isOffline:m,isSubscriptionsActive:h,unavailableInOfflineMode:k,subscriptions:v}=e;return g().createElement(d.Z,s()({},e,{header:__("Newsletter","jetpack"),hideButton:!0,module:E.y}),g().createElement(u.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:v,support:{text:__("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.","jetpack"),link:(0,i.Z)("jetpack-support-subscriptions")}},g().createElement(p.T,{slug:"subscriptions",disabled:k,activated:h,toggling:r(E.y),toggleModule:n},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Let visitors subscribe to this site","jetpack")))),!k&&h&&l?g().createElement(o.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:_,href:(0,i.Z)("jetpack-settings-jetpack-manage-subscribers",{site:a??t}),target:"_blank",rel:"noopener noreferrer"},__("Manage all subscribers","jetpack")):"",!l&&!m&&g().createElement(c.Z,{feature:"subscriptions",featureLabel:__("Newsletter","jetpack"),text:__("Connect to manage your subscriptions settings.","jetpack")}))})))},72108:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(82674),s=a.n(n),i=a(65736),r=a(97506),o=a(2353),c=a(93806),l=a(28178),p=a(84069),d=a(99196),u=a.n(d),m=a(59309),h=a(96300),g=a(69508),k=a(50416),v=a(68926);const __=i.__;const f=(0,o.u)((0,m.$j)(((e,t)=>({isSubscriptionsActive:t.getOptionValue(v.y),setupPaymentPlansUrl:(0,g.jU)(e,"monetize/payments"),subscriptionsModule:(0,k.rT)(e,v.y),isOffline:(0,h.Ex)(e)})))((function(e){const{isSubscriptionsActive:t,setupPaymentPlansUrl:a,subscriptionsModule:n}=e,i=!t,o=(0,d.useCallback)((()=>{p.Z.tracks.recordJetpackClick("newsletter_settings_setup_payment_plans_button_click")}),[]);return u().createElement(c.Z,s()({},e,{header:__("Paid Newsletter","jetpack"),hideButton:!0}),u().createElement(l.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:n},u().createElement("p",{className:"jp-settings-card__email-settings"},__("Earn money through your Newsletter. Reward your most loyal subscribers with exclusive content or add a paywall to monetize content.","jetpack")),u().createElement(r.Z,{href:i?void 0:a,onClick:o,disabled:i,primary:!0,rna:!0},__("Set up","jetpack"))))})))},19366:(e,t,a)=>{"use strict";a.d(t,{Z:()=>_});var n=a(82674),s=a.n(n),i=a(48229),r=a(55609),o=a(65736),c=a(96483),l=a(61775),p=a(2353),d=a(93806),u=a(28178),m=a(99196),h=a.n(m),g=a(59309),k=a(96300),v=a(69508),f=a(50416),E=a(68926);const __=o.__;const _=(0,p.u)((0,g.$j)(((e,t)=>({isLinked:(0,k.BU)(e),isOffline:(0,k.Ex)(e),isSubscriptionsActive:t.getOptionValue(E.y),unavailableInOfflineMode:(0,k.t_)(e,E.y),subscriptions:(0,f.rT)(e,E.y),isStbEnabled:t.getOptionValue("stb_enabled"),isStcEnabled:t.getOptionValue("stc_enabled"),isSmEnabled:t.getOptionValue("sm_enabled"),isSubscribeOverlayEnabled:t.getOptionValue("jetpack_subscribe_overlay_enabled"),isSubscribePostEndEnabled:t.getOptionValue("jetpack_subscriptions_subscribe_post_end_enabled"),isLoginNavigationEnabled:t.getOptionValue("jetpack_subscriptions_login_navigation_enabled"),isSubscribeNavigationEnabled:t.getOptionValue("jetpack_subscriptions_subscribe_navigation_enabled"),isSubscriptionSiteEditSupported:(0,v.bT)(e),isBlockTheme:(0,v.$2)(e),siteAdminUrl:(0,v.wW)(e),themeStylesheet:(0,v.rf)(e)})))((function(e){const{unavailableInOfflineMode:t,isSavingAnyOption:a,isStbEnabled:n,isStcEnabled:o,isSmEnabled:p,isSubscribeOverlayEnabled:g,isSubscribePostEndEnabled:k,isLoginNavigationEnabled:v,isSubscribeNavigationEnabled:f,isSubscriptionSiteEditSupported:_,isSubscriptionsActive:b,subscriptions:y,updateFormStateModuleOption:w,isBlockTheme:C,siteAdminUrl:j,themeStylesheet:S}=e,N=j&&S?(0,c.addQueryArgs)(`${j}site-editor.php`,{postType:"wp_template_part",postId:`${S}//jetpack-subscribe-modal`,canvas:"edit"}):null,x=j&&S?(0,c.addQueryArgs)(`${j}site-editor.php`,{postType:"wp_template_part",postId:`${S}//jetpack-subscribe-overlay`,canvas:"edit"}):null,R=j?(0,c.addQueryArgs)(`${j}site-editor.php`,{postType:"wp_template",postId:`${S}//single`}):null,Z=j?(0,c.addQueryArgs)(`${j}site-editor.php`,{postType:"wp_template",postId:`${S}//index`}):null,T=(0,m.useCallback)((()=>{w(E.y,"stb_enabled")}),[w]),A=(0,m.useCallback)((()=>{w(E.y,"stc_enabled")}),[w]),M=(0,m.useCallback)((()=>{w(E.y,"sm_enabled")}),[w]),P=(0,m.useCallback)((()=>{w(E.y,"jetpack_subscribe_overlay_enabled")}),[w]),O=(0,m.useCallback)((()=>{w(E.y,"jetpack_subscriptions_subscribe_post_end_enabled")}),[w]),L=(0,m.useCallback)((()=>{w(E.y,"jetpack_subscriptions_login_navigation_enabled")}),[w]),I=(0,m.useCallback)((()=>{w(E.y,"jetpack_subscriptions_subscribe_navigation_enabled")}),[w]),D=!b||t;return h().createElement(d.Z,s()({},e,{hideButton:!0,module:E.y,header:__("Subscriptions","jetpack")}),h().createElement(u.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:y},h().createElement("p",null,__("Automatically add subscription forms to your site and turn visitors into subscribers.","jetpack")),h().createElement(l.C_,null,h().createElement(l.Gj,null,__("Homepage and posts","jetpack")),h().createElement(i.Z,{checked:b&&k,disabled:D,toggling:a(["jetpack_subscriptions_subscribe_post_end_enabled"]),onChange:O,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Add the Subscribe Block at the end of each post","jetpack"),_&&R&&h().createElement(h().Fragment,null,". ",h().createElement(r.ExternalLink,{href:R},__("Preview and edit","jetpack"))))}),h().createElement(i.Z,{checked:b&&p,disabled:D,toggling:a(["sm_enabled"]),onChange:M,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Show subscription pop-up when scrolling a post","jetpack"),C&&N&&h().createElement(h().Fragment,null,". ",h().createElement(r.ExternalLink,{href:N},__("Preview and edit","jetpack"))))}),h().createElement(i.Z,{checked:b&&g,disabled:D,toggling:a(["jetpack_subscribe_overlay_enabled"]),onChange:P,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Subscription overlay on homepage","jetpack"),C&&x&&h().createElement(h().Fragment,null,". ",h().createElement(r.ExternalLink,{href:x},__("Preview and edit","jetpack"))))})),_&&h().createElement(l.C_,null,h().createElement(l.Gj,null,__("Navigation","jetpack")),h().createElement(i.Z,{checked:b&&f,disabled:D,toggling:a(["jetpack_subscriptions_subscribe_navigation_enabled"]),onChange:I,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Add the Subscribe block to the navigation","jetpack"),Z&&h().createElement(h().Fragment,null,". ",h().createElement(r.ExternalLink,{href:Z},__("Preview and edit","jetpack"))))}),h().createElement(i.Z,{checked:b&&v,disabled:D,toggling:a(["jetpack_subscriptions_login_navigation_enabled"]),onChange:L,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Add the Subscriber Login block to the navigation","jetpack"),Z&&h().createElement(h().Fragment,null,". ",h().createElement(r.ExternalLink,{href:Z},__("Preview and edit","jetpack"))))})),h().createElement(l.C_,null,h().createElement(l.Gj,null,__("Comments","jetpack")),h().createElement(i.Z,{checked:b&&n,disabled:D,toggling:a(["stb_enabled"]),onChange:T,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the “subscribe to site” option on your comment form","jetpack"))}),h().createElement(i.Z,{checked:b&&o,disabled:D,toggling:a(["stc_enabled"]),onChange:A,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the “subscribe to comments” option on your comment form","jetpack"))}))))})))},91088:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(51128),s=a.n(n),i=a(6257);const r=s()("calypso:notices");r("initializing notices");const o={containerNames:{}};(0,i.Z)(o);let c=[];const l={new:function(e,t,a){const n=t.overlay?"overlay-notices":"notices";o.containerNames[n]=n,r("creating notice",e,t,a),o[n]=[];const s={type:t.type||"message",status:a,text:e,duration:t.duration,container:n,button:t.button,href:t.href,onClick:e=>{if("function"==typeof t.onClick){const a=l.removeNotice.bind(l,s);return t.onClick(e,a)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?c.push(s):o[n].push(s),o.emit("change"),s},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:o,removeNotice:function(e){if(!e.container)return;const t=o[e.container],a=t.indexOf(e);-1!==a&&(t.splice(a,1),o.emit("change"))},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");let a,n,s=!1;const i=function(e){return e.persistent};for(n in o.containerNames)a=o[n].length,o[n]=o[n].filter(i),a!==o[n].length&&(s=!0);c.length&&(c.forEach((function(e){o[e.container]=[],o[e.container].push(e)})),c=[]),s&&o.emit("change"),t()},clearNotices:function(e){o[e]=[],o.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}},p=l},62160:(e,t,a)=>{"use strict";a.d(t,{Z:()=>g});var n=a(65736),s=a(69270),i=a(99196),r=a.n(i),o=a(59309),c=a(96300),l=a(50416),p=a(89292),d=a(719),u=a(29300),m=a(77122);const __=n.__;class h extends i.Component{render(){const e={getModule:this.props.module,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride,hasConnectedOwner:this.props.hasConnectedOwner},t=["photon","videopress","photon-cdn","search"].some(this.props.isModuleFound);return(this.props.searchTerm||this.props.active)&&t?r().createElement("div",null,r().createElement(s.Z,null),r().createElement("h1",{className:"screen-reader-text"},__("Jetpack Performance Settings","jetpack")),r().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Performance","jetpack"):__("Load pages faster, optimize images, and speed up your visitors’ experience.","jetpack")),r().createElement(u.Z,e),r().createElement(m.Z,e),r().createElement(d.Z,e)):null}}const g=(0,o.$j)((e=>({module:t=>(0,l.rT)(e,t),isUnavailableInOfflineMode:t=>(0,c.t_)(e,t),isModuleFound:t=>(0,p.CX)(e,t),getModuleOverride:t=>(0,l.Qy)(e,t),hasConnectedOwner:(0,c.it)(e)})))(h)},719:(e,t,a)=>{"use strict";a.d(t,{Z:()=>S});var n=a(82674),s=a.n(n),i=a(6895),r=a(94343),o=a(48229),c=a(69307),l=a(65736),p=a(61775),d=a(85733),u=a(2353),m=a(5004),h=a(93806),g=a(28178),k=a(59584),v=a(1137),f=a(99196),E=a.n(f),_=a(59309),b=a(96300),y=a(50416),w=a(89292),C=a(33002);const __=l.__,_x=l._x;class j extends E().Component{togglePrivacySetting=()=>{this.props.updateOptions({videopress_private_enabled_for_site:!this.props.getOptionValue("videopress_private_enabled_for_site")})};render(){const e=this.props.isModuleFound("videopress");if(!e)return null;const t=this.props.module("videopress"),{hasConnectedOwner:a,hasVideoPressFeature:n,hasVideoPressUnlimitedStorage:u,isFetching:v,isOffline:f,upgradeUrl:_,videoPressStorageUsed:b}=this.props,y=n&&!u&&null!==b,w=n||null===b||0!==b?__("You have used your free video. Upgrade now to unlock more videos and 1TB of storage.","jetpack",0):__("1 free video available. Upgrade now to unlock more videos and 1TB of storage.","jetpack"),C=E().createElement(g.Z,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:(0,i.Z)("jetpack-support-videopress")}},E().createElement(p.Gj,{className:"jp-form-label-wide"},__("VideoPress","jetpack")),E().createElement("p",null," ",__("Engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. With Jetpack VideoPress, you can customize your video player to deliver your message without the distraction.","jetpack")," "),y&&E().createElement("div",{className:"media__videopress-storage"},E().createElement(r.Z,{progress:b/1e6}),E().createElement("span",null,(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %d is a number (disk space used) */ __("Using <strong>%dGB</strong> of 1TB","jetpack"),Math.round(b/1024)),{strong:E().createElement("strong",null)}))),a&&E().createElement(E().Fragment,null,E().createElement(m.T,{slug:"videopress",disabled:this.props.isUnavailableInOfflineMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},E().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable VideoPress","jetpack"))),E().createElement(p.C_,null,E().createElement(o.Z,{id:"videopress-site-privacy",disabled:!this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress_private_enabled_for_site"),checked:this.props.getOptionValue("videopress_private_enabled_for_site"),onChange:this.togglePrivacySetting,label:E().createElement("span",{className:"jp-form-toggle-explanation"},__("Video Privacy: Restrict views to members of this site","jetpack"))})))),j="inactive"===this.props.getModuleOverride("videopress"),S=e&&!n&&a&&!f&&!v;return E().createElement(h.Z,s()({},this.props,{header:__("Media","jetpack"),feature:!j&&k.BD8,hideButton:!0}),e&&C,S&&E().createElement(d.ZP,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:w,eventFeature:"videopress",icon:"video",plan:(0,k.o2o)(k.qbT),feature:"jetpack_videopress",href:_,rna:!0}))}}const S=(0,_.$j)((e=>({module:t=>(0,y.rT)(e,t),isModuleFound:t=>(0,w.CX)(e,t),sitePlan:(0,C.UL)(e),hasVideoPressFeature:(0,C.CV)(e,"videopress-1tb-storage")||(0,C.CV)(e,"videopress-unlimited-storage")||(0,C.CV)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,C.CV)(e,"videopress-unlimited-storage"),hasConnectedOwner:(0,b.it)(e),isOffline:(0,b.Ex)(e),isFetching:(0,C.GR)(e),getModuleOverride:t=>(0,y.Qy)(e,t),upgradeUrl:(0,v.z)(e,"videopress"),videoPressStorageUsed:(0,C.VH)(e)})))((0,u.u)(j))},29300:(e,t,a)=>{"use strict";a.d(t,{Z:()=>j});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(65736),c=a(85799),l=a(61775),p=a(2353),d=a(5004),u=a(93806),m=a(28178),h=a(59584),g=a(99196),k=a.n(g),v=a(59309),f=a(96300),E=a(69508),_=a(3230),b=a(33002);const __=o.__,y=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),w=__("Customize your Search experience.","jetpack"),C=__("Search supports many customizations. ","jetpack");const j=(0,v.$j)((e=>({isLoading:(0,b.GR)(e),inOfflineMode:(0,f.Ex)(e),hasClassicSearch:(0,b.CV)(e,"search"),hasInstantSearch:(0,b.CV)(e,"instant-search"),failedToEnableSearch:!(0,_.qg)(e,"search")&&!(0,_.Cu)(e,"search")&&!1===(0,_.p0)(e,"search"),isWidgetsSupported:(0,E.Cv)(e,"widgets")})))((0,p.u)((function(e){const{failedToEnableSearch:t,hasInstantSearch:a,updateOptions:n}=e,o=e.getOptionValue("search"),p=e.getOptionValue("instant_search_enabled","search"),v=(0,g.useCallback)((()=>{const e={search:!o};p!==(a&&!o)&&(e.instant_search_enabled=a&&!o),n(e)}),[a,p,o,n]),f=(0,g.useCallback)((()=>{const e={instant_search_enabled:a&&!p};e.instant_search_enabled&&!o&&(e.search=!0),n(e)}),[a,p,o,n]);(0,g.useEffect)((()=>{t&&a&&(n({has_jetpack_search_product:!0}),v())}),[t,a,n,v]);const E=!!e.isSavingAnyOption("search"),_=!!e.isSavingAnyOption("instant_search_enabled");return k().createElement(u.Z,s()({},e,{module:"search",feature:h.T54,hideButton:!0}),k().createElement(m.Z,{disableInOfflineMode:!0,hasChild:!0,module:{module:"search"},support:{text:C,link:(0,i.Z)("jetpack-support-search")}},k().createElement("p",null,e.inOfflineMode?__("Unavailable in Offline Mode","jetpack"):y),e.isLoading&&__("Loading…","jetpack"),!e.isLoading&&(e.hasClassicSearch||e.hasInstantSearch)&&k().createElement(g.Fragment,null,k().createElement(d.T,{activated:o,compact:!0,toggling:E,slug:"search",toggleModule:v},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable Search","jetpack"))),k().createElement(l.C_,null,k().createElement(r.Z,{checked:o&&p,disabled:E||!e.hasInstantSearch,toggling:_,onChange:f,label:k().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable instant search experience (recommended)","jetpack")),help:k().createElement("span",{className:"jp-form-setting-explanation jp-form-search-setting-explanation"},__("Instant search will allow your visitors to get search results as soon as they start typing. If deactivated, Jetpack Search will still optimize your search results but visitors will have to submit a search query before seeing any results.","jetpack"))})))),!e.isLoading&&e.isWidgetsSupported&&(e.hasClassicSearch||e.hasInstantSearch)&&o&&!p&&k().createElement(c.Z,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},__("Add Jetpack Search Widget","jetpack")),e.hasInstantSearch&&o&&p&&k().createElement(c.Z,{className:"jp-settings-card__configure-link",compact:!0,href:"admin.php?page=jetpack-search-configure"},w))})))},77122:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(65736),c=a(15773),l=a(61775),p=a(2353),d=a(5004),u=a(93806),m=a(28178),h=a(84069),g=a(99196),k=a.n(g),v=a(59309),f=a(96300),E=a(50416),_=a(89292),b=a(69508),y=a(61372);const __=o.__,w=(0,p.u)(class extends g.Component{toggleModule=(e,t)=>{"photon"===e?!1==!t?this.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):this.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):this.props.updateOptions({[e]:!t})};handleSiteAcceleratorChange=()=>{let e=this.props.getOptionValue("photon"),t=this.props.getOptionValue("photon-cdn");const a=e||t,n=this.props.getModuleOverride("photon-cdn");let s=this.props.getModuleOverride("photon");if(this.props.isOfflineMode&&(s="inactive"),!0===a){const a={progress:__("Disabling site accelerator…","jetpack"),success:__("Site accelerator is no longer speeding up your site!","jetpack"),error:e=>(0,o.sprintf)(/* translators: placeholder is an error code. */ __("Error disabling site accelerator. %s","jetpack"),e)};let i={};!1==!e&&"active"!==s&&(e=!1,i={photon:!1,"tiled-gallery":!1,tiled_galleries:!1}),!1==!t&&"active"!==n&&(t=!1,i={...i,"photon-cdn":!1}),this.props.updateOptions(i,a)}else{const a={progress:__("Enabling Site accelerator…","jetpack"),success:__("Site accelerator is now speeding up your site!","jetpack"),error:e=>(0,o.sprintf)(/* translators: placeholder is an error code. */ __("Error enabling Site accelerator. %s","jetpack"),e)};let i={};!1===e&&"inactive"!==s&&(e=!0,i={photon:!0,"tiled-gallery":!0,tiled_galleries:!0}),!1===t&&"inactive"!==n&&(t=!0,i={...i,"photon-cdn":!0}),this.props.updateOptions(i,a)}!0===e||!0===t?h.Z.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):h.Z.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),this.props.getOptionValue("photon")!==e&&h.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===e?"off":"on"}),this.props.getOptionValue("photon-cdn")!==t&&h.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon-cdn",toggled:!1===t?"off":"on"})};render(){const e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("photon-cdn");if(!e&&!t)return null;const a=this.props.getOptionValue("photon")||this.props.getOptionValue("photon-cdn"),n=this.props.getModuleOverride("photon-cdn");let o=this.props.getModuleOverride("photon");this.props.isOfflineMode&&(o="inactive");const p=e&&t&&("inactive"!==o||"inactive"!==n),h=(e||t)&&("inactive"!==o||"inactive"!==n);let g;return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?g=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?g=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(g=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(g=!0)):g=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),k().createElement(u.Z,s()({},this.props,{header:__("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed"}),(e||t)&&k().createElement(k().Fragment,null,k().createElement(m.Z,{hasChild:!0,support:{link:(0,i.Z)("jetpack-support-site-accelerator")}},k().createElement("p",null,__("Load pages faster by allowing Jetpack to optimize your images and serve your images and static files (like CSS and JavaScript) from our global network of servers.","jetpack")),h&&k().createElement(r.Z,{checked:a,toggling:g,onChange:this.handleSiteAcceleratorChange,disabled:!p,label:k().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable site accelerator","jetpack"))}),k().createElement(l.C_,null,e&&k().createElement(d.T,{slug:"photon",disabled:this.props.isUnavailableInOfflineMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Speed up image load times","jetpack"))),t&&k().createElement(d.T,{slug:"photon-cdn",activated:this.props.getOptionValue("photon-cdn"),toggling:this.props.isSavingAnyOption("photon-cdn"),toggleModule:this.toggleModule},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Speed up static file load times","jetpack"))))),this.props.isAtomicSite&&this.props.isPageOptimizeActive&&k().createElement(c.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}admin.php?page=page-optimize`},__("Optimize JS and CSS for faster page load and render in the browser.","jetpack"))))}}),C=(0,v.$j)((e=>({module:t=>(0,E.rT)(e,t),isModuleFound:t=>(0,_.CX)(e,t),isOfflineMode:(0,f.Ex)(e),getModuleOverride:t=>(0,E.Qy)(e,t),gutenbergInfo:(0,b.Zb)(e),isAtomicSite:(0,b.Ug)(e),isPageOptimizeActive:(0,y.TB)(e,"page-optimize/page-optimize.php")})))(w)},65043:(e,t,a)=>{"use strict";a.d(t,{Z:()=>S});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69307),c=a(65736),l=a(81674),p=a(2353),d=a(93806),u=a(28178),m=a(84069),h=a(25162),g=a.n(h),k=a(99196),v=a.n(k),f=a(59309),E=a(3230),_=a(97639),b=a(30775);const __=c.__,_x=c._x,y=()=>m.Z.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"}),w=()=>m.Z.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"}),C=()=>m.Z.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"});class j extends v().Component{static displayName="PrivacySettings";static propTypes={searchTerm:g().string,active:g().bool,toggleTracking:g().func,getOptionValue:g().func,isSavingAnyOption:g().func};static defaultProps={searchTerm:"",active:!1};isPrivacyFound=()=>!this.props.searchTerm||[_x("privacy","Search term.","jetpack"),_x("tracks","Search term.","jetpack"),_x("data","Search term.","jetpack"),_x("gdpr","Search term.","jetpack"),_x("tos","Search term.","jetpack"),_x("terms of service","Search term.","jetpack")].join(" ").toLowerCase().indexOf(this.props.searchTerm.toLowerCase())>-1;togglePrivacy=()=>{const e=this.props.trackingSettings.tracks_opt_out;this.props.setTrackingSettings(!e)};UNSAFE_componentWillMount(){this.props.fetchTrackingSettings()}render(){const{searchTerm:e,active:t}=this.props;return e||t?this.isPrivacyFound()&&v().createElement("div",null,v().createElement("h1",{className:"screen-reader-text"},__("Jetpack Privacy Settings","jetpack")),v().createElement(d.Z,s()({},this.props,{header:_x("Privacy Settings","Settings header","jetpack"),hideButton:!0}),v().createElement(u.Z,{hasChild:!0},v().createElement("p",null,__("We are committed to your privacy and security.","jetpack")),v().createElement("p",null,v().createElement(l.Z,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,o.createInterpolateElement)(__("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. <cookiePolicyLink>Learn more</cookiePolicyLink>.","jetpack"),{cookiePolicyLink:v().createElement(r.ExternalLink,{href:(0,i.Z)("a8c-cookies"),onClick:w,rel:"noopener noreferrer"})}))),v().createElement("p",null,(0,o.createInterpolateElement)(__("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"),{pp:v().createElement(r.ExternalLink,{href:(0,i.Z)("a8c-privacy"),onClick:y,rel:"noopener noreferrer"})})),v().createElement("p",null,(0,o.createInterpolateElement)(__("We use other tracking tools, including some from third parties. <cookiePolicyLink>Read about these</cookiePolicyLink> and how to control them.","jetpack"),{cookiePolicyLink:v().createElement(r.ExternalLink,{href:(0,i.Z)("a8c-cookies"),onClick:w,rel:"noopener noreferrer"})})),v().createElement("p",null,(0,o.createInterpolateElement)(__("For more information on how specific Jetpack features use data and track activity, please refer to our <privacyCenterLink>Privacy Center</privacyCenterLink>.","jetpack"),{privacyCenterLink:v().createElement(r.ExternalLink,{href:(0,i.Z)("jetpack-support-privacy"),onClick:C,rel:"noopener noreferrer"})}))))):null}}const S=(0,f.$j)((e=>({settings:(0,E.Gw)(e),trackingSettings:(0,b.AO)(e),isUpdatingTrackingSettings:(0,b.Ak)(e),isFetchingTrackingSettings:(0,b.ab)(e)})),(e=>({setTrackingSettings:t=>{m.Z.tracks.setOptOut(t),e((0,_.X)({tracks_opt_out:t}))},fetchTrackingSettings:()=>e((0,_.$)())})))((0,p.u)(j))},86450:(e,t,a)=>{"use strict";a.d(t,{Z:()=>S});var n=a(6895),s=a(73474),i=a(65736),r=a(97506),o=a(3544),c=a(7679),l=a(83526),p=a(84069),d=a(92819),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h),k=a(59309),v=a(17296),f=a(96300),E=a(69508),_=a(69377),b=a(15080),y=a(33002),w=a(61372);const __=i.__,_n=i._n,_x=i._x,C=(e,t)=>()=>((e,t)=>p.Z.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t}))(e,t);class j extends g().Component{static propTypes={isCompact:m().bool,proFeature:m().string,rewindStatus:m().object.isRequired};static defaultProps={isCompact:!0,proFeature:""};getRewindMessage(){switch(this.props.rewindStatus.state){case"provisioning":return{status:"initializing",text:__("Setting up","jetpack")};case"awaiting_credentials":return{status:"action",text:__("Action needed","jetpack")};case"active":return{status:"active",text:__("Connected","jetpack")};default:return{status:"",text:""}}}getProActions=(e,t)=>{let a="",i=!1,r=!1,o="";switch(e){case"threats":a="error",r=_x("Threats detected","A caption for a small button to fix security issues.","jetpack"),o=(0,n.Z)("vaultpress-dashboard");break;case"secure":a="active",i=_x("Secure","Short message informing user that the site is secure.","jetpack");break;case"invalid_key":return;case"rewind_connected":const e=this.getRewindMessage();return g().createElement(s.Z,{status:e.status,text:e.text});case"active":return g().createElement(s.Z,{status:"active"})}const c=g().createElement(g().Fragment,null,i,r&&g().createElement("a",{className:"dops-notice__text-no-underline",onClick:C(e,t),href:o},r));return g().createElement(s.Z,{status:a,label:c})};getSetUpButton=e=>g().createElement(r.Z,{onClick:C("set_up",e),compact:!0,primary:!0,href:(0,n.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:`only=${e}`})},_x("Set up","Caption for a button to set up a feature.","jetpack"));render(){const{purchasedVaultPressBackups:e,purchasedVaultPressScan:t,scanStatus:a}=this.props,n=this.props.sitePlan,i=this.props.getVaultPressData();let r="";"scan"!==this.props.proFeature&&"backups"!==this.props.proFeature&&"vaultpress"!==this.props.proFeature||(r="vaultpress/vaultpress.php"),"akismet"===this.props.proFeature&&(r="akismet/akismet.php");const p=/jetpack_free*/.test(n.product_slug),u=(0,d.get)(i,["data","features","backups"],!1),m=(0,d.get)(i,["data","features","security"],!1);return g().createElement("div",null,g().createElement(c.Z,null),g().createElement(o.Z,null),g().createElement(l.Z,null),!this.props.isOfflineMode&&((o,c,l)=>{switch(o){case"rewind":return this.getProActions("rewind_connected","rewind");case"backups":if(p&&!u&&this.props.isCompact)return"";break;case"scan":if(this.props.fetchingSiteData||this.props.isFetchingVaultPressData)return"";if("N/A"!==i)return t?m?this.getProActions(0===this.props.getScanThreats()?"secure":"threats","scan"):this.getSetUpButton("scan"):!e||u||this.props.isCompact?"":this.getSetUpButton("backups");if(a&&"unavailable"!==a.state)return Array.isArray(a.threats)&&a.threats.length>0?g().createElement(s.Z,{status:"error",label:_n("Threat","Threats",a.threats.length,"jetpack")}):a.credentials?0===a.credentials.length?g().createElement(s.Z,{status:"action"}):this.getProActions("secure","scan"):"";break;case"search":return"";case"akismet":if(p&&(!c||!l))return"";if(!this.props.isAkismetKeyValid&&!this.props.fetchingAkismetData&&c&&l&&!p)return this.getSetUpButton(o)}return n.product_slug&&r&&!p?c&&l?this.getProActions("active"):this.getSetUpButton(o):""})(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}const S=(0,k.$j)((e=>{const t=(0,y.UL)(e);return{siteRawUrl:(0,E.JR)(e),siteAdminUrl:(0,E.wW)(e),getScanThreats:()=>(0,v._R)(e),getVaultPressData:()=>(0,v.XK)(e),getAkismetData:()=>(0,v.fU)(e),isFetchingVaultPressData:(0,v.P_)(e),sitePlan:t,fetchingPluginsData:(0,w.vz)(e),pluginActive:t=>(0,w.TB)(e,t),pluginInstalled:t=>(0,w.P8)(e,t),isOfflineMode:(0,f.Ex)(e),fetchingSiteData:(0,y._5)(e),isAkismetKeyValid:(0,v._2)(e),fetchingAkismetData:(0,v.bV)(e),rewindStatus:(0,_.of)(e),scanStatus:(0,b.C8)(e),purchasedVaultPressBackups:(0,y.CV)(e,"vaultpress-backups"),purchasedVaultPressScan:(0,y.CV)(e,"vaultpress-security-scanning")}}))(j)},94648:(e,t,a)=>{"use strict";a.d(t,{ZS:()=>o,mH:()=>r,tE:()=>s,w7:()=>i});var n=a(80800);const s={JETPACK_ANTI_SPAM:"akismet",JETPACK_BACKUP:"backup",JETPACK_SCAN:"scan",JETPACK_SEARCH:"search",JETPACK_SECURITY:"security",JETPACK_SOCIAL:"social",JETPACK_VIDEOPRESS:"videopress"},i=[`/product/${s.JETPACK_ANTI_SPAM}`,`/product/${s.JETPACK_BACKUP}`,`/product/${s.JETPACK_SCAN}`,`/product/${s.JETPACK_SEARCH}`,`/product/${s.JETPACK_SECURITY}`,`/product/${s.JETPACK_VIDEOPRESS}`],r=[`/add-${s.JETPACK_ANTI_SPAM}`,`/add-${s.JETPACK_BACKUP}`,`/add-${s.JETPACK_SCAN}`,`/add-${s.JETPACK_SEARCH}`,`/add-${s.JETPACK_SOCIAL}`,`/add-${s.JETPACK_VIDEOPRESS}`],o={[s.JETPACK_ANTI_SPAM]:`${n.hp}products/illustration-anti-spam.png`,[s.JETPACK_BACKUP]:`${n.hp}products/illustration-backup.png`,[s.JETPACK_SCAN]:`${n.hp}products/illustration-scan.png`,[s.JETPACK_SEARCH]:`${n.hp}products/illustration-search.png`,[s.JETPACK_SECURITY]:`${n.hp}products/illustration-scan.png`,[s.JETPACK_VIDEOPRESS]:`${n.hp}products/illustration-videopress.png`}},35150:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(53190),s=a(24289),i=a(72129),r=a(92819),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(59309),u=a(44498),m=a(69508),h=a(36920),g=a(84884),k=a(94648),v=a(95229);const f=e=>{const{isFetchingProducts:t,isFetchingOffers:a,products:o}=e,c=t||a||(0,r.isEmpty)(o),l=[];return c||Object.values(k.tE).forEach((function(e){if(!o.hasOwnProperty(e))return;const t=o[e];t.available&&l.push(p().createElement(u.AW,{key:e,path:`/product/${e}`},p().createElement(v.Z,{product:t})))})),p().createElement(p().Fragment,null,p().createElement(s.Z,null),p().createElement(n.Z,null),c?p().createElement("div",{className:"jp-product-descriptions__loading"},p().createElement(i.D,null)):p().createElement(u.rs,null,l))};f.propTypes={products:c().object,isFetchingProducts:c().bool,isFetchingOffers:c().bool};const E=(0,d.$j)((e=>({isFetchingProducts:(0,g.T0)(e),isFetchingOffers:(0,h.HW)(e),products:(0,m.by)(e)})))(f)},55413:(e,t,a)=>{"use strict";a.d(t,{dn:()=>o,jZ:()=>c,pz:()=>i,yS:()=>r});var n=a(99196),s=a.n(n);const i=s().createElement("svg",{fill:"none",viewBox:"0 0 22 16",xmlns:"http://www.w3.org/2000/svg"},s().createElement("path",{d:"m16.092 8.1635 0.0188-1.7025 1e-4 -0.03867c0-1.9752-1.8025-3.8666-4.4-3.8666-2.1696 0-3.828 1.3518-4.2735 2.9432l-0.42657 1.5238-1.581-0.06466c-0.0393-0.0016-0.07893-0.0024-0.11886-0.0024-1.587 0-2.9778 1.3444-2.9778 3.1333 0 1.7871 1.3878 3.1305 2.9728 3.1334l0.02863-2e-4h12.052l0.0123 2e-4c1.1943 0 2.2667-1.0162 2.2667-2.4 0-1.2351-0.8646-2.1899-1.8964-2.3684l-1.6776-0.2904zm-10.581-3.2038c-0.06651-0.00271-0.13335-0.00408-0.2005-0.00408-2.7492 0-4.9778 2.2983-4.9778 5.1333 0 2.8351 2.2286 5.1334 4.9778 5.1334l0.02962-2e-4h12.035l0.0236 2e-4c2.3564 0 4.2667-1.97 4.2667-4.4 0-2.1802-1.5375-3.99-3.5554-4.3392l3e-4 -0.0608c0-3.24-2.8653-5.8666-6.4-5.8666-2.9837 0-5.4905 1.8716-6.1994 4.404z",clipRule:"evenodd",fill:"#000",fillRule:"evenodd"})),r=s().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 18 23",xmlns:"http://www.w3.org/2000/svg"},s().createElement("path",{d:"m9 0.23486 9 4.0909v6.0984c0 5.1987-3.3389 10.121-8.0471 11.674-0.61868 0.2041-1.2872 0.2041-1.9059 0-4.7082-1.5528-8.0471-6.4749-8.0471-11.674v-6.0984l9-4.0909zm-7 5.3787v4.8106c0 4.4173 2.8602 8.5166 6.6735 9.7743 0.21184 0.0698 0.44118 0.0698 0.65302 0 3.8133-1.2577 6.6735-5.357 6.6735-9.7743v-4.8106l-7-3.1818-7 3.1818z",clipRule:"evenodd",fill:"#000",fillRule:"evenodd"})),o=s().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 20 25",xmlns:"http://www.w3.org/2000/svg"},s().createElement("path",{d:"m5.2729 24.276 10.667-23.333-1.2126-0.55434-1.6821 3.6796c-0.9128-0.46945-1.9479-0.73443-3.0449-0.73443-1.4153 0-2.7276 0.44103-3.8069 1.1931l-2.6065-2.6065-1.4142 1.4142 2.5684 2.5684c-0.7535 0.96578-1.2468 2.1445-1.3745 3.4307h-2.6996v2h2.6667v2h-2.6667v2h2.8c0.3345 1.6479 1.2768 3.075 2.5827 4.0372l-1.989 4.351 1.2126 0.5544zm1.634-6.7814c-0.96522-0.855-1.5737-2.1037-1.5737-3.4945v-4c0-2.5773 2.0893-4.6667 4.6667-4.6667 0.80034 0 1.5536 0.20149 2.2119 0.55651l-5.305 11.605zm7.567-8.8258 1.0786-2.3595c0.5878 0.88256 0.9708 1.9132 1.0811 3.0241h2.6996v2h-2.6667v2h2.6667v2h-2.8c-0.6177 3.043-3.3081 5.3334-6.5333 5.3334-0.33229 0-0.65891-0.0244-0.97816-0.0713l0.88215-1.9297c0.03193 6e-4 0.06393 1e-3 0.09601 1e-3 2.5773 0 4.6666-2.0894 4.6666-4.6667v-4c0-0.46256-0.0673-0.9094-0.1926-1.3313z",clipRule:"evenodd",fill:"#000",fillRule:"evenodd"})),c=s().createElement("svg",{className:"vertical",viewBox:"0 0 103 25",xmlns:"http://www.w3.org/2000/svg"},s().createElement("path",{d:"m52 0.23486 9 4.0909v6.0984c0 5.1987-3.3389 10.121-8.0471 11.674-0.6186 0.2041-1.2872 0.2041-1.9058 0-4.7082-1.5528-8.0471-6.4749-8.0471-11.674v-6.0984l9-4.0909zm-7 5.3787v4.8106c0 4.4173 2.8602 8.5166 6.6735 9.7743 0.2118 0.0698 0.4412 0.0698 0.653 0 3.8133-1.2577 6.6735-5.357 6.6735-9.7743v-4.8106l-7-3.1818-7 3.1818z",clipRule:"evenodd",fillRule:"evenodd"}),s().createElement("path",{d:"m31.82 13.188h3.1406v-1.2656h-3.1406v-3.2969h-1.2656v3.2969h-3.1406v1.2656h3.1406v3.2969h1.2656v-3.2969z",fill:"#8C8F94"}),s().createElement("path",{d:"m72.82 13.188h3.1406v-1.2656h-3.1406v-3.2969h-1.2656v3.2969h-3.1406v1.2656h3.1406v3.2969h1.2656v-3.2969z",fill:"#8C8F94"}),s().createElement("path",{d:"m88.273 24.276 10.667-23.333-1.2126-0.55434-1.6821 3.6796c-0.9128-0.46945-1.9479-0.73443-3.0449-0.73443-1.4153 0-2.7276 0.44103-3.807 1.1931l-2.6065-2.6065-1.4142 1.4142 2.5684 2.5684c-0.7535 0.96578-1.2468 2.1445-1.3745 3.4307h-2.6996v2h2.6667v2h-2.6667v2h2.8001c0.3344 1.6479 1.2767 3.075 2.5826 4.0372l-1.989 4.351 1.2126 0.5544zm1.634-6.7814c-0.9652-0.855-1.5736-2.1037-1.5736-3.4945v-4c0-2.5773 2.0893-4.6667 4.6667-4.6667 0.8003 0 1.5536 0.20149 2.2119 0.55651l-5.305 11.605zm7.5671-8.8258 1.0786-2.3595c0.5878 0.88256 0.9708 1.9132 1.0811 3.0241h2.6993v2h-2.6664v2h2.6664v2h-2.7997c-0.6177 3.043-3.3081 5.3334-6.5333 5.3334-0.3323 0-0.6589-0.0244-0.9782-0.0713l0.8822-1.9297c0.0319 6e-4 0.0639 1e-3 0.096 1e-3 2.5773 0 4.6666-2.0894 4.6666-4.6667v-4c0-0.46256-0.0673-0.9094-0.1926-1.3313z",clipRule:"evenodd",fillRule:"evenodd"}),s().createElement("path",{d:"m16.092 11.164 0.0188-1.7026 1e-4 -0.03867c0-1.9752-1.8025-3.8666-4.4-3.8666-2.1696 0-3.828 1.3518-4.2735 2.9432l-0.42657 1.5238-1.581-0.0647c-0.0393-0.0016-0.07893-0.0024-0.11886-0.0024-1.587 0-2.9778 1.3444-2.9778 3.1333 0 1.7871 1.3878 3.1305 2.9728 3.1334l0.02863-2e-4h12.052l0.0123 2e-4c1.1943 0 2.2667-1.0162 2.2667-2.4 0-1.2351-0.8646-2.1899-1.8964-2.3684l-1.6776-0.2904zm-10.581-3.2038c-0.06651-0.00271-0.13335-0.00408-0.2005-0.00408-2.7492 0-4.9778 2.2983-4.9778 5.1333 0 2.8351 2.2286 5.1334 4.9778 5.1334l0.02962-2e-4h12.035l0.0236 2e-4c2.3564 0 4.2667-1.97 4.2667-4.4 0-2.1802-1.5375-3.99-3.5554-4.3392l3e-4 -0.0608c0-3.24-2.8653-5.8666-6.4-5.8666-2.9837 0-5.4905 1.8716-6.1994 4.404z",clipRule:"evenodd",fillRule:"evenodd"}))},95229:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(65736),s=a(3228),i=a(22177),r=a(23609),o=a(84069),c=a(92819),l=a(25162),p=a.n(l),d=a(99196),u=a(59309),m=a(69508),h=a(36920),g=a(94648),k=a(55413);const __=n.__,v=(e,t,a,s)=>{const r=!s&&g.ZS.hasOwnProperty(e.key)?g.ZS[e.key]:void 0;let o,c;switch(e.slug){case"jetpack_backup_t0_yearly":case"jetpack_backup_t1_yearly":c=k.pz;break;case"jetpack_scan":c=k.yS;break;case"jetpack_anti_spam":c=k.dn;break;case"jetpack_security_t0_yearly":case"jetpack_security_t1_yearly":c=k.jZ,"secondary"===a&&(o=__("Popular upgrade","jetpack"))}const l=t?.find((({product_slug:t})=>t===e.slug)),p=l?.original_price||e.fullPrice,d=e?.saleCoupon?.discount?1-e.saleCoupon.discount/100:1,u=(l?.raw_price||p)*d;return React.createElement(i.Z,{icon:c,title:e.title,productSlug:e.slug,description:e.description,features:e.features,disclaimer:e.disclaimer,currencyCode:e.currencyCode,price:p/12,discountedPrice:u&&u!==p?u/12:null,billingDescription:__("per month, paid yearly","jetpack"),callToAction:o,priority:a,illustrationPath:r,checkoutUrl:e.upgradeUrl,checkoutText:(0,n.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Add %s","jetpack"),e.title)})},f=e=>{const{availableProductsAndPlans:t,product:a,offers:n}=e,i=((e,t)=>{const a="security";return!((0,c.isEmpty)(e.includedInPlans)||!t.hasOwnProperty(a)||!e.includedInPlans.includes(a))&&t[a]})(a,t);(0,d.useEffect)((()=>{o.Z.tracks.recordEvent("jetpack_product_description_view",{type:a.slug})}),[a]);const l=(0,s.Z)({"jp-product-description":!0,"jp-product-description--split":!!i});return React.createElement(React.Fragment,null,React.createElement("div",{className:l},v(a,n,"primary",!!i),!!i&&v(i,n,"secondary",!!i)),React.createElement("div",{className:"jp-product-description__introductory-pricing"},__("Special introductory pricing, all renewals are at full price.","jetpack")),React.createElement("div",{className:"jp-product-description__money-back-guarantee"},React.createElement(r.N,{text:__("14-day money-back guarantee","jetpack")})))};f.propTypes={product:p().object.isRequired,availableProductsAndPlans:p().object.isRequired,offers:p().arrayOf(p().object).isRequired};const E=(0,u.$j)((e=>({availableProductsAndPlans:(0,m.by)(e),offers:(0,h.ni)(e)})))(f)},1137:(e,t,a)=>{"use strict";a.d(t,{I:()=>i,z:()=>r});var n=a(69508),s=a(94648);const i=()=>URLSearchParams&&!!new URLSearchParams(window.location?.search).get("new_pricing_202208"),r=(e,t)=>{const a=`${(0,n.wW)(e)}admin.php?page=jetpack#`,i=`${(0,n.wW)(e)}admin.php?page=my-jetpack#`;return"search"===t?`${(0,n.wW)(e)}admin.php?page=jetpack-search`:s.mH.includes(`/add-${t}`)?`${i}/add-${t}`:s.w7.includes(`/product/${t}`)?`${a}/product/${t}`:`${a}/dashboard`}},98014:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(65736),s=a(5060),i=a(99196),r=a.n(i);const __=n.__,o=()=>{const e=(0,i.useCallback)((()=>history.back()),[]);return r().createElement("button",{className:"jp-recommendations-back-btn",onClick:e},r().createElement(s.Z,{size:18,icon:"arrow-left"}),/* translators: As in go back to the previous page. */ __("Back","jetpack"))}},39398:(e,t,a)=>{"use strict";a.d(t,{DF:()=>d,GB:()=>k,JI:()=>v,Lw:()=>u,NN:()=>m,UP:()=>h,WU:()=>o,Wn:()=>c,XE:()=>b,dL:()=>l,f6:()=>f,fq:()=>_,lY:()=>r,rU:()=>E,sV:()=>p,uw:()=>i,xG:()=>g});var n=a(65736),s=a(59584);const __=n.__,i={NOT_STARTED:"not-started",SITE_TYPE:"site-type-question",PRODUCT_SUGGESTIONS:"product-suggestions",PRODUCT_PURCHASED:"product-purchased",AGENCY:"agency",WOOCOMMERCE:"woocommerce",MONITOR:"monitor",NEWSLETTER:"newsletter",RELATED_POSTS:"related-posts",CREATIVE_MAIL:"creative-mail",SITE_ACCELERATOR:"site-accelerator",VAULTPRESS_BACKUP:"vaultpress-backup",VAULTPRESS_FOR_WOOCOMMERCE:"vaultpress-for-woocommerce",PUBLICIZE:"publicize",PROTECT:"protect",ANTI_SPAM:"anti-spam",VIDEOPRESS:"videopress",BACKUP_PLAN:"backup-plan",WELCOME__BACKUP:"welcome__backup",WELCOME__COMPLETE:"welcome__complete",WELCOME__SECURITY:"welcome__security",WELCOME__STARTER:"welcome__starter",WELCOME__ANTISPAM:"welcome__antispam",WELCOME__VIDEOPRESS:"welcome__videopress",WELCOME__SEARCH:"welcome__search",WELCOME__SCAN:"welcome__scan",WELCOME__SOCIAL_BASIC:"welcome__social_basic",WELCOME__SOCIAL_ADVANCED:"welcome__social_advanced",WELCOME__SOCIAL_IMAGE_GENERATOR:"welcome__social_image_generator",WELCOME__GOLDEN_TOKEN:"welcome__golden_token",BACKUP_ACTIVATED:"backup-activated",SCAN_ACTIVATED:"scan-activated",SOCIAL_ADVANCED_ACTIVATED:"social-advanced-activated",UNLIMITED_SHARING_ACTIVATED:"unlimited-sharing-activated",ANTISPAM_ACTIVATED:"antispam-activated",VIDEOPRESS_ACTIVATED:"videopress-activated",SEARCH_ACTIVATED:"search-activated",SERVER_CREDENTIALS:"server-credentials",BOOST:"boost",SUMMARY:"summary"},r="assistant-site-type",o="JETPACK_COMPLETE",c="JETPACK_SECURITY",l="JETPACK_STARTER",p="JETPACK_BACKUP",d="JETPACK_ANTI_SPAM",u="JETPACK_VIDEOPRESS",m="JETPACK_SEARCH",h="JETPACK_SCAN",g="JETPACK_SOCIAL_BASIC",k="JETPACK_SOCIAL_ADVANCED",v="JETPACK_GOLDEN_TOKEN",f=16643232e5,E=[v,o,c,l,p,d,u,m,h,g,k],_={[v]:s.nAQ,[o]:s.z6U,[c]:s.fOq,[l]:s.fCb,[p]:s.jTC,[d]:s.qSP,[u]:s.rVK,[m]:s.OMh,[h]:s.Cbu,[g]:s.Qox,[k]:s.Zyl},b={[o]:{name:"Complete",slugs:["backup-activated","scan-activated","antispam-activated","videopress-activated","unlimited-sharing-activated","social-advanced-activated","search-activated"]},[c]:{name:"Security",slugs:["backup-activated","scan-activated","antispam-activated"]},[l]:{name:"Starter",slugs:["backup-activated","antispam-activated"]},[p]:{name:"VaultPress Backup",slugs:["backup-activated"]},[d]:{name:"Akismet Anti-Spam",slugs:["antispam-activated"]},[u]:{name:"VideoPress",slugs:["videopress-activated"]},[m]:{name:"Search",slugs:["search-activated"]},[h]:{name:"Scan",slugs:["scan-activated"]},[g]:{name:"Social Basic",slugs:[i.UNLIMITED_SHARING_ACTIVATED]},[k]:{name:"Social Advanced",slugs:[i.UNLIMITED_SHARING_ACTIVATED,i.SOCIAL_ADVANCED_ACTIVATED]},[v]:{name:__("Jetpack Golden Token","jetpack"),slugs:[i.BACKUP_ACTIVATED,i.SCAN_ACTIVATED]}}},23494:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(65736),s=a(3228),i=a(99196),r=a.n(i);const __=n.__,o=({className:e,discount:t,suffix:a})=>t?r().createElement("div",{className:(0,s.Z)("jp-recommendations-discount-badge",e)},(0,n.sprintf)( // translators: %d is the percentage value, %% the percentage symbol __("%d%% off","jetpack"),t),a):null},2025:(e,t,a)=>{"use strict";a.d(t,{H:()=>g});var n=a(55609),s=a(65736),i=a(3228),r=a(97506),o=a(5060),c=a(16626),l=a(84069),p=a(99196),d=a.n(p),u=a(59309),m=a(8722),h=a(97684);const __=s.__,g=(0,u.$j)(((e,t)=>({isInstalling:(0,m.c1)(e,t.featureSlug),isFeatureActive:(0,m.dz)(e,t.featureSlug),...(0,h.mp)(e,t.featureSlug),stepRoute:m.BR[t.featureSlug]})),((e,t)=>({...(0,h.ZS)(e,t.featureSlug),startFeatureInstall:t=>e((0,m.s2)(t)),endFeatureInstall:t=>e((0,m.Ti)(t))})))((e=>{const{activateFeature:t,configLink:a,configureButtonLabel:s,displayName:u,featureSlug:m,stepRoute:h,summaryActivateButtonLabel:g,isNew:k,isInstalling:v,startFeatureInstall:f,endFeatureInstall:E}=e,_=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommendations_summary_configure_click",{feature:m})}),[m]),b=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommendations_summary_enable_click",{feature:m}),f(m),t().finally((()=>{E(m)}))}),[t,m,f,E]),y=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:m})}),[m]),w=(0,p.useMemo)((()=>a.match(/^https:\/\/jetpack.com\/redirect/)),[a]),C=d().createElement("div",{className:"jp-recommendations-feature-summary__cta"},e.isFeatureActive?d().createElement(d().Fragment,null,w?d().createElement(n.ExternalLink,{type:"button",className:"dops-button is-rna",href:a,onClick:_},s):d().createElement(r.Z,{rna:!0,href:a,onClick:_},s)):d().createElement(c.Z,{primary:!0,rna:!0,isInstalling:v,onClick:b},g));return d().createElement("div",{className:(0,i.Z)("jp-recommendations-feature-summary",{"is-feature-enabled":e.isFeatureActive})},e.isFeatureActive&&d().createElement("div",{className:"jp-recommendations-feature-summary__checkmark"},d().createElement(o.Z,{icon:"checkmark-circle",size:24})),d().createElement(r.Z,{borderless:!0,href:h,onClick:y,className:"jp-recommendations-feature-summary__display-name"},d().createElement("span",{className:"jp-recommendations-feature-summary__display-name-text"},u),k&& /* translators: 'New' is shown as a badge to indicate that this content has not been viewed before. */ d().createElement("span",{className:"jp-recommendations__new-badge"},__("New","jetpack"))),d().createElement("div",{className:"jp-recommendations-feature-summary__actions"},C))}))},21404:(e,t,a)=>{"use strict";a.d(t,{u:()=>d});var n=a(3228),s=a(97506),i=a(84069),r=a(99196),o=a(59309),c=a(8722),l=a(97684);const p=({href:e,label:t,isHidden:a,onClick:s})=>React.createElement("a",{rel:"noreferrer",target:"_blank",href:e,onClick:s,className:(0,n.Z)("jp-summary-text-link",{"is-hidden":a})},t,React.createElement("span",{className:"jp-summary-text-link__icon dashicons dashicons-arrow-right-alt2"})),d=(0,o.$j)(((e,t)=>({...(0,l.tX)(e,t.slug),stepRoute:c.BR[t.slug]})))((({slug:e,displayName:t,ctaLabel:a,ctaLink:n,stepRoute:o})=>{const c=!!n,l=(0,r.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:e})}),[e]),d=(0,r.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_summary_manage_click",{feature:e})}),[e]);return React.createElement("div",{className:"jp-recommendations-feature-summary is-primary"},c?React.createElement(s.Z,{href:o,onClick:l,className:"jp-recommendations-feature-summary__display-name",borderless:!0},React.createElement("span",{className:"jp-recommendations-feature-summary__display-name-text"},t)):React.createElement("span",{className:"jp-recommendations-feature-summary__display-name"},t),React.createElement("div",{className:"jp-recommendations-feature-summary__actions"},React.createElement("div",{className:"jp-recommendations-feature-summary__cta"},React.createElement(p,{href:n,label:a,onClick:d,isHidden:!c}))))}))},91508:(e,t,a)=>{"use strict";a.d(t,{_:()=>u});var n=a(55609),s=a(65736),i=a(97506),r=a(84069),o=a(99196),c=a.n(o),l=a(59309),p=a(8722),d=a(97684);const __=s.__,u=(0,l.$j)(((e,t)=>({...(0,d.tB)(e,t.resourceSlug),stepRoute:p.BR[t.resourceSlug]})))((e=>{const{displayName:t,ctaLabel:a,ctaLink:s,resourceSlug:l,isNew:p,stepRoute:d}=e,u=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_learn_more_click",{feature:l})}),[l]),m=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:l})}),[l]);return c().createElement("div",{className:"jp-recommendations-feature-summary"},c().createElement(i.Z,{borderless:!0,href:d,onClick:m,className:"jp-recommendations-feature-summary__display-name"},c().createElement("span",{className:"jp-recommendations-feature-summary__display-name-text"},t),p&& /* translators: 'New' is shown as a badge to indicate that this content has not been viewed before. */ c().createElement("span",{className:"jp-recommendations__new-badge"},__("New","jetpack"))),c().createElement("div",{className:"jp-recommendations-feature-summary__actions"},c().createElement("div",{className:"jp-recommendations-feature-summary__cta"},c().createElement(n.ExternalLink,{type:"button",className:"dops-button is-rna",href:s,onClick:u},a))))}))},97684:(e,t,a)=>{"use strict";a.d(t,{ZS:()=>k,gU:()=>v,mp:()=>m,qJ:()=>E,r3:()=>f,tB:()=>h,tX:()=>g});var n=a(25607),s=a(64743),i=a(6895),r=a(65736),o=a(59584),c=a(69508),l=a(3230),p=a(61372),d=a(8722),u=a(77805);const __=r.__,_x=r._x,m=(e,t)=>{switch(t){case"boost":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Jetpack Boost","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=jetpack-boost"};case"creative-mail":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Creative Mail","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=creativemail"};case"monitor":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Downtime Monitoring","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=monitor"};case"newsletter":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Newsletter","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=subscriptions"};case"related-posts":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Related Posts","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=related%20posts"};case"protect":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Jetpack Protect","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=jetpack-protect"};case"site-accelerator":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Site Accelerator","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=cdn"};case"publicize":return{configureButtonLabel:(0,c.f$)(e).useAdminUiV1?__("View Jetpack Social settings","jetpack"):_x("Manage connections","","jetpack"),displayName:__("Social Media Sharing","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:(0,c.f$)(e).useAdminUiV1?"#/sharing":(0,i.Z)("calypso-marketing-connections",{site:(0,c.JR)(e)})};case"videopress":return{configureButtonLabel:__("How To","jetpack"),displayName:__("VideoPress","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:(0,i.Z)("jetpack-support-videopress-block-editor")};case"woocommerce":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("WooCommerce","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=wc-admin&path=%2Fsetup-wizard"};default:throw`Unknown feature slug in mapStateToSummaryFeatureProps() recommendations/feature-utils.js: ${t}`}},h=(e,t)=>{switch(t){case"agency":return{displayName:__("Jetpack for Agencies","jetpack"),ctaLabel:__("Sign Up","jetpack"),ctaLink:(0,i.Z)("jetpack-for-agencies-signup-assistant-recommendation")};case"backup-plan":return{displayName:__("Site Backups","jetpack"),ctaLabel:__("Read More","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-backups-101")};case"anti-spam":return{displayName:__("Spam Management","jetpack"),ctaLabel:__("Read More","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-spam-comments")};case"server-credentials":return{displayName:__("Server Credentials","jetpack"),ctaLabel:__("Add","jetpack"),ctaLink:(0,c.jU)(e,"settings")};case"vaultpress-backup":case"vaultpress-for-woocommerce":return{displayName:__("VaultPress Backup","jetpack")};default:throw`Unknown resource slug in getSummaryResourceProps() recommendations/feature-utils.js: ${t}`}},g=(e,t)=>{switch(t){case"backup-activated":return{displayName:__("Real-time Backups","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,c.jU)(e,"backup")};case"scan-activated":return{displayName:__("Real-time Malware Scanning","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,c.jU)(e,"scan")};case"unlimited-sharing-activated":return{displayName:__("Social Media Sharing","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack#/sharing"};case"social-advanced-activated":return{displayName:__("Advanced Sharing Features","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack#/sharing"};case"antispam-activated":return{displayName:__("Automated Spam Protection","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,d.dz)(e,t)?(0,c.wW)(e)+"admin.php?page=akismet-key-config":void 0};case"videopress-activated":return{displayName:__("Ad-free, Customizable Video","jetpack"),ctaLabel:__("Add a Video","jetpack"),ctaLink:(0,d.dz)(e,t)?(0,c.wW)(e)+"admin.php?page=jetpack-videopress":void 0};case"search-activated":return{displayName:__("Custom Site Search","jetpack"),ctaLabel:__("Customize","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack-search-configure"}}},k=(e,t)=>{switch(t){case"boost":return{activateFeature:()=>s.ZP.installPlugin("jetpack-boost","recommendations").then((()=>e((0,p.s4)())))};case"creative-mail":return{activateFeature:()=>s.ZP.installPlugin("creative-mail-by-constant-contact","recommendations").then((()=>e((0,p.s4)())))};case"monitor":return{activateFeature:()=>e((0,l.VP)({monitor:!0}))};case"newsletter":return{activateFeature:()=>e((0,l.VP)({subscriptions:!0}))};case"related-posts":return{activateFeature:()=>e((0,l.VP)({"related-posts":!0}))};case"protect":return{activateFeature:()=>s.ZP.installPlugin("jetpack-protect","recommendations").then((()=>e((0,p.s4)())))};case"site-accelerator":return{activateFeature:()=>e((0,l.VP)({photon:!0,"photon-cdn":!0,tiled_galleries:!0,"tiled-gallery":!0}))};case"publicize":return{activateFeature:()=>e((0,l.VP)({publicize:!0}))};case"videopress":return{activateFeature:()=>s.ZP.installPlugin("videopress","recommendations").then((()=>e((0,p.s4)())))};case"woocommerce":return{activateFeature:()=>s.ZP.installPlugin("woocommerce","recommendations").then((()=>e((0,p.s4)())))};default:throw`Unknown feature slug in mapDispatchToProps recommendations/feature-utils.js: ${t}`}},v=(e,t)=>{switch(t){case"agency":return{progressValue:"28",question:__("Manage your clients’ sites with ease","jetpack"),description:__("Jetpack’s world-class security features are now easier to manage for anyone with at least five WordPress websites.<br/><br/>Purchase and manage licenses, and get a 60% discount with our licensing platform.","jetpack"),ctaText:__("Get Jetpack for Agencies","jetpack"),ctaLink:(0,i.Z)("jetpack-for-agencies-signup-assistant-recommendation"),illustration:"assistant-agency"};case"backup-plan":return{question:__("Be prepared for auto-updates.","jetpack"),description:__("We noticed that you’ve recently enabled auto-updates for one of your plugins. Nice work, keeping plugins updated is vital for a healthy site!<br/><br/>Sometimes auto-updating plugins can cause unexpected changes on your site. Finding an older version of the plugin or learning how to install it to revert the changes can be challenging.<br/><br/>Here at Jetpack, we recommend regular backups of your site so you can go back in time with the click of a button.","jetpack"),ctaText:__("Learn More About Site Backups","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-backups-101")};case"boost":return{question:__("Get more views for your new page.","jetpack"),description:__("Fast websites mean more page visits and conversions. Even a one-second delay in loading times can reduce conversion rates by 20%.<br/><br/> Make your site blazing fast with <ExternalLink>Jetpack Boost’s</ExternalLink> simple dashboard and acceleration tool:","jetpack"),descriptionList:[__("Optimize CSS loading","jetpack"),__("Defer non-essential Javascript","jetpack"),__("Lazy image loading and site performance scores","jetpack")],descriptionLink:(0,i.Z)("jetpack-plugin-boost-recommendation"),ctaText:__("Install Jetpack Boost for free","jetpack")};case"creative-mail":return{progressValue:"76",question:__("Would you like to turn site visitors into subscribers?","jetpack"),description:__("The Jetpack Newsletter Form combined with Creative Mail by Constant Contact can help automatically gather subscribers and send them beautiful emails. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-jetpack-blocks-newsletter-sign-up"),ctaText:__("Install Creative Mail","jetpack"),illustration:"assistant-creative-mail"};case"newsletter":return{progressValue:"70",question:__("Send subscribers your latest blog posts via email?","jetpack"),description:__("With Jetpack Newsletter you can keep your audience engaged by automatically sending your content via email. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-newsletter-landing"),ctaText:__("Enable Newsletter","jetpack"),illustration:"assistant-newsletter"};case"monitor":return{progressValue:"52",question:__("Would you like Downtime Monitoring to notify you if your site goes offline?","jetpack"),description:__("If your site ever goes down, Downtime Monitoring will send you an email or push notitification to let you know. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-monitor"),ctaText:__("Enable Downtime Monitoring","jetpack"),illustration:"assistant-downtime-monitoring"};case"related-posts":return{progressValue:"64",question:__("Would you like Related Posts to display at the bottom of your content?","jetpack"),description:__("Displaying Related Posts at the end of your content keeps visitors engaged and on your site. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-related-posts"),ctaText:__("Enable Related Posts","jetpack"),illustration:"assistant-related-post"};case"site-accelerator":return{progressValue:"88",question:__("Would you like your site to load faster?","jetpack"),description:__("Faster sites get better ranking in search engines and help keep visitors on your site longer. Jetpack will automatically optimize and load your images and files from our global Content Delivery Network (CDN). <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-site-accelerator"),ctaText:__("Enable Site Accelerator","jetpack"),illustration:"assistant-site-accelerator"};case"publicize":return{question:__("Automatically share your posts to social media to grow your audience.","jetpack"),description:__("It’s easy to share your content to a wider audience by connecting your social media accounts to Jetpack. When you publish a post, it will automatically appear on all your favorite platforms. Best of all, it’s free. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-blog-social-sharing"),ctaText:__("Enable Social Media Sharing","jetpack")};case"protect":return{question:__("With more plugins comes more responsibility.","jetpack"),description:__("As you add plugins to your site, you have to start thinking about vulnerabilities.<br /><br /><strong>Jetpack Protect</strong> is a free security solution for WordPress that runs automated scans on your site and warns you about vulnerabilities.<br /><br />Focus on running your business while we protect your site with Jetpack Protect. <ExternalLink>Learn More</ExternalLink>.","jetpack"),descriptionLink:(0,i.Z)("jetpack-protect-assistant-recommendation"),ctaText:__("Install Protect for Free","jetpack")};case"anti-spam":return{question:__("It’s time to block spam comments.","jetpack"),description:__("Congratulations! Your content is getting traction and receiving comments. The more popular your content is, the more likely it is you will be a target for spam comments. To ensure a great experience for your readers, we recommend manually moderating spam or using an automated product like Jetpack Akismet Anti-spam.","jetpack"),ctaText:__("Learn how to block spam","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-spam-comments"),illustration:"assistant-antispam"};case"videopress":return{question:__("Share videos on your site to increase engagement and purchases.","jetpack"),description:__("No matter your business, adding videos to your site is essential for success. Jetpack VideoPress offers HD, ad-free video hosting, so you can keep the focus on your content. Try it for free or upgrade for more space. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-videopress"),ctaText:__("Try VideoPress for free","jetpack")};case"woocommerce":return{progressValue:"40",question:__("Would you like WooCommerce to power your store?","jetpack"),description:__("We’re partnered with <strong>WooCommerce</strong> — a customizable, open-source eCommerce platform built for WordPress. It’s everything you need to start selling products today. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("woocommerce-features-landing"),ctaText:__("Install WooCommerce","jetpack"),illustration:"assistant-woo-commerce"};case"welcome__backup":return{ /* translators: <nbsp/> represents a non-breakable space */ question:__("Welcome to Jetpack VaultPress<nbsp/>Backup!","jetpack"),description:__("Real-time cloud-based backups are now active for your site. Save every change and get back online in one click from desktop and mobile.","jetpack"),ctaText:__("Manage Backups","jetpack"),ctaLink:(0,c.jU)(e,"backup"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"welcome__complete":return{question:__("Welcome to Jetpack Complete!","jetpack"),description:__("Congratulations, you’ve just unlocked the full power of the Jetpack suite; all of our Security, Performance, Growth, and Design tools.","jetpack"),ctaText:__("Set up your new tools","jetpack"),hasNoAction:!0,illustration:"assistant-complete-welcome"};case"welcome__security":return{question:__("Welcome to Jetpack Security!","jetpack"),description:__("Congratulations, you’ve just unlocked comprehensive WordPress site security, including backups, malware scanning, and spam protection.","jetpack"),ctaText:__("Set up your new tools","jetpack"),hasNoAction:!0};case"welcome__starter":return{question:__("Welcome to Jetpack Starter!","jetpack"),description:__("Congratulations! You’ve unlocked essential security tools for your site, including real-time backups and spam protection for comments and forms. Let’s get everything set up. It will only take a minute.","jetpack"),ctaText:__("Set up Jetpack Starter","jetpack"),hasNoAction:!0};case"welcome__antispam":return{ /* translators: <nbsp/> represents a non-breakable space */ question:__("Welcome to Jetpack Akismet<nbsp/>Anti-spam!","jetpack"),description:__("Automated spam protection is now active for comments and forms. We’ll flag anything that looks suspicious and comments will now be available to moderate.","jetpack"),ctaText:__("Configure Akismet Anti-spam","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=akismet-key-config",illustration:"assistant-antispam",skipText:__("Next","jetpack")};case"welcome__videopress":return{question:__("Welcome to Jetpack VideoPress!","jetpack"),description:__("Jetpack VideoPress is now active. Stunning-quality video with none of the hassle. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.","jetpack"),ctaText:__("Learn how to add videos to your site","jetpack"),ctaLink:(0,i.Z)("jetpack-support-videopress-block-editor"),illustration:"assistant-videopress",skipText:__("Next","jetpack")};case"welcome__search":return{question:__("Welcome to Jetpack Search!","jetpack"),description:__("Jetpack Search is now active. Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),ctaText:__("Customize Search","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack-search-configure",illustration:"assistant-search",skipText:__("Next","jetpack")};case"welcome__scan":return{question:__("Welcome to Jetpack Scan!","jetpack"),description:__("Automated malware scanning is live and your site’s first scan is underway. We’ll notify you if we detect anything suspicious, with one-click fixes for most issues.","jetpack"),ctaText:__("View Security Dashboard","jetpack"),ctaLink:(0,c.jU)(e,"scan"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"welcome__social_basic":return{question:__("Welcome to Jetpack Social!","jetpack"),description:__("With your new basic plan you unlocked unlimited sharing, and access to our priority support. You can share your posts from the post editor to your connected social media accounts<br/><br/>Let's start with connecting your social media accounts, if you haven't already.","jetpack"),ctaText:__("Manage Social Media Connections","jetpack"),ctaLink:(0,i.Z)("calypso-marketing-connections",{site:(0,c.JR)(e)}),illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"welcome__social_advanced":return{question:__("Welcome to Jetpack Social!","jetpack"),description:__("With your new advanced plan you unlocked unlimited sharing, access to upload photos and videos with your posts, and usage of Social Image Generator.<br/><br/>Let's start with connecting your social media accounts, if you haven't already.","jetpack"),ctaText:__("Manage Social Media Connections","jetpack"),ctaLink:(0,i.Z)("calypso-marketing-connections",{site:(0,c.JR)(e)}),illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"welcome__social_image_generator":return{question:__("Social Image Generator","jetpack"),description:__("Create beautiful social media previews for your posts with Social Image Generator. You can customize the text, image, and template to match your brand.<br/><br/>You can turn on Social Image Generator for individual posts from the post editor, or turn it on by default for all future posts from the Jetpack Social Settings.","jetpack"),ctaText:__("View Jetpack Social settings","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack#/sharing",illustration:"assistant-social-image-post",skipText:__("Next","jetpack")};case"welcome__golden_token":return{question:__("Congratulations, you have been gifted a Jetpack Golden Token!","jetpack"),description:__("Congratulations, your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack"),descriptionList:[__("Jetpack VaultPress Backup","jetpack"),__("Jetpack Scan","jetpack")],ctaText:__("Set up your new powers","jetpack"),hasNoAction:!0,illustration:"assistant-golden-token-welcome"};case"backup-activated":return{question:__("Site backups are live","jetpack"),description:__("Real-time cloud-based backups are now active for your site. Save every change and get back online in one click from desktop and mobile.","jetpack"),ctaText:__("Manage Backups","jetpack"),ctaLink:(0,c.jU)(e,"backup"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"scan-activated":return{question:__("Real-time Malware Scanning","jetpack"),description:__("Automated malware scanning is live and your site’s first scan is underway. We’ll notify you if we detect anything suspicious, with one-click fixes for most issues.","jetpack"),ctaText:__("View Security Dashboard","jetpack"),ctaLink:(0,c.jU)(e,"scan"),illustration:"assistant-malware-scanning",skipText:__("Next","jetpack")};case"unlimited-sharing-activated":return{question:__("Jetpack Social","jetpack"),description:__("It’s easy to share your content to a wider audience by connecting your social media accounts to Jetpack. When you publish a post, it will automatically appear on all your favorite platforms.","jetpack"),ctaText:__("View Jetpack Social settings","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack#/sharing",illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"social-advanced-activated":return{question:__("Advanced Sharing features","jetpack"),description:__("Use your unlocked unlimited sharing, upload photos and videos with your posts, and create previews with Social Image Generator. To use these features, just head to the post editor and start creating your post!<br/><br/>You can manage your connections, and tweak features like Social Image Generator from the Jetpack Social Settings.","jetpack"),ctaText:__("View Jetpack Social settings","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack#/sharing",illustration:"assistant-social-image-post",skipText:__("Next","jetpack")};case"antispam-activated":return{question:__("Live Spam Protection","jetpack"),description:__("Automated spam protection is now active for comments and forms. We’ll flag anything that looks suspicious and comments will now be available to moderate.","jetpack"),ctaText:__("Configure Akismet Anti-spam","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=akismet-key-config",illustration:"assistant-antispam",skipText:__("Next","jetpack")};case"videopress-activated":return{question:__("Ad-free, Customizable Video","jetpack"),description:__("Jetpack VideoPress is now active. Stunning-quality video with none of the hassle. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.","jetpack"),ctaText:__("Learn how to add videos to your site","jetpack"),ctaLink:(0,i.Z)("jetpack-support-videopress-block-editor"),illustration:"assistant-videopress",skipText:__("Next","jetpack")};case"search-activated":return{question:__("Custom Site Search","jetpack"),description:__("Jetpack Search is now active. Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),ctaText:__("Customize Search","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack-search-configure",illustration:"assistant-search",skipText:__("Next","jetpack")};case"server-credentials":return{question:__("Setup one-click restores","jetpack"),description:__("To restore your site to a previous version, you need to add your server credentials. We recommend doing this now so you can restore your site in one click if you encounter issues in the future.","jetpack"),ctaText:__("Add server credentials","jetpack"),ctaLink:(0,c.jU)(e,"settings"),illustration:"assistant-server-credentials"};case"vaultpress-backup":{const t=(0,c.JR)(e),a=(0,u.cR)(e,o.tVY),n=()=>(0,u.aX)(e)?__("Get a discount for your first year","jetpack"):a>0?(0,r.sprintf)(/* translators: %(discount)s: is a discount percentage. e.g. 50 */ __("Get %(discount)s%% off your first year","jetpack"),{discount:a}):__("Get VaultPress Backup","jetpack");return{progressValue:100,question:__("Never lose your site, even if your host goes down (along with your backups)","jetpack"),description:"",descriptionList:[__("VaultPress Backup is built specifically for WordPress and has done over 270 million backups to date.","jetpack"),__("We store copies of your backups in our secure cloud, so your content will never be lost.","jetpack"),__("If your site goes down, you can restore it with one click from desktop or the Jetpack mobile app.","jetpack"),__("VaultPress Backup is so easy to use; no developer required.","jetpack")],ctaText:n(),ctaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:t,path:o.tVY}),illustration:"assistant-backup-welcome"}}case"vaultpress-for-woocommerce":{const t=(0,c.JR)(e),a=(0,u.Ki)(e,o.tVY),s=(0,u.gp)(e,o.tVY),l=(0,n.ZP)(a,s?.currency_code),p=(0,u.aX)(e)?__("Try for 30 days","jetpack"):(0,r.sprintf)(/* translators: %s: is a formatted currency. e.g. $1 */ __("Try for %s for 30 days","jetpack"),l);return{progressValue:100,question:__("Store downtime means lost sales. Do you have a cloud-based store backup solution?","jetpack"),description:__("VaultPress Backup saves your store in the cloud, so even if your host goes down, you’ll never lose a thing.","jetpack"),descriptionList:[__("Restore your site to any past state in one click while keeping all orders and products current.","jetpack"),__("Backups are encrypted, keeping your store data secure.","jetpack"),__("Protect your customer data and stay GDPR compliant.","jetpack"),__("Custom WooCommerce table backups.","jetpack"),__("Easy to use; no developer required.","jetpack")],ctaText:p,ctaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:t,path:o.tVY}),illustration:"assistant-backup-welcome"}}default:throw`Unknown step slug in recommendations/question: ${t}`}},f=(e,t)=>{const a=(0,c.JR)(e),n=(0,c.Q6)(e);switch(t){case o.Etl:return{productCardTitle:__("Increase your site security!","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Jetpack Security","jetpack"),productCardList:n.security?n.security.features:[],productCardIcon:"/recommendations/cloud-icon.svg"};case o.PuQ:return{productCardTitle:__("Grow and monetize your audience","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Jetpack Creator","jetpack"),productCardList:n.creator?n.creator.features:[],productCardIcon:"/recommendations/creator-icon.svg"};case o.shc:return{productCardTitle:__("Block spam automatically with Jetpack Akismet Anti-spam","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Akismet Anti-spam","jetpack"),productCardList:n.akismet?n.akismet.features:[],productCardIcon:"/recommendations/bug-icon.svg"};case o.v_I:return{productCardTitle:__("Upgrade for more videos and storage","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get VideoPress","jetpack"),productCardList:n.videopress?n.videopress.features:[],productCardIcon:"/recommendations/video-icon.svg"};case o.tVY:return{productCardTitle:__("Go back in time with one click","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Jetpack VaultPress Backup","jetpack"),productCardList:n.backup?n.backup.features:[],productCardIcon:"/recommendations/cloud-icon.svg",productCardDisclaimer:n.backup?n.backup.disclaimer:""};default:throw`Unknown product slug for getProductCardData: ${t}`}},E=(e,t,a)=>{if(t===o.Etl){if("publicize"===a)return{productCardTitle:__("Your site is growing. It’s time for a security plan.","jetpack")};if("protect"===a)return{productCardTitle:__("Jetpack Security gives you complete site protection and backups.","jetpack")}}return{}}},71912:(e,t,a)=>{"use strict";a.d(t,{Z:()=>d});var n=a(82674),s=a.n(n),i=a(99196),r=a.n(i),o=a(59309),c=a(69508),l=a(16876),p=a(38356);const d=e=>(0,o.$j)((e=>({discountData:(0,l.u)(e),siteAdminUrl:(0,c.wW)(e),siteRawUrl:(0,c.JR)(e),blogID:(0,c.EZ)(e)})))((t=>{const{slug:a,discountData:n,siteAdminUrl:o,siteRawUrl:c,blogID:l}=t,{code:d}=n,u=(0,i.useMemo)((()=>(0,p.N)(a,o,c,d,l)),[a,o,c,d,l]);return r().createElement(e,s()({upgradeUrl:u},t))}))},22267:(e,t,a)=>{"use strict";a.d(t,{V:()=>Z});var n=a(6895),s=a(65736),i=a(53190),r=a(85182),o=a(70298),c=a(18882),l=a(90023),p=a(88546),d=a(69270),u=a(92658),m=a(7679),h=a(72129),g=a(99196),k=a.n(g),v=a(59309),f=a(44498),E=a(69508),_=a(8722),b=a(33002),y=a(24289),w=a(39398),C=a(14404),j=a(69720),S=a(15376),N=a(96816),x=a(97392),R=a(43026);const __=s.__,Z=(0,v.$j)((e=>({isLoading:!(0,_.WA)(e)||!(0,_.i8)(e)||(0,b._5)(e),step:(0,_.TO)(e),onboardingData:(0,_.YU)(e),newRecommendations:(0,E.YJ)(e)})),(e=>({updateOnboardingData:t=>e((0,_.y5)(t)),updateStep:t=>e((0,_.OC)(t))})))((e=>{const{isLoading:t,step:a,newRecommendations:s}=e;let v;switch(a){case w.uw.NOT_STARTED:case w.uw.SITE_TYPE:v="/site-type";break;case w.uw.PRODUCT_SUGGESTIONS:v="/product-suggestions";break;case w.uw.PRODUCT_PURCHASED:v="/product-purchased";break;case w.uw.AGENCY:v="/agency";break;case w.uw.WOOCOMMERCE:v="/woocommerce";break;case w.uw.MONITOR:v="/monitor";break;case w.uw.NEWSLETTER:v="/newsletter";break;case w.uw.RELATED_POSTS:v="/related-posts";break;case w.uw.CREATIVE_MAIL:v="/creative-mail";break;case w.uw.SITE_ACCELERATOR:v="/site-accelerator";break;case w.uw.VAULTPRESS_BACKUP:v="/vaultpress-backup";break;case w.uw.VAULTPRESS_FOR_WOOCOMMERCE:v="/vaultpress-for-woocommerce";break;case w.uw.PUBLICIZE:v="/publicize";break;case w.uw.PROTECT:v="/protect";break;case w.uw.ANTI_SPAM:v="/anti-spam";break;case w.uw.VIDEOPRESS:v="/videopress";break;case w.uw.BACKUP_PLAN:v="/backup-plan";break;case w.uw.BOOST:v="/boost";break;case w.uw.SUMMARY:v="/summary";break;case w.uw.WELCOME__BACKUP:v="/welcome-backup";break;case w.uw.WELCOME__COMPLETE:v="/welcome-complete";break;case w.uw.WELCOME__SECURITY:v="/welcome-security";break;case w.uw.WELCOME__STARTER:v="/welcome-starter";break;case w.uw.WELCOME__ANTISPAM:v="/welcome-antispam";break;case w.uw.WELCOME__VIDEOPRESS:v="/welcome-videopress";break;case w.uw.WELCOME__SEARCH:v="/welcome-search";break;case w.uw.WELCOME__SCAN:v="/welcome-scan";break;case w.uw.WELCOME__SOCIAL_BASIC:v="/welcome-social-basic";break;case w.uw.WELCOME__SOCIAL_ADVANCED:v="/welcome-social-advanced";break;case w.uw.WELCOME__SOCIAL_IMAGE_GENERATOR:v="welcome-social-image-generator";break;case w.uw.WELCOME__GOLDEN_TOKEN:v="/welcome-golden-token";break;case w.uw.SERVER_CREDENTIALS:v="/server-credentials";break;case w.uw.BACKUP_ACTIVATED:v="/backup-activated";break;case w.uw.SCAN_ACTIVATED:v="/scan-activated";break;case w.uw.UNLIMITED_SHARING_ACTIVATED:v="/unlimited-sharing-activated";break;case w.uw.SOCIAL_ADVANCED_ACTIVATED:v="/social-advanced-activated";break;case w.uw.ANTISPAM_ACTIVATED:v="/antispam-activated";break;case w.uw.VIDEOPRESS_ACTIVATED:v="/videopress-activated";break;case w.uw.SEARCH_ACTIVATED:v="/search-activated";break;default:v="/summary"}const E=e=>s&&s.includes(e);return(({step:e,isLoading:t,onboardingData:a,updateOnboardingData:n,updateStep:s})=>{const[i,r]=(0,g.useState)(!1);(0,g.useEffect)((()=>{if(!i&&a&&!t){const{active:t,hasStarted:i,viewed:o}=a;r(!0),t&&!i?(s(e),n({...a,hasStarted:!0})):n({viewed:o})}}),[t,a,n,e,s,i])})(e),k().createElement(k().Fragment,null,k().createElement("h1",{className:"screen-reader-text"},__("Jetpack Recommendations","jetpack")),k().createElement(o.Z,null),k().createElement(c.Z,null),k().createElement(l.Z,null),k().createElement(r.Z,null),k().createElement(p.Z,null),k().createElement(d.Z,null),k().createElement(m.Z,null),k().createElement(u.Z,null),k().createElement(y.Z,null),k().createElement(i.Z,null),t?k().createElement("div",{className:"jp-recommendations__loading"},k().createElement(h.D,{altText:__("Loading recommendations","jetpack")})):k().createElement(f.rs,null,k().createElement(f.l_,{exact:!0,from:"/recommendations",to:"/recommendations"+v}),k().createElement(f.AW,{path:"/recommendations/site-type"},k().createElement(x.g,null)),k().createElement(f.AW,{path:"/recommendations/product-suggestions"},k().createElement(S.V,null)),k().createElement(f.AW,{path:"/recommendations/product-purchased"},k().createElement(C.Y,null)),k().createElement(f.AW,{path:"/recommendations/agency"},k().createElement(N.t,{stepSlug:"agency"})),k().createElement(f.AW,{path:"/recommendations/woocommerce"},k().createElement(j.Q,{stepSlug:"woocommerce"})),k().createElement(f.AW,{path:"/recommendations/monitor"},k().createElement(j.Q,{stepSlug:"monitor"})),k().createElement(f.AW,{path:"/recommendations/newsletter"},k().createElement(j.Q,{stepSlug:"newsletter"})),k().createElement(f.AW,{path:"/recommendations/related-posts"},k().createElement(j.Q,{stepSlug:"related-posts"})),k().createElement(f.AW,{path:"/recommendations/creative-mail"},k().createElement(j.Q,{stepSlug:"creative-mail"})),k().createElement(f.AW,{path:"/recommendations/site-accelerator"},k().createElement(j.Q,{stepSlug:"site-accelerator"})),k().createElement(f.AW,{path:"/recommendations/vaultpress-backup"},k().createElement(N.t,{stepSlug:"vaultpress-backup"})),k().createElement(f.AW,{path:"/recommendations/vaultpress-for-woocommerce"},k().createElement(N.t,{stepSlug:"vaultpress-for-woocommerce"})),k().createElement(f.AW,{path:"/recommendations/publicize"},k().createElement(j.Q,{stepSlug:"publicize",isNew:E("publicize")})),k().createElement(f.AW,{path:"/recommendations/protect"},k().createElement(j.Q,{stepSlug:"protect",isNew:E("protect")})),k().createElement(f.AW,{path:"/recommendations/anti-spam"},k().createElement(N.t,{stepSlug:"anti-spam",isNew:E("anti-spam")})),k().createElement(f.AW,{path:"/recommendations/videopress"},k().createElement(j.Q,{stepSlug:"videopress",isNew:E("videopress")})),k().createElement(f.AW,{path:"/recommendations/backup-plan"},k().createElement(N.t,{stepSlug:"backup-plan",isNew:E("backup-plan")})),k().createElement(f.AW,{path:"/recommendations/boost"},k().createElement(j.Q,{stepSlug:"boost",isNew:E("boost")})),k().createElement(f.AW,{path:"/recommendations/welcome-backup"},k().createElement(N.t,{stepSlug:"welcome__backup"})),k().createElement(f.AW,{path:"/recommendations/welcome-complete"},k().createElement(N.t,{stepSlug:"welcome__complete"})),k().createElement(f.AW,{path:"/recommendations/welcome-starter"},k().createElement(N.t,{stepSlug:"welcome__starter"})),k().createElement(f.AW,{path:"/recommendations/welcome-security"},k().createElement(N.t,{stepSlug:"welcome__security"})),k().createElement(f.AW,{path:"/recommendations/welcome-antispam"},k().createElement(N.t,{stepSlug:"welcome__antispam"})),k().createElement(f.AW,{path:"/recommendations/welcome-videopress"},k().createElement(N.t,{stepSlug:"welcome__videopress"})),k().createElement(f.AW,{path:"/recommendations/welcome-search"},k().createElement(N.t,{stepSlug:"welcome__search"})),k().createElement(f.AW,{path:"/recommendations/welcome-scan"},k().createElement(N.t,{stepSlug:"welcome__scan"})),k().createElement(f.AW,{path:"/recommendations/welcome-social-basic"},k().createElement(N.t,{stepSlug:"welcome__social_basic"})),k().createElement(f.AW,{path:"/recommendations/welcome-social-advanced"},k().createElement(N.t,{stepSlug:"welcome__social_advanced"})),k().createElement(f.AW,{path:"/recommendations/welcome-social-image-generator"},k().createElement(N.t,{stepSlug:"welcome__social_image_generator"})),k().createElement(f.AW,{path:"/recommendations/welcome-golden-token"},k().createElement(N.t,{stepSlug:"welcome__golden_token"})),k().createElement(f.AW,{path:"/recommendations/backup-activated"},k().createElement(N.t,{stepSlug:"backup-activated"})),k().createElement(f.AW,{path:"/recommendations/scan-activated"},k().createElement(N.t,{stepSlug:"scan-activated"})),k().createElement(f.AW,{path:"/recommendations/unlimited-sharing-activated"},k().createElement(N.t,{stepSlug:"unlimited-sharing-activated"})),k().createElement(f.AW,{path:"/recommendations/social-advanced-activated"},k().createElement(N.t,{stepSlug:"social-advanced-activated"})),k().createElement(f.AW,{path:"/recommendations/antispam-activated"},k().createElement(N.t,{stepSlug:"antispam-activated"})),k().createElement(f.AW,{path:"/recommendations/videopress-activated"},k().createElement(N.t,{stepSlug:"videopress-activated"})),k().createElement(f.AW,{path:"/recommendations/search-activated"},k().createElement(N.t,{stepSlug:"search-activated"})),k().createElement(f.AW,{path:"/recommendations/server-credentials"},k().createElement(N.t,{stepSlug:"server-credentials"})),k().createElement(f.AW,{path:"/recommendations/summary"},k().createElement(R.E,{newRecommendations:s}))),k().createElement("div",{className:"jp-recommendations__links"},k().createElement("a",{role:"button",tabIndex:"0",href:(0,n.Z)("jetpack-support-getting-started")},__("Learn how to get started with Jetpack","jetpack")),k().createElement("a",{role:"button",tabIndex:"0",href:(0,n.Z)("jetpack-support")},__("Search our support site","jetpack"))))}))},18821:(e,t,a)=>{"use strict";a.d(t,{u:()=>w});var n=a(82674),s=a.n(n),i=a(25607),r=a(16554),o=a(65736),c=a(3228),l=a(97506),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u),h=a(59309),g=a(36920),k=a(16876),v=a(23494),f=a(71912),E=a(36622),_=a(17279);const __=o.__,b=({className:e,integer:t,fraction:a,symbol:n})=>m().createElement("div",{className:e},m().createElement("sup",{className:"jp-recommendations-product-card-upsell__currency-symbol"},n),m().createElement("span",{className:"jp-recommendations-product-card-upsell__price-integer"},t),m().createElement("sup",{className:"jp-recommendations-product-card-upsell__price-fraction"},a)),y=({slug:e,cost:t,title:a,description:n,billing_timeframe:p,cost_timeframe:d,currency_code:h,isRecommended:g,features:k,onClick:f,onMount:y,isFetchingDiscount:w,isFetchingOffers:C,discountData:j,introOffers:S,upgradeUrl:N})=>{const{discount:x}=j,R=(0,u.useMemo)((()=>(0,_.h)(j)),[j]),Z=(0,u.useMemo)((()=>S.find((({product_slug:t})=>t===e))||{}),[e,S]),{original_price:T,raw_price:A}=Z,M=T||12*t,P=A||M,O=(0,r.Z)(Z),L=!O&&R&&x?P*(1-x/100):P,I=M?Math.round((M-L)/M*100):null,D=(0,u.useMemo)((()=>(0,i.LR)(M/12,h)),[M,h]),U=(0,u.useMemo)((()=>(0,i.LR)(L/12,h)),[L,h]),z=new URL(N);O&&z.searchParams.delete("coupon");const V=g&&m().createElement(E.Z,{className:"jp-recommendations-product-card-upsell__header"});return(0,u.useEffect)((()=>{y&&y()}),[y]),m().createElement("div",{className:(0,c.Z)("jp-recommendations-product-card-upsell",{"with-header":!!V})},V,m().createElement("h1",{className:"jp-recommendations-product-card-upsell__heading"},a),m().createElement("p",{className:"jp-recommendations-product-card-upsell__description"},n),m().createElement("ul",{className:"jp-recommendations-product-card-upsell__features jp-recommendations-sidebar-card__features"},k.map((e=>m().createElement("li",{key:e},e)))),!(w||C)&&m().createElement(m().Fragment,null,m().createElement("div",{className:"jp-recommendations-product-card-upsell__price-container"},m().createElement("div",{className:"jp-recommendations-product-card-upsell__price"},R&&m().createElement(b,s()({className:"jp-recommendations-product-card-upsell__raw-price"},D)),m().createElement(b,s()({className:"jp-recommendations-product-card-upsell__final-price"},U)),R&&m().createElement(v.Z,{className:"jp-recommendations-product-card-upsell__discount",discount:I,suffix:"*"})),m().createElement("div",{className:"jp-recommendations-product-card-upsell__billing-time-frame"},`${d}, ${p}`))),m().createElement(l.Z,{className:"jp-recommendations-product-card-upsell__cta-button",primary:!g,rna:!0,href:z.toString(),onClick:f,target:"_blank",rel:"noopener noreferrer"},/* translators: %s: Jetpack product name. */ /* translators: %s: Jetpack product name. */ (0,o.sprintf)(__("Get %s","jetpack"),a)))};y.propTypes={slug:d().string.isRequired,cost:d().number,title:d().string.isRequired,description:d().string.isRequired,billing_timeframe:d().string.isRequired,cost_timeframe:d().string.isRequired,currency_code:d().string.isRequired,features:d().arrayOf(d().string).isRequired,isRecommended:d().bool,onClick:d().func,onMount:d().func};const w=(0,h.$j)((e=>({isFetchingDiscount:(0,k.Zd)(e),isFetchingOffers:(0,g.HW)(e),discountData:(0,k.u)(e),introOffers:(0,g.ni)(e)})))((0,f.Z)(y))},14404:(e,t,a)=>{"use strict";a.d(t,{Y:()=>k});var n=a(94343),s=a(65736),i=a(97506),r=a(5060),o=a(72129),c=a(84069),l=a(92819),p=a(99196),d=a.n(p),u=a(59309),m=a(8722),h=a(33002),g=a(19916);const __=s.__,_x=s._x,k=(0,u.$j)((e=>({activePurchases:(0,h.p)(e),isFetchingSiteData:(0,h._5)(e),isFetchingSuggestions:(0,m.at)(e),nextRoute:(0,m.mI)(e),sitePlan:(0,h.UL)(e),suggestions:(0,m.El)(e)})))((e=>{const{nextRoute:t}=e,a=(({activePurchases:e,isFetchingSiteData:t,isFetchingSuggestions:a,sitePlan:n,suggestions:s})=>{if(t||a)return!1;if(!s||!(0,l.isArray)(s))return!1;const i=s.find((e=>e.slug===n.product_slug));if(i)return i;if((0,l.isArray)(e)){const t=s.find((t=>{if(e.find((e=>t.slug===e.product_slug)))return t}));if(t)return t}return!1})(e);if((0,p.useEffect)((()=>{a&&c.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_purchased",{type:a.slug})}),[a]),!a)return d().createElement(o.D,{altText:__("Loading recommendations","jetpack")});const s=d().createElement("div",{className:"jp-recommendations-product-purchased"},d().createElement("ul",{className:"jp-recommendations-product-purchased__features"},a&&a.features.map(((e,t)=>d().createElement("li",{className:"jp-recommendations-product-purchased__feature",key:t},d().createElement(r.Z,{icon:"checkmark"}),e)))),d().createElement(i.Z,{primary:!0,rna:!0,className:"jp-recommendations-product-purchased__next",href:t},_x("Configure your site","Recommendations Product Purchased","jetpack")));return d().createElement(g.X,{progressBar:d().createElement(n.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:.33}),question:__("Your plan has been upgraded!","jetpack"),description:__("You now have access to these benefits:","jetpack"),answer:s,illustration:"assistant-product-purchased",illustrationClassName:"jp-recommendations-product-purchased__illustration"})}))},90068:(e,t,a)=>{"use strict";a.d(t,{C:()=>m});var n=a(3228),s=a(42698),i=a(84069),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(59309),d=a(8722);const u=({answerKey:e,checked:t,info:a,title:r,updateCheckboxAnswer:o})=>{const p=(0,c.useCallback)((()=>o({[e]:!t})),[e,t,o]),d=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_site_type_popover_click",{type:e.replace("-","_")})}),[e]);return l().createElement("div",{className:"jp-checkbox-answer__container"},l().createElement("label",{htmlFor:e,className:(0,n.Z)("jp-checkbox-answer__title",{checked:t})},l().createElement("input",{id:e,className:"jp-checkbox-answer__checkbox-input",type:"checkbox",checked:t,onChange:p}),r),l().createElement("div",{className:"jp-checkbox-answer__info"},l().createElement(s.Z,{position:"top right",onClick:d},a)))};u.propTypes={answerKey:o().string.isRequired,info:o().string.isRequired,title:o().string.isRequired};const m=(0,p.$j)(((e,t)=>({checked:(0,d.$q)(e,t.answerKey)})),(e=>({updateCheckboxAnswer:t=>e((0,d.x5)(t))})))(u)},69720:(e,t,a)=>{"use strict";a.d(t,{Q:()=>_});var n=a(94343),s=a(55609),i=a(69307),r=a(65736),o=a(97506),c=a(5060),l=a(84069),p=a(99196),d=a.n(p),u=a(59309),m=a(8722),h=a(39398),g=a(97684),k=a(86095),v=a(28747),f=a(29162),E=a(19916);const __=r.__,_=(0,u.$j)(((e,t)=>({nextRoute:(0,m.mI)(e),...(0,g.gU)(e,t.stepSlug),...(0,g.mp)(e,t.stepSlug),stateStepSlug:(0,m.TO)(e),updatingStep:(0,m.ZL)(e),canShowProductSuggestions:(0,m.sB)(e),discountViewedStep:(0,m.VZ)(e),featureActive:(0,m.dz)(e,t.stepSlug),summaryViewed:(0,m.E3)(e,"summary"),spotlightProduct:(0,m.fo)(e,t.stepSlug),...(0,m.F_)(e)?{stepProgressValue:(0,m.HZ)(e),summaryViewed:!1}:{}})),((e,t)=>({addSelectedRecommendation:t=>e((0,m.Pq)(t)),addSkippedRecommendation:t=>e((0,m.J_)(t)),addViewedRecommendation:t=>e((0,m.Hm)(t)),updateRecommendationsStep:t=>e((0,m.OC)(t)),startFeatureInstall:t=>e((0,m.s2)(t)),endFeatureInstall:t=>e((0,m.Ti)(t)),...(0,g.ZS)(e,t.stepSlug)})))((e=>{const{activateFeature:t,addSelectedRecommendation:a,addSkippedRecommendation:r,addViewedRecommendation:u,startFeatureInstall:m,endFeatureInstall:g,ctaText:_,description:b,descriptionLink:y,descriptionList:w,descriptionSecondary:C,illustration:j,nextRoute:S,progressValue:N,stepProgressValue:x,question:R,stepSlug:Z,stateStepSlug:T,updatingStep:A,updateRecommendationsStep:M,spotlightProduct:P,isNew:O,canShowProductSuggestions:L,discountViewedStep:I,featureActive:D,configureButtonLabel:U,configLink:z,summaryViewed:V}=e;(0,p.useEffect)((()=>{Z!==T?M(Z):Z!==T||A||(u(Z),l.Z.tracks.recordEvent("jetpack_recommendations_recommendation_viewed",{feature:Z}))}),[Z,T,A,M,u]);const F=!I||I===Z,B=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_learn_more_click",{feature:Z})}),[Z]),H=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_enable_click",{feature:Z}),a(Z),m(Z),t().finally((()=>{g(Z)}))}),[t,a,Z,m,g]),q=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_configure_click",{feature:Z})}),[Z]),J=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_decide_later_click",{feature:Z}),r(Z)}),[r,Z]),W=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_back_to_summary_click",{feature:Z})}),[Z]),G=(0,p.useMemo)((()=>z.match(/^https:\/\/jetpack.com\/redirect/)),[z]);let $=null;P?$=d().createElement(v.N,{productSlug:P,stepSlug:Z}):F&&L&&($=d().createElement(k.Z,null));const K=(0,p.useMemo)((()=>x?d().createElement(f.R,x):N?d().createElement(n.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:N/100}):null),[x,N]);return d().createElement(E.X,{progressBar:K,isNew:O,question:R,description:(0,i.createInterpolateElement)(b,{br:d().createElement("br",null),strong:d().createElement("strong",null),ExternalLink:d().createElement(s.ExternalLink,{href:y,onClick:B})}),content:w||C?d().createElement(d().Fragment,null,w&&d().createElement("ul",{className:"jp-recommendations-question__description-list"},w.map(((e,t)=>d().createElement("li",{key:t},e)))),C&&d().createElement("p",{className:"jp-recommendations-question__description"},C)):null,answer:d().createElement("div",{className:"jp-recommendations-question__install-section"},D?d().createElement(d().Fragment,null,d().createElement("div",{className:"jp-recommendations-question__feature-enabled"},d().createElement("div",{className:"jp-recommendations-question__checkmark"},d().createElement(c.Z,{icon:"checkmark-circle",size:24})),d().createElement("span",null,__("Feature Enabled","jetpack"))),d().createElement("div",{className:"jp-recommendations-question__settings-button"},G?d().createElement(s.ExternalLink,{type:"button",className:"dops-button is-rna",href:z,onClick:q},U):d().createElement(o.Z,{rna:!0,href:z,onClick:q},U))):d().createElement(o.Z,{primary:!0,rna:!0,href:S,onClick:H},_),d().createElement("div",{className:"jp-recommendations-question__jump-nav"},d().createElement("a",{href:S,onClick:J},D&&__("Next","jetpack"),!D&&__("Not now","jetpack")),V&&d().createElement(d().Fragment,null,d().createElement("span",{className:"jp-recommendations-question__jump-nav-separator"},"|"),d().createElement("a",{onClick:W,href:"#/recommendations/summary"},__("View Recommendations","jetpack")," ")))),sidebarCard:$,illustration:j||h.lY})}))},59908:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(82674),s=a.n(n),i=a(84069),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(59309),d=a(8722),u=a(33002),m=a(18821),h=a(17279);const g=({product:e,addSelectedRecommendation:t,upsell:a,discountData:n})=>{const r=(0,c.useMemo)((()=>(0,h.h)(n)),[n]),o=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_click",{product_slug:e.slug,discount:r}),t("product-suggestions")}),[e,t,r]),p=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_display",{product_slug:e.slug,discount:r})}),[e,r]);return l().createElement(m.u,s()({},e,{isRecommended:e.slug===a?.product_slug,onClick:o,onMount:p}))};g.propTypes={product:o().object.isRequired};const k=(0,p.$j)((e=>({upsell:(0,d.jn)(e),discountData:(0,u.u)(e)})),(e=>({addSelectedRecommendation:t=>e((0,d.Pq)(t))})))(g)},15376:(e,t,a)=>{"use strict";a.d(t,{V:()=>k});var n=a(65736),s=a(72129),i=a(23609),r=a(99196),o=a.n(r),c=a(59309),l=a(44498),p=a(8722),d=a(16876),u=a(98014),m=a(88842),h=a(17279),g=a(59908);const __=n.__,k=(0,c.$j)((e=>({nextRoute:(0,p.mI)(e),isProductSuggestionsAvailable:(0,p.sB)(e),isFetchingSuggestions:(0,p.at)(e),isFetchingDiscount:(0,d.Zd)(e),isFetchingUpsell:(0,p.b5)(e),suggestions:(0,p.El)(e),discountData:(0,d.u)(e)})))((({nextRoute:e,isProductSuggestionsAvailable:t,isFetchingSuggestions:a,isFetchingDiscount:n,isFetchingUpsell:c,suggestions:p,discountData:d})=>{const{expiry_date:k}=d,v=(0,r.useMemo)((()=>(0,h.h)(d)),[d]);return a||c?o().createElement(s.D,{altText:__("Loading recommendations","jetpack")}):t?o().createElement("section",{className:"jp-recommendations-question__main"},o().createElement("header",{className:"jp-recommendations-product-suggestion__header"},o().createElement(u.Z,null)),o().createElement("div",{className:"jp-recommendations-product-suggestion__container"},o().createElement("div",{className:"jp-recommendations-product-suggestion__items"},p.map(((e,t)=>o().createElement("div",{className:"jp-recommendations-product-suggestion__item",key:t},o().createElement(g.A,{product:e}))))),o().createElement("div",{className:"jp-recommendations-product-suggestion__money-back-guarantee"},o().createElement(i.N,{text:__("14-day money-back guarantee","jetpack")}))),!n&&o().createElement("footer",{className:"jp-recommendations-product-suggestion__footer"},o().createElement("span",null,v&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!v&&__("Special introductory pricing, all renewals are at full price.","jetpack")),v&&k&&o().createElement("div",{className:"jp-recommendations-product-suggestion__timer"},o().createElement(m.Z,{timeClassName:"jp-recommendations-product-suggestion__time",label:__("Discount ends in:","jetpack"),expiryDate:k})))):o().createElement(l.l_,{to:e.substring(1)})}))},19916:(e,t,a)=>{"use strict";a.d(t,{X:()=>v});var n=a(80800),s=a(69307),i=a(65736),r=a(3228),o=a(25162),c=a.n(o),l=a(99196),p=a.n(l),d=a(59309),u=a(36920),m=a(8722),h=a(16876);const __=i.__,g=({isLoading:e,illustration:t,illustrationClassName:a,sidebarCard:s})=>{const i=`${n.hp}recommendations/${t}`;return e?null:s?p().createElement("div",{className:"jp-recommendations-question__sidebar-card"},s):t?p().createElement("div",{className:"jp-recommendations-question__illustration-container"},p().createElement("picture",{className:"jp-recommendations-question__illustration-picture"},p().createElement("source",{type:"image/webp",srcSet:`${i}.webp 1x, ${i}-2x.webp 2x`}),p().createElement("img",{className:(0,r.Z)("jp-recommendations-question__illustration",a),srcSet:`${i}-2x.png 2x`,src:`${i}.png`,alt:""}))):null},k=e=>{const{answer:t,description:a,illustration:n,progressBar:i,question:o,content:c,isNew:l,sidebarCard:d}=e;return p().createElement("div",{className:(0,r.Z)("jp-recommendations-question__main",{"jp-recommendations-question__main--with-sidebar":!!n||!!d})},p().createElement("div",{className:"jp-recommendations-question__content"},(l||i)&&p().createElement("div",{className:"jp-recommendations-question__progress-bar-wrap"},l&&p().createElement("span",{className:"jp-recommendations__new-badge"},__("New","jetpack")),p().createElement("div",{className:"jp-recommendations-question__progress-bar"},i)),p().createElement("h1",{className:"jp-recommendations-question__question"},(0,s.createInterpolateElement)(o,{nbsp:p().createElement("span",null," ")})),a&&p().createElement("p",{className:"jp-recommendations-question__description"},a),c,p().createElement("div",{className:"jp-recommendations-question__answer"},t)),p().createElement("div",{className:"jp-recommendations-question__sidebar"},p().createElement(g,e)))};k.propTypes={answer:c().element.isRequired,description:c().oneOfType([c().string,c().element]).isRequired,illustration:c().string,illustrationClassName:c().string,progressBar:c().element,question:c().oneOfType([c().string,c().element]).isRequired,content:c().element,sidebarCard:c().element,isNew:c().bool,isLoading:c().bool};const v=(0,d.$j)((e=>({isLoading:(0,h.Zd)(e)||(0,m.at)(e)||(0,u.HW)(e)})))(k)},96816:(e,t,a)=>{"use strict";a.d(t,{t:()=>f});var n=a(94343),s=a(55609),i=a(69307),r=a(65736),o=a(97506),c=a(84069),l=a(99196),p=a.n(l),d=a(59309),u=a(28747),m=a(8722),h=a(39398),g=a(97684),k=a(29162),v=a(19916);const __=r.__,f=(0,d.$j)(((e,t)=>({nextRoute:(0,m.mI)(e),...(0,g.gU)(e,t.stepSlug),stateStepSlug:(0,m.TO)(e),updatingStep:(0,m.ZL)(e),summaryViewed:(0,m.E3)(e,"summary"),spotlightProduct:(0,m.fo)(e,t.stepSlug),...(0,m.F_)(e)?{stepProgressValue:(0,m.HZ)(e),progressValue:null,summaryViewed:!1}:{}})),(e=>({addViewedRecommendation:t=>e((0,m.Hm)(t)),updateRecommendationsStep:t=>e((0,m.OC)(t))})))((e=>{const{isNew:t,progressValue:a,stepProgressValue:r,question:d,description:m,descriptionList:g,descriptionSecondary:f,descriptionLink:E,nextRoute:_,illustration:b,ctaText:y,ctaLink:w,hasNoAction:C,skipText:j,stepSlug:S,stateStepSlug:N,updatingStep:x,spotlightProduct:R,updateRecommendationsStep:Z,addViewedRecommendation:T,summaryViewed:A}=e;(0,l.useEffect)((()=>{S!==N?Z(S):S!==N||x||(T(S),c.Z.tracks.recordEvent("jetpack_recommendations_recommendation_viewed",{feature:S}))}),[S,N,x,Z,T]);const M=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_learn_more_click",{feature:S})}),[S]),P=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_read_click",{feature:S}),window.location.href=_}),[S,_]),O=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_skip_click",{feature:S})}),[S]),L=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_back_to_summary_click",{feature:S})}),[S]),I=(0,l.useMemo)((()=>r?p().createElement(k.R,r):a?p().createElement(n.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:a/100}):null),[r,a]),D=w?.match(/^https:\/\/jetpack.com\/redirect/);return p().createElement(v.X,{progressBar:I,isNew:t,question:d,description:m?(0,i.createInterpolateElement)(m,{br:p().createElement("br",null),strong:p().createElement("strong",null),ExternalLink:p().createElement(s.ExternalLink,{href:E,onClick:M})}):null,content:g||f?p().createElement(p().Fragment,null,g&&p().createElement("ul",{className:"jp-recommendations-question__description-list"},g.map(((e,t)=>p().createElement("li",{key:t},e)))),f&&p().createElement("p",{className:"jp-recommendations-question__description"},f)):null,answer:p().createElement("div",{className:"jp-recommendations-question__install-section"},C?p().createElement(o.Z,{primary:!0,rna:!0,href:_},y):p().createElement(p().Fragment,null,D?p().createElement(s.ExternalLink,{type:"button",className:"dops-button is-rna is-primary",href:w,onClick:P},y):p().createElement(o.Z,{rna:!0,primary:!0,href:w,onClick:P,va:!0},y),p().createElement("div",{className:"jp-recommendations-question__jump-nav"},p().createElement("a",{href:_,onClick:O},j||__("Not now","jetpack")),A&&p().createElement(p().Fragment,null,p().createElement("span",{className:"jp-recommendations-question__jump-nav-separator"},"|"),p().createElement("a",{onClick:L,href:"#/recommendations/summary"},__("View Recommendations","jetpack")," "))))),sidebarCard:R?p().createElement(u.N,{productSlug:R,stepSlug:S}):null,illustration:b||h.lY})}))},97392:(e,t,a)=>{"use strict";a.d(t,{g:()=>g});var n=a(94343),s=a(65736),i=a(97506),r=a(84069),o=a(99196),c=a(59309),l=a(69508),p=a(8722),d=a(39398),u=a(86095),m=a(90068),h=a(19916);const __=s.__,g=(0,c.$j)((e=>({nextRoute:(0,p.mI)(e),siteTitle:(0,l.aW)(e),answers:{personal:(0,p.$q)(e,"site-type-personal"),builder:(0,p.$q)(e,"site-type-agency"),store:(0,p.$q)(e,"site-type-store")},stateStepSlug:(0,p.TO)(e),updatingStep:(0,p.ZL)(e),canShowProductSuggestions:(0,p.sB)(e)})),(e=>({updateRecommendationsStep:t=>e((0,p.OC)(t)),addViewedRecommendation:t=>e((0,p.Hm)(t)),saveRecommendationsData:()=>e((0,p.u8)())})))((e=>{const{answers:t,nextRoute:a,saveRecommendationsData:c,siteTitle:l,stateStepSlug:p,updatingStep:g,addViewedRecommendation:k,updateRecommendationsStep:v,canShowProductSuggestions:f}=e;(0,o.useEffect)((()=>{"site-type-question"!==p?v("site-type-question"):"site-type-question"!==p||g||k("site-type-question")}),[p,g,v,k]);const E=(0,o.useCallback)((()=>{c(),r.Z.tracks.recordEvent("jetpack_recommendations_site_type_answered",t)}),[t,c]),_=React.createElement("div",{className:"jp-recommendations-question__site-type-answer-container"},React.createElement("div",{className:"jp-recommendations-question__site-type-checkboxes"},React.createElement(m.C,{answerKey:"site-type-agency",title:__("I build or manage this site for a client","jetpack"),info:__("Are you an agency or developer that builds or manages sites for clients?","jetpack")}),React.createElement(m.C,{answerKey:"site-type-store",title:__("This is an e-commerce site","jetpack"),info:__("E-commerce sites include stores selling goods, services, or digital downloads.","jetpack")}),React.createElement(m.C,{answerKey:"site-type-personal",title:__("This is a personal site","jetpack"),info:__("You built this site yourself, nice work! Personal sites include things like blogs, resume sites, wedding sites, and hobby sites.","jetpack")})),React.createElement(i.Z,{primary:!0,rna:!0,href:a,onClick:E},__("Continue","jetpack")),React.createElement("div",{className:"jp-recommendations-site-type-question__continue-description"},__("All of Jetpack’s great features await you and we’ll recommend some of our favorites.","jetpack")));return React.createElement(h.X,{progressBar:React.createElement(n.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:.14}),question:/* translators: placeholder is the title of the site */ /* translators: placeholder is the title of the site */ (0,s.sprintf)(__("Tell us more about %s?","jetpack"),l),description:__("To help you get the most from Jetpack, tell us about your site. Check all that apply:","jetpack"),answer:_,sidebarCard:f?React.createElement(u.Z,null):null,illustration:d.lY,illustrationClassName:"jp-recommendations-site-type__illustration"})}))},86095:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(80800),s=a(65736),i=a(97506),r=a(84069),o=a(99196),c=a.n(o),l=a(59309),p=a(36920),d=a(8722),u=a(16876),m=a(23494),h=a(88842),g=a(90351),k=a(17279);const __=s.__,v=(0,l.$j)((e=>({isLoading:(0,u.Zd)(e)||(0,d.at)(e)||(0,p.HW)(e),discountData:(0,u.u)(e),introOffers:(0,p.ni)(e),suggestions:(0,d.El)(e),step:(0,d.TO)(e)})),(e=>({markAsViewed:t=>e((0,d.fy)(t))})))((({isLoading:e,discountData:t,introOffers:a,suggestions:s,markAsViewed:l,step:p})=>{const{expiry_date:d}=t,u=(0,o.useMemo)((()=>(0,g.q)(t,a,s)),[t,a,s]),v=(0,o.useMemo)((()=>(0,k.h)(t)),[t]),f=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_upsell_card_cta_click",{discount:v})}),[v]);return(0,o.useEffect)((()=>{l(p)}),[l,p]),(0,o.useEffect)((()=>{e||r.Z.tracks.recordEvent("jetpack_recommendations_upsell_card_display",{discount:v})}),[e,v]),e?null:c().createElement("div",{className:"jp-recommendations-discount-card"},c().createElement("div",{className:"jp-recommendations-discount-card__container"},c().createElement("div",{className:"jp-recommendations-discount-card__card"},c().createElement("div",{className:"jp-recommendations-discount-card__card-header"},c().createElement("img",{className:"jp-recommendations-discount-card__header-icon",src:n.hp+"recommendations/cloud-icon.svg",alt:""}),v&&c().createElement(m.Z,{discount:u})),c().createElement("div",{className:"jp-recommendations-discount-card__card-body"},c().createElement("h3",{className:"jp-recommendations-discount-card__heading"},__("Increase your site security!","jetpack")),c().createElement("ul",{className:"jp-recommendations-discount-card__feature-list"},c().createElement("li",null,__("Real-time cloud backups","jetpack")),c().createElement("li",null,__("One-click restores","jetpack")),c().createElement("li",null,__("Real-time malware scanning","jetpack")),c().createElement("li",null,__("Comments and form spam protection","jetpack"))),!e&&c().createElement(i.Z,{className:"jp-recommendations-discount-card__button",rna:!0,href:"#/recommendations/product-suggestions",onClick:f},v&&__("View discounted products","jetpack"),!v&&__("View products","jetpack")))),v&&c().createElement("div",{className:"jp-recommendations-discount-card__timer"},c().createElement(h.Z,{timeClassName:"jp-recommendations-discount-card__time",label:__("Discount ends in:","jetpack"),expiryDate:d}))))}))},15356:(e,t,a)=>{"use strict";a.d(t,{K:()=>h});var n=a(80800),s=a(6895),i=a(55609),r=a(69307),o=a(65736),c=a(3228),l=a(20408),p=a(84069),d=a(34443),u=a(99196),m=a(95629);const __=o.__,h=({slug:e,underside:t=!1})=>{(0,u.useEffect)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"mobile_app",slug:e})}),[e]);const a=(0,u.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_jpcom",slug:e})}),[e]),o=(0,u.useCallback)((t=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_badge",store:t,slug:e})}),[e]),h=()=>React.createElement("div",{className:"jp-recommendations-sidebar-mobile__apps-badge"},React.createElement(l.Z,{onBadgeClick:o,storeName:"ios",utm_source:"jetpack-plugin-recommendations"})),g=()=>React.createElement("div",{className:"jp-recommendations-sidebar-mobile__apps-badge"},React.createElement(l.Z,{onBadgeClick:o,storeName:"android",utm_source:"jetpack-plugin-recommendations"})),k=()=>React.createElement("div",{className:"jp-recommendations-sidebar-mobile__qr-code-section"},React.createElement("img",{className:"jp-recommendations-sidebar-mobile__qr-code-image",src:n.hp+`/recommendations/mobile-app-qr-code-${e}.png`,width:80,height:80,alt:"qr code to jetpack.com/app/ web page"}),React.createElement("p",{className:"jp-recommendations-sidebar-mobile__qr-code-body"},(0,r.createInterpolateElement)(__("Visit <ExternalLink>jetpack.com/app</ExternalLink> or scan this code to download the Jetpack mobile app.","jetpack"),{ExternalLink:React.createElement(i.ExternalLink,{href:(0,s.Z)("jetpack-plugin-recommendations-mobile-app-component"),rel:"noopener noreferrer",target:"_blank",onClick:a})}))),v=t?35:25,f=React.createElement("div",{className:"jp-recommendations-sidebar-mobile__header-container"},React.createElement("img",{src:n.hp+"/recommendations/wordpress-icon.svg",width:v,height:v,alt:""}),React.createElement("img",{className:(0,c.Z)("jp-recommendation-sidebar-mobile__jetpack-icon",{underside:t}),src:n.hp+"/recommendations/jetpack-icon.svg",width:v,height:v,alt:""}));return React.createElement(m.y,{className:t?"underside":"",header:f},React.createElement("h2",{className:"jp-recommendation-sidebar-mobile__heading"},(()=>{switch(e){case"download-app":return __("Check your site activity anywhere, any time.","jetpack");case"one-click-restores":return __("Restore a backup anytime with the Jetpack mobile app.","jetpack");case"manage-security":return __("Realtime security notifications anywhere, any time.","jetpack");default:return __("Jetpack puts WordPress in your pocket.","jetpack")}})()),React.createElement("p",null,(()=>{switch(e){case"download-app":return __("Never miss an important event with realtime notifications and your activity log just a tap away.","jetpack");case"one-click-restores":return __("Keep track of your site’s activity and restore your site anywhere, any time.","jetpack");case"manage-security":return __("Get instant alerts for serious issues and fix them with a simple tap.","jetpack");default:return __("The Jetpack mobile app gives you everything you need to grow and manage your WordPress site anywhere, anytime.","jetpack")}})()),(()=>{switch((0,d.Z)()){case"ios":return React.createElement(h,null);case"android":return React.createElement(g,null);default:return React.createElement(k,null)}})())}},78787:(e,t,a)=>{"use strict";a.d(t,{c:()=>h});var n=a(80800),s=a(6895),i=a(65736),r=a(97506),o=a(84069),c=a(99196),l=a.n(c),p=a(59309),d=a(69508),u=a(33002),m=a(95629);const __=i.__,h=(0,p.$j)((e=>({hasRealTimeBackups:(0,u.CV)(e,"real-time-backups"),siteRawUrl:(0,d.JR)(e)})))((e=>{const{hasRealTimeBackups:t,siteRawUrl:a}=e;(0,c.useEffect)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"one-click-restores"})}),[]);const p=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"one_click_restores"})}),[]),d=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"recommendations/one_click_restores"})}),[]);let u=__("Daily Backups","jetpack");return t&&(u=__("Real-time Backups","jetpack")),l().createElement(l().Fragment,null,l().createElement(m.y,{illustrationPath:n.hp+"/recommendations/one-click-restores.svg"},l().createElement("div",{className:"jp-recommendations-one-click-restores"},l().createElement("h2",null,__("Enable one-click restores","jetpack")),l().createElement("p",null,(0,i.sprintf)(/* translators: placeholder is the name of a backups plan: Daily Backups or Real-time Backups */ __("Get the most out of your %s. One-click restores ensure you’ll be able to easily restore your site, if anything goes wrong.","jetpack"),u)),l().createElement("p",null,__("Enter your server credentials to enable one-click restores included in your plan.","jetpack")),l().createElement("div",{className:"jp-recommendations-one-click-restores__cta"},l().createElement(r.Z,{rna:!0,href:(0,s.Z)("jetpack-backup-dash-credentials",{site:a}),onClick:p},__("Enable one-click restores","jetpack"))))),l().createElement(m.y,{compact:!0},l().createElement("div",{className:"jp-recommendations-getting-started-compact"},l().createElement("a",{href:n.zh,onClick:d,target:"_blank",rel:"noreferrer"},l().createElement("img",{className:"jp-recommendations-getting-started-compact__thumbnail",src:n.hp+"backup-getting-started-thumbnail.png",srcSet:`${n.hp+"backup-getting-started-thumbnail.png"} 1x, ${n.hp+"backup-getting-started-thumbnail-2x.png"} 2x`,alt:""})),l().createElement("div",null,l().createElement("h2",null,__("Getting started with Jetpack VaultPress Backup","jetpack")),l().createElement("p",null,__("A short video guide on how to back up your website","jetpack"))))))}))},73986:(e,t,a)=>{"use strict";a.d(t,{q:()=>d});var n=a(6895),s=a(65736),i=a(97506),r=a(5060),o=a(84069),c=a(99196),l=a(36622),p=a(95629);const __=s.__,d=()=>{(0,c.useEffect)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_no_price"})}),[]);const e=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"upsell_no_price"})}),[]),t=[__("Robust security to keep your site safe","jetpack"),__("Speed-enhancing performance tools","jetpack"),__("Increase site growth with marketing","jetpack")];return React.createElement(p.y,{header:React.createElement(l.Z,null)},React.createElement("div",null,React.createElement("h2",null,__("Powerful security, performance, and marketing","jetpack")),React.createElement("ul",{className:"jp-recommendations-sidebar-card__features"},t.map((e=>React.createElement("li",{key:e},e)))),React.createElement("p",null,__("Explore premium Jetpack product bundles or pick and choose exactly what you need.","jetpack")),React.createElement(i.Z,{rna:!0,href:(0,n.Z)("jetpack-plans"),onClick:e,target:"blank",rel:"noopener noreferrer"},__("Learn more","jetpack"),React.createElement(r.Z,{icon:"external"}))))}},28747:(e,t,a)=>{"use strict";a.d(t,{N:()=>m});var n=a(80800),s=a(55609),i=a(84069),r=a(25162),o=a.n(r),c=a(99196),l=a.n(c),p=a(59309),d=a(97684);const u=e=>{const{productCardTitle:t,productCardCtaLink:a,productCardCtaText:r,productCardList:o,productCardIcon:p,productCardDisclaimer:d,stepSlug:u}=e,m=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_step_product_card_button_click",{feature:u})}),[u]);return l().createElement("div",{className:"jp-recommendations-discount-card"},l().createElement("div",{className:"jp-recommendations-discount-card__container"},l().createElement("div",{className:"jp-recommendations-discount-card__card"},l().createElement("div",{className:"jp-recommendations-discount-card__card-header"},l().createElement("img",{className:"jp-recommendations-discount-card__header-icon",src:n.hp+p,alt:""})),l().createElement("div",{className:"jp-recommendations-discount-card__card-body"},l().createElement("h3",{className:"jp-recommendations-discount-card__heading"},t),o&&l().createElement("ul",{className:"jp-recommendations-discount-card__feature-list"},o.map(((e,t)=>l().createElement("li",{key:`feature-${t}`},e)))),d&&l().createElement("p",{className:"jp-recommendations-discount-card__disclaimer"},d.text," ",l().createElement(s.ExternalLink,{href:d.url},d.link_text)),l().createElement(s.ExternalLink,{type:"button",className:"dops-button is-rna jp-recommendations-discount-card__button",href:a,onClick:m},r)))))};u.propTypes={productSlug:o().string.isRequired};const m=(0,p.$j)(((e,t)=>({...(0,d.r3)(e,t.productSlug),...(0,d.qJ)(e,t.productSlug,t.stepSlug)})))(u)},36622:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(65736),s=a(3228),i=a(5060),r=a(99196),o=a.n(r);const __=n.__,c=({className:e})=>o().createElement("div",{className:(0,s.Z)("jp-recommendations-recommended-header",e)},o().createElement(i.Z,{size:18,icon:"star"}),__("Recommended premium product","jetpack"))},24855:(e,t,a)=>{"use strict";a.d(t,{c:()=>h});var n=a(80800),s=a(6895),i=a(65736),r=a(97506),o=a(5060),c=a(84069),l=a(99196),p=a.n(l),d=a(59309),u=a(69508),m=a(95629);const __=i.__,h=(0,d.$j)((e=>({siteRawUrl:(0,u.JR)(e)})))((e=>{const{siteRawUrl:t}=e;(0,l.useEffect)((()=>{c.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"security"})}),[]);const a=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"security"})}),[]);return p().createElement(m.y,{illustrationPath:n.hp+"/recommendations/manage-security.svg"},p().createElement("div",null,p().createElement("h2",null,__("Manage your security on Jetpack.com","jetpack")),p().createElement("p",null,__("Did you know you can manage all your backups right from Jetpack.com?","jetpack")),p().createElement("p",null,__("You can also use your included Activity feature to monitor every change that occurs on your site!","jetpack")),p().createElement(r.Z,{rna:!0,href:(0,s.Z)("jetpack-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:a},__("Manage security on Jetpack.com","jetpack"),p().createElement(o.Z,{icon:"external"}))))}))},95629:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});var n=a(3228),s=a(99196),i=a.n(s);const r=e=>{const{header:t,children:a,illustrationPath:s,compact:r,className:o}=e;return i().createElement("div",{className:(0,n.Z)("jp-recommendations-sidebar-card",o,{"with-illustration":!!s})},s?i().createElement("div",{className:"jp-recommendations-sidebar-card__illustration-container"},i().createElement("div",{className:"jp-recommendations-sidebar-card__illustration"},i().createElement("img",{src:s,alt:""}))):t,i().createElement("div",{className:(0,n.Z)("jp-recommendations-sidebar-card__content",{"is-compact":r})},a))}},29162:(e,t,a)=>{"use strict";a.d(t,{R:()=>i});var n=a(94343),s=a(65736);const __=s.__,i=({currentStepIndex:e,totalSteps:t})=>{if(-1===e)return null;const a=e/(t-1)*100;return React.createElement("div",{className:"step-progress-bar"},React.createElement(n.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:a/100}),React.createElement("span",{className:"step-progress-bar__label"},(0,s.sprintf)(/* Translators: %1$s is the current step number, %2$s are total steps */ __("Step %1$s of %2$s","jetpack"),e+1,t)))}},43026:(e,t,a)=>{"use strict";a.d(t,{E:()=>y});var n=a(65736),s=a(3228),i=a(72129),r=a(92819),o=a(99196),c=a.n(o),l=a(59309),p=a(69508),d=a(8722),u=a(3230),m=a(61372),h=a(2025),g=a(21404),k=a(91508),v=a(15356),f=a(78787),E=a(73986),_=a(24855),b=a(46282);const __=n.__,y=(0,l.$j)((e=>{const t=(0,m.bK)(e),a=(0,u.Gw)(e),n=(0,d.jn)(e);return{isFetchingMainData:(0,r.isEmpty)(a)||(0,r.isEmpty)(t),isFetchingSidebarData:(0,r.isEmpty)(n),isFetchingBottomSectionData:(0,r.isEmpty)(n),sidebarCardsSlug:(0,d.Xi)(e),siteTitle:(0,p.aW)(e),summaryFeatureSlugs:(0,d.CI)(e),summaryResourceSlugs:(0,d.jp)(e),summaryPrimarySections:(0,d.TK)(e),stateStepSlug:(0,d.TO)(e),updatingStep:(0,d.ZL)(e),isOnboardingActive:(0,d.F_)(e),upsell:n}}),(e=>({updateRecommendationsStep:t=>e((0,d.OC)(t)),updateOnboardingData:t=>e((0,d.y5)(t)),addViewedRecommendation:t=>e((0,d.Hm)(t))})))((e=>{const{isFetchingMainData:t,isFetchingSidebarData:a,isFetchingBottomSectionData:r,sidebarCardsSlug:l,siteTitle:p,summaryFeatureSlugs:d,summaryResourceSlugs:u,summaryPrimarySections:m,updateRecommendationsStep:y,addViewedRecommendation:w,upsell:C,isOnboardingActive:j,newRecommendations:S=[],stateStepSlug:N,updatingStep:x,updateOnboardingData:R}=e;(0,o.useEffect)((()=>{"summary"!==N?y("summary"):"summary"!==N||x||w("summary")}),[N,x,y,w]),(0,o.useEffect)((()=>{j&&R({active:null})}),[R,j]);const Z=e=>S.includes(e),T=t?c().createElement(i.D,{altText:__("Loading recommendations","jetpack")}):c().createElement(c().Fragment,null,c().createElement("div",{className:"jp-recommendations-summary__configuration"},c().createElement("h1",null,(0,n.sprintf)(/* translators: %s is the site name */ __("Nice work! Let’s recap what we enabled for %s.","jetpack"),p)),m.map((({name:e,slugs:t})=>{const a=`primary-onboarding-${e.toLowerCase().replace(/[\s_-]+/g,"-")}`;return c().createElement("section",{key:e,"aria-labelledby":a},c().createElement("h2",{id:a},(0,n.sprintf)(/* translators: %s is the jetpack plan name */ __("Part of your %s plan","jetpack"),e)),t.map((e=>c().createElement(g.u,{key:e,slug:e}))))})),(d.selected.length>0||d.skipped.length>0)&&c().createElement("section",{"aria-labelledby":"enabled-recommendations"},c().createElement("h2",{id:"enabled-recommendations"},__("Recommendations enabled","jetpack")),c().createElement("div",null,d.selected.length>0?d.selected.map((e=>c().createElement(h.H,{key:e,featureSlug:e,isNew:Z(e)}))):c().createElement("p",{className:"jp-recommendations-summary__recommendation-notice"},c().createElement("em",null,__("You didn’t enable any recommended features. To get the most out of Jetpack, enable some recommendations or explore all Jetpack features.","jetpack"))))),d.skipped.length>0&&c().createElement("section",{"aria-labelledby":"skipped-recommendations"},c().createElement("h2",{id:"skipped-recommendations"},__("Recommendations skipped","jetpack")),c().createElement("div",null,d.skipped.map((e=>c().createElement(h.H,{key:e,featureSlug:e,isNew:Z(e)}))))),u.length>0&&c().createElement("section",{"aria-labelledby":"resources-summary-title"},c().createElement("h2",{id:"resources-summary-title"},__("Resources","jetpack")),c().createElement("div",null,u.map((e=>c().createElement(k._,{key:e,resourceSlug:e,isNew:Z(e)})))))));let A,M;if(a)A=c().createElement(i.D,{altText:__("Loading recommendations","jetpack")});else switch(l){case"loading":A=c().createElement(i.D,{altText:__("Loading recommendations","jetpack")});break;case"upsell":A=C.hide_upsell?c().createElement(E.q,null):c().createElement(b.Z,null),M=c().createElement(v.K,{slug:l,underside:!0});break;case"one-click-restores":A=c().createElement(c().Fragment,null,c().createElement(f.c,null),c().createElement(v.K,{slug:l}));break;case"manage-security":A=c().createElement(c().Fragment,null,c().createElement(_.c,null),c().createElement(v.K,{slug:l}));break;case"download-app":A=c().createElement(v.K,{slug:l});break;default:A=c().createElement(v.K,{slug:"unknown"})}return c().createElement("div",{className:"jp-recommendations-summary"},c().createElement("div",{className:"jp-recommendations-summary__main"},c().createElement("div",{className:(0,s.Z)("jp-recommendations-summary__content",{isLoading:t})},T),c().createElement("div",{className:(0,s.Z)("jp-recommendations-summary__sidebar",{isLoading:a})},A)),M&&c().createElement("div",{className:(0,s.Z)("jp-recommendations-summary__underside",{isLoading:r})},M))}))},46282:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(82674),s=a.n(n),i=a(65736),r=a(23609),o=a(84069),c=a(99196),l=a.n(c),p=a(59309),d=a(8722),u=a(16876),m=a(18821),h=a(88842),g=a(17279);const __=i.__,k=(0,p.$j)((e=>({upsell:(0,d.jn)(e),discountData:(0,u.u)(e)})))((({upsell:e,discountData:t})=>{const{product_slug:a}=e||{},{expiry_date:n}=t,i=(0,c.useMemo)((()=>(0,g.h)(t)),[t]),p=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{product_slug:a,discount:i})}),[a,i]),d=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{product_slug:a,discount:i})}),[a,i]);return l().createElement(l().Fragment,null,l().createElement(m.u,s()({},e,{slug:a,isRecommended:!0,onClick:p,onMount:d})),i&&l().createElement("div",{className:"jp-recommendations-summary__discount"},l().createElement("div",{className:"jp-recommendations-summary__timer"},l().createElement(h.Z,{timeClassName:"jp-recommendations-summary__time",label:__("Discount ends in:","jetpack"),expiryDate:n})),l().createElement("a",{className:"jp-recommendations-summary__reco-link",href:"#/recommendations/product-suggestions"},__("See all discounted products","jetpack"))),l().createElement("div",{className:"jp-recommendations-summary__footer"},l().createElement(r.N,{text:__("14-day money-back guarantee","jetpack")}),l().createElement("div",{className:"jp-recommendations-summary__footnote"},i&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!i&&__("Special introductory pricing, all renewals are at full price.","jetpack"))))}))},88842:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(65736),s=a(99196),i=a.n(s);const __=n.__,r=({label:e,timeClassName:t,expiryDate:a})=>{const r=(0,s.useMemo)((()=>new Date(a)),[a]),[o,c]=(0,s.useState)(r-Date.now()),l=(0,s.useRef)(),p=(0,s.useCallback)((()=>{c(r-Date.now())}),[r,c]),d=(0,s.useCallback)((e=>{const t=e/1e3,a=Math.floor(t/86400),s=Math.floor((t-3600*a*24)/3600),i=Math.floor((t-3600*a*24-3600*s)/60),r=Math.floor(t-3600*a*24-3600*s-60*i),o=[];return a>0&& // translators: %d is the number of days, d an abbreviation for days (e.g. 7d). Only translate the latter. o.push((0,n.sprintf)(__("%dd","jetpack"),a)),(a>0||s>0)&& // translators: %d is the number of hours, h an abbreviation for hours (e.g. 23h). Only translate the latter. o.push((0,n.sprintf)(__("%dh","jetpack"),s)),(a>0||s>0||i>0)&& // translators: %d is the number of minutes, m an abbreviation for minutes (e.g. 59m). Only translate the latter. o.push((0,n.sprintf)(__("%dm","jetpack"),i)), // translators: %d is the number of seconds, s an abbreviation for seconds (e.g. 59s). Only translate the latter. o.push((0,n.sprintf)(__("%ds","jetpack"),r)),o.join(" ")}),[]);return(0,s.useEffect)((()=>{const e=setInterval(p,500);return l.current=e,()=>{clearInterval(l.current)}}),[]),o>0?i().createElement(i().Fragment,null,e,i().createElement("span",{className:t},d(o))):__("Discount offer has ended","jetpack")}},90351:(e,t,a)=>{"use strict";a.d(t,{q:()=>n});const n=(e,t,a)=>{if(!e||!t||!a)return;const n=parseInt(e?.discount,10);if(Number.isNaN(n))return;const s=a.map((({slug:e})=>e)),i=t.filter((({product_slug:e})=>s.includes(e))).map((({original_price:e,raw_price:t})=>{if(!e)return;const a=(e-t*(1-n/100))/e;return Math.round(100*a)})).filter(Boolean);return i.length?Math.max(...i):void 0}},38356:(e,t,a)=>{"use strict";a.d(t,{N:()=>s});var n=a(6895);const s=(e,t,a,s,i)=>(0,n.Z)("jetpack-recommendations-product-checkout",{site:i??a,path:e,query:`coupon=${s||""}&redirect_to=${t}admin.php?jp-react-redirect=product-purchased`})},17279:(e,t,a)=>{"use strict";a.d(t,{h:()=>n});const n=e=>{if("object"!=typeof e)return!1;const{discount:t,is_used:a,expiry_date:n}=e;return!!t&&!a&&new Date(n).valueOf()-Date.now()>0}},91256:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(65736),s=a(47407),i=a(66164),r=a(2353),o=a(93806),c=a(28178),l=a(92819),p=a(25162),d=a.n(p),u=a(99196),m=a.n(u),h=a(59309),g=a(96300),k=a(69508),v=a(50416),f=a(89292);const __=n.__,E=(0,r.u)(class extends u.Component{handleBannerClick=e=>()=>this.props.updateOptions({[e]:!0});render(){if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;const e=["contact-form","json-api","notes"],t=this.props.modules,a=[];return(0,l.forEach)(t,((t,n)=>{if(this.props.isModuleFound(n)&&(0,l.includes)(e,n)){const e=this.props.isOfflineMode&&this.props.isUnavailableInOfflineMode(t.module),i=!this.props.hasConnectedOwner&&this.props.isUnavailableInSiteConnectionMode(t.module);if(e||i)return a.push(m().createElement(_,{key:n,moduleData:t,offlineMode:e,siteConnectionMode:i}));this.props.getOptionValue(t.module)?a.push(m().createElement(_,{key:n,moduleData:t})):a.push(m().createElement(s.ZP,{className:"jp-searchable-banner",key:n,callToAction:__("Activate","jetpack"),description:t.description,href:"javascript:void( 0 )",icon:"cog",onClick:this.handleBannerClick(t.module),title:t.name}))}})),m().createElement("div",null,a)}});E.propTypes={searchTerm:d().string},E.defaultProps={searchTerm:""};class _ extends u.Component{render(){const e=this.props.moduleData,t=this.props.offlineMode,a=this.props.siteConnectionMode;return m().createElement(o.Z,{module:e.module,header:e.name,action:e.module,hideButton:!0},m().createElement(c.Z,{disableInOfflineMode:t,disableInSiteConnectionMode:a,module:{module:e.module},support:{link:e.learn_more_button}},e.description),a&&m().createElement(i.Z,{feature:e.module,featureLabel:e.name,text:__("Connect to configure.","jetpack")}))}}const b=(0,h.$j)((e=>({modules:(0,v.hU)(e),isModuleFound:t=>(0,f.CX)(e,t),canManageModules:(0,k.pK)(e),isUnavailableInOfflineMode:t=>(0,g.t_)(e,t),isOfflineMode:(0,g.Ex)(e),isUnavailableInSiteConnectionMode:t=>(0,g.IK)(e,t)})))(E)},37753:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(82674),s=a.n(n),i=a(69307),r=a(65736),o=a(30860),c=a(45452),l=a(61775),p=a(5060),d=a(2353),u=a(93806),m=a(28178),h=a(9494),g=a(84069),k=a(59584),v=a(92819),f=a(99196),E=a.n(f),_=a(59309),b=a(17296);const __=r.__,_x=r._x,y=(0,d.u)(class extends f.Component{state={apiKey:this.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}};keyChanged=!1;UNSAFE_componentWillMount(){this.debouncedCheckApiKeyTyped=(0,v.debounce)(this.checkApiKeyTyped,500)}checkApiKeyTyped=e=>{this.props.checkAkismetKey(e.currentTarget.value),this.keyChanged=!0,this.setState({delayKeyCheck:!1})};updateText=e=>{const t=(0,v.assign)({},e);t.currentTarget.value=(0,v.trim)(t.currentTarget.value),this.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},this.debouncedCheckApiKeyTyped(t))};componentDidUpdate(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,v.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}trackOpenCard=()=>{g.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})};render(){const e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText};let t="",a=__("Checking your spam protection…","jetpack"),n=(0,i.createInterpolateElement)(__("If you don't already have an API key, then <a>get your API key here</a>, and you'll be guided through the process of getting one.","jetpack"),{a:E().createElement("a",{href:"https://akismet.com/wordpress/"})});return null===this.props.isAkismetKeyValid?(e.value=__("Fetching key…","jetpack"),e.disabled=!0,n=!1):!this.props.isDirty()&&""===this.props.getSettingCurrentValue("wordpress_api_key")&&this.props.isAkismetKeyValid?(e.value=__("A valid key has been set in your site's configuration.","jetpack"),e.isValid=!0,e.disabled=!0,a=__("Your site is protected from spam.","jetpack"),n=__("It looks like your API key has been set globally.","jetpack"),t=E().createElement(c.Z,{text:__("Your Anti-spam key is valid.","jetpack")})):""===this.state.apiKey?(e.value="",a=__("Your site needs an Anti-spam key.","jetpack")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=E().createElement("div",{className:"form-input-validation is-warning"},E().createElement("span",null,E().createElement(p.Z,{size:24,icon:"sync"}),__("Checking key…","jetpack"))),n=!1):!1===this.props.isAkismetKeyValid?(t=E().createElement(c.Z,{isError:!0,text:(0,i.createInterpolateElement)(__("There's a problem with your Anti-spam API key. <a>Learn more</a>.","jetpack"),{a:E().createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})})}),e.isError=!0,a=__("Your site is not protected from spam.","jetpack")):(t=E().createElement(c.Z,{text:__("Your Anti-spam key is valid.","jetpack")}),e.isValid=!0,a=__("Your site is protected from spam.","jetpack"),n=!1),E().createElement(u.Z,s()({},this.props,{header:_x("Anti-spam","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:k.V37}),E().createElement(o.Z,{onOpen:this.trackOpenCard,header:a},E().createElement(m.Z,{support:{text:__("Removes spam from comments and contact forms.","jetpack"),link:"https://akismet.com/jetpack/"}},E().createElement(l.C_,null,E().createElement(l.lX,null,E().createElement("span",{className:"jp-form-label-wide"},__("Your API key","jetpack")),E().createElement(h.Z,e),t),n&&E().createElement("p",{className:"jp-form-setting-explanation"},n)))))}}),w=(0,_.$j)((e=>({isAkismetKeyValid:(0,b._2)(e),isCheckingAkismetKey:(0,b.gw)(e)})),(e=>({checkAkismetKey:(t="")=>e((0,b.Bt)(t))})))(y)},49529:(e,t,a)=>{"use strict";a.d(t,{Z:()=>A});var n=a(82674),s=a.n(n),i=a(6895),r=a(52947),o=a(69307),c=a(65736),l=a(90496),p=a(47407),d=a(85799),u=a(88546),m=a(2353),h=a(93806),g=a(28178),k=a(84069),v=a(59584),f=a(92819),E=a(25162),_=a.n(E),b=a(99196),y=a.n(b),w=a(59309),C=a(17296),j=a(69508),S=a(50416),N=a(69377),x=a(33002);const __=c.__,_x=c._x,_n=c._n;class R extends b.Component{render(){return y().createElement(h.Z,{header:_x("Backups and security scanning","Settings header","jetpack"),hideButton:!0,action:"scan"},y().createElement(g.Z,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("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"),link:(0,i.Z)("vaultpress-help-get-to-know")}},__("Checking site status…","jetpack")))}}class Z extends b.Component{static propTypes={isOfflineMode:_().bool,siteRawUrl:_().string,rewindState:_().string};static defaultProps={isOfflineMode:!1,siteRawUrl:"",rewindState:""};getRewindMessage(){const{siteRawUrl:e,rewindState:t}=this.props;switch(t){case"provisioning":return{title:__("Provisioning","jetpack"),icon:"info",description:__("Backups and Scan are being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:__("Awaiting credentials","jetpack"),iconWp:l.Z,type:"warning",description:__("Enter your SSH, SFTP, or FTP credentials to enable one-click site restores and fixes","jetpack"),url:(0,i.Z)("jetpack-settings-security-credentials",{site:e})};case"active":return{title:__("Active","jetpack"),icon:"checkmark-circle",description:__("Your site is connected to Jetpack Backup and Scan.","jetpack"),url:(0,i.Z)("calypso-activity-log",{site:e})};default:return{title:__("Oops!","jetpack"),icon:"info",description:__("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack"),url:""}}}getCardText=()=>{if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");const{title:e,icon:t,iconWp:a,description:n,type:s,url:i}=this.getRewindMessage();return y().createElement(p.ZP,{title:e,icon:t,iconWp:a,feature:"rewind",description:n,className:`jp-banner__no-border is-jetpack-${s||"info"}`,href:i})};render(){return y().createElement(h.Z,s()({feature:"rewind"},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"rewind",hideButton:!0}),this.getCardText())}}const T=(0,m.u)(class extends b.Component{toggleModule=(e,t)=>{this.props.updateFormStateOptionValue(e,!t)};trackConfigureClick=()=>{k.Z.tracks.recordJetpackClick("configure-scan")};getCardText(){const e=(0,f.get)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,f.get)(this.props.vaultPressData,["data","features","security"],!1);if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");if(e&&t){const e=this.props.hasThreats;return e?y().createElement("div",null,y().createElement("strong",null,(0,c.sprintf)(/* Translators: placeholder is a number (of threats). */ _n("Uh oh, %s threat found.","Uh oh, %s threats found.",e,"jetpack"),(0,r.Z)(e))),y().createElement("br",null),y().createElement("br",null),(0,o.createInterpolateElement)(__("<a>View details</a>","jetpack"),{a:y().createElement("a",{href:(0,i.Z)("vaultpress-dashboard")})}),y().createElement("br",null),(0,o.createInterpolateElement)(__("<a>Contact Support</a>","jetpack"),{a:y().createElement("a",{href:(0,i.Z)("jetpack-support")})})):__("Your site is connected to VaultPress for backups and security scanning.","jetpack")}return e&&!this.props.hasScan?__("Your site is connected to VaultPress for backups.","jetpack"):this.props.isFetchingRewindStatus?__("Checking site status…","jetpack"):__("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack")}render(){if(!this.props.showBackups)return null;const e=(0,f.get)(this.props.vaultPressData,["data","features","security"],!1),t=(0,f.get)(this.props.rewindStatus,["state"],!1),a=!1!==t,n="N/A"!==this.props.vaultPressData&&!1!==(0,f.get)(this.props.vaultPressData,["data"],!1);return a||!this.props.vaultPressActive||n?(0,f.includes)(["provisioning","awaiting_credentials","active"],t)?y().createElement(Z,s()({},this.props,{rewindState:t})):y().createElement(h.Z,s()({feature:v.eMt},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0}),y().createElement(u.Z,null),y().createElement(g.Z,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("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"),link:(0,i.Z)("vaultpress-help-get-to-know")}},this.getCardText()),!this.props.isUnavailableInOfflineMode("backups")&&e&&y().createElement(d.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:(0,i.Z)("vaultpress-dashboard")},__("Configure your Security Scans","jetpack"))):y().createElement(R,null)}}),A=(0,w.$j)((e=>({vaultPressData:(0,C.XK)(e),hasScan:(0,x.CV)(e,"scan"),hasThreats:(0,C._R)(e),vaultPressActive:(0,S.mp)(e,"vaultpress"),showBackups:(0,j.xR)(e),isFetchingRewindStatus:(0,N.Li)(e)})))(T)},37914:(e,t,a)=>{"use strict";a.d(t,{Z:()=>x});var n=a(82674),s=a.n(n),i=a(65736),r=a(3544),o=a(69270),c=a(92819),l=a(99196),p=a.n(l),d=a(59309),u=a(17296),m=a(96300),h=a(69508),g=a(50416),k=a(89292),v=a(3230),f=a(33002),E=a(61372),_=a(37753),b=a(49529),y=a(50385),w=a(9e3),C=a(87006),j=a(26237),S=a(86478);const __=i.__;class N extends l.Component{static displayName="SecuritySettings";isAkismetFound=()=>{if(!this.props.isPluginActive("akismet/akismet.php"))return!1;if(this.props.searchTerm){const e=this.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(this.props.searchTerm.toLowerCase())>-1}return!0};render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl,blogID:this.props.blogID,hasConnectedOwner:this.props.hasConnectedOwner},t=this.props.isModuleFound("waf"),a=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),i=this.isAkismetFound(),l="active"===(0,c.get)(this.props.rewindStatus,["state"],!1),d=this.props.isModuleFound("vaultpress")||l,u=this.props.isModuleFound("monitor"),m=this.props.searchTerm;if(!m&&!this.props.active)return null;if(!(n||a||i||d||u))return null;const h=this.props.backupsOnly?p().createElement(y.N,s()({},e,{vaultPressData:this.props.vaultPressData})):p().createElement(b.Z,e);return p().createElement("div",null,p().createElement(o.Z,null),p().createElement("h1",{className:"screen-reader-text"},__("Jetpack Security Settings","jetpack")),p().createElement("h2",{className:"jp-settings__section-title"},m?__("Security","jetpack"):__("Your site is protected by Jetpack. You’ll be notified if anything needs attention.","jetpack",0)),d&&h,u&&p().createElement(w.u,e),i&&p().createElement(p().Fragment,null,p().createElement(_.Z,e),p().createElement(r.Z,null)),t&&p().createElement(S.Z,e),a&&p().createElement(C.C,e),n&&p().createElement(j.y,e))}}const x=(0,d.$j)((e=>({backupsOnly:(0,f.CV)(e,"backups")&&!(0,f.CV)(e,"scan"),module:t=>(0,g.rT)(e,t),settings:(0,v.Gw)(e),isOfflineMode:(0,m.Ex)(e),isUnavailableInOfflineMode:t=>(0,m.t_)(e,t),isModuleFound:t=>(0,k.CX)(e,t),isPluginActive:t=>(0,E.TB)(e,t),isPluginInstalled:t=>(0,E.P8)(e,t),vaultPressData:(0,u.XK)(e),hasConnectedOwner:(0,m.it)(e),blogID:(0,h.EZ)(e)})))(N)},50385:(e,t,a)=>{"use strict";a.d(t,{N:()=>k});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(47407),c=a(93806),l=a(28178),p=a(59584),d=a(92819),u=a(25162),m=a.n(u),h=a(99196),g=a.n(h);const __=r.__,_x=r._x;class k extends h.Component{static propTypes={siteRawUrl:m().string,rewindState:m().string};static defaultProps={siteRawUrl:"",rewindState:""};getVaultPressContent=()=>g().createElement(l.Z,{module:{module:"backups"},support:{text:__("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"),link:(0,i.Z)("jetpack-support-backup")}},__("Your site is connected to VaultPress for backups.","jetpack"));getRewindMessage(){const{siteRawUrl:e,rewindStatus:t}=this.props;switch((0,d.get)(t,"state",!1)){case"provisioning":return{title:__("Provisioning","jetpack"),icon:"info",description:__("Jetpack Backup is being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:__("Add your server credentials","jetpack"),icon:"notice",description:__("Enter your SSH, SFTP or FTP credentials to enable one-click site restores and faster backups","jetpack"),url:(0,i.Z)("jetpack-settings-security-credentials",{site:e})};case"active":return{title:__("Active","jetpack"),icon:"checkmark-circle",description:__("Your site is connected to Jetpack Backup.","jetpack"),url:(0,i.Z)("calypso-activity-log",{site:e})};default:return{title:__("Oops!","jetpack"),icon:"info",description:__("The Jetpack Backup status could not be retrieved at this time.","jetpack"),url:""}}}getRewindBanner=()=>{const{title:e,icon:t,description:a,url:n}=this.getRewindMessage();return g().createElement(o.ZP,{title:e,icon:t,feature:"rewind",description:a,className:"is-upgrade-premium jp-banner__no-border",href:n})};render(){const{rewindStatus:e,vaultPressData:t}=this.props,a=(0,d.get)(e,"state",!1),n=(0,d.get)(t,["data","features","backups"],!1);return!1!==a||n?g().createElement(c.Z,s()({feature:p.N_2},this.props,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0}),"unavailable"===a?this.getVaultPressContent():this.getRewindBanner()):g().createElement(c.Z,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0,action:p.N_2},g().createElement(l.Z,{module:{module:"backups"},support:{text:__("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"),link:(0,i.Z)("jetpack-support-backup")}},__("Checking site status…","jetpack")))}}},9e3:(e,t,a)=>{"use strict";a.d(t,{u:()=>v});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69307),c=a(65736),l=a(66164),p=a(2353),d=a(5004),u=a(93806),m=a(28178),h=a(84069),g=a(99196),k=a.n(g);const __=c.__,_x=c._x,v=(0,p.u)(class extends g.Component{trackConfigureClick=()=>{h.Z.tracks.recordJetpackClick("configure-monitor-email")};render(){const e=this.props.hasConnectedOwner,t=this.props.isOfflineMode,a=this.props.getOptionValue("monitor"),n=this.props.isUnavailableInOfflineMode("monitor");return k().createElement(u.Z,s()({},this.props,{hideButton:!0,module:"monitor",header:_x("Downtime monitoring","Settings header","jetpack")}),k().createElement(m.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("monitor"),support:{text:__("Jetpack will continuously monitor your site and alert you the moment downtime is detected.","jetpack"),link:(0,i.Z)("jetpack-support-monitor")}},k().createElement(d.T,{slug:"monitor",disabled:n||!e,activated:a,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},k().createElement("span",{className:"jp-form-toggle-explanation"},(0,o.createInterpolateElement)(__("Get alerts if your site goes offline. Alerts are sent to your <a>WordPress.com account</a> email address.","jetpack"),{a:k().createElement(r.ExternalLink,{href:"https://wordpress.com/me/account",onClick:this.trackConfigureClick})})))),!e&&!t&&k().createElement(l.Z,{feature:"monitor",featureLabel:__("Downtime Monitoring","jetpack"),text:__("Connect to set up your status alerts.","jetpack")}))}})},87006:(e,t,a)=>{"use strict";a.d(t,{C:()=>C});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(97506),c=a(30860),l=a(61775),p=a(2353),d=a(5004),u=a(93806),m=a(28178),h=a(65936),g=a(84069),k=a(92819),v=a(99196),f=a.n(v),E=a(59309),_=a(5074),b=a(3230),y=a(22948);const __=r.__,_x=r._x,w=class extends v.Component{componentDidUpdate(e){e.allowListInputState!==this.props.allowListInputState&&this.props.updateFormStateOptionValue("jetpack_waf_ip_allow_list",this.props.allowListInputState)}currentIpIsSafelisted=()=>!!(0,k.includes)(this.props.allowListInputState,this.props.currentIp);updateIPAllowList=e=>{this.currentIpIsSafelisted(),this.props.updateWafIpAllowList(e.target.value)};addToSafelist=()=>{const e=this.props.allowListInputState+(0>=this.props.allowListInputState.length?"":"\n")+this.props.currentIp;this.props.updateWafIpAllowList(e),g.Z.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})};trackOpenCard=()=>{g.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})};render(){const e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect"),a=f().createElement(d.T,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return f().createElement(u.Z,s()({},this.props,{module:"protect",header:_x("Brute force protection","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("jetpack_waf_ip_allow_list")}),e&&f().createElement(_.Z,null),f().createElement(m.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("protect"),className:"foldable-wrapper"},f().createElement(c.Z,{onOpen:this.trackOpenCard,header:a},f().createElement(m.Z,{hasChild:!0,module:this.props.getModule("protect"),support:{text:__("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:(0,i.Z)("jetpack-support-protect")}},this.props.currentIp&&f().createElement("div",{className:"brute-force__current-ip"},f().createElement("div",{className:"jp-form-label-wide"},(0,r.sprintf)(/* translators: placeholder is an IP address. */ __("Your current IP: %s","jetpack"),this.props.currentIp)),f().createElement(o.Z,{rna:!0,compact:!0,disabled:!e||t||this.currentIpIsSafelisted()||this.props.isSavingAnyOption(["protect","jetpack_waf_ip_allow_list"]),onClick:this.addToSafelist},__("Add to Always Allowed list","jetpack"))),f().createElement(l.lX,null,f().createElement(l.Gj,null,__("Always allowed IP addresses","jetpack")),f().createElement(h.Z,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_waf_ip_allow_list",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateIPAllowList,value:this.props.allowListInputState})),f().createElement("span",{className:"jp-form-setting-explanation"},__('You may mark an IP address (or series of addresses) as "Always allowed", 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',"jetpack"))))))}},C=(0,E.$j)((e=>{const t=(0,y.EN)(e);return{allowListInputState:null!==t?t:(0,b.$8)(e,"jetpack_waf_ip_allow_list")}}),(e=>({updateWafIpAllowList:t=>e((0,y.uy)(t))})))((0,p.u)(w))},26237:(e,t,a)=>{"use strict";a.d(t,{y:()=>w});var n=a(82674),s=a.n(n),i=a(67172),r=a(6895),o=a(48229),c=a(31294),l=a(55609),p=a(69307),d=a(65736),u=a(66164),m=a(61775),h=a(2353),g=a(5004),k=a(93806),v=a(28178),f=a(55990),E=a(99196),_=a(91850),b=a.n(_);const __=d.__,_x=d._x,y=()=>{const{userConnectionData:e}=(0,c.Z)(),t=e?.currentUser?.wpcomUser?.ID,a=`https://wordpressdotcom.survey.fm/disable-sso-survey?initiated-from=jetpack&user-id=${t}`,[n,s]=(0,E.useState)("dismissed"===f.parse(document.cookie)?.sso_disable),r=()=>{var e,t;e="dismissed",t=31536e3,document.cookie=f.serialize("sso_disable",e,{path:"/",maxAge:t}),s(!0)};return n?null:React.createElement("div",{className:"modal-survey-notice"},React.createElement(l.Button,{className:"modal-survey-notice__backdrop",onClick:r}),React.createElement("div",{className:"modal-survey-notice__popup"},React.createElement("div",{className:"modal-survey-notice__popup-head"},React.createElement("div",{className:"modal-survey-notice__popup-head-title"},__("SSO Survey","jetpack")),React.createElement(l.Button,{onClick:r,className:"modal-survey-notice__popup-head-close"},React.createElement(i.Z,{icon:"cross",size:16}))),React.createElement("div",{className:"modal-survey-notice__popup-content"},React.createElement("div",{className:"modal-survey-notice__popup-content-title"},__("Hi there!","jetpack")),React.createElement("div",{className:"modal-survey-notice__popup-content-description"},__("Spare a moment? We'd love to hear why you want to disable SSO in a quick survey.","jetpack")),React.createElement("div",{className:"modal-survey-notice__popup-content-buttons"},React.createElement(l.Button,{className:"modal-survey-notice__popup-content-buttons-cancel",onClick:r},__("Remind later","jetpack")),React.createElement(l.Button,{className:"modal-survey-notice__popup-content-buttons-ok",href:a,target:"_blank",rel:"noopener noreferrer",onClick:r},__("Take survey","jetpack"))))))},w=(0,h.u)(class extends E.Component{state={jetpack_sso_match_by_email:this.props.getOptionValue("jetpack_sso_match_by_email","sso",!1),jetpack_sso_require_two_step:this.props.getOptionValue("jetpack_sso_require_two_step","sso",!1),showSSODisableModal:!1};handleTwoStepToggleChange=()=>{this.updateOptions("jetpack_sso_require_two_step")};handleMatchByEmailToggleChange=()=>{this.updateOptions("jetpack_sso_match_by_email")};updateOptions=e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("sso",e))};render(){const e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInOfflineMode("sso"),a=!!this.props.getModule("sso")?.options?.jetpack_sso_require_two_step?.default;return React.createElement(React.Fragment,null,React.createElement(k.Z,s()({},this.props,{hideButton:!0,module:"sso",header:_x("WordPress.com login","Settings header, noun.","jetpack")}),React.createElement(v.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("sso"),support:{text:__("Allows registered users to log in to your site with their WordPress.com accounts.","jetpack"),link:(0,r.Z)("jetpack-support-sso")}},React.createElement("p",null,__("Add an extra layer of security to your website by enabling WordPress.com login and secure authentication. If you have multiple sites with this option enabled, you will be able to log in to every one of them with the same credentials.","jetpack")),React.createElement(g.T,{slug:"sso",disabled:t||!this.props.hasConnectedOwner,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:t=>{e&&this.setState({showSSODisableModal:!0}),this.props.toggleModuleNow(t)}},React.createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),React.createElement(m.C_,null,React.createElement(o.Z,{checked:e&&this.props.getOptionValue("jetpack_sso_match_by_email","sso",!1),disabled:!e||t||this.props.isSavingAnyOption(["sso"]),toggling:this.props.isSavingAnyOption(["jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange,label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Match accounts using email addresses","jetpack"))}),React.createElement(o.Z,{checked:e&&this.props.getOptionValue("jetpack_sso_require_two_step","sso",!1)||a,disabled:!e||t||a||this.props.isSavingAnyOption(["sso"]),toggling:this.props.isSavingAnyOption(["jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange,label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Require accounts to use WordPress.com Two-Step Authentication","jetpack")),help:a?(0,p.createInterpolateElement)(__("Two-Step Authentication is enforced because the <code>jetpack_sso_require_two_step</code> filter is active. <link>Learn more</link>.","jetpack"),{link:React.createElement(l.ExternalLink,{href:(0,r.Z)("jetpack-support-force-2fa")}),code:React.createElement("code",null)}):null}))),!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&React.createElement(u.Z,{feature:"sso",featureLabel:__("Secure Sign-On","jetpack"),text:__("Connect to enable WordPress.com Secure Sign-On.","jetpack")})),this.state.showSSODisableModal&&b().createPortal(React.createElement(y,null),document.body))}})},86478:(e,t,a)=>{"use strict";a.d(t,{Z:()=>M});var n=a(82674),s=a.n(n),i=a(6895),r=a(73474),o=a(48229),c=a(55609),l=a(69307),p=a(65736),d=a(97506),u=a(30860),m=a(61775),h=a(41549),g=a(85733),k=a(2353),v=a(93806),f=a(28178),E=a(59584),_=a(1137),b=a(99196),y=a.n(b),w=a(59309),C=a(33002),j=a(5074),S=a(42698),N=a(5004),x=a(65936),R=a(11834),Z=a(98159),T=a(86725);const __=p.__,_x=p._x,A=class extends b.Component{state={automaticRulesEnabled:this.props.settings?.automaticRulesEnabled,manualRulesEnabled:this.props.settings?.manualRulesEnabled,ipBlockList:this.props.settings?.ipBlockList,ipAllowList:this.props.settings?.ipAllowList,shareData:this.props.settings?.shareData,shareDebugData:this.props.settings?.shareDebugData};componentDidUpdate=e=>{this.props.settings!==e.settings&&this.setState({...this.state,automaticRulesEnabled:this.props.settings?.automaticRulesEnabled,manualRulesEnabled:this.props.settings?.manualRulesEnabled,ipBlockList:this.props.settings?.ipBlockList,ipAllowList:this.props.settings?.ipAllowList,shareData:this.props.settings?.shareData,shareDebugData:this.props.settings?.shareDebugData}),e.allowListInputState!==this.props.allowListInputState&&this.setState({...this.state,ipAllowList:this.props.allowListInputState})};getCustomErrorMessage=e=>{switch(e.code){case"file_system_error":return __("A filesystem error occurred.","jetpack");case"rules_api_error":return __("An error occurred retrieving the latest automatic firewall rules.","jetpack");default:return!1}};onSubmit=()=>{this.props.removeNotice("module-setting-update"),this.props.removeNotice("module-setting-update-success"),this.props.createNotice("is-info",__("Updating settings…","jetpack"),{id:"module-setting-update"}),this.props.updateWafSettings(this.state).then((()=>{this.props.removeNotice("module-setting-update"),this.props.createNotice("is-success",__("Updated Settings.","jetpack"),{id:"module-setting-update-success"})})).catch((e=>{this.props.removeNotice("module-setting-update"),this.props.createNotice("is-error",(0,p.sprintf)(/* translators: placeholder is an error code or an error message. */ __("Error updating settings. %s","jetpack"),this.getCustomErrorMessage(e.response)||e.message||e.code),{id:"module-setting-update"})}))};toggleAutomaticRules=()=>{this.setState({...this.state,automaticRulesEnabled:!this.state.automaticRulesEnabled},this.onSubmit)};toggleManualRules=()=>{this.setState({...this.state,manualRulesEnabled:!this.state.manualRulesEnabled},this.onSubmit)};handleIpBlockListChange=e=>{this.setState({...this.state,ipBlockList:e?.target?.value})};handleIpAllowListChange=e=>{this.props.updateWafIpAllowList(e.target.value)};toggleShareData=()=>{const e={...this.state,shareData:!this.state.shareData};e.shareData||(e.shareDebugData=e.shareData),this.setState(e,this.onSubmit)};toggleShareDebugData=()=>{const e={...this.state,shareDebugData:!this.state.shareDebugData};e.shareDebugData&&(e.shareData=e.shareDebugData),this.setState(e,this.onSubmit)};render(){const e=this.props.getOptionValue("waf"),t=this.props.isUnavailableInOfflineMode("waf"),a=!e||t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),n=y().createElement("div",{className:"waf__header"},y().createElement("span",null,_x("Firewall","Settings header","jetpack")),y().createElement("a",{href:(0,i.Z)("jetpack-support-waf"),target:"_blank",rel:"noopener noreferrer",className:"waf__header__badge"},_x("NEW","Settings header badge","jetpack")),this.props.settings?.standaloneMode&&y().createElement(r.Z,{className:"waf__standalone__mode",status:"active",label:__("Standalone mode","jetpack")})),h=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(o.Z,{checked:!(!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable)&&this.props.settings?.automaticRulesEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.automaticRulesEnabled!==this.props.settings?.automaticRulesEnabled,disabled:a||!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable,onChange:this.toggleAutomaticRules,label:y().createElement("span",{className:"jp-form-toggle-explanation"},__("Automatic rules - Protect your site against untrusted traffic sources with automatic security rules","jetpack"))})),k=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(o.Z,{checked:this.props.settings?.manualRulesEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.manualRulesEnabled!==this.props.settings?.manualRulesEnabled,disabled:a,onChange:this.toggleManualRules,label:y().createElement("span",{className:"jp-form-toggle-explanation"},__("Allow / Block list - Block or allow a specific request IP","jetpack"))}),this.state.manualRulesEnabled&&y().createElement(y().Fragment,null,y().createElement("div",{className:"waf__settings__ips"},y().createElement(m.lX,null,__("Blocked IP addresses","jetpack")),y().createElement(x.Z,{disabled:a||this.props.isUpdatingWafSettings&&this.state.ipBlockList!==this.props.settings?.ipBlockList,name:"ipBlockList",placeholder:(0,p.sprintf)(/* translators: Placeholder is a list of example IP addresses. */ __("Example: %s","jetpack"),"\n12.12.12.1\n12.12.12.2"),value:this.state.ipBlockList,onChange:this.handleIpBlockListChange}),y().createElement(d.Z,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:a||this.state.ipBlockList===this.props.settings?.ipBlockList||this.props.isUpdatingWafSettings&&this.state.ipBlockList!==this.props.settings?.ipBlockList,onClick:this.onSubmit},__("Save block list","jetpack"))),y().createElement("div",{className:"waf__settings__ips"},y().createElement(m.lX,null,__("Always allowed IP addresses","jetpack")),y().createElement(x.Z,{disabled:a||this.props.isUpdatingWafSettings&&this.state.ipAllowList!==this.props.settings?.ipAllowList,name:"ipAllowList",placeholder:__("Example:","jetpack")+"\n12.12.12.1\n12.12.12.2",value:this.props.allowListInputState,onChange:this.handleIpAllowListChange}),y().createElement(d.Z,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:a||this.state.ipAllowList===this.props.settings?.ipAllowList||this.props.isUpdatingWafSettings&&this.state.ipAllowList!==this.props.settings?.ipAllowList,onClick:this.onSubmit},__("Save allow list","jetpack"))))),_=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(o.Z,{checked:this.props.settings?.shareData,disabled:a,toggling:this.props.isUpdatingWafSettings&&this.state.shareData!==this.props.settings?.shareData,onChange:this.toggleShareData,label:y().createElement("div",{className:"waf__settings__toggle-setting__label"},y().createElement("span",{className:"jp-form-toggle-explanation"},__("Share basic data with Jetpack","jetpack")),y().createElement(S.Z,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover"},(0,l.createInterpolateElement)(__("Allow Jetpack to collect basic data from blocked requests to improve firewall protection and accuracy. <ExternalLink>Learn more</ExternalLink> <hr /> <ExternalLink>Privacy Information</ExternalLink>","jetpack"),{ExternalLink:y().createElement(c.ExternalLink,{href:(0,i.Z)("jetpack-waf-settings-privacy-info")}),hr:y().createElement("hr",null)})))})),b=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(o.Z,{checked:this.props.settings?.shareDebugData,disabled:a,toggling:this.props.isUpdatingWafSettings&&this.state.shareDebugData!==this.props.settings?.shareDebugData,onChange:this.toggleShareDebugData,label:y().createElement("div",{className:"waf__settings__toggle-setting__label"},y().createElement("span",{className:"jp-form-toggle-explanation"},__("Share detailed data with Jetpack","jetpack")),y().createElement(S.Z,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover"},(0,l.createInterpolateElement)(__("Allow Jetpack to collect detailed data from blocked requests to enhance firewall protection and accuracy. <ExternalLink>Learn more</ExternalLink> <hr /> <ExternalLink>Privacy Information</ExternalLink>","jetpack"),{ExternalLink:y().createElement(c.ExternalLink,{href:(0,i.Z)("jetpack-waf-settings-privacy-info")}),hr:y().createElement("hr",null)})))})),w=(0,l.createInterpolateElement)(__("<b>Enhance protection</b> - Learn how to configure the firewall to inspect all requests and run before WordPress initializes","jetpack"),{b:y().createElement("strong",null)}),C=y().createElement(u.Z,{header:w,className:"waf__enhanced-protection"},y().createElement(f.Z,{hasChild:!0},y().createElement("ul",null,y().createElement("li",null,(0,l.createInterpolateElement)((0,p.sprintf)(/* translators: Placeholder is the file path to the Firewall's bootstrap file. */ __("To ensure the firewall can best protect your site, please update: <code>auto_prepend_file</code> PHP directive to point to <code>%s</code> Typically this is set either in an .htaccess file or in the global PHP configuration; contact your host for further assistance.","jetpack"),this.props.settings?.bootstrapPath),{code:y().createElement("code",null)})),y().createElement("li",null,__("Don't forget to undo this action when Firewall is turned off, or when you uninstall Jetpack.","jetpack"))))),R=y().createElement(g.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:y().createElement(y().Fragment,null,this.props.settings?.automaticRulesAvailable?__("Upgrade to keep your site secure with up-to-date firewall rules","jetpack",0):__("Upgrade to enable automatic rules","jetpack"),y().createElement(S.Z,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__upgrade-popover"},this.props.settings?.automaticRulesAvailable?__("The free version of the firewall does not receive updates to automatic firewall rules.","jetpack",0):__("The free version of the firewall only allows for use of manual rules.","jetpack"))),eventFeature:"scan",plan:(0,E.o2o)(E.eMt),feature:"jetpack_scan",href:this.props.scanUpgradeUrl,rna:!0});return y().createElement(v.Z,s()({},this.props,{header:n,module:"waf",onSubmit:this.onSubmit,hideButton:!0}),e&&y().createElement(j.Z,null),y().createElement(f.Z,{disableInOfflineMode:!0,module:this.props.getModule("waf"),support:{text:this.props.getModule("waf").long_description,link:this.props.getModule("waf").learn_more_button}},y().createElement(N.T,{slug:"waf",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("waf"),toggleModule:this.props.toggleModuleNow},y().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("waf").description)),e&&!this.props.isFetchingWafSettings&&y().createElement(m.C_,{className:"waf__settings"},h,k,_,b)),e&&this.props.bootstrapPath&&C,!this.props.hasScan&&!this.props.isFetchingSettings&&R)}},M=(0,w.$j)((e=>{const t=(0,C.UL)(e),a=(0,T.EN)(e);return{automaticRulesAvailable:(0,T._0)(e),allowListInputState:null!==a?a:(0,R.$8)(e,"jetpack_waf_ip_allow_list"),hasScan:(0,C.CV)(e,"scan"),isFetchingSettings:(0,T.vd)(e),isUpdatingWafSettings:(0,T.Xn)(e),settings:(0,T.T2)(e),scanUpgradeUrl:(0,_.z)(e,"scan"),sitePlan:t}}),(e=>({updateWafIpAllowList:t=>e((0,Z.uy)(t)),updateWafSettings:t=>e((0,Z.NY)(t)),createNotice:(t,a,n)=>e((0,h.iI)(t,a,n)),removeNotice:t=>e((0,h.qq)(t))})))((0,k.u)(A))},49517:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var n=a(82674),s=a.n(n),i=a(88275),r=a(68841),o=a(65736),c=a(70399),l=a(32223),p=a(32466),d=a(62160),u=a(65043),m=a(99196),h=a.n(m),g=a(59309),k=a(44498),v=a(91256),f=a(37914),E=a(78845),_=a(50416),b=a(67889),y=a(51421);const __=o.__;class w extends h().Component{static displayName="SearchableSettings";render(){const{location:e={pathname:""},rewindStatus:t,searchTerm:a,siteAdminUrl:n,siteRawUrl:m,blogID:g,userCanManageModules:k}=this.props,{pathname:_}=e,w={searchTerm:a,rewindStatus:t,userCanManageModules:k};return h().createElement(i.ZP,null,h().createElement("div",{className:"jp-settings-container"},h().createElement("div",{className:"jp-no-results"},a?(0,o.sprintf)(/* translators: placeholder is a searchterm entered in searchform. */ __("No search results found for %s","jetpack"),a):__("Enter a search term to find settings or close search.","jetpack")),h().createElement(f.Z,s()({siteAdminUrl:n,siteRawUrl:m,active:"/security"===_||"/settings"===_&&k},w)),h().createElement(c.Z,s()({siteRawUrl:m,active:"/discussion"===_},w)),h().createElement(p.Z,s()({siteRawUrl:m,blogID:g,active:"/newsletter"===_},w)),h().createElement(l.Z,s()({siteRawUrl:m,active:"/earn"===_},w)),h().createElement(d.Z,s()({active:"/performance"===_},w)),h().createElement(b.Z,s()({siteRawUrl:m,siteAdminUrl:n,active:"/traffic"===_},w)),h().createElement(y.Z,s()({siteAdminUrl:n,active:"/writing"===_||!k&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize")},w)),h().createElement(E.Z,s()({siteAdminUrl:n,active:"/sharing"===_||"/settings"===_&&!k&&this.props.isModuleActivated("publicize")},w)),h().createElement(u.Z,s()({active:"/privacy"===_},w)),h().createElement(v.Z,{searchTerm:a})),h().createElement(r.C,null))}}const C=(0,g.$j)((e=>({isModuleActivated:t=>(0,_.mp)(e,t)})))((0,k.EN)(w))},13612:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(45106),s=a(6895),i=a(81050),r=a(55609),o=a(69307),c=a(65736),l=a(61775);const __=c.__,p=()=>React.createElement(l.C_,null,React.createElement(i.AutoConversionToggle,{toggleClass:"jp-settings-sharing__sig-toggle"},React.createElement("div",null,React.createElement("div",null,React.createElement(n.ZP,null,React.createElement("strong",null,__("Automatically convert images for compatibility","jetpack")))),(0,o.createInterpolateElement)(__("Social media platforms require different image file types and sizes. Upload one image and it will be automatically converted to ensure maximum compatibility & quality across all your connected platforms. <link>Learn more about media requirements.</link>","jetpack"),{link:React.createElement(r.ExternalLink,{href:(0,s.Z)("jetpack-social-media-support-information")})}))))},139:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(45106),s=a(81050),i=a(65736),r=a(61775);const __=i.__,o=()=>React.createElement(r.C_,null,React.createElement(s.SocialImageGeneratorToggle,{toggleClass:"jp-settings-sharing__sig-toggle"},React.createElement("div",null,React.createElement(n.ZP,null,React.createElement("strong",null,__("Enable Social Image Generator","jetpack"))),__("With Social Image Generator enabled you can automatically generate social images for your posts. You can use the button below to choose a default template for new posts.","jetpack")),React.createElement("div",{className:"jp-settings-sharing__template-picker"},React.createElement(s.TemplatePickerButton,null))))},78845:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(65736),s=a(69270),i=a(99196),r=a.n(i),o=a(59309),c=a(96300),l=a(69508),p=a(50416),d=a(89292),u=a(3230),m=a(33002),h=a(68994),g=a(2950),k=a(52234);const __=n.__;class v extends i.Component{render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,siteUsesWpAdminInterface:this.props.siteUsesWpAdminInterface,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,blogID:this.props.blogID,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules,activeFeatures:this.props.activeFeatures,hasPaidFeatures:this.props.hasPaidFeatures,hasSocialImageGenerator:this.props.hasSocialImageGenerator,hasAutoConversion:this.props.hasAutoConversion,isAtomicSite:this.props.isAtomicSite,hasSharingBlock:this.props.hasSharingBlock,isBlockTheme:this.props.isBlockTheme,useAdminUiV1:this.props.useAdminUiV1},t=this.props.isModuleFound("publicize"),a=this.props.isModuleFound("sharedaddy"),n=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||a||n)?r().createElement("div",null,r().createElement(s.Z,null),r().createElement("h1",{className:"screen-reader-text"},__("Jetpack Sharing Settings","jetpack")),r().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Sharing","jetpack"):__("Share your content to social media, reaching new audiences and increasing engagement.","jetpack")),t&&r().createElement(g.u,e),a&&r().createElement(k.n,e),n&&r().createElement(h.d,e)):null}}const f=(0,o.$j)((e=>({module:t=>(0,p.rT)(e,t),settings:(0,u.Gw)(e),isOfflineMode:(0,c.Ex)(e),siteUsesWpAdminInterface:(0,m.L9)(e),isUnavailableInOfflineMode:t=>(0,c.t_)(e,t),isModuleFound:t=>(0,d.CX)(e,t),isLinked:(0,c.BU)(e),connectUrl:(0,c.AM)(e),siteRawUrl:(0,l.JR)(e),blogID:(0,l.EZ)(e),siteAdminUrl:(0,l.wW)(e),activeFeatures:(0,m.$l)(e),hasPaidFeatures:(0,m.CV)(e,"social-enhanced-publishing"),hasSocialImageGenerator:(0,m.CV)(e,"social-image-generator"),hasAutoConversion:(0,m.CV)(e,"social-image-auto-convert"),userCanManageModules:(0,l.pK)(e),isAtomicSite:(0,l.Ug)(e),hasSharingBlock:(0,l.$4)(e),isBlockTheme:(0,l.$2)(e),useAdminUiV1:e.jetpack.initialState.socialInitialState.useAdminUiV1})))(v)},68994:(e,t,a)=>{"use strict";a.d(t,{d:()=>m});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(2353),c=a(5004),l=a(93806),p=a(28178),d=a(99196),u=a.n(d);const __=r.__,_x=r._x,m=(0,o.u)(class extends d.Component{render(){const e=this.props.isUnavailableInOfflineMode("likes"),t=this.props.getOptionValue("likes");return u().createElement(l.Z,s()({},this.props,{header:_x("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0}),u().createElement(p.Z,{disableInOfflineMode:!0,module:{module:"likes"},support:{text:__("Adds like buttons to your content so that visitors can show their appreciation or enjoyment.","jetpack"),link:(0,i.Z)("jetpack-support-likes")}},u().createElement("p",null,__("The Like button is a way for people on WordPress.com to show their appreciation for your content.","jetpack")),u().createElement(c.T,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},u().createElement("span",{className:"jp-form-toggle-explanation"},__("Add Like buttons to your posts and pages","jetpack")))))}})},2950:(e,t,a)=>{"use strict";a.d(t,{u:()=>b});var n=a(82674),s=a.n(n),i=a(6895),r=a(81050),o=a(69307),c=a(65736),l=a(85799),p=a(66164),d=a(2353),u=a(5004),m=a(93806),h=a(28178),g=a(84069),k=a(99196),v=a.n(k),f=a(61775),E=a(13612),_=a(139);const __=c.__,_x=c._x,b=(0,d.u)(class extends k.Component{trackClickConfigure(){g.Z.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}componentDidUpdate(){this.props.getOptionValue("publicize")&&!window.Initial_State.socialInitialState.is_publicize_enabled&&window.location.reload()}render(){const e=this.props.isUnavailableInOfflineMode("publicize"),t=this.props.isLinked,a=this.props.isOfflineMode,n=this.props.siteRawUrl,c=this.props.blogID,d=this.props.siteAdminUrl,g=this.props.getOptionValue("publicize"),k=this.props.hasPaidFeatures,b=this.props.hasSocialImageGenerator,y=this.props.hasAutoConversion,w=this.props.isAtomicSite,C=this.props.activeFeatures,j=this.props.userCanManageModules,S=this.props.useAdminUiV1,N=!w&&C&&C.length>0&&g&&!k&&t,x=g&&!this.props.isSavingAnyOption("publicize"),R=encodeURIComponent(d.replace(/\/$/,""));return j||g?v().createElement(m.Z,s()({},this.props,{header:_x("Jetpack Social","Settings header","jetpack"),module:"publicize",hideButton:!0}),j&&v().createElement(h.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"publicize"},support:{text:__("Allows you to automatically share your newest content on social media sites, including Facebook and LinkedIn.","jetpack"),link:(0,i.Z)("jetpack-support-publicize")}},v().createElement("p",null,__("Enable Jetpack Social and connect your social accounts to automatically share your content with your followers with a single click. When you publish a post, you will be able to share it on all connected accounts.","jetpack")),N?v().createElement("p",null,(0,o.createInterpolateElement)(__("<moreInfo>Upgrade to a Jetpack Social plan</moreInfo> to get advanced sharing options.","jetpack"),{moreInfo:v().createElement("a",{href:(0,i.Z)("jetpack-plugin-admin-page-sharings-screen",{site:n,query:"redirect_to="+R})})})):null,v().createElement(u.T,{slug:"publicize",disabled:e,activated:g,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},__("Automatically share your posts to social networks","jetpack"))),v().createElement(r.RefreshJetpackSocialSettingsWrapper,{shouldRefresh:!g&&this.props.isSavingAnyOption("publicize")},x&&y&&v().createElement(E.Z,null),x&&b&&v().createElement(_.Z,null),g&&t&&S&&!this.props.isSavingAnyOption("publicize")?v().createElement(f.C_,{className:"jp-settings__connection-management"},v().createElement(r.ConnectionManagement,null)):null)),!t&&!a&&v().createElement(p.Z,{feature:"publicize",featureLabel:__("Jetpack Social","jetpack"),text:__("Connect to add your social media accounts.","jetpack")}),g&&!S&&(()=>{if(!e)return t&&v().createElement(l.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:(0,i.Z)("calypso-marketing-connections",{site:c??n})},__("Connect your social media accounts","jetpack"))})()):null}})},52234:(e,t,a)=>{"use strict";a.d(t,{n:()=>f});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69307),c=a(65736),l=a(85799),p=a(2353),d=a(5004),u=a(71668),m=a(93806),h=a(28178),g=a(84069),k=a(99196),v=a.n(k);const __=c.__,_x=c._x,f=(0,p.u)(class extends k.Component{trackClickConfigure(){g.Z.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}render(){const e=this.props.isLinked,t=this.props.siteRawUrl,a=this.props.blogID,n=this.props.siteAdminUrl,c=this.props.isOfflineMode,p=this.props.siteUsesWpAdminInterface,g=this.props.hasSharingBlock,k=this.props.isBlockTheme,f=this.props.getOptionValue("sharedaddy"),E=k&&g,_=(0,i.Z)("jetpack-support-sharing-block"),b=(0,i.Z)("jetpack-support-sharing");return v().createElement(m.Z,s()({},this.props,{header:_x("Sharing buttons","Settings header","jetpack"),module:"sharing",hideButton:!0}),v().createElement(h.Z,{disableInOfflineMode:!0,module:{module:"sharedaddy"},support:{text:__("You can customize the sharing buttons and choose which services to display.","jetpack"),link:E?_:b}},v().createElement("p",null,__("Add sharing buttons so visitors can share your posts and pages on social media with a couple of quick clicks.","jetpack")),(()=>{const e=v().createElement(d.T,{slug:"sharedaddy",activated:f,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},__("Add sharing buttons to your posts and pages","jetpack")));if(!E)return e;const t=f?(0,o.createInterpolateElement)(__("You are using a block-based theme. We recommend that you disable the legacy sharing feature above and add a sharing button block to your themes’s template instead. <a>Discover how</a>.","jetpack"),{a:v().createElement(r.ExternalLink,{href:_})}):(0,o.createInterpolateElement)(__("You are using a block-based theme. Instead of enabling Jetpack’s legacy sharing buttons above, we would recommend that you add a sharing button block to your themes’s template in the site editor instead. <a>Discover how</a>.","jetpack"),{a:v().createElement(r.ExternalLink,{href:_})});return v().createElement(v().Fragment,null,e,v().createElement(u.Z,{showDismiss:!1,status:"is-info",className:"jp-settings-sharing__block-theme-description"},t))})()),(f||E)&&(()=>{const s={compact:!0,className:"jp-settings-card__configure-link",href:`${n}options-general.php?page=sharing`};return E?s.href=`${n}site-editor.php?path=%2Fwp_template`:!e||c||p||(s.href=(0,i.Z)("calypso-marketing-sharing-buttons",{site:a??t}),s.onClick=this.trackClickConfigure,s.target="_blank",s.rel="noopener noreferrer"),v().createElement(l.Z,s,__("Configure your sharing buttons","jetpack"))})())}})},51975:(e,t,a)=>{"use strict";a.d(t,{$0n:()=>pe,$F1:()=>Jt,$ID:()=>Q,$d8:()=>$t,AAZ:()=>d,Abu:()=>He,B9W:()=>_,BB$:()=>ie,BC7:()=>Dt,BG7:()=>se,BVO:()=>l,BX3:()=>Ce,CD3:()=>O,CMU:()=>Tt,CaH:()=>vt,CfX:()=>K,DgS:()=>Mt,Dze:()=>Be,EpE:()=>qe,Ez9:()=>Et,EzW:()=>ha,FLi:()=>Se,FcF:()=>wt,Few:()=>Ve,Fmj:()=>ae,G_D:()=>ht,Gu5:()=>M,H5i:()=>H,HEN:()=>at,HOX:()=>ce,Hyl:()=>D,I3o:()=>R,IWc:()=>u,IZk:()=>lt,J1y:()=>o,JAC:()=>fe,JE6:()=>kt,Jyr:()=>A,K0Z:()=>yt,KDO:()=>ne,Kth:()=>G,Lao:()=>L,Lon:()=>I,LxH:()=>ua,M0I:()=>qt,Mg3:()=>Ae,MiX:()=>X,MoW:()=>m,N9n:()=>Bt,NG6:()=>pa,Nkq:()=>rt,NsN:()=>Ne,Oth:()=>ra,Piu:()=>re,Ppo:()=>ge,QD8:()=>ve,QFx:()=>we,QGN:()=>J,QmL:()=>_t,R5k:()=>Qt,R99:()=>n,RRK:()=>te,TBz:()=>S,TIZ:()=>xe,TRY:()=>B,Tad:()=>b,Tip:()=>Oe,U$1:()=>Xt,U7H:()=>c,UyH:()=>i,VB$:()=>la,VN$:()=>Ue,VdL:()=>St,VlO:()=>De,WV5:()=>ga,X0m:()=>w,XPw:()=>bt,XUm:()=>We,Y5l:()=>ia,YCI:()=>le,YDM:()=>y,YVt:()=>zt,Yk$:()=>Vt,YoP:()=>xt,_MD:()=>z,a8A:()=>V,aNt:()=>Ut,arb:()=>Ct,arr:()=>F,asZ:()=>ee,b6A:()=>Wt,bGw:()=>f,c0d:()=>$,clc:()=>ta,czi:()=>Gt,dCJ:()=>Lt,dDV:()=>h,dSY:()=>Ee,eco:()=>It,fHq:()=>Ze,fXf:()=>dt,feA:()=>Ft,g9Z:()=>ze,gGy:()=>ma,gYU:()=>je,g_q:()=>na,gat:()=>ue,hF6:()=>Zt,hmP:()=>r,hzW:()=>ke,i3n:()=>it,i7L:()=>me,ien:()=>p,ikp:()=>he,itb:()=>At,jEk:()=>N,jHC:()=>ye,jbS:()=>Qe,jtr:()=>sa,kFt:()=>x,kK9:()=>C,kO5:()=>st,kms:()=>Yt,krc:()=>oa,l94:()=>Te,lLu:()=>Le,lOd:()=>ea,lhN:()=>pt,lje:()=>g,ltp:()=>Fe,mLi:()=>Rt,maF:()=>U,meS:()=>jt,mlz:()=>Pt,n2G:()=>T,nDB:()=>Me,nnP:()=>$e,o2S:()=>k,ogt:()=>tt,p1j:()=>Ot,pmE:()=>Ie,q4m:()=>be,q7G:()=>s,qUO:()=>Ke,qYt:()=>ot,qdt:()=>mt,rAK:()=>j,rQ4:()=>Re,rYo:()=>_e,rwn:()=>Pe,s6x:()=>Ye,s9K:()=>Kt,sG3:()=>Z,sO1:()=>E,sQG:()=>W,t6Q:()=>ca,tUc:()=>ft,tlb:()=>Nt,uGk:()=>et,vrP:()=>Ht,vyx:()=>gt,wXx:()=>ut,w_8:()=>de,wvW:()=>da,x16:()=>nt,x3k:()=>Y,xkZ:()=>P,y$G:()=>Ge,yEZ:()=>oe,yV3:()=>q,ybW:()=>v,ycn:()=>aa,z1n:()=>Xe,zDe:()=>ct,zOX:()=>Je});const n="JETPACK_SET_INITIAL_STATE",s="CONNECT_URL_FETCH",i="CONNECT_URL_FETCH_FAIL",r="CONNECT_URL_FETCH_SUCCESS",o="DISCONNECT_SITE",c="DISCONNECT_SITE_FAIL",l="DISCONNECT_SITE_SUCCESS",p="CONNECT_USER",d="RESET_CONNECT_USER",u="UNLINK_USER",m="UNLINK_USER_FAIL",h="UNLINK_USER_SUCCESS",g="USER_CONNECTION_DATA_FETCH",k="USER_CONNECTION_DATA_FETCH_FAIL",v="USER_CONNECTION_DATA_FETCH_SUCCESS",f="SITE_RECONNECT",E="SITE_RECONNECT_SUCCESS",_="SITE_RECONNECT_FAIL",b="USER_TRACKING_SETTINGS_FETCH",y="USER_TRACKING_SETTINGS_FETCH_FAIL",w="USER_TRACKING_SETTINGS_FETCH_SUCCESS",C="USER_TRACKING_SETTINGS_UPDATE",j="USER_TRACKING_SETTINGS_UPDATE_FAIL",S="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",N="JETPACK_MODULES_LIST_FETCH",x="JETPACK_MODULES_LIST_FETCH_FAIL",R="JETPACK_MODULES_LIST_RECEIVE",Z="JETPACK_MODULE_ACTIVATE",T="JETPACK_MODULE_ACTIVATE_SUCCESS",A="JETPACK_MODULE_ACTIVATE_FAIL",M="JETPACK_MODULE_DEACTIVATE",P="JETPACK_MODULE_DEACTIVATE_FAIL",O="JETPACK_MODULE_DEACTIVATE_SUCCESS",L="JETPACK_MODULE_UPDATE_OPTIONS",I="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",D="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",U="JETPACK_CONNECTION_STATUS_FETCH",z="JETPACK_CONNECTION_TEST_FETCH",V="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",F="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",B="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",H="DASHBOARD_PROTECT_COUNT_FETCH",q="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",J="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",W="RESET_OPTIONS",G="RESET_OPTIONS_FAIL",$="RESET_OPTIONS_SUCCESS",K="VAULTPRESS_SITE_DATA_FETCH",Y="VAULTPRESS_SITE_DATA_FETCH_FAIL",X="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",Q="AKISMET_DATA_FETCH",ee="AKISMET_DATA_FETCH_FAIL",te="AKISMET_DATA_FETCH_SUCCESS",ae="AKISMET_KEY_CHECK_FETCH",ne="AKISMET_KEY_CHECK_FETCH_FAIL",se="AKISMET_KEY_CHECK_FETCH_SUCCESS",ie="PLUGIN_UPDATES_FETCH",re="PLUGIN_UPDATES_FETCH_FAIL",oe="PLUGIN_UPDATES_FETCH_SUCCESS",ce="STATS_SWITCH_TAB",le="STATS_DATA_FETCH",pe="STATS_DATA_FETCH_FAIL",de="STATS_DATA_FETCH_SUCCESS",ue="JETPACK_PRODUCTS_FETCH",me="JETPACK_PRODUCTS_FETCH_RECEIVE",he="JETPACK_PRODUCTS_FETCH_FAIL",ge="JETPACK_SITE_PRODUCTS_FETCH",ke="JETPACK_SITE_PRODUCTS_FETCH_FAIL",ve="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",fe="JETPACK_SETTINGS_FETCH",Ee="JETPACK_SETTINGS_FETCH_RECEIVE",_e="JETPACK_SETTINGS_FETCH_FAIL",be="JETPACK_SETTING_UPDATE",ye="JETPACK_SETTING_UPDATE_SUCCESS",we="JETPACK_SETTING_UPDATE_FAIL",Ce="JETPACK_SETTINGS_UPDATE",je="JETPACK_SETTINGS_UPDATE_FAIL",Se="JETPACK_SETTINGS_UPDATE_SUCCESS",Ne="JETPACK_SETTINGS_SET_UNSAVED_FLAG",xe="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",Re="JETPACK_SITE_DATA_FETCH",Ze="JETPACK_SITE_DATA_FETCH_RECEIVE",Te="JETPACK_SITE_DATA_FETCH_FAIL",Ae="JETPACK_SITE_BENEFITS_FETCH",Me="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",Pe="JETPACK_SITE_BENEFITS_FETCH_FAIL",Oe="JETPACK_SITE_DISCOUNT_FETCH",Le="JETPACK_SITE_DISCOUNT_FETCH_RECEIVE",Ie="JETPACK_SITE_DISCOUNT_FETCH_FAIL",De="JETPACK_SITE_FEATURES_FETCH",Ue="JETPACK_SITE_FEATURES_FETCH_RECEIVE",ze="JETPACK_SITE_FEATURES_FETCH_FAIL",Ve="JETPACK_SITE_PLANS_FETCH",Fe="JETPACK_SITE_PLANS_FETCH_RECEIVE",Be="JETPACK_SITE_PLANS_FETCH_FAIL",He="JETPACK_SITE_PURCHASES_FETCH",qe="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",Je="JETPACK_SITE_PURCHASES_FETCH_FAIL",We="JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION",Ge="JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION",$e="JETPACK_RECOMMENDATIONS_DATA_ADD_VIEWED_RECOMMENDATION",Ke="JETPACK_RECOMMENDATIONS_DATA_FETCH",Ye="JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE",Xe="JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL",Qe="JETPACK_RECOMMENDATIONS_DATA_UPDATE",et="JETPACK_RECOMMENDATIONS_DATA_SAVE",tt="JETPACK_RECOMMENDATIONS_DATA_SAVE_SUCCESS",at="JETPACK_RECOMMENDATIONS_DATA_SAVE_FAIL",nt="JETPACK_RECOMMENDATIONS_STEP_UPDATE",st="JETPACK_RECOMMENDATIONS_STEP_UPDATE_SUCCESS",it="JETPACK_RECOMMENDATIONS_STEP_UPDATE_FAIL",rt="JETPACK_RECOMMENDATIONS_PRODUCT_SUGGESTIONS_FETCH",ot="JETPACK_RECOMMENDATIONS_PRODUCT_SUGGESTIONS_FETCH_RECEIVE",ct="JETPACK_RECOMMENDATIONS_PRODUCT_SUGGESTIONS_FETCH_FAIL",lt="JETPACK_RECOMMENDATIONS_UPSELL_FETCH",pt="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE",dt="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL",ut="JETPACK_RECOMMENDATIONS_CONDITIONAL_FETCH",mt="JETPACK_RECOMMENDATIONS_CONDITIONAL_FETCH_RECEIVE",ht="JETPACK_RECOMMENDATIONS_CONDITIONAL_FETCH_FAIL",gt="JETPACK_RECOMMENDATIONS_FEATURE_INSTALL_START",kt="JETPACK_RECOMMENDATIONS_FEATURE_INSTALL_END",vt="JETPACK_RECOMMENDATIONS_DATA_ONBOARDING_DATA_UPDATE",ft="JETPACK_ACTION_NOTICES_DISMISS",Et="JETPACK_NOTICES_DISMISS_SUCCESS",_t="JETPACK_PLUGINS_DATA_FETCH",bt="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",yt="JETPACK_PLUGINS_DATA_FETCH_FAIL",wt="JETPACK_SEARCH_TERM",Ct="SET_PLAN_DURATION",jt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",St="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",Nt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",xt="DEV_CARD_DISPLAY",Rt="DEV_CARD_HIDE",Zt="MOCK_SWITCH_USER_PERMISSIONS",Tt="MOCK_SWITCH_THREATS",At="REWIND_STATUS_FETCH",Mt="REWIND_STATUS_FETCH_RECEIVE",Pt="REWIND_STATUS_FETCH_FAIL",Ot="BACKUP_PREFLIGHT_TESTS_FETCH",Lt="BACKUP_PREFLIGHT_TESTS_FETCH_SUCCESS",It="BACKUP_PREFLIGHT_TESTS_FETCH_FAILURE",Dt="BACKUP_UNDO_EVENT_FETCH",Ut="BACKUP_UNDO_EVENT_FETCH_FAILURE",zt="BACKUP_UNDO_EVENT_FETCH_SUCCESS",Vt="MOCK_SWITCH_REWIND_STATE",Ft="SCAN_STATUS_FETCH",Bt="SCAN_STATUS_FETCH_RECEIVE",Ht="SCAN_STATUS_FETCH_FAIL",qt="MOCK_SWITCH_SCAN_STATE",Jt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",Wt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",Gt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",$t="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",Kt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",Yt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",Xt="JETPACK_LICENSING_ERROR_UPDATE",Qt="JETPACK_LICENSING_USER_LICENSE_COUNTS_UPDATE",ea="JETPACK_LICENSING_ACTIVATION_NOTICE_DISMISS_UPDATE",ta="JETPACK_LICENSING_GET_USER_LICENSES_FETCH",aa="JETPACK_LICENSING_GET_USER_LICENSES_SUCCESS",na="JETPACK_LICENSING_GET_USER_LICENSES_FAILURE",sa="JETPACK_CONNECTION_HAS_SEEN_WC_CONNECTION_MODAL",ia="WAF_SETTINGS_FETCH",ra="WAF_SETTINGS_FETCH_RECEIVE",oa="WAF_SETTINGS_FETCH_FAIL",ca="WAF_IP_ALLOW_LIST_UPDATED",la="WAF_SETTINGS_UPDATE",pa="WAF_SETTINGS_UPDATE_SUCCESS",da="WAF_SETTINGS_UPDATE_FAIL",ua="JETPACK_INTRO_OFFERS_FETCH",ma="JETPACK_INTRO_OFFERS_FETCH_RECEIVE",ha="JETPACK_INTRO_OFFERS_FETCH_FAIL",ga="JETPACK_RECOMMENDATIONS_SITE_DISCOUNT_VIEWED"},17865:(e,t,a)=>{"use strict";a.d(t,{Bt:()=>p,D3:()=>i,bB:()=>l,eR:()=>o,g4:()=>r,l7:()=>c,zx:()=>d});var n=a(64743),s=a(51975);const i=e=>t=>{t({type:s.HOX,activeStatsTab:e})},r=e=>t=>(t({type:s.YCI}),n.ZP.fetchStatsData(e).then((e=>{t({type:s.w_8,statsData:e})})).catch((e=>{t({type:s.$0n,error:e})}))),o=()=>e=>(e({type:s.H5i}),n.ZP.getProtectCount().then((t=>{e({type:s.QGN,protectCount:t})})).catch((t=>{e({type:s.yV3,error:t})}))),c=()=>e=>(e({type:s.CfX}),n.ZP.getVaultPressData().then((t=>{e({type:s.MiX,vaultPressData:t})})).catch((t=>{e({type:s.x3k,error:t})}))),l=()=>e=>(e({type:s.$ID}),n.ZP.getAkismetData().then((t=>{e({type:s.RRK,akismetData:t})})).catch((t=>{e({type:s.asZ,error:t})}))),p=(e="")=>t=>{t({type:s.Fmj});return(""===e?n.ZP.checkAkismetKey().then((e=>{t({type:s.BG7,akismet:e})})):n.ZP.checkAkismetKeyTyped(e).then((e=>{t({type:s.BG7,akismet:e})}))).catch((e=>{t({type:s.KDO,error:e})}))},d=()=>e=>(e({type:s.BC7}),n.ZP.fetchBackupUndoEvent().then((t=>{e({type:s.YVt,payload:t})})).catch((t=>{e({type:s.aNt,error:t})})))},17296:(e,t,a)=>{"use strict";a.d(t,{Bt:()=>s.Bt,D3:()=>s.D3,F2:()=>n.F2,Fb:()=>n.Fb,O1:()=>n.O1,P_:()=>n.P_,V_:()=>n.V_,Ve:()=>n.Ve,XK:()=>n.XK,Xu:()=>n.Xu,_2:()=>n._2,_R:()=>n._R,b9:()=>n.b9,bB:()=>s.bB,bV:()=>n.bV,eR:()=>s.eR,fU:()=>n.fU,g4:()=>s.g4,gw:()=>n.gw,l5:()=>n.l5,l7:()=>s.l7,vz:()=>n.vz,xz:()=>n.xz,yZ:()=>n.yZ,zx:()=>s.zx});var n=a(30569),s=a(17865)},30569:(e,t,a)=>{"use strict";a.d(t,{F2:()=>c,Fb:()=>b,O1:()=>C,P_:()=>v,V_:()=>k,Ve:()=>w,XK:()=>f,Xu:()=>h,_2:()=>m,_R:()=>E,b9:()=>y,bV:()=>p,fU:()=>d,gw:()=>u,l5:()=>o,sI:()=>r,vz:()=>_,xz:()=>g,yZ:()=>l});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({requests:(e={},t)=>{switch(t.type){case i.YCI:return(0,n.assign)({},e,{fetchingStatsData:!0});case i.$ID:return(0,n.assign)({},e,{fetchingAkismetData:!0});case i.Fmj:return(0,n.assign)({},e,{checkingAkismetKey:!0});case i.CfX:return(0,n.assign)({},e,{fetchingVaultPressData:!0});case i.H5i:return(0,n.assign)({},e,{fetchingProtectData:!0});case i.BB$:return(0,n.assign)({},e,{fetchingPluginUpdates:!0});case i.$0n:case i.w_8:return(0,n.assign)({},e,{fetchingStatsData:!1});case i.asZ:case i.RRK:return(0,n.assign)({},e,{fetchingAkismetData:!1});case i.KDO:case i.BG7:return(0,n.assign)({},e,{checkingAkismetKey:!1});case i.yV3:case i.QGN:return(0,n.assign)({},e,{fetchingProtectData:!1});case i.Piu:case i.yEZ:return(0,n.assign)({},e,{fetchingPluginUpdates:!1});case i.x3k:case i.MiX:return(0,n.assign)({},e,{fetchingVaultPressData:!1,hasLoadedVaultPressData:!0});default:return e}},activeStatsTab:(e="day",t)=>t.type===i.HOX?t.activeStatsTab:e,protectCount:(e="N/A",t)=>t.type===i.QGN?t.protectCount:e,vaultPressData:(e="N/A",t)=>{switch(t.type){case i.MiX:return t.vaultPressData;case i.CMU:return(0,n.assign)({},"N/A"===e?{}:e,{data:{active:!0,features:{security:!0},security:{notice_count:t.mockCount}}});default:return e}},statsData:(e={},t)=>t.type===i.w_8?(0,n.assign)({},e,t.statsData):e,akismetData:(e="N/A",t)=>t.type===i.RRK?t.akismetData:e,akismet:(e={validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t)=>t.type===i.BG7?(0,n.assign)({},e,t.akismet):e,pluginUpdates:(e="N/A",t)=>t.type===i.yEZ?t.pluginUpdates:e,backupUndoEvent:(e={isFetching:!1,loaded:!1,event:{}},{type:t,payload:a})=>{switch(t){case i.BC7:return{...e,isFetching:!0,loaded:!1};case i.YVt:{const t=a.last_rewindable_event;return{...e,isFetching:!1,loaded:!0,actorAvatarUrl:t.actor?.icon?.url??"",actorName:t.actor?.name??"",actorRole:t.actor?.role??"",actorType:t.actor?.type??"",activityDate:t.published??"",activityId:t.activity_id,activityName:t.name,activityTitle:t.summary,activityDescription:t.content?.text??"",undoBackupId:a.undo_backup_id}}case i.aNt:return{...e,isFetching:!1};default:return e}}});function o(e){return e.jetpack.dashboard.activeStatsTab}function c(e){return!!e.jetpack.dashboard.requests.fetchingStatsData}function l(e){return e.jetpack.dashboard.statsData}function p(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function d(e){return e.jetpack.dashboard.akismetData}function u(e){return!!e.jetpack.dashboard.requests.checkingAkismetKey}function m(e){return(0,n.get)(e.jetpack.dashboard,["akismet","validKey"],!1)}function h(e){return!!e.jetpack.dashboard.requests.fetchingProtectData}function g(e){return e.jetpack.dashboard.protectCount}function k(e){return!!e.jetpack.dashboard.requests.hasLoadedVaultPressData}function v(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function f(e){return e.jetpack.dashboard.vaultPressData}function E(e){return(0,n.get)(e.jetpack.dashboard.vaultPressData,"data.security.notice_count",0)}function _(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function b(e){return e.jetpack.pluginsData.items||{}}function y(e){return e.jetpack.dashboard.backupUndoEvent}function w(e){return e.jetpack.dashboard.backupUndoEvent.isFetching}function C(e){return e.jetpack.dashboard.backupUndoEvent.loaded}},95274:(e,t,a)=>{"use strict";a.d(t,{EP:()=>d,HD:()=>m,I7:()=>o,SG:()=>c,bL:()=>u,eW:()=>l,jb:()=>p,qJ:()=>h});var n=a(64743),s=a(65736),i=a(41549),r=a(51975);const __=s.__,o=()=>e=>n.ZP.fetchSiteConnectionStatus().then((t=>{e({type:r.maF,siteConnected:t})})),c=()=>e=>(e((0,i.iI)("is-info",__("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),n.ZP.fetchSiteConnectionTest().then((t=>{e({type:r._MD,connectionTest:t}),e((0,i.qq)("test-jetpack-connection")),e((0,i.iI)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))})).catch((t=>{e((0,i.qq)("test-jetpack-connection")),e((0,i.iI)("is-error",(0,s.sprintf)(/* translators: placeholder is an error message. */ __("There was an error testing Jetpack. Error: %s","jetpack"),t.message),{id:"test-jetpack-connection"}))}))),l=()=>e=>(e({type:r.q7G}),n.ZP.fetchConnectUrl().then((t=>{e({type:r.hmP,connectUrl:t})})).catch((t=>{e({type:r.UyH,error:t})}))),p=()=>e=>(e({type:r.lje}),n.ZP.fetchUserConnectionData().then((t=>{e({type:r.ybW,userConnectionData:t})})).catch((t=>{e({type:r.o2S,error:t})}))),d=()=>e=>(e({type:r.IWc}),e((0,i.iI)("is-info",__("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),n.ZP.unlinkUser().then((t=>{e({type:r.dDV,userUnlinked:t}),e(l()),e((0,i.qq)("unlink-user")),e((0,i.iI)("is-success",__("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))})).catch((t=>{e({type:r.MoW,error:t}),e((0,i.qq)("unlink-user")),e((0,i.iI)("is-error",(0,s.sprintf)(/* translators: placeholder is the error. */ __("Error unlinking from WordPress.com. Error: %s","jetpack"),t),{id:"unlink-user"}))}))),u=(e=null,t=null)=>a=>{a({type:r.ien,featureLabel:e,from:t})},m=()=>e=>{e({type:r.AAZ})},h=()=>e=>(e({type:r.jtr}),n.ZP.setHasSeenWCConnectionModal())},96300:(e,t,a)=>{"use strict";a.d(t,{AM:()=>n.AM,BU:()=>n.BU,Dd:()=>n.Dd,EP:()=>s.EP,Ex:()=>n.Ex,Gz:()=>n.Gz,HD:()=>s.HD,Hu:()=>n.Hu,I7:()=>s.I7,IK:()=>n.IK,LN:()=>n.LN,Mq:()=>n.Mq,O_:()=>n.O_,QM:()=>n.QM,SG:()=>s.SG,Zp:()=>n.Zp,_8:()=>n._8,bL:()=>s.bL,eW:()=>s.eW,e_:()=>n.e_,it:()=>n.it,j8:()=>n.j8,jZ:()=>n.jZ,jb:()=>s.jb,l9:()=>n.l9,q7:()=>n.q7,qJ:()=>s.qJ,rH:()=>n.rH,tM:()=>n.tM,tN:()=>n.tN,t_:()=>n.t_,xP:()=>n.xP,zq:()=>n.zq});var n=a(13480),s=a(95274)},13480:(e,t,a)=>{"use strict";a.d(t,{AM:()=>h,BU:()=>w,Dd:()=>y,Ex:()=>S,Gz:()=>p,Hu:()=>m,I6:()=>c,IK:()=>Z,LN:()=>T,Mq:()=>v,O_:()=>A,QM:()=>C,Zp:()=>l,_8:()=>b,e_:()=>k,it:()=>j,j8:()=>u,jZ:()=>f,l9:()=>N,q7:()=>d,rH:()=>M,tM:()=>x,tN:()=>g,t_:()=>R,xP:()=>_,zq:()=>E});var n=a(92819),s=a(835),i=a(51975),r=a(50416);const o={disconnectingSite:!1,connectingUser:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},c=(0,s.UY)({connectUrl:(e="",t)=>{switch(t.type){case i.R99:return(0,n.get)(t,"initialState.connectUrl",e);case i.hmP:return t.connectUrl;default:return e}},status:(e={siteConnected:window.Initial_State.connectionStatus},t)=>{switch(t.type){case i.maF:case i.BVO:return(0,n.assign)({},e,{siteConnected:t.siteConnected});case i.dDV:return(0,n.assign)({},e,{siteConnected:{...e.siteConnected,isUserConnected:!1}});case i.ybW:return!0===t.userConnectionData?.currentUser?.isConnected?(0,n.assign)({},e,{siteConnected:{...e.siteConnected,hasConnectedOwner:!0}}):e;default:return e}},user:(e=window.Initial_State.userData||{},t)=>{switch(t.type){case i.ybW:return(0,n.assign)({},e,t.userConnectionData);case i.dDV:const a=(0,n.assign)({},e.currentUser,{isConnected:!1});return(0,n.assign)({},e,{currentUser:a});case i.hF6:return(0,n.merge)({},e,t.initialState);default:return e}},requests:(e=o,t)=>{switch(t.type){case i.J1y:return(0,n.assign)({},e,{disconnectingSite:!0});case i.IWc:return(0,n.assign)({},e,{unlinkingUser:!0});case i.ien:return(0,n.assign)({},e,{connectingUser:!0,connectingUserFeatureLabel:t.featureLabel,connectingUserFrom:t.from});case i.AAZ:return(0,n.assign)({},e,{connectingUser:!1});case i.q7G:return(0,n.assign)({},e,{fetchingConnectUrl:!0});case i.lje:return(0,n.assign)({},e,{fetchingUserData:!0});case i.bGw:return(0,n.assign)({},e,{reconnectingSite:!0});case i.U7H:case i.BVO:return(0,n.assign)({},e,{disconnectingSite:!1});case i.MoW:case i.dDV:return(0,n.assign)({},e,{unlinkingUser:!1});case i.UyH:case i.hmP:return(0,n.assign)({},e,{fetchingConnectUrl:!1});case i.o2S:case i.ybW:return(0,n.assign)({},e,{fetchingUserData:!1});case i.B9W:case i.sO1:return(0,n.assign)({},e,{reconnectingSite:!1});default:return e}},hasSeenWCConnectionModal:(e=window.Initial_State.hasSeenWCConnectionModal||!1,t)=>t.type===i.jtr||e});function l(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&e.jetpack.connection.status.siteConnected}function p(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&(e.jetpack.connection.status.siteConnected.offlineMode.isActive?"offline":e.jetpack.connection.status.siteConnected.isActive)}function d(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&e.jetpack.connection.status.siteConnected.isActive}function u(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&e.jetpack.connection.status.siteConnected.isRegistered}function m(e){return!!(0,n.get)(e.jetpack.connection.status,["siteConnected","offlineMode","isActive"])&&(0,n.get)(e.jetpack.connection.status,["siteConnected","offlineMode"])}function h(e){return e.jetpack.connection.connectUrl}function g(e){return e.jetpack.connection.user.currentUser?.wpcomUser}function k(e){return!!e.jetpack.connection.requests.disconnectingSite}function v(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function f(e){return!!e.jetpack.connection.requests.unlinkingUser}function E(e){return!!e.jetpack.connection.requests.connectingUser}function _(e){return e.jetpack.connection.requests.hasOwnProperty("connectingUserFeatureLabel")?e.jetpack.connection.requests.connectingUserFeatureLabel:null}function b(e){return e.jetpack.connection.requests.hasOwnProperty("connectingUserFrom")?e.jetpack.connection.requests.connectingUserFrom:null}function y(e){return!!e.jetpack.connection.requests.fetchingUserData}function w(e){return!!e.jetpack.connection.user.currentUser.isConnected}function C(e){return!!e.jetpack.connection.user.currentUser.isMaster}function j(e){return(0,n.get)(e.jetpack.connection.status,["siteConnected","hasConnectedOwner"],!1)}function S(e){return"offline"===p(e)}function N(e){return(0,n.get)(e.jetpack.connection.status,["siteConnected","isInIdentityCrisis"],!1)}function x(e,t){return(0,n.includes)((0,r.HS)(e).concat(["backups","scan"]),t)}function R(e,t){return S(e)&&x(e,t)}function Z(e,t){return!j(e)&&function(e,t){return(0,n.includes)((0,r.he)(e),t)}(e,t)}function T(e){return(0,n.get)(e.jetpack.connection.status,["siteConnected","sandboxDomain"],"")}function A(e){return!!e.jetpack.connection.requests.reconnectingSite}function M(e){return!!e.jetpack.connection.hasSeenWCConnectionModal}},75711:(e,t,a)=>{"use strict";a.d(t,{Wh:()=>l,Yw:()=>E,_G:()=>o,_s:()=>b,aX:()=>_,fb:()=>p,pH:()=>y,vN:()=>c});var n=a(64743),s=a(65736),i=a(41549),r=a(51975);const __=s.__,o=e=>t=>(t({type:r.sQG}),t((0,i.iI)("is-info",__("Resetting Jetpack options…","jetpack"),{id:"reset-options"})),n.ZP.resetOptions(e).then((()=>{t({type:r.c0d}),t((0,i.qq)("reset-options")),t((0,i.iI)("is-success",__("Options reset.","jetpack"),{id:"reset-options",duration:2e3}))})).catch((e=>{t({type:r.Kth,error:e}),t((0,i.qq)("reset-options")),t((0,i.iI)("is-error",__("Options failed to reset.","jetpack"),{id:"reset-options"}))}))),c=()=>e=>{e({type:r.YoP})},l=()=>e=>{e({type:r.mLi})},p=e=>t=>{t({type:r.fHq,siteData:{plan:{product_slug:e}}})},d={currentUser:{isMaster:!0,isConnected:!0,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},u={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},m={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},h={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},g={currentUser:{permissions:{view_stats:!0}}},k={currentUser:{permissions:{view_stats:!1}}},v={currentUser:{isConnected:!0}},f={currentUser:{isConnected:!1,isMaster:!1}},E=e=>{let t={};return a=>{switch(e){case"admin_master":t=d;break;case"admin_secondary":t=u;break;case"editor":case"contributor":case"author":t=m;break;case"subscriber":t=h;break;case"view_stats":t=g;break;case"hide_stats":t=k;break;case"is_linked":t=v;break;case"is_unlinked":t=f}a({type:r.hF6,initialState:t})}},_=e=>t=>{t({type:r.CMU,mockCount:e})},b=e=>t=>{t({type:r.Yk$,rewindState:{state:e}})},y=e=>t=>{t({type:r.M0I,scanState:{state:e}})}},80625:(e,t,a)=>{"use strict";a.d(t,{Ry:()=>n.Ry,Wh:()=>s.Wh,Yw:()=>s.Yw,_G:()=>s._G,_s:()=>s._s,aX:()=>s.aX,fb:()=>s.fb,pH:()=>s.pH,vN:()=>s.vN});var n=a(49112),s=a(75711)},49112:(e,t,a)=>{"use strict";a.d(t,{I6:()=>i,Ry:()=>r});var n=a(835),s=a(51975);const i=(0,n.UY)({display:(e=!1,t)=>{switch(t.type){case s.YoP:return!0;case s.mLi:return!1;default:return e}}});function r(e){return!!e.jetpack.devCard.display}},8183:(e,t,a)=>{"use strict";a.d(t,{I6:()=>r});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({disconnectSurvey:(e={submitting:!1,submitted:!1,error:null},t)=>{switch(t.type){case i.meS:return(0,n.assign)({},e,{submitting:!0});case i.VdL:return(0,n.assign)({},e,{submitting:!1,submitted:!0,error:null});case i.tlb:return(0,n.assign)({},e,{submitting:!1,submitted:!1,error:t.error});default:return e}}})},16419:(e,t,a)=>{"use strict";a.d(t,{K:()=>s});var n=a(51975);const s=()=>e=>{e({type:n.R99,initialState:window.Initial_State})}},69508:(e,t,a)=>{"use strict";a.d(t,{$2:()=>n.$2,$4:()=>n.$4,$r:()=>n.$r,Cq:()=>n.Cq,Cv:()=>n.Cv,D6:()=>n.D6,DV:()=>n.DV,EZ:()=>n.EZ,G6:()=>n.G6,GC:()=>n.GC,Gf:()=>n.Gf,H$:()=>n.H$,Hy:()=>n.Hy,IU:()=>n.IU,JR:()=>n.JR,KF:()=>n.KF,KY:()=>s.K,Mc:()=>n.Mc,Ms:()=>n.Ms,PK:()=>n.PK,Pw:()=>n.Pw,Q6:()=>n.Q6,QP:()=>n.QP,Qq:()=>n.Qq,RZ:()=>n.RZ,TA:()=>n.TA,Td:()=>n.Td,UF:()=>n.UF,Ug:()=>n.Ug,Uu:()=>n.Uu,VY:()=>n.VY,WB:()=>n.WB,WY:()=>n.WY,YJ:()=>n.YJ,Yg:()=>n.Yg,Z2:()=>n.Z2,Zb:()=>n.Zb,_G:()=>n._G,_W:()=>n._W,aW:()=>n.aW,aZ:()=>n.aZ,as:()=>n.as,bT:()=>n.bT,by:()=>n.by,dc:()=>n.dc,de:()=>n.de,f$:()=>n.f$,hv:()=>n.hv,ic:()=>n.ic,ij:()=>n.ij,jT:()=>n.jT,jU:()=>n.jU,je:()=>n.je,jq:()=>n.jq,mb:()=>n.mb,mh:()=>n.mh,n0:()=>n.n0,nP:()=>n.nP,pI:()=>n.pI,pK:()=>n.pK,px:()=>n.px,rd:()=>n.rd,rf:()=>n.rf,rp:()=>n.rp,vL:()=>n.vL,w1:()=>n.w1,wB:()=>n.wB,wW:()=>n.wW,xR:()=>n.xR,xT:()=>n.xT,xz:()=>n.xz,yB:()=>n.yB,ze:()=>n.ze});var n=a(34761),s=a(16419)},34761:(e,t,a)=>{"use strict";a.d(t,{$2:()=>ee,$4:()=>we,$r:()=>_,Cq:()=>be,Cv:()=>Q,D6:()=>y,DV:()=>le,E3:()=>l,EZ:()=>L,G6:()=>ge,GC:()=>ne,Gf:()=>P,H$:()=>F,Hy:()=>G,IU:()=>Z,JR:()=>v,KF:()=>A,Mc:()=>x,Ms:()=>M,PK:()=>he,Pw:()=>K,Q6:()=>de,QP:()=>ie,Qq:()=>pe,RZ:()=>je,TA:()=>oe,Td:()=>u,UF:()=>C,Ug:()=>$,Uu:()=>m,VY:()=>z,WB:()=>N,WY:()=>_e,YJ:()=>se,Yg:()=>re,Z2:()=>W,Zb:()=>ye,_G:()=>T,_W:()=>p,aW:()=>E,aZ:()=>U,as:()=>H,bT:()=>Se,by:()=>ue,dc:()=>b,de:()=>J,f$:()=>Ne,hv:()=>q,ic:()=>S,ij:()=>Ee,jT:()=>Ce,jU:()=>fe,je:()=>g,jq:()=>ke,mb:()=>ae,mh:()=>ce,n0:()=>R,nP:()=>ve,pI:()=>D,pK:()=>w,px:()=>O,rd:()=>me,rf:()=>X,rp:()=>j,vL:()=>Y,w1:()=>d,wB:()=>B,wW:()=>f,xR:()=>te,xT:()=>k,xz:()=>h,yB:()=>V,ze:()=>I});var n=a(6895),s=a(92819),i=a(51975),r=a(96300),o=a(85207),c=a(77805);const l=(e=window.Initial_State,t)=>{switch(t.type){case i.R99:return(0,s.assign)({},e,t.initialState);case i.hF6:return(0,s.merge)({},e,{userData:t.initialState});default:return e}};function p(e){return!!e.jetpack.initialState.isDevVersion}function d(e){return(0,s.get)(e.jetpack.initialState,"currentVersion","")}function u(e){return(0,s.get)(e.jetpack.initialState.stats,"roles",{})}function m(e){return(0,s.get)(e.jetpack.initialState.stats,"data")}function h(e){return(0,s.get)(e.jetpack.initialState,"connectedPlugins",{})}function g(e){return(0,s.get)(e.jetpack.initialState,["userData","currentUser","wpcomUser","email"])}function k(e){return(0,s.get)(e.jetpack.initialState,["userData","currentUser","email"])}function v(e){return(0,s.get)(e.jetpack.initialState,"rawUrl",{})}function f(e){return(0,s.get)(e.jetpack.initialState,"adminUrl",{})}function E(e){return(0,s.get)(e.jetpack.initialState,"siteTitle","")}function _(e){return(0,s.get)(e.jetpack.initialState,["connectionStatus","isPublic"])}function b(e){return!(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function y(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"publish_posts",!1)}function w(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_modules",!1)}function C(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_options",!1)}function j(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function S(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_plugins",!1)}function N(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"disconnect",!1)}function x(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect",!1)}function R(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect_user",!1)}function Z(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","login"],"")}function T(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","ID"],"")}function A(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser,["gravatar"])}function M(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser,["username"])}function P(e){const t=(0,s.get)(e.jetpack.initialState.userData.currentUser,["displayName"]);return null===t?M(e):t}function O(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser.permissions,"view_stats",!1)}function L(e){return(0,s.get)(e.jetpack.initialState.siteData,["blog_id"])}function I(e){return(0,s.get)(e.jetpack.initialState.siteData,["icon"])}function D(e){return(0,s.get)(e.jetpack.initialState.siteData,["siteVisibleToSearchEngines"],!0)}function U(e){return(0,s.get)(e.jetpack.initialState.siteData,["latestBoostSpeedScores"])}function z(e){return(0,s.get)(e.jetpack.initialState,"WP_API_nonce")}function V(e){return(0,s.get)(e.jetpack.initialState,"WP_API_root")}function F(e){return(0,s.get)(e.jetpack.initialState,"registrationNonce")}function B(e){return(0,s.get)(e.jetpack.initialState,"pluginBaseUrl")}function H(e){return(0,s.get)(e.jetpack.initialState,"purchaseToken")}function q(e){return(0,s.get)(e.jetpack.initialState,"tracksUserData")}function J(e){return(0,s.get)(e.jetpack.initialState,"currentIp")}function W(e){return(0,s.get)(e.jetpack.initialState,"lastPostUrl")}function G(e){return(0,s.get)(e.jetpack.initialState.siteData,"showPromotions",!0)}function $(e){return(0,s.get)(e.jetpack.initialState.siteData,"isAtomicSite",!1)}function K(e){return(0,s.get)(e.jetpack.initialState.siteData,"isWoASite",!1)}function Y(e){return(0,s.get)(e.jetpack.initialState.siteData,"isAtomicPlatform",!1)}function X(e){return(0,s.get)(e.jetpack.initialState.themeData,"stylesheet")}function Q(e,t){return(0,s.get)(e.jetpack.initialState.themeData,["support",t],!1)}function ee(e){return(0,s.get)(e.jetpack.initialState.themeData,["isBlockTheme"],!1)}function te(e){return(0,s.get)(e.jetpack.initialState.siteData,"showBackups",!0)}function ae(e){return(0,s.get)(e.jetpack.initialState.siteData,"showRecommendations",!1)}function ne(e){return(0,s.get)(e.jetpack.initialState.siteData,"showMyJetpack",!0)}function se(e){return(0,s.get)(e.jetpack.initialState,"newRecommendations",[])}function ie(e){return se(e).length}function re(e){return(0,s.get)(e.jetpack.initialState.licensing,"showLicensingUi",!1)}function oe(e){return(0,s.get)(e.jetpack.initialState.siteData,"isMultisite",!1)}function ce(e){return(0,s.get)(e.jetpack.initialState.siteData,"dateFormat",!1)}function le(e){return(0,s.get)(e.jetpack.initialState,"partnerCoupon")}const pe=(e,t,a="",i=!1)=>{const c=function(e){return(0,s.get)(e.jetpack.initialState,"aff","")}(e),l=function(e){return(0,s.get)(e.jetpack.initialState,"partnerSubsidiaryId","")}(e),p=a||function(e){return(0,s.get)(e.jetpack.initialState.userData.currentUser,"id","")}(e),d=H(e),u=function(e){return(0,s.get)(e.jetpack.initialState,"calypsoEnv")}(e),m=L(e);i&&"monthly"===(0,o.b)(e)&&(t+="-monthly");const h={site:m??v(e)};return c&&(h.aff=c),p&&(h.u=p),l&&(h.subsidiaryId=l),h.query="",(0,r.BU)(e)||(h.query+="unlinked=1&"),d&&(h.query+=`purchasetoken=${d}`),u&&(h.calypso_env=u),(0,n.Z)(t,h)};function de(e){return(0,s.get)(e.jetpack.initialState,"products",{})}function ue(e){const t=(0,s.get)(e.jetpack.initialState,"products",{}),a=(0,c.dt)(e),i={};for(const[e,r]of Object.entries(t))i[e]={title:r.title,slug:r.slug,key:e,description:r.description,features:r.features,disclaimer:r.disclaimer,available:(0,s.get)(a,[r.slug,"available"],!1),currencyCode:(0,s.get)(a,[r.slug,"currency_code"],""),showPromotion:r.show_promotion,promotionPercentage:r.discount_percent,includedInPlans:r.included_in_plans,fullPrice:(0,s.get)(a,[r.slug,"cost"],""),saleCoupon:(0,s.get)(a,[r.slug,"sale_coupon"],void 0),upgradeUrl:(0,n.Z)("jetpack-product-description-checkout",{path:r.slug})};return i}function me(e){return(0,s.get)(e.jetpack.initialState,"recommendationsStep","")}function he(e){return(0,s.get)(e.jetpack.initialState,["connectionStatus","errors"],[]).filter((e=>e.hasOwnProperty("action")))}function ge(e){return!!e.jetpack.initialState.isSafari}function ke(e){return!!e.jetpack.initialState.doNotUseConnectionIframe}function ve(e){return!!e.jetpack.initialState.isWooCommerceActive}function fe(e,t){return`https://cloud.jetpack.com/${t}/${v(e)}`}function Ee(e){return!!e.jetpack.initialState.isOdysseyStatsEnabled}function _e(e){return!!e.jetpack.initialState.shouldInitializeBlaze}function be(e){return!!e.jetpack.initialState.isBlazeDashboardEnabled}function ye(e){return e.jetpack.initialState.gutenbergInitialState}function we(e){return!!e.jetpack.initialState.siteData.isSharingBlockAvailable}function Ce(e){return e.jetpack.initialState.jetpackManage}function je(e){return e.jetpack.initialState.newsletterDateExample}function Se(e){return!!e.jetpack.initialState.subscriptionSiteEditSupported}function Ne(e){return e.jetpack.initialState.socialInitialState??{}}},88762:(e,t,a)=>{"use strict";a.d(t,{l:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.LxH}),n.ZP.fetchIntroOffers().then((({data:t})=>{e({type:s.gGy,data:t})})).catch((t=>{e({type:s.EzW,error:t})})))},36920:(e,t,a)=>{"use strict";a.d(t,{HW:()=>s.HW,I6:()=>s.I6,lR:()=>n.l,ni:()=>s.ni});var n=a(88762),s=a(47717)},47717:(e,t,a)=>{"use strict";a.d(t,{HW:()=>r,I6:()=>i,ni:()=>o});var n=a(835),s=a(51975);const i=(0,n.UY)({data:(e=[],t)=>t.type===s.gGy?t.data:e,requests:(e={},t)=>{switch(t.type){case s.LxH:return{...e,isFetching:!0};case s.gGy:case s.EzW:return{...e,isFetching:!1};default:return e}}});function r(e){return!!e.jetpack.introOffers.requests.isFetching}function o(e){return e.jetpack.introOffers.data}},13232:(e,t,a)=>{"use strict";a.d(t,{S:()=>s});a(64743);var n=a(51975);const s=e=>t=>{t({type:n.tUc,notice:e})}},35613:(e,t,a)=>{"use strict";a.d(t,{Rv:()=>n.Rv,Sn:()=>s.S,XF:()=>n.XF,gB:()=>n.gB,gq:()=>n.gq,jE:()=>n.jE,pt:()=>n.pt});var n=a(67953),s=a(13232)},67953:(e,t,a)=>{"use strict";a.d(t,{I6:()=>r,Rv:()=>p,XF:()=>d,gB:()=>c,gq:()=>o,jE:()=>u,pt:()=>l});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({notice:(e=!1,t)=>t.type===i.BVO?"disconnected":e,dismissed:(e=window.Initial_State.dismissedNotices,t)=>{switch(t.type){case i.tUc:return(0,n.assign)({},e,{[t.notice]:!0});case i.Ez9:return(0,n.assign)({},e,t.dismissedNotices);case i.c0d:return!1;default:return e}}});function o(e){return e.jetpack.jetpackNotices.notice}function c(e){return(0,n.get)(e.jetpack.initialState,["jetpackStateNotices","errorCode"])}function l(e){return(0,n.get)(e.jetpack.initialState,["jetpackStateNotices","messageCode"])}function p(e){return(0,n.get)(e.jetpack.initialState,["jetpackStateNotices","messageContent"])}function d(e){return(0,n.get)(e.jetpack.initialState,["jetpackStateNotices","errorDescription"])}function u(e,t){return(0,n.get)(e.jetpack.jetpackNotices.dismissed,[t],!1)}},6816:(e,t,a)=>{"use strict";a.d(t,{Ng:()=>r,bT:()=>o,xw:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.U$1,error:""}),n.ZP.updateLicensingError({error:""})),r=()=>e=>n.ZP.getUserLicensesCounts().then((t=>{e({type:s.R5k,counts:t})})).catch((t=>{e({type:s.U$1,error:t})})),o=()=>(e,t)=>{const a=t().jetpack.licensing.userCounts?.detached;return n.ZP.updateLicensingActivationNoticeDismiss(a).then((t=>{e({type:s.lOd,dismissData:t})})).catch((t=>{e({type:s.U$1,error:t})}))}},59963:(e,t,a)=>{"use strict";a.d(t,{Ng:()=>s.Ng,O4:()=>n.O4,Tk:()=>n.Tk,bT:()=>s.bT,xw:()=>s.xw});var n=a(32337),s=a(6816)},32337:(e,t,a)=>{"use strict";a.d(t,{I6:()=>r,O4:()=>c,Tk:()=>o});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({error:(e=window.Initial_State.licensing.error,t)=>t.type===i.U$1?t.error:e,userCounts:(e=window.Initial_State.licensing.userCounts??{},t)=>t.type===i.R5k?(0,n.assign)({},e,t.counts):e,activationNoticeDismiss:(e=window.Initial_State.licensing.activationNoticeDismiss??{last_detached_count:null,last_dismissed_time:null},t)=>t.type===i.lOd?(0,n.assign)({},e,t.dismissData):e,licenses:(e=window.Initial_State.licensing.licenses??{items:[],loading:!1},t)=>{switch(t.type){case i.clc:return{...e,loading:!0};case i.ycn:return{...e,...t.data,loading:!1};case i.g_q:return{...e,loading:!1};default:return e}}});function o(e){return(0,n.get)(e.jetpack.licensing,["error"],"")}function c(e){return(0,n.get)(e.jetpack.licensing.userCounts,["detached"],0)}},78654:(e,t,a)=>{"use strict";a.d(t,{DK:()=>m,Uq:()=>h,Z$:()=>d,d:()=>u});var n=a(64743),s=a(65736),i=a(41549),r=a(19567),o=a.n(r),c=a(92819),l=a(51975),p=a(62586);const __=s.__,d=()=>e=>(e({type:l.jEk}),n.ZP.fetchModules().then((t=>(e({type:l.I3o,modules:t}),t))).catch((t=>{e({type:l.kFt,error:t})}))),u=(e,t=!1)=>(a,r)=>(a({type:l.sG3,module:e}),a((0,i.qq)("module-toggle")),a((0,i.iI)("is-info",(0,s.sprintf)(/* translators: placeholder is a feature name, such as "Image CDN". */ __("Activating %s…","jetpack"),(0,p.rT)(r(),e).name),{id:"module-toggle"})),n.ZP.activateModule(e).then((()=>{a({type:l.n2G,module:e,success:!0}),a((0,i.qq)("module-toggle")),a((0,i.iI)("is-success",(0,s.sprintf)(/* translators: placeholder is a feature name, such as "Image CDN". */ __("%s has been activated.","jetpack"),(0,p.rT)(r(),e).name),{id:"module-toggle",duration:2e3})),t&&window.location.reload()})).catch((t=>{a({type:l.Jyr,module:e,success:!1,error:t}),a((0,i.qq)("module-toggle")),a((0,i.iI)("is-error",(0,s.sprintf)(/* translators: %1$s: feature name, such as "Image CDN". - %2$s: error message. */ __("%1$s failed to activate. %2$s","jetpack"),(0,p.rT)(r(),e).name,t),{id:"module-toggle"}))})));function m(e,t){if("custom-content-types"!==e)return!1;t||o()("#menu-posts-jetpack-portfolio, #menu-posts-jetpack-testimonial").toggle(),(0,c.forEach)(t,(function(e,t){"jetpack_portfolio"===t&&o()("#menu-posts-jetpack-portfolio, .jp-toggle-portfolio").toggle(),"jetpack_testimonial"===t&&o()("#menu-posts-jetpack-testimonial, .jp-toggle-testimonial").toggle()}))}function h(e){(0,c.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&window.location.reload()}},50416:(e,t,a)=>{"use strict";a.d(t,{C5:()=>n.C5,DK:()=>s.DK,HS:()=>n.HS,Qy:()=>n.Qy,R9:()=>n.R9,Su:()=>n.Su,Uq:()=>s.Uq,Xx:()=>n.Xx,Z$:()=>s.Z$,ZY:()=>n.ZY,d:()=>s.d,hU:()=>n.hU,he:()=>n.he,mp:()=>n.mp,og:()=>n.og,rT:()=>n.rT,v1:()=>n.v1,zc:()=>n.zc});var n=a(62586),s=a(78654)},62586:(e,t,a)=>{"use strict";a.d(t,{C5:()=>p,HS:()=>g,I6:()=>c,Qy:()=>y,R9:()=>d,Su:()=>E,Xx:()=>m,ZY:()=>l,hU:()=>u,he:()=>k,mp:()=>_,og:()=>v,rT:()=>h,v1:()=>b,zc:()=>f});var n=a(92819),s=a(835),i=a(51975),r=a(61372);const o={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},c=(0,s.UY)({items:(e={},t)=>{switch(t.type){case i.R99:return(0,n.assign)({},t.initialState.getModules);case i.I3o:return(0,n.assign)({},e,t.modules);case i.n2G:return(0,n.assign)({},e,{[t.module]:(0,n.assign)({},e[t.module],{activated:!0})});case i.CD3:return(0,n.assign)({},e,{[t.module]:(0,n.assign)({},e[t.module],{activated:!1})});case i.Hyl:const a=(0,n.assign)({},e[t.module]);return Object.keys(t.newOptionValues).forEach((e=>{a.options[e].current_value=t.newOptionValues[e]})),(0,n.assign)({},e,{[t.module]:a});default:return e}},requests:(e=o,t)=>{switch(t.type){case i.jEk:return(0,n.assign)({},e,{fetchingModulesList:!0});case i.kFt:case i.I3o:return(0,n.assign)({},e,{fetchingModulesList:!1});case i.sG3:return(0,n.assign)({},e,{activating:(0,n.assign)({},e.activating,{[t.module]:!0})});case i.Jyr:case i.n2G:return(0,n.assign)({},e,{activating:(0,n.assign)({},e.activating,{[t.module]:!1})});case i.Gu5:return(0,n.assign)({},e,{deactivating:(0,n.assign)({},e.deactivating,{[t.module]:!0})});case i.xkZ:case i.CD3:return(0,n.assign)({},e,{deactivating:(0,n.assign)({},e.deactivating,{[t.module]:!1})});case i.Lao:const a=(0,n.assign)({},e.updatingOption);return a[t.module]=(0,n.assign)({},a[t.module]),Object.keys(t.newOptionValues).forEach((e=>{a[t.module][e]=!0})),(0,n.assign)({},e,{updatingOption:(0,n.assign)({},e.updatingOption,a)});case i.Lon:case i.Hyl:const s=(0,n.assign)({},e.updatingOption);return s[t.module]=(0,n.assign)({},s[t.module]),Object.keys(t.newOptionValues).forEach((e=>{s[t.module][e]=!1})),(0,n.assign)({},e,{updatingOption:(0,n.assign)({},e.updatingOption,s)});default:return e}}});function l(e,t){return!!e.jetpack.modules.requests.activating[t]}function p(e,t,a){return(0,n.get)(e.jetpack.modules.items,[t,"options",a,"current_value"])}function d(e,t,a){return(0,n.get)(e.jetpack.modules.items,[t,"options",a,"enum_labels"],!1)}function u(e){return e.jetpack.modules.items}function m(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].activated))}function h(e,t){return(0,n.get)(e.jetpack.modules.items,t,{})}function g(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].requires_connection))}function k(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].requires_user_connection))}function v(e,t=[]){const a=Object.keys(u(e));return 0<(0,n.intersection)(a,t).length}function f(e){return v(e,["carousel","photon","photon-cdn","search","videopress"])}function E(e){return v(e,["protect","sso","vaultpress"])||(0,r.TB)(e,"akismet/akismet.php")}function _(e,t){return!!(0,n.get)(e.jetpack.modules.items,[t,"activated"],!1)}function b(e,t){return(0,n.includes)(Object.keys(e.jetpack.modules.items),t)}function y(e,t){return(0,n.get)(e.jetpack.modules.items,[t,"override"],!1)}},85207:(e,t,a)=>{"use strict";a.d(t,{I:()=>i,b:()=>r});var n=a(835),s=a(51975);const i=(0,n.UY)({duration:(e="yearly",t)=>t.type===s.arb?t.duration:e});function r(e){return e.jetpack.plans.duration}},81886:(e,t,a)=>{"use strict";a(64743)},84884:(e,t,a)=>{"use strict";a.d(t,{T0:()=>n.T0});var n=a(61679);a(81886)},61679:(e,t,a)=>{"use strict";a.d(t,{I6:()=>r,T0:()=>o});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({items:(e={},t)=>t.type===i.i7L?t.products:e,requests:(e={},t)=>{switch(t.type){case i.gat:return(0,n.assign)({},e,{isFetchingProducts:!0});case i.i7L:case i.ikp:return(0,n.assign)({},e,{isFetchingProducts:!1});default:return e}}});function o(e){return!!e.jetpack.products.requests.isFetchingProducts}},34975:(e,t,a)=>{"use strict";a.d(t,{I6:()=>r,K0:()=>o});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({connectUrls:(e={},t)=>t.type===i.R99?(0,n.assign)({},t.initialState.externalServicesConnectUrls):e});function o(e,t){return(0,n.get)(e.jetpack.publicize.connectUrls,t,null)}},93180:(e,t,a)=>{"use strict";a.d(t,{AP:()=>v,Hm:()=>d,J_:()=>p,OC:()=>u,Pq:()=>l,Ti:()=>E,V2:()=>i,fy:()=>h,km:()=>g,s2:()=>f,tR:()=>k,u8:()=>c,x5:()=>r,y5:()=>m});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.qUO}),n.ZP.fetchRecommendationsData().then((t=>{e({type:s.s6x,data:t})})).catch((t=>{e({type:s.z1n,error:t})}))),r=e=>t=>{t({type:s.jbS,data:e})},o=(e,t)=>{const a=t().jetpack.recommendations;return e({type:s.uGk}),n.ZP.saveRecommendationsData(a.data).then((()=>{e({type:s.ogt})})).catch((t=>{e({type:s.HEN,error:t})}))},c=()=>(e,t)=>o(e,t),l=e=>(t,a)=>(t({type:s.XUm,slug:e}),o(t,a)),p=e=>(t,a)=>(t({type:s.y$G,slug:e}),o(t,a)),d=e=>(t,a)=>(t({type:s.nnP,slug:e}),o(t,a)),u=e=>(t,a)=>{t({type:s.x16,step:e});const i=a().jetpack.recommendations;return n.ZP.updateRecommendationsStep(i.step).then((()=>{t({type:s.kO5})})).catch((e=>{t({type:s.i3n,error:e})}))},m=e=>(t,a)=>(t({type:s.CaH,onboardingData:e}),o(t,a)),h=e=>({type:s.WV5,step:e}),g=()=>e=>(e({type:s.Nkq}),n.ZP.fetchRecommendationsProductSuggestions().then((t=>{e({type:s.qYt,productSuggestions:t})})).catch((t=>e({type:s.zDe,error:t})))),k=()=>e=>(e({type:s.IZk}),n.ZP.fetchRecommendationsUpsell().then((t=>{e({type:s.lhN,upsell:t})})).catch((t=>e({type:s.fXf,error:t,upsell:{hide_upsell:!0}})))),v=()=>e=>(e({type:s.wXx}),n.ZP.fetchRecommendationsConditional().then((t=>{e({type:s.qdt,data:t})})).catch((t=>e({type:s.G_D,error:t})))),f=e=>t=>{t({type:s.vyx,feature:e})},E=e=>t=>{t({type:s.JE6,feature:e})}},8722:(e,t,a)=>{"use strict";a.d(t,{$q:()=>s.$q,AP:()=>n.AP,BR:()=>s.BR,CI:()=>s.CI,E3:()=>s.E3,E4:()=>s.E4,El:()=>s.El,F_:()=>s.F_,HZ:()=>s.HZ,Hm:()=>n.Hm,I6:()=>s.I6,J_:()=>n.J_,OC:()=>n.OC,Pq:()=>n.Pq,TK:()=>s.TK,TO:()=>s.TO,Ti:()=>n.Ti,V2:()=>n.V2,VZ:()=>s.VZ,WA:()=>s.WA,WS:()=>s.WS,Xi:()=>s.Xi,YU:()=>s.YU,ZL:()=>s.ZL,at:()=>s.at,b5:()=>s.b5,c1:()=>s.c1,dU:()=>s.dU,dz:()=>s.dz,fo:()=>s.fo,fy:()=>n.fy,i8:()=>s.i8,jn:()=>s.jn,jp:()=>s.jp,km:()=>n.km,mI:()=>s.mI,s2:()=>n.s2,sB:()=>s.sB,tR:()=>n.tR,u8:()=>n.u8,x5:()=>n.x5,y5:()=>n.y5});var n=a(93180),s=a(5954)},76385:(e,t,a)=>{"use strict";a.d(t,{D:()=>r,I:()=>s});var n=a(39398);function s(e){const t=Object.values(n.fq).findIndex((t=>t.includes(e)));return-1===t?null:Object.keys(n.fq)[t]}function i(e){const t=n.rU.indexOf(e);if(-1===t)throw`The onboarding "${e}" is not included in the ONBOARDING_ORDER`;return t}function r(e,t){return i(e)-i(t)}},5954:(e,t,a)=>{"use strict";a.d(t,{$q:()=>S,BR:()=>x,CI:()=>X,E3:()=>Z,E4:()=>y,El:()=>k,F_:()=>J,HZ:()=>G,I6:()=>v,TK:()=>ee,TO:()=>W,VZ:()=>j,WA:()=>E,WS:()=>f,Xi:()=>te,YU:()=>q,ZL:()=>C,at:()=>_,b5:()=>b,c1:()=>A,dU:()=>L,dz:()=>M,fo:()=>I,i8:()=>w,jn:()=>K,jp:()=>Q,mI:()=>$,sB:()=>O});var n=a(59584),s=a(92819),i=a(39398),r=a(835),o=a(51975),c=a(96300),l=a(69508),p=a(69377),d=a(3230),u=a(33002),m=a(61372),h=a(76385);const g=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return(0,s.union)(e,t)},k=e=>(0,s.get)(e.jetpack,["recommendations","productSuggestions"],[]),v=(0,r.UY)({data:(e={},t)=>{switch(t.type){case o.s6x:case o.jbS:for(const[e,a]of Object.entries(t.data)){const n=t.data;if("site-type-business"===e){const e=n["site-type-agency"];n["site-type-agency"]=void 0!==e?e:a,delete n["site-type-business"]}if("site-type-other"===e){const e=n["site-type-personal"];n["site-type-personal"]=void 0!==e?e:a,delete n["site-type-other"]}}return(0,s.assign)({},e,t.data);case o.XUm:{const a=(0,s.mergeWith)({},e,{selectedRecommendations:[t.slug],skippedRecommendations:[],viewedRecommendations:[]},g);return a.skippedRecommendations=(0,s.difference)(e.skippedRecommendations,[t.slug]),a}case o.y$G:{const a=(0,s.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[t.slug],viewedRecommendations:[]},g);return a.selectedRecommendations=(0,s.difference)(e.selectedRecommendations,[t.slug]),a}case o.nnP:return(0,s.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[],viewedRecommendations:[t.slug]},g);case o.CaH:{const{active:a,viewed:n,hasStarted:s,totalSteps:i}=t.onboardingData;return Object.assign({},e,{...void 0!==a?{onboardingActive:a}:{},...void 0!==n?{onboardingViewed:n}:{},...void 0!==s?{onboardingHasStarted:s}:{},...void 0!==i?{onboardingTotalSteps:i}:{}})}default:return e}},requests:(e={},t)=>{switch(t.type){case o.qUO:return(0,s.assign)({},e,{isFetchingRecommendationsData:!0});case o.s6x:return(0,s.assign)({},e,{isRecommendationsDataLoaded:!0,isFetchingRecommendationsData:!1});case o.z1n:return(0,s.assign)({},e,{isFetchingRecommendationsData:!1});case o.Nkq:return(0,s.assign)({},e,{isFetchingRecommendationsProductSuggestions:!0});case o.qYt:case o.zDe:return(0,s.assign)({},e,{isFetchingRecommendationsProductSuggestions:!1});case o.IZk:return(0,s.assign)({},e,{isFetchingRecommendationsUpsell:!0});case o.lhN:case o.fXf:return(0,s.assign)({},e,{isFetchingRecommendationsUpsell:!1});case o.wXx:return(0,s.assign)({},e,{isFetchingRecommendationsConditional:!0});case o.qdt:return(0,s.assign)({},e,{isRecommendationsConditionalLoaded:!0,isFetchingRecommendationsConditional:!1});case o.G_D:return(0,s.assign)({},e,{isFetchingRecommendationsConditional:!1});case o.x16:return(0,s.assign)({},e,{isUpdatingRecommendationsStep:!0});case o.kO5:case o.i3n:return(0,s.assign)({},e,{isUpdatingRecommendationsStep:!1});default:return e}},step:(e="",t)=>t.type===o.x16?t.step:e,upsell:(e={},t)=>{switch(t.type){case o.lhN:case o.fXf:return t.upsell;default:return e}},productSuggestions:(e={},t)=>{switch(t.type){case o.qYt:case o.zDe:return t.productSuggestions;default:return e}},conditional:(e=[],t)=>{switch(t.type){case o.qdt:case o.G_D:return t.data;default:return e}},siteDiscount:(e={},t)=>t.type===o.WV5?{...e,viewed:t.step}:e,installing:(e={},t)=>{switch(t.type){case o.vyx:return Object.values(i.uw).includes(t.feature)?{...e,[t.feature]:!0}:e;case o.JE6:return Object.values(i.uw).includes(t.feature)?{...e,[t.feature]:!1}:e;default:return e}}}),f=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsData,E=e=>!!e.jetpack.recommendations.requests.isRecommendationsDataLoaded,_=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsProductSuggestions,b=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsUpsell,y=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsConditional,w=e=>!!e.jetpack.recommendations.requests.isRecommendationsConditionalLoaded,C=e=>!!e.jetpack.recommendations.requests.isUpdatingRecommendationsStep,j=e=>e.jetpack.recommendations.siteDiscount.viewed||"",S=(e,t)=>(0,s.get)(e.jetpack,["recommendations","data",t],!1),N={default:{"setup-wizard-completed":"summary","banner-completed":"agency","not-started":"site-type-question","site-type-question":"agency",agency:"woocommerce","product-suggestions":"woocommerce",woocommerce:"monitor",monitor:"related-posts","related-posts":"newsletter",newsletter:"site-accelerator","site-accelerator":"publicize",publicize:"vaultpress-for-woocommerce","vaultpress-for-woocommerce":"vaultpress-backup","vaultpress-backup":"summary",protect:"summary","anti-spam":"summary",videopress:"summary","backup-plan":"summary",boost:"summary",summary:"summary"},onboarding:{[i.WU]:{welcome__complete:"backup-activated","backup-activated":"scan-activated","scan-activated":"antispam-activated","antispam-activated":"videopress-activated","videopress-activated":"social-advanced-activated","social-advanced-activated":"search-activated","search-activated":"server-credentials","server-credentials":"summary"},[i.Wn]:{welcome__security:"backup-activated","backup-activated":"scan-activated","scan-activated":"antispam-activated","antispam-activated":"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.dL]:{welcome__starter:"backup-activated","backup-activated":"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.sV]:{welcome__backup:"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.DF]:{welcome__antispam:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.Lw]:{welcome__videopress:"monitor",monitor:"site-accelerator","site-accelerator":"related-posts","related-posts":"summary"},[i.NN]:{welcome__search:"related-posts","related-posts":"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.UP]:{welcome__scan:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.xG]:{welcome__social_basic:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.GB]:{welcome__social_advanced:"welcome__social_image_generator",welcome__social_image_generator:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.JI]:{welcome__golden_token:"backup-activated","backup-activated":"scan-activated","scan-activated":"server-credentials","server-credentials":"summary"}}},x={"not-started":"#/recommendations/site-type","site-type-question":"#/recommendations/site-type","product-suggestions":"#/recommendations/product-suggestions",agency:"#/recommendations/agency",woocommerce:"#/recommendations/woocommerce",monitor:"#/recommendations/monitor",newsletter:"#/recommendations/newsletter","related-posts":"#/recommendations/related-posts","creative-mail":"#/recommendations/creative-mail","site-accelerator":"#/recommendations/site-accelerator",publicize:"#/recommendations/publicize",protect:"#/recommendations/protect","anti-spam":"#/recommendations/anti-spam",videopress:"#/recommendations/videopress","backup-plan":"#/recommendations/backup-plan",boost:"#/recommendations/boost",summary:"#/recommendations/summary","vaultpress-backup":"#/recommendations/vaultpress-backup","vaultpress-for-woocommerce":"#/recommendations/vaultpress-for-woocommerce",welcome__backup:"#/recommendations/welcome-backup",welcome__complete:"#/recommendations/welcome-complete",welcome__security:"#/recommendations/welcome-security",welcome__starter:"#/recommendations/welcome-starter",welcome__antispam:"#/recommendations/welcome-antispam",welcome__videopress:"#/recommendations/welcome-videopress",welcome__search:"#/recommendations/welcome-search",welcome__scan:"#/recommendations/welcome-scan",welcome__social_basic:"#/recommendations/welcome-social-basic",welcome__social_advanced:"#/recommendations/welcome-social-advanced",welcome__social_image_generator:"#/recommendations/welcome-social-image-generator",welcome__golden_token:"#/recommendations/welcome-golden-token","backup-activated":"#/recommendations/backup-activated","scan-activated":"#/recommendations/scan-activated","unlimited-sharing-activated":"#/recommendations/unlimited-sharing-activated","social-advanced-activated":"#/recommendations/social-advanced-activated","antispam-activated":"#/recommendations/antispam-activated","videopress-activated":"#/recommendations/videopress-activated","search-activated":"#/recommendations/search-activated","server-credentials":"#/recommendations/server-credentials"},R=e=>(0,s.get)(e.jetpack,["recommendations","data"]),Z=(e,t)=>{const a=R(e);return a.viewedRecommendations&&a.viewedRecommendations.includes(t)},T=(e,t)=>{const a=R(e);return a.skippedRecommendations&&a.skippedRecommendations.includes(t)},A=(e,t)=>(0,s.get)(e.jetpack,["recommendations","installing"])[t]??!1,M=(e,t)=>{switch(t){case"boost":return!!(0,m.TB)(e,"jetpack-boost/jetpack-boost.php");case"creative-mail":return!!(0,m.TB)(e,"creative-mail-by-constant-contact/creative-mail-plugin.php");case"monitor":return!!(0,d.$8)(e,"monitor");case"newsletter":return!!(0,d.$8)(e,"subscriptions");case"related-posts":return!!(0,d.$8)(e,"related-posts");case"site-accelerator":return!!(0,d.$8)(e,"photon")&&(0,d.$8)(e,"photon-cdn");case"woocommerce":return!!(0,m.TB)(e,"woocommerce/woocommerce.php");case"protect":return!!(0,m.TB)(e,"jetpack-protect/jetpack-protect.php");case"publicize":return!!(0,d.$8)(e,"publicize");case"videopress-activated":case"videopress":return!!(0,m.TB)(e,"videopress/jetpack-videopress.php");case"antispam-activated":return!!(0,m.TB)(e,"akismet/akismet.php");default:throw`Unknown featureSlug in isFeatureActive() in recommendations/reducer.js: ${t}`}},P=e=>"jetpack_free"===(0,u.UL)(e).product_slug&&!(0,u.b2)(e),O=e=>{if(!P(e))return!1;const t=k(e);return(0,s.isArray)(t)&&!(0,s.isEmpty)(t)},L=e=>{const t=q(e);if(t&&t.active){const{totalSteps:a}=t,n=W(e);return a.length-(a.indexOf(n)+1)}return(0,l.QP)(e)},I=(e,t)=>{switch(t){case"publicize":case"protect":if(!(0,u.VL)(e)&&!(0,u.nE)(e))return n.Etl;break;case"backup-plan":if(!(0,u.b7)(e)&&!(0,n.kdX)((0,u.UL)(e)))return n.tVY;break;case"newsletter":if(!(0,u.pf)(e))return n.PuQ;break;case"anti-spam":if(!(0,m.TB)(e,"akismet/akismet.php")&&!(0,u.IL)(e)&&!(0,n.O$n)((0,u.UL)(e)))return n.shc;break;case"videopress":if(!(0,u.CV)(e,"videopress-1tb-storage")&&!(0,u.CV)(e,"videopress-unlimited-storage"))return n.v_I}return!1},D=(e,t=!1)=>{const a=(0,u.UL)(e).product_slug;return"is-free-plan"===(0,n.scx)(a)&&(0,l.nP)(e)===t},U=(e,t)=>{const a=(e=>(0,s.get)(e.jetpack,["recommendations","conditional"]))(e);return Array.isArray(a)&&a.indexOf(t)>-1},z=(e,t)=>{switch(t){case"setup-wizard-completed":case"banner-completed":case"not-started":return!1;case"site-type-question":case"summary":case"backup-activated":case"scan-activated":case"unlimited-sharing-activated":case"social-advanced-activated":case"search-activated":case"welcome__complete":case"welcome__security":case"welcome__starter":case"welcome__antispam":case"welcome__videopress":case"welcome__search":case"welcome__scan":case"welcome__social_basic":case"welcome__social_advanced":case"welcome__social_image_generator":case"welcome__backup":case"welcome__golden_token":return!0;case"product-suggestions":return O(e);case"vaultpress-backup":return D(e);case"vaultpress-for-woocommerce":return D(e,!0);case"agency":return!!S(e,"site-type-agency");case"woocommerce":return!!S(e,"site-type-store")&&!M(e,t);case"monitor":return(0,c.it)(e)&&!M(e,t);case"publicize":case"videopress":case"boost":return U(e,t)&&!M(e,t);case"protect":return U(e,t)&&!(0,m.TB)(e,"jetpack-protect/jetpack-protect.php");case"anti-spam":case"backup-plan":return U(e,t);case"server-credentials":return"awaiting_credentials"===(0,p.of)(e).state;case"antispam-activated":case"videopress-activated":return M(e,t);default:return!M(e,t)}},V=(e,t)=>{const a=(0,s.get)(q(e),"active"),n=(0,s.get)(N,a?`onboarding.${a}`:"default");if(!n)return"summary";let i=n[t]||"summary";for(;!z(e,i);)i=n[i];return i},F=e=>Object.keys((0,s.get)(N,`onboarding.${e}`,{})),B=e=>{const t=(0,l.YJ)(e),a=(0,l.rd)(e),n=q(e);return n&&n.active?n.hasStarted?a:(s=n.active,F(s)[0]):"summary"!==a||Z(e,"site-type-question")?t.length>0?t[0]:a:"site-type-question";var s},H=e=>(e=>(0,u.qn)(e).filter((({active:e,subscribed_date:t})=>"1"===e&&i.f6<Date.parse(t))))(e).map((({product_slug:e})=>(0,h.I)(e))).filter((e=>null!==e)),q=e=>{if((0,u._5)(e)||!E(e))return null;const t=H(e),a={active:S(e,"onboardingActive")||null,viewed:(S(e,"onboardingViewed")||[]).filter((e=>t.includes(e))),totalSteps:S(e,"onboardingTotalSteps")||[],hasStarted:S(e,"onboardingHasStarted")||!1},n=t.filter((e=>!a.viewed.includes(e)));if(n.length>0){const t=n.sort(h.D);return{active:t[0],totalSteps:F(t[0]).filter((t=>z(e,t))),viewed:(0,s.union)(a.viewed,t),hasStarted:!1}}return a},J=e=>{const t=q(e);return null!==t&&null!==t.active},W=e=>{const t=(0,s.get)(e.jetpack,["recommendations","step"],""),a=""!==t?t:B(e);return["setup-wizard-completed","banner-completed"].includes(a)?V(e,a):a},G=e=>{const t=q(e);if(!t||!t.active)return null;const{totalSteps:a}=t,n=W(e);return{currentStepIndex:a.indexOf(n),totalSteps:a.length}},$=e=>{const t=W(e),a=V(e,t);return x[a]},K=e=>(0,s.get)(e.jetpack,["recommendations","upsell"],{}),Y=(e,t)=>{switch(t){case"woocommerce":return!0===S(e,"site-type-store");case"agency":return!0===S(e,"site-type-agency");case"monitor":return(0,c.it)(e);case"boost":case"protect":case"videopress":return U(e,t)||M(e,t);case"publicize":return!(0,u.U)(e)&&!(0,u._i)(e);case"anti-spam":case"backup-plan":return U(e,t);default:return!0}},X=e=>{const t=["woocommerce","monitor","related-posts","creative-mail","newsletter","site-accelerator","protect","publicize","videopress","boost"].filter((t=>Y(e,t))),a=[],n=[];for(const s of t)M(e,s)||A(e,s)?a.push(s):T(e,s)&&n.push(s);return{selected:a,skipped:n}},Q=e=>["agency","anti-spam","backup-plan"].filter((t=>Y(e,t))),ee=e=>{const t=q(e);return t?t.viewed.filter((t=>((e,t)=>{const a=q(e),n=a?a.viewed:[];if(!n.includes(t))return!1;switch(t){case i.WU:return!0;case i.Lw:case i.NN:case i.Wn:case i.xG:case i.GB:return!n.includes(i.WU);case i.sV:case i.DF:case i.UP:return!n.includes(i.WU)&&!n.includes(i.Wn);default:return!0}})(e,t))).sort(h.D).map((e=>i.XE[e])):[]},te=e=>{const t=(0,u.UL)(e),a=(0,p.of)(e).state;return t.product_slug&&a?P(e)?"upsell":"awaiting_credentials"!==a||(0,u.CV)(e,"scan")?["active","provisioning"].includes(a)?"manage-security":"download-app":"one-click-restores":"loading"}},29171:(e,t,a)=>{"use strict";a.d(t,{Z:()=>R});var n=a(33929),s=a(835),i=a(30569),r=a(13480),o=a(49112),c=a(8183),l=a(34761),p=a(36920),d=a(67953),u=a(32337),m=a(62586),h=a(85207),g=a(61679),k=a(34975),v=a(8722),f=a(5220),E=a(75518),_=a(17647),b=a(11834),y=a(71),w=a(16876),C=a(7628),j=a(11410),S=a(30775),N=a(22948);const x=(0,s.UY)({connection:r.I6,dashboard:i.sI,devCard:o.I6,initialState:l.E3,jetpackNotices:d.I6,modules:m.I6,plans:h.I,pluginsData:y.I6,products:g.I6,publicize:k.I6,recommendations:v.I6,rewind:f.I6,scan:E.I6,search:_.I6,settings:b.I6,siteData:w.I6,siteProducts:C.I6,siteVerify:j.I6,disconnectSurvey:c.I6,trackingSettings:S.I6,licensing:u.I6,waf:N.I6,introOffers:p.I6}),R=(0,s.UY)({globalNotices:n.x,jetpack:x})},15641:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(835),s=a(75385),i=a(29171);const r=(0,n.qC)((0,n.md)(s.Z),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(n.MT)(i.Z)},2653:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.itb}),n.ZP.fetchRewindStatus().then((t=>(e({type:s.DgS,status:t}),t))).catch((t=>{e({type:s.mlz,error:t})})))},69377:(e,t,a)=>{"use strict";a.d(t,{Au:()=>s.A,Li:()=>n.Li,of:()=>n.of});var n=a(5220),s=a(2653)},40158:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n={SUCCESS:"success",IN_PROGRESS:"in-progress",PENDING:"pending",FAILED:"failed"}},36583:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(51975),s=a(40158),i=a(44031);const r={error:null,featureEnabled:!1,hasLoaded:!1,isFetching:!1,overallStatus:s.Z.PENDING,tests:[]},o=(e=r,t)=>{switch(t.type){case n.p1j:return{...e,isFetching:!0,hasLoaded:!1};case n.eco:return{...e,isFetching:!1,hasLoaded:!0,error:t.error};case n.dCJ:return{...e,isFetching:!1,hasLoaded:!0,featureEnabled:t.featureEnabled,...t.tests&&Array.isArray(t.tests)?{overallStatus:(0,i.k)(t.tests)}:{}};default:return e}}},44031:(e,t,a)=>{"use strict";a.d(t,{k:()=>s});var n=a(40158);const s=e=>0===e.length?n.Z.PENDING:e.some((e=>e.status===n.Z.FAILED))?n.Z.FAILED:e.some((e=>e.status===n.Z.IN_PROGRESS))?n.Z.IN_PROGRESS:e.every((e=>e.status===n.Z.SUCCESS))?n.Z.SUCCESS:n.Z.PENDING},5220:(e,t,a)=>{"use strict";a.d(t,{I6:()=>c,Li:()=>l,of:()=>p});var n=a(92819),s=a(835),i=a(51975),r=a(36583);const o={isFetchingRewindStatus:!1},c=(0,s.UY)({data:(e={},t)=>{switch(t.type){case i.DgS:return(0,n.assign)({},e,{status:t.status});case i.Yk$:return(0,n.assign)({},e,{status:t.rewindState});default:return e}},requests:(e=o,t)=>{switch(t.type){case i.itb:return(0,n.assign)({},e,{isFetchingRewindStatus:!0});case i.DgS:case i.mlz:return(0,n.assign)({},e,{isFetchingRewindStatus:!1});default:return e}},preflight:r.Z});function l(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function p(e){return(0,n.get)(e.jetpack.rewind,["data","status"],{})}},34758:(e,t,a)=>{"use strict";a.d(t,{e:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.feA}),n.ZP.fetchScanStatus().then((t=>(e({type:s.N9n,status:t}),t))).catch((t=>{e({type:s.vrP,error:t})})))},15080:(e,t,a)=>{"use strict";a.d(t,{C8:()=>n.C8,eR:()=>s.e,gE:()=>n.gE});var n=a(75518),s=a(34758)},75518:(e,t,a)=>{"use strict";a.d(t,{C8:()=>l,I6:()=>o,gE:()=>c});var n=a(92819),s=a(835),i=a(51975);const r={isFetchingScanStatus:!1},o=(0,s.UY)({data:(e={},t)=>{switch(t.type){case i.N9n:return(0,n.assign)({},e,{status:t.status});case i.M0I:return{status:{...e.status,...t.scanState}};default:return e}},requests:(e=r,t)=>{switch(t.type){case i.feA:return(0,n.assign)({},e,{isFetchingScanStatus:!0});case i.N9n:case i.vrP:return(0,n.assign)({},e,{isFetchingScanStatus:!1});default:return e}}});function c(e){return!!e.jetpack.scan.requests.isFetchingScanStatus}function l(e){return(0,n.get)(e.jetpack.scan,["data","status"],{})}},84570:(e,t,a)=>{"use strict";a.d(t,{e:()=>s});var n=a(51975);const s=e=>t=>{t({type:n.FcF,term:e})}},89292:(e,t,a)=>{"use strict";a.d(t,{CX:()=>n.CX,He:()=>n.He,eb:()=>s.e});var n=a(17647),s=a(84570)},17647:(e,t,a)=>{"use strict";a.d(t,{CX:()=>c,He:()=>o,I6:()=>r});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({searchTerm:(e="",t)=>t.type===i.FcF?t.term:e});function o(e){return e.jetpack.search.searchTerm}function c(e,t){const a=(0,n.find)((0,n.get)(e.jetpack,["modules","items"],{}),["module",t]);if(void 0===a)return!1;const s=(0,n.get)(e.jetpack,["search","searchTerm"],!1);return!s||[a.module,a.name,a.description,a.learn_more_button,a.long_description,a.search_terms,a.additional_search_queries,a.short_description,a.feature?a.feature.toString():""].join(" ").toLowerCase().indexOf(s.toLowerCase())>-1}},91952:(e,t,a)=>{"use strict";a.d(t,{VP:()=>u,_1:()=>p,a6:()=>l,wv:()=>d});var n=a(64743),s=a(65736),i=a(41549),r=a(92819),o=a(51975),c=a(50416);const __=s.__,l=()=>({type:o.NsN}),p=()=>({type:o.TIZ}),d=()=>e=>(e({type:o.JAC}),n.ZP.fetchSettings().then((t=>(e({type:o.dSY,settings:t}),t))).catch((t=>{e({type:o.rYo,error:t})}))),u=(e,t={})=>a=>{const l={progress:__("Updating settings…","jetpack"),success:__("Updated settings.","jetpack"),error:e=>(0,s.sprintf)(/* translators: placeholder is an error code or an error message. */ __("Error updating settings. %s","jetpack"),e.message||e.code||e.name||e),...t};"object"==typeof e&&(0,r.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&(l.success=__("Updated settings. Refreshing page…","jetpack")),a((0,i.qq)("module-setting-update")),a((0,i.qq)("module-setting-update-success"));const p=["dismiss_empty_stats_card","dismiss_dash_backup_getting_started","dismiss_dash_agencies_learn_more"];return"object"!=typeof e||(0,r.some)(p,(t=>t in e))||a((0,i.iI)("is-info",l.progress,{id:"module-setting-update"})),a({type:o.BX3,updatedOptions:e}),n.ZP.updateSettings(e).then((t=>{a({type:o.FLi,updatedOptions:m(t,e),success:t}),(0,c.DK)(e),(0,c.Uq)(e),a((0,i.qq)("module-setting-update")),a((0,i.qq)("module-setting-update-success")),"object"!=typeof e||(0,r.some)(p,(t=>t in e))||a((0,i.iI)("is-success",l.success,{id:"module-setting-update-success",duration:2e3}))})).catch((t=>{a({type:o.gYU,success:!1,error:t,updatedOptions:e}),a((0,i.qq)("module-setting-update")),a((0,i.iI)("is-error",l.error(t),{id:"module-setting-update"}))}))};function m(e,t){let a=t;return"regenerate"===(0,r.get)(t,"post_by_email_address")&&(a={post_by_email_address:e.post_by_email_address}),a}},3230:(e,t,a)=>{"use strict";a.d(t,{$8:()=>n.$8,Cu:()=>n.Cu,GD:()=>n.GD,Gw:()=>n.Gw,VP:()=>s.VP,_1:()=>s._1,a6:()=>s.a6,g0:()=>n.g0,p0:()=>n.p0,qg:()=>n.qg,wS:()=>n.wS,wv:()=>s.wv});var n=a(11834),s=a(91952)},11834:(e,t,a)=>{"use strict";a.d(t,{$8:()=>l,Cu:()=>p,GD:()=>m,Gw:()=>c,I6:()=>o,g0:()=>h,p0:()=>d,qg:()=>u,wS:()=>g});var n=a(92819),s=a(835),i=a(51975);const r={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},o=(0,s.UY)({items:(e={},t)=>{switch(t.type){case i.R99:return(0,n.assign)({},e,t.initialState.settings);case i.dSY:return(0,n.assign)({},t.settings);case i.jHC:const a=Object.keys(t.updatedOption)[0];return(0,n.assign)({},e,{[a]:t.updatedOption[a]});case i.FLi:return(0,n.assign)({},e,t.updatedOptions);default:return e}},requests:(e=r,t)=>{switch(t.type){case i.JAC:return(0,n.assign)({},e,{fetchingSettingsList:!0});case i.rYo:case i.dSY:return(0,n.assign)({},e,{fetchingSettingsList:!1});case i.q4m:case i.BX3:return(0,n.merge)({},e,{settingsSent:(0,n.mapValues)(t.updatedOptions,(()=>!0))});case i.QFx:case i.jHC:case i.gYU:case i.FLi:return(0,n.merge)({},e,{settingsSent:(0,n.mapValues)(t.updatedOptions,(()=>!1)),updatedSettings:(0,n.mapValues)(t.updatedOptions,(()=>Boolean(t.success)))});default:return e}},unsavedSettingsFlag:(e=!1,t)=>{switch(t.type){case i.NsN:return!0;case i.TIZ:return!1;default:return e}}});function c(e){return e.jetpack.settings.items}function l(e,t,a="",s=!0){if(!s||""===a||(0,n.get)(e.jetpack.settings.items,a,!1))return(0,n.get)(e.jetpack.settings.items,t,void 0)}function p(e,t=""){return"object"==typeof t?(0,n.some)((0,n.filter)(e.jetpack.settings.requests.settingsSent,((e,a)=>(0,n.includes)(t,a))),(e=>e)):e.jetpack.settings.requests.settingsSent[t]}function d(e,t=""){return e.jetpack.settings.requests.updatedSettings[t]}function u(e,t){return!!(0,n.get)(e.jetpack.settings.items,[t],!1)}function m(e){return(0,n.get)(e.jetpack.settings,"unsavedSettingsFlag",!1)}function h(e){return(0,n.get)(e.jetpack.settings.items,"dismiss_empty_stats_card",!1)}function g(e){return(0,n.get)(e.jetpack.settings.items,"dismiss_dash_backup_getting_started",!1)}},58324:(e,t,a)=>{"use strict";a.d(t,{p:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.Ppo}),n.ZP.fetchSiteProducts().then((t=>{e({type:s.QD8,siteProducts:t.data})})).catch((t=>{e({type:s.hzW,error:t})})))},77805:(e,t,a)=>{"use strict";a.d(t,{Ki:()=>n.Ki,aX:()=>n.aX,cR:()=>n.cR,dt:()=>n.dt,gp:()=>n.gp,pW:()=>s.p});var n=a(7628),s=a(58324)},7628:(e,t,a)=>{"use strict";a.d(t,{I6:()=>i,Ki:()=>l,aX:()=>r,cR:()=>p,dt:()=>o,gp:()=>c});var n=a(835),s=a(51975);const i=(0,n.UY)({items:(e={},t)=>t.type===s.QD8?t.siteProducts:e,requests:(e={},t)=>{switch(t.type){case s.Ppo:return{...e,isFetching:!0};case s.QD8:case s.hzW:return{...e,isFetching:!1};default:return e}}});function r(e){return!!e.jetpack.siteProducts.requests.isFetching}function o(e){return e.jetpack.siteProducts.items}function c(e,t){return e.jetpack.siteProducts.items?.[t]}function l(e,t){const a=c(e,t),n=a?.introductory_offer?.cost_per_interval||a?.cost;return Math.ceil(n/12*100)/100}function p(e,t){const a=c(e,t),n=a?.introductory_offer?.cost_per_interval;return"year"===a?.introductory_offer?.interval_unit&&1===a?.introductory_offer?.interval_count&&n?Math.ceil(n/a?.cost*100):0}},163:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c,n:()=>o});var n=a(64743),s=a(65736),i=a(41549),r=a(51975);const __=s.__,o=(e=null)=>t=>(t({type:r.$F1}),n.ZP.fetchVerifySiteGoogleStatus(e).then((e=>{if(e.errors&&e.errors.length>0){const a=Object.keys(e.errors)[0],n=e.errors[a];return t({type:r.b6A,error:{code:a,message:n}}),e}return t({type:r.czi,verified:e.verified,token:e.token,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url}),e})).catch((e=>{t({type:r.b6A,error:e.response})}))),c=e=>t=>(t({type:r.$d8}),n.ZP.verifySiteGoogle(e).then((e=>{if(e.errors&&e.errors.length>0){const a=Object.keys(e.errors)[0],n=e.errors[a];return t({type:r.kms,error:{code:a,message:n}}),e}return t({verified:e.verified,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url,type:r.s9K}),e.verified&&t((0,i.iI)("is-success",__("Site is verified","jetpack"),{id:"verify-site-google-verified",duration:2e3})),e})).catch((e=>{t({type:r.kms,error:e.response})})))},47923:(e,t,a)=>{"use strict";a.d(t,{BH:()=>n.BH,Zn:()=>s.Z,_g:()=>n._g,dO:()=>n.dO,hr:()=>n.hr,n:()=>s.n,nS:()=>n.nS,nZ:()=>n.nZ,ou:()=>n.ou});var n=a(11410),s=a(163)},11410:(e,t,a)=>{"use strict";a.d(t,{BH:()=>c,I6:()=>r,_g:()=>u,dO:()=>m,hr:()=>l,nS:()=>p,nZ:()=>o,ou:()=>d});var n=a(92819),s=a(835),i=a(51975);const r=(0,s.UY)({google:(e={fetching:!1,verifying:!1,verified:!1},t)=>{switch(t.type){case i.$F1:return(0,n.assign)({},e,{fetching:!0});case i.b6A:return(0,n.assign)({},e,{fetching:!1,error:t.error});case i.czi:return(0,n.assign)({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});case i.$d8:return(0,n.assign)({},e,{verifying:!0});case i.s9K:return(0,n.assign)({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case i.kms:return(0,n.assign)({},e,{verifying:!1,verified:!1,error:t.error});default:return e}}});function o(e){return(0,n.get)(e,"jetpack.siteVerify.google.fetching",!1)}function c(e){return(0,n.get)(e,"jetpack.siteVerify.google.verifying",!1)}function l(e){return!o(e)&&"no_token_for_user"!==(0,n.get)(e,"jetpack.siteVerify.google.error.code",null)}function p(e){return(0,n.get)(e,"jetpack.siteVerify.google.verified",!1)}function d(e){return(0,n.get)(e,"jetpack.siteVerify.google.error",null)}function u(e){return(0,n.get)(e,"jetpack.siteVerify.google.searchConsoleUrl",null)}function m(e){return(0,n.get)(e,"jetpack.siteVerify.google.isOwner",!1)}},87619:(e,t,a)=>{"use strict";a.d(t,{IO:()=>r,N$:()=>o,Z_:()=>p,ij:()=>c,lA:()=>l,tO:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.rQ4}),n.ZP.fetchSiteData().then((t=>(e({type:s.fHq,siteData:t}),t))).catch((t=>{e({type:s.l94,error:t})}))),r=()=>e=>(e({type:s.Mg3}),n.ZP.fetchSiteBenefits().then((t=>{e({type:s.nDB,siteBenefits:t})})).catch((t=>{e({type:s.rwn,error:t})}))),o=()=>e=>(e({type:s.Tip}),n.ZP.fetchSiteDiscount().then((t=>{e({type:s.lLu,siteDiscount:t})})).catch((t=>{e({type:s.pmE,error:t})}))),c=()=>e=>(e({type:s.VlO}),n.ZP.fetchSiteFeatures().then((t=>(e({type:s.VN$,siteFeatures:t}),t))).catch((t=>{e({type:s.g9Z,error:t})}))),l=()=>e=>(e({type:s.Few}),n.ZP.getPlans().then((t=>(e({type:s.ltp,plans:t}),t))).catch((t=>{e({type:s.Dze,error:t})}))),p=()=>e=>(e({type:s.Abu}),n.ZP.fetchSitePurchases().then((t=>(e({type:s.EpE,purchases:t}),t))).catch((t=>{e({type:s.zOX,error:t})})))},33002:(e,t,a)=>{"use strict";a.d(t,{$l:()=>n.$l,CV:()=>n.CV,GR:()=>n.GR,IL:()=>n.IL,IO:()=>s.IO,L9:()=>n.L9,N$:()=>s.N$,U:()=>n.U,UL:()=>n.UL,VH:()=>n.VH,VL:()=>n.VL,Vc:()=>n.Vc,Z_:()=>s.Z_,Zd:()=>n.Zd,_5:()=>n._5,_i:()=>n._i,az:()=>n.az,b2:()=>n.b2,b7:()=>n.b7,bl:()=>n.bl,ij:()=>s.ij,lA:()=>s.lA,ms:()=>n.ms,nE:()=>n.nE,nl:()=>n.nl,nq:()=>n.nq,p:()=>n.p,pf:()=>n.pf,qn:()=>n.qn,tO:()=>s.tO,u:()=>n.u});var n=a(16876),s=a(87619)},20213:(e,t,a)=>{"use strict";a.d(t,{s:()=>i});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.QmL}),n.ZP.fetchPluginsData().then((t=>(e({type:s.XPw,pluginsData:t}),t))).catch((t=>{e({type:s.K0Z,error:t})})))},61372:(e,t,a)=>{"use strict";a.d(t,{P8:()=>n.P8,TB:()=>n.TB,bK:()=>n.bK,s4:()=>s.s,vz:()=>n.vz});var n=a(71),s=a(20213)},71:(e,t,a)=>{"use strict";a.d(t,{I6:()=>o,P8:()=>d,TB:()=>p,bK:()=>l,vz:()=>c});var n=a(92819),s=a(835),i=a(51975);const r={isFetchingPluginsData:!1},o=(0,s.UY)({items:(e={},t)=>t.type===i.XPw?(0,n.assign)({},t.pluginsData):e,requests:(e=r,t)=>{switch(t.type){case i.QmL:return(0,n.assign)({},e,{isFetchingPluginsData:!0});case i.K0Z:case i.XPw:return(0,n.assign)({},e,{isFetchingPluginsData:!1});default:return e}}});function c(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function l(e){return e.jetpack.pluginsData.items}function p(e,t){return e.jetpack.pluginsData.items[t]&&e.jetpack.pluginsData.items[t].active}function d(e,t){return!!e.jetpack.pluginsData.items[t]}},16876:(e,t,a)=>{"use strict";a.d(t,{$l:()=>_,CV:()=>b,GR:()=>h,I6:()=>l,IL:()=>Z,L9:()=>y,U:()=>M,UL:()=>g,VH:()=>k,VL:()=>N,Vc:()=>p,Zd:()=>m,_5:()=>d,_i:()=>x,az:()=>T,b2:()=>S,b7:()=>A,bl:()=>u,ms:()=>E,nE:()=>P,nl:()=>C,nq:()=>v,p:()=>j,pf:()=>R,qn:()=>w,u:()=>f});var n=a(65736),s=a(59584),i=a(92819),r=a(835),o=a(51975);const __=n.__,c={isFetchingSiteData:!1},l=(0,r.UY)({data:(e={},t)=>{switch(t.type){case o.fHq:return(0,i.assign)({},e,t.siteData);case o.nDB:return(0,i.merge)({},e,{site:{benefits:t.siteBenefits}});case o.lLu:if(t.siteDiscount?.code)return(0,i.merge)({},e,{site:{discount:t.siteDiscount}});case o.arr:return(0,i.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case o.VN$:return(0,i.merge)({},e,{site:{features:t.siteFeatures}});case o.ltp:return(0,i.merge)({},e,{sitePlans:t.plans});case o.EpE:return(0,i.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:(e=c,t)=>{switch(t.type){case o.rQ4:return(0,i.assign)({},e,{isFetchingSiteData:!0});case o.Mg3:return(0,i.assign)({},e,{isFetchingSiteBenefits:!0});case o.Tip:return(0,i.assign)({},e,{isFetchingSiteDiscount:!0});case o.a8A:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!0});case o.VlO:return(0,i.assign)({},e,{isFetchingSiteFeatures:!0});case o.Few:return(0,i.assign)({},e,{isFetchingSitePlans:!0});case o.Abu:return(0,i.assign)({},e,{isFetchingSitePurchases:!0});case o.l94:case o.fHq:return(0,i.assign)({},e,{isFetchingSiteData:!1});case o.rwn:case o.nDB:return(0,i.assign)({},e,{isFetchingSiteBenefits:!1});case o.pmE:case o.lLu:return(0,i.assign)({},e,{isFetchingSiteDiscount:!1});case o.TRY:case o.arr:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case o.g9Z:case o.VN$:return(0,i.assign)({},e,{isFetchingSiteFeatures:!1});case o.Dze:case o.ltp:return(0,i.assign)({},e,{isFetchingSitePlans:!1});case o.zOX:case o.EpE:return(0,i.assign)({},e,{isFetchingSitePurchases:!1});default:return e}},errors:(e={},t)=>{let a,n;if(t.type===o.l94){switch(t.error.name){case"ApiError":a="reconnect",n=__("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":a="support",n=__("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:a=null,n=__("There seems to be a problem with your website.","jetpack")}return(0,i.assign)({},e,{message:t.error.hasOwnProperty("response")?t.error.response.message:n,action:a,code:t.error.hasOwnProperty("response")?t.error.response.code:"fetch_site_data_fail_other",data:t.error.hasOwnProperty("response")?t.error.response.data:{}})}return e}});function p(e){return[(0,i.get)(e.jetpack.siteData,["errors"],[])]}function d(e){return!!(e.jetpack.siteData.requests.isFetchingSiteData||e.jetpack.siteData.requests.isFetchingSiteFeatures||e.jetpack.siteData.requests.isFetchingSitePlans||e.jetpack.siteData.requests.isFetchingSitePurchases)}function u(e){return!!e.jetpack.siteData.requests.isFetchingSiteBenefits}function m(e){return!!e.jetpack.siteData.requests.isFetchingSiteDiscount}function h(e){return!!e.jetpack.siteData.requests.isFetchingSitePurchases}function g(e){return(0,i.get)(e.jetpack.siteData,["data","plan"],{})}function k(e){return(0,i.get)(e.jetpack.siteData,["data","options","videopress_storage_used"],null)}function v(e){return(0,i.get)(e.jetpack.siteData,["data","site","benefits"],null)}function f(e){return(0,i.get)(e.jetpack.siteData,["data","site","discount"],{})}function E(e){return(0,i.get)(e.jetpack.siteData,["data","site","features","available"],{})}function _(e){return(0,i.get)(e.jetpack.siteData,["data","site","features","active"],[])}function b(e,t){const a=_(e);return a&&a.indexOf(t)>=0}function y(e){return"wp-admin"===(0,i.get)(e.jetpack.siteData,["data","options","wpcom_admin_interface"])}function w(e){return(0,i.get)(e.jetpack.siteData,["data","sitePurchases"],[])}function C(e){return w(e).filter((e=>"1"===e.active))}function j(e){return C(e).filter((e=>(0,s.yy5)(e.product_slug)))}function S(e){return j(e).length>0}function N(e){return!!function(e){return(0,i.find)(C(e),(e=>(0,s.DMv)(e.product_slug)))}(e)||"is-complete-plan"===(0,s.scx)(g(e).product_slug)}function x(e){return"is-complete-plan"===(0,s.scx)(g(e).product_slug)}function R(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,s.e8w)(e.product_slug)))}(e)||"is-complete-plan"===(0,s.scx)(g(e).product_slug)}function Z(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,s.ECB)(e.product_slug)))}(e)}function T(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,s.Mvu)(e.product_slug)))}(e)}function A(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,s.MC3)(e.product_slug)))}(e)}function M(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,s.vZK)(e.product_slug)))}(e)}function P(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,s.SsR)(e.product_slug)))}(e)}},97639:(e,t,a)=>{"use strict";a.d(t,{$:()=>o,X:()=>c});var n=a(64743),s=a(65736),i=a(41549),r=a(51975);const __=s.__,o=()=>e=>(e({type:r.Tad}),n.ZP.fetchUserTrackingSettings().then((t=>(e({type:r.X0m,settings:t}),t))).catch((t=>{e({type:r.YDM,error:t})}))),c=e=>t=>{const a={progress:__("Updating privacy settings…","jetpack"),success:__("Updated privacy settings.","jetpack"),error:e=>(0,s.sprintf)(/* translators: placeholder is an error message. */ __("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)};return t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-info",a.progress,{id:"tracking-settings-update"})),t({type:r.kK9,updatedSettings:e}),n.ZP.updateUserTrackingSettings(e).then((n=>{t({type:r.TBz,updatedSettings:e,success:n}),t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-success",a.success,{id:"tracking-settings-update-success",duration:2e3}))})).catch((n=>{t({type:r.rAK,updatedSettings:e,success:!1,error:n}),t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-error",a.error(n),{id:"tracking-settings-update"}))}))}},30775:(e,t,a)=>{"use strict";a.d(t,{AO:()=>c,Ak:()=>p,I6:()=>o,ab:()=>l});var n=a(92819),s=a(835),i=a(51975);const r={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},o=(0,s.UY)({items:(e={},t)=>{switch(t.type){case i.X0m:return(0,n.assign)({},e,t.settings);case i.TBz:return(0,n.assign)({},e,t.updatedSettings);default:return e}},requests:(e=r,t)=>{switch(t.type){case i.Tad:return(0,n.assign)({},e,{fetchingTrackingSettings:!0});case i.YDM:case i.X0m:return(0,n.assign)({},e,{fetchingTrackingSettings:!1});case i.kK9:return(0,n.assign)({},e,{updatingTrackingSettings:!0});case i.rAK:case i.TBz:return(0,n.assign)({},e,{updatingTrackingSettings:!1});default:return e}}});function c(e){return e.jetpack.trackingSettings.items}function l(e){return e.jetpack.trackingSettings.requests.fetchingTrackingSettings}function p(e){return e.jetpack.trackingSettings.requests.updatingTrackingSettings}},98159:(e,t,a)=>{"use strict";a.d(t,{Iv:()=>i,NY:()=>o,uy:()=>r});var n=a(64743),s=a(51975);const i=()=>e=>(e({type:s.Y5l}),n.ZP.fetchWafSettings().then((t=>(e({type:s.Oth,settings:t}),t))).catch((t=>{e({type:s.krc,error:t})}))),r=e=>t=>{t({type:s.t6Q,allowList:e})},o=e=>t=>(t({type:s.VB$}),n.ZP.updateWafSettings({jetpack_waf_automatic_rules:e.automaticRulesEnabled,jetpack_waf_ip_list:e.manualRulesEnabled,jetpack_waf_ip_allow_list:e.ipAllowList,jetpack_waf_ip_block_list:e.ipBlockList,jetpack_waf_share_data:e.shareData,jetpack_waf_share_debug_data:e.shareDebugData}).then((e=>(t({type:s.NG6,settings:e}),e))).catch((e=>{throw t({type:s.wvW,error:e}),e})))},22948:(e,t,a)=>{"use strict";a.d(t,{EN:()=>n.EN,I6:()=>n.I6,Iv:()=>s.Iv,uy:()=>s.uy,vd:()=>n.vd});var n=a(86725),s=a(98159)},86725:(e,t,a)=>{"use strict";a.d(t,{EN:()=>u,I6:()=>o,T2:()=>p,Xn:()=>l,_0:()=>d,vd:()=>c});var n=a(92819),s=a(835),i=a(51975);const r={isFetchingWafSettings:!1,isUpdatingWafSettings:!1},o=(0,s.UY)({data:(e={},t)=>{switch(t.type){case i.Oth:case i.NG6:return(0,n.assign)({},e,{bootstrapPath:t.settings?.bootstrap_path,automaticRulesAvailable:Boolean(t.settings?.automatic_rules_available),automaticRulesEnabled:Boolean(t.settings?.jetpack_waf_automatic_rules),manualRulesEnabled:Boolean(t.settings?.jetpack_waf_ip_list),ipAllowList:t.settings?.jetpack_waf_ip_allow_list||"",allowListInputState:void 0===e.allowListInputState?t.settings?.jetpack_waf_ip_allow_list:e.allowListInputState,ipBlockList:t.settings?.jetpack_waf_ip_block_list||"",shareData:Boolean(t.settings?.jetpack_waf_share_data),standaloneMode:Boolean(t.settings?.standalone_mode),shareDebugData:Boolean(t.settings?.jetpack_waf_share_debug_data)});case i.t6Q:return(0,n.assign)({},e,{allowListInputState:t.allowList});default:return e}},requests:(e=r,t)=>{switch(t.type){case i.Y5l:return(0,n.assign)({},e,{isFetchingWafSettings:!0});case i.Oth:case i.krc:return(0,n.assign)({},e,{isFetchingWafSettings:!1});case i.VB$:return(0,n.assign)({},e,{isUpdatingWafSettings:!0});case i.NG6:case i.wvW:return(0,n.assign)({},e,{isUpdatingWafSettings:!1});default:return e}}});function c(e){return!!e.jetpack.waf.requests.isFetchingWafSettings}function l(e){return!!e.jetpack.waf.requests.isUpdatingWafSettings}function p(e){return(0,n.get)(e.jetpack.waf,["data"],{})}function d(e){return(0,n.get)(e.jetpack.waf,["data","automaticRulesAvailable"],!1)}function u(e){return(0,n.get)(e.jetpack.waf,["data","allowListInputState"],null)}},81253:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(65736),c=a(85799),l=a(66164),p=a(2353),d=a(5004),u=a(93806),m=a(28178),h=a(84069),g=a(99196),k=a.n(g),v=a(59309),f=a(69508),E=a(50416);const __=o.__,_=()=>{h.Z.tracks.recordJetpackClick("blaze-dashboard")};const b=(0,p.u)((0,v.$j)(((e,t)=>({blazeActive:t.getOptionValue("blaze"),blazeDashboardEnabled:(0,f.Cq)(e),blazeModule:(0,E.rT)(e,"blaze"),blazeAvailable:(0,f.WY)(e),isWoASite:(0,f.Pw)(e)})))((function(e){const{blazeActive:t,blazeAvailable:a,blazeModule:{description:n},blazeDashboardEnabled:o,hasConnectedOwner:p,isOfflineMode:h,isSavingAnyOption:g,isUnavailableInOfflineMode:v,isWoASite:f,siteAdminUrl:E,toggleModuleNow:b}=e;if(f&&!o)return null;const y=v("blaze");return k().createElement(u.Z,s()({},e,{header:__("Blaze","jetpack"),module:"blaze",hideButton:!0}),k().createElement(m.Z,{module:{module:"blaze"},disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{text:n,link:(0,i.Z)("jetpack-support-blaze")}},a?k().createElement(d.T,{slug:"blaze",activated:t,disabled:y||!p,toggling:g("blaze"),toggleModule:b},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Attract high-quality traffic to your site using Blaze.","jetpack"))):k().createElement(r.Z,{disabled:!0,label:__("Blaze is not available on your site.","jetpack")})),a&&t&&p&&!h&&k().createElement(c.Z,s()({compact:!0,className:"jp-settings-card__configure-link",href:o?E+"tools.php?page=advertising":(0,i.Z)("jetpack-blaze"),onClick:_},o?{}:{target:"_blank",rel:"noopener noreferrer"}),__("Manage your campaigns and view your earnings in the Blaze dashboard","jetpack")),a&&!p&&!h&&k().createElement(l.Z,{feature:"blaze",featureLabel:__("Blaze","jetpack"),text:__("Connect to set up campaigns and promote your content.","jetpack")}))})))},55248:(e,t,a)=>{"use strict";a.d(t,{W:()=>f});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69307),c=a(65736),l=a(85799),p=a(2353),d=a(71668),u=a(93806),m=a(28178),h=a(84069),g=a(59584),k=a(99196),v=a.n(k);const __=c.__,_x=c._x,f=(0,p.u)(class extends k.Component{trackConfigureClick(){h.Z.tracks.recordJetpackClick("configure-ga")}render(){return v().createElement(u.Z,s()({},this.props,{header:_x("Google Analytics","Settings header","jetpack"),feature:g.r2Z,hideButton:!0}),this.props.showDeprecationNotice&&v().createElement(d.Z,{status:"is-warning",showDismiss:!1},v().createElement("div",null,__("Jetpack's Google Analytics feature will be removed on August 6, 2024.","jetpack")),v().createElement(r.ExternalLink,{href:(0,i.Z)("jetpack-support-google-analytics")},__("Read this document for details and how to keep tracking visits with Google Analytics","jetpack"))),v().createElement(m.Z,{disableInOfflineMode:!0,module:{module:"google-analytics"},support:{text:__("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions.","jetpack"),link:(0,i.Z)("jetpack-support-google-analytics")}},(0,o.createInterpolateElement)(__("Google Analytics is a free service that complements <a>Jetpack Stats</a> with different insights into your traffic. Jetpack 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.","jetpack"),{a:v().createElement("a",{href:this.props.siteUsesWpAdminInterface?this.props.siteAdminUrl+"admin.php?page=jetpack#/stats":(0,i.Z)("calypso-stats-day",{site:this.props.siteRawUrl})})})),!this.props.isUnavailableInOfflineMode("google-analytics")&&v().createElement(l.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.Z)(this.props.siteUsesWpAdminInterface?"calypso-marketing-connections":"calypso-marketing-traffic",{site:this.props.site,anchor:"analytics"}),target:"_blank"},__("Configure your Google Analytics settings","jetpack")))}})},67889:(e,t,a)=>{"use strict";a.d(t,{Z:()=>N});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(69270),c=a(99196),l=a.n(c),p=a(59309),d=a(96300),u=a(69508),m=a(50416),h=a(89292),g=a(3230),k=a(33002),v=a(61372),f=a(81253),E=a(55248),_=a(42552),b=a(4531),y=a(71659),w=a(35847),C=a(46077),j=a(75262);const __=r.__;class S extends l().Component{static displayName="TrafficSettings";render(){const e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isBlockThemeActive:this.props.isBlockThemeActive,isSiteConnected:this.props.isSiteConnected,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,getModuleOverride:this.props.getModuleOverride,hasConnectedOwner:this.props.hasConnectedOwner,lastPostUrl:this.props.lastPostUrl,siteAdminUrl:this.props.siteAdminUrl,siteUsesWpAdminInterface:this.props.siteUsesWpAdminInterface},t=this.props.isModuleFound("seo-tools"),a=this.props.isModuleFound("stats"),n=this.props.isModuleFound("shortlinks"),r=this.props.isModuleFound("related-posts"),c=this.props.isModuleFound("verification-tools"),p=this.props.isModuleFound("sitemaps"),d=this.props.isModuleFound("google-analytics"),u=this.props.isModuleFound("blaze");return(this.props.searchTerm||this.props.active)&&(t||a||n||r||c||p||d||u)?l().createElement("div",null,l().createElement(o.Z,null),l().createElement("h1",{className:"screen-reader-text"},__("Jetpack Traffic Settings","jetpack")),l().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Traffic","jetpack"):__("Maximize your site’s visibility in search engines and view traffic patterns in real time.","jetpack")),r&&l().createElement(_.Z,e),t&&l().createElement(b.ZP,s()({},e,{configureUrl:(0,i.Z)("calypso-marketing-traffic",{site:this.props.blogID??this.props.siteRawUrl,anchor:"seo"})})),a&&l().createElement(w.V,e),d&&l().createElement(E.W,s()({},e,{site:this.props.blogID??this.props.siteRawUrl,showDeprecationNotice:this.props.isModuleActivated("google-analytics")&&!this.props.isWoASite&&!this.props.isFetchingPluginsData&&!this.props.isPluginActive("jetpack-legacy-google-analytics/jetpack-legacy-google-analytics.php")})),u&&l().createElement(f.Z,e),n&&l().createElement(y.Z,e),p&&l().createElement(C.Z,e),c&&l().createElement(j.W,e)):null}}const N=(0,p.$j)((e=>({module:t=>(0,m.rT)(e,t),settings:(0,g.Gw)(e),isBlockThemeActive:(0,u.$2)(e),isOfflineMode:(0,d.Ex)(e),isUnavailableInOfflineMode:t=>(0,d.t_)(e,t),isModuleFound:t=>(0,h.CX)(e,t),isModuleActivated:t=>(0,m.mp)(e,t),isSiteConnected:(0,d.q7)(e),isFetchingPluginsData:(0,v.vz)(e),isPluginActive:t=>(0,v.TB)(e,t),isWoASite:(0,u.Pw)(e),lastPostUrl:(0,u.Z2)(e),getModuleOverride:t=>(0,m.Qy)(e,t),hasConnectedOwner:(0,d.it)(e),blogID:(0,u.EZ)(e),siteUsesWpAdminInterface:(0,k.L9)(e)})))(S)},42552:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(69307),c=a(65736),l=a(85799),p=a(61775),d=a(2353),u=a(5004),m=a(93806),h=a(28178),g=a(84069),k=a(99196),v=a.n(k);const __=c.__,_x=c._x;class f extends v().Component{state={show_headline:this.props.getOptionValue("show_headline","related-posts"),show_thumbnails:this.props.getOptionValue("show_thumbnails","related-posts")};updateOptions=e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("related-posts",e))};handleShowHeadlineToggleChange=()=>{this.updateOptions("show_headline")};handleShowThumbnailsToggleChange=()=>{this.updateOptions("show_thumbnails")};trackConfigureClick=()=>{g.Z.tracks.recordJetpackClick("configure-related-posts")};renderConfigureLink(){const{isBlockThemeActive:e,lastPostUrl:t,siteAdminUrl:a}=this.props;return e?v().createElement(l.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.Z)("jetpack-support-related-posts",{anchor:"adding-related-posts-block-theme"}),target:"_blank",rel:"noopener noreferrer"},__("Add a Related Posts Block to your site’s template in the site editor","jetpack")):v().createElement(l.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:a+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(a+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(t)},__("Configure related posts in the Customizer","jetpack"))}render(){const e=this.props.getOptionValue("related-posts"),t=this.props.isUnavailableInOfflineMode("related-posts");return v().createElement(m.Z,s()({},this.props,{hideButton:!0,module:"related-posts"}),v().createElement(h.Z,{hasChild:!0,disableInOfflineMode:!0,module:this.props.getModule("related-posts"),support:{text:__("The feature helps visitors find more of your content by displaying related posts at the bottom of each post.","jetpack"),link:(0,i.Z)("jetpack-support-related-posts")}},v().createElement("p",null,(0,o.createInterpolateElement)(__("Keep your visitors engaged with related content at the bottom of each post. These settings won’t apply to <a>related posts added using the block editor</a>.","jetpack"),{a:v().createElement("a",{href:(0,i.Z)("jetpack-support-related-posts"),target:"_blank",rel:"noopener noreferrer"})})),v().createElement(u.T,{slug:"related-posts",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},__("Show related content after posts","jetpack"))),v().createElement(p.C_,null,v().createElement(r.Z,{checked:this.props.getOptionValue("show_headline","related-posts"),disabled:!e||t||this.props.isSavingAnyOption(["related-posts"]),toggling:this.props.isSavingAnyOption(["show_headline"]),onChange:this.handleShowHeadlineToggleChange,label:v().createElement("span",{className:"jp-form-toggle-explanation"},__("Highlight related content with a heading","jetpack"))}),v().createElement(r.Z,{checked:this.props.getOptionValue("show_thumbnails","related-posts"),disabled:!e||t||this.props.isSavingAnyOption(["related-posts"]),toggling:this.props.isSavingAnyOption(["show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange,label:v().createElement("span",{className:"jp-form-toggle-explanation"},__("Show a thumbnail image where available","jetpack"))}),e&&v().createElement("div",null,v().createElement(p.lX,{className:"jp-form-label-wide"},_x("Preview","A header for a preview area in the configuration screen.","jetpack")),v().createElement(l.Z,{className:"jp-related-posts-preview"},this.state.show_headline&&v().createElement("div",{className:"jp-related-posts-preview__title"},__("Related","jetpack")),[{url:"cat-blog.png",text:__("Big iPhone/iPad Update Now Available","jetpack"),context:_x('In "Mobile"',"It refers to the category where a post was found. Used in an example preview.","jetpack")},{url:"devices.jpg",text:__("The WordPress for Android App Gets a Big Facelift","jetpack"),context:_x('In "Mobile"',"It refers to the category where a post was found. Used in an example preview.","jetpack")},{url:"mobile-wedding.jpg",text:__("Upgrade Focus: VideoPress For Weddings","jetpack"),context:_x('In "Upgrade"',"It refers to the category where a post was found. Used in an example preview.","jetpack")}].map(((e,t)=>v().createElement("div",{key:`preview_${t}`,className:"jp-related-posts-preview__item"},this.state.show_thumbnails&&v().createElement("img",{src:`https://jetpackme.files.wordpress.com/2019/03/${e.url}`,alt:e.text}),v().createElement("h4",{className:"jp-related-posts-preview__post-title"},v().createElement("a",{href:"#/traffic"},e.text)),v().createElement("p",{className:"jp-related-posts-preview__post-context"},e.context)))))))),!this.props.isUnavailableInOfflineMode("related-posts")&&e&&this.renderConfigureLink())}}const E=(0,d.u)(f)},4531:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>N});var n=a(82674),s=a.n(n),i=a(6895),r=a(17915),o=a(7558),c=a(43503),l=a(65736),p=a(3228),d=a(97506),u=a(30860),m=a(61775),h=a(2353),g=a(5004),k=a(71668),v=a(93806),f=a(28178),E=a(99196),_=a.n(E),b=a(59309),y=a(56286),w=a(61372),C=a(84427);const __=l.__,_x=l._x,_n=l._n,j=[{name:"Yoast SEO",slug:"wordpress-seo/wp-seo.php"},{name:"Yoast SEO Premium",slug:"wordpress-seo-premium/wp-seo-premium.php"},{name:"All In One SEO Pack",slug:"all-in-one-seo-pack/all_in_one_seo_pack.php"},{name:"All in One SEO Pack Pro",slug:"all-in-one-seo-pack-pro/all_in_one_seo_pack.php"},{name:"SEOPress",slug:"wp-seopress/seopress.php"},{name:"SEOPress Pro",slug:"wp-seopress-pro/seopress-pro.php"},{name:"SEOKEY",slug:"seo-key/seo-key.php"},{name:"SEOKEY Pro",slug:"seo-key-pro/seo-key.php"},{name:"The SEO Framework",slug:"autodescription/autodescription.php"}],S=(0,h.u)(class extends E.Component{constants={frontPageMetaMaxLength:300,frontPageMetaSuggestedLength:159,moduleOptionsArray:["advanced_seo_front_page_description","advanced_seo_title_formats"],siteIconPreviewSize:512};SocialPreviewGoogle=e=>_().createElement(r.X,{siteTitle:e.title,title:e.title,url:e.url,description:e.frontPageMetaDescription});SocialPreviewFacebook=e=>_().createElement(o.g,{title:e.title,url:e.url,type:"website",imageMode:"landscape",description:e.frontPageMetaDescription,image:e.image});SocialPreviewTwitter=e=>_().createElement(c.m,{title:e.title,url:e.url,description:e.frontPageMetaDescription,image:e.image});updateCustomSeoTitleInputState=e=>{this.props.updateFormStateOptionValue("advanced_seo_title_formats",e)};saveButton=e=>{const t=this.props.isSavingAnyOption(this.constants.moduleOptionsArray);return _().createElement(d.Z,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:t||!e.isDirty()},t?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0))};render(){const e=this.props.getModule("seo-tools"),t=this.props.getOptionValue(e.module),a=this.props.getOptionValue("advanced_seo_title_formats"),n=this.props.getOptionValue("advanced_seo_front_page_description"),r={title:this.props.siteData.name||"",tagline:this.props.siteData.description||"",url:this.props.siteData.URL||"",frontPageMetaDescription:n||(this.props.siteData.description||""),image:this.props.siteData.icon?.img?`${this.props.siteData.icon.img}?s=${this.constants.siteIconPreviewSize}`:""},o=j.reduce(((e,t)=>((0,w.TB)(this.props.state,t.slug)&&e.push(t),e)),[]),c=o.length>0,d=(0,p.Z)({"jp-seo-front-page-description-count":!0,"jp-seo-front-page-description-count-max":n.length>=this.constants.frontPageMetaMaxLength,"jp-seo-front-page-description-count-warn":n.length>this.constants.frontPageMetaSuggestedLength&&n.length<this.constants.frontPageMetaMaxLength});return _().createElement(v.Z,s()({},this.props,{header:_x("Search engine optimization","Settings header","jetpack"),feature:"seo-tools-jetpack",module:e.module,saveDisabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray),hideButton:c}),_().createElement(f.Z,{disableInOfflineMode:!0,module:{module:"seo-tools"},support:{text:__("Allows you to optimize your site and its content for better results in search engines.","jetpack"),link:(0,i.Z)("jetpack-support-seo-tools")}},c&&_().createElement(k.Z,{showDismiss:!1},(0,l.sprintf)(/* translators: %s is the name of conflicting SEO plugin */ __("Your SEO settings are managed by the following plugin: %s","jetpack"),o[0].name)),_().createElement("p",null,__("Take control of the way search engines represent your site. With Jetpack’s SEO tools you can preview how your content will look on popular search engines and change items like your site name and tagline in seconds.","jetpack")),_().createElement(g.T,{slug:"seo-tools",activated:t,toggling:this.props.isSavingAnyOption(e.module),disabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray)||c,toggleModule:this.props.toggleModuleNow},_().createElement("span",{className:"jp-form-toggle-explanation"},__("Customize your SEO settings","jetpack")))),t&&!(0,w.vz)(this.props.state)&&!c&&_().createElement(_().Fragment,null,_().createElement(u.Z,{header:__("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card"},_().createElement(f.Z,null,_().createElement("p",null,__("You can set the structure of page titles for different sections of your site. Doing this will change the way your site title is displayed in search engines, social media sites, and browser tabs.","jetpack")),_().createElement(C.ZP,{customSeoTitles:a,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:r}),_().createElement("div",{className:"jp-seo-custom-titles-save-button"},this.saveButton(this.props)))),_().createElement(u.Z,{header:__("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card"},_().createElement(f.Z,null,_().createElement("p",{style:{clear:"both"}},__("Craft a description of your Website: up to 160 characters that will be used in search engine results for your front page, and when your website is shared on social media sites.","jetpack")),_().createElement(m.lX,{htmlFor:"jp-seo-front-page-description"},_().createElement("span",{className:"jp-form-label-wide"},__("Front Page Meta Description","jetpack"))),_().createElement("div",{className:"jp-seo-front-page-description-container"},_().createElement(m.B1,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:n,onChange:this.props.onOptionChange}),_().createElement("div",{className:d},(0,l.sprintf)(/* translators: placeholder is number of characters */ _n("%d character","%d characters",n.length,"jetpack"),n.length),n.length>=this.constants.frontPageMetaMaxLength&&" - "+__("Maximum characters reached.","jetpack"))),_().createElement("div",{className:"jp-seo-front-page-description-save-button"},this.saveButton(this.props)))),_().createElement(u.Z,{header:__("Expand to preview how the SEO settings will look for your homepage on Google, Facebook, and Twitter.","jetpack"),clickableHeader:!0,className:"jp-seo-social-previews"},_().createElement("div",{className:"jp-seo-social-previews-container"},_().createElement(y.ZP,{icon:"google",size:24}),_().createElement("span",{className:"jp-seo-social-previews-label"},__("Google search","jetpack"))),this.SocialPreviewGoogle(r),_().createElement("hr",null),_().createElement("div",{className:"jp-seo-social-previews-container"},_().createElement(y.ZP,{icon:"facebook",size:24}),_().createElement("span",{className:"jp-seo-social-previews-label"},__("Facebook","jetpack"))),this.SocialPreviewFacebook(r),_().createElement("hr",null),_().createElement("div",{className:"jp-seo-social-previews-container"},_().createElement(y.ZP,{icon:"x",size:24}),_().createElement("span",{className:"jp-seo-social-previews-label"},__("X","jetpack"))),this.SocialPreviewTwitter(r))))}}),N=(0,b.$j)((e=>({siteData:e.jetpack.siteData.data,state:e})))(S)},84427:(e,t,a)=>{"use strict";a.d(t,{ZP:()=>u});var n=a(65736),s=a(97506),i=a(61775),r=a(9494),o=a(99196),c=a.n(o);const __=n.__,l={pageTypes:[{name:"front_page",label:__("Front Page","jetpack")},{name:"posts",label:__("Posts","jetpack")},{name:"pages",label:__("Pages","jetpack")},{name:"groups",label:__("Tags","jetpack")},{name:"archives",label:__("Archives","jetpack")}],insertableTokens:{site_name:__("Site Title","jetpack"),tagline:__("Tagline","jetpack"),post_title:__("Post Title","jetpack"),page_title:__("Page Title","jetpack"),group_title:__("Tag or Category Name","jetpack"),date:__("Date","jetpack"),archive_title:__("Archive Title","jetpack")},tokensAvailablePerPageType:{front_page:["site_name","tagline"],posts:["site_name","tagline","post_title"],pages:["site_name","tagline","page_title"],groups:["site_name","tagline","group_title"],archives:["site_name","tagline","date","archive_title"]}},p=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:a,token:n})=>{const i=(0,o.useCallback)((()=>{const s=t.current;s.focus();const i=`[${n}]`,r=s.textFieldRef.current.selectionStart,o=s.props.value.substring(0,r),c=s.props.value.substring(r,s.props.value.length);a(e,o+i+c)}),[e,t,a,n]);return c().createElement(s.Z,{rna:!0,className:"jp-seo-custom-titles-input-button",compact:!0,onClick:i},l.insertableTokens[n])},d=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:a,value:s,siteData:d})=>c().createElement("div",{className:`jp-seo-custom-titles-input-container-${e.name}`},c().createElement("div",{className:"jp-seo-custom-titles-input-controls"},c().createElement(i.lX,{className:"jp-seo-custom-titles-input-label",htmlFor:`jp-seo-custom-titles-input-${e.name}`},c().createElement("span",{className:"jp-form-label"},e.label)),c().createElement("div",null,((e,t,a)=>l.tokensAvailablePerPageType[e.name].map((n=>"archives"===e.name&&"date"===n?null:c().createElement(p,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:a,token:n,key:n}))))(e,t,a))),c().createElement(r.Z,{id:`jp-seo-custom-titles-input-${e.name}`,className:"jp-seo-custom-titles-input",value:s,onChange:(0,o.useCallback)((t=>a(e,t.target.value)),[a,e]),ref:t}),c().createElement("div",{className:"jp-seo-custom-titles-input-preview"},((e,t,a)=>(l.tokensAvailablePerPageType[e.name].forEach((e=>{switch(e){case"site_name":t=t.replace(/\[site_name\]/g,a.title);break;case"tagline":t=t.replace(/\[tagline\]/g,a.tagline);break;case"post_title":t=t.replace(/\[post_title\]/g,__("Example Title","jetpack"));break;case"page_title":t=t.replace(/\[page_title\]/g,__("Example Title","jetpack"));break;case"group_title":t=t.replace(/\[group_title\]/g,__("Tag","jetpack"));break;case"date":case"archive_title":t=t.replace(/\[archive_title\]|\[date\]/g,__("Example Archive Title/Date","jetpack"))}})),(0,n.sprintf)(/* translators: %s is the preview text for a custom SEO input */ __("Preview: %s","jetpack"),t)))(e,s,d))),u=e=>{const[t]=(0,o.useState)({front_page:c().createRef(),posts:c().createRef(),pages:c().createRef(),groups:c().createRef(),archives:c().createRef()}),a=l.pageTypes.reduce(((t,a)=>{var n;return t[a.name]=(n=e.customSeoTitles[a.name],Array.isArray(n)?n.reduce(((e,t)=>e+("token"===t.type?`[${t.value}]`:t.value)),""):""),t}),{}),n=e.updateCustomSeoTitleInputState,s=(0,o.useCallback)(((e,t)=>{a[e.name]=t;const s=Object.keys(a).reduce(((e,t)=>(e[t]=((e,t)=>e.split(/(\[(?:site_name|tagline|post_title|page_title|group_title|date|archive_title)\])/).filter((e=>{if(e)return e})).map((e=>{let a=null;return Object.keys(l.insertableTokens).map((t=>{e===`[${t}]`&&(a=t)})),a&&l.tokensAvailablePerPageType[t].includes(a)?{type:"token",value:a}:{type:"string",value:e}})))(a[t],t),e)),{});n(s)}),[a,n]);return c().createElement("div",{className:"jp-seo-custom-titles"},l.pageTypes.map((n=>c().createElement(d,{pageType:n,value:a[n.name],handleCustomSeoTitleInput:s,customSeoTitleInputRef:t[n.name],siteData:e.siteData,key:n.name}))))}},71659:(e,t,a)=>{"use strict";a.d(t,{Z:()=>k});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(2353),c=a(5004),l=a(93806),p=a(28178),d=a(99196),u=a.n(d),m=a(59309),h=a(50416);const __=r.__,_x=r._x;class g extends d.Component{render(){const{isSiteConnected:e}=this.props;return u().createElement(l.Z,s()({},this.props,{header:_x("WP.me Shortlinks","Settings header","jetpack"),module:"shortlinks",hideButton:!0}),u().createElement(p.Z,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:(0,i.Z)("jetpack-support-shortlinks")},disableInOfflineMode:!0},u().createElement(c.T,{slug:"shortlinks",disabled:!e,activated:this.props.shortlinksActive,toggling:this.props.isSavingAnyOption("shortlinks"),toggleModule:this.props.toggleModuleNow},u().createElement("span",{className:"jp-form-toggle-explanation"},__("Generate shortened URLs for simpler sharing.","jetpack")))))}}const k=(0,o.u)((0,m.$j)(((e,t)=>({shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:(0,h.rT)(e,"shortlinks")})))(g))},35847:(e,t,a)=>{"use strict";a.d(t,{V:()=>x});var n=a(82674),s=a.n(n),i=a(80800),r=a(6895),o=a(48229),c=a(69307),l=a(65736),p=a(3228),d=a(97506),u=a(85799),m=a(30860),h=a(61775),g=a(39224),k=a(2353),v=a(71668),f=a(52099),E=a(93806),_=a(28178),b=a(84069),y=a(92819),w=a(99196),C=a.n(w),j=a(59309),S=a(69508);const __=l.__,_x=l._x;class N extends C().Component{constructor(e){super(e);const t=e.getOptionValue("count_roles","stats"),a=e.getOptionValue("roles","stats");this.state={count_roles:t,roles:a,count_roles_administrator:(0,y.includes)(t,"administrator",!1),count_roles_editor:(0,y.includes)(t,"editor",!1),count_roles_author:(0,y.includes)(t,"author",!1),count_roles_contributor:(0,y.includes)(t,"contributor",!1),count_roles_subscriber:(0,y.includes)(t,"subscriber",!1),roles_administrator:!0,roles_editor:(0,y.includes)(a,"editor",!1),roles_author:(0,y.includes)(a,"author",!1),roles_contributor:(0,y.includes)(a,"contributor",!1),roles_subscriber:(0,y.includes)(a,"subscriber",!1),wpcom_reader_views_enabled:e.getOptionValue("wpcom_reader_views_enabled")},a&&(this.addCustomCountRolesState(t),this.addCustomRolesState(a))}updateOptions=(e,t)=>{let a=this.props.getOptionValue(t,"stats"),n=!1;this.state[`${t}_${e}`]?(0,y.includes)(a,e)&&(a=(0,y.filter)(a,(t=>t!==e))):(0,y.includes)(a,e)||(a.push(e),n=!0),this.setState({[`${t}_${e}`]:!this.state[`${t}_${e}`]},(()=>{this.props.updateOptions({[t]:a})})),b.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:n?"on":"off"})};activateStats=()=>{this.props.updateOptions({stats:!0})};trackOpenCard=()=>{b.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})};handleRoleToggleChange=(e,t)=>()=>this.updateOptions(e,t);addCustomCountRolesState(e){e.forEach((t=>{["administrator","editor","author","subscriber","contributor"].includes(e)||(this.state[`count_roles_${t}`]=(0,y.includes)(e,t,!1))}))}addCustomRolesState(e){e.forEach((t=>{["administrator","editor","author","subscriber","contributor"].includes(t)||(this.state[`roles_${t}`]=(0,y.includes)(e,t,!1))}))}handleStatsOptionToggle(e){return()=>this.props.updateFormStateModuleOption("stats",e)}handleOptionToggle=e=>()=>{const t=!this.props.getOptionValue(e);this.setState({[e]:!this.state[e]},(()=>{this.props.updateOptions({[e]:t})})),b.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:e,toggled:t?"on":"off"})};render(){const e=this.props.getModule("stats"),t=this.props.getOptionValue("stats"),a=this.props.isUnavailableInOfflineMode("stats"),n=this.props.getSiteRoles(),l=t&&!a&&!this.props.getOptionValue("enable_odyssey_stats");return"inactive"===this.props.getModuleOverride("stats")?C().createElement(g.Z,{moduleName:e.name}):t?C().createElement(E.Z,s()({},this.props,{header:_x("Jetpack Stats","Settings header","jetpack"),hideButton:!0,module:"site-stats"}),C().createElement(m.Z,{onOpen:this.trackOpenCard,header:__("Expand to update settings for how visits are counted and manage who can view this information.","jetpack"),clickableHeader:!0,className:(0,p.Z)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":a})},C().createElement(_.Z,{disableInOfflineMode:!0,module:e,support:{text:__("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:(0,r.Z)("jetpack-support-wordpress-com-stats")}},!this.props.isWoASite&&C().createElement(C().Fragment,null,l&&C().createElement(v.Z,{className:"jp-stats-odyssey-disabled-notice",showDismiss:!1,status:"is-error",text:__("Not into the new stats? Tell us why so we can make stats better for you.","jetpack")},C().createElement(f.Z,{href:i.x8,external:!0},__("Take a Quick Survey","jetpack"))),C().createElement(h.C_,{className:"jp-stats-odyssey-toggle"},C().createElement(o.Z,{checked:!!this.props.getOptionValue("enable_odyssey_stats"),disabled:!t||!l||a||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption(["enable_odyssey_stats"]),onChange:l?this.handleStatsOptionToggle("enable_odyssey_stats"):null,label:C().createElement(C().Fragment,null,__("Enable a new Jetpack Stats experience","jetpack"),C().createElement("span",{className:"jp-stats-odyssey-badge"},__("New","jetpack")))}))),C().createElement(h.C_,{className:"jp-stats-form-fieldset"},C().createElement(o.Z,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!t||a||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption(["admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar"),label:__("Include a small chart in your admin bar with a 48-hour traffic snapshot","jetpack")})),C().createElement(h.C_,{className:"jp-stats-form-fieldset"},C().createElement(h.Gj,null,__("Count logged in page views from","jetpack")),Object.keys(n).map((e=>C().createElement(o.Z,{checked:this.state[`count_roles_${e}`],disabled:!t||a||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption([`count_roles_${e}`]),onChange:this.handleRoleToggleChange(e,"count_roles"),key:`count_roles-${e}`,label:n[e].name})))),C().createElement(h.C_,{className:"jp-stats-form-fieldset"},C().createElement(h.Gj,null,__("Allow Jetpack Stats to be viewed by","jetpack")),C().createElement(o.Z,{checked:!0,disabled:!0,label:n.administrator.name}),Object.keys(n).map((e=>"administrator"!==e?C().createElement(o.Z,{checked:this.state[`roles_${e}`],disabled:!t||a||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption([`roles_${e}`]),onChange:this.handleRoleToggleChange(e,"roles"),key:`roles-${e}`,label:n[e].name}):null))),C().createElement(h.C_,{className:"jp-stats-form-fieldset"},C().createElement(h.Gj,null,__("WordPress.com Reader","jetpack")),C().createElement(o.Z,{checked:this.state.wpcom_reader_views_enabled,disabled:!t||a,toggling:this.props.isSavingAnyOption(["wpcom_reader_views_enabled"]),onChange:this.handleOptionToggle("wpcom_reader_views_enabled"),label:__("Show post views for this site.","jetpack")}))))):C().createElement(u.Z,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},C().createElement("div",{className:"jp-at-a-glance__stats-inactive"},C().createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},C().createElement("img",{src:i.hp+"stats.svg",width:"60",height:"60",alt:__("Line chart overlaid on a bar chart","jetpack"),className:"jp-at-a-glance__stats-icon"})),C().createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,c.createInterpolateElement)(__("<Button>Activate Jetpack Stats</Button> to see page views, likes, followers, subscribers, and more! <a>Learn More</a>","jetpack"),{Button:C().createElement(d.Z,{rna:!0,className:"jp-link-button",onClick:this.activateStats}),a:C().createElement("a",{href:(0,r.Z)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})),!this.props.isOfflineMode&&C().createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},C().createElement(d.Z,{rna:!0,onClick:this.activateStats,primary:!0},__("Activate Jetpack Stats","jetpack")))))}}const x=(0,j.$j)((e=>({isWoASite:(0,S.Pw)(e)})))((0,k.u)(N))},46077:(e,t,a)=>{"use strict";a.d(t,{Z:()=>y});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69307),c=a(65736),l=a(3228),p=a(64104),d=a(2353),u=a(5004),m=a(93806),h=a(28178),g=a(84069),k=a(92819),v=a(99196),f=a.n(v),E=a(59309),_=a(69508);const __=c.__,_x=c._x;class b extends f().Component{renderSitemapRow=(e,t)=>f().createElement("span",{className:"jp-sitemap-row"},f().createElement(p.Z,{value:e,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack")}),f().createElement(r.ExternalLink,{onClick:()=>g.Z.tracks.recordJetpackClick(t),rel:"noopener noreferrer",href:e}));render(){const e=this.props.getModule("sitemaps"),t=(0,k.get)(e,["extra","sitemap_url"],""),a=(0,k.get)(e,["extra","news_sitemap_url"],""),n=(0,l.Z)({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return f().createElement(m.Z,s()({},this.props,{module:"sitemaps",hideButton:!0}),f().createElement(h.Z,{hasChild:!0,module:{module:"sitemaps"},support:{link:(0,i.Z)("jetpack-support-sitemaps")}},f().createElement("p",null,__("Sitemaps are files that search engines like Google or Bing use to index your website. They can help improve your ranking in search results. When you enable this feature, Jetpack will create sitemaps for you and update them automatically when the content on your site changes.","jetpack")),f().createElement(u.T,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},__("Generate XML sitemaps","jetpack"))),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&f().createElement("p",{className:"jp-form-setting-explanation"},__("Good news: Jetpack is sending your sitemap automatically to all major search engines for indexing.","jetpack"),this.renderSitemapRow(t,"sitemap-url-link"),this.renderSitemapRow(a,"sitemap-news-url-link")):f().createElement("p",{className:n},(0,o.createInterpolateElement)(__('Search engines can’t access your site at the moment. If you’d like to make your site accessible, check your <a>Reading settings</a> and switch "Search Engine Visibility" on.',"jetpack"),{a:f().createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}))))}}const y=(0,E.$j)((e=>({isSiteVisibleToSearchEngines:(0,_.pI)(e),siteAdminUrl:(0,_.wW)(e)})))((0,d.u)(b))},75262:(e,t,a)=>{"use strict";a.d(t,{W:()=>b});var n=a(82674),s=a.n(n),i=a(6895),r=a(55609),o=a(69307),c=a(65736),l=a(61775),p=a(85733),d=a(2353),u=a(5004),m=a(93806),h=a(28178),g=a(9494),k=a(92819),v=a(99196),f=a.n(v),E=a(19528);const __=c.__;class _ extends f().Component{static serviceIds={google:"google-site-verification",bing:"msvalidate.01",pinterest:"p:domain_verify",yandex:"yandex-verification",facebook:"facebook-domain-verification"};getMetaTag(e="",t=""){return t?/^[a-z0-9_-]+$/i.test(t)?(0,k.includes)(t,"<meta")?t:`<meta name="${(0,k.get)(_.serviceIds,e,"")}" content="${t}" />`:t:""}getSiteVerificationValue(e){const t=this.props.getOptionValue(e);return t===this.props.getSettingCurrentValue(e)?this.getMetaTag(e,t):t}render(){const e=this.props.getModule("verification-tools");if("inactive"===this.props.getModuleOverride("verification-tools"))return f().createElement(p.ZP,{title:e.name,icon:"cog",description:(0,c.sprintf)(/* translators: placeholder is a feature name. */ __("%s has been disabled by a site administrator.","jetpack"),e.name)});const t=!!this.props.getOptionValue(e.module);return f().createElement(m.Z,s()({},this.props,{module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"])}),f().createElement(h.Z,{module:e,support:{text:__("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:(0,i.Z)("jetpack-support-site-verification-tools")}},f().createElement(u.T,{slug:e.module,activated:t,toggling:this.props.isSavingAnyOption([e.module]),disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},__("Verify site ownership with third party services","jetpack"))),f().createElement("p",null,(0,o.createInterpolateElement)(/* translators: placeholders are links to external sites. */ __("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>, <yandex>Yandex.Webmaster</yandex>, and <facebook>Facebook Domain Verification</facebook>.","jetpack"),{b:f().createElement("strong",null),support:f().createElement("a",{href:(0,i.Z)("jetpack-support-site-verification-tools")}),google:f().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:f().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:f().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:f().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"}),facebook:f().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://business.facebook.com/settings/"})})),f().createElement(l.C_,null,f().createElement(E.Z,s()({value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234")},this.props,{disabled:this.props.isUpdating("google")||!t})),f().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_bing"},f().createElement("span",null,__("Bing:","jetpack")),f().createElement(g.Z,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})),f().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_pinterest"},f().createElement("span",null,__("Pinterest:","jetpack")),f().createElement(g.Z,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})),f().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_yandex"},f().createElement("span",null,__("Yandex:","jetpack")),f().createElement(g.Z,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})),f().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_facebook"},f().createElement("span",null,__("Facebook:","jetpack")),f().createElement(g.Z,{name:"facebook",value:this.getSiteVerificationValue("facebook"),placeholder:this.getMetaTag("facebook","1234"),className:"code",disabled:this.props.isUpdating("facebook")||!t,onChange:this.props.onOptionChange})))))}}const b=(0,d.u)(_)},19528:(e,t,a)=>{"use strict";a.d(t,{Z:()=>w});var n=a(55609),s=a(69307),i=a(65736),r=a(97506),o=a(61775),c=a(41549),l=a(5060),p=a(9494),d=a(84069),u=a(23962),m=a(25162),h=a.n(m),g=a(99196),k=a.n(g),v=a(59309),f=a(69508),E=a(34975),_=a(33002),b=a(47923);const __=i.__;class y extends k().Component{static propTypes={disabled:h().bool};static defaultProps={disabled:!1};state={inputVisible:!1};componentDidMount(){this.props.isCurrentUserLinked&&this.props.checkVerifyStatusGoogle().then((e=>{if(this.props.googleSiteVerificationError&&"unverify-site-error"===this.props.googleSiteVerificationError.code&&this.props.updateOptions({google:""}).then((()=>this.props.checkVerifyStatusGoogle())),e)return!this.props.getOptionValue("google")&&e.token?this.props.updateOptions({google:e.token}):void(!this.props.getOptionValue("google")||e.token||e.verified||this.setState({inputVisible:!0}))}))}checkAndVerifySite(e){this.props.createNotice("is-info",__("Verifying…","jetpack"),{id:"verifying-site-google"}),this.props.checkVerifyStatusGoogle(e).then((e=>{if(e)return e.token!==this.props.value?this.props.updateOptions({google:e.token}):void 0})).then((()=>{this.props.removeNotice("verifying-site-google"),this.props.isSiteVerifiedWithGoogle||this.props.verifySiteGoogle(e).then((()=>{if(this.props.googleSiteVerificationError){const e=this.props.googleSiteVerificationError.message;d.Z.tracks.recordEvent("jetpack_site_verification_google_verify_error",{error_message:e}),this.props.createNotice("is-error",(0,i.sprintf)(/* translators: placeholder is an error message. */ __("Site failed to verify: %s","jetpack"),e),{id:"verify-site-google-error",duration:5e3})}else this.props.isSiteVerifiedWithGoogle&&d.Z.tracks.recordEvent("jetpack_site_verification_google_verify_success")}))}))}handleClickAutoVerify=()=>{this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||(d.Z.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),(0,u.Z)(this.props.googleSiteVerificationConnectUrl,(e=>{e&&this.checkAndVerifySite(e)})))};handleClickSetManually=e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickEdit=e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickCancel=e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:this.props.isOwner}),this.props.resetFormStateOption("google"),this.toggleVerifyMethod(e)};quickSave=e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_manual_verify_save",{is_owner:this.props.isOwner,is_empty:!this.props.value}),this.props.onSubmit(e)};toggleVerifyMethod=()=>{this.setState({inputVisible:!this.state.inputVisible})};handleOnTextInputKeyPress=e=>{"Enter"===e.key&&this.quickSave()};render(){const e=this.props.googleSiteVerificationError&&"forbidden"===this.props.googleSiteVerificationError.code;if(this.state.inputVisible||e||!this.props.isCurrentUserLinked)return k().createElement("div",null,k().createElement(o.lX,{className:"jp-form-input-with-prefix",key:"verification_service_google"},k().createElement("span",null,__("Google","jetpack")),k().createElement(p.Z,{name:"google",value:this.props.value,placeholder:this.props.placeholder,className:"code",disabled:this.props.disabled,onChange:this.props.onOptionChange,onKeyPress:this.handleOnTextInputKeyPress}),this.state.inputVisible&&k().createElement("div",{className:"jp-form-site-verification-buttons"},k().createElement(r.Z,{primary:!0,rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave},__("Save","jetpack")),k().createElement(r.Z,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel},__("Cancel","jetpack")))));if(this.props.isSiteVerifiedWithGoogle)return k().createElement("div",null,k().createElement("div",{className:"jp-form-input-with-prefix",key:"verification_service_google"},k().createElement("span",null,__("Google","jetpack")),k().createElement("div",{className:"jp-form-site-verification-verified"},k().createElement(l.Z,{icon:"checkmark-circle",size:20})," ",k().createElement("span",null,__("Your site is verified with Google","jetpack"))),k().createElement(r.Z,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit},__("Edit","jetpack"))),this.props.isOwner&&k().createElement("div",{className:"jp-form-input-with-prefix-bottom-message"},k().createElement("div",{className:"jp-form-setting-explanation"},k().createElement("p",null,(0,s.createInterpolateElement)(__("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:k().createElement(n.ExternalLink,{rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",(0,s.createInterpolateElement)(/* translators: placeholders are links to Google support documents. */ __("Google will email about certain events that occur with your site, including indications that your website has been <a1>hacked</a1>, or problems <a2>crawling or indexing</a2> your site.","jetpack"),{a1:k().createElement(n.ExternalLink,{rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:k().createElement(n.ExternalLink,{rel:"noopener noreferrer",href:"https://www.google.com/insidesearch/howsearchworks/crawling-indexing.html"})})))));const t=this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||this.props.isVerifyingGoogleSite||this.props.disabled;return k().createElement("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",key:"verification_service_google"},k().createElement("span",null,__("Google:","jetpack")),k().createElement("div",{className:"jp-form-google-label-unverified-actions"},(0,s.createInterpolateElement)(__("<button1>Auto verify with Google</button1><span>or</span><button2>Manually verify with Google</button2>","jetpack"),{button1:k().createElement(r.Z,{primary:!0,rna:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:k().createElement("span",{className:"jp-form-google-separator"}),button2:k().createElement(r.Z,{rna:!0,type:"button",disabled:t,onClick:this.handleClickSetManually})})))}}const w=(0,v.$j)((e=>({fetchingSiteData:(0,_._5)(e),googleSiteVerificationConnectUrl:(0,E.K0)(e,"google_site_verification"),googleSearchConsoleUrl:(0,b._g)(e),fetchingGoogleSiteVerify:(0,b.nZ)(e),isConnectedToGoogle:(0,b.hr)(e),isSiteVerifiedWithGoogle:(0,b.nS)(e),isVerifyingGoogleSite:(0,b.BH)(e),userCanManageOptions:(0,f.UF)(e),googleSiteVerificationError:(0,b.ou)(e),isOwner:(0,b.dO)(e)})),{checkVerifyStatusGoogle:b.n,createNotice:c.iI,removeNotice:c.qq,verifySiteGoogle:b.Zn})(y)},3915:(e,t,a)=>{"use strict";function n(e){return t=>{13!==t.which&&32!==t.which||e(t)}}a.d(t,{Z:()=>n})},32633:(e,t,a)=>{"use strict";a.d(t,{Z:()=>_});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(65736),c=a(15773),l=a(61775),p=a(2353),d=a(5004),u=a(93806),m=a(28178),h=a(99196),g=a.n(h),k=a(59309),v=a(50416),f=a(89292);const __=o.__,_x=o._x;class E extends g().Component{updateFormStateByMarkdown=e=>this.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0);toggleBlocks=()=>{const e=!this.props.getSettingCurrentValue("jetpack_blocks_disabled");return this.props.updateOptions({jetpack_blocks_disabled:e})};render(){const e=this.props.isModuleFound("copy-post"),t=this.props.isModuleFound("latex"),a=this.props.isModuleFound("markdown"),n=this.props.isModuleFound("shortcodes"),o=this.props.isModuleFound("blocks");if(!(e||t||a||n||o))return null;const p=this.props.module("markdown"),h=this.props.module("latex"),k=this.props.module("copy-post"),v=this.props.module("shortcodes"),f=this.props.module("blocks"),E=g().createElement(m.Z,{module:k,support:{text:__("Duplicate existing posts, pages, Testimonials, and Portfolios. All the content will be copied including text, featured images, sharing settings, and more.","jetpack"),link:(0,i.Z)("jetpack-support-copy-post")}},g().createElement(l.C_,null,g().createElement(d.T,{slug:"copy-post",activated:!!this.props.getOptionValue("copy-post"),toggling:this.props.isSavingAnyOption("copy-post"),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},k.description)))),_=g().createElement(m.Z,{module:p,support:{text:__("Use Markdown syntax to compose content with links, lists, and other styles. This setting enables Markdown in the Classic Editor as well as within a Classic Editor block.","jetpack"),link:(0,i.Z)("jetpack-support-markdown")}},g().createElement(l.C_,null,g().createElement(d.T,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g().createElement("span",{className:"jp-form-toggle-explanation"},p.description)))),b=g().createElement(m.Z,{module:h,support:{text:__("LaTeX is a powerful markup language for writing complex mathematical equations and formulas.","jetpack"),link:(0,i.Z)("jetpack-support-beautiful-math-with-latex")}},g().createElement(l.C_,null,g().createElement(d.T,{slug:"latex",activated:!!this.props.getOptionValue("latex"),toggling:this.props.isSavingAnyOption(["latex"]),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},h.description)))),y=g().createElement(m.Z,{module:v,support:{text:v.description,link:(0,i.Z)("jetpack-support-shortcode-embeds")}},g().createElement(l.C_,null,g().createElement(d.T,{slug:"shortcodes",activated:!!this.props.getOptionValue("shortcodes"),toggling:this.props.isSavingAnyOption(["shortcodes"]),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Compose using shortcodes to embed media from popular sites","jetpack"))))),w=g().createElement(g().Fragment,null,g().createElement(m.Z,{module:f,support:{text:__("Jetpack includes some blocks which can help you create your pages exactly the way you want them.","jetpack"),link:(0,i.Z)("jetpack-support-blocks")}},g().createElement(l.C_,null,g().createElement(r.Z,{checked:!this.props.getOptionValue("jetpack_blocks_disabled"),toggling:this.props.isSavingAnyOption(["jetpack_blocks_disabled"]),onChange:this.toggleBlocks,label:g().createElement(g().Fragment,null,g().createElement("span",{className:"jp-form-toggle-explanation"},__("Jetpack Blocks give you the power to deliver quality content that hooks website visitors without needing to hire a developer or learn a single line of code.","jetpack")),!this.props.getOptionValue("jetpack_blocks_disabled")&&g().createElement("span",{className:"jp-form-setting-explanation"},__("Caution: if there are Jetpack blocks used in existing posts or pages, disabling this setting will cause those blocks to stop working.","jetpack")))}))),g().createElement(c.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php`},__("Discover Jetpack tools in the block editor","jetpack")));return g().createElement(u.Z,s()({},this.props,{header:_x("Composing","Settings header","jetpack"),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),e&&E,a&&_,t&&b,n&&y,o&&w)}}const _=(0,k.$j)((e=>({module:t=>(0,v.rT)(e,t),isModuleFound:t=>(0,f.CX)(e,t)})))((0,p.u)(E))},44312:(e,t,a)=>{"use strict";a.d(t,{Z:()=>E});var n=a(82674),s=a.n(n),i=a(6895),r=a(48229),o=a(69307),c=a(65736),l=a(15773),p=a(2353),d=a(93806),u=a(28178),m=a(99196),h=a.n(m),g=a(59309),k=a(50416),v=a(89292);const __=c.__;class f extends h().Component{state={testimonial:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:this.props.getOptionValue("jetpack_portfolio","custom-content-types")};updateCPTs=e=>{const t="testimonial"===e?!(!this.state.testimonial||this.state.portfolio):!(!this.state.portfolio||this.state.testimonial);this.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),this.setState({[e]:!this.state[e]})};linkIfActiveCPT=e=>this.props.getSettingCurrentValue(`jetpack_${e}`,"custom-content-types")?h().createElement("a",{href:`${this.props.siteAdminUrl}edit.php?post_type=jetpack-${e}`}):h().createElement("span",null);handleTestimonialToggleChange=()=>{this.updateCPTs("testimonial")};handlePortfolioToggleChange=()=>{this.updateCPTs("portfolio")};render(){if(!this.props.isModuleFound("custom-content-types"))return null;const e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),a=t&&__("This feature has been disabled by a site administrator.","jetpack");return h().createElement(d.Z,s()({},this.props,{module:"custom-content-types",hideButton:!0}),h().createElement(u.Z,{hasChild:!0,module:e,support:{link:(0,i.Z)("jetpack-support-custom-content-types")}},h().createElement("p",null,(0,o.createInterpolateElement)(__("Add <testimonialLink>testimonials</testimonialLink> to your website to attract new customers. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")})),h().createElement(r.Z,{checked:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),disabled:t,toggling:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:this.handleTestimonialToggleChange,disabledReason:a,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Testimonials","jetpack")),help:h().createElement("span",{className:"jp-form-setting-explanation jp-form-shortcode-setting-explanation"},__("Testimonials shortcode: [testimonials]","jetpack"))})),this.props.testimonialActive&&h().createElement(l.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-testimonial`},__("Add a testimonial","jetpack")),h().createElement(u.Z,{hasChild:!0,module:e,support:{link:(0,i.Z)("jetpack-support-custom-content-types")}},h().createElement("p",null,(0,o.createInterpolateElement)(__("Use <portfolioLink>portfolios</portfolioLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")})),h().createElement(r.Z,{checked:this.props.getOptionValue("jetpack_portfolio","custom-content-types"),disabled:t,toggling:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:this.handlePortfolioToggleChange,disabledReason:a,label:h().createElement("span",{className:"jp-form-toggle-explanation"},__("Portfolios","jetpack")),help:h().createElement("span",{className:"jp-form-setting-explanation jp-form-shortcode-setting-explanation"},__("Portfolios shortcode: [portfolio]","jetpack"))})),this.props.portfolioActive&&h().createElement(l.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-portfolio`},__("Add a portfolio item","jetpack")))}}const E=(0,p.u)((0,g.$j)(((e,t)=>({module:t=>(0,k.rT)(e,t),isModuleFound:t=>(0,v.CX)(e,t),getModuleOverride:t=>(0,k.Qy)(e,t),portfolioActive:t.getSettingCurrentValue("jetpack_portfolio","custom-content-types"),testimonialActive:t.getSettingCurrentValue("jetpack_testimonial","custom-content-types")})))(f))},34358:(e,t,a)=>{"use strict";a.d(t,{F:()=>b,Z:()=>y});var n=a(6895),s=a(55609),i=a(69307),r=a(65736),o=a(97506),c=a(61775),l=a(2353),p=a(5004),d=a(28178),u=a(84069),m=a(99196),h=a.n(m),g=a(59309),k=a(69508),v=a(50416);const __=r.__,f=()=>{u.Z.tracks.recordJetpackClick({target:"visit-global-styles",feature:"custom-css",extra:"not-supported-link"})},E=()=>{u.Z.tracks.recordJetpackClick({target:"visit-customizer",feature:"custom-css",extra:"not-supported-link"})},_=({children:e,siteAdminUrl:t})=>h().createElement("a",{onClick:E,href:`${t}customize.php?autofocus%5Bsection%5D=custom_css`,title:__("Edit and add CSS directly on your site from the Customizer.","jetpack")},e),b=({siteAdminUrl:e})=>(0,i.createInterpolateElement)(__("The <i>Start Fresh</i> option in the <a1>CSS customization panel</a1> is enabled, which means the theme's original CSS is not applied. <b>This option will no longer be supported after August 6, 2024.</b> <a2>See how to keep your site intact</a2>.","jetpack"),{i:h().createElement("i",null),b:h().createElement("b",null),a1:h().createElement(_,{siteAdminUrl:e}),a2:h().createElement(s.ExternalLink,{href:(0,n.Z)("jetpack-support-custom-css")})});const y=(0,l.u)((0,g.$j)(((e,t)=>({customCssActive:t.getOptionValue("custom-css"),customCssModule:(0,v.rT)(e,"custom-css"),isBlockThemeActive:(0,k.$2)(e),siteAdminUrl:(0,k.wW)(e)})))((function(e){const{customCssActive:t,customCssModule:{name:a,description:r,module:l,options:u},isBlockThemeActive:m,isSavingAnyOption:g,siteAdminUrl:k,toggleModuleNow:v}=e;return h().createElement(d.Z,{module:{module:l},support:m?{}:{text:r,link:(0,n.Z)("jetpack-support-custom-css")}},h().createElement(c.Gj,{className:"jp-form-label-wide"},a),u?.replace&&h().createElement(s.Notice,{className:"jp-custom-css__deprecation-warning",isDismissible:!1,status:"warning"},h().createElement(b,{siteAdminUrl:k})," "),m&&h().createElement("div",{className:"jp-custom-css-site-editor"},h().createElement("div",{className:"jp-custom-css-site-editor__text"},(0,i.createInterpolateElement)(__("Your site has a block theme that allows you to apply custom CSS from the Site Editor. <a>Learn more.</a>","jetpack"),{a:h().createElement(s.ExternalLink,{href:"https://wordpress.org/documentation/article/styles-overview/#applying-custom-css",title:__("Customize every aspect of your site with the Site Editor.","jetpack")})})),!t&&h().createElement("div",{className:"jp-custom-css-site-editor__button"},h().createElement(o.Z,{rna:!0,onClick:f,href:`${k}site-editor.php?path=%2Fwp_global_styles&canvas=edit`,primary:!0},__("Use Site Editor","jetpack")))),!m&&h().createElement("div",null,(0,i.createInterpolateElement)(__("Additional CSS can be added from the Customizer. Enable the enhanced Custom CSS feature below to add additional features. <a>Access the Customizer here.</a>","jetpack"),{a:h().createElement(_,{siteAdminUrl:k})})),m&&!t?null:h().createElement(p.T,{className:"jp-custom-css__module-toggle",slug:"custom-css",activated:!!t,toggling:g(["custom-css"]),disabled:g(["custom-css"]),toggleModule:v},h().createElement("span",{className:"jp-form-toggle-explanation"},__("Enhance CSS customization panel","jetpack"))))})))},51421:(e,t,a)=>{"use strict";a.d(t,{Z:()=>C});var n=a(82674),s=a.n(n),i=a(65736),r=a(85799),o=a(69270),c=a(99196),l=a.n(c),p=a(59309),d=a(96300),u=a(69508),m=a(50416),h=a(89292),g=a(3230),k=a(32633),v=a(44312),f=a(56720),E=a(99414),_=a(43756),b=a(89544),y=a(11138);const __=i.__;class w extends l().Component{static displayName="WritingSettings";render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["carousel","copy-post","custom-css","latex","masterbar","markdown","shortcodes","custom-content-types","post-by-email","infinite-scroll","widgets","widget-visibility","blocks"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;const a=this.props.userCanManageModules||this.props.userCanEditPosts,n=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return l().createElement("div",null,l().createElement(o.Z,null),l().createElement("h1",{className:"screen-reader-text"},__("Jetpack Writing Settings","jetpack")),l().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Writing","jetpack"):__("Compose content the way you want to and streamline your publishing experience.","jetpack")),this.props.isModuleFound("carousel")&&l().createElement(y.Z,e),a&&l().createElement(k.Z,s()({},e,{userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("custom-content-types")&&l().createElement(v.Z,e),l().createElement(_.Z,e),l().createElement(b.Z,e),this.props.isModuleFound("post-by-email")&&n&&l().createElement(E.Z,s()({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&l().createElement(f.S,s()({connectUrl:this.props.connectUrl},e)),!a&&!n&&l().createElement(r.Z,null,__("Writing tools available to you will be shown here when an administrator enables them.","jetpack")))}}const C=(0,p.$j)((e=>({module:t=>(0,m.rT)(e,t),settings:(0,g.Gw)(e),masterbarIsAlwaysActive:(0,u.Ug)(e),isOfflineMode:(0,d.Ex)(e),isUnavailableInOfflineMode:t=>(0,d.t_)(e,t),userCanEditPosts:(0,u.rp)(e),isModuleActivated:t=>(0,m.mp)(e,t),isLinked:(0,d.BU)(e),userCanManageModules:(0,u.pK)(e),isModuleFound:t=>(0,h.CX)(e,t),connectUrl:(0,d.AM)(e),getModuleOverride:t=>(0,m.Qy)(e,t)})))(w)},56720:(e,t,a)=>{"use strict";a.d(t,{S:()=>h});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(66164),c=a(2353),l=a(5004),p=a(93806),d=a(28178),u=a(99196),m=a.n(u);const __=r.__,_x=r._x,h=(0,c.u)(class extends u.Component{render(){const e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInOfflineMode("masterbar");return m().createElement(p.Z,s()({},this.props,{header:_x("WordPress.com toolbar","Settings header","jetpack"),module:"masterbar",hideButton:!0}),m().createElement(d.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"masterbar"},support:{text:__("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader.","jetpack"),link:(0,i.Z)("jetpack-support-masterbar")}},m().createElement("p",null,__("The WordPress.com toolbar replaces the default WordPress admin toolbar. It offers one-click access to notifications, your WordPress.com profile and your other Jetpack and WordPress.com websites. You can also catch up on the sites you follow in the Reader.","jetpack")),m().createElement(l.T,{slug:"masterbar",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},m().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the WordPress.com toolbar","jetpack")))),!this.props.isUnavailableInOfflineMode("masterbar")&&!this.props.isLinked&&m().createElement(o.Z,{feature:"masterbar",featureLabel:__("WordPress.com Toolbar","jetpack"),text:__("Connect to enable the WordPress.com toolbar.","jetpack")}))}})},99414:(e,t,a)=>{"use strict";a.d(t,{Z:()=>y});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(97506),c=a(64104),l=a(66164),p=a(61775),d=a(2353),u=a(5004),m=a(93806),h=a(28178),g=a(84069),k=a(99196),v=a.n(k),f=a(59309),E=a(50416),_=a(89292);const __=r.__,_x=r._x;class b extends v().Component{regeneratePostByEmailAddress=e=>{g.Z.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),this.props.regeneratePostByEmailAddress()};address=()=>{const e=this.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e};render(){if(!this.props.isModuleFound("post-by-email"))return null;const e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),a=this.props.isUnavailableInOfflineMode("post-by-email")||!this.props.isLinked,n=this.address();return v().createElement(m.Z,s()({},this.props,{module:"post-by-email",hideButton:!0}),v().createElement(h.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:e,support:{text:__("Allows you to publish new posts by sending an email to a special address.","jetpack"),link:(0,i.Z)("jetpack-support-post-by-email")}},v().createElement("p",null,__("Post by email is a quick way to publish new posts without visiting your site. We’ll generate a unique email address for you to send your content to, which will then appear on your site just like any other post.","jetpack")),this.props.userCanManageModules?v().createElement(u.T,{slug:"post-by-email",compact:!0,disabled:a,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):v().createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),v().createElement(p.C_,null,v().createElement(p.lX,null,v().createElement(p.Gj,null,__("Send your new posts to this email address:","jetpack")),v().createElement(c.Z,{value:n,disabled:!t||a,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack"),rna:!0})),v().createElement(o.Z,{rna:!0,compact:!0,disabled:!t||a,onClick:this.regeneratePostByEmailAddress},n?__("Regenerate address","jetpack"):__("Create address","jetpack",0)))),!this.props.isUnavailableInOfflineMode("post-by-email")&&!this.props.isLinked&&v().createElement(l.Z,{feature:"post-by-email",featureLabel:__("Post by Email","jetpack"),text:__("Connect to enable publishing via email.","jetpack")}))}}const y=(0,f.$j)((e=>({module:t=>(0,E.rT)(e,t),isModuleFound:t=>(0,_.CX)(e,t)})))((0,d.u)(b))},43756:(e,t,a)=>{"use strict";a.d(t,{Z:()=>b});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(61775),c=a(39224),l=a(2353),p=a(93806),d=a(28178),u=a(84069),m=a(99196),h=a.n(m),g=a(59309),k=a(69508),v=a(50416),f=a(89292),E=a(34358);const __=r.__;class _ extends h().Component{getInfiniteMode=()=>this.props.getOptionValue("infinite-scroll")?this.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default";updateInfiniteMode=e=>{this.setState({infinite_mode:e},this.prepareOptionsToUpdate)};prepareOptionsToUpdate=()=>{"infinite_default"===this.state.infinite_mode?this.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==this.state.infinite_mode&&"infinite_button"!==this.state.infinite_mode||this.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===this.state.infinite_mode})};updateOptions=(e,t)=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption(t,e))};trackLearnMoreIS=()=>{u.Z.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})};state={infinite_mode:this.getInfiniteMode()};handleInfiniteScrollModeChange=e=>()=>this.updateInfiniteMode(e);render(){const e=this.props.isModuleFound("infinite-scroll"),t=this.props.isModuleFound("custom-css");if(!e&&!t)return null;const a=this.props.getModule("infinite-scroll"),n="inactive"===this.props.getModuleOverride("infinite-scroll");return h().createElement(p.Z,s()({},this.props,{header:__("Theme enhancements","jetpack"),hideButton:!e||!this.props.isInfiniteScrollSupported,module:"theme-enhancements"}),n&&h().createElement(c.Z,{moduleName:a.name,compact:!0}),e&&!n&&h().createElement(d.Z,{hasChild:!0,module:{module:a.module},key:`theme_enhancement_${a.module}`,support:{text:__("Loads the next posts automatically when the reader approaches the bottom of the page.","jetpack"),link:(0,i.Z)("jetpack-support-infinite-scroll")}},h().createElement(o.Gj,{className:"jp-form-label-wide"},a.name),h().createElement("p",null,__("Create a smooth, uninterrupted reading experience by loading more content as visitors scroll to the bottom of your archive pages.","jetpack")),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:__("Load more posts using the default theme behavior","jetpack")},{key:"infinite_button",label:__("Load more posts in page with a button","jetpack")},{key:"infinite_scroll",label:__("Load more posts as the reader scrolls down","jetpack")}].map((e=>h().createElement(o.lX,{key:`${a.module}_${e.key}`},h().createElement("input",{type:"radio",name:"infinite_mode",value:e.key,checked:e.key===this.state.infinite_mode,disabled:this.props.isSavingAnyOption([a.module,e.key]),onChange:this.handleInfiniteScrollModeChange(e.key)}),h().createElement("span",{className:"jp-form-toggle-explanation"},e.label)))):h().createElement("span",null,__("Theme support required.","jetpack")+" ",h().createElement("a",{onClick:this.trackLearnMoreIS,href:a.learn_more_button+"#theme",title:__("Learn more about adding support for Infinite Scroll to your theme.","jetpack")},__("Learn more","jetpack")))),t&&h().createElement(E.Z,null))}}const b=(0,g.$j)((e=>({module:t=>(0,v.rT)(e,t),isInfiniteScrollSupported:(0,k.Cv)(e,"infinite-scroll"),isModuleFound:t=>(0,f.CX)(e,t)})))((0,l.u)(_))},89544:(e,t,a)=>{"use strict";a.d(t,{Z:()=>v});var n=a(82674),s=a.n(n),i=a(6895),r=a(65736),o=a(2353),c=a(5004),l=a(93806),p=a(28178),d=a(99196),u=a.n(d),m=a(59309),h=a(50416),g=a(89292);const __=r.__,_x=r._x;class k extends d.Component{render(){const e=this.props.isModuleFound("widgets"),t=this.props.isModuleFound("widget-visibility");return e||t?u().createElement(l.Z,s()({},this.props,{header:_x("Widgets","Settings header","jetpack"),module:"widgets",hideButton:!0}),e&&u().createElement(p.Z,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:(0,i.Z)("jetpack-support-extra-sidebar-widgets")}},u().createElement(c.T,{slug:"widgets",activated:this.props.widgetsActive,toggling:this.props.isSavingAnyOption("widgets"),toggleModule:this.props.toggleModuleNow},u().createElement("span",{className:"jp-form-toggle-explanation"},__("Make extra widgets available for use on your site including subscription forms and more","jetpack")))),t&&u().createElement(p.Z,{module:{module:"widget-visibility"},support:{text:__("Widget visibility lets you decide which widgets appear on which pages, so you can finely tailor widget content.","jetpack"),link:(0,i.Z)("jetpack-support-widget-visibility")}},u().createElement(c.T,{slug:"widget-visibility",activated:this.props.widgetVisibilityActive,toggling:this.props.isSavingAnyOption("widget-visibility"),toggleModule:this.props.toggleModuleNow},u().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable widget visibility controls to display widgets only on particular posts or pages","jetpack"))))):null}}const v=(0,o.u)((0,m.$j)(((e,t)=>({widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:(0,h.rT)(e,"widgets"),isModuleFound:t=>(0,g.CX)(e,t)})))(k))},11138:(e,t,a)=>{"use strict";a.d(t,{Z:()=>f});var n=a(82674),s=a.n(n),i=a(48229),r=a(6895),o=a(65736),c=a(61775),l=a(2353),p=a(5004),d=a(93806),u=a(28178),m=a(99196),h=a.n(m),g=a(59309),k=a(50416),v=a(89292);const __=o.__;const f=(0,g.$j)((e=>({module:t=>(0,k.rT)(e,t),isModuleFound:t=>(0,v.CX)(e,t)})))((0,l.u)((function(e){const t=e.isModuleFound("carousel");if(!t)return null;const a=e.getOptionValue("carousel_display_comments","carousel"),n=e.getOptionValue("carousel_display_exif","carousel"),o=e.getOptionValue("carousel"),l=(t,a,n,s)=>h().createElement(i.Z,{checked:t,disabled:!o||e.isSavingAnyOption(["carousel"]),toggling:e.isSavingAnyOption([a]),onChange:n,label:s});return h().createElement(d.Z,s()({},e,{module:"media",header:__("Media","jetpack"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color")}),h().createElement(u.Z,{hasChild:!0,module:{module:"carousel"},support:{link:(0,r.Z)("jetpack-support-carousel")}},h().createElement("p",null,__("Create full-screen carousel slideshows for the images in your posts and pages. Carousel galleries are mobile-friendly and encourage site visitors to interact with your photos.","jetpack")),h().createElement(p.T,{slug:"carousel",activated:o,toggling:e.isSavingAnyOption("carousel"),toggleModule:e.toggleModuleNow},h().createElement("span",{className:"jp-form-toggle-explanation"},__("Display images in a full-screen carousel gallery","jetpack"))),h().createElement(c.C_,null,l(n,"carousel_display_exif",(()=>{e.updateFormStateModuleOption("carousel","carousel_display_exif")}),h().createElement("span",{className:"jp-form-toggle-explanation"},__("Show photo Exif metadata in carousel (when available)","jetpack"))),l(a,"carousel_display_comments",(()=>{e.updateFormStateModuleOption("carousel","carousel_display_comments")}),h().createElement("span",{className:"jp-form-toggle-explanation"},__("Show comments area in carousel","jetpack"))),h().createElement(c.C_,null,h().createElement("p",{className:"jp-form-setting-explanation"},__("Exif data shows viewers additional technical details of a photo, like its focal length, aperture, and ISO.","jetpack"))),h().createElement(c.lX,null,h().createElement(c.Gj,{className:"jp-form-label-wide"},__("Carousel color scheme","jetpack")),h().createElement(c.ih,s()({name:"carousel_background_color",value:e.getOptionValue("carousel_background_color"),disabled:!o||e.isSavingAnyOption(["carousel","carousel_background_color"])},e,{validValues:e.validValues("carousel_background_color","carousel"),rna:!0}))))))})))},43317:(e,t,a)=>{"use strict";a.d(t,{X:()=>s});const n={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function s(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},25607:(e,t,a)=>{"use strict";a.d(t,{LR:()=>r,ZP:()=>i});var n=a(43317),s=a(5375);function i(e,t,a={}){const i=(0,n.X)(t);if(!i||isNaN(e))return null;const{decimal:r,grouping:o,precision:c,symbol:l}={...i,...a},p=e<0?"-":"";let d=(0,s.Z)(Math.abs(e),c,r,o);return a.stripZeros&&(d=function(e,t){const a=new RegExp(`\\${t}0+$`);return e.replace(a,"")}(d,r)),`${p}${l}${d}`}function r(e,t,a={}){const i=(0,n.X)(t);if(!i||isNaN(e))return null;const{decimal:r,grouping:o,precision:c,symbol:l}={...i,...a},p=e<0?"-":"",d=Math.abs(e),u=Math.floor(d);return{sign:p,symbol:l,integer:(0,s.Z)(d,c,r,o).split(r)[0],fraction:c>0?(0,s.Z)(d-u,c,r,o).slice(1):""}}},5375:(e,t,a)=>{"use strict";function n(e,t=0,a=".",n=","){const s=(e+"").replace(/[^0-9+\-Ee.]/g,""),i=isFinite(+s)?+s:0,r=isFinite(+t)?Math.abs(t):0,o=(r?function(e,t){const a=Math.pow(10,t);return""+(Math.round(e*a)/a).toFixed(t)}(i,r):""+Math.round(i)).split(".");return o[0].length>3&&(o[0]=o[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,n)),(o[1]||"").length<r&&(o[1]=o[1]||"",o[1]+=new Array(r-o[1].length+1).join("0")),o.join(a)}a.d(t,{Z:()=>n})},7211:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n,s=a(53184);function i(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}n=i.prototype,Object.assign(n,s.EventEmitter.prototype),n.emitChange=function(){this.emit("change")},n.off=n.removeListener,i.prototype.open=function(e,t,a){return t=t||Date.now(),this.windowInstance=window.open(e,t,a),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},i.prototype.getScreenCenterSpecs=function(e,t){const a=void 0!==window.screenTop?window.screenTop:window.screenY,n=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(a+window.innerHeight/2-t/2),"left="+(n+window.innerWidth/2-e/2)].join()},i.prototype.isOpen=function(e){let t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},i.prototype.checkStatus=function(){for(const e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},i.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};const r=i},37580:(e,t,a)=>{"use strict";a.d(t,{FT:()=>n,HX:()=>s,Mf:()=>i});const n="article",s="landscape",i="portrait"},52208:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(30275),s=a(21987),i=a(90626);const r=({text:e,url:t,forceUrlDisplay:a})=>{let r;return(a||(0,s.ge)(e,"a"))&&(r=(0,n.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:t,rel:"nofollow noopener noreferrer",target:"_blank",children:t})),(0,n.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,n.jsx)("span",{children:(0,s.u_)(e,{platform:"facebook",maxChars:i.qA})}),r]})}},90626:(e,t,a)=>{"use strict";a.d(t,{jN:()=>r,qA:()=>s,wB:()=>o,wy:()=>i});var n=a(21987);const s=440,i=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),r=e=>(0,n.SL)((0,n.hs)(110),(0,n.KB)(110))((0,n.ju)(e))||"",o=e=>(0,n.SL)((0,n.hs)(200),(0,n.KB)(200))((0,n.ju)(e))||""},53251:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(65736),s=a(99196),i=a(37580);const __=n.__,r=({mode:e})=>{const[t,a]=(0,s.useState)(e),[n,r]=(0,s.useState)(!0),o=(0,s.useCallback)((({target:e})=>{if(!t){const t=e;a(t.naturalWidth>t.naturalHeight?i.HX:i.Mf)}r(!1)}),[t]),c=(0,s.useCallback)((()=>r(!1)),[]);return[t,n,{alt:__("Facebook Preview Thumbnail","jetpack"),onLoad:o,onError:c}]}},26767:(e,t,a)=>{"use strict";a.d(t,{F:()=>l});var n=a(30275),s=a(37580),i=a(52208),r=a(53251),o=a(3451),c=a(69133);const l=({url:e,customImage:t,user:a,customText:l,imageMode:p})=>{const[d,u,m]=(0,r.Z)({mode:p}),h="is-"+(d===s.Mf?"portrait":"landscape");return(0,n.jsxs)("div",{className:"facebook-preview__post",children:[(0,n.jsx)(c.Z,{user:void 0}),(0,n.jsx)("div",{className:"facebook-preview__content",children:(0,n.jsxs)("div",{className:`facebook-preview__window ${h} ${t&&u?"is-loading":""}`,children:[(0,n.jsx)("div",{className:`facebook-preview__custom-image ${h}`,children:(0,n.jsx)("img",{src:t,...m})}),(0,n.jsx)(c.Z,{user:a,timeElapsed:!0,hideOptions:!0}),l&&(0,n.jsx)(i.Z,{text:l,url:e,forceUrlDisplay:!0})]})}),(0,n.jsx)(o.Z,{})]})}},7558:(e,t,a)=>{"use strict";a.d(t,{g:()=>u});var n=a(30275),s=a(65736),i=a(37580),r=a(52208),o=a(90626),c=a(53251),l=a(3451),p=a(69133),d=a(69094);a(59961);const __=s.__,u=({url:e,title:t,description:a,image:s,user:u,customText:m,type:h,imageMode:g,compactDescription:k})=>{const[v,f,E]=(0,c.Z)({mode:g}),_=h===i.FT,b="is-"+(_&&!s||v===i.Mf?"portrait":"landscape");return(0,n.jsxs)("div",{className:"facebook-preview__post",children:[(0,n.jsx)(p.Z,{user:u}),(0,n.jsxs)("div",{className:"facebook-preview__content",children:[m&&(0,n.jsx)(r.Z,{text:m,url:e}),(0,n.jsxs)("div",{className:`facebook-preview__body ${b} ${s&&f?"is-loading":""}`,children:[(s||_)&&(0,n.jsx)("div",{className:`facebook-preview__image ${s?"":"is-empty"} ${b}`,children:s&&(0,n.jsx)("img",{src:s,...E})}),(0,n.jsx)("div",{className:"facebook-preview__text",children:(0,n.jsxs)("div",{className:"facebook-preview__text-wrapper",children:[(0,n.jsx)("div",{className:"facebook-preview__url",children:(0,o.wy)(e)}),(0,n.jsx)("div",{className:"facebook-preview__title",children:(0,o.jN)(t)||(0,o.wy)(e)}),(0,n.jsxs)("div",{className:"facebook-preview__description "+(k?"is-compact":""),children:[a&&(0,o.wB)(a),_&&!a&& // translators: Default description for a Facebook post __("Visit the post for more.","jetpack")]}),(0,n.jsx)("div",{className:"facebook-preview__info",children:(0,n.jsx)(d.Z,{name:"info"})})]})})]})]}),(0,n.jsx)(l.Z,{})]})}},34245:(e,t,a)=>{"use strict";a.d(t,{C:()=>l});var n=a(30275),s=a(37580),i=a(52208),r=a(53251),o=a(3451),c=a(69133);a(59961);const l=({url:e,user:t,customText:a,media:l,imageMode:p})=>{const[d]=(0,r.Z)({mode:p}),u="is-"+(d===s.Mf?"portrait":"landscape");return(0,n.jsxs)("div",{className:"facebook-preview__post",children:[(0,n.jsx)(c.Z,{user:t}),(0,n.jsxs)("div",{className:"facebook-preview__content",children:[a&&(0,n.jsx)(i.Z,{text:a,url:e,forceUrlDisplay:!0}),(0,n.jsx)("div",{className:"facebook-preview__body",children:l?(0,n.jsx)("div",{className:`facebook-preview__media ${u}`,children:l.map(((e,t)=>(0,n.jsx)("div",{className:`facebook-preview__media-item ${u}`,children:e.type.startsWith("video/")?(0,n.jsx)("video",{controls:!0,children:(0,n.jsx)("source",{src:e.url,type:e.type})}):(0,n.jsx)("img",{alt:e.alt||"",src:e.url})},`facebook-preview__media-item-${t}`)))}):null})]}),(0,n.jsx)(o.Z,{})]})}},3451:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(30275),s=a(65736),i=a(69094);a(1488);const __=s.__,r=()=>(0,n.jsx)("ul",{className:"facebook-preview__post-actions",children:[{icon:"like", // translators: Facebook "Like" action label:__("Like","jetpack")},{icon:"comment", // translators: Facebook "Comment" action label:__("Comment","jetpack")},{icon:"share", // translators: Facebook "Share" action label:__("Share","jetpack")}].map((({icon:e,label:t})=>(0,n.jsxs)("li",{children:[(0,n.jsx)(i.Z,{name:e}),(0,n.jsx)("span",{children:t})]},e)))})},69133:(e,t,a)=>{"use strict";a.d(t,{Z:()=>c});var n=a(30275),s=a(65736),i=a(99196),r=a(69094);a(56878);const __=s.__,_x=s._x,o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IB2cksfwAADwtJREFUeJztXet2mzgX3RLg+H5NmsRt0zad6Zp5/6eYtebPvMDX20zaJm4udmwH20jfDyQQQthpgm1gsTuMWgukg7aOzjmSAPLX3/9wlCgs6L4FKLFdlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFh71uAbYMQsjaf82I/e1c4ggkh4JwrB8DBAQ6I/wEg4j8CQvxr5FE0wgtDMCEEjDF4ngdKKSzLQr1eQ71WxUGlAtu2QamvzYxxrFYruIsFZvMHzGZzeJ4XXEspLQzRhSF4tVrBcRwM+j30um2020049uNub7laYTy+x83tGLd3YyyXS1iWtXWZd4FcE0wI4HkchAAnJy9wfNhHvV6Lnccjw3NwNaR5dmwbg34Xg34Xs9kcP0bXuLwcgXPAsgjyrMy5Jdgnl6Fer+Ht6yHa7RYQOE0hefJcYJOzBQAc9XoN785eYtBt49PXC8xmc1gWzS3JuQyTCCFYrRh6vTb+/PDeJ5f7JPnO0lPKlA6ar+ztdgt/fniPXq+N1Ypt9MazitwRTACsPA+DXge/n7+F49hBRhocEBIqu+PY+P38LQa9Dlaet2EMyCZyR7DHOBq1Gt6fn/ne7hbr4gAopXh/foZGrQaP5W+czh3BlBK8ORvCsixwzreqVUTYdMuy8OZsGIRZeUKuCPY8htOTI3TaLZ/cHdhFOfnRabdwenIEz2NbrzNN5IZgzjmq1QMMT46BR0xBpglZ1/DkGNXqQa4mQXJBMCEEHmM4GvT2FrL4MTHF0aAHj+XHq84FwZxzVBwH/X5X/rIPKQAA/X4XFcfJjRZnnmBCCDzPQ6fdRK1W3ZntNcnBOUetVkWn3YTnebnQ4swTLAltNRuZiEMJ4MuSk5WnzBMMEYs2mnVgx86VDll3o1kHpblouuwTzDlgWzYatfgiwr7QqNVgW3Yu5qczTbA/0cDQaFQzpTGUUjQaVXDOMmE21iE7rWaCmPyvVg/2LUkMfjyMdCbAt4hsEwx/u41jO/7fMzAkShkc2/G3AmUcmScYHLDlilEmGtSXwXbsbIizAdknGBxWBodBX6bsM5wDggGSwVWcLMpkQg4IJmBZML4amNgalHXkgGCAsewt0WVRJhMyTzAhwHK5En/fv8ZIGZbLVdYjJCAPBAMErrvYtxAx+DJln+FME8w5B6UE8/k8Yx4rx3w+B6XZX3DINME+COYPLhZimM4CFssV5g9uqcFpgBDfoRlP7oE9Pw0o6x5P7sEYK21wGvAX/Blub8f7FiXA7e0YnpePbTuZJ5hzDmpZGE+mcF13bwvtcuOB67oYT6agYttu1pF5ggGAEoIH18XV6Fr8sg/N8eu8Gl3jwXVBc6C9yAvBnHPYlOJydI3Vaj/xJyH+I6qXo2vYOXp+OBcEAwChFK67xPcfI2DHzpas6/uPEVx3CZKhzQebkBtJ/UdICL79uMLkfrozWyxt7+R+im8/rsTzwvnQXuSJYB/+FtpPn//d2bZVuW1X1pmH2FdFzggGLMvC/XSOz18vdlbn568XuJ/Oc/lah9wRzDmHbVNcXv3Epy//bXUbD+fApy//4fLqJ2w7P46VitwRjOA5IQvfvl/i4+evQcOnQYBa1sfPX/Ht+6V4VPXZRe8FuX1Hh6/JNr5fjuCtPJydDXFQqQR5v2qf5TWEELiLBT5/ucDo+gaObedScyVySzAEKY5tY3Rzi+lsjuHwGC8O+wG5kpgkstV8ec7l6BoXFz8wd93ck4u8EwypyZYFd7HA/z5+wWh0jRcvBmi3mqg4ztprJamL5RLjyT0uL39iPLkHIQR2TqYiNyH3BEMbXseTKe7GE9TrNTTqdbSaddRqNRxUnMAL9jwP7mKJ+XyOyf0M09kMs9kchNDgCYoikIuiEKyCUgJCbMznLmazOX5e30TeRQlBnjz8ZT8KuwDDsQmFIxjKThBC7IhXzJi0uRApCYgtIrkoKsESOmkmX6uoxErkMg4u8XjkQoP1sEfC/JLR1GuPaX6SPFlEZglWX+wtJ/l9uxo6S7t6MZlqx315GAAOSmnmXySeKYJ1UgkhqFUPUK0eoFaronrg/91x7OCl39veWcGELIwxLJcrPDy4eHBdzOcPeHhwMX9whVOXTbIzRbD/wk+Cg4qDfq+DTqeNWu0gmILcBygAW8TPtSrQbjWDPHexwHzu4u5ujOubO7iLJThnsKzsuDbkr7//2Xt3k8/5tFtNHB0N0O92Yo20adpxV0iSw/MYrm/vcDX6ifHY3+KbhddO7E2D5TcWGGNot1oYnh6h22lHGk5dNNg3sRK6HFJG+Ra8w34Xt3djXHy7wngy2fs3IPZCsL+BzUOl4mB4eoyTFwPFM41ORGQd0Q7p/7vX7aDbaeP75U9cfPuBxWIp1pN3L99eCPY8D91uG+/OXgUvWAnnk/chUTqQsst7OT0+RK/Twscv/+LubgxKd78jZKdGgnPf3g5Pj/HHh/PIm1vzoK2PhRonV6sH+OPDOYanx2CM7VyLd6bBIpLE2zcvcfLiKPitSMTqIIRAfCIEZ6+GqFQcfP5yAQ6ys617W9fgwEkC8Nv5WUAucrc/8WlQ7/HkxRF+Oz8LfttF5946wXLi4t2bVxj0e9uuLvMY9Ht49+bVzlawtkqwHwpxvH51iqPDfqYe4d4XOICjwz5evzoFY9t/NfLWCPa/bbTCYb+L05OjrX9AIy+QH/o4PT7C4aArnrXaXstsjWDP89Co1/Dm7KXRpXjMVtdN5zxnu6x+bfSLpfG8x5SnX5+UD6EAb85eolGvbfVDH1vV4LPXQziOHeykWNeApgNy4j72ydjHlAEt1a8lsVQ9HiujKqt6PIZwx7Zx9nq41dg/dYLlE/mHgx66nbb/Makn3sBmDSJaGrk6knLtAHiwniy/Maz+eYqs6wjVO5C8pttp43DQ29obA1KPgxljcBwbL0+Phd3lACebm0y/Nx5JDI1OACI+/Ey44VW0RBg8M/8hueIkrs0xP0ZerqQx8Xn0JKKdxP0zKIDh6TFubsdbeaAuVQ2WCwiHgx6q1YNgaDYhpjE8fsjfw8ZSD6kp3DjExvJjKhzV8CQZTbKa5I2PANEeYDIR0uGqVQ9wOOiJHZ7pEpyqBnPO4TgODgc9/0bCjM3Xbvg90dEKUkM+EVWThOsjHCSVv77eJMHD+jaXyznH4aCH0c+b1F+RmJoGy+do260m6vV64BnK+/xVGyeVLGnbld58uoJy1bYmDKGb8rGG4JgMcSO/dozgSpt4jKFer6O9hc/1pKbBcttKt9sGkYOU6gnr5wf2M8FOcq2BTPnEV1GZRiC1UqR8Q5utkzGQNVa+MN2G7Fi+Tlogmzydo9dp4+bmLtUZrlQJdhwH7VYLHuPS8gg/KM5gxD+CuZuvG0HlBzsICDhnTyxfSmYaVUi8jMgNR9NY/+N6H9OHXqV88dncdrsFx3GwXC5T0+JUhmjpLDQbdf/bgozFYlEdXIYWSdqj5AWp+siJMK4y/dU4OZ4X9Zugcbjxen2UFjKqsupxduRgDBalaDbqIvpIB+nYYDEMN5uN4KPNMT/SQAARN0oMN6znxav0h2ViGp4VmZJMBDQCYz64QR71zyb5AxkVWWM9KNy64stACRrNejhxkgJSGaKl/a0eVERvDAUMmtYUi65xZJgYdjmYcfO51DoinCQ9X4YcSaEHZ6JWnuBG6fUlyEgICWSNXE7iI4Ser8ooREGtWk11D1dqBDuOIx7kUntmqB6/LjARjSTTWK2G6UblaqG5SfuUY/Pjhg70GBmDmNbgQ63zIlXZ1P3gtkVTtcPPJpiIzeG2bcG2bbEthYseCiWN3+B6yN6PSBrUSxDUI1MV6vw3YNBwKSMPZYyWv76DqDKaPDg5qqgy6vL7y4WhrIwx2LYN27awWCxAySNmADfg+RosWs6yLLGXWUR4IrZJ1jC1EeIERJwdk5PG9TIMXnBC2Yh0EHWxQS2fawSZrg/TJBlVWfXyowsdUNrRilbyDKQ0REsNlfYI4TRSopByCk9N9XLVYSx+PRMOjkx1yAV105Spv1+KiBg2WcaQgGi+lDckMd6B1eFZ/3JMKG+48MA5QAn1NTelUDilOJiDii2vXAzLsbn4RBsnPUquFxnabmKKQ3k0P8HTThpmudj6Fqb6xevLxoaJGunARYJh4/1HZaWWfLguQ04WgMg6KBGaHPFidf50J4OZblid5DAQyAVBPNnJknXpXjDhJOIFxxwaEcMHoZDuQ7BQbmLUuGgwTfTVqgQniwNmm/JEpLtcqN7TpjhUzzc5YZG8uJFOWOkLZVhj5AMZVVk2yfgL8usmKlFGRdaEfvwspL6aFOvKUoviJwcTCkQ5L3pZOM9oXC5WvJj4VGG0/JiGb7qXDeVDi8P1OwxGbs6jZan5hjZIK/6VSI9gnUiT26n+k0ftYFwDogYuScOwTsOUkmIdSHeDDWUTMTqE8+n6/XDwBCPM9fbYMELxdW33DKSowUJYlTjVzmgNJH3toOEMXqZq54wqJ3835Sd6rTJ7/XRoMIfGQ1n18iPX6566Lo8pX4sDwxmvDNpgBjG5rpC71gveANVBehI0D9c01ajLqF+upokyPmmWziwjRIdnKRriFAgWsaa3gse8qDZEWineK6P3pocx0UAr5oVi04IE0eo3jBDSA09c0E36lyIBV4dp5XxOYqFY5GoZXwepX8tqtQLzVqmFSs8mWE5yLJcrLBcrVCpOfJnGECfGvOCYm8k32FhdAw1TYUl1K6YhNBHaCUH8muAFywkaWYnRxq7RcoMPQAjBYrkSH75MZ7IjlSGaUorFYgnXdVGpVILYNxKhxCYaoPRe050oK/WJJnbdlopHjrMCcR8v3JVictJiFSSY2MQ4PrhU8dQpheu6WCyWqa0opbIeLIP0u7uJMq0olg1Fynj02IzIjrnYgvojBQtT/fAzgpSz6CFlXC+rMt2olf8LfSsUlzHc3Y0ja8rPRWpOFqUUk/t7TKdTNBqNcHdggpymmZyEEwHjCK9sC1KH2oTrk39PbkjV0fvV1TCi36NetlYvpRTT6RST+2mqL2/5Pz0W8ayv9wEYAAAAAElFTkSuQmCC",c=({user:e,timeElapsed:t,hideOptions:a})=>{const[s,c]=(0,i.useState)(e?.avatarUrl||o),l=(0,i.useCallback)((()=>{s!==o&&c(o)}),[s]);return(0,n.jsxs)("div",{className:"facebook-preview__post-header",children:[(0,n.jsxs)("div",{className:"facebook-preview__post-header-content",children:[(0,n.jsx)("img",{className:"facebook-preview__post-header-avatar",src:s,alt:"",onError:l}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"facebook-preview__post-header-name",children:e?.displayName|| // translators: name of a fictional Facebook User __("Anonymous User","jetpack")}),(0,n.jsxs)("div",{className:"facebook-preview__post-header-share",children:[(0,n.jsx)("span",{className:"facebook-preview__post-header-time",children:t?__( // translators: short version of `1 hour` "1h","jetpack"):_x( // translators: temporal indication of when a post was published "Just now","","jetpack")}),(0,n.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,n.jsx)(r.Z,{name:"public"})]})]})]}),!a&&(0,n.jsx)("div",{className:"facebook-preview__post-header-more"})]})}},69094:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(30275);a(40888);const s=({name:e})=>(0,n.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${e}`})},13477:(e,t,a)=>{"use strict";a.d(t,{S:()=>p});var n=a(30275),s=a(55609),i=a(65736),r=a(10263),o=a(7558),c=a(26767),l=a(34245);const __=i.__,p=({headingLevel:e,hideLinkPreview:t,hidePostPreview:a,...i})=>{const p=!!i.media?.length,d=!!i.customImage;return(0,n.jsxs)("div",{className:"social-preview facebook-preview",children:[!a&&(0,n.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,n.jsx)(r.Z,{level:e,children: // translators: refers to a social post on Facebook __("Your post","jetpack")}),(0,n.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Facebook:","jetpack")}),p?(0,n.jsx)(l.C,{...i}):(0,n.jsx)(o.g,{...i})]}),!t&&(0,n.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,n.jsx)(r.Z,{level:e,children: // translators: refers to a link to a Facebook post __("Link preview","jetpack")}),(0,n.jsxs)("p",{className:"social-preview__section-desc",children:[__("This is what it will look like when someone shares the link to your WordPress post on Facebook.","jetpack")," ",(0,n.jsx)(s.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),d?(0,n.jsx)(c.F,{...i}):(0,n.jsx)(o.g,{...i,compactDescription:!0,customText:"",user:void 0})]})]})}},17915:(e,t,a)=>{"use strict";a.d(t,{X:()=>l});var n=a(30275),s=a(21987);a(73443);const i=160,r=e=>{const t=e.startsWith("https://")?"https://":"http://",a=t+e.replace(t,"").split("/").join(" › ");return(0,s.SL)((0,s.hs)(68),(0,s.KB)(68))(a)},o=(0,s.SL)((0,s.hs)(63),(0,s.I$)(23,73),(0,s.KB)(63)),c=(0,s.SL)((0,s.hs)(i),(0,s.I$)(80,170),(0,s.KB)(i)),l=({description:e="",siteTitle:t,title:a="",url:i=""})=>{const l=(0,s.wy)(i);return(0,n.jsx)("div",{className:"search-preview",children:(0,n.jsxs)("div",{className:"search-preview__display",children:[(0,n.jsxs)("div",{className:"search-preview__header",children:[(0,n.jsxs)("div",{className:"search-preview__branding",children:[(0,n.jsx)("img",{className:"search-preview__icon",src:`https://www.google.com/s2/favicons?sz=128&domain_url=${l}`,alt:""}),(0,n.jsxs)("div",{className:"search-preview__site",children:[(0,n.jsx)("div",{className:"search-preview__site--title",children:t||l}),(0,n.jsx)("div",{className:"search-preview__url",children:r(i)})]})]}),(0,n.jsx)("div",{className:"search-preview__menu",children:(0,n.jsx)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})})})]}),(0,n.jsx)("div",{className:"search-preview__title",children:o(a)}),(0,n.jsx)("div",{className:"search-preview__description",children:c((0,s.ju)(e))})]})})}},21987:(e,t,a)=>{"use strict";a.d(t,{I$:()=>c,KB:()=>l,SL:()=>p,YW:()=>m,ge:()=>u,hs:()=>o,ju:()=>d,u_:()=>g,wy:()=>r});var n=a(30275),s=a(69307),i=a(65736);const r=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),o=e=>t=>t.length<=e&&t,c=(e,t)=>a=>{const n=a.slice(0,t),s=n.lastIndexOf(" ");return s>e&&s<t&&n.slice(0,s).concat("…")},l=e=>t=>t.slice(0,e).concat("…"),p=(...e)=>t=>e.find((e=>!1!==e(t)))?.(t),d=(e,t=[])=>{const a=new RegExp(`(<([^${t.join("")}>]+)>)`,"gi");return e?e.replace(a,""):""},u=(e,t)=>new RegExp(`<${t}[^>]*>`,"gi").test(e),m=(new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short"}).format,new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"2-digit",year:"numeric"}).format,new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format),h=(new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format,{twitter:"https://twitter.com/hashtag/%1$s",facebook:"https://www.facebook.com/hashtag/%1$s",linkedin:"https://www.linkedin.com/feed/hashtag/?keywords=%1$s",instagram:"https://www.instagram.com/explore/tags/%1$s",mastodon:"https://%2$s/tags/%1$s",nextdoor:"https://nextdoor.com/hashtag/%1$s",threads:"https://www.threads.net/search?q=%1$s&serp_type=tags"});function g(e,t){const{platform:a,maxChars:r,maxLines:o,hyperlinkHashtags:c=!0,hyperlinkUrls:l="instagram"!==a}=t;let p=d(e);if(p=p.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),r&&p.length>r&&(p=p.substring(0,r)),o){const e=p.split("\n");e.length>o&&(p=e.slice(0,o).join("\n"))}const u={};if(l){(p.match(/(https?:\/\/\S+)/g)||[]).forEach(((e,t)=>{u[`Link${t}`]=(0,n.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank",children:e}),p=p.replace(e,`<Link${t} />`)}))}if(c&&h[a]){const e=p.matchAll(/(^|\s)#(\w+)/g),s=h[a];[...e].forEach((([e,a,r],o)=>{const c=(0,i.sprintf)(s,r,t.hashtagDomain);u[`Hashtag${o}`]=(0,n.jsx)("a",{href:c,rel:"noopener noreferrer",target:"_blank",children:`#${r}`}),p=p.replace(e,`${a}<Hashtag${o} />`)}))}return p=p.replace(/\n/g,"<br />"),u.br=(0,n.jsx)("br",{}),(0,s.createInterpolateElement)(p,u)}},10263:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=a(30275);const s=[2,3,4,5,6],i=({className:e,level:t,children:a})=>{const i=`h${t&&s.includes(t)?t:3}`;return(0,n.jsx)(i,{className:`social-preview__section-heading ${e??""}`,children:a})}},5894:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var n=a(30275),s=a(3228),i=a(21987);const r=(0,i.SL)((0,i.hs)(200),(0,i.KB)(200)),o=({description:e,image:t,title:a,cardType:o,url:c})=>{const l=(0,s.Z)(`twitter-preview__card-${o}`,{"twitter-preview__card-has-image":!!t});return(0,n.jsx)("div",{className:"twitter-preview__card",children:(0,n.jsxs)("div",{className:l,children:[t&&(0,n.jsx)("img",{className:"twitter-preview__card-image",src:t,alt:""}),(0,n.jsxs)("div",{className:"twitter-preview__card-body",children:[(0,n.jsx)("div",{className:"twitter-preview__card-url",children:(0,i.wy)(c||"")}),(0,n.jsx)("div",{className:"twitter-preview__card-title",children:a}),(0,n.jsx)("div",{className:"twitter-preview__card-description",children:r((0,i.ju)(e))})]})]})})}},66370:(e,t,a)=>{"use strict";a.d(t,{$:()=>s});var n=a(30275);const s=()=>(0,n.jsxs)("div",{className:"twitter-preview__footer",children:[(0,n.jsx)("span",{className:"twitter-preview__icon-replies",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01zm8.005-6c-3.317 0-6.005 2.69-6.005 6 0 3.37 2.77 6.08 6.138 6.01l.351-.01h1.761v2.3l5.087-2.81c1.951-1.08 3.163-3.13 3.163-5.36 0-3.39-2.744-6.13-6.129-6.13H9.756z"})})}),(0,n.jsx)("span",{className:"twitter-preview__icon-retweets",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M4.5 3.88l4.432 4.14-1.364 1.46L5.5 7.55V16c0 1.1.896 2 2 2H13v2H7.5c-2.209 0-4-1.79-4-4V7.55L1.432 9.48.068 8.02 4.5 3.88zM16.5 6H11V4h5.5c2.209 0 4 1.79 4 4v8.45l2.068-1.93 1.364 1.46-4.432 4.14-4.432-4.14 1.364-1.46 2.068 1.93V8c0-1.1-.896-2-2-2z"})})}),(0,n.jsx)("span",{className:"twitter-preview__icon-likes",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M16.697 5.5c-1.222-.06-2.679.51-3.89 2.16l-.805 1.09-.806-1.09C9.984 6.01 8.526 5.44 7.304 5.5c-1.243.07-2.349.78-2.91 1.91-.552 1.12-.633 2.78.479 4.82 1.074 1.97 3.257 4.27 7.129 6.61 3.87-2.34 6.052-4.64 7.126-6.61 1.111-2.04 1.03-3.7.477-4.82-.561-1.13-1.666-1.84-2.908-1.91zm4.187 7.69c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})}),(0,n.jsx)("span",{className:"twitter-preview__icon-analytics",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M8.75 21V3h2v18h-2zM18 21V8.5h2V21h-2zM4 21l.004-10h2L6 21H4zm9.248 0v-7h2v7h-2z"})})}),(0,n.jsx)("span",{className:"twitter-preview__icon-share",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",children:(0,n.jsx)("path",{d:"M12 2.59l5.7 5.7-1.41 1.42L13 6.41V16h-2V6.41l-3.3 3.3-1.41-1.42L12 2.59zM21 15l-.02 3.51c0 1.38-1.12 2.49-2.5 2.49H5.5C4.11 21 3 19.88 3 18.5V15h2v3.5c0 .28.22.5.5.5h12.98c.28 0 .5-.22.5-.5L19 15h2z"})})})]})},78678:(e,t,a)=>{"use strict";a.d(t,{h:()=>r});var n=a(30275),s=a(65736),i=a(21987);const __=s.__,r=({name:e,screenName:t,date:a})=>(0,n.jsxs)("div",{className:"twitter-preview__header",children:[(0,n.jsx)("span",{className:"twitter-preview__name",children:e||__("Account Name","jetpack")}),(0,n.jsx)("span",{className:"twitter-preview__screen-name",children:t||"@account"}),(0,n.jsx)("span",{children:"·"}),(0,n.jsx)("span",{className:"twitter-preview__date",children:(0,i.YW)(a||Date.now())})]})},42029:(e,t,a)=>{"use strict";a.d(t,{q:()=>s});var n=a(30275);const s=()=>(0,n.jsxs)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"271pt",height:"270pt",viewBox:"0 0 271 270",children:[(0,n.jsx)("rect",{width:"100%",height:"100%",fill:"#ccd5de"}),(0,n.jsxs)("g",{transform:"translate(0,270) scale(0.1,-0.1)",fill:"#647785",stroke:"none",children:[(0,n.jsx)("path",{d:"M1251 2089 c-81 -14 -178 -65 -239 -125 -64 -65 -124 -185 -149 -299 -24 -111 -24 -339 -1 -415 38 -121 108 -193 227 -231 83 -27 339 -38 449 -19 139 23 236 91 286 200 59 130 52 395 -15 577 -88 235 -301 354 -558 312z"}),(0,n.jsx)("path",{d:"M1197 795 c-358 -68 -643 -357 -721 -732 l-14 -63 890 0 890 0 -7 42 c-11 70 -64 218 -102 288 -121 224 -336 394 -573 454 -92 24 -267 29 -363 11z"})]})]})},43503:(e,t,a)=>{"use strict";a.d(t,{m:()=>i});var n=a(30275),s=a(20445);const i=e=>(0,n.jsx)(s.g,{...e,text:"",media:void 0})},51075:(e,t,a)=>{"use strict";a.d(t,{p:()=>r});var n=a(30275),s=a(3228),i=a(99196);const r=({media:e})=>{const t=e.filter((e=>e.type.startsWith("image/")||e.type.startsWith("video/"))).filter(((e,t,a)=>0===t||!a[0].type.startsWith("video/")&&"image/gif"!==a[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type))).slice(0,4);if(0===t.length)return null;const a=t[0].type.startsWith("video/"),r=(0,s.Z)(["twitter-preview__media","twitter-preview__media-children-"+t.length]);return(0,n.jsx)("div",{className:r,children:t.map(((e,t)=>(0,n.jsx)(i.Fragment,{children:a?(0,n.jsx)("video",{controls:!0,children:(0,n.jsx)("source",{src:e.url,type:e.type})}):(0,n.jsx)("img",{alt:e.alt||"",src:e.url})},`twitter-preview__media-item-${t}`)))})}},20445:(e,t,a)=>{"use strict";a.d(t,{g:()=>d});var n=a(30275),s=a(5894),i=a(66370),r=a(78678),o=a(51075),c=a(15850),l=a(94615),p=a(98969);a(58449);const d=({date:e,description:t,image:a,media:d,name:u,profileImage:m,screenName:h,showThreadConnector:g,text:k,title:v,tweet:f,cardType:E,url:_})=>{const b=!!d?.length;return(0,n.jsx)("div",{className:"twitter-preview__wrapper",children:(0,n.jsxs)("div",{className:"twitter-preview__container",children:[(0,n.jsx)(l.Y,{profileImage:m,showThreadConnector:g}),(0,n.jsxs)("div",{className:"twitter-preview__main",children:[(0,n.jsx)(r.h,{name:u,screenName:h,date:e}),(0,n.jsxs)("div",{className:"twitter-preview__content",children:[k?(0,n.jsx)(p.x,{text:k,url:_||"",retainUrl:b}):null,b?(0,n.jsx)(o.p,{media:d}):null,f?(0,n.jsx)(c.P,{tweet:f}):null,!b&&_&&(0,n.jsx)(s.Z,{description:t||"",image:a,title:v||"",cardType:E||"",url:_})]}),(0,n.jsx)(i.$,{})]})]})})}},15850:(e,t,a)=>{"use strict";a.d(t,{P:()=>i});var n=a(30275),s=a(55609);const i=({tweet:e})=>e?(0,n.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,n.jsx)(s.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${e}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet"}),(0,n.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null},94615:(e,t,a)=>{"use strict";a.d(t,{Y:()=>r});var n=a(30275),s=a(65736),i=a(42029);const __=s.__,r=({profileImage:e,showThreadConnector:t})=>(0,n.jsxs)("div",{className:"twitter-preview__sidebar",children:[(0,n.jsx)("div",{className:"twitter-preview__profile-image",children:e?(0,n.jsx)("img",{alt:__("Twitter profile image","jetpack"),src:e}):(0,n.jsx)(i.q,{})}),t&&(0,n.jsx)("div",{className:"twitter-preview__connector"})]})},98969:(e,t,a)=>{"use strict";a.d(t,{x:()=>i});var n=a(30275),s=a(21987);const i=({text:e,url:t,retainUrl:a})=>{if(!e)return null;const i=t&&!a&&e.endsWith(t)?e.substring(0,e.lastIndexOf(t)):e;return(0,n.jsx)("div",{className:"twitter-preview__text",children:(0,s.u_)(i,{platform:"twitter"})})}},2816:(e,t,a)=>{"use strict";a.d(t,{bQ:()=>d,tq:()=>p});var n=769,s="<480px",i="undefined"==typeof window||!window.matchMedia;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,a=e.max;return void 0!==t&&void 0!==a?i?{matches:n>t&&n<=a}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(a,"px)")):void 0!==t?i?{matches:n>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==a&&(i?{matches:n<=a}:window.matchMedia("(max-width: ".concat(a,"px)")))}var o={"<480px":r({max:480}),"<660px":r({max:660}),"<800px":r({max:800}),"<960px":r({max:960}),"<1040px":r({max:1040}),"<1280px":r({max:1280}),"<1400px":r({max:1400}),">480px":r({min:480}),">660px":r({min:660}),">800px":r({min:800}),">960px":r({min:960}),">1040px":r({min:1040}),">1280px":r({min:1280}),">1400px":r({min:1400}),"480px-660px":r({min:480,max:660}),"660px-960px":r({min:660,max:960}),"480px-960px":r({min:480,max:960})};function c(e){if(o.hasOwnProperty(e))return o[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(e){}}function l(e){var t=c(e);return t?t.matches:void 0}function p(){return l(s)}function d(){return i?n:window.innerWidth}},51128:(e,t,a)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const a="color: "+this.color;t.splice(1,0,a,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,a)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=a(62942)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},62942:(e,t,a)=>{e.exports=function(e){function t(e){let a,s,i,r=null;function o(...e){if(!o.enabled)return;const n=o,s=Number(new Date),i=s-(a||s);n.diff=i,n.prev=a,n.curr=s,a=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let r=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,s)=>{if("%%"===a)return"%";r++;const i=t.formatters[s];if("function"==typeof i){const t=e[r];a=i.call(n,t),e.splice(r,1),r--}return a})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(s!==t.namespaces&&(s=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(o),o}function n(e,a){const n=t(this.namespace+(void 0===a?":":a)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let a;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(a=0;a<s;a++)n[a]&&("-"===(e=n[a].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let a,n;for(a=0,n=t.skips.length;a<n;a++)if(t.skips[a].test(e))return!1;for(a=0,n=t.names.length;a<n;a++)if(t.names[a].test(e))return!0;return!1},t.humanize=a(73171),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((a=>{t[a]=e[a]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let a=0;for(let t=0;t<e.length;t++)a=(a<<5)-a+e.charCodeAt(t),a|=0;return t.colors[Math.abs(a)%t.colors.length]},t.enable(t.load()),t}},51260:(e,t,a)=>{"use strict";function n(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}a.d(t,{Z:()=>s});const s=function e(t,a){if(t===a)return!0;if(null==t||null==a)return!1;if(Array.isArray(t))return Array.isArray(a)&&t.length===a.length&&t.every((function(t,n){return e(t,a[n])}));if("object"==typeof t||"object"==typeof a){var s=n(t),i=n(a);return s!==t||i!==a?e(s,i):Object.keys(Object.assign({},t,a)).every((function(n){return e(t[n],a[n])}))}return!1}},62042:(e,t,a)=>{"use strict";e.exports=a.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},90724:(e,t,a)=>{"use strict";e.exports=a.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},88702:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-lock-7b01c1a4cf56de799cd7.png"},21160:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-success-cad524ede4e793cc0ece.png"},40644:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-facebook-03b8bce6abd7bc00d150.png"},93926:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-instagram-business-02b13c6f259ed76ed147.png"},98611:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-linkedin-8eb17cdcd3fa4f80c501.png"},44654:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-nextdoor-2657489bfff7220ad540.png"},16723:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-threads-5c7128de4925906b6d4a.png"},27182:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-tumblr-e4db652e14ad0bda07f2.png"},30253:(e,t,a)=>{"use strict";e.exports=a.p+"images/dois-66b3f018328e8f585646.jpg"},91948:(e,t,a)=>{"use strict";e.exports=a.p+"images/edge-e1adff73f2dc1c1dc64e.jpg"},5353:(e,t,a)=>{"use strict";e.exports=a.p+"images/fullscreen-21ca1ee2bafcb1c8eb55.jpg"},27956:(e,t,a)=>{"use strict";e.exports=a.p+"images/highway-205f94656e2fcc4aeb86.jpg"},39542:(e,t,a)=>{"use strict";e.exports=a.p+"images/connect-f27775ac15cf885713c2.png"},97436:(e,t,a)=>{"use strict";e.exports=a.p+"images/people-c8df8440a2897e6d0eba.svg"},80118:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-with-check-67191b0849d39acf52fa.svg"},33951:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-manage-3a7ecaa604823c98c3cf.svg"},92787:e=>{"use strict";if(void 0==={consumer_slug:"jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack"}},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},19567:e=>{"use strict";e.exports=window.jQuery},92819:e=>{"use strict";e.exports=window.lodash},86989:e=>{"use strict";e.exports=window.wp.apiFetch},52175:e=>{"use strict";e.exports=window.wp.blockEditor},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},37798:e=>{"use strict";e.exports=window.wp.coreData},9818:e=>{"use strict";e.exports=window.wp.data},69771:e=>{"use strict";e.exports=window.wp.date},72067:e=>{"use strict";e.exports=window.wp.editPost},12238:e=>{"use strict";e.exports=window.wp.editor},69307:e=>{"use strict";e.exports=window.wp.element},22629:e=>{"use strict";e.exports=window.wp.htmlEntities},65736:e=>{"use strict";e.exports=window.wp.i18n},58141:e=>{"use strict";e.exports=window.wp.mediaUtils},53961:e=>{"use strict";e.exports=window.wp.notices},98817:e=>{"use strict";e.exports=window.wp.plugins},70444:e=>{"use strict";e.exports=window.wp.primitives},96483:e=>{"use strict";e.exports=window.wp.url},39369:()=>{},82674:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},80255:(e,t,a)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},n.apply(null,arguments)}a.d(t,{Z:()=>n})},41806:(e,t,a)=>{"use strict";a.d(t,{Z:()=>s});var n=a(80205);function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},37921:(e,t,a)=>{"use strict";function n(e,t){if(null==e)return{};var a={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}a.d(t,{Z:()=>n})},80205:(e,t,a)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}a.d(t,{Z:()=>n})},3228:(e,t,a)=>{"use strict";function n(e){var t,a,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=n(e[t]))&&(s&&(s+=" "),s+=a)}else for(a in e)e[a]&&(s&&(s+=" "),s+=a);return s}a.d(t,{Z:()=>s});const s=function(){for(var e,t,a=0,s="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=n(e))&&(s&&(s+=" "),s+=t);return s}},48288:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var n=a(6895),s=a(69307),i=a(65736),r=a(25162),o=a(99196),c=a(69430);const __=i.__,l=e=>{const{productId:t,siteRawUrl:a}=e,i=`https://cloud.jetpack.com/landing/${a}`,r=(0,c.F)(t),l={jetpack_anti_spam:{title:__("Jetpack Anti-spam is active!","jetpack"),text:__("We'll take care of everything from here. Now you can enjoy a spam-free site!","jetpack")},jetpack_backup:{title:__("Jetpack Backup is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your backups and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:o.createElement("a",{href:i})})},jetpack_complete:{title:__("Jetpack Complete is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:o.createElement("a",{href:i})})},jetpack_scan:{title:__("Jetpack Scan is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your security scans on <a>cloud.jetpack.com</a>.","jetpack"),{a:o.createElement("a",{href:i})})},jetpack_search:{title:__("Jetpack Search is active!","jetpack"),text:__("Next, we'll help you customize the Search experience for your visitors.","jetpack")},jetpack_security:{title:__("Jetpack Security is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:o.createElement("a",{href:i})})},jetpack_videopress:{title:__("Jetpack VideoPress is active!","jetpack"),text:__("Experience high-quality, ad-free video built specifically for WordPress.","jetpack")},jetpack_social_advanced:{title:__("Jetpack Social Advanced is active!","jetpack"),text:(0,s.createInterpolateElement)(__("Create amazing link previews for your posts using Social Image Generator. Learn more <a>here</a>.<br/><br/>Learn how to make the most out of Jetpack Social <link>here</link>.<br/><br/>","jetpack"),{a:o.createElement("a",{href:(0,n.Z)("jetpack-social-sig-support-page"),target:"_blank",rel:"noreferrer"}),br:o.createElement("br",null),link:o.createElement("a",{href:(0,n.Z)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},jetpack_social_basic:{title:__("Jetpack Social Basic is active!","jetpack"),text:(0,s.createInterpolateElement)(__("Enjoy unlimited shares with Jetpack Social Basic. Learn how to make the most out of Jetpack Social <a>here</a>.","jetpack"),{a:o.createElement("a",{href:(0,n.Z)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},default:{title:__("Your product is active!","jetpack"),text:__("You're all set!","jetpack")}};return o.createElement("div",{className:"jp-license-activation-screen-success-info--product-details"},o.createElement("h1",null,l[r].title," ",String.fromCodePoint(127881)),o.createElement("p",null,l[r].text))};l.propTypes={dashboardUrl:r.string,productId:r.number};const p=l},69430:(e,t,a)=>{"use strict";a.d(t,{F:()=>s});const n={jetpack_anti_spam:[2110,2111],jetpack_backup:[2100,2101,2102,2103,2112,2113,2114,2115],jetpack_complete:[2014,2015],jetpack_scan:[2106,2107,2108,2109],jetpack_search:[2104,2105],jetpack_security:[2010,2011,2012,2013,2016,2017,2019,2020],jetpack_videopress:[2116,2117],jetpack_social_advanced:[2602,2603,2604],jetpack_social_basic:[2503,2504,2037]};function s(e){return Object.keys(n).find((t=>n[t].includes(e)))||"default"}},82180:(e,t,a)=>{"use strict";a.d(t,{Z:()=>r});var n=a(86989),s=a(69307);const i=async()=>(await n({path:"wp/v2/plugins"})).filter((e=>"active"===e.status));function r(){const[e,t]=(0,s.useState)([]),[a,n]=(0,s.useState)(!0),r=(0,s.useCallback)((async()=>{try{const e=await i();t(e)}catch{t([])}finally{n(!1)}}),[]);return(0,s.useEffect)((()=>{r()}),[r]),[e,a]}},9864:(e,t,a)=>{"use strict";a.d(t,{i:()=>i});var n=a(6895),s=a(99196);function i(e,t,a,i,r){(0,s.useEffect)((()=>{i&&"object"==typeof r&&r.tracks.recordEvent("jetpack_partner_coupon_redeem_view",{coupon:e.coupon_code,partner:e.partner.prefix,preset:e.preset,connected:a.isRegistered?"yes":"no"})}),[r,i,a,e]);return(0,s.useCallback)((()=>{i&&"object"==typeof r&&r.tracks.recordEvent("jetpack_partner_coupon_redeem_click",{coupon:e.coupon_code,partner:e.partner.prefix,preset:e.preset,connected:a.isRegistered?"yes":"no"}),window.location.href=(0,n.Z)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:t,query:`coupon=${e.coupon_code}`})}),[r,i,a,e,t])}},94262:(e,t,a)=>{"use strict";a.d(t,{Z:()=>i});var n=!0,s="Invariant failed";function i(e,t){if(!e){if(n)throw new Error(s);var a="function"==typeof t?t():t,i=a?"".concat(s,": ").concat(a):s;throw new Error(i)}}}},t={};function a(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})();var n={};(()=>{"use strict";a.d(n,{getRouteName:()=>u});var e=a(69307),t=a(65736),s=a(31493),i=(a(92819),a(31215)),r=a(99196),o=a.n(r),c=a(59309),l=a(27453),p=a(44498),d=a(15641);const _x=t._x;function u(e){switch(e){case"/dashboard":default:return _x("At A Glance","Navigation item.","jetpack");case"/setup":return _x("Set up","Navigation item.","jetpack");case"/my-plan":return _x("My Plan","Navigation item.","jetpack");case"/plans":case"/plans-prompt":return _x("Plans","Navigation item.","jetpack");case"/recommendations":return _x("Recommendations","Navigation item.","jetpack");case"/settings":return _x("Settings","Navigation item.","jetpack");case"/discussion":return _x("Discussion","Navigation item.","jetpack");case"/earn":return _x("Monetize","Navigation item.","jetpack");case"/newsletter":return _x("Newsletter","Navigation item.","jetpack");case"/security":return _x("Security","Navigation item.","jetpack");case"/performance":return _x("Performance","Navigation item.","jetpack");case"/traffic":return _x("Traffic","Navigation item.","jetpack");case"/writing":return _x("Writing","Navigation item.","jetpack");case"/sharing":return _x("Sharing","Navigation item.","jetpack");case"/license/activation":return _x("License","Navigation item.","jetpack")}}(0,s.Z)(),function(){const t=document.getElementById("jp-plugin-container");if(null===t)return;const a=o().createElement("div",null,o().createElement(c.zt,{store:d.Z},o().createElement(l.UT,null,o().createElement(p.rs,null,o().createElement(p.AW,{path:"/dashboard"},o().createElement(i.Z,{routeName:u("/dashboard")})),o().createElement(p.AW,{path:"/reconnect"},o().createElement(i.Z,{routeName:u("/reconnect")})),o().createElement(p.AW,{path:"/setup"},o().createElement(i.Z,{routeName:u("/setup")})),o().createElement(p.AW,{path:"/my-plan"},o().createElement(i.Z,{routeName:u("/my-plan")})),o().createElement(p.AW,{path:"/plans"},o().createElement(i.Z,{routeName:u("/plans")})),o().createElement(p.AW,{path:"/recommendations"},o().createElement(i.Z,{routeName:u("/recommendations")})),o().createElement(p.AW,{path:"/plans-prompt"},o().createElement(i.Z,{routeName:u("/plans-prompt")})),o().createElement(p.AW,{path:"/settings"},o().createElement(i.Z,{routeName:u("/settings")})),o().createElement(p.AW,{path:"/discussion"},o().createElement(i.Z,{routeName:u("/discussion")})),o().createElement(p.AW,{path:"/earn"},o().createElement(i.Z,{routeName:u("/earn")})),o().createElement(p.AW,{path:"/newsletter"},o().createElement(i.Z,{routeName:u("/newsletter")})),o().createElement(p.AW,{path:"/security"},o().createElement(i.Z,{routeName:u("/security")})),o().createElement(p.AW,{path:"/performance"},o().createElement(i.Z,{routeName:u("/performance")})),o().createElement(p.AW,{path:"/traffic"},o().createElement(i.Z,{routeName:u("/traffic")})),o().createElement(p.AW,{path:"/writing"},o().createElement(i.Z,{routeName:u("/writing")})),o().createElement(p.AW,{path:"/sharing"},o().createElement(i.Z,{routeName:u("/sharing")})),o().createElement(p.AW,{path:"/license/activation"},o().createElement(i.Z,{routeName:u("/license/activation")})),o().createElement(p.AW,{path:"/wpbody-content",component:i.Z}),o().createElement(p.AW,{path:"/wp-toolbar",component:i.Z}),o().createElement(p.AW,{path:"/privacy",component:i.Z}),o().createElement(p.AW,{path:"/*"},o().createElement(i.Z,{routeName:u("/*")}))))));e.createRoot(t).render(a)}()})(),window.getRouteName=n.getRouteName})();