Файловый менеджер - Редактировать - /var/www/biopower/html/wp-content/plugins/jetpack/_inc/build/admin.js
Назад
/*! For license information please see admin.js.LICENSE.txt */ (()=>{var e={51113:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(86087);const n=(0,s.forwardRef)((function({icon:e,size:t=24,...a},n){return(0,s.cloneElement)(e,{width:t,height:t,...a,ref:n})}))},8701:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.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"})})},83883:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})})},64969:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(s.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},98248:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(s.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},31249:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.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"})})},10991:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},53512:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.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"})})},19783:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.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"})})},58535:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(s.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"})})},90311:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(5573),n=a(10790);const i=(0,n.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,n.jsx)(s.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"})})},81760:(e,t,a)=>{var s=a(22347);e.exports=function(e){var t=null,a=s(e);if(3===e.nodeType){var n=a.createRange();n.selectNodeContents(e),e=n}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}},39612:function(e){var t;t=function(){return function(e){var t={};function a(s){if(t[s])return t[s].exports;var n=t[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,s){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},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 s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(s,n,function(t){return e[t]}.bind(null,n));return s},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 s=window.getSelection(),n=document.createRange();n.selectNodeContents(e),s.removeAllRanges(),s.addRange(n),t=s.toString()}return t}},function(e,t){function a(){}a.prototype={on:function(e,t,a){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:a}),this},once:function(e,t,a){var s=this;function n(){s.off(e,n),t.apply(a,arguments)}return n._=t,this.on(e,n,a)},emit:function(e){for(var t=[].slice.call(arguments,1),a=((this.e||(this.e={}))[e]||[]).slice(),s=0,n=a.length;s<n;s++)a[s].fn.apply(a[s].ctx,t);return this},off:function(e,t){var a=this.e||(this.e={}),s=a[e],n=[];if(s&&t)for(var i=0,r=s.length;i<r;i++)s[i].fn!==t&&s[i].fn._!==t&&n.push(s[i]);return n.length?a[e]=n:delete a[e],this}},e.exports=a,e.exports.TinyEmitter=a},function(e,t,a){var s=a(3),n=a(4);e.exports=function(e,t,a){if(!e&&!t&&!a)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(a))throw new TypeError("Third argument must be a Function");if(s.node(e))return function(e,t,a){return e.addEventListener(t,a),{destroy:function(){e.removeEventListener(t,a)}}}(e,t,a);if(s.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(s.string(e))return function(e,t,a){return n(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 s=a(5);function n(e,t,a,s,n){var r=i.apply(this,arguments);return e.addEventListener(a,r,n),{destroy:function(){e.removeEventListener(a,r,n)}}}function i(e,t,a,n){return function(a){a.delegateTarget=s(a.target,t),a.delegateTarget&&n.call(e,a)}}e.exports=function(e,t,a,s,i){return"function"==typeof e.addEventListener?n.apply(null,arguments):"function"==typeof a?n.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return n(e,t,a,s,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 s=a(0),n=a.n(s),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 s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),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=n()(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=n()(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 s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),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 s=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 s.resolveOptions(a),s.listenClick(e),s}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()},49971:(e,t,a)=>{function s(e){var t,a;for(t=[],a=0;a<e.length;a++)t.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"[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(65246);try{return s(i.randomBytes(e))}catch(t){return s(i.pseudoRandomBytes(e))}}},68767:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var a={},s=e.length,n=s-2;if(n<0)return a;var i=t&&t.decode||l,r=0,p=0,u=0;do{if(-1===(p=e.indexOf("=",r)))break;if(-1===(u=e.indexOf(";",r)))u=s;else if(p>u){r=e.lastIndexOf(";",p-1)+1;continue}var m=o(e,r,p),h=c(e,p,m),g=e.slice(m,h);if(void 0===a[g]){var k=o(e,p+1,u),f=c(e,u,k);34===e.charCodeAt(k)&&34===e.charCodeAt(f-1)&&(k++,f--);var v=e.slice(k,f);a[g]=d(v,i)}r=u+1}while(r<n);return a},t.serialize=function(e,t,o){var c=o||{},l=c.encode||p;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var d=l(t);if(d&&!n.test(d))throw new TypeError("argument val is invalid");var u=e+"="+d;if(null!=c.maxAge){var m=c.maxAge-0;if(!isFinite(m))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(m)}if(c.domain){if(!i.test(c.domain))throw new TypeError("option domain is invalid");u+="; Domain="+c.domain}if(c.path){if(!r.test(c.path))throw new TypeError("option path is invalid");u+="; Path="+c.path}if(c.expires){var h=c.expires;if(!function(e){return"[object Date]"===a.call(e)||e instanceof Date}(h)||isNaN(h.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+h.toUTCString()}c.httpOnly&&(u+="; HttpOnly");c.secure&&(u+="; Secure");c.partitioned&&(u+="; Partitioned");if(c.priority){switch("string"==typeof c.priority?c.priority.toLowerCase():c.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(c.sameSite){switch("string"==typeof c.sameSite?c.sameSite.toLowerCase():c.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var a=Object.prototype.toString,s=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(e,t,a){do{var s=e.charCodeAt(t);if(32!==s&&9!==s)return t}while(++t<a);return a}function c(e,t,a){for(;t>a;){var s=e.charCodeAt(--t);if(32!==s&&9!==s)return t+1}return a}function l(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function p(e){return encodeURIComponent(e)}function d(e,t){try{return t(e)}catch(t){return e}}},2467:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,s=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 n=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,s){function n(a){e.removeListener(t,i),s(a)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",n),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,n,{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,s){var n,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]=s?[a,r]:[r,a]:s?r.unshift(a):r.push(a),(n=c(e))>0&&r.length>n&&!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 s={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=p.bind(s);return n.listener=a,s.wrapFn=n,n}function u(e,t,a){var s=e._events;if(void 0===s)return[];var n=s[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]: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}(n):h(n,n.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),s=0;s<t;++s)a[s]=e[s];return a}function g(e,t,a,s){if("function"==typeof e.on)s.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 n(i){s.once&&e.removeEventListener(t,n),a(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e||e<0||n(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||n(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 n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){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)s(c,this,t);else{var l=c.length,p=h(c,l);for(a=0;a<l;++a)s(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,s,n,i,r;if(o(t),void 0===(s=this._events))return this;if(void 0===(a=s[e]))return this;if(a===t||a.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,a.listener||t));else if("function"!=typeof a){for(n=-1,i=a.length-1;i>=0;i--)if(a[i]===t||a[i].listener===t){r=a[i].listener,n=i;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(a,n),1===a.length&&(s[e]=a[0]),void 0!==s.removeListener&&this.emit("removeListener",e,r||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,a,s;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 n,i=Object.keys(a);for(s=0;s<i.length;++s)"removeListener"!==(n=i[s])&&this.removeAllListeners(n);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(s=t.length-1;s>=0;s--)this.removeListener(e,t[s]);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):[]}},73781:(e,t,a)=>{"use strict";a.d(t,{K:()=>u});var s,n=a(88146);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 s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}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,s){return!t(e)||(a=s,!1)})),a},d=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];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},f=function(){if(m.tabbableGroups=m.containers.map((function(e){var t=(0,n.Kr)(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")},v=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,n.tp)(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(),v(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){f();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 s=0===a?m.tabbableGroups.length-1:a-1;t=m.tabbableGroups[s].lastTabbableNode}}else{var n=p(m.tabbableGroups,(function(t){var a=t.lastTabbableNode;return e.target===a}));if(n>=0){var i=n===m.tabbableGroups.length-1?0:n+1;t=m.tabbableGroups[i].firstTabbableNode}}else t=g("fallbackFocus");t&&(e.preventDefault(),v(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),s=u.delayInitialFocus?l((function(){v(k())})):v(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;f(),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(s),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;v((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,f(),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&&f(),this}}).updateContainerElements(e),a}},22347: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}},49823:(e,t,a)=>{"use strict";a.d(t,{AO:()=>d,Fu:()=>m,TM:()=>j,sC:()=>N,yJ:()=>u,zR:()=>_});var s=a(77790),n=a(74495),i=a(36203),r=a(11911);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,s=e.hash,n=t||"/";return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function u(e,t,a,i){var r;"string"==typeof e?(r=function(e){var t=e||"/",a="",s="",n=t.indexOf("#");-1!==n&&(s=t.substr(n),t=t.substr(0,n));var i=t.indexOf("?");return-1!==i&&(a=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===a?"":a,hash:"#"===s?"":s}}(e),r.state=t):(void 0===(r=(0,s.A)({},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,n.A)(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.A)(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,s,n){if(null!=e){var i="function"==typeof e?e(t,a):e;"string"==typeof i?"function"==typeof s?s(i,n):n(!0):n(!1!==i)}else n(!0)},appendListener:function(e){var a=!0;function s(){a&&e.apply(void 0,arguments)}return t.push(s),function(){a=!1,t=t.filter((function(e){return e!==s}))}},notifyListeners:function(){for(var e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];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 f="popstate",v="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),g||(0,r.A)(!1);var t,a=window.history,n=(-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,A=e.basename?p(o(e.basename)):"";function j(e){var t=e||{},a=t.key,s=t.state,n=window.location,i=n.pathname+n.search+n.hash;return A&&(i=l(i,A)),u(i,s,a)}function S(){return Math.random().toString(36).substr(2,C)}var N=h();function x(e){(0,s.A)(V,e),V.length=a.length,N.notifyListeners(V.location,V.action)}function R(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||O(j(e.state))}function T(){O(j(E()))}var M=!1;function O(e){if(M)M=!1,x();else{N.confirmTransitionTo(e,"POP",y,(function(t){t?x({action:"POP",location:e}):function(e){var t=V.location,a=L.indexOf(t.key);-1===a&&(a=0);var s=L.indexOf(e.key);-1===s&&(s=0);var n=a-s;n&&(M=!0,D(n))}(e)}))}}var P=j(E()),L=[P.key];function I(e){return A+d(e)}function D(e){a.go(e)}var z=0;function U(e){1===(z+=e)&&1===e?(window.addEventListener(f,R),i&&window.addEventListener(v,T)):0===z&&(window.removeEventListener(f,R),i&&window.removeEventListener(v,T))}var F=!1;var V={length:a.length,action:"POP",location:P,createHref:I,push:function(e,t){var s="PUSH",i=u(e,t,S(),V.location);N.confirmTransitionTo(i,s,y,(function(e){if(e){var t=I(i),r=i.key,o=i.state;if(n)if(a.pushState({key:r,state:o},null,t),_)window.location.href=t;else{var c=L.indexOf(V.location.key),l=L.slice(0,c+1);l.push(i.key),L=l,x({action:s,location:i})}else window.location.href=t}}))},replace:function(e,t){var s="REPLACE",i=u(e,t,S(),V.location);N.confirmTransitionTo(i,s,y,(function(e){if(e){var t=I(i),r=i.key,o=i.state;if(n)if(a.replaceState({key:r,state:o},null,t),_)window.location.replace(t);else{var c=L.indexOf(V.location.key);-1!==c&&(L[c]=i.key),x({action:s,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=N.setPrompt(e);return F||(U(1),F=!0),function(){return F&&(F=!1,U(-1)),t()}},listen:function(e){var t=N.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 A(e){window.location.replace(w(window.location.href)+"#"+e)}function j(e){void 0===e&&(e={}),g||(0,r.A)(!1);var t=window.history,a=(window.navigator.userAgent.indexOf("Firefox"),e),n=a.getUserConfirmation,i=void 0===n?k:n,c=a.hashType,m=void 0===c?"slash":c,f=e.basename?p(o(e.basename)):"",v=y[m],E=v.encodePath,_=v.decodePath;function j(){var e=_(C());return f&&(e=l(e,f)),u(e)}var S=h();function N(e){(0,s.A)(F,e),F.length=t.length,S.notifyListeners(F.location,F.action)}var x=!1,R=null;function T(){var e,t,a=C(),s=E(a);if(a!==s)A(s);else{var n=j(),r=F.location;if(!x&&(t=n,(e=r).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(R===d(n))return;R=null,function(e){if(x)x=!1,N();else{var t="POP";S.confirmTransitionTo(e,t,i,(function(a){a?N({action:t,location:e}):function(e){var t=F.location,a=L.lastIndexOf(d(t));-1===a&&(a=0);var s=L.lastIndexOf(d(e));-1===s&&(s=0);var n=a-s;n&&(x=!0,I(n))}(e)}))}}(n)}}var M=C(),O=E(M);M!==O&&A(O);var P=j(),L=[d(P)];function I(e){t.go(e)}var D=0;function z(e){1===(D+=e)&&1===e?window.addEventListener(b,T):0===D&&window.removeEventListener(b,T)}var U=!1;var F={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(f+d(e))},push:function(e,t){var a="PUSH",s=u(e,void 0,void 0,F.location);S.confirmTransitionTo(s,a,i,(function(e){if(e){var t=d(s),n=E(f+t);if(C()!==n){R=t,function(e){window.location.hash=e}(n);var i=L.lastIndexOf(d(F.location)),r=L.slice(0,i+1);r.push(t),L=r,N({action:a,location:s})}else N()}}))},replace:function(e,t){var a="REPLACE",s=u(e,void 0,void 0,F.location);S.confirmTransitionTo(s,a,i,(function(e){if(e){var t=d(s),n=E(f+t);C()!==n&&(R=t,A(n));var i=L.indexOf(d(F.location));-1!==i&&(L[i]=t),N({action:a,location:s})}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),t()}},listen:function(e){var t=S.appendListener(e);return z(1),function(){z(-1),t()}}};return F}function S(e,t,a){return Math.min(Math.max(e,t),a)}function N(e){void 0===e&&(e={});var t=e,a=t.getUserConfirmation,n=t.initialEntries,i=void 0===n?["/"]:n,r=t.initialIndex,o=void 0===r?0:r,c=t.keyLength,l=void 0===c?6:c,p=h();function m(e){(0,s.A)(_,e),_.length=_.entries.length,p.notifyListeners(_.location,_.action)}function g(){return Math.random().toString(36).substr(2,l)}var k=S(o,0,i.length-1),f=i.map((function(e){return u(e,void 0,"string"==typeof e?g():e.key||g())})),v=d;function E(e){var t=S(_.index+e,0,_.entries.length-1),s=_.entries[t];p.confirmTransitionTo(s,"POP",a,(function(e){e?m({action:"POP",location:s,index:t}):m()}))}var _={length:f.length,action:"POP",location:f[k],index:k,entries:f,createHref:v,push:function(e,t){var s="PUSH",n=u(e,t,g(),_.location);p.confirmTransitionTo(n,s,a,(function(e){if(e){var t=_.index+1,a=_.entries.slice(0);a.length>t?a.splice(t,a.length-t,n):a.push(n),m({action:s,location:n,index:t,entries:a})}}))},replace:function(e,t){var s="REPLACE",n=u(e,t,g(),_.location);p.confirmTransitionTo(n,s,a,(function(e){e&&(_.entries[_.index]=n,m({action:s,location:n}))}))},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 _}},10254:(e,t,a)=>{"use strict";var s=a(95415),n={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 s.isMemo(e)?r:o[e.$$typeof]||n}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.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,s){if("string"!=typeof a){if(h){var n=m(a);n&&n!==h&&e(t,n,s)}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 f=r[k];if(!(i[f]||s&&s[f]||g&&g[f]||o&&o[f])){var v=u(a,f);try{l(t,f,v)}catch(e){}}}}return t}},78262:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},87748:()=>{},53290:()=>{},15583:()=>{},81500:()=>{},88904:()=>{},19569:()=>{},10055:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={error:"TcCZnGE6mad8Dvz9pCZi",button:"_mn6o2Dtm5pfFWc8_A1K"}},65486:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={container:"demNsMJjhi7BLY7xhjU5","icon-wrapper":"QiUjdjJSkqh6nH7YMG5A","is-error":"Q080AHcq29J2fc68Hhk5",icon:"hYWbIwhppukXmGnsiT9H","is-warning":"JjHuxWly0HI9C60gorbq","is-info":"Cm8ZFHi3mngl4cj9Gatx","is-success":"ytGBsU015p3LGwOPwFDx"}},63946:()=>{},77560:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},57558:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={chip:"ewN_uq5NKbSEO_kL_aRc","is-new":"QuvPmreerZFfqsPl6Wo4"}},56507:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={"global-notices":"jT9Kt2ZTvxPKDQ1pa7sN"}},4459:()=>{},84813:()=>{},47842:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={"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"}},9128:()=>{},59053:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)"}},71157:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},82498:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},16024:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},9921:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},33941:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={wrapper:"McCYJ2ErFiztX2NeMRou",small:"BzRvZWnrBa4JjQY0uluD",progress:"DKqdDLOgkrxCkDzKGT87"}},4804:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={radio:"XtKE4JhFVI_Vc8GiILir"}},88019:()=>{},85335:()=>{},39322:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={status:"bZ4b33s2MdcOjaDKBbeV",status__indicator:"UzkzDaqt2mXprJh2OXRz",status__label:"QuS0vdcr87FsiBvSSrvA","is-active":"bGx0wbQAwuY7k8P3PHVQ","is-inactive":"wR8Cz8uHgObTQavolv5y","is-error":"IzbBYGwBKhSYFUQlIMww","is-action":"Kdvp_HJf89IBrZuCaLm8","is-initializing":"hVf5vsbBWm8OFye7cy7a"}},66392:()=>{},22073:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},25196:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={global:"_fUXxnSp5pagKBp9gSN7"}},6647:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={toggle:"gecp_0Z0owRZtj8JAYir","is-small":"qgKXEdMmHsIK84VDnLO2","no-label":"Vy6dbB4PsGKm8BDqzJ9J","is-toggling":"ykWv7fKpkVW_vpAoddu4"}},22208:()=>{},64250:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={"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"}},85605:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},49514:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={"connection-container":"KQcQQLxH5fI08DfOlKwL"}},71016:()=>{"use strict"},60548:()=>{"use strict"},18973:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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"}},51461:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={modal:"Mu_jAq5ZcYDM1kmBbxcs","connect-form":"foAsC5GlXOWEzACnxT_P",small:"_7PKKGx44v2H9dJbUltFw","manual-share":"IGOk1gMf5SKkfOKyF7Xc"}},27681:()=>{"use strict"},97671:()=>{"use strict"},35270:()=>{"use strict"},93794:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={notice:"ptn8jt555LOvMXWaoLxs","notice--default":"IVzciZv5S5E8XgR5EsLp","notice--highlight":"OpbDsm3F65Z4K5Bz43cz","notice--warning":"dlrSwB0tyuf1TYcypDec","notice--error":"hkpqil8E11PObwu7TVU2",content:"AeqtA3GRe7sFjKaC9SqL",dismiss:"IArBTmNL2K4du5WPBUhg",actions:"T7E2eJJN4qjwPpv3mcjV"}},87170:()=>{"use strict"},5780:()=>{"use strict"},55387:()=>{"use strict"},61420:()=>{"use strict"},76445:()=>{"use strict"},42475:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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","active-connection":"MyXskAb4aXwO7zitR97z","broken-connection-alert":"hMntEpO6BV5B11lyAitv","service-connection-list":"Y_4JpLfOnXVZKvEs179H","example-wrapper":"jdahJvXCrCw0hA5NP3D3",small:"LLeYGX7Owy6gmpNW88VV","service-connection":"EdjyE9tVLH6lWMoB9z3M","connection-details":"EQQHwkVXRn0caD6J7LqV","profile-pic":"vvlyiVm67wUWF9NhpMA4",disconnect:"zqX6xk8KCGK1_qbYKqY5","connect-form-wrapper":"U_Z9JvOsEQ6BtkH9P1IQ","connect-form":"fNeO_MZFp7cPkgtCdkAF","connect-button":"zK8sijAMFNs2m6WRAoi4","fields-wrapper":"UVvtbZph1hXruamo6ZXw","fields-item":"rFJU1Nr26kL8C6HZax0G","mark-shared-wrap":"zLobzkXnF6jHxNvkfz5_"}},99811:()=>{"use strict"},14150:()=>{"use strict"},53744:()=>{"use strict"},88375:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={footer:"WJ5nPw0EHj7eoNZB06TW"}},52002:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={templates:"m9360_cMWKFHTNk9xpNz",template:"j4EvSJfKIJLGEIAETiEY","template--active":"dQb3Zpl0puk4V6ezZslo"}},47944:()=>{"use strict"},95051:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={"publicize-notice":"__nV49on4_ijaV8Brnsw","components-notice":"zZ3Pu7E87XyYIdPR2WTt","components-button":"fLC8AaLf3xcKaoJ4Opax"}},76794:()=>{"use strict"},40877:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={"relative-col":"EUbhyoMhxLWDWad8oB4x","close-link":"JMN8T8oXOn_1IPEIdVFA","account-description":"UNcC1tzv3Ac1W70lnF5h","account-images":"lRoFwOQkX43bRDUcEHDg",wordpress:"A1rQc5jLMOXXd970FJpb",google:"eZpAOdXY2sg81NpZXyIT",apple:"_OSiCTrO9lGPriEoUQJQ",github:"xR_PhPqef6MvDtEHozUV","all-features":"mEHVJ_kWwCd0ahLsC0rs"}},44997:e=>{var t=1e3,a=60*t,s=60*a,n=24*s,i=7*n,r=365.25*n;function o(e,t,a,s){var n=t>=1.5*a;return Math.round(e/a)+" "+s+(n?"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*n;case"hours":case"hour":case"hrs":case"hr":case"h":return c*s;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>=n)return o(e,i,n,"day");if(i>=s)return o(e,i,s,"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>=n)return Math.round(e/n)+"d";if(i>=s)return Math.round(e/s)+"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))}},3610:(e,t,a)=>{var s=a(78262);e.exports=h,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=m;var n=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var a,s=[],i=0,o=0,c="",l=t&&t.delimiter||"/";null!=(a=n.exec(e));){var d=a[0],u=a[1],m=a.index;if(c+=e.slice(o,m),o=m+d.length,u)c+=u[1];else{var h=e[o],g=a[2],k=a[3],f=a[4],v=a[5],E=a[6],_=a[7];c&&(s.push(c),c="");var b=null!=g&&null!=h&&h!==g,y="+"===E||"*"===E,w="?"===E||"*"===E,C=g||l,A=f||v,j=g||("string"==typeof s[s.length-1]?s[s.length-1]:"");s.push({name:k||i++,prefix:g||"",delimiter:C,optional:w,repeat:y,partial:b,asterisk:!!_,pattern:A?p(A):_?".*":r(C,j)})}}return o<e.length&&(c+=e.substr(o)),c&&s.push(c),s}function r(e,t){return!t||t.indexOf(e)>-1?"[^"+l(e)+"]+?":l(t)+"|(?:(?!"+l(t)+")[^"+l(e)+"])+?"}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var a=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(a[n]=new RegExp("^(?:"+e[n].pattern+")$",u(t)));return function(t,n){for(var i="",r=t||{},c=(n||{}).pretty?o:encodeURIComponent,l=0;l<e.length;l++){var p=e[l];if("string"!=typeof p){var d,u=r[p.name];if(null==u){if(p.optional){p.partial&&(i+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(s(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 l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function p(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function u(e){return e&&e.sensitive?"":"i"}function m(e,t,a){s(t)||(a=t||a,t=[]);for(var n=(a=a||{}).strict,i=!1!==a.end,r="",o=0;o<e.length;o++){var c=e[o];if("string"==typeof c)r+=l(c);else{var p=l(c.prefix),m="(?:"+c.pattern+")";t.push(c),c.repeat&&(m+="(?:"+p+m+")*"),r+=m=c.optional?c.partial?p+"("+m+")?":"(?:"+p+"("+m+"))?":p+"("+m+")"}}var h=l(a.delimiter||"/"),g=r.slice(-h.length)===h;return n||(r=(g?r.slice(0,-h.length):r)+"(?:"+h+"(?=$))?"),r+=i?"$":n&&g?"":"(?="+h+"|$)",d(new RegExp("^"+r,u(a)),t)}function h(e,t,a){return s(t)||(a=t||a,t=[]),a=a||{},e instanceof RegExp?function(e,t){var a=e.source.match(/\((?!\?)/g);if(a)for(var s=0;s<a.length;s++)t.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):s(e)?function(e,t,a){for(var s=[],n=0;n<e.length;n++)s.push(h(e[n],t,a).source);return d(new RegExp("(?:"+s.join("|")+")",u(a)),t)}(e,t,a):function(e,t,a){return m(i(e,a),t,a)}(e,t,a)}},15762:(e,t,a)=>{"use strict";var s=a(53761);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,i,r){if(r!==s){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:n};return a.PropTypes=a,a}},28120:(e,t,a)=>{e.exports=a(15762)()},53761:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},93381:(e,t,a)=>{"use strict";var s=a(76142);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,i,r){if(r!==s){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:n};return a.PropTypes=a,a}},5739:(e,t,a)=>{e.exports=a(93381)()},76142:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},75395:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,n=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,f=a?Symbol.for("react.block"):60121,v=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 s: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 n:return t}}}function y(e){return b(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=s,t.ForwardRef=u,t.Fragment=i,t.Lazy=k,t.Memo=g,t.Portal=n,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===s},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)===n},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===v||e.$$typeof===E||e.$$typeof===_||e.$$typeof===f)},t.typeOf=b},95415:(e,t,a)=>{"use strict";e.exports=a(75395)},97776:(e,t)=>{"use strict";var a=60103,s=60106,n=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,f=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var E=Symbol.for;a=E("react.element"),s=E("react.portal"),n=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"),f=E("react.debug_trace_mode"),v=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 n: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 s:return t}}}t.isContextConsumer=function(e){return _(e)===c}},1444:(e,t,a)=>{"use strict";e.exports=a(97776)},92302:(e,t,a)=>{"use strict";a.d(t,{t:()=>n});var s=a(51609),n=a.n(s)().createContext(null)},31644:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(51609),n=a.n(s),i=a(92302),r=a(11833),o=a(10047);const c=function(e){var t=e.store,a=e.context,c=e.children,l=(0,s.useMemo)((function(){var e=(0,r.K)(t);return{store:t,subscription:e}}),[t]),p=(0,s.useMemo)((function(){return t.getState()}),[t]);(0,o.E)((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.t;return n().createElement(d.Provider,{value:l},c)}},20349:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(77790),n=a(94001),i=a(10254),r=a.n(i),o=a(51609),c=a.n(o),l=a(1444),p=a(11833),d=a(10047),u=a(92302),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],h=["reactReduxForwardedRef"],g=[],k=[null,null];function f(e,t){var a=e[1];return[t.payload,a+1]}function v(e,t,a){(0,d.E)((function(){return e.apply(void 0,t)}),a)}function E(e,t,a,s,n,i,r){e.current=s,t.current=n,a.current=!1,i.current&&(i.current=null,r())}function _(e,t,a,s,n,i,r,o,c,l){if(e){var p=!1,d=null,u=function(){if(!p){var e,a,u=t.getState();try{e=s(u,n.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,A=void 0===C?void 0:C,j=a.shouldHandleStateChanges,S=void 0===j||j,N=a.storeKey,x=void 0===N?"store":N,R=(a.withRef,a.forwardRef),T=void 0!==R&&R,M=a.context,O=void 0===M?u.t:M,P=(0,n.A)(a,m),L=O;return function(t){var a=t.displayName||t.name||"Component",i=d(a),u=(0,s.A)({},P,{getDisplayName:d,methodName:w,renderCountProp:A,shouldHandleStateChanges:S,storeKey:x,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,n.A)(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:L}),[r,L]),C=(0,o.useContext)(w),A=Boolean(a.store)&&Boolean(a.store.getState)&&Boolean(a.store.dispatch);Boolean(C)&&Boolean(C.store);var j=A?a.store:C.store,N=(0,o.useMemo)((function(){return function(t){return e(t.dispatch,u)}(j)}),[j]),x=(0,o.useMemo)((function(){if(!S)return k;var e=(0,p.K)(j,A?null:C.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[j,A,C]),R=x[0],T=x[1],M=(0,o.useMemo)((function(){return A?C:(0,s.A)({},C,{subscription:R})}),[A,C,R]),O=(0,o.useReducer)(f,g,b),P=O[0][0],I=O[1];if(P&&P.error)throw P.error;var D=(0,o.useRef)(),z=(0,o.useRef)(m),U=(0,o.useRef)(),F=(0,o.useRef)(!1),V=y((function(){return U.current&&m===z.current?U.current:N(j.getState(),m)}),[j,P,m]);v(E,[z,D,F,m,V,U,T]),v(_,[S,j,R,N,z,D,F,U,T,I],[j,R,N]);var B=(0,o.useMemo)((function(){return c().createElement(t,(0,s.A)({},V,{ref:d}))}),[d,t,V]);return(0,o.useMemo)((function(){return S?c().createElement(w.Provider,{value:M},B):B}),[w,B,M])}var j=m?c().memo(C):C;if(j.WrappedComponent=t,j.displayName=C.displayName=i,T){var N=c().forwardRef((function(e,t){return c().createElement(j,(0,s.A)({},e,{reactReduxForwardedRef:t}))}));return N.displayName=i,N.WrappedComponent=t,r()(N,t)}return r()(j,t)}}},38087:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(77790),n=a(94001),i=a(20349),r=a(74480),o=a(13132),c=a(87721),l=a(55263),p=a(88792),d=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function u(e,t,a){for(var s=t.length-1;s>=0;s--){var n=t[s](e);if(n)return n}return function(t,s){throw new Error("Invalid value of type "+typeof e+" for "+a+" argument when connecting component "+s.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.A:a,g=t.mapStateToPropsFactories,k=void 0===g?c.Ay:g,f=t.mapDispatchToPropsFactories,v=void 0===f?o.Ay:f,E=t.mergePropsFactories,_=void 0===E?l.Ay:E,b=t.selectorFactory,y=void 0===b?p.Ay: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,f=o.areOwnPropsEqual,E=void 0===f?r.A:f,b=o.areStatePropsEqual,w=void 0===b?r.A:b,C=o.areMergedPropsEqual,A=void 0===C?r.A:C,j=(0,n.A)(o,d),S=u(e,k,"mapStateToProps"),N=u(t,v,"mapDispatchToProps"),x=u(a,_,"mergeProps");return h(y,(0,s.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:N,initMergeProps:x,pure:l,areStatesEqual:g,areOwnPropsEqual:E,areStatePropsEqual:w,areMergedPropsEqual:A},j))}}const g=h()},13132:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>i});var s=a(1400),n=a(15030);const i=[function(e){return"function"==typeof e?(0,n.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,n.o6)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,n.o6)((function(t){return(0,s.A)(e,t)})):void 0}]},87721:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>n});var s=a(15030);const n=[function(e){return"function"==typeof e?(0,s.Qb)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,s.o6)((function(){return{}}))}]},55263:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>i});var s=a(77790);function n(e,t,a){return(0,s.A)({},a,e,t)}const i=[function(e){return"function"==typeof e?function(e){return function(t,a){a.displayName;var s,n=a.pure,i=a.areMergedPropsEqual,r=!1;return function(t,a,o){var c=e(t,a,o);return r?n&&i(c,s)||(s=c):(r=!0,s=c),s}}}(e):void 0},function(e){return e?void 0:function(){return n}}]},88792:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>o});var s=a(94001),n=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function i(e,t,a,s){return function(n,i){return a(e(n,i),t(s,i),i)}}function r(e,t,a,s,n){var i,r,o,c,l,p=n.areStatesEqual,d=n.areOwnPropsEqual,u=n.areStatePropsEqual,m=!1;function h(n,m){var h,g,k=!d(m,r),f=!p(n,i);return i=n,r=m,k&&f?(o=e(i,r),t.dependsOnOwnProps&&(c=t(s,r)),l=a(o,c,r)):k?(e.dependsOnOwnProps&&(o=e(i,r)),t.dependsOnOwnProps&&(c=t(s,r)),l=a(o,c,r)):f?(h=e(i,r),g=!u(h,o),o=h,g&&(l=a(o,c,r)),l):l}return function(n,p){return m?h(n,p):(o=e(i=n,r=p),c=t(s,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,s.A)(t,n),p=a(e,l),d=o(e,l),u=c(e,l);return(l.pure?r:i)(p,d,u,e,l)}},15030:(e,t,a)=>{"use strict";function s(e){return function(t,a){var s=e(t,a);function n(){return s}return n.dependsOnOwnProps=!1,n}}function n(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 s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,a){s.mapToProps=e,s.dependsOnOwnProps=n(e);var i=s(t,a);return"function"==typeof i&&(s.mapToProps=i,s.dependsOnOwnProps=n(i),i=s(t,a)),i},s}}a.d(t,{Qb:()=>i,o6:()=>s})},9767:(e,t,a)=>{"use strict";a.d(t,{Kq:()=>s.A,Ng:()=>i.A,ty:()=>n.t});var s=a(31644),n=(a(20349),a(92302)),i=a(38087);a(61414),a(201),a(72887)},61414:(e,t,a)=>{"use strict";a(92302),a(72887)},97949:(e,t,a)=>{"use strict";a(51609),a(92302)},201:(e,t,a)=>{"use strict";a(51609),a(97949),a(11833),a(10047),a(92302)},72887:(e,t,a)=>{"use strict";a(51609),a(92302),a(97949)},84952:(e,t,a)=>{"use strict";a.d(t,{Kq:()=>s.Kq,Ng:()=>s.Ng,ty:()=>s.ty});var s=a(9767),n=a(73691);(0,a(28446).d)(n.r)},11833:(e,t,a)=>{"use strict";a.d(t,{K:()=>i});var s=a(28446);var n={notify:function(){},get:function(){return[]}};function i(e,t){var a,i=n;function r(){c.onStateChange&&c.onStateChange()}function o(){var n,o,c;a||(a=t?t.addNestedSub(r):e.subscribe(r),n=(0,s.f)(),o=null,c=null,i={clear:function(){o=null,c=null},notify:function(){n((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=n)},getListeners:function(){return i}};return c}},28446:(e,t,a)=>{"use strict";a.d(t,{d:()=>n,f:()=>i});var s=function(e){e()},n=function(e){return s=e},i=function(){return s}},1400:(e,t,a)=>{"use strict";function s(e,t){var a={},s=function(s){var n=e[s];"function"==typeof n&&(a[s]=function(){return t(n.apply(void 0,arguments))})};for(var n in e)s(n);return a}a.d(t,{A:()=>s})},73691:(e,t,a)=>{"use strict";a.d(t,{r:()=>s.unstable_batchedUpdates});var s=a(75795)},74480:(e,t,a)=>{"use strict";function s(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function n(e,t){if(s(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(var i=0;i<a.length;i++)if(!Object.prototype.hasOwnProperty.call(t,a[i])||!s(e[a[i]],t[a[i]]))return!1;return!0}a.d(t,{A:()=>n})},10047:(e,t,a)=>{"use strict";a.d(t,{E:()=>n});var s=a(51609),n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect},96749:(e,t,a)=>{"use strict";a.d(t,{I9:()=>d});var s=a(60247),n=a(31105),i=a(51609),r=a.n(i),o=a(49823),c=a(77790),l=a(94001),p=a(11911);r().Component;var d=function(e){function t(){for(var t,a=arguments.length,s=new Array(a),n=0;n<a;n++)s[n]=arguments[n];return(t=e.call.apply(e,[this].concat(s))||this).history=(0,o.TM)(t.props),t}return(0,n.A)(t,e),t.prototype.render=function(){return r().createElement(s.Ix,{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.yJ)(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,s=e.navigate,n=e.onClick,i=(0,l.A)(e,["innerRef","navigate","onClick"]),o=i.target,p=(0,c.A)({},i,{onClick:function(e){try{n&&n(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(),s())}});return p.ref=h!==g&&t||a,r().createElement("a",p)}));var f=g((function(e,t){var a=e.component,n=void 0===a?k:a,i=e.replace,d=e.to,f=e.innerRef,v=(0,l.A)(e,["component","replace","to","innerRef"]);return r().createElement(s.XZ.Consumer,null,(function(e){e||(0,p.A)(!1);var a=e.history,s=m(u(d,e.location),e.location),l=s?a.createHref(s):"",k=(0,c.A)({},v,{href:l,navigate:function(){var t=u(d,e.location),s=(0,o.AO)(e.location)===(0,o.AO)(m(t));(i||s?a.replace:a.push)(t)}});return h!==g?k.ref=t||f:k.innerRef=f,r().createElement(n,k)}))})),v=function(e){return e},E=r().forwardRef;void 0===E&&(E=v);E((function(e,t){var a=e["aria-current"],n=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,A=e.innerRef,j=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r().createElement(s.XZ.Consumer,null,(function(e){e||(0,p.A)(!1);var a=_||e.location,i=m(u(C,a),a),l=i.pathname,S=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),N=S?(0,s.B6)(a.pathname,{path:S,exact:g,sensitive:b,strict:y}):null,x=!!(k?k(N,a):N),R="function"==typeof h?h(x):h,T="function"==typeof w?w(x):w;x&&(R=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(" ")}(R,o),T=(0,c.A)({},T,d));var M=(0,c.A)({"aria-current":x&&n||null,className:R,style:T,to:i},j);return v!==E?M.ref=t||A:M.innerRef=A,r().createElement(f,M)}))}))},60247:(e,t,a)=>{"use strict";a.d(t,{B6:()=>O,Ix:()=>y,XG:()=>C,XZ:()=>b,dO:()=>F,qh:()=>P,rd:()=>x,y:()=>V});var s=a(31105),n=a(51609),i=a.n(n),r=a(5739),o=a.n(r),c=a(49823),l=a(11911),p=a(77790),d=a(3610),u=a.n(d),m=(a(95415),a(94001)),h=a(10254),g=a.n(h),k=1073741823,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window||"undefined"!=typeof window?window:{};var v=i().createContext||function(e,t){var a,n,r="__create-react-context-"+function(){var e="__global_unique_id__";return f[e]=(f[e]||0)+1}()+"__",c=function(e){function a(){for(var t,a,s,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(a=t.props.value,s=[],{on:function(e){s.push(e)},off:function(e){s=s.filter((function(t){return t!==e}))},get:function(){return a},set:function(e,t){a=e,s.forEach((function(e){return e(a,t)}))}}),t}(0,s.A)(a,e);var n=a.prototype;return n.getChildContext=function(){var e;return(e={})[r]=this.emitter,e},n.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var a,s=this.props.value,n=e.value;((i=s)===(r=n)?0!==i||1/i==1/r:i!=i&&r!=r)?a=0:(a="function"==typeof t?t(s,n):k,0!==(a|=0)&&this.emitter.set(e.value,a))}var i,r},n.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,s=new Array(a),n=0;n<a;n++)s[n]=arguments[n];return(e=t.call.apply(t,[this].concat(s))||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,s.A)(a,t);var n=a.prototype;return n.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?k:t},n.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?k:e},n.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},n.getValue=function(){return this.context[r]?this.context[r].get():e},n.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},a}(i().Component);return l.contextTypes=((n={})[r]=o().object,n),{Provider:c,Consumer:l}},E=function(e){var t=v();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,s.A)(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,s.A)(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,s=void 0===a||a;return i().createElement(b.Consumer,null,(function(e){if(e||(0,l.A)(!1),!s||e.staticContext)return null;var a=e.history.block;return i().createElement(w,{onMount:function(e){e.release=a(t)},onUpdate:function(e,s){s.message!==t&&(e.release(),e.release=a(t))},onUnmount:function(e){e.release()},message:t})}))}var A={},j=1e4,S=0;function N(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(A[e])return A[e];var t=u().compile(e);return S<j&&(A[e]=t,S++),t}(e)(t,{pretty:!0})}function x(e){var t=e.computedMatch,a=e.to,s=e.push,n=void 0!==s&&s;return i().createElement(b.Consumer,null,(function(e){e||(0,l.A)(!1);var s=e.history,r=e.staticContext,o=n?s.push:s.replace,d=(0,c.yJ)(t?"string"==typeof a?N(a,t.params):(0,p.A)({},a,{pathname:N(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.yJ)(t.to);(0,c.Fu)(a,(0,p.A)({},d,{key:a.key}))||o(d)},to:a})}))}var R={},T=1e4,M=0;function O(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var a=t,s=a.path,n=a.exact,i=void 0!==n&&n,r=a.strict,o=void 0!==r&&r,c=a.sensitive,l=void 0!==c&&c;return[].concat(s).reduce((function(t,a){if(!a&&""!==a)return null;if(t)return t;var s=function(e,t){var a=""+t.end+t.strict+t.sensitive,s=R[a]||(R[a]={});if(s[e])return s[e];var n=[],i={regexp:u()(e,n,t),keys:n};return M<T&&(s[e]=i,M++),i}(a,{end:i,strict:o,sensitive:l}),n=s.regexp,r=s.keys,c=n.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,s.A)(t,e),t.prototype.render=function(){var e=this;return i().createElement(b.Consumer,null,(function(t){t||(0,l.A)(!1);var a=e.props.location||t.location,s=e.props.computedMatch?e.props.computedMatch:e.props.path?O(a.pathname,e.props):t.match,n=(0,p.A)({},t,{location:a,match:s}),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:n},n.match?o?"function"==typeof o?o(n):o:c?i().createElement(c,n):d?d(n):null:"function"==typeof o?o(n):null)}))},t}(i().Component);function L(e){return"/"===e.charAt(0)?e:"/"+e}function I(e,t){if(!e)return t;var a=L(e);return 0!==t.pathname.indexOf(a)?t:(0,p.A)({},t,{pathname:t.pathname.substr(a.length)})}function D(e){return"string"==typeof e?e:(0,c.AO)(e)}function z(e){return function(){(0,l.A)(!1)}}function U(){}i().Component;var F=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.A)(t,e),t.prototype.render=function(){var e=this;return i().createElement(b.Consumer,null,(function(t){t||(0,l.A)(!1);var a,s,n=e.props.location||t.location;return i().Children.forEach(e.props.children,(function(e){if(null==s&&i().isValidElement(e)){a=e;var r=e.props.path||e.props.from;s=r?O(n.pathname,(0,p.A)({},e.props,{path:r})):t.match}})),s?i().cloneElement(a,{location:n,computedMatch:s}):null}))},t}(i().Component);function V(e){var t="withRouter("+(e.displayName||e.name)+")",a=function(t){var a=t.wrappedComponentRef,s=(0,m.A)(t,["wrappedComponentRef"]);return i().createElement(b.Consumer,null,(function(t){return t||(0,l.A)(!1),i().createElement(e,(0,p.A)({},s,t,{ref:a}))}))};return a.displayName=t,a.WrappedComponent=e,g()(a,e)}i().useContext},94461:(e,t,a)=>{"use strict";function s(e){return function(t){var a=t.dispatch,s=t.getState;return function(t){return function(n){return"function"==typeof n?n(a,s,e):t(n)}}}}a.d(t,{A:()=>i});var n=s();n.withExtraArgument=s;const i=n},26556:(e,t,a)=>{"use strict";a.d(t,{HY:()=>l,Tw:()=>g,Zz:()=>h,y$:()=>o,zH:()=>d});var s=a(99710),n=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+n(),REPLACE:"@@redux/REPLACE"+n(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+n()}};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 n;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}),(n={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})}})[s.A]=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)}}})[s.A]=function(){return this},e},n}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={},s=0;s<t.length;s++){var n=t[s];0,"function"==typeof e[n]&&(a[n]=e[n])}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 s=!1,n={},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)}n[l]=u,s=s||u!==d}return(s=s||o.length!==Object.keys(e).length)?n: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 s in e){var n=e[s];"function"==typeof n&&(a[s]=p(n,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),s=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},n={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},i=t.map((function(e){return e(n)}));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:s=h.apply(void 0,i)(a.dispatch)})}}}},74495:(e,t,a)=>{"use strict";function s(e){return"/"===e.charAt(0)}function n(e,t){for(var a=t,s=a+1,n=e.length;s<n;a+=1,s+=1)e[a]=e[s];e.pop()}a.d(t,{A:()=>i});const i=function(e,t){void 0===t&&(t="");var a,i=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&s(e),c=t&&s(t),l=o||c;if(e&&s(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?n(r,u):".."===m?(n(r,u),d++):d&&(n(r,u),d--)}if(!l)for(;d--;d)r.unshift("..");!l||""===r[0]||r[0]&&s(r[0])||r.unshift("");var h=r.join("/");return a&&"/"!==h.substr(-1)&&(h+="/"),h}},99710:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s,n=a(46853);e=a.hmd(e),s="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;const i=(0,n.A)(s)},46853:(e,t,a)=>{"use strict";function s(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,{A:()=>s})},88146:(e,t,a)=>{"use strict";a.d(t,{Kr:()=>E,tp:()=>b});var s=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],n=s.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 s=Array.prototype.slice.apply(e.querySelectorAll(n));return t&&r.call(e,n)&&s.unshift(e),s=s.filter(a)},l=function e(t,a,s){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,s);s.flatten?i.push.apply(i,p):i.push({scope:c,candidates:p})}else{r.call(c,n)&&s.filter(c)&&(a||!t.includes(c))&&i.push(c);var d=c.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(c),u=!s.shadowRootFilter||s.shadowRootFilter(c);if(d&&u){var m=e(!0===d?c.children:d.children,!0,s);s.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),s=function(e){return a.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=s(window.CSS.escape(e.name));else try{t=s(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 n=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!n||n===e}(e)},h=function(e){var t=e.getBoundingClientRect(),a=t.width,s=t.height;return 0===a&&0===s},g=function(e,t){return!(t.disabled||function(e){return u(e)&&"hidden"===e.type}(t)||function(e,t){var a=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var n=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(n,"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 s){for(var l=e;e;){var p=e.parentElement,d=o(e);if(p&&!p.shadowRoot&&!0===s(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 s=t.children.item(a);if("LEGEND"===s.tagName)return!!r.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},k=function(e,t){return!(m(t)||p(t)<0||!g(e,t))},f=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},v=function e(t){var a=[],s=[];return t.forEach((function(t,n){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):s.push({documentOrder:n,tabIndex:o,item:t,isScope:i,content:c})})),s.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:f}):c(e,t.includeContainer,k.bind(null,t)),v(a)},_=s.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)}},90372:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(10067);const n=a.n(s)()("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]);n("Bumping stats %o",e)}else a="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),n('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]);n("Built stats %o",e)}else a="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),n('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,s,n,i,r){o.ga.recordPurchase(e,t,a,s,n,i,r)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(i&&(n("- Super Props: %o",i),t=Object.assign(t,i)),n('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):n('- 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){n("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(),n("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,s){o.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==a&&(i+=" [Option Label: "+a+"]"),void 0!==s&&(i+=" [Option Value: "+s+"]"),n(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,a,s)},recordPurchase:function(e,t,a,s,n,i,r){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:r}),window.ga("ecommerce:addItem",{id:e,name:t,sku:a,price:n,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},5932:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>d});var s=a(56439),n=a(93832);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]:"",s=a.length?a.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.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,n)=>{const i={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(i.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(i.redirect_uri=t),n&&(i.from=n),h(`${a}jetpack/v4/connection/register`,c,{body:JSON.stringify(i)}).then(u).then(m)},fetchAuthorizationUrl:e=>d((0,n.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 s={slug:e,status:"active"};return t&&(s.source=t),h(`${a}jetpack/v4/plugins`,c,{body:JSON.stringify(s)}).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}},21197:(e,t,a)=>{"use strict";a.d(t,{h:()=>r});var s=a(27723),n=a(75289),i=a(34144);const __=s.__;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,s.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,s.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.O)(this.body)?JSON.stringify(this.body,null," "):(0,n.w)(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")}}},15098:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(27723),n=a(21197),i=a(18882);const __=s.__;async function r(e,t,a,n=null,r){const o={method:e,mode:"cors",headers:{"X-WP-Nonce":r}};"post"!==e&&"delete"!==e||!n||(o.body=JSON.stringify(n),o.headers["Content-Type"]="application/json");const c=function(e,t){return t+i.K+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,s.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,s=null,i){const o=await r(e,t,a,s,i);let c,l;try{c=await o.text()}catch(e){throw new n.h(o.status,null,e)}try{l=JSON.parse(c)}catch(e){throw new n.h(o.status,c,e)}if(!o.ok)throw new n.h(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,s){return o("post",e,t,a,s)}}},18882:(e,t,a)=>{"use strict";a.d(t,{K:()=>s,L:()=>n});const s="jetpack-boost/v1",n=""},58454:(e,t,a)=>{"use strict";a.d(t,{T:()=>h,US:()=>g,sE:()=>u});var s=a(27723),n=a(15098),i=a(4753),r=a(75289),o=a(34144),c=a(28991),l=a(93470);const __=s.__,p=12e4,d=5e3;async function u(e=!1,t,a,s){const i=m(await n.A.post(t,e?"/speed-scores/refresh":"/speed-scores",{url:a},s));return i.scores?i.scores:await async function(e,t,a){return(0,c.A)({timeout:p,interval:d,timeoutError:__("Timed out while waiting for speed-score.","jetpack"),callback:async s=>{const i=m(await n.A.post(e,"/speed-scores",{url:t},a));i.scores&&s(i.scores)}})}(t,a,s)}function m(e){if(e.error){const t=__("An unknown error occurred while requesting metrics","jetpack");throw(0,l.g)(e.error,t)}if((0,o.O)(e.scores))return{status:"success",scores:{current:(0,o.O)(e.scores.current)?{mobile:(0,i.G)(e.scores.current.mobile,0),desktop:(0,i.G)(e.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:(0,o.O)(e.scores.noBoost)?{mobile:(0,i.G)(e.scores.noBoost.mobile,0),desktop:(0,i.G)(e.scores.noBoost.desktop,0)}:null,isStale:!!e.scores.isStale}};const t=(0,r.w)(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)}},4753:(e,t,a)=>{"use strict";function s(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,{G:()=>s})},75289:(e,t,a)=>{"use strict";function s(e,t=void 0){return"string"==typeof e?e:e&&e.toString instanceof Function?e.toString():t}a.d(t,{w:()=>s})},34144:(e,t,a)=>{"use strict";function s(e){return!!e&&e instanceof Object&&!(e instanceof Array)}a.d(t,{O:()=>s})},28991:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(27723);const __=s.__;async function n({interval:e,callback:t,timeout:a,timeoutError:s}){let n,i;return new Promise(((r,o)=>{n=setTimeout((()=>{o(new Error(s||__("Timed out","jetpack")))}),a||12e4),i=setInterval((async()=>{try{await Promise.resolve(t(r))}catch(e){o(e)}}),e)})).finally((()=>{clearTimeout(n),clearInterval(i)}))}},93470:(e,t,a)=>{"use strict";function s(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,{g:()=>s})},18089:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(56427),n=a(27723),i=a(13022),r=a(5739),o=a.n(r),c=a(51609),l=a.n(c),p=a(51112),d=a(10055);const __=n.__,u=e=>{const{label:t,onClick:a,isLoading:n=!1,loadingText:r,isDisabled:o,displayError:c=!1,errorMessage:u=__("An error occurred. Please try again.","jetpack"),customClass:m}=e,h=r||l().createElement(s.Spinner,null);return l().createElement(l().Fragment,null,l().createElement(p.A,{className:(0,i.A)(d.A.button,"jp-action-button--button",m),label:t,onClick:a,variant:"primary",disabled:n||o},n?h:t),c&&l().createElement("p",{className:(0,i.A)(d.A.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},42266:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(90311),n=a(19783),i=a(83883),r=a(51113),o=a(13022),c=a(51609),l=a.n(c),p=a(65486);const d=e=>{switch(e){case"error":case"warning":default:return s.A;case"info":return n.A;case"success":return i.A}},u=({level:e="warning",children:t,showIcon:a=!0,className:s})=>{const n=(0,o.A)(p.A.container,p.A[`is-${e}`],s);return l().createElement("div",{className:n},a&&l().createElement("div",{className:p.A["icon-wrapper"]},l().createElement(r.A,{icon:d(e),className:p.A.icon})),l().createElement("div",null,t))}},48907:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(96072),n=a.n(s),i=a(27723),r=a(13022),o=a(51609),c=a.n(o);const __=i.__,l=({title:e=__("An Automattic Airline","jetpack"),height:t=7,className:a,...s})=>c().createElement("svg",n()({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.A)("jp-automattic-byline-logo",a)},s),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"}))},10580:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(27723),n=a(13022),i=a(11883);a(63946);const __=s.__,r=({score:e,isLoading:t,showPrevScores:a,active:s,prevScore:r=0,scoreBarType:o,noBoostScoreTooltip:c})=>{if(!s)return null;const l=r/e*100,p=__("Desktop score","jetpack"),d=__("Mobile score","jetpack");return React.createElement("div",{className:(0,n.A)("jb-score-bar",`jb-score-bar--${o}`)},React.createElement("div",{className:"jb-score-bar__label"},"desktop"===o?React.createElement(i.A,{icon:"computer",size:24}):React.createElement(i.A,{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,n.A)("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)))))}},51112:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(96072),n=a.n(s),i=a(56427),r=a(27723),o=a(51113),c=a(53512),l=a(13022),p=a(51609),d=a.n(p),u=a(77560);const __=r.__,m=(0,p.forwardRef)(((e,t)=>{const{children:a,variant:s="primary",size:r="normal",weight:p="bold",icon:m,iconSize:h,disabled:g,isDestructive:k,isLoading:f,isExternalLink:v,className:E,text:_,fullWidth:b,...y}=e,w=(0,l.A)(u.A.button,E,{[u.A.normal]:"normal"===r,[u.A.small]:"small"===r,[u.A.icon]:Boolean(m),[u.A.loading]:f,[u.A.regular]:"regular"===p,[u.A["full-width"]]:b,[u.A["is-icon-button"]]:Boolean(m)&&!a});y.ref=t;const C="normal"===r?20:16,A=v&&d().createElement(d().Fragment,null,d().createElement(o.A,{size:C,icon:c.A,className:u.A["external-icon"]}),d().createElement(i.VisuallyHidden,{as:"span"},/* translators: accessibility text */ __("(opens in a new tab)","jetpack"))),j=v?"_blank":void 0,S=a?.[0]&&null!==a[0]&&"components-tooltip"!==a?.[0]?.props?.className;return d().createElement(i.Button,n()({target:j,variant:s,className:(0,l.A)(w,{"has-text":!!m&&S}),icon:v?void 0:m,iconSize:h,disabled:g,"aria-disabled":g,isDestructive:k,text:_},y),f&&d().createElement(i.Spinner,null),d().createElement("span",null,a),A)}));m.displayName="Button";const h=m},13346:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(13022),n=a(51609),i=a.n(n),r=a(57558);const o=({type:e="info",text:t})=>{const a=(0,s.A)(r.A.chip,r.A[`is-${e}`]);return i().createElement("span",{className:a},t)}},59244:(e,t,a)=>{"use strict";a.d(t,{D:()=>r});var s=a(56427),n=a(56507),i=a(63406);function r({maxVisibleNotices:e=3}){const{getNotices:t,removeNotice:a}=(0,i.I)(),r=t().filter((({type:e})=>"snackbar"===e)).slice(-e);return React.createElement(s.SnackbarList,{notices:r,className:n.A["global-notices"],onRemove:a})}},63406:(e,t,a)=>{"use strict";a.d(t,{I:()=>i});var s=a(47143),n=a(692);function i(){const e=(0,s.useDispatch)(n.store),t=(0,s.useSelect)((e=>e(n.store).getNotices()),[]);return{...e,createNotice:(t,a,s)=>e.createNotice(t,a,{type:"snackbar",...s}),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}}},11883:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(27723),n=a(13022),i=a(51609);a(4459);const __=s.__;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,s=this.props.width||e,i=this.props.style||{height:a,width:s},r="gridicons-"+this.props.icon,o=(0,n.A)("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:s,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},40597:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(56427),n=a(13022),i=a(51609),r=a.n(i),o=a(51112),c=a(11883);a(84813);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:f=!1,wide:v=!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]),A={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:_},j="wrapper"===k,S=(0,n.A)("icon-tooltip-wrapper",e),N={left:j?0:-(62-u/2)+"px"},x=j&&f;return r().createElement("div",{className:S,"data-testid":"icon-tooltip_wrapper"},!j&&r().createElement(o.A,{variant:"link",onMouseDown:C},r().createElement(c.A,{className:t,icon:d,size:u})),r().createElement("div",{className:(0,n.A)("icon-tooltip-helper",{"is-wide":v}),style:N},(x||b)&&r().createElement(s.Popover,A,r().createElement("div",null,h&&r().createElement("div",{className:"icon-tooltip-title"},h),r().createElement("div",{className:"icon-tooltip-content"},g)))))}},78478:(e,t,a)=>{"use strict";a.d(t,{M5:()=>u,Wy:()=>d});var s=a(96072),n=a.n(s),i=a(56427),r=a(13022),o=a(84705),c=a(47842);const l=({className:e,size:t=24,viewBox:a="0 0 24 24",opacity:s=1,color:o="#2C3338",children:l})=>{const p={className:(0,r.A)(c.A.iconWrapper,e),width:t,height:t,viewBox:a,opacity:s,fill:void 0};return o&&(p.fill=o),React.createElement(i.SVG,n()({},p,{fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"}),React.createElement(i.G,{opacity:s},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:s})=>React.createElement(l,{className:a,size:t,opacity:e,color:s},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.A["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.A.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.Ay,{className:(0,r.A)(c.A.socialIcon,c.A[e],t),icon:e,size:a||24})},38250:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var s=a(96072),n=a.n(s),i=a(47143),r=a(27723),o=a(51113),c=a(53512),l=a(13022),p=a(51609),d=a.n(p),u=a(3924),m=a(34293),h=a(61069),g=a(48907),k=(a(9128),a(67142)),f=a(60442);const __=r.__,_x=r._x,v=()=>d().createElement(k.A,{logoColor:"#000",showText:!1,height:16,"aria-hidden":"true"}),E=()=>d().createElement(d().Fragment,null,d().createElement(o.A,{icon:c.A,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:s,onAboutClick:r,onPrivacyClick:o,onTermsClick:c,...p})=>{const[k]=(0,f.A)("sm","<="),[_]=(0,f.A)("md","<="),[b]=(0,f.A)("lg",">"),{isActive:y,connectedPlugins:w}=(0,i.useSelect)((e=>{const t=e(m.a);return{connectedPlugins:t?.getConnectedPlugins(),...t.getConnectionStatus()}}),[]),C=(0,h.A)(),A=C&&y&&w?.some((({slug:e})=>"jetpack"===e));let j=[{label:_x("About","Link to learn more about Jetpack.","jetpack"),title:__("About Jetpack","jetpack"),href:A?new URL("admin.php?page=jetpack_about",C).href:(0,u.A)("jetpack-about"),target:A?"_self":"_blank",onClick:r},{label:_x("Privacy","Shorthand for Privacy Policy.","jetpack"),title:__("Automattic's Privacy Policy","jetpack"),href:A?new URL("admin.php?page=jetpack#/privacy",C).href:(0,u.A)("a8c-privacy"),target:A?"_self":"_blank",onClick:o},{label:_x("Terms","Shorthand for Terms of Service.","jetpack"),title:__("WordPress.com Terms of Service","jetpack"),href:(0,u.A)("wpcom-tos"),target:"_blank",onClick:c}];s&&(j=[...j,...s]);const S=d().createElement(d().Fragment,null,d().createElement(v,null),e);return d().createElement("footer",n()({className:(0,l.A)("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},S):S),j.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.A)("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:A?new URL("admin.php?page=jetpack_about",C).href:(0,u.A)("a8c-about"),"aria-label":__("An Automattic Airline","jetpack")},d().createElement(g.A,{"aria-hidden":"true"})))))}},67142:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(96072),n=a.n(s),i=a(27723),r=a(13022),o=a(51609),c=a.n(o);const __=i.__,l=({logoColor:e="#069e08",showText:t=!0,className:a,height:s=32,...i})=>{const o=t?"0 0 118 32":"0 0 32 32";return c().createElement("svg",n()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:(0,r.A)("jetpack-logo",a),"aria-labelledby":"jetpack-logo-title",height:s},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"})))}},28509:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(13022),n=a(51609),i=a(71157);const r=Number(i.A.smCols),o=Number(i.A.mdCols),c=Number(i.A.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),f=Math.min(c,"object"==typeof e.lg?e.lg.start:0),v=Math.min(c,"object"==typeof e.lg?e.lg.end:0),E=(0,s.A)(l,{[i.A[`col-sm-${p}`]]:!(d&&u),[i.A[`col-sm-${d}-start`]]:d>0,[i.A[`col-sm-${u}-end`]]:u>0,[i.A[`col-md-${m}`]]:!(h&&g),[i.A[`col-md-${h}-start`]]:h>0,[i.A[`col-md-${g}-end`]]:g>0,[i.A[`col-lg-${k}`]]:!(f&&v),[i.A[`col-lg-${f}-start`]]:f>0,[i.A[`col-lg-${v}-end`]]:v>0});return(0,n.createElement)(a,{className:E},t)}},75918:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(13022),n=a(51609),i=a(82498);const r=({children:e,fluid:t=!1,tagName:a="div",className:r,horizontalGap:o=1,horizontalSpacing:c=1})=>{const l=(0,n.useMemo)((()=>{const e=`calc( var(--horizontal-spacing) * ${c} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${o} )`}}),[o,c]),p=(0,s.A)(r,i.A.container,{[i.A.fluid]:t});return(0,n.createElement)(a,{className:p,style:l},e)}},60442:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(29491),n=a(59053);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,s.useMediaQuery)(n.A[o]),md:(0,s.useMediaQuery)(n.A[c]),lg:(0,s.useMediaQuery)(n.A[l])};return a.map(((e,t)=>{const a=r[t];return a?((e,t,a)=>{const s=i.indexOf(e),n=s+1,r=t.includes("=");let o=[];return t.startsWith("<")&&(o=i.slice(0,r?n:s)),t.startsWith(">")&&(o=i.slice(r?s:n)),o?.length?o.some((e=>a[e])):a[e]})(e,a,p):p[e]}))}},47656:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(90311),n=a(19783),i=a(83883),r=a(51113),o=a(10991),c=a(13022),l=a(51609),p=a.n(l),d=a(16024);const u=e=>{switch(e){case"error":case"warning":default:return s.A;case"info":return n.A;case"success":return i.A}},m=({level:e="info",title:t,children:a,actions:s,hideCloseButton:n=!1,onClose:i})=>{const l=(0,c.A)(d.A.container,d.A[`is-${e}`]);return p().createElement("div",{className:l},p().createElement("div",{className:d.A["icon-wrapper"]},p().createElement(r.A,{icon:u(e),className:d.A.icon})),p().createElement("div",{className:d.A["main-content"]},t&&p().createElement("div",{className:d.A.title},t),a,s&&s.length>0&&p().createElement("div",{className:d.A["action-bar"]},s.map(((e,t)=>p().createElement("div",{key:t,className:d.A.action},e))))),!n&&p().createElement("button",{"aria-label":"close",className:d.A["close-button"],onClick:i},p().createElement(r.A,{icon:o.A})))}},37975:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(51437);const n=(e,t={})=>{const a=(0,s.Y)();return new Intl.NumberFormat(a,t).format(e)}},489:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(27723),n=a(13022),i=a(47425),r=a(72746),o=a(9921);const __=s.__,c=({price:e,offPrice:t,currency:a="",showNotOffPrice:s=!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;s=s&&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.A.container},React.createElement("div",{className:(0,n.A)(o.A["price-container"],"product-price_container")},React.createElement(r.g,{value:t??e,currency:a,isOff:!d,hidePriceFraction:u}),s&&React.createElement(r.g,{value:e,currency:a,isOff:!1,hidePriceFraction:u}),g&&React.createElement(i.Ay,{className:(0,n.A)(o.A["promo-label"],"product-price_promo_label")},g))),React.createElement("div",{className:o.A.footer},m||React.createElement(i.Ay,{className:(0,n.A)(o.A.legend,"product-price_legend")},p),l&&React.createElement(i.Ay,{className:(0,n.A)(o.A["promo-label"],"product-price_promo_label")},l)))}},72746:(e,t,a)=>{"use strict";a.d(t,{g:()=>o});var s=a(4567),n=a(13022),i=a(47425),r=a(9921);const o=({value:e,currency:t,isOff:a,hidePriceFraction:o})=>{const c=(0,n.A)(r.A.price,"product-price_price",{[r.A["is-not-off-price"]]:!a}),{symbol:l,integer:p,fraction:d}=(0,s.vA)(e,t),u=!o||!d.endsWith("00");return React.createElement(i.Ay,{className:c,variant:"headline-medium",component:"p"},React.createElement(i.Ay,{className:r.A.symbol,component:"sup",variant:"title-medium"},l),p,u&&React.createElement(i.Ay,{component:"sup",variant:"body-small","data-testid":"PriceFraction"},React.createElement("strong",null,d)))}},72989:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(13022),n=a(33941);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,s.A)(e,n.A.wrapper,{[n.A.small]:"small"===i})},React.createElement("div",{className:(0,s.A)(t,n.A.progress),style:r}))}},14273:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(56427),n=a(13022),i=a(4804);const r=({selected:e,className:t,disabled:a,help:r,label:o,hideLabelFromVision:c,options:l,onChange:p})=>React.createElement(s.RadioControl,{selected:e,className:(0,n.A)(i.A.radio,t),disabled:a,help:r,label:o,hideLabelFromVision:c,options:l,onChange:p})},66051:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(27723),n=a(13022),i=a(51609),r=a.n(i),o=a(37975);a(88019);const __=s.__,c=({totalCount:e,items:t=[],showLegendLabelBeforeCount:a=!1,sortByCount:s,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)((()=>s?[...t].sort(((e,t)=>"ascending"===s?e.count-t.count:t.count-e.count)):t),[t,s]);return r().createElement("div",{className:(0,n.A)("record-meter-bar",c)},r().createElement("div",{className:"record-meter-bar__items","aria-hidden":"true"},h.map((({count:e,label:t,backgroundColor:a})=>{const s=(e/m*100).toPrecision(2);return r().createElement("div",{key:t,style:{backgroundColor:a,flexBasis:`${s}%`}})}))),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:s})=>{const n=(0,o.A)(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:s}}),!a&&r().createElement("span",null,r().createElement("span",{className:"record-meter-bar__legend--item-count"},n),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"},"(",n,")")))})))),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)))))))}},56461:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(5739),n=a.n(s),i=a(51609),r=a.n(i);a(85335);const o=({color:e="#FFFFFF",className:t="",size:a=20})=>{const s=t+" jp-components-spinner",n={width:a,height:a,fontSize:a,borderTopColor:e},i={borderTopColor:e,borderRightColor:e};return r().createElement("div",{className:s},r().createElement("div",{className:"jp-components-spinner__outer",style:n},r().createElement("div",{className:"jp-components-spinner__inner",style:i})))};o.propTypes={color:n().string,className:n().string,size:n().number};const c=o},1158:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(27723),n=a(13022),i=a(47425),r=a(39322);const __=s.__,o=({className:e,label:t,status:a="inactive"})=>{const s={active:__("Active","jetpack"),error:__("Error","jetpack"),action:__("Action needed","jetpack"),inactive:__("Inactive","jetpack"),initializing:__("Setting up","jetpack")};return React.createElement(i.Ay,{variant:"body-extra-small",className:(0,n.A)(r.A.status,{[r.A[`is-${a}`]]:a},e)},React.createElement("span",{className:r.A.status__indicator}),React.createElement("span",{className:r.A.status__label},t||""===t?t:s[a]))}},85879:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(96072),n=a.n(s),i=a(86087),r=a(27723),o=a(13022),c=a(3924),l=a(47425);a(66392);const __=r.__,p=({multipleButtonsLabels:e})=>Array.isArray(e)&&e.length>1?(0,i.createInterpolateElement)((0,r.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(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,i.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(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({agreeButtonLabel:e})=>(0,i.createInterpolateElement)((0,r.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(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({slug:e,children:t})=>React.createElement("a",{className:"terms-of-service__link",href:(0,c.A)(e),rel:"noopener noreferrer",target:"_blank"},t),m=({className:e,multipleButtons:t,agreeButtonLabel:a,...s})=>React.createElement(l.Ay,n()({className:(0,o.A)(e,"terms-of-service")},s),t?React.createElement(p,{multipleButtonsLabels:t}):React.createElement(d,{agreeButtonLabel:a}))},10110:(e,t,a)=>{"use strict";a.d(t,{Q:()=>s,Z:()=>n});const s={"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"},n=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},47425:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>d});var s=a(96072),n=a.n(s),i=a(13022),r=a(51609),o=a.n(r),c=a(10110),l=a(22073);const p=(0,r.forwardRef)((({variant:e="body",children:t,component:a,className:s,...p},d)=>{const u=a||c.Q[e]||"span",m=(0,r.useMemo)((()=>c.Z.reduce(((e,t)=>(void 0!==p[t]&&(e+=l.A[`${t}-${p[t]}`]+" ",delete p[t]),e)),"")),[p]);return p.ref=d,o().createElement(u,n()({className:(0,i.A)(l.A.reset,l.A[e],s,m)},p),t)}));p.displayName="Text";const d=p},50723:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>u});var s=a(51609),n=a.n(s),i=a(25196);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 s={...r,...o,...c,...l};for(const t in s)e.style.setProperty(t,s[t]);a&&e.classList.add(i.A.global),t&&(p[t]={provided:!0,root:e})},u=({children:e=null,targetDom:t,id:a,withGlobalStyles:i=!0})=>{const r=(0,s.useRef)(),o=p?.[a]?.provided;return(0,s.useLayoutEffect)((()=>{if(!o)return t?d(t,a,i):void(r?.current&&d(r.current,a,i))}),[t,r,o,a,i]),t?n().createElement(n().Fragment,null,e):n().createElement("div",{ref:r},e)}},68316:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(56427),n=a(13022),i=a(51609),r=a(6647);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(s.ToggleControl,{__nextHasNoMarginBottom:!0,checked:u,className:(0,n.A)(r.A.toggle,t,{[r.A["is-toggling"]]:c,[r.A["is-small"]]:"small"===p,[r.A["no-label"]]:!l}),disabled:a,help:o,label:l,onChange:m})}},67506:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(51112),n=a(56427),i=a(86087),r=a(51609),o=a.n(r);a(22208);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(n.Card,{isRounded:!0,size:"large"},o().createElement(n.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(s.A,{className:"upsell-banner--content-cta-button secondary",href:m,onClick:g??void 0,isExternalLink:h},u),c&&l&&o().createElement(s.A,{className:"upsell-banner--content-cta-button primary",href:l,onClick:d??void 0,isExternalLink:p},c)))))}},51437:(e,t,a)=>{"use strict";a.d(t,{Y:()=>n});var s=a(38443);const n=()=>{const{l10n:{locale:e}}=(0,s.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"}},61069:(e,t,a)=>{"use strict";function s(){return window.Initial_State?.adminUrl||window.Jetpack_Editor_Initial_State?.adminUrl||window?.myJetpackInitialState?.adminUrl||null}a.d(t,{A:()=>s})},3924:(e,t,a)=>{"use strict";function s(e,t={}){const a={};let s;if("undefined"!=typeof window&&(s=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&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(a.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),s&&(a.calypso_env=s);return"https://jetpack.com/redirect/?"+Object.keys(a).map((e=>e+"="+a[e])).join("&")}a.d(t,{A:()=>s})},4563:(e,t,a)=>{"use strict";function s(e){return 1===e?.interval_count&&"month"===e?.interval_unit}a.d(t,{p:()=>s})},56439:(e,t,a)=>{let s={};try{s=a(74277)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const n=e=>Object.hasOwn(s,e);e.exports={jetpackConfigHas:n,jetpackConfigGet:e=>{if(!n(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 s[e]}}},33935:(e,t,a)=>{"use strict";a.d(t,{A1:()=>c,Ay:()=>y,DO:()=>o,Ij:()=>r,Kl:()=>m,LW:()=>l,MU:()=>h,XY:()=>p,ZO:()=>i,dz:()=>d,gH:()=>u,v_:()=>n});var s=a(5932);const n="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:n,connectionStatus:e}),k=e=>({type:r,isRegistering:e}),f=e=>({type:o,isConnecting:e}),v=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:f,setRegistrationError:v,clearRegistrationError:E,setAuthorizationUrl:_,registerSite:function*({registrationNonce:e,redirectUri:t,from:a=""}){yield E(),yield k(!0);try{const s=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:t,from:a};return yield g({isRegistered:!0}),yield _(s.authorizeUrl),yield k(!1),Promise.resolve(s)}catch(e){return yield v(e),yield k(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:t,redirectUri:a,skipPricingPage:s}={}){yield f(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:a,skipPricingPage:s}},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:b,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((t=>s.Ay.fetchConnectedPlugins().then((a=>{e(b(a)),t(a)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},22494:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(5932),n=a(47143),i=a(32279);const r={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>s.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:t,from:a})=>s.Ay.registerSite(e,t,a),CONNECT_USER:(0,n.createRegistryControl)((({resolveSelect:e})=>({from:t,redirectFunc:a,redirectUri:s,skipPricingPage:n}={})=>new Promise(((r,o)=>{e(i.A).getAuthorizationUrl(s).then((e=>{const s=a||(e=>window.location.assign(e)),i=new URL(e);n&&i.searchParams.set("skip_pricing","true"),t&&i.searchParams.set("from",encodeURIComponent(t));const o=i.toString();s(o),r(o)})).catch((e=>{o(e)}))}))))}},5051:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(47143),n=a(33935);const i=(0,s.combineReducers)({connectionStatus:(e={},t)=>{switch(t.type){case n.v_:return{...e,...t.connectionStatus};case n.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,t)=>t.type===n.ZO?t.isFetching:e,siteIsRegistering:(e=!1,t)=>t.type===n.Ij?t.isRegistering:e,userIsConnecting:(e=!1,t)=>t.type===n.DO?t.isConnecting:e,registrationError:(e,t)=>{switch(t.type){case n.LW:return!1;case n.A1:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===n.XY?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:(e={},t)=>t.type===n.gH?t.connectedPlugins:e,connectionErrors:(e={},t)=>t.type===n.Kl?t.connectionErrors:e,isOfflineMode:(e=!1,t)=>t.type===n.MU?t.isConnecting:e})},58019:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(47143),n=a(33935),i=a(32279);const r={...{getAuthorizationUrl:{isFulfilled:(e,...t)=>{const a=Boolean(e.authorizationUrl),n=(0,s.select)(i.A).hasFinishedResolution("getAuthorizationUrl",t);return a&&!n&&(0,s.dispatch)(i.A).finishResolution("getAuthorizationUrl",t),a},*fulfill(e){const t=yield n.Ay.fetchAuthorizationUrl(e);yield n.Ay.setAuthorizationUrl(t.authorizeUrl)}}}}},52676:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={...{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}}},18734:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(47143);class n{static store=null;static mayBeInit(e,t){null===n.store&&(n.store=(0,s.createReduxStore)(e,t),(0,s.register)(n.store))}}const i=n},32279:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s="jetpack-connection"},34293:(e,t,a)=>{"use strict";a.d(t,{a:()=>p.A});var s=a(97999),n=a(33935),i=a(22494),r=a(5051),o=a(58019),c=a(52676),l=a(18734),p=a(32279);const d=window.JP_CONNECTION_INITIAL_STATE||(0,s.getScriptData)()?.connection;d||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."),l.A.mayBeInit(p.A,{__experimentalUseThunks:!0,reducer:r.A,actions:n.Ay,selectors:c.A,resolvers:o.A,controls:i.A,initialState:d||{}})},59534:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(90372),n=a(67142),i=a(56461),r=a(56427),o=a(86087),c=a(27723),l=a(28120),p=a.n(l),d=a(51609),u=a.n(d),m=a(9144),h=a(18269);const __=c.__,g=e=>{const{className:t,disabled:a,onChange:s,value:n}=e;return u().createElement(r.TextControl,{__nextHasNoMarginBottom:!0,className:t,label:__("License key","jetpack"),value:n,onChange:s,disabled:a})},k=e=>{const{className:t,availableLicenses:a,disabled:s,onChange:n,value:i}=e,[o,l]=(0,d.useState)(""),p=null===a,m=(0,d.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,d.useEffect)((()=>{l(m?.length?m[0].value:"")}),[m]);const h=(0,d.useCallback)((e=>{l(e),n(e)}),[n]);return u().createElement(u().Fragment,null,u().createElement(r.SelectControl,{__nextHasNoMarginBottom:!0,className:t,disabled:s,label:__("Select a license key","jetpack"),value:o,options:m,onChange:h}),!p&&!o&&u().createElement(r.TextControl,{__nextHasNoMarginBottom:!0,className:t,label:__("Input a license key","jetpack"),value:i,onChange:n,disabled:s}))},f=e=>{const{activateLicense:t,availableLicenses:a,fetchingAvailableLicenses:c,isActivating:l,license:p,licenseError:f,onLicenseChange:v}=e;(0,d.useEffect)((()=>{s.A.tracks.recordEvent("jetpack_wpa_license_key_activation_view")}),[]);const E=f?.match(/\[[a-z_]+\]/),_=E&&E[0],{ACTIVE_ON_SAME_SITE:b}=h.a,y=b===_,w=(0,d.useMemo)((()=>f?y?"jp-license-activation-screen-controls--license-field-with-success":"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field"),[f,y]),C=a&&a.length;return u().createElement("div",{className:"jp-license-activation-screen-controls"},u().createElement("div",{className:"jp-license-activation-screen-controls--content"},u().createElement(n.A,{showText:!1,height:48}),u().createElement("h1",null,__("Add a license key","jetpack")),u().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:u().createElement("strong",null)})),c||C?u().createElement(k,{className:w,disabled:c||l,onChange:v,availableLicenses:c?null:a,value:p}):u().createElement(g,{className:w,disabled:l,onChange:v,value:p}),f&&u().createElement(m.A,{licenseError:f,errorType:_})),u().createElement("div",null,u().createElement(r.Button,{className:"jp-license-activation-screen-controls--button",onClick:t,disabled:!p},l?u().createElement(i.A,null):__("Activate","jetpack"))))};f.propTypes={activateLicense:p().func.isRequired,availableLicenses:p().array,fetchingAvailableLicenses:p().bool,isActivating:p().bool.isRequired,license:p().string.isRequired,licenseError:p().string,onLicenseChange:p().func.isRequired,siteUrl:p().string.isRequired};const v=f},18269:(e,t,a)=>{"use strict";a.d(t,{a:()=>s});const s={NOT_SAME_OWNER:"[not_same_owner]",ACTIVE_ON_SAME_SITE:"[active_on_same_site]",ATTACHED_LICENSE:"[attached_license]",PRODUCT_INCOMPATIBILITY:"[product_incompatibility]",REVOKED_LICENSE:"[revoked_license]",INVALID_INPUT:"[invalid_input]",MULTISITE_INCOMPATIBILITY:"[multisite_incompatibility]"}},9144:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(90372),n=a(51113),i=a(83883),r=a(90311),o=a(51609),c=a.n(o),l=a(18269),p=a(40635);const d=({licenseError:e,errorType:t})=>{(0,o.useEffect)((()=>{e&&s.A.tracks.recordEvent("jetpack_wpa_license_activation_error_view",{error:e,error_type:t})}),[e,t]);const{errorMessage:a,errorInfo:d}=(0,p.d)(e,t);if(!e)return null;const{ACTIVE_ON_SAME_SITE:u}=l.a,m=u===t,h=m?"activation-screen-error__message--success":"activation-screen-error__message--error";return c().createElement(c().Fragment,null,c().createElement("div",{className:`activation-screen-error__message ${h}`},c().createElement(n.A,{icon:m?i.A:r.A,size:20}),c().createElement("span",null,a)),d&&c().createElement("div",{className:"activation-screen-error__info"},d))}},40635:(e,t,a)=>{"use strict";a.d(t,{d:()=>p});var s=a(3924),n=a(56427),i=a(86087),r=a(27723),o=a(51609),c=a.n(o),l=a(18269);const __=r.__,p=(e,t)=>{if(!e)return{errorMessage:null,errorInfo:null};const a=(0,i.createInterpolateElement)(__("Need help? <a>Get in touch</a>.","jetpack"),{a:c().createElement(n.ExternalLink,{href:(0,s.A)("jetpack-support-license-activation"),rel:"noopener noreferrer"})});switch(t){case l.a.NOT_SAME_OWNER:return{errorMessage:__("The account that purchased the plan and the account managing this site are different.","jetpack"),errorInfo:c().createElement(c().Fragment,null,c().createElement("p",null,(0,i.createInterpolateElement)(__("Follow these <a>steps</a> to resolve it.","jetpack"),{a:c().createElement(n.ExternalLink,{rel:"noopener noreferrer",href:(0,s.A)("jetpack-support-activate-license",{anchor:"different-user"})})})),c().createElement("ol",null,c().createElement("li",null,__("Disconnect Jetpack from your site.","jetpack")),c().createElement("li",null,__("Log in to the WordPress.com account that purchased the plan.","jetpack")),c().createElement("li",null,__("Reconnect Jetpack.","jetpack"))),c().createElement("p",null,a))};case l.a.ACTIVE_ON_SAME_SITE:return{errorMessage:__("This license is already active on your site.","jetpack"),errorInfo:null};case l.a.ATTACHED_LICENSE:return{errorMessage:__("This license is already active on another website","jetpack"),errorInfo:c().createElement("ul",null,c().createElement("li",null,(0,i.createInterpolateElement)(__("If you would like to transfer it, please <a>get in touch</a>.","jetpack"),{a:c().createElement(n.ExternalLink,{rel:"noopener noreferrer",href:(0,s.A)("jetpack-support-license-activation")})})),c().createElement("li",null,(0,i.createInterpolateElement)(__("To use Jetpack on both sites, please <a>buy another license</a>.","jetpack"),{a:c().createElement(n.ExternalLink,{rel:"noopener noreferrer",href:(0,s.A)("my-jetpack-my-plans-purchase-no-site")})})))};case l.a.PRODUCT_INCOMPATIBILITY:return{errorMessage:__("Your site already has an active Jetpack plan of equal or higher value.","jetpack"),errorInfo:c().createElement(c().Fragment,null,c().createElement("p",null,__("It looks like your website already has a Jetpack plan that’s equal to or better than the one you’re trying to activate.","jetpack")),c().createElement("p",null,__("You can either use this license on a different site or cancel your current plan for a refund.","jetpack")),c().createElement("p",null,a))};case l.a.REVOKED_LICENSE:return{errorMessage:__("The subscription is no longer active or has expired. Please purchase a new license.","jetpack"),errorInfo:c().createElement("p",null,a)};case l.a.INVALID_INPUT:return{errorMessage:__("Unable to validate this license key.","jetpack"),errorInfo:c().createElement(c().Fragment,null,c().createElement("p",null,__("Please take a moment to check the license key from your purchase confirmation email—it might have a small typo.","jetpack")),c().createElement("p",null,a))};case l.a.MULTISITE_INCOMPATIBILITY:{const t=e.match(/We.re sorry, (.*) is not compatible/),s=t&&t[1];return{errorMessage:(0,r.sprintf)(/* translators: %s is the Jetpack product name, i.e.- Jetpack Backup, Jetpack Boost, etc., which the product name should not be translated. */ __("We’re sorry, %s is not compatible with multisite WordPress installations at this time.","jetpack"),s),errorInfo:c().createElement(c().Fragment,null,c().createElement("p",null,__("This Jetpack plan doesn’t work with Multisite WordPress setups. Please use it on a single-site installation or consider canceling for a refund.","jetpack")),c().createElement("p",null,a))}}default:return{errorMessage:e,errorInfo:c().createElement("p",null,a)}}}},5986:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(3924),n=a(86087),i=a(27723),r=a(28120),o=a.n(r),c=a(51609),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,n.createInterpolateElement)(__("Do you need help? <a>Contact us.</a>","jetpack"),{a:l().createElement("a",{href:(0,s.A)("jetpack-support-license-activation")})})))};p.propTypes={imageUrl:o().string.isRequired,showSupportLink:o().bool};const d=p},23806:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(67142),n=a(28120),i=a.n(n),r=a(51609),o=a.n(r),c=a(48354),l=a(88560),p=a(28547);const d=e=>{const{productId:t,siteRawUrl:a,siteAdminUrl:n,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(s.A,{showText:!1,height:48})),o().createElement(l.A,{siteRawUrl:a,productId:t}),o().createElement("div",{className:"jp-license-activation-screen-success-info--buttons"},o().createElement(c.F,{currentRecommendationsStep:i,siteAdminUrl:n,siteRawUrl:a,productId:t}),o().createElement(p.m,{siteRawUrl:a,productId:t})))};d.propTypes={siteRawUrl:i().string,productId:i().number,siteAdminUrl:i().string,currentRecommendationsStep:i().string};const u=d},48354:(e,t,a)=>{"use strict";a.d(t,{F:()=>m});var s=a(56461),n=a(3924),i=a(56427),r=a(27723),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(73010),u=a(21183);const __=r.__,m=e=>{const{currentRecommendationsStep:t,siteAdminUrl:a,siteRawUrl:r,productId:o}=e,[c,l]=(0,d.A)(),m=e=>c.map((e=>e.name)).includes(e),h=(0,u.p)(o),g=m("Jetpack"),k=m("Jetpack Social"),f="jetpack_social_advanced"===h||"jetpack_social_basic"===h,v=m("Jetpack Protect");if(l)return p().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button"},p().createElement(s.A,null));if(f&&(g||k))return 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"));if("jetpack_scan"===h){const e=v?a+"admin.php?page=jetpack-protect":(0,n.A)("jetpack-license-activation-success-scan",{site:r});return p().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button",href:e},__("View scan results","jetpack"))}return"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,n.A)("license-activation-view-my-plans",{site:r})},__("View my plans","jetpack"))};m.propTypes={siteAdminUrl:c().string.isRequired,currentRecommendationsStep:c().string,siteRawUrl:c().string.isRequired}},28547:(e,t,a)=>{"use strict";a.d(t,{m:()=>d});var s=a(3924),n=a(56427),i=a(27723),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(21183);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 my plans","jetpack"),redirectSource:"license-activation-view-my-plans"},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.p)(t)];return l().createElement(l().Fragment,null,i&&l().createElement(n.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,s.A)(i.redirectSource,{site:a})},i.text))};d.propTypes={siteRawUrl:o().string,productId:o().number}},49051:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(90372),n=a(5932),i=a(86087),r=a(27723),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(59534),u=a(5986),m=a(23806),h=a(47129),g=a(96309),k=a(97139);const __=r.__,f=e=>{const{availableLicenses:t=[],currentRecommendationsStep:a,fetchingAvailableLicenses:r=!1,onActivationSuccess:o=()=>null,siteAdminUrl:c,siteRawUrl:f,startingLicense:v,displayName:E=""}=e,[_,b]=(0,l.useState)(v??""),[y,w]=(0,l.useState)(null),[C,A]=(0,l.useState)(!1),[j,S]=(0,l.useState)(null);(0,l.useEffect)((()=>{t&&t[0]&&b(t[0].license_key)}),[t]);const N=(0,l.useCallback)((()=>C?Promise.resolve():_.length<1?(w(__("This is not a valid license key. Please try again.","jetpack")),Promise.resolve()):(w(null),A(!0),s.A.tracks.recordJetpackClick({target:"license_activation_button"}),n.Ay.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);S(t),o(t),s.A.tracks.recordEvent("jetpack_wpa_license_activation_success")})).catch((e=>{s.A.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((()=>{A(!1)})))),[C,_,o]);return null!==j&&_.startsWith("jetpack-golden-token")?p().createElement(h.A,{tokenRedeemed:!0,displayName:E}):null!==j?p().createElement("div",{className:"jp-license-activation-screen"},p().createElement(m.A,{siteRawUrl:f,productId:j,siteAdminUrl:c,currentRecommendationsStep:a}),p().createElement(u.A,{imageUrl:k,showSupportLink:!1})):p().createElement("div",{className:"jp-license-activation-screen"},p().createElement(d.A,{availableLicenses:t,activateLicense:N,fetchingAvailableLicenses:r,isActivating:C,license:_,licenseError:y,onLicenseChange:b,siteUrl:f}),p().createElement(u.A,{imageUrl:g,showSupportLink:!0}))};f.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 v=f},47129:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(78478),n=a(75918),i=a(28509),r=a(67142),o=a(51112),c=a(56427),l=a(27723),p=a(13022),d=a(28120),u=a.n(d),m=a(51609),h=a.n(m),g=a(64250);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 f({redeemClick:e,displayName:t,onModalClose:a=k,tokenRedeemed:d=!1}){const[u,f]=(0,m.useState)(!1),v=(0,m.useRef)(null);(0,m.useEffect)((()=>{setTimeout((()=>{v?.current?.play()}),500)}),[v]);const E=(0,s.Wy)("scan"),_=(0,s.Wy)("backup"),b=(0,m.useCallback)((t=>{e?.(t),f(!0),v.current.play()}),[v,e]),y=(0,m.useCallback)((()=>{u&&v.current.play()}),[u]),w=(0,p.A)(g.A.modal,{[g.A.animating]:u});return h().createElement("div",null,h().createElement(c.Modal,{className:w,onRequestClose:a,isDismissible:!1,__experimentalHideHeader:!0},h().createElement(n.A,{horizontalSpacing:3,horizontalGap:3},h().createElement(i.A,null,h().createElement(r.A,{className:g.A["jetpack-logo"]}),h().createElement("div",{className:g.A["video-wrap"],onClick:y,role:"presentation"},h().createElement("video",{ref:v,src:"https://videos.files.wordpress.com/oSlNIBQO/jetpack-golden-token.mp4",muted:"muted"})),h().createElement("div",{className:g.A["content-wrap"]},h().createElement("div",{className:g.A["content-wrap-text"]},t.length>0&&h().createElement("p",{className:g.A["hi-user"]},(0,l.sprintf)(/* Translators: %s is the user's display name. */ __("Hey, %s","jetpack"),t)),h().createElement("h2",{className:g.A.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.A,{variant:"primary",weight:"regular",onClick:b,className:g.A.button},d&&__("Awesome!","jetpack"),!d&&__("Redeem your token","jetpack"))),h().createElement("div",{className:`${g.A["powers-wrap"]} ${g.A["content-wrap"]}`},h().createElement("div",{className:g.A["content-wrap-text"]},h().createElement("h2",{className:g.A.headline},__("Super powers are ready!","jetpack")),h().createElement("p",{className:g.A.paragraph},__("Your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack"))),h().createElement("div",{className:g.A["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.A,{variant:"primary",weight:"regular",onClick:b,href:window?.myJetpackInitialState?.myJetpackUrl,className:g.A.button},__("Explore your new powers","jetpack")))))))}f.propTypes={redeemClick:u().func,tokenRedeemed:u().bool,displayName:u().string,onModalClose:u().func};const v=f},41040:(e,t,a)=>{"use strict";a.d(t,{b:()=>s.A});var s=a(49051);a(47129)},94263:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a.n(i),o=a(65905),c=a(92938);const l=e=>{const{apiNonce:t,apiRoot:a,connectionStatus:s,partnerCoupon:n,assetBaseUrl:i,registrationNonce:l,siteRawUrl:p,tracksUserData:d,analytics:u}=e;return s.hasConnectedOwner?r().createElement(o.Ay,{assetBaseUrl:i,connectionStatus:s,partnerCoupon:n,siteRawUrl:p,tracksUserData:!!d,analytics:u}):r().createElement(c.A,{apiNonce:t,registrationNonce:l,apiRoot:a,assetBaseUrl:i,connectionStatus:s,partnerCoupon:n,siteRawUrl:p,tracksUserData:!!d,analytics:u})};l.propTypes={apiRoot:n().string.isRequired,apiNonce:n().string.isRequired,assetBaseUrl:n().string.isRequired,connectionStatus:n().object.isRequired,partnerCoupon:n().object.isRequired,registrationNonce:n().string.isRequired,siteRawUrl:n().string.isRequired,tracksUserData:n().bool.isRequired,analytics:n().object};const p=l},65905:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>h});var s=a(67142),n=a(18089),i=a(27723),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(78720);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()),f=(0,p.H)(a,o,t,m,h),v=(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(s.A,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(s.A,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(n.A,{label:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Redeem %s","jetpack"),a.product.title),onClick:f})),l().createElement("div",null,l().createElement("button",{className:"jetpack-redeem-partner-coupon-post-connection__remind-me-later",onClick:v},__("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},92938:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(18089),n=a(39384),i=a(27723),r=a(13022),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(78720);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.H)(c,m,o,h,g),f=(0,r.A)("jetpack-redeem-partner-coupon-pre-connection",{"jetpack-redeem-partner-coupon-pre-connection--connected":!!o.hasConnectedOwner});return p().createElement("div",{className:f},p().createElement(n.ConnectScreen,{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(s.A,{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},38745:(e,t,a)=>{"use strict";a.d(t,{ry:()=>s.A});var s=a(94263);a(92938),a(65905)},7162:(e,t,a)=>{"use strict";a.d(t,{ConnectionManagement:()=>i.A,SocialImageGeneratorToggle:()=>s.A,TemplatePickerButton:()=>n.A,features:()=>r.features,getSocialScriptData:()=>r.getSocialScriptData,hasSocialPaidFeatures:()=>r.hasSocialPaidFeatures});a(89729),a(10267),a(70925),a(81115),a(97192),a(29341),a(12226);var s=a(98725),n=a(29761),i=(a(66561),a(25300),a(26029),a(26637)),r=(a(50001),a(39553),a(77627),a(31873),a(54822),a(70407));a(1101),a(75168),a(49036),a(383),a(38656),a(49192),a(48222),a(51371),a(50646),a(47453)},12141:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(78478),n=a(86087),i=a(13022),r=a(5739),o=a.n(r);const c=e=>{const{checked:t,serviceName:a,label:r,onClick:o,profilePicture:c}=e,[l,p]=(0,n.useState)(!!c),d=(0,n.useCallback)((()=>p(!1)),[]),u=(0,n.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.A)("components-connection-icon",{"components-connection-icon__picture":l})},l&&React.createElement("img",{src:c,alt:r,onError:d}),React.createElement(s.M5,{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},55488:(e,t,a)=>{"use strict";a.d(t,{T:()=>f});var s=a(51112),n=a(40597),i=a(56427),r=a(27723),o=a(51113),c=a(98248),l=a(64969),p=a(51609),d=a(12141),u=a(27817),m=a(86158),h=a(43119),g=a(52683),k=a(85605);const __=r.__,_x=r._x;function f({connection:e,service:t}){const[a,r]=(0,p.useReducer)((e=>!e),!1);return React.createElement(React.Fragment,null,React.createElement("div",{className:k.A["connection-item"]},React.createElement(d.A,{serviceName:e.service_name,label:e.display_name||e.external_display,profilePicture:e.profile_picture}),React.createElement("div",{className:k.A["connection-name-wrapper"]},React.createElement("div",{className:k.A["connection-item-name"]},React.createElement(u.s,{connection:e})),React.createElement(m.v,{connection:e,service:t})),React.createElement(s.A,{size:"small",className:k.A["learn-more"],variant:"tertiary",onClick:r,"aria-label":a?__("Close panel","jetpack"):_x("Open panel","Accessibility label","jetpack")},React.createElement(o.A,{className:k.A.chevron,icon:a?c.A:l.A}))),React.createElement(i.Panel,{className:k.A["connection-panel"]},React.createElement(i.PanelBody,{opened:a,onToggle:r},React.createElement("div",{className:k.A["mark-shared-wrap"]},React.createElement(g.j,{connection:e}),React.createElement(n.A,null,__("If enabled, the connection will be available to all administrators, editors, and authors.","jetpack"))),React.createElement(h.V,{connection:e}))))}},27817:(e,t,a)=>{"use strict";a.d(t,{s:()=>c});var s=a(56427),n=a(47143),i=a(27723),r=a(89729),o=a(85605);const __=i.__;function c({connection:e}){const t=(0,n.useSelect)((t=>t(r.M_).getUpdatingConnections().includes(e.connection_id)),[e.connection_id]);return React.createElement("div",{className:o.A["connection-name"]},e.profile_link?React.createElement(s.ExternalLink,{className:o.A["profile-link"],href:e.profile_link},e.display_name||e.external_display||e.external_name):React.createElement("span",{className:o.A["profile-link"]},e.display_name||e.external_name),t?React.createElement(s.Spinner,{color:"black","aria-label":__("Updating account","jetpack")}):null)}},86158:(e,t,a)=>{"use strict";a.d(t,{v:()=>l});var s=a(3924),n=a(56427),i=a(86087),r=a(27723),o=a(43119),c=a(76046);const __=r.__;function l({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"):(0,i.createInterpolateElement)((0,r.sprintf)("%1$s %2$s",__("This platform is no longer supported.","jetpack"),__("You can use our <link>Manual Sharing</link> feature instead.","jetpack")),{link:React.createElement(n.ExternalLink,{href:(0,s.A)("jetpack-social-manual-sharing-help")})}))," ",t?React.createElement(c.C,{connection:e,service:t}):React.createElement(o.V,{connection:e,variant:"link",isDestructive:!1}))}},43119:(e,t,a)=>{"use strict";a.d(t,{V:()=>p});var s=a(51112),n=a(56427),i=a(47143),r=a(86087),o=a(27723),c=a(89729),l=a(85605);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.M_),{isDisconnecting:h}=(0,i.useSelect)((t=>{const{getDeletingConnections:a}=t(c.M_);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(n.__experimentalConfirmDialog,{className:l.A.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(s.A,{size:"small",onClick:u,disabled:h,variant:t,isDestructive:a,className:p},h?__("Disconnecting…","jetpack"):_x("Disconnect","Disconnect a social media account","jetpack"))):null}},26637:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(51112),n=a(56427),i=a(47143),r=a(86087),o=a(27723),c=a(13022),l=a(50001),p=a(89729),d=a(48222),u=a(48712),m=a(55488),h=a(85605);const __=o.__,g=({className:e=null})=>{const{refresh:t}=(0,l.A)(),{connections:a,deletingConnections:o,updatingConnections:g}=(0,i.useSelect)((e=>{const{getConnections:t,getDeletingConnections:a,getUpdatingConnections:s}=e(p.M_);return{connections:t(),deletingConnections:a(),updatingConnections:s()}}),[]);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.h)(),{openConnectionsModal:f}=(0,i.useDispatch)(p.M_);return React.createElement("div",{className:(0,c.A)(h.A.wrapper,e)},a.length?React.createElement(React.Fragment,null,React.createElement("h3",null,__("Connected accounts","jetpack")),React.createElement("ul",{className:h.A["connection-list"]},a.map((e=>{const t=g.includes(e.connection_id)||o.includes(e.connection_id);return React.createElement("li",{className:h.A["connection-list-item"],key:e.connection_id},React.createElement(n.Disabled,{isDisabled:t},React.createElement(m.T,{connection:e,service:k(e.service_name)})))})))):null,React.createElement(d._,null),React.createElement(s.A,{variant:a.length?"secondary":"primary",onClick:f},__("Connect an account","jetpack")))}},52683:(e,t,a)=>{"use strict";a.d(t,{j:()=>c});var s=a(56427),n=a(47143),i=a(86087),r=a(27723),o=a(89729);const __=r.__;function c({connection:e}){const{updateConnectionById:t}=(0,n.useDispatch)(o.M_),{isUpdating:a}=(0,n.useSelect)((t=>{const{getUpdatingConnections:a}=t(o.M_);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(s.CheckboxControl,{checked:e.shared??!1,onChange:r,disabled:a||"broken"===e.status,label:__("Mark the connection as shared","jetpack"),__nextHasNoMarginBottom:!0})}},76046:(e,t,a)=>{"use strict";a.d(t,{C:()=>l});var s=a(51112),n=a(47143),i=a(86087),r=a(27723),o=a(89729),c=a(70745);const __=r.__,_x=r._x;function l({connection:e,service:t,variant:a="link"}){const{deleteConnectionById:r,setKeyringResult:l,openConnectionsModal:p,setReconnectingAccount:d}=(0,n.useDispatch)(o.M_),{isDisconnecting:u}=(0,n.useSelect)((t=>{const{getDeletingConnections:a}=t(o.M_);return{isDisconnecting:a().includes(e.connection_id)}}),[e.connection_id]),m=(0,i.useCallback)((e=>{l(e),e?.ID&&p()}),[p,l]),h=(0,c.P)({service:t,onConfirm:m}),g=(0,i.useCallback)((async()=>{if(!await r({connectionId:e.connection_id,showSuccessNotice:!1}))return;await d(e);const a=new FormData;"mastodon"===t.ID&&a.set("instance",e.external_display),"bluesky"===t.ID?p():h(a)}),[e,r,p,h,t.ID,d]);return e.can_disconnect?React.createElement(s.A,{size:"small",onClick:g,disabled:u,variant:a},u?__("Disconnecting…","jetpack"):_x("Reconnect","Reconnect a social media account","jetpack")):null}},91910:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(13022),n=a(5739),i=a.n(n),r=a(12141);const o=e=>{const{checked:t,disabled:a,onChange:n,serviceName:i,label:o,profilePicture:c}=e,l=(0,s.A)("components-connection-toggle",{"is-not-checked":!t,"is-disabled":a});return React.createElement("div",{className:l,title:o},React.createElement(r.A,{checked:t,label:o,onClick:n,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},10267:(e,t,a)=>{"use strict";var s=a(85985),n=a(56427),i=a(47143),r=a(86087),o=a(27723),c=a(89729),l=a(91910),p=a(95051),d=a(49514);const __=o.__;class u extends r.Component{maybeDisplayLinkedInNotice=()=>this.connectionNeedsReauth()&&React.createElement(n.Notice,{className:p.A["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(n.ExternalLink,{href:`https://wordpress.com/marketing/connections/${(0,s.GE)()}`},__("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:s,profilePicture:n}=this.props,i="connection-"+s+"-"+t,r=s.replace("_","-"),o=React.createElement(l.A,{id:i,className:d.A["connection-toggle"],checked:e,onChange:this.onConnectionChange,disabled:this.isDisabled(),serviceName:r,label:a,profilePicture:n});return React.createElement("li",null,this.maybeDisplayLinkedInNotice(),React.createElement("div",{className:d.A["connection-container"]},o))}}(0,i.withSelect)((e=>({failedConnections:e(c.Af).getFailedConnections(),mustReauthConnections:e(c.Af).getMustReauthConnections()})))(u)},77125:(e,t,a)=>{"use strict";a(56427),a(47143),a(86087),a(27723),a(77627),a(50001),a(89729),a(51371),a(51475),a(9515),a(71016)},64636:(e,t,a)=>{"use strict";a(97999),a(56427),a(27723),a(77627),a(50001),a(25349),a(71016)},14993:(e,t,a)=>{"use strict";a(85985),a(51609),a(77627),a(50001),a(10267),a(77125),a(57193),a(75013),a(25349),a(71016),a(50923),a(39329)},57193:(e,t,a)=>{"use strict";a(56427),a(27723),a(77627),a(50001),a(71016),a(39329)},9573:(e,t,a)=>{"use strict";a(85985),a(56427),a(27723),a(70407),a(71016),a(647)},70925:(e,t,a)=>{"use strict";a(56427),a(86087),a(7162),a(98420),a(54915),a(80624),a(52367),a(50001),a(48222),a(96390),a(64636),a(14993),a(9573),a(41190)},62697:(e,t,a)=>{"use strict";a(97999),a(56427),a(27723),a(27844),a(51475)},31099:(e,t,a)=>{"use strict";a(56427),a(47143),a(86087),a(27723),a(80682),a(89729),a(51475),a(9515)},75013:(e,t,a)=>{"use strict";a(98420),a(54915),a(80624),a(52367),a(80682),a(50001),a(62697),a(31099)},25349:(e,t,a)=>{"use strict";a(56427),a(47143),a(27723),a(77627),a(89729),a(51371),a(71016)},41190:(e,t,a)=>{"use strict";a(97999),a(39553),a(27844),a(12015),a(70694)},50923:(e,t,a)=>{"use strict";a(56427),a(86087),a(27723),a(7162),a(50001),a(51475)},647:(e,t,a)=>{"use strict";a(47143),a(43656),a(86087)},39329:(e,t,a)=>{"use strict";a(86087),a(51609),a(7162),a(98420),a(54915),a(80624),a(52367),a(80682),a(50001)},56457:(e,t,a)=>{"use strict";a(1455),a(56427),a(47143),a(43656),a(27723),a(51609),a(49747),a(60548)},47453:(e,t,a)=>{"use strict";a(51371),a(7757)},59493:(e,t,a)=>{"use strict";a.d(t,{O:()=>m});var s=a(63406),n=a(51112),i=a(56427),r=a(47143),o=a(86087),c=a(27723),l=a(89729),p=a(39630),d=a(18973);const __=c.__,_x=c._x;function u({label:e,profile_picture:t}){return React.createElement("div",{className:d.A["account-info"]},t?React.createElement("img",{className:d.A["profile-pic"],src:t,alt:e}):null,React.createElement("span",null,e))}function m({keyringResult:e,onComplete:t,isAdmin:a}){const c=(0,p.o)(),{existingConnections:m,reconnectingAccount:h}=(0,r.useSelect)((e=>{const t=e(l.M_);return{existingConnections:t.getConnections(),reconnectingAccount:t.getReconnectingAccount()}}),[]),{createErrorNotice:g}=(0,s.I)(),k=c.find((t=>t.ID===e.service)),f=(0,o.useCallback)((e=>m.some((t=>t.service_name===k?.ID&&t.external_id===e))),[m,k.ID]),v=(0,o.useMemo)((()=>{const t=[],a=[];if(!k)return{connected:t,not_connected:a};const s=[];if(k.external_users_only||s.push({label:e.external_display||e.external_name,value:e.external_ID,profile_picture:e.external_profile_picture}),k.multiple_external_user_ID_support&&e.additional_external_users?.length)for(const t of e.additional_external_users)s.push({label:t.external_name,value:t.external_ID,profile_picture:t.external_profile_picture});for(const e of s)f(e.value)?t.push(e):a.push(e);return{connected:t,not_connected:a}}),[f,e,k]),{createConnection:E,setReconnectingAccount:_}=(0,r.useDispatch)(l.M_),b=(0,o.useCallback)((async a=>{a.preventDefault(),a.stopPropagation();const s=a.target,n=new FormData(s),i=n.get("external_user_ID");if(!i)return void g(__("Please select an account to connect.","jetpack"));const r={external_user_ID:k.multiple_external_user_ID_support?i:void 0,keyring_connection_ID:e.ID,shared:"1"===n.get("shared")||void 0},o=v.not_connected.find((e=>e.value===i));h&&_(void 0),E(r,{display_name:o?.label,profile_picture:o?.profile_picture,service_name:k.ID,external_id:i}),t()}),[E,h,_,g,e.ID,t,k.multiple_external_user_ID_support,k.ID,v.not_connected]);return React.createElement("section",{className:d.A.confirmation},v.not_connected.length?React.createElement("div",null,React.createElement("p",{className:d.A["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.A.form,onSubmit:b,id:"connection-confirmation-form"},React.createElement("div",{className:d.A["accounts-list"]},v.not_connected.map(((e,t)=>{const a=h?h.service_name===k?.ID&&h.external_id===e.value:0===t;return React.createElement("label",{key:e.value,className:d.A["account-label"],"aria-required":!0},React.createElement("input",{type:"radio",name:"external_user_ID",value:e.value,defaultChecked:a,className:d.A["account-input"],required:!0}),React.createElement(u,{label:e.label,profile_picture:e.profile_picture}))}))),a?React.createElement(i.BaseControl,{__nextHasNoMarginBottom:!0,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.A["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.A["submit-wrap"]},React.createElement(n.A,{variant:"secondary",onClick:t},__("Cancel","jetpack")),v.not_connected.length?React.createElement(n.A,{form:"connection-confirmation-form",type:"submit"},__("Confirm","jetpack")):null))}},48222:(e,t,a)=>{"use strict";a.d(t,{_:()=>v});var s=a(60442),n=a(47425),i=a(3924),r=a(50723),o=a(56427),c=a(3582),l=a(47143),p=a(86087),d=a(27723),u=a(13022),m=a(89729),h=a(78362),g=a(59493),k=a(51461);const __=d.__,_x=d._x,f=()=>{const{keyringResult:e}=(0,l.useSelect)((e=>{const{getKeyringResult:t}=e(m.M_);return{keyringResult:t()}}),[]),{setKeyringResult:t,closeConnectionsModal:a,setReconnectingAccount:r}=(0,l.useDispatch)(m.M_),[d]=(0,s.A)("sm"),f=(0,p.useCallback)((()=>{t(null),r(void 0),a()}),[a,t,r]),v=Boolean(e?.ID),E=v?__("Connection confirmation","jetpack"):_x("Manage Jetpack Social connections","","jetpack"),_=(0,l.useSelect)((e=>e(c.store).canUser("update","settings")),[]);return React.createElement(o.Modal,{className:(0,u.A)(k.A.modal,{[k.A.small]:d}),onRequestClose:f,title:E},v?React.createElement(g.O,{keyringResult:e,onComplete:f,isAdmin:_}):React.createElement(React.Fragment,null,React.createElement(h.b,null),React.createElement("div",{className:k.A["manual-share"]},React.createElement("em",null,React.createElement(n.Ay,null,__("Want to share to other networks? Use our Manual Sharing feature from the editor.","jetpack")," ",React.createElement(o.ExternalLink,{href:(0,i.A)("jetpack-social-manual-sharing-help")},__("Learn more","jetpack")))))))};function v(){const e=(0,l.useSelect)((e=>e(m.M_).isConnectionsModalOpen()),[]);return React.createElement(r.Ay,{targetDom:document.body},e?React.createElement(f,null):null)}},30642:(e,t,a)=>{"use strict";a(56427),a(27723),a(68541),a(34600),a(27681)},34600:(e,t,a)=>{"use strict";a(56427),a(27723)},55858:(e,t,a)=>{"use strict";a(94715),a(56427),a(86087),a(27723),a(52367),a(2204),a(18699),a(97671)},12015:(e,t,a)=>{"use strict";a(85985),a(56427),a(86087);var s=a(27723);a(51609),a(98420),a(80624),a(55858),a(35270);const __=s.__;__("Choose Media","jetpack")},70694:(e,t,a)=>{"use strict";a(85985),a(56427),a(27723),a(51609)},51475:(e,t,a)=>{"use strict";var s=a(56427),n=a(27723),i=a(51113),r=a(31249),o=a(13022),c=a(5739),l=a.n(c),p=a(93794);const __=n.__,d=({children:e,type:t="default",actions:a=[],onDismiss:n})=>{const c=(0,o.A)(p.A.notice,p.A[`notice--${t}`]);return React.createElement("div",{className:c},React.createElement("div",{className:p.A.content}," ",e," "),n&&React.createElement("button",{className:p.A.dismiss,onClick:n},React.createElement(s.VisuallyHidden,null,__("Dismiss notice","jetpack")),React.createElement(i.A,{icon:r.A})),a&&a.length>0&&React.createElement("div",{className:p.A.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}},66561:(e,t,a)=>{"use strict";a(56427),a(47143),a(43656),a(86087),a(27723),a(77627),a(88584),a(49036),a(50001),a(51371),a(70925),a(30642),a(51353),a(1101),a(87170)},65843:(e,t,a)=>{"use strict";a(85985),a(47143),a(14309),a(43656),a(27723),a(34600),a(68541),a(5780)},26029:(e,t,a)=>{"use strict";a(65843),a(39691),a(89640)},39691:(e,t,a)=>{"use strict";a(85985),a(1455),a(14309),a(86087),a(77627),a(49036),a(50001),a(25300)},89640:(e,t,a)=>{"use strict";a(47143),a(14309),a(43656),a(92214),a(383),a(57275),a(49036),a(89729),a(51371),a(79594)},79594:(e,t,a)=>{"use strict";a(56427),a(47143),a(27723),a(89729),a(51475),a(7757),a(55387)},51353:(e,t,a)=>{"use strict";a(47143),a(51609),a(89729),a(79594),a(7757),a(61420)},25300:(e,t,a)=>{"use strict";a(85985),a(27723),a(51609),a(76445)},53774:(e,t,a)=>{"use strict";a.d(t,{$:()=>u});var s=a(51112),n=a(47143),i=a(86087),r=a(27723),o=a(13022),c=a(89729),l=a(75018),p=a(42475),d=a(70745);const __=r.__,_x=r._x;function u({service:e,isSmall:t,onSubmit:a,displayInputs:r,hasConnections:u,buttonLabel:m}){const{setKeyringResult:h}=(0,n.useDispatch)(c.M_),{isConnectionsModalOpen:g}=(0,n.useSelect)((e=>e(c.M_)),[]),k=(0,i.useCallback)((e=>{g()&&h(e)}),[h,g]),f=(0,d.P)({service:e,onConfirm:k}),v=(0,i.useCallback)((e=>{if(e.preventDefault(),e.stopPropagation(),a)return a();const t=new FormData(e.target);f(t)}),[a,f]);return React.createElement("form",{className:(0,o.A)(p.A["connect-form"],{[p.A.small]:t}),onSubmit:v},r?React.createElement("div",{className:p.A["fields-wrapper"]},React.createElement(l.t,{service:e})):null,React.createElement("div",{className:p.A["fields-wrapper"]},React.createElement("div",{className:p.A["fields-item"]},React.createElement(s.A,{variant:u?"secondary":"primary",type:"submit",className:p.A["connect-button"]},m||(u?_x("Connect more","","jetpack"):__("Connect","jetpack"))))))}},75018:(e,t,a)=>{"use strict";a.d(t,{t:()=>p});var s=a(42266),n=a(56427),i=a(47143),r=a(86087),o=a(27723),c=a(89729),l=a(42475);const __=o.__,_x=o._x;function p({service:e}){const t=(0,r.useId)(),a=(0,i.useSelect)((e=>e(c.M_).getReconnectingAccount()),[]);return"mastodon"===e.ID?React.createElement("div",{className:l.A["fields-item"]},React.createElement("label",{htmlFor:`${t}-handle`},_x("Handle","The handle of a social media account.","jetpack")),React.createElement("input",{id:`${t}-handle`,required:!0,type:"text",name:"instance",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:"false","aria-label":__("Mastodon handle","jetpack"),"aria-describedby":`${t}-handle-description`,placeholder:"@mastodon@mastodon.social"}),React.createElement("p",{className:"description",id:`${t}-handle-description`},__("You can find the handle in your Mastodon profile.","jetpack"))):"bluesky"===e.ID?React.createElement(React.Fragment,null,React.createElement("div",{className:l.A["fields-item"]},React.createElement("label",{htmlFor:`${t}-handle`},_x("Handle","The handle of a social media account.","jetpack")),React.createElement("input",{id:`${t}-handle`,required:!0,type:"text",name:"handle",defaultValue:"bluesky"===a?.service_name?a?.external_name:void 0,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:"false","aria-label":__("Bluesky handle","jetpack"),"aria-describedby":`${t}-handle-description`,placeholder:"username.bsky.social"}),React.createElement("p",{className:"description",id:`${t}-handle-description`},__("You can find the handle in your Bluesky profile.","jetpack"))),React.createElement("div",{className:l.A["fields-item"]},React.createElement("label",{htmlFor:`${t}-password`},__("App password","jetpack")),React.createElement("input",{id:`${t}-password`,required:!0,type:"password",name:"app_password",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:"false","aria-label":__("App password","jetpack"),"aria-describedby":`${t}-password-description`,placeholder:"xxxx-xxxx-xxxx-xxxx"}),React.createElement("p",{className:"description",id:`${t}-password-description`},(0,r.createInterpolateElement)(__("App password is needed to safely connect your account. App password is different from your account password. You can <link>generate it in Bluesky</link>.","jetpack"),{link:React.createElement(n.ExternalLink,{href:"https://bsky.app/settings/app-passwords"})})),"bluesky"===a?.service_name&&React.createElement(s.A,{level:"error",showIcon:!1},__("Please provide an app password to fix the connection.","jetpack")))):null}},77088:(e,t,a)=>{"use strict";a.d(t,{e:()=>d});var s=a(40597),n=a(47425),i=a(27723),r=a(27817),o=a(86158),c=a(43119),l=a(52683),p=a(42475);const __=i.__,d=({connection:e,service:t,isAdmin:a})=>{return React.createElement("div",{className:p.A["service-connection"]},React.createElement("div",null,e.profile_picture?React.createElement("img",{className:p.A["profile-pic"],src:e.profile_picture,alt:e.display_name}):React.createElement(t.icon,{iconSize:40})),React.createElement("div",{className:p.A["connection-details"]},React.createElement(r.s,{connection:e}),"broken"===(i=e).status&&i.can_disconnect?React.createElement(o.v,{connection:i,service:t}):a?React.createElement("div",{className:p.A["mark-shared-wrap"]},React.createElement(l.j,{connection:i}),React.createElement(s.A,{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(React.Fragment,null,React.createElement(n.Ay,{className:p.A.description},__("This connection is added by a site administrator.","jetpack")),"broken"===i.status?React.createElement(o.v,{connection:i,service:t}):null)),React.createElement("div",{className:p.A["connection-actions"]},React.createElement(c.V,{connection:e,isDestructive:!1,variant:"tertiary",buttonClassName:p.A.disconnect})));var i}},46985:(e,t,a)=>{"use strict";a.d(t,{x:()=>d});var s=a(60442),n=a(56427),i=a(3582),r=a(47143),o=a(13022),c=a(89729),l=a(77088),p=a(42475);function d({service:e,serviceConnections:t}){const[a]=(0,s.A)("sm"),{deletingConnections:d,updatingConnections:u}=(0,r.useSelect)((e=>{const{getDeletingConnections:t,getUpdatingConnections:a}=e(c.M_);return{deletingConnections:t(),updatingConnections:a()}}),[]),m=(0,r.useSelect)((e=>e(i.store).canUser("update","settings")),[]);return t.length?React.createElement("ul",{className:p.A["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(n.Disabled,{isDisabled:a},React.createElement(l.e,{connection:t,service:e,isAdmin:m})))}))):React.createElement("div",{className:(0,o.A)(p.A["example-wrapper"],{[p.A.small]:a})},e.examples.map(((t,a)=>React.createElement("div",{key:e.ID+a,className:p.A.example},React.createElement(t,null)))))}},59008:(e,t,a)=>{"use strict";a.d(t,{j:()=>g});var s=a(60442),n=a(51112),i=a(56427),r=a(86087),o=a(27723),c=a(51113),l=a(98248),p=a(64969),d=a(53774),u=a(46985),m=a(21159),h=a(42475);const __=o.__,_x=o._x;function g({service:e,serviceConnections:t,isPanelDefaultOpen:a}){const[o]=(0,s.A)("sm"),[g,k]=(0,r.useReducer)((e=>!e),a),f=(0,r.useRef)(null);(0,r.useEffect)((()=>{a&&f.current?.scrollIntoView({block:"center",behavior:"smooth"})}),[]);const v=g&&e.needsCustomInputs,E=t.filter((({status:e})=>"broken"===e)),_=E.some((({can_disconnect:e})=>e)),b=v||_&&g,y=E.length>1?_x("Fix connections","Fix the social media connections","jetpack"):_x("Fix connection","Fix social media connection","jetpack");return React.createElement("div",{className:h.A["service-item"]},React.createElement("div",{className:h.A["service-item-info"]},React.createElement("div",null,React.createElement(e.icon,{iconSize:o?36:48})),React.createElement("div",{className:h.A["service-basics"]},React.createElement("div",{className:h.A.heading},React.createElement("span",{className:h.A.title},e.label),e.badges?.length?React.createElement("div",{className:h.A.badges},e.badges.map((({text:e,style:t},a)=>React.createElement("span",{key:a,className:h.A.badge,style:t},e)))):null),o||t.length?null:React.createElement("span",{className:h.A.description},e.description),React.createElement(m.E,{serviceConnections:t,brokenConnections:E})),React.createElement("div",{className:h.A.actions},b?null:React.createElement(d.$,{service:e,isSmall:o,onSubmit:_||e.needsCustomInputs?k:void 0,hasConnections:t.length>0,buttonLabel:_?y:void 0}),React.createElement(n.A,{size:"small",className:h.A["learn-more"],variant:"tertiary",onClick:k,"aria-label":__("Learn more","jetpack")},React.createElement(c.A,{className:h.A.chevron,icon:g?l.A:p.A})))),React.createElement(i.Panel,{className:h.A["service-panel"],ref:f},React.createElement(i.PanelBody,{opened:g,onToggle:k},React.createElement(u.x,{service:e,serviceConnections:t}),e.needsCustomInputs&&!_?React.createElement("div",{className:h.A["connect-form-wrapper"]},React.createElement(d.$,{service:e,displayInputs:!0,isSmall:!1,buttonLabel:__("Connect","jetpack")})):null)))}},21159:(e,t,a)=>{"use strict";a.d(t,{E:()=>r});var s=a(42266),n=a(27723),i=a(42475);const __=n.__,_n=n._n;function r({serviceConnections:e,brokenConnections:t}){if(!e.length)return null;if(t.length>0){const e=t.some((({can_disconnect:e})=>e));return React.createElement(s.A,{level:e?"error":"warning",showIcon:!1,className:i.A["broken-connection-alert"]},e?__("Please fix the broken connections or disconnect them to create more connections.","jetpack"):_n("Broken connection","Broken connections",t.length,"jetpack"))}return React.createElement("span",{className:i.A["active-connection"]},e.length>1?(0,n.sprintf)( // translators: %d: Number of connections __("%d connections","jetpack"),e.length):__("Connected","jetpack"))}},78362:(e,t,a)=>{"use strict";a.d(t,{b:()=>c});var s=a(47143),n=a(89729),i=a(59008),r=a(42475),o=a(39630);function c(){const e=(0,o.o)(),t=(0,s.useSelect)((e=>e(n.M_).getConnections().reduce(((e,t)=>(e[t.service_name]||(e[t.service_name]=[]),e[t.service_name].push(t),e)),{})),[]),a=(0,s.useSelect)((e=>e(n.M_).getReconnectingAccount()),[]);return React.createElement("ul",{className:r.A.services},e.map((e=>React.createElement("li",{key:e.ID,className:r.A["service-list-item"]},React.createElement(i.j,{service:e,serviceConnections:t[e.ID]||[],isPanelDefaultOpen:a?.service_name===e.ID})))))}},70745:(e,t,a)=>{"use strict";a.d(t,{P:()=>p});var s=a(63406),n=a(47143),i=a(86087),r=a(27723),o=a(89729),c=a(70407);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,s.I)(),r=(0,n.useSelect)((e=>e(o.M_).isMastodonAccountAlreadyConnected),[]),p=(0,n.useSelect)((e=>e(o.M_).isBlueskyAccountAlreadyConnected),[]);return(0,i.useCallback)((s=>{const n=new URL(e.connect_URL);switch(e.ID){case"mastodon":{const e=s.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"));n.searchParams.set("instance",e);break}case"bluesky":{const e=(s.get("handle")?.toString()||"").trim().replace(/^@/,"");if(!function(e){const t=e.split(".").filter(Boolean);return!(t.length<2)&&t.every((e=>/^[a-z0-9_-]+$/i.test(e)))}(e))return void a(__("Invalid Bluesky handle","jetpack"));if(p?.(e))return void a(__("This Bluesky account is already connected","jetpack"));n.searchParams.set("handle",e),n.searchParams.set("app_password",(s.get("app_password")?.toString()||"").trim());break}}(0,c.requestExternalAccess)(n.toString(),t)}),[a,p,r,t,e.ID,e.connect_URL])}},9515:(e,t,a)=>{"use strict";a(51609),a(48712)},48712:(e,t,a)=>{"use strict";a.d(t,{h:()=>i});var s=a(51609),n=a(39630);function i(){const e=(0,n.o)(),t=(0,s.useMemo)((()=>e.reduce(((e,t)=>(e[t.ID]=t,e)),{})),[e]);return(0,s.useCallback)((e=>t[e]),[t])}},39630:(e,t,a)=>{"use strict";a.d(t,{o:()=>k});var s=a(96072),n=a.n(s),i=a(78478),r=a(56427),o=a(86087),c=a(27723),l=a(30081),p=a(26818),d=a(43443),u=a(11326),m=a(65398),h=a(9791),g=a(51371);const __=c.__;function k(){const e=(0,o.useMemo)((()=>{const{supported_services:e}=(0,g.n)();return e.reduce(((e,t)=>({...e,[t.ID]:t})),{})}),[]),t={text:__("New","jetpack"),style:{background:"#e9eff5",color:"#0675C4"}};return[{...e.facebook,icon:e=>React.createElement(i.M5,n()({serviceName:"facebook"},e)),description:__("Share to your pages","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,o.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts on your Facebook page.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:l,alt:__("Add Facebook connection","jetpack")})]},{...e["instagram-business"],icon:e=>React.createElement(i.M5,n()({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,o.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:p,alt:__("Add Instagram photo","jetpack")})]},{...e.threads,icon:e=>React.createElement(i.M5,n()({serviceName:"threads"},e)),description:__("Share posts to your Threads feed.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,__("Increase your presence in social media by sharing your posts automatically to Threads.","jetpack")),()=>React.createElement("img",{src:m,alt:__("Add Threads connection","jetpack")})]},{...e.bluesky,needsCustomInputs:!0,icon:e=>React.createElement(i.M5,n()({serviceName:"bluesky"},e)),badges:[t],description:__("Share with your network.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,__("To share to Bluesky please enter your Bluesky handle and app password below, then click connect.","jetpack"))]},{...e.linkedin,icon:e=>React.createElement(i.M5,n()({serviceName:"linkedin"},e)),description:__("Share with your LinkedIn community.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,o.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts with your LinkedIn connections.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:d,alt:__("Add LinkedIn connection","jetpack")})]},{...e.nextdoor,icon:e=>React.createElement(i.M5,n()({serviceName:"nextdoor"},e)),description:__("Share on communities","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,o.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:u,alt:__("Add Instagram photo","jetpack")})]},{...e.tumblr,icon:e=>React.createElement(i.M5,n()({serviceName:"tumblr-alt"},e)),description:__("Share to your Tumblr blog.","jetpack"),examples:[()=>React.createElement(React.Fragment,null,(0,o.createInterpolateElement)(__("<strong>Connect</strong> to automatically share posts to your Tumblr blog.","jetpack"),{strong:React.createElement("strong",null)})),()=>React.createElement("img",{src:h,alt:__("Add Tumblr connection","jetpack")})]},{...e.mastodon,needsCustomInputs:!0,icon:e=>React.createElement(i.M5,n()({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)))}},73905:(e,t,a)=>{"use strict";var s=a(27723);const __=s.__;__("X","jetpack"),__("WhatsApp","jetpack"),__("Facebook","jetpack")},49192:(e,t,a)=>{"use strict";a(68541)},68541:(e,t,a)=>{"use strict";a(85985),a(86087),a(27723),a(73905),a(99811),a(53975)},53975:(e,t,a)=>{"use strict";a(47143),a(86087),a(383)},1101:(e,t,a)=>{"use strict";a(85985),a(56427),a(47143),a(43656),a(86087),a(27723),a(692),a(92214),a(77627),a(31873),a(89729),a(51371)},7757:(e,t,a)=>{"use strict";a(59032),a(95499)},95499:(e,t,a)=>{"use strict";a(96072),a(85985),a(56427),a(47143),a(27723),a(51609),a(89729),a(51371),a(14150)},59032:(e,t,a)=>{"use strict";a(56427),a(47143),a(27723),a(89729),a(30557),a(14150)},14329:(e,t,a)=>{"use strict";a(85985),a(56427),a(47143),a(43656),a(27723),a(51609),a(31873),a(89729),a(14150)},30557:(e,t,a)=>{"use strict";a(47143),a(89729),a(48377)},368:(e,t,a)=>{"use strict";a(85985),a(56427),a(27723),a(51609),a(14329)},69662:(e,t,a)=>{"use strict";a(27723),a(51609),a(14150)},48377:(e,t,a)=>{"use strict";a(38443),a(27723),a(12141),a(368),a(69662),a(14150)},29341:(e,t,a)=>{"use strict";a(56427),a(86087),a(27723),a(49747),a(38394),a(56457),a(77932)},77932:(e,t,a)=>{"use strict";a(56427),a(86087);var s=a(27723);a(49747),a(80624),a(56457),a(55858),a(81299),a(53744);const __=s.__;__("Choose Image","jetpack")},29761:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(60442),n=a(51112),i=a(47143),r=a(86087),o=a(27723),c=a(51609),l=a.n(c),p=a(89729),d=a(12226);const __=o.__,u=()=>{const[e,t]=(0,r.useState)(null),{isEnabled:a,isUpdating:o,defaultTemplate:c}=(0,i.useSelect)((e=>{const t=e(p.M_),a=t.getSocialImageGeneratorConfig();return{isEnabled:a.enabled,defaultTemplate:a.template,isUpdating:t.isSavingSiteSettings()}}),[]),{updateSocialImageGeneratorConfig:u}=(0,i.useDispatch)(p.M_);(0,r.useEffect)((()=>{if(e){u({template:e})}}),[e,u]);const[m]=(0,s.A)("sm"),h=(0,r.useCallback)((({open:e})=>l().createElement(n.A,{fullWidth:m,variant:"secondary",size:"small",disabled:o||!a,onClick:e},__("Change default template","jetpack"))),[a,m,o]);return l().createElement(d.A,{value:e||c,onSelect:t,render:h})}},12226:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(50723),n=a(56427),i=a(86087),r=a(27723),o=a(81299),c=a(88375);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(s.Ay,{targetDom:document.body},t({open:u}),r&&React.createElement(n.Modal,{onRequestClose:m,title:__("Pick a Template","jetpack")},React.createElement(o.A,{value:p,onTemplateSelected:d}),React.createElement("div",{className:c.A.footer},React.createElement(n.Button,{variant:"tertiary",onClick:m},__("Cancel","jetpack")),React.createElement(n.Button,{variant:"primary",onClick:h},__("Save","jetpack")))))}},81299:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(86087),n=a(27723),i=a(13022),r=a(52002),o=a(10936);const __=n.__,c=({value:e=null,onTemplateSelected:t=null})=>{const a=(0,s.useCallback)((e=>{const a=e.target.id;t?.(a)}),[t]);return React.createElement("div",{className:r.A.templates},o.A.map((t=>React.createElement("button",{onClick:a,id:t.name,key:t.name,className:(0,i.A)(r.A.template,{[r.A["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,n.sprintf)(__("Pick the %s template","jetpack"),t.label))))))}},10936:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(26365),n=a(45329),i=a(9509);const r=[{name:"highway",label:"Highway",image:a(22417)},{name:"dois",label:"Dois",image:s},{name:"edge",label:"Edge",image:n},{name:"fullscreen",label:"Fullscreen",image:i}]},98725:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(68316),n=a(47143),i=a(86087),r=a(51609),o=a.n(r),c=a(89729);const l=({toggleClass:e,children:t})=>{const{isEnabled:a,isUpdating:r}=(0,n.useSelect)((e=>{const t=e(c.M_);return{isEnabled:t.getSocialImageGeneratorConfig().enabled,isUpdating:t.isSavingSiteSettings()}}),[]),{updateSocialImageGeneratorConfig:l}=(0,n.useDispatch)(c.M_),p=(0,i.useCallback)((()=>{l({enabled:!a})}),[a,l]);return o().createElement(s.A,{className:e,disabled:r,checked:a,onChange:p,label:t})}},96390:(e,t,a)=>{"use strict";a(85985),a(56427),a(86087),a(27723),a(18603),a(94360),a(47944)},98588:(e,t,a)=>{"use strict";a(96072),a(3582),a(47143),a(86087),a(18537),a(27723),a(39553),a(62697),a(31137)},18603:(e,t,a)=>{"use strict";a(85985),a(56427),a(47143),a(27723),a(51609),a(89729),a(12141),a(39329),a(48712),a(98588),a(47944)},94360:(e,t,a)=>{"use strict";a(27723),a(41190),a(47944)},42259:(e,t,a)=>{"use strict";a(96072),a(3582),a(47143),a(43656),a(18537),a(39553),a(89729)},59540:(e,t,a)=>{"use strict";var s=a(96072),n=a.n(s),i=a(87070),r=a(47143),o=a(39553),c=a(89729);(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.A)(),{title:a,excerpt:s,content:l}=e,p=(0,r.useSelect)((e=>{const{displayName:t,profileImage:a}=e(c.Af).getConnectionProfileDetails(c.s);return{displayName:t,avatarUrl:a}}));return React.createElement(i.k,n()({},e,{type:"article",user:p,customText:t||s||l||a}))}))},81048:(e,t,a)=>{"use strict";a(96072),a(47143),a(18537),a(51609)},91262:(e,t,a)=>{"use strict";a(97999),a(56427),a(47143),a(27723),a(51609),a(39553),a(89729),a(27844)},29650:(e,t,a)=>{"use strict";a(47143),a(27723),a(51609),a(39553),a(89729)},98175:(e,t,a)=>{"use strict";a(96072),a(47143),a(18537),a(39553),a(89729)},81115:(e,t,a)=>{"use strict";a(56427),a(27723),a(42160),a(31137)},49257:(e,t,a)=>{"use strict";a(47143),a(51609),a(39553),a(89729)},97192:(e,t,a)=>{"use strict";a(56427),a(27723),a(42160)},68655:(e,t,a)=>{"use strict";a(47143),a(18537),a(51609),a(383),a(89729)},22322:(e,t,a)=>{"use strict";a(96072),a(47143),a(39553),a(89729)},91537:(e,t,a)=>{"use strict";a(47143),a(51609),a(383),a(89729)},42160:(e,t,a)=>{"use strict";a(96072),a(27723),a(51609),a(89729),a(70407),a(42259),a(59540),a(81048),a(91262),a(29650),a(98175),a(49257),a(68655),a(22322),a(91537)},31137:(e,t,a)=>{"use strict";a(47143),a(27723),a(383)},18699:(e,t,a)=>{"use strict";a(86087),a(76794)},98420:(e,t,a)=>{"use strict";a(383)},54822:(e,t,a)=>{"use strict";a(85985),a(1455),a(86087)},54915:(e,t,a)=>{"use strict";a(47143),a(43656)},49747:(e,t,a)=>{"use strict";a(47143),a(43656),a(86087),a(383)},92214:(e,t,a)=>{"use strict";a(47143),a(98420),a(54915),a(80624),a(52367),a(80682),a(50001),a(89729)},80624:(e,t,a)=>{"use strict";a(47143),a(86087)},80682:(e,t,a)=>{"use strict";a(27723)},52367:(e,t,a)=>{"use strict";a(86087),a(98420),a(49747),a(80682),a(2204)},2204:(e,t,a)=>{"use strict";const s="video/mp4",n="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=[n,"video/avi","video/mpg","video/mpeg","video/m4v"];r.concat([s,i,n]),r.concat([s,i]),o.concat([i,...c]),r.concat([s,n,i]),r.concat([s,i]),l.concat([...p,s,i]),d.concat([...u,s,i]),new Set([...r,...o,...l,...c,...p,"image/png","image/jpeg","image/jpg","image/heic","image/heif","image/webp"])},38656:(e,t,a)=>{"use strict";a(97999),a(47143),a(43656),a(27844)},383:(e,t,a)=>{"use strict";a.d(t,{h:()=>o});var s=a(47143),n=a(43656),i=a(86087),r=a(70407);function o(){const{editPost:e}=(0,s.useDispatch)(n.store),t=(0,s.useSelect)((e=>{const t=e(n.store).getEditedPostAttribute("meta")||{},a=t.jetpack_publicize_feature_enabled??!0,s=t.jetpack_social_options||{};return{isPublicizeEnabled:a,jetpackSocialOptions:s,attachedMedia:s.attached_media||[],imageGeneratorSettings:s.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,s)=>{a("jetpack_social_options",{...t.jetpackSocialOptions,[e]:s,version:2})}),[t.jetpackSocialOptions,a]);return(0,i.useMemo)((()=>({...t,togglePublicizeFeature:o,updateJetpackSocialOptions:c,updateMeta:a})),[t,o,c,a])}},57275:(e,t,a)=>{"use strict";a(47143),a(43656),a(86087)},77627:(e,t,a)=>{"use strict";a(39384),a(85985),a(47143),a(43656),a(70407),a(383)},88584:(e,t,a)=>{"use strict";a(29491),a(86087),a(50001)},38394:(e,t,a)=>{"use strict";a(27723),a(16480),a(51609)},49036:(e,t,a)=>{"use strict";a(29491),a(47143),a(43656),a(86087)},31873:(e,t,a)=>{"use strict";a(1455),a(47143),a(43656),a(86087),a(27723),a(50001),a(39553),a(51371)},50001:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(47143),n=a(89729);function i(){const{refreshConnectionTestResults:e,toggleConnectionById:t}=(0,s.useDispatch)(n.M_);return{...(0,s.useSelect)((e=>{const t=e(n.M_),a=t.getConnections(),s=t.getEnabledConnections(),i=t.getDisabledConnections().map((e=>e.connection_id));return{connections:a,hasConnections:a.length>0,hasEnabledConnections:s.length>0,skippedConnections:i,enabledConnections:s}}),[]),toggleById:t,refresh:e}}},39553:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(70407),n=a(383);function i(){const{updateMeta:e,shareMessage:t}=(0,n.h)();return{message:t,maxLength:(0,s.getShareMessageMaxLength)(),updateMessage:function(t){e("jetpack_publicize_message",t)}}}},75168:(e,t,a)=>{"use strict";a(47143),a(43656),a(89729),a(49036)},93394:(e,t,a)=>{"use strict";a.r(t),a.d(t,{abortRefreshConnectionsRequest:()=>E,abortRequest:()=>v,addConnection:()=>m,closeConnectionsModal:()=>P,createAbortController:()=>k,createConnection:()=>S,deleteConnection:()=>w,deleteConnectionById:()=>A,deletingConnection:()=>C,mergeConnections:()=>g,openConnectionsModal:()=>O,refreshConnectionTestResults:()=>_,removeAbortControllers:()=>f,setConnections:()=>d,setKeyringResult:()=>u,setReconnectingAccount:()=>R,syncConnectionsToPostMeta:()=>b,toggleConnection:()=>h,toggleConnectionById:()=>y,toggleConnectionsModal:()=>M,updateConnection:()=>N,updateConnectionById:()=>T,updatingConnection:()=>x});var s=a(692),n=a(1455),i=a.n(n),r=a(47143),o=a(43656),c=a(27723),l=a(51371),p=a(54118);const __=c.__;function d(e){return{type:p.dA,connections:e}}function u(e){return{type:p.BN,keyringResult:e}}function m(e){return{type:p.Bc,connection:e}}function h(e){return{type:p.af,connectionId:e}}function g(e){return function({dispatch:t,select:a}){const s=a.getConnections(),n=[],i={done:!1,enabled:!0,toggleable:!0};for(const t of e){const e=s.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};n.push(a)}t(d(n))}}function k(e,t){return{type:p.WB,requestType:t,abortController:e}}function f(e){return{type:p.Wp,requestType:e}}function v(e){return function({dispatch:t,select:a}){const s=a.getAbortControllers(e);for(const e of s)e.abort();t(f(e))}}function E(){return v(p.rz)}function _(e=!1){return async function({dispatch:t,select:a}){try{const s=(0,l.n)().api_paths.refreshConnections;for(;a.getUpdatingConnections().length>0||a.getDeletingConnections().length>0;)await new Promise((e=>setTimeout(e,100)));const n=new AbortController;t(k(n,p.rz));t(g(await i()({path:s,signal:n.signal}))),e&&t(b())}catch(a){"AbortError"===a.name&&t(_(e))}}}function b(){return function({registry:e,select:t}){const a=t.getConnections();return e.dispatch(o.store).editPost({jetpack_publicize_connections:a})}}function y(e,t=!0){return function({dispatch:a}){a(h(e)),t&&a(b())}}function w(e){return{type:p.nC,connectionId:e}}function C(e,t=!0){return{type:p.WH,connectionId:e,deleting:t}}function A({connectionId:e,showSuccessNotice:t=!0}){return async function({registry:a,dispatch:n}){const{createErrorNotice:c,createSuccessNotice:l}=(0,r.dispatch)(s.store);try{const s=`/jetpack/v4/social/connections/${e}`;return n(E()),n(C(e)),await i()({method:"DELETE",path:s}),n(w(e)),t&&l(__("Account disconnected successfully.","jetpack"),{type:"snackbar",isDismissible:!0}),a.select(o.store).getCurrentPostId()&&n(b()),!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{n(C(e,!1))}return!1}}let j=1;function S(e,t={}){return async function({registry:a,dispatch:n}){const{createErrorNotice:l,createSuccessNotice:p}=(0,r.dispatch)(s.store),d="new-"+ ++j;try{const s="/jetpack/v4/social/connections/";n(m({connection_id:d,...t})),n(E()),n(x(d));const r=await i()({method:"POST",path:s,data:e});r&&(n(N(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()&&n(b()))}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{n(x(d,!1)),n(w(d))}}}function N(e,t){return{type:p.dw,connectionId:e,data:t}}function x(e,t=!0){return{type:p._6,connectionId:e,updating:t}}function R(e){return{type:p.Nv,reconnectingAccount:e}}function T(e,t){return async function({dispatch:a,select:n}){const{createErrorNotice:o,createSuccessNotice:c}=(0,r.dispatch)(s.store),l=n.getConnectionById(e);try{const s=`/jetpack/v4/social/connections/${e}`;a(E()),a(N(e,t)),a(x(e));await i()({method:"POST",path:s,data:t})&&c(__("Account updated successfully.","jetpack"),{type:"snackbar",isDismissible:!0})}catch(t){let s=__("Error updating account.","jetpack");"object"==typeof t&&"message"in t&&t.message&&(s=`${s} ${t.message}`),a(N(e,l)),o(s,{type:"snackbar",isDismissible:!0})}finally{a(x(e,!1))}}}function M(e){return{type:p.xW,isOpen:e}}function O(){return M(!0)}function P(){return M(!1)}},54118:(e,t,a)=>{"use strict";a.d(t,{BN:()=>d,Bc:()=>n,M6:()=>E,Nv:()=>p,WB:()=>m,WH:()=>o,Wp:()=>h,_6:()=>l,_y:()=>v,aF:()=>_,af:()=>i,b5:()=>g,dA:()=>s,dw:()=>c,fz:()=>f,nC:()=>r,rz:()=>k,xW:()=>u});const s="SET_CONNECTIONS",n="ADD_CONNECTION",i="TOGGLE_CONNECTION",r="DELETE_CONNECTION",o="DELETING_CONNECTION",c="UPDATE_CONNECTION",l="UPDATING_CONNECTION",p="SET_RECONNECTING_ACCOUNT",d="SET_KEYRING_RESULT",u="TOGGLE_CONNECTIONS_MODAL",m="ADD_ABORT_CONTROLLER",h="REMOVE_ABORT_CONTROLLERS",g="DEFAULT",k="REFRESH_CONNECTIONS",f="FETCH_POST_SHARE_STATUS",v="RECEIVE_POST_SHARE_STATUS",E="TOGGLE_SHARE_STATUS_MODAL",_="POLLING_FOR_POST_SHARE_STATUS"},20257:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(93394),n=a(36305),i=a(72451),r=a(64236),o=a(40898);const c={...i,...n.Ay,...s,...o.Ay,...r}},36305:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>c,iJ:()=>o,ql:()=>r});var s=a(47143),n=a(89729),i=a(51979);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.He)(e);const t=yield(0,i._r)();return yield o(t),!0}catch(e){const t=(0,s.select)(n.Af).getJetpackSettings();return yield o(t),!1}finally{yield o({is_updating:!1})}},setJetpackSettings:o}},72451:(e,t,a)=>{"use strict";a.r(t),a.d(t,{closeShareStatusModal:()=>l,defaultIsRequestComplete:()=>p,fetchPostShareStatus:()=>i,openShareStatusModal:()=>c,pollForPostShareStatus:()=>h,pollingForPostShareStatus:()=>m,receivePostShareStaus:()=>r,toggleShareStatusModal:()=>o});var s=a(43656),n=a(54118);function i(e,t=!0){return{type:n.fz,postId:e,loading:t}}function r(e,t){return{type:n._y,shareStatus:e,postId:t}}function o(e){return{type:n.M6,isOpen:e}}function c(){return o(!0)}function l(){return o(!1)}const p=({lastTimestamp:e,postShareStatus:t})=>e?t.shares.some((t=>t.timestamp>e)):t.shares.length>0,d=6e4,u=3e3;function m(e,t=!0){return{type:n.aF,postId:e,polling:t}}function h({pollingInterval:e=u,postId:t,isRequestComplete:a=p,timeout:n=d}={}){return async function({dispatch:i,select:r,registry:o}){const c=Date.now(),l=t||o.select(s.store).getCurrentPostId(),p=r.getPostShareStatus(l).shares[0]?.timestamp||0;let d=!1,u=!1;i(m(l));do{r.getPostShareStatus(l).loading||i.invalidateResolution("getPostShareStatus",[l]),await new Promise((t=>setTimeout(t,e))),d=a({lastTimestamp:p,postShareStatus:r.getPostShareStatus(l)}),u=Date.now()-c>n}while(!d&&!u);i(m(l,!1))}}},64236:(e,t,a)=>{"use strict";a.r(t),a.d(t,{updateSocialImageGeneratorConfig:()=>i});var s=a(3582),n=a(75238);function i(e){return async function({registry:t}){const{saveSite:a}=t.dispatch(s.store);await a({[n.A]:e})}}},40898:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>l});var s=a(47143),n=a(89729),i=a(51979),r=a(36305);function o(){return(0,r.iJ)({social_notes_is_updating:!0})}function c(){return(0,r.iJ)({social_notes_is_updating:!1})}const l={updateSocialNotesSettings:function*(e){try{yield o(),yield(0,r.iJ)(e),yield(0,i.He)(e);const t=yield(0,i._r)();return yield(0,r.iJ)(t),!0}catch(e){const t=(0,s.select)(n.Af).getSocialNotesSettings();return yield(0,r.iJ)(t),!1}finally{yield c()}},updateSocialNotesConfig:function*(e){const t=(0,s.select)(n.Af).getSocialNotesConfig(),a={...t,...e};try{yield(0,r.iJ)({social_notes_config:a}),yield(0,i.He)({social_notes_config:e});const t=yield(0,i._r)();return yield(0,r.iJ)(t),!0}catch(e){return yield(0,r.iJ)({social_notes_config:t}),!1}},refreshSocialNotesSettings:function*(){try{yield o();const e=yield(0,i._r)();return yield(0,r.iJ)(e),!0}catch(e){return!1}finally{yield c()}}}},75238:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s="jetpack_social_image_generator_settings"},51979:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>p,He:()=>l,_r:()=>c});var s=a(1455),n=a.n(s);const i="FETCH_JETPACK_SETTINGS",r="UPDATE_JETPACK_SETTINGS",o="FETCH_JETPACK_SOCIAL_SETTINGS",c=()=>({type:i}),l=e=>({type:r,settings:e}),p={[i]:function(){return n()({path:"/jetpack/v4/social/settings"})},[r]:function(e){return n()({path:"/jetpack/v4/social/settings",method:"POST",data:e.settings})},[o]:function(){return n()({path:"/wp/v2/settings?_fields=jetpack_social_image_generator_settings"})}}},89729:(e,t,a)=>{"use strict";a.d(t,{Af:()=>l,M_:()=>u,s:()=>d});var s=a(47143),n=a(20257),i=a(51979),r=a(81194),o=a(37394),c=a(89580);const l="jetpack-social-plugin",p={reducer:r.A,actions:n.A,selectors:c.A,resolvers:o.Ay,controls:i.Ay,initialState:window?.jetpackSocialInitialState||window?.Initial_State?.socialInitialState||window?.Jetpack_Editor_Initial_State?.social||{}},d="facebook",u=(0,s.createReduxStore)(l,p);(0,s.register)(u)},86589:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(54118);const n=(e={},t)=>{switch(t.type){case s.xW:return{...e,isConnectionsModalOpen:t.isOpen};case s.Bc:return{...e,connections:[...e.connections,t.connection]};case s.dA:return{...e,connections:t.connections};case s.nC:return{...e,connections:e.connections.filter((({connection_id:e})=>e!==t.connectionId))};case s.WH:{const a=new Set(e.deletingConnections);return t.deleting?a.add(t.connectionId):a.delete(t.connectionId),{...e,deletingConnections:[...a]}}case s.Nv:return{...e,reconnectingAccount:t.reconnectingAccount};case s.dw:return{...e,connections:e.connections.map((e=>e.connection_id===t.connectionId?{...e,...t.data}:e))};case s._6:{const a=new Set(e.updatingConnections);return t.updating?a.add(t.connectionId):a.delete(t.connectionId),{...e,updatingConnections:[...a]}}case s.WB:{const a=t.requestType||s.b5;return{...e,abortControllers:{...e.abortControllers,[a]:[...e.abortControllers?.[a]||[],t.abortController]}}}case s.Wp:{const a=t.requestType||s.b5;return{...e,abortControllers:{...e.abortControllers,[a]:[]}}}case s.BN:return{...e,keyringResult:t.keyringResult};case s.af: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}},81194:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(47143),n=a(86589),i=a(61556),r=a(53202),o=a(55532);const c=(0,s.combineReducers)({siteData:o.A,connectionData:n.A,jetpackSettings:i.A,shareStatus:r.q})},61556:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(36305);const n=(e={},t)=>t.type===s.ql?{...e,...t.options}:e},53202:(e,t,a)=>{"use strict";a.d(t,{q:()=>n});var s=a(54118);function n(e={},t){switch(t.type){case s.fz:return{...e,[t.postId]:{shares:[],...e?.[t.postId],loading:t.loading??!0}};case s.aF:return{...e,[t.postId]:{shares:[],...e?.[t.postId],polling:t.polling??!0}};case s._y:return{...e,[t.postId]:{...e?.[t.postId],...t.shareStatus,loading:!1}};case s.M6:return{...e,isModalOpen:t.isOpen}}return e}},55532:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s=(e={})=>e},37394:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>u});var s=a(1455),n=a.n(s),i=a(43656),r=a(51371),o=a(59061),c=a(93394),l=a(36305),p=a(72451),d=a(51979);const u={getJetpackSettings:function*(){try{const e=yield(0,d._r)();if(e)return(0,l.iJ)(e)}catch(e){console.log(e)}},getConnections:function(){return function({dispatch:e,registry:t}){const a=t.select(i.store);if(!a.getCurrentPostId())return;const s=a.getEditedPostAttribute("jetpack_publicize_connections");e((0,c.setConnections)(s||[]))}},getPostShareStatus:function(e){return async({dispatch:t,registry:a})=>{const s=e||a.select(i.store).getCurrentPostId(),{feature_flags:c}=(0,r.n)();if(c.useShareStatus)try{t((0,p.fetchPostShareStatus)(s));let e=await n()({path:`jetpack/v4/social/share-status/${s}`});e=(0,o.xA)(e),t((0,p.receivePostShareStaus)(e,s))}catch(e){t((0,p.fetchPostShareStatus)(s,!1))}}}}},28343:(e,t,a)=>{"use strict";a.r(t),a.d(t,{getAbortControllers:()=>v,getBrokenConnections:()=>o,getConnectionById:()=>r,getConnectionProfileDetails:()=>h,getConnections:()=>i,getConnectionsByService:()=>c,getDeletingConnections:()=>g,getDisabledConnections:()=>m,getEnabledConnections:()=>u,getFailedConnections:()=>p,getKeyringResult:()=>b,getMustReauthConnections:()=>d,getReconnectingAccount:()=>f,getUpdatingConnections:()=>k,hasConnections:()=>l,isBlueskyAccountAlreadyConnected:()=>_,isConnectionsModalOpen:()=>y,isMastodonAccountAlreadyConnected:()=>E});var s=a(50384),n=a(54118);function i(e){return e.connectionData?.connections??[]}function r(e,t){return i(e).find((e=>e.connection_id===t))}function o(e){return i(e).filter((e=>"broken"===e.status||(0,s.Y)(e,"broken")))}function c(e,t){return i(e).filter((({service_name:e})=>e===t))}function l(e){return i(e).length>0}function p(e){return i(e).filter((e=>!1===e.test_success))}function d(e){return i(e).filter((e=>"must_reauth"===e.test_success)).map((e=>e.service_name))}function u(e){return i(e).filter((e=>e.enabled))}function m(e){return i(e).filter((e=>!e.enabled))}function h(e,t,{forceDefaults:a=!1}={}){let s="",n="",r="";if(!a){const a=i(e).find((({service_name:e})=>t===e));if(a){const{display_name:e,profile_display_name:i,profile_picture:o,external_display:c,external_name:l}=a;s="twitter"===t?i:e||c,r="twitter"===t?e:a.username,n=o,"bluesky"===t&&(r=l)}}return{displayName:s,profileImage:n,username:r}}function g(e){return e.connectionData?.deletingConnections??[]}function k(e){return e.connectionData?.updatingConnections??[]}function f(e){return e.connectionData?.reconnectingAccount}function v(e,t=n.b5){return e.connectionData?.abortControllers?.[t]??[]}function E(e,t){return c(e,"mastodon").some((e=>e.external_display===t))}function _(e,t){return c(e,"bluesky").some((e=>e.external_name===t))}function b(e){return e.connectionData?.keyringResult}function y(e){return e.connectionData?.isConnectionsModalOpen??!1}},89580:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(3582),n=a(47143),i=a(28343),r=a(91906),o=a(49424),c=a(80078),l=a(59379);const p=(0,n.createRegistrySelector)((e=>()=>e(s.store).isSavingEntityRecord("root","site",void 0))),d={...c.A,...i,...r.A,...o,isSavingSiteSettings:p,...l}},91906:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={getJetpackSettings:e=>e.jetpackSettings,isModuleEnabled:e=>e.jetpackSettings.publicize_active,showPricingPage:e=>e.jetpackSettings.show_pricing_page,isUpdatingJetpackSettings:e=>e.jetpackSettings.is_updating,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??{}}},49424:(e,t,a)=>{"use strict";a.r(t),a.d(t,{getPostShareStatus:()=>i,isShareStatusModalOpen:()=>r});var s=a(47143),n=a(43656);const i=(0,s.createRegistrySelector)((e=>(t,a)=>{const s=a||e(n.store).getCurrentPostId();return t.shareStatus?.[s]??{shares:[]}}));function r(e){return e.shareStatus?.isModalOpen??!1}},80078:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s={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}},59379:(e,t,a)=>{"use strict";a.r(t),a.d(t,{getSocialImageGeneratorConfig:()=>o});var s=a(3582),n=a(47143),i=a(70407),r=a(75238);const o=(0,n.createRegistrySelector)((e=>()=>{const{getSite:t}=e(s.store),a=t(void 0,{_fields:r.A});return a?.[r.A]??(0,i.getSocialScriptData)().settings.socialImageGenerator}))},50384:(e,t,a)=>{"use strict";a.d(t,{Y:()=>s});const s=(e,t)=>!1===e.is_healthy&&t===(e.error_code??"broken")},27844:(e,t,a)=>{"use strict";a.d(t,{q:()=>s});const s={ENHANCED_PUBLISHING:"social-enhanced-publishing",IMAGE_GENERATOR:"social-image-generator"}},12093:(e,t,a)=>{"use strict";a.d(t,{T:()=>n});const s=255;function n(){return s}},3280:(e,t,a)=>{"use strict";a(85985)},70407:(e,t,a)=>{"use strict";a.d(t,{features:()=>o.q,getShareMessageMaxLength:()=>s.T,getSocialScriptData:()=>r.n,hasSocialPaidFeatures:()=>r.p,requestExternalAccess:()=>n.x});var s=a(12093),n=(a(3280),a(5367)),i=a(18672);a.o(i,"features")&&a.d(t,{features:function(){return i.features}}),a.o(i,"getSocialScriptData")&&a.d(t,{getSocialScriptData:function(){return i.getSocialScriptData}}),a.o(i,"hasSocialPaidFeatures")&&a.d(t,{hasSocialPaidFeatures:function(){return i.hasSocialPaidFeatures}});var r=a(51371),o=a(27844)},5367:(e,t,a)=>{"use strict";a.d(t,{x:()=>n});var s=a(51119);const n=(e,t)=>{const a=new s.A;let n;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(()=>{t(n?.ID?n:{})})),a.on("message",(e=>{n=e?.data}))}},51371:(e,t,a)=>{"use strict";a.d(t,{n:()=>n,p:()=>i});var s=a(97999);function n(){return(0,s.getScriptData)()?.social}function i(){return(0,s.siteHasFeature)("social-enhanced-publishing")}},59061:(e,t,a)=>{"use strict";function s(e){return e&&"shares"in e&&e.done&&e.shares.sort(((e,t)=>t.timestamp-e.timestamp)),e}a.d(t,{xA:()=>s})},50646:(e,t,a)=>{"use strict";a(51371)},18672:()=>{},85985:(e,t,a)=>{"use strict";a.d(t,{GE:()=>s.A});var s=a(54815);a(82034),a(65595),a(53265),a(73489),a(76923),a(15877),a(30335),a(88290)},15877:(e,t,a)=>{"use strict";a(51609)},30335:(e,t,a)=>{"use strict";a(86087)},54815:(e,t,a)=>{"use strict";function s(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}a.d(t,{A:()=>s})},73489:(e,t,a)=>{"use strict";var s=a(90372);a(39384),a(86087);const{tracks:n}=s.A,{recordEvent:i}=n},76923:(e,t,a)=>{"use strict";a(47143),a(86087),a(88290)},27105:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>d,E9:()=>p});var s=a(47143),n=a(62634),i=a(94478),r=a(88290);const o="SET_JETPACK_MODULES";function c(e){return p({isLoading:e})}function l(e,t){return{type:"SET_MODULE_UPDATING",name:e,isUpdating:t}}function p(e){return{type:o,options:e}}const d={updateJetpackModuleStatus:function*(e){try{yield l(e.name,!0),yield(0,i.sB)(e);const t=yield(0,i.wz)();return yield p({data:t}),!0}catch(e){const t=(0,s.select)(r.F).getJetpackModules();return yield p(t),!1}finally{yield l(e.name,!1)}},setJetpackModules:p,fetchModules:function*(){if((0,n.Sy)())return!0;try{yield c(!0);const e=yield(0,i.wz)();return yield p({data:e}),!0}catch(e){const t=(0,s.select)(r.F).getJetpackModules();return yield p(t),!1}finally{yield c(!1)}}}},94478:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>l,sB:()=>c,wz:()=>o});var s=a(1455),n=a.n(s);const i="FETCH_JETPACK_MODULES",r="UPDATE_JETPACK_MODULE_STATUS",o=()=>({type:i}),c=e=>({type:r,settings:e}),l={[i]:function(){return n()({path:"/jetpack/v4/module/all",method:"GET"})},[r]:function({settings:e}){return n()({path:`/jetpack/v4/module/${e.name}/active`,method:"POST",data:{active:e.active}})}}},88290:(e,t,a)=>{"use strict";a.d(t,{F:()=>l});var s=a(47143),n=a(27105),i=a(94478),r=a(38862),o=a(62701),c=a(31640);const l="jetpack-modules",p=(0,s.createReduxStore)(l,{reducer:r.A,actions:n.Ay,controls:i.Ay,resolvers:o.A,selectors:c.A});(0,s.register)(p);const d=window?.Initial_State?.getModules||window?.Jetpack_Editor_Initial_State?.modules||null;null!==d&&(0,s.dispatch)(l).setJetpackModules({data:{...d}})},38862:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});const s={isLoading:!1,isUpdating:{},data:{}},n=(e=s,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}},62701:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(27105),n=a(94478);const i={getJetpackModules:function*(){try{const e=yield(0,n.wz)();if(e)return(0,s.E9)({data:e})}catch(e){console.error(e)}}}},31640:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(62634);const n={getJetpackModules:e=>e.data,isModuleActive:(e,t)=>(0,s.Sy)()||(e?.data?.[t]?.activated??!1),areModulesLoading:e=>e.isLoading??!1,isModuleUpdating:(e,t)=>e?.isUpdating?.[t]??!1}},53265:(e,t,a)=>{"use strict";var s=a(27723);a(93832),a(66087);const __=s.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},82034:(e,t,a)=>{"use strict";a(92279)},62634:(e,t,a)=>{"use strict";function s(){return"object"==typeof window&&"string"==typeof window._currentSiteType?window._currentSiteType:null}function n(){return"simple"===s()}a.d(t,{Sy:()=>n})},65595:(e,t,a)=>{"use strict";a(96072),a(29491)},84705:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>s.d});var s=a(58992);a(91135)},91135:(e,t,a)=>{"use strict";a.d(t,{$:()=>s});const s=[{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"})))}]},58992:(e,t,a)=>{"use strict";a.d(t,{d:()=>p});var s=a(96072),n=a.n(s),i=a(5739),r=a.n(i),o=a(51609),c=a.n(o),l=a(91135);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:s,...i}=this.props,r=["social-logo","social-logo-"+a,s].filter(Boolean).join(" "),o=l.$.find((e=>e.name===a));if(!o)return c().createElement("svg",n()({height:e,width:e},i));return c().cloneElement(o.svg,{className:r,height:e,width:e,onClick:t,...i})}}},94900:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(96072),n=a.n(s),i=a(3924),r=a(39384),o=a(56427),c=a(27723),l=a(51113),p=a(53512),d=a(41282),u=a(40877);const __=c.__,m=e=>{const{title:t}=e;return React.createElement(r.ConnectScreen,n()({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.A)("jetpack-features"),target:"_blank",className:u.A["all-features"],rel:"noreferrer"},__("See all Jetpack features","jetpack"),React.createElement(l.A,{icon:p.A}),React.createElement(o.VisuallyHidden,{as:"span"},/* translators: accessibility text */ __("(opens in a new tab)","jetpack"))))))}},25444:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(3924),n=a(27723),i=a(13022),r=a(26592),o=a(27326),c=a(53835),l=a(28120),p=a.n(l),d=a(51609),u=a.n(d),m=a(84952),h=a(34679);const __=n.__;class g extends d.Component{static propTypes={inOfflineMode:p().bool.isRequired,siteRawUrl:p().string.isRequired};static defaultProps={inOfflineMode:!1,siteRawUrl:""};trackActivityClick=()=>{c.A.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.A,{label:__("Activity","jetpack"),isModule:!1,className:(0,i.A)({"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.A,{key:"view-activity",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:(0,s.A)("calypso-activity-log",{site:this.props.siteRawUrl}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackActivityClick},__("View site activity","jetpack")))}}const k=(0,m.Ng)((e=>({inOfflineMode:(0,h.hN)(e)})))(g)},96641:(e,t,a)=>{"use strict";a.d(t,{A:()=>N});var s=a(96072),n=a.n(s),i=a(5932),r=a(37975),o=a(86087),c=a(27723),l=a(70386),p=a(26592),d=a(27326),u=a(13867),m=a(5546),h=a(3983),g=a(53835),k=a(6838),f=a(66087),v=a(83101),E=a(28120),_=a.n(E),b=a(51609),y=a(84952),w=a(32819),C=a(34679),A=a(2065),j=a(82656);const __=c.__,_x=c._x;class S 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};static defaultProps={siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isOfflineMode:"",trackUpgradeButtonView:f.noop};trackActivateClick(){g.A.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.Ay.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.A.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"),s={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:React.createElement(l.A,{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:React.createElement("a",{href:t+"admin.php?page=akismet-key-config"})})),React.createElement(h.Ay,{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.EP8)(k.pt9),trackBannerDisplay:this.props.trackUpgradeButtonView})};if("N/A"===e)return React.createElement(d.A,{label:a,module:"akismet",support:s,pro:!0},React.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:s,className:"jp-dash-item__is-inactive",pro:!0};return this.props.hasAntiSpam||this.props.hasAkismet?React.createElement(d.A,e,__("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.","jetpack")):this.props.isOfflineMode?React.createElement(d.A,e,React.createElement("p",{className:"jp-dash-item__description"},__("Unavailable in Offline Mode.","jetpack"))):React.createElement(d.A,n()({},e,{overrideContent:i()}))}return[React.createElement(d.A,{key:"comment-moderation",label:a,module:"akismet",support:s,status:"is-working",pro:!0},(()=>0!==this.props.akismetData?React.createElement(React.Fragment,null,React.createElement("h2",{className:"jp-dash-item__count"},(0,r.A)(this.props.akismetData)),React.createElement("p",{className:"jp-dash-item__description"},_x("Spam comments blocked.",'Example: "412 Spam comments blocked"',"jetpack"))):React.createElement("div",{className:"jp-dash-item__recently-activated"},React.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&&React.createElement(p.A,{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 React.createElement("div",{className:"jp-dash-item__interior"},React.createElement(u.A,null),this.getContent())}}const N=(0,y.Ng)((e=>({akismetData:(0,w.PU)(e),isAtomicSite:(0,A.d9)(e),isOfflineMode:(0,C.hN)(e),upgradeUrl:(0,v.F)(e,"akismet"),nonce:(0,A.Co)(e),hasAntiSpam:(0,j.IT)(e,"antispam"),hasAkismet:(0,j.IT)(e,"akismet")})),(e=>({createNotice:m.Fc,removeNotice:m.fj,connectUser:()=>e((0,C.k0)())})))(S)},87589:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(69546),n=a(27723),i=a(70386),r=a(26592),o=a(53835),c=a(51609),l=a.n(c),p=a(84952),d=a(30138);const __=n.__,u=(0,p.Ng)((e=>({isDismissed:(0,d.Fj)(e)})),(e=>({dismiss:()=>e((0,d.Xx)({dismiss_dash_backup_getting_started:!0}))})))((({isDismissed:e,dismiss:t})=>{const a=(0,c.useCallback)((()=>{t(),o.A.tracks.recordEvent("jetpack_backup_getting_started_video_dismiss",{position:"at_a_glance"})}),[t]),n=(0,c.useCallback)((()=>{o.A.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"at_a_glance"})}),[]);return e?null:l().createElement(r.A,{className:"dash-backup-getting-started"},l().createElement(i.A,{borderless:!0,compact:!0,className:"dash-backup-getting-started__dismiss",onClick:a},l().createElement("span",{className:"dashicons dashicons-no"})),l().createElement("a",{href:s.W_,target:"_blank",rel:"noreferrer"},l().createElement("img",{className:"dash-backup-getting-started__thumbnail",src:s.d0+"backup-getting-started-thumbnail.png",srcSet:`${s.d0+"backup-getting-started-thumbnail.png"} 1x, ${s.d0+"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.A,{className:"dash-backup-getting-started__cta",href:s.W_,onClick:n,target:"_blank",rel:"noreferrer",compact:!0,primary:!0},__("Watch the video","jetpack")))}))},20369:(e,t,a)=>{"use strict";a.d(t,{E:()=>p});var s=a(66051),n=a(27723),i=a(26592),r=a(53835),o=a(51609),c=a.n(o),l=a(72955);const __=n.__,p=({comments:e,plugins:t,posts:a,onClosePopup:n})=>{const p=(0,o.useRef)(!1);(0,o.useEffect)((()=>{p.current||(r.A.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.A,{className:"jp-dash-upgrade-backup"},c().createElement(l.z,{posts:a,comments:e,onClosePopup:n}),c().createElement(s.A,{items:d}))}},14801:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(53835),n=a(51609),i=a.n(n),r=a(84952),o=a(32819),c=a(20369);const l=(0,r.Ng)((e=>{const t=(0,o.eF)(e)?.general?.stats;return{comments:t?.comments,plugins:Object.keys((0,o.O0)(e)).length,posts:t?.posts,isFetchingData:(0,o.rC)(e)||(0,o.Ev)(e)}}))((({comments:e,isFetchingData:t,plugins:a,posts:r})=>{const[o,l]=(0,n.useState)(!0),p=(0,n.useCallback)((()=>{const t={comments:e,plugins:a,posts:r,target:"backup_bar_chart_close",type:"dismiss"};s.A.tracks.recordJetpackClick(t),l(!1)}),[e,a,r]);return!t&&o&&r>20?i().createElement(c.E,{posts:r,comments:e,plugins:a,onClosePopup:p}):null}))},72955:(e,t,a)=>{"use strict";a.d(t,{z:()=>c});var s=a(69546),n=a(27723),i=a(70386),r=a(51609),o=a.n(r);const __=n.__,c=({posts:e,comments:t,onClosePopup:a})=>o().createElement("div",{className:"jp-dash-upgrade-backup__popup"},o().createElement(i.A,{onClick:a,className:"jp-dash-upgrade-backup__popup-close-icon",compact:!0,borderless:!0},o().createElement("img",{src:s.d0+"/close.svg",alt:__("Close","jetpack")})),o().createElement("img",{className:"jp-dash-upgrade-backup__popup-lock-icon",src:s.d0+"/lock.svg",alt:__("Locked","jetpack")}),o().createElement("p",{className:"jp-dash-upgrade-backup__popup-title"},__("Upgrade to backup","jetpack")),o().createElement("p",null,(0,n.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)))},89514:(e,t,a)=>{"use strict";a.d(t,{A:()=>P});var s=a(3924),n=a(56427),i=a(38443),r=a(86087),o=a(27723),c=a(51113),l=a(8701),p=a(70386),d=a(26592),u=a(27326),m=a(41286),h=a(64610),g=a(3983),k=a(53835),f=a(6838),v=a(66087),E=a(83101),_=a(28120),b=a.n(_),y=a(51609),w=a.n(y),C=a(84952),A=a(32819),j=a(34679),S=a(2065),N=a(82656),x=a(77423),R=a(87589),T=a(14801);const __=o.__,_x=o._x,M=e=>w().createElement(u.A,{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,s.A)("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 O 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:v.noop,vaultPressData:"",isOfflineMode:!1,isVaultPressInstalled:!1,isWoA:!1,rewindStatus:"",trackUpgradeButtonView:v.noop,backupUndoEvent:{}};trackBackupsClick=(e="backups-link")=>function(){k.A.tracks.recordJetpackClick({type:e,target:"at-a-glance",feature:"backups"})};trackRedeemCouponButtonView=()=>{const{partnerCoupon:e}=this.props;k.A.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:n}=this.props;if(this.props.hasConnectedOwner){if(e&&"jetpack_backup_daily"===e.product.slug){const t=(0,s.A)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:a,query:`coupon=${e.coupon_code}`});return w().createElement(g.Ay,{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,f.EP8)(f.gvR),trackBannerDisplay:this.trackRedeemCouponButtonView})}return w().createElement(w().Fragment,null,w().createElement(T.A,null),w().createElement(g.Ay,{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,f.EP8)(f.gvR),trackBannerDisplay:n}))}return w().createElement(g.Ay,{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,f.EP8)(f.gvR)})}getVPContent(){const{hasBackups:e,isFetchingSite:t,isVaultPressInstalled:a,getOptionValue:n,siteRawUrl:i,vaultPressData:o}=this.props;return n("vaultpress")&&"success"===(0,v.get)(o,"code","")?M({className:"jp-dash-item__is-active",status:"is-working",content:w().createElement("span",null,(0,v.get)(o,"message","")," ",(0,r.createInterpolateElement)(__("<a>View backup details</a>.","jetpack"),{a:w().createElement("a",{href:(0,s.A)("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})}))}):t?this.renderLoading():M(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,s.A)("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.A,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom"},w().createElement("div",{className:"jp-dash-item__action-links"},w().createElement(n.ExternalLink,{href:e?(0,s.A)("calypso-backups",{site:t}):(0,s.A)("my-jetpack-manage-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("backups-link")},__("View your site's backups","jetpack")),w().createElement(n.ExternalLink,{href:(0,s.A)("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.A,{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=>M({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,s.A)("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(n.ExternalLink,{href:(0,s.A)("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 M({className:"",status:"",content:__("Loading…","jetpack")})}renderFromRewindStatus(){return this.props.hasBackups&&"unavailable"===this.props.rewindStatus&&"site_new"===this.props.rewindStatusReason?M({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.A.tracks.recordEvent("jetpack_wpa_aag_backup_undo_view")}trackUndoButtonClick(){k.A.tracks.recordEvent("jetpack_wpa_aag_backup_undo_button_click")}renderUndo(){const{backupUndoEvent:e}=this.props,{activityDate:t,activityTitle:a,activityDescription:n,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"},n),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.A,{href:(0,s.A)("jetpack-backup-undo-cta",{path:m}),primary:!0,target:"_blank",onClick:this.trackUndoButtonClick}),icon:w().createElement(c.A,{icon:l.A})})));return this.trackUndoFeatureView(),w().createElement(w().Fragment,null,M({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(R.A,null)}render(){return this.props.showBackups?this.props.isOfflineMode?w().createElement("div",{className:"jp-dash-item__interior"},M({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.A,null),"active"===this.props.rewindStatus&&w().createElement(m.A,null),this.renderFromRewindStatus(),this.renderGettingStartedVideo())):null}}const P=(0,C.Ng)((e=>({vaultPressData:(0,A.Cc)(e),isOfflineMode:(0,j.hN)(e),isVaultPressInstalled:(0,x.O8)(e,"vaultpress/vaultpress.php"),showBackups:(0,S.Fp)(e),upgradeUrl:(0,E.F)(e,"backup"),hasConnectedOwner:(0,j.BG)(e),isFetchingSite:(0,N.Kb)(e),hasBackups:(0,N.IT)(e,"backups"),hasRealTimeBackups:(0,N.IT)(e,"real-time-backups"),partnerCoupon:(0,S.ly)(e),isWoA:(0,S.lI)(e),backupUndoEvent:(0,A.Zc)(e),backupUndoEventLoaded:(0,A._z)(e),backupUndoEventIsFetching:(0,A.j)(e)})),(e=>({connectUser:()=>e((0,j.k0)())})))(O)},69043:(e,t,a)=>{"use strict";a.d(t,{A:()=>N});var s=a(5932),n=a(58454),i=a(10580),r=a(3924),o=a(56427),c=a(86087),l=a(27723),p=a(13022),d=a(63242),u=a(35207),m=a(70557),h=a(53835),g=a(6838),k=a(28120),f=a.n(k),v=a(51609),E=a(84952),_=a(34679),b=a(2065),y=a(82656),w=a(77423);const __=l.__,_x=l._x,C="admin.php?page=jetpack-boost",A=["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:k,isBoostInstalled:f,isBoostActive:E,hasActiveBoostPurchase:_,latestSpeedScores:b={}})=>{const y="offline"===t,[w,S]=(0,v.useState)(!1),[N,M]=(0,v.useState)(!1),[O,P]=(0,v.useState)(!1),[L,I]=(0,v.useState)("C"),[D,z]=(0,v.useState)(1),[U,F]=(0,v.useState)(0),[V,B]=(0,v.useState)(0),[H,J]=(0,v.useState)(!1),q=f&&E,W=!(q||y||k||H),G=_x("Boost","The Jetpack Boost product name, without the Jetpack prefix","jetpack"),K=()=>{F(b.scores.mobile),B(b.scores.desktop),I((0,n.T)(b.scores.mobile,b.scores.desktop)),z((0,n.US)(1e3*b.timestamp))};(0,v.useEffect)((()=>{b&&(0,n.US)(1e3*b.timestamp)<21?K():(async()=>{if(!y&&!q){S(!0);try{const e=await(0,n.sE)(!0,r,a,o),t=(0,n.T)(e.current.mobile,e.current.desktop);I(t),F(e.current.mobile),B(e.current.desktop),z(0),S(!1)}catch(e){h.A.tracks.recordEvent("jetpack_boost_speed_score_error",{feature:j,position:"at-a-glance",error:e}),b&&b.scores?K():J(!0),S(!1)}}})()}),[]);const $=()=>{switch(L){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")}}},Y=(0,v.useCallback)((()=>{if(!q)return f?P(!0):M(!0),h.A.tracks.recordJetpackClick({target:"boost_instant_tests_install",type:f?"activate":"install",feature:j}),s.Ay.installPlugin(j,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>d())).finally((()=>{M(!1),P(!1)}))}),[d,f,q]);return React.createElement("div",{className:"dash-boost-speed-score"},W?React.createElement(React.Fragment,null,w?React.createElement(m.A,{className:"dash-boost-speed-score__section-header",label:G}):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"),L),React.createElement(x,null)),React.createElement("p",{className:(0,p.A)("dash-boost-speed-score__score-text",["C","D","E","F"].includes(L)?"warning":"")},(()=>{switch(L){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(D){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"),D)}})()),React.createElement("button",{className:"dash-boost-speed-score__install-button-link",onClick:Y,disabled:N||O},(()=>{let e;if(!q)return N?e=__("Installing…","jetpack"):O?e=__("Activating…","jetpack"):f&&(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.A,{score:U,active:!0,isLoading:w,showPrevScores:!1,scoreBarType:"mobile"}),React.createElement(i.A,{score:V,active:!0,isLoading:w,showPrevScores:!1,scoreBarType:"desktop"}))):React.createElement(m.A,{className:"dash-boost-speed-score__section-header",label:G}),React.createElement("div",null,React.createElement(u.A,{pluginName:G,pluginSlug:j,pluginFiles:A,pluginLink:e+C,installOrActivatePrompt:(0,c.createInterpolateElement)((0,l.sprintf)("<b>%1$s<Info/><br/></b>%2$s",$().top,$().bottom),{br:React.createElement("br",null),b:React.createElement("b",null),Info:React.createElement(R,null)}),installedPrompt:_?__("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+C}),Info:React.createElement(T,null)}),plan:(0,g.EP8)(g.WcS)})))};S.propTypes={siteAdminUrl:f().string.isRequired,siteConnectionStatus:f().oneOfType([f().bool,f().string]).isRequired,siteUrl:f().string.isRequired,apiRoot:f().string.isRequired,apiNonce:f().string.isRequired,fetchingPluginsData:f().bool.isRequired,isBoostInstalled:f().bool.isRequired,isBoostActive:f().bool.isRequired,hasActiveBoostPurchase:f().bool.isRequired,latestSpeedScores:f().shape({timestamp:f().number,scores:f().shape({mobile:f().number,desktop:f().number}),theme:f().string})};const N=(0,E.Ng)((e=>({siteConnectionStatus:(0,_.i$)(e),siteUrl:(0,b.XG)(e),apiRoot:(0,b.O3)(e),apiNonce:(0,b.Co)(e),fetchingPluginsData:(0,w.rC)(e),isBoostInstalled:A.some((t=>(0,w.O8)(e,t))),isBoostActive:A.some((t=>(0,w.gT)(e,t))),hasActiveBoostPurchase:(0,y.Z$)(e),latestSpeedScores:(0,b.BG)(e)})),(e=>({fetchPluginsData:()=>e((0,w.bR)())})))(S),x=()=>{const e=(0,v.useCallback)((()=>{h.A.tracks.recordJetpackClick({target:"boost-grade-info-button",feature:j})}),[]);return React.createElement("div",{className:"boost-grade-info"},React.createElement(d.A,{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.A.tracks.recordJetpackClick({target:"boost-conversion-loss-info-button",feature:j})}),[]),t=(0,v.useCallback)((()=>{h.A.tracks.recordJetpackClick({target:"boost-conversion-loss-info-source",feature:j})}),[]);return React.createElement("div",{className:"boost-conversion-loss-info"},React.createElement(d.A,{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"))))},T=()=>{const e=(0,r.A)("jetpack-boost-critical-css"),t=(0,v.useCallback)((()=>{h.A.tracks.recordJetpackClick({target:"boost-critical-css-info-button",feature:j})}),[]),a=(0,v.useCallback)((()=>{h.A.tracks.recordJetpackClick({target:"boost-critical-css-info-link",feature:j})}),[]);return React.createElement("div",{className:"boost-critical-css-info"},React.createElement(d.A,{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"))))}},98668:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(86087),n=a(27723),i=a(43345),r=a(27326),o=a(16830),c=a(31497),l=a(28120),p=a.n(l),d=a(51609),u=a.n(d),m=a(84952),h=a(34679),g=a(2065);const __=n.__,_x=n._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.A,{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.A,{icon:"globe",size:64}),u().createElement("div",{className:"jp-connection-settings__text"},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.A,{asLink:!0,autoOpenInDisconnectRoute:!0})))))),e}userConnection(){const e=this.props.isConnectionOwner?null:u().createElement(i.A,{asBanner:!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.A,{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"):this.props.wpComConnectedUser?.email?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,s.createInterpolateElement)((0,n.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"},u().createElement(c.A,{icon:"user",size:64}),u().createElement("div",{className:"jp-connection-settings__text"},__("Failed to fetch connection data, please try again later.","jetpack")))):u().createElement("div",{className:"jp-connection-settings__info"},e),t)}render(){return u().createElement("div",null,u().createElement(o.A,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.A,{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.A,{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 f=(0,m.Ng)((e=>({siteConnectionStatus:(0,h.i$)(e),isOfflineMode:(0,h.hN)(e),userCanDisconnectSite:(0,g.xQ)(e),userCanConnectAccount:(0,g.Lv)(e),userGravatar:(0,g.Qz)(e),username:(0,g.TO)(e),isConnectionOwner:(0,h.uQ)(e),isLinked:(0,h._U)(e),siteIcon:(0,g.ZE)(e),isFetchingUserData:(0,h.eR)(e),wpComConnectedUser:(0,h.vn)(e)})))(k)},8506:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(3924),n=a(56427),i=a(86087),r=a(27723),o=a(74180),c=a(6838),l=a(28120),p=a.n(l),d=a(51609);const __=r.__,_x=r._x,u=["zero-bs-crm/ZeroBSCRM.php"];class m extends d.Component{static propTypes={siteAdminUrl:p().string.isRequired};render(){return React.createElement(o.A,{pluginName:_x("CRM","The Jetpack CRM product name, without the Jetpack prefix","jetpack"),pluginFiles:u,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:React.createElement(n.ExternalLink,{href:(0,s.A)("stats-nudges-crm-learn")}),br:React.createElement("br",null)}),plan:c.DGp})}}const h=m},71803:(e,t,a)=>{"use strict";a.d(t,{A:()=>z});var s=a(96072),n=a.n(s),i=a(50723),r=a(38745),o=a(27723),c=a(25250),l=a(37049),p=a(69326),d=a(63109),u=a(37866),m=a(63344),h=a(53835),g=a(66087),k=a(51609),f=a(84952),v=a(34679),E=a(2065),_=a(26508),b=a(76358),y=a(25444),w=a(96641),C=a(89514),A=a(69043),j=a(98668),S=a(8506),N=a(57282),x=a(56249),R=a(83889),T=a(63214),M=a(95916),O=a(55367),P=a(56773),L=a(64123),I=a(13157);const __=o.__;class D extends k.Component{trackSecurityClick=()=>h.A.tracks.recordJetpackClick("aag_manage_security_wpcom");trackUpgradeButtonView=(e="")=>()=>h.A.tracks.recordEvent("jetpack_wpa_aag_upgrade_button_view",{feature:e});shouldAddCard=(e,t=!1)=>{const a="inactive"!==this.props.getModuleOverride(e),s=!t||this.props.isModuleAvailable(e);return a&&s};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=React.createElement(c.A,{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}),s=React.createElement("div",null,React.createElement(c.A,{label:__("Connections","jetpack"),className:"jp-dash-section-header__connections"}),React.createElement(j.A,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(React.createElement(M.A,n()({},e,t,{trackUpgradeButtonView:this.trackUpgradeButtonView("scan")}))),k.push(React.createElement(w.A,n()({},t,{trackUpgradeButtonView:this.trackUpgradeButtonView("akismet")}))),this.shouldAddCard("protect",!0)&&k.push(React.createElement(T.A,e)),this.shouldAddCard("monitor",!0)&&k.push(React.createElement(x.A,e)),"active"===o&&k.unshift(React.createElement(y.A,n()({},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(React.createElement(R.A,e)),this.shouldAddCard("search")&&f.push(React.createElement(O.A,n()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("search")}))),this.shouldAddCard("videopress",!0)&&f.push(React.createElement(I.A,n()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("videopress")}))),this.props.userCanManagePlugins&&f.push(React.createElement(S.A,{siteAdminUrl:this.props.siteAdminUrl})),this.shouldAddCard("jetpack-ai")&&f.push(React.createElement(N.A,null));const v=!this.props.isOfflineMode&&this.props.partnerCoupon&&React.createElement(r.ry,{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.A}),E=g?React.createElement("div",{className:"jp-at-a-glance__pinned-bundle"},React.createElement(P.A,null),React.createElement(C.A,n()({},e,{siteRawUrl:this.props.siteRawUrl,rewindStatus:o,rewindStatusReason:m,trackUpgradeButtonView:this.trackUpgradeButtonView("backups")}))):null,_=this.props.userCanManagePlugins?React.createElement("div",{className:"jp-at-a-glance__pinned-bundle"},React.createElement(A.A,{siteAdminUrl:this.props.siteAdminUrl})):void 0;return React.createElement(i.Ay,null,React.createElement("div",{className:"jp-at-a-glance"},React.createElement("h1",{className:"screen-reader-text"},__("Jetpack At A Glance Dashboard","jetpack")),React.createElement(u.A,null),React.createElement(d.A,null),React.createElement(l.A,null),React.createElement(p.A,null),v,React.createElement(L.A,n()({},e,t)),React.createElement(U,{header:a,cards:k,pinnedBundle:E}),React.createElement(U,{header:React.createElement(c.A,{label:__("Performance and Growth","jetpack")}),cards:f,pinnedBundle:_}),s))}let v="";this.props.userCanViewStats&&(v=React.createElement(L.A,n()({},e,t)));const E=React.createElement(T.A,e),_=this.props.getOptionValue("protect")&&this.props.hasConnectedOwner;return this.props.userIsSubscriber?React.createElement("div",null,v,s):React.createElement("div",null,v,_&&a,_&&E,s)}}const z=(0,f.Ng)((e=>({userCanManageModules:(0,E.Ir)(e),userCanViewStats:(0,E.WC)(e),userCanManagePlugins:(0,E.JI)(e),userIsSubscriber:(0,E.EV)(e),isAtomicSite:(0,E.d9)(e),isOfflineMode:(0,v.hN)(e),getModuleOverride:t=>(0,_.d1)(e,t),isModuleAvailable:t=>(0,_.gp)(e,t),multisite:(0,E.xs)(e),scanStatus:(0,b.W4)(e),fetchingScanStatus:(0,b.G1)(e),hasConnectedOwner:(0,v.BG)(e),connectionStatus:(0,v.HF)(e),partnerCoupon:(0,E.ly)(e),pluginBaseUrl:(0,E.K$)(e),tracksUserData:(0,E.io)(e),apiRoot:(0,E.O3)(e),apiNonce:(0,E.Co)(e),registrationNonce:(0,E.N)(e)})))((0,m.t)(D)),U=({cards:e=[],header:t,pinnedBundle:a})=>e.length?React.createElement(React.Fragment,null,t,a,(0,g.chunk)(e,2).map((([e,t],a)=>React.createElement("div",{className:"jp-at-a-glance__item-grid",key:`card-${a}`},React.createElement("div",{className:"jp-at-a-glance__left"},e),React.createElement("div",{className:"jp-at-a-glance__right"},t))))):null},57282:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(3924),n=a(56427),i=a(86087),r=a(27723),o=a(27326),c=a(3983),l=a(6838),p=a(83101),d=a(84952),u=a(34679),m=a(2065),h=a(82656);const __=r.__;const g=(0,d.Ng)((e=>({hasConnectedOwner:(0,u.BG)(e),isOffline:(0,u.hN)(e),upgradeUrl:(0,p.F)(e,"jetpack-ai"),hasFeature:(0,h.IT)(e,"ai-assistant"),siteAdminUrl:(0,m.eu)(e),isMyJetpackReachable:(0,m.WS)(e)})),(e=>({connectUser:()=>e((0,u.k0)())})))((function(e){const{hasFeature:t,hasConnectedOwner:a,isOffline:r,isMyJetpackReachable:p}=e,d=__("Turn your ideas into ready-to-publish content at light speed. Generate content, images and optimize your publishing process with just a few clicks.","jetpack"),u={text:d,link:(0,s.A)("org-ai")},m=(0,i.createInterpolateElement)(__("<ExternalLink>Learn more</ExternalLink>","jetpack"),{ExternalLink:React.createElement(n.ExternalLink,{href:(0,s.A)("org-ai")})}),h=!a&&!r,g=a&&p&&!r&&!t,k=a&&p&&!r&&t;return React.createElement(o.A,{label:"AI",module:"ai-assistant",support:r?u:{},noToggle:!0,className:r||!t?"jp-dash-item__is-inactive":"",overrideContent:h&&React.createElement(c.Ay,{title:__("Connect your WordPress.com account to enable AI features and assistant.","jetpack"),plan:(0,l.EP8)(l.R3X),callToAction:__("Connect","jetpack"),onClick:e.connectUser,eventFeature:"ai-assistant",path:"dashboard",eventProps:{type:"connect"}})||g&&React.createElement(c.Ay,{title:d,description:m,plan:(0,l.EP8)(l.R3X),callToAction:__("Upgrade","jetpack"),href:e.upgradeUrl,eventFeature:"ai-assistant",path:"dashboard"})||k&&React.createElement(c.Ay,{title:d,callToAction:__("All features","jetpack"),href:`${e.siteAdminUrl}admin.php?page=my-jetpack#/jetpack-ai`,eventFeature:"ai-assistant",path:"dashboard",eventProps:{type:"teaser"},plan:(0,l.EP8)(l.R3X)})||null},r&&React.createElement("div",{className:"jp-dash-item__description"},__("Unavailable in Offline Mode","jetpack")),!r&&React.createElement("div",{className:"jp-dash-item__description"},d,React.createElement("br",null),m))}))},56249:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(3924),n=a(86087),i=a(27723),r=a(70386),o=a(27326),c=a(3983),l=a(53835),p=a(28120),d=a.n(p),u=a(51609),m=a(84952),h=a(34679),g=a(26508);const __=i.__;class k extends u.Component{static propTypes={isOfflineMode:d().bool.isRequired,isModuleAvailable:d().bool.isRequired,hasConnectedOwner:d().bool.isRequired};activateAndTrack=()=>{l.A.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,s.A)("jetpack-support-monitor")};if(this.props.getOptionValue("monitor")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner)return React.createElement(o.A,{label:e,module:"monitor",support:t,status:"is-working"},React.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,n.createInterpolateElement)(__("<Button>Activate Monitor</Button> to receive email notifications if your site goes down.","jetpack"),{Button:React.createElement(r.A,{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 React.createElement(o.A,{label:e,module:"monitor",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner,overrideContent:!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&React.createElement(c.Ay,{title:__("Connect your WordPress.com account to enable alerts if your site goes down.","jetpack"),noIcon:!0,callToAction:__("Connect","jetpack"),onClick:this.props.connectUser,eventFeature:"monitor",path:"dashboard",eventProps:{type:"connect"}})||null},React.createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode.","jetpack"):a))}render(){return this.props.isModuleAvailable&&this.getContent()}}const f=(0,m.Ng)((e=>({isOfflineMode:(0,h.hN)(e),isModuleAvailable:(0,g.gp)(e,"monitor"),hasConnectedOwner:(0,h.BG)(e)})),(e=>({connectUser:()=>e((0,h.k0)())})))(k)},83889:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(3924),n=a(86087),i=a(27723),r=a(70386),o=a(27326),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p),u=a(84952),m=a(34679),h=a(26508);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,s.A)("jetpack-support-photon")};return this.props.getOptionValue("photon")?d().createElement(o.A,{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.A,{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,n.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.A,{className:"jp-link-button",onClick:this.activatePhoton})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}const k=(0,u.Ng)((e=>({isOfflineMode:(0,m.hN)(e),isModuleAvailable:(0,h.gp)(e,"photon")})))(g)},63214:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(3924),n=a(37975),i=a(86087),r=a(27723),o=a(70386),c=a(27326),l=a(83906),p=a(28120),d=a.n(p),u=a(51609),m=a(84952),h=a(32819),g=a(34679),k=a(26508);const __=r.__;class f extends u.Component{static propTypes={isOfflineMode:d().bool.isRequired,protectCount:d().any.isRequired,isModuleAvailable: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,s.A)("jetpack-support-protect")};if(this.props.getOptionValue("protect")&&!this.props.isOfflineMode){const a=this.props.protectCount;return"N/A"===a?React.createElement(c.A,{label:e,module:"protect",support:t},React.createElement("p",{className:"jp-dash-item__description"},__("Loading…","jetpack"))):0===a?React.createElement(c.A,{label:e,module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},React.createElement("div",{className:"jp-dash-item__recently-activated-lower"},React.createElement(l.A,null),React.createElement("p",{className:"jp-dash-item__description"},__("Jetpack is actively blocking malicious login attempts. Data will display here soon!","jetpack")))):React.createElement(c.A,{label:e,module:"protect",support:t,status:"is-working"},React.createElement("h2",{className:"jp-dash-item__count"},(0,n.A)(a)),React.createElement("p",{className:"jp-dash-item__description"},__("Total malicious attacks blocked on your site.","jetpack")))}return React.createElement(c.A,{label:e,module:"protect",support:t,className:"jp-dash-item__is-inactive"},React.createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode&&__("Unavailable in Offline Mode","jetpack"),!this.props.isOfflineMode&&(0,i.createInterpolateElement)(__("<Button>Activate Protect</Button> to keep your site protected from malicious sign in attempts.","jetpack"),{Button:React.createElement(o.A,{className:"jp-link-button",onClick:this.activateProtect})})))}render(){return this.props.isModuleAvailable&&React.createElement("div",{className:"jp-dash-item__interior"},React.createElement(l.A,{isActive:this.props.getOptionValue("protect")}),this.getContent())}}const v=(0,m.Ng)((e=>({protectCount:(0,h.Pr)(e),isOfflineMode:(0,g.hN)(e),isModuleAvailable:(0,k.gp)(e,"protect")})),(e=>({connectUser:()=>e((0,g.k0)())})))(f)},95916:(e,t,a)=>{"use strict";a.d(t,{A:()=>T});var s=a(5932),n=a(3924),i=a(37975),r=a(86087),o=a(27723),c=a(70386),l=a(26592),p=a(27326),d=a(5546),u=a(3983),m=a(53835),h=a(6838),g=a(66087),k=a(83101),f=a(28120),v=a.n(f),E=a(51609),_=a.n(E),b=a(84952),y=a(32819),w=a(34679),C=a(2065),A=a(76358),j=a(82656),S=a(77423);const __=o.__,_n=o._n,_x=o._x,N=e=>_().createElement(p.A,{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,n.A)("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)),x=e=>N({className:"jp-dash-item__is-active",status:"is-working",content:e});class R extends E.Component{static propTypes={siteRawUrl:v().string.isRequired,siteAdminUrl:v().string.isRequired,trackUpgradeButtonView:v().func,vaultPressData:v().any.isRequired,scanThreats:v().any.isRequired,sitePlan:v().object.isRequired,isOfflineMode:v().bool.isRequired,isVaultPressInstalled:v().bool.isRequired,fetchingSiteData:v().bool.isRequired,upgradeUrl:v().string.isRequired,hasConnectedOwner:v().bool.isRequired};static defaultProps={siteRawUrl:"",siteAdminUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isOfflineMode:!1,isVaultPressInstalled:!1,fetchingSiteData:!1,trackUpgradeButtonView:g.noop};trackScansClick=()=>{m.A.tracks.recordJetpackClick({type:"scans-link",target:"at-a-glance",feature:"scans"})};onActivateVaultPressClick=()=>(m.A.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"vaultpress"}),this.props.createNotice("is-info",__("Activating VaultPress…","jetpack"),{id:"activating-vaultpress"}),s.Ay.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 N({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,n.A)("vaultpress-help")})})});if((0,g.get)(e,["data","features","security"],!1)){const t=this.props.scanThreats;if(0!==t)return this.renderThreatsFound(t,(0,n.A)("vaultpress-dashboard"));if("success"===e.code)return N({status:"is-working",content:__("No threats found, you're good to go!","jetpack")})}if(this.props.fetchingSiteData)return N({content:__("Loading…","jetpack")});const a=!1!==this.props.sitePlan,s=["is-premium-plan","is-business-plan"].includes(this.props.planClass);return a&&s?this.props.isVaultPressInstalled?N({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.A,{className:"jp-link-button",onClick:this.onActivateVaultPressClick})}))]}):N({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,n.A)("calypso-plugins-vaultpress"),target:"_blank",rel:"noopener noreferrer"})}))]}):N({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:t?this.getUpgradeBanner():this.getConnectBanner()})}getUpgradeBanner(){return _().createElement(u.Ay,{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.EP8)(h.FxV),trackBannerDisplay:this.props.trackUpgradeButtonView})}getConnectBanner(){return _().createElement(u.Ay,{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.EP8)(h.FxV)})}renderAction(e,t){return this.props.isAtomicSite?null:_().createElement(l.A,{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,x([_().createElement("h2",{key:"header",className:"jp-dash-item__count is-alert"},(0,i.A)(e)),_().createElement("p",{key:"description",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,n.A)("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,x(__("Enter your SSH, SFTP, or FTP credentials to enable one-click fixes","jetpack")),this.renderAction((0,n.A)("jetpack-scan-dash-credentials",{site:t}),__("Enter credentials","jetpack")));switch(e.state){case"provisioning":return _().createElement(_().Fragment,null,x(__("We are configuring your site protection.","jetpack")));case"idle":case"scanning":return _().createElement(_().Fragment,null,x(__("No security threats found. Your site will continue to be monitored for future threats.","jetpack")),this.renderAction((0,n.A)("calypso-scanner",{site:t}),__("View security scan details","jetpack")))}return!1}getUpgradeContent(){return N({className:"jp-dash-item__is-inactive",overrideContent:this.getUpgradeBanner()})}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 N({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?N({content:__("Loading…","jetpack")}):this.getContent())}}const T=(0,b.Ng)((e=>{const t=(0,j.X6)(e);return{isAtomicSite:(0,C.d9)(e),isOfflineMode:(0,w.hN)(e),scanStatus:(0,A.W4)(e),fetchingScanStatus:(0,A.G1)(e),isVaultPressInstalled:(0,S.O8)(e,"vaultpress/vaultpress.php"),fetchingVaultPressData:(0,y.en)(e),vaultPressData:(0,y.Cc)(e),scanThreats:(0,y.mK)(e),fetchingSiteData:(0,j.Kb)(e),sitePlan:t,planClass:(0,h.IPX)((0,g.get)(t,"product_slug","")),showBackups:(0,C.Fp)(e),upgradeUrl:(0,k.F)(e,"scan"),hasConnectedOwner:(0,w.BG)(e)}}),(e=>({createNotice:d.Fc,removeNotice:d.fj,connectUser:()=>e((0,w.k0)())})))(R)},55367:(e,t,a)=>{"use strict";a.d(t,{A:()=>S});var s=a(3924),n=a(86087),i=a(27723),r=a(70386),o=a(26592),c=a(27326),l=a(3983),p=a(53835),d=a(6838),u=a(66087),m=a(83101),h=a(28120),g=a.n(h),k=a(51609),f=a.n(k),v=a(84952),E=a(34679),_=a(2065),b=a(82656);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"),A=e=>f().createElement(c.A,{label:__("Search","jetpack"),module:"search",support:{text:C,link:(0,s.A)("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent},f().createElement("p",{className:"jp-dash-item__description"},e.content));class j 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.A.tracks.recordJetpackClick({type:"configure-search-link",target:"at-a-glance",feature:"search"})};trackAddSearchWidgetLink=()=>{p.A.tracks.recordJetpackClick({type:"search-widget-link",target:"at-a-glance",feature:"search"})};trackAddSearchBlockLink=()=>{p.A.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?A({status:"",content:__("Loading…","jetpack")}):this.props.isOfflineMode?A({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")?f().createElement("div",{className:"jp-dash-item"},f().createElement(c.A,{label:__("Search","jetpack"),module:"search",support:{text:C,link:(0,s.A)("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0},f().createElement("p",{className:"jp-dash-item__description"},__("Jetpack Search is powering search on your site.","jetpack"))),this.props.hasInstantSearch&&f().createElement(o.A,{compact:!0,className:"jp-search-config-aag",href:"admin.php?page=jetpack-search-configure",onClick:this.trackConfigureSearchLink},w),!this.props.hasInstantSearch&&!this.props.isBlockThemeActive&&f().createElement(o.A,{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&&f().createElement(o.A,{compact:!0,className:"jp-search-config-aag",href:"site-editor.php",onClick:this.trackAddSearchBlockLink},__("Add a Search Block","jetpack"))):A({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,n.createInterpolateElement)(__("<Button>Activate</Button> to help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),{Button:f().createElement(r.A,{className:"jp-link-button",onClick:this.activateSearch})})}):A({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:f().createElement(l.Ay,{callToAction:(0,m.$)()?__("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.EP8)(d.JvE),icon:"search",trackBannerDisplay:this.props.trackUpgradeButtonView})})}}const S=(0,v.Ng)((e=>({isBlockThemeActive:(0,_.JQ)(e),isOfflineMode:(0,E.hN)(e),isFetching:(0,b.SN)(e),hasClassicSearch:(0,b.IT)(e,"search"),hasInstantSearch:(0,b.IT)(e,"instant-search"),upgradeUrl:(0,m.F)(e,"search"),hasConnectedOwner:(0,E.BG)(e)})),(e=>({connectUser:()=>e((0,E.k0)())})))(j)},56773:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(3924),n=a(86087),i=a(27723),r=a(70386),o=a(26592),c=a(53835),l=a(83101),p=a(51609),d=a.n(p),u=a(84952),m=a(82656),h=a(31497),g=a(53773);const __=i.__,_x=i._x;class k extends p.Component{trackUpgradeClick=()=>{c.A.tracks.recordJetpackClick({page:"aag",target:"upgrade-button",feature:"security"})};render(){const{hasActiveSecurityPurchase:e,isFetchingSitePurchases:t}=this.props;return e||t?null:d().createElement(o.A,{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,n.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.A,{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.A,{className:"dash-security-bundle--content-cta-button",href:(0,s.A)("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"},_x("Learn more","Learn more about the new plan","jetpack"),d().createElement(h.A,{className:"dops-card__link-indicator",icon:"external"})))))}}const f=(0,u.Ng)((e=>({hasActiveSecurityPurchase:(0,m.Y3)(e),isFetchingSitePurchases:(0,m.SN)(e),productDescriptionUrl:(0,l.F)(e,"security")})))(k)},46145:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(37975),n=a(3924),i=a(56427),r=a(38443),o=a(86087),c=a(27723),l=a(13022),p=a(70386),d=a(53835),u=a(28120),m=a.n(u),h=a(51609),g=a(84952),k=a(2065);const __=c.__,_x=c._x,_n=c._n;class f extends h.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=()=>d.A.tracks.recordJetpackClick("view_detailed_stats");trackViewWpcomStats=()=>d.A.tracks.recordJetpackClick("view_wpcom_stats");render(){const e=this.statsBottom()[0];return React.createElement("div",null,React.createElement("div",{className:"jp-at-a-glance__stats-summary"},React.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},React.createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Views today","Referring to a number of page views","jetpack")),React.createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),React.createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},React.createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Best overall day","Referring to a number of page views","jetpack")),React.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,s.A)(e.bestDay.count))),e.bestDay.day&&React.createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,r.dateI18n)(this.props.dateFormat,e.bestDay.day))),React.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime-views"},React.createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time views","Referring to a number of page views","jetpack")),React.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,s.A)(e.allTime.views))),React.createElement("div",{className:"jp-at-a-glance__stats-summary-alltime-comments"},React.createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time comments","Referring to a number of comments","jetpack")),React.createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,s.A)(e.allTime.comments)))),React.createElement("div",{className:"jp-at-a-glance__stats-cta"},React.createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),React.createElement("div",{className:"jp-at-a-glance__stats-ctas"},(0,o.createInterpolateElement)(__("<button>View detailed stats</button>","jetpack"),{button:React.createElement(p.A,{href:this.props.siteAdminUrl+"admin.php?page=stats",onClick:this.trackViewDetailedStats,primary:!0})}),this.props.isLinked&&!this.props.isOdysseyStatsEnabled&&(0,o.createInterpolateElement)(__("<ExternalLink>View on WordPress.com</ExternalLink>","jetpack"),{ExternalLink:React.createElement(i.ExternalLink,{onClick:this.trackViewWpcomStats,href:(0,n.A)("calypso-stats-insights",{site:this.props.siteRawUrl}),rel:"noopener noreferrer",target:"_blank",className:(0,l.A)("jp-at-a-glance__stats-ctas-wpcom-stats",this.props.className)})}))))}}f.propTypes={siteRawUrl:m().string.isRequired,siteAdminUrl:m().string.isRequired,statsData:m().object.isRequired,isLinked:m().bool.isRequired,dateFormat:m().string.isRequired},f.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1,dateFormat:"F j, Y"};const v=(0,g.Ng)((e=>({isOdysseyStatsEnabled:(0,k.jh)(e)})))(f)},64123:(e,t,a)=>{"use strict";a.d(t,{A:()=>R});var s=a(3924),n=a(37975),i=a(67142),r=a(56427),o=a(38443),c=a(86087),l=a(27723),p=a(70386),d=a(26592),u=a(21350),m=a(25250),h=a(97066),g=a(45078),k=a(53835),f=a(66087),v=a(28120),E=a.n(v),_=a(51609),b=a.n(_),y=a(84952),w=a(32819),C=a(34679),A=a(2065),j=a(26508),S=a(30138),N=a(46145);const __=l.__;class x 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.A.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=[];if("object"!=typeof i[e])return{chartData:r,totalViews:!1};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(0,f.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,s.A)(`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,n.A)(m)),className:"tooltip class"}]})})),{chartData:r,totalViews:c}}statsErrors(){return(0,f.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.A,{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(N.A,{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.A,{className:"jp-at-a-glance__stats-empty-container"},b().createElement("div",{className:"jp-at-a-glance__stats-empty"},b().createElement(i.A,{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.A,{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,s.A)("calypso-stats-insights",{site:this.props.siteRawUrl})})})));const e=this.statsChart(this.props.activeTab),t=e.chartData,a=e.totalViews,n=t.length&&a<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return b().createElement("div",{className:"jp-at-a-glance__stats-container"+(n&&" jp-at-a-glance__stats-container-empty")},n?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.A,{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,s.A)("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.A,{onClick:this.activateStats,primary:!0},__("Activate Stats","jetpack"))))}switchTo(e){k.A.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.A,{moduleName:__("Jetpack Stats","jetpack")})):this.props.isModuleAvailable&&b().createElement("div",null,b().createElement(h.A,{range:this.props.activeTab}),b().createElement(m.A,{label:__("Jetpack Stats","jetpack"),className:"jp-dash-section-header-stats"},this.maybeShowStatsTabs()),b().createElement(d.A,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},this.renderStatsArea()))}}const R=(0,y.Ng)((e=>({isModuleAvailable:(0,j.gp)(e,"stats"),activeTab:(0,w.vy)(e),dateFormat:(0,A.eW)(e),isOfflineMode:(0,C.hN)(e),isLinked:(0,C._U)(e),connectUrl:(0,C.Qp)(e),statsData:(0,f.isEmpty)((0,w.eF)(e))?(0,A.XP)(e):(0,w.eF)(e),isEmptyStatsCardDismissed:(0,S.Og)(e),getModuleOverride:t=>(0,j.d1)(e,t),isOdysseyStatsEnabled:(0,A.jh)(e),isAtomicSite:(0,A.d9)(e)})),(e=>({switchView:t=>e((0,w.De)(t)),fetchStatsData:t=>e((0,w.cS)(t))})))(x)},13157:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(3924),n=a(72989),i=a(86087),r=a(27723),o=a(70386),c=a(27326),l=a(3983),p=a(6838),d=a(66087),u=a(83101),m=a(28120),h=a.n(m),g=a(51609),k=a.n(g),f=a(84952),v=a(34679),E=a(26508),_=a(82656);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,s.A)("jetpack-support-videopress")},{hasConnectedOwner:a,hasVideoPressFeature:d,hasVideoPressUnlimitedStorage:u,isFetching:m,isOffline:h,upgradeUrl:g,videoPressStorageUsed:f}=this.props,v=d&&!u&&null!==f,E=a&&!d&&!h&&!m,_=d||null===f||0!==f?__("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.A,{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")),v&&k().createElement("div",{className:"jp-dash-item__videopress-storage"},k().createElement(n.A,{progress:f/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(f/1024)),{strong:k().createElement("strong",null)})))),E&&k().createElement(l.Ay,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:_,disableHref:"false",eventFeature:"videopress",path:"dashboard",plan:(0,p.EP8)(p.SyV),feature:"jetpack_videopress",href:g,trackBannerDisplay:this.props.trackUpgradeButtonView}))}):k().createElement(c.A,{label:e,module:"videopress",support:t,className:"jp-dash-item__is-inactive",noToggle:!a,overrideContent:a||h?null:k().createElement(l.Ay,{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.EP8)(p.SyV)})},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.A,{className:"jp-link-button",onClick:this.activateVideoPress})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}const y=(0,f.Ng)((e=>({hasConnectedOwner:(0,v.BG)(e),hasVideoPressFeature:(0,_.IT)(e,"videopress-1tb-storage")||(0,_.IT)(e,"videopress-unlimited-storage")||(0,_.IT)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,_.IT)(e,"videopress-unlimited-storage"),isModuleAvailable:(0,E.gp)(e,"videopress"),isOffline:(0,v.hN)(e),isFetching:(0,_.SN)(e),sitePlan:(0,_.X6)(e),upgradeUrl:(0,u.F)(e,"videopress"),videoPressStorageUsed:(0,_.$U)(e)})),(e=>({connectUser:()=>e((0,v.k0)())})))(b)},77699:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(20428),n=a.n(s),i=a(51609),r=a.n(i);class o extends r().Component{adminNoticesRef=r().createRef();componentDidMount(){const e=n()(this.adminNoticesRef.current),t=n()(".vp-deactivated");t.length>0&&t.each((function(){const t=n()(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 n()("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return n()("<div/>",{html:this.innerHTML})})),t.prependTo(e).css("display","flex")}));const a=n()(".vp-notice");a.length>0&&a.each((function(){const t=n()(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 s=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(s),t.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),t.find("h3").replaceWith((function(){return n()("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return n()("<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 s=n()(".woocommerce-message");s.length>0&&s.each((function(){const t=n()(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 n()("<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=n()(".notice");i.length>0&&i.each((function(){n()(this).hide()})),e.length>0&&n()(".dops-notice__dismiss").on("click",(function(){n()(this).parent().closest("div").hide()}))}render(){return r().createElement("div",{id:"jp-admin-notices",ref:this.adminNoticesRef,"aria-live":"polite"})}}const c=o},37012:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(69546),n=a(51437),i=a(27723),r=a(13022),o=a(66087),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p);const __=i.__,u={ios:{defaultSrc:s.d0+"/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,n.Y)().split("-")[0];return"en"===e?"en-us":`${e}-${e}`}},android:{defaultSrc:s.d0+"/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,n.Y)().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:s,utm_source:n,utm_medium:i,utm_campaign:o}=this.props,{imageSrc:c,hasExternalImageLoaded:l}=this.state,p=(0,r.A)("apps-badge",{[`${s}-app-badge`]:!0,"is-external-image":l}),m=u[s];return d().createElement("figure",{className:p},d().createElement("a",{href:a||m.getStoreLink(n,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},18589:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(69546),n=a(3924),i=a(86087),r=a(27723),o=a(13022),c=a(37012),l=a(26592),p=a(53835),d=a(26704),u=a(28120),m=a.n(u),h=a(51609),g=a.n(h),k=a(60247);const __=r.__;class f extends g().Component{static displayName="AppsCard";trackDownloadClick=e=>{p.A.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:this.props.location.pathname,store:e})};trackAppLinkClick=()=>{p.A.tracks.recordJetpackClick({target:"jetpack-apps-link",page:this.props.location.pathname})};getAppLinkSection=()=>{const e=(0,d.A)();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.A,{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.A,{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:s.d0+"get-apps-qr-code.svg",alt:"",width:114}));render(){const e=(0,o.A)(this.props.className,"jp-apps-card");return g().createElement("div",{className:e},g().createElement(l.A,{className:"jp-apps-card__content"},g().createElement("div",{className:"jp-apps-card__description"},g().createElement("img",{className:"jp-apps-card__top_img",src:s.d0+"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,n.A)("jetpack-plugin-dashboard-apps-card"),onClick:this.trackAppLinkClick})}))),this.getAppLinkSection()))}}f.propTypes={className:m().string};const v=(0,k.y)(f)},36336:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>b,Ng:()=>_,lZ:()=>E});var s=a(51113),n=a(13022),i=a(70386),r=a(26592),o=a(31497),c=a(76122),l=a(53835),p=a(6838),d=a(66087),u=a(28120),m=a.n(u),h=a(51609),g=a.n(h),k=a(84952),f=a(34679),v=a(2065);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:s}=this.props;if(e||t){const n=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",...n,...i,...s};l.A.tracks.recordJetpackClick(r)}};getIcon(){const{icon:e,iconAlt:t,iconSrc:a,iconRaw:n,iconWp:i,plan:r}=this.props;return n?g().createElement("div",{className:"dops-banner__icon-plan"},g().createElement("img",{src:n,alt:t})):!r||e&&a?i?g().createElement("div",{className:"dops-banner__icon-wp"},g().createElement(s.A,{icon:i})):g().createElement("div",{className:"dops-banner__icons"},g().createElement("div",{className:"dops-banner__icon"},e&&g().createElement(o.A,{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.A,{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.A,{plan:r}))}getContent(){const{callToAction:e,description:t,list:a,title:s,rna:n}=this.props;return g().createElement("div",{className:"dops-banner__content"},g().createElement("div",{className:"dops-banner__info"},g().createElement("div",{className:"dops-banner__title"},s),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.A,{icon:"checkmark",size:18}),e))))),e&&g().createElement("div",{className:"dops-banner__action"},g().createElement(i.A,{rna:n,compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0},e)))}render(){const{callToAction:e,className:t,plan:a,noIcon:s}=this.props,i=(0,p.IPX)(a),o=(0,p.nt$)(a),c=(0,p._qL)(a),l=(0,n.A)("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.L$c)(a)});return g().createElement(r.A,{className:l,href:e?null:this.getHref(),target:e||!this.getHref()?null:"_blank",onClick:e?d.noop:this.handleClick},!s&&this.getIcon(),this.getContent())}}function _(e){return(0,k.Ng)((e=>({currentVersion:(0,v.Mj)(e),isCurrentUserLinked:(0,f._U)(e),isConnectionOwner:(0,f.uQ)(e)})))(e)}const b=_(E)},57476:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(13022),n=a(51609),i=a.n(n);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,s.A)("dops-button-group",this.props.className);return i().createElement("span",{className:e},this.props.children)}}},70386:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(13022),n=a(66087),i=a(28120),r=a.n(i),o=a(51609),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:n.noop,borderless:!1};domNode=null;render(){const e=this.props.href?"a":"button",{primary:t,compact:a,scary:n,borderless:i,rna:r,className:o,...l}=this.props,p=(0,s.A)({"dops-button":!0,"is-compact":a,"is-primary":t,"is-scary":n,"is-borderless":i,"is-rna":r});return l.className=(0,s.A)(o,p),l.ref=e=>{this.domNode=e},c().createElement(e,l,this.props.children)}}},23443:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(13022),n=a(26592),i=a(66087),r=a(51609),o=a.n(r);class c extends o().Component{static displayName="CompactCard";render(){const e=(0,i.assign)({},this.props,{className:(0,s.A)(this.props.className,"is-compact")});return o().createElement(n.A,e,this.props.children)}}},26592:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(13022),n=a(66087),i=a(28120),r=a.n(i),o=a(51609),c=a.n(o),l=a(31497);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,s.A)("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,s.A)("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.A,{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,n.assign)((0,n.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.A,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)}u.Section=p,u.Footer=d;const m=u},8899:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(28120),n=a.n(s),i=a(51609),r=a.n(i),o=a(39249),c=a(28826);class l extends r().Component{static displayName="ModuleChartBarContainer";static propTypes={isTouch:n().bool,data:n().array,yAxisMax:n().number,width:n().number,barClick:n().func};buildBars=e=>{const t=this.props.data.length,a=this.props.chartWidth,s=a/t;let n="bottom right";return this.props.data.map((function(i,c){const l=s*(c+1);return l+230>a&&l+s-230>0&&(n="bottom left"),r().createElement(o.A,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:n,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.A,{data:this.props.data,labelWidth:42}))}}},39249:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(13022),n=a(31497),i=a(32507),r=a(28120),o=a.n(r),c=a(51609),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),n=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:n+"%"};i.push(l().createElement("div",{key:"spacer",className:(0,s.A)(o),style:u}));const m={top:n+"%"};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 s;return e.icon&&(s=l().createElement(n.A,{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"},s,e.label)))}));return l().createElement(i.A,{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,s.A)(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())}}},21350:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(27723),n=a(34388),i=a(66087),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(8899);const _x=s._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,n.G)()?(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 s=Math.ceil((t+1)/a)*a;return s<10&&(s=10),s};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 s;return e.length&&this.isEmptyChart(e)&&(s=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.A,{barClick:this.props.barClick,data:a,yAxisMax:t,chartWidth:this.state.width,isTouch:(0,n.G)()}),s)}}},37328:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(28120),n=a.n(s),i=a(51609),r=a.n(i);class o extends r().Component{static displayName="ModuleChartLabel";static propTypes={width:n().number.isRequired,x:n().number.isRequired,label:n().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)}}},28826:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(66087),n=a(28120),i=a.n(n),r=a(51609),o=a.n(r),c=a(37328);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,s.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 s=a.clientWidth;a.style.overflow="visible";const n=s/(t.data.length||1),i=t.labelWidth,r=Math.ceil(i/n);this.setState({divisor:r,spacing:n})};render(){const e=this.props.data,t=e.map((function(t,a){const s=a*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2;let n;return(e.length-a-1)%this.state.divisor==0&&(n=o().createElement(c.A,{key:a,label:t.label,width:this.props.labelWidth,x:s})),n}),this);return o().createElement("div",{ref:this.axisRef,className:"dops-chart__x-axis"},t)}}},47982:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(96072),n=a.n(s),i=a(13022),r=a(34484),o=a(78888),c=a(66087),l=a(28120),p=a.n(l),d=a(51609),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.A)("dops-clipboard-button-input",this.props.className)},u().createElement(o.A,n()({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),u().createElement(r.A,{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))}}},43345:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var s=a(96072),n=a.n(s),i=a(3924),r=a(39384),o=a(56427),c=a(86087),l=a(27723),p=a(93832),d=a(70386),u=a(2822),m=a(3983),h=a(53835),g=a(28120),k=a.n(g),f=a(51609),v=a.n(f),E=a(84952),_=a(34679),b=a(2065),y=a(82656),w=a(752),C=a(17949);const __=l.__;class A extends v().Component{static displayName="ConnectButton";static propTypes={connectUser:k().bool,from:k().string,asLink:k().bool,asBanner:k().bool,connectLegend:k().string,connectInPlace:k().bool,customConnect:k().func,autoOpenInDisconnectRoute:k().bool,rna:k().bool,compact:k().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=>{e&&e.preventDefault(),h.A.tracks.recordJetpackClick("manage_site_connection"),this.toggleVisibility()};handleDisconnected=()=>{this.props.fetchConnectUrl(),this.props.fetchSiteConnectionStatus()};toggleVisibility=()=>{this.setState({showModal:!this.state.showModal})};loadConnectionScreen=e=>{e&&e.preventDefault(),this.props.isAuthorizing||this.props.fetchingConnectUrl||(h.A.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(C.A,{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,w.A)(this.props.unlinkUser),onClick:this.props.unlinkUser,disabled:this.props.isUnlinking},this.props.connectLegend||__("Disconnect your WordPress.com account","jetpack")));if(this.props.asBanner)return v().createElement(m.Ay,{title:__("Get the most out of Jetpack by connecting your WordPress.com account","jetpack"),noIcon:!0,callToAction:__("Connect","jetpack"),onClick:this.loadConnectionScreen,eventFeature:"connect-account",path:"dashboard",eventProps:{type:"connect"}});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.A,n()({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(m.Ay,{title:__("Your site is connected to WordPress.com.","jetpack"),noIcon:!0,callToAction:this.props.connectLegend||__("Manage","jetpack"),onClick:this.handleOpenModal,eventFeature:"manage-site-connection",path:"dashboard",eventProps:{type:"manage"}});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.A,t,a)};render(){return v().createElement("div",null,v().createElement(u.A,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.A)("wpcom-tos")}),shareDetailsLink:v().createElement(o.ExternalLink,{href:(0,i.A)("jetpack-support-what-data-does-jetpack-sync")})})),this.renderContent(),v().createElement(r.DisconnectDialog,{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,E.Ng)((e=>({siteRawUrl:(0,b.XG)(e),isSiteConnected:(0,_.i$)(e),isDisconnecting:(0,_.mz)(e),fetchingConnectUrl:(0,_.s6)(e),connectUrl:(0,_.Qp)(e),isLinked:(0,_._U)(e),isUnlinking:(0,_.Vg)(e),isAuthorizing:(0,_.Cq)(e),isSafari:(0,b.nr)(e),doNotUseConnectionIframe:(0,b.IJ)(e),apiNonce:(0,b.Co)(e),apiRoot:(0,b.O3)(e),connectedPlugins:(0,b.ZL)(e),siteBenefits:(0,y.Up)(e),pluginUrl:(0,b.K$)(e),userWpComLogin:(0,b.Dd)(e),userWpComId:(0,b.nZ)(e),connectedSiteId:(0,b.V2)(e)})),(e=>({fetchConnectUrl:()=>e((0,_.mo)()),fetchSiteConnectionStatus:()=>e((0,_.ks)()),unlinkUser:()=>e((0,_.Pb)()),doConnectUser:(t,a)=>e((0,_.k0)(t,a))})))(A)},43100:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(27723),n=a(26592),i=a(43345),r=a(53835),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(84952),u=a(34679);const __=s.__,m=e=>{const{feature:t,featureLabel:a,text:o,doConnectUser:c}=e,d="unlinked-user-connect",u=(0,l.useCallback)((()=>{r.A.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(n.A,{compact:!0,className:"jp-connect-user-bar__card"},p().createElement("span",null,(0,s.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.A,{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.Ng)(null,(e=>({doConnectUser:(t,a)=>e((0,u.k0)(t,a))})))(m)},94197:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(96072),n=a.n(s),i=a(47656),r=a(18089),o=a(27723),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p),u=a(84952),m=a(34679);const __=o.__;class h extends d().Component{static propTypes={title:l().string.isRequired,description:l().node,from:l().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 d().createElement(i.A,{title:t,hideCloseButton:!0,actions:[d().createElement(r.A,n()({key:"connect"},a))]},e)}}const g=(0,u.Ng)((e=>e),(e=>({doConnectUser:(t,a)=>e((0,m.k0)(t,a))})))(h)},49990:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(67142),n=a(85879),i=a(39384),r=a(56427),o=a(86087),c=a(27723),l=a(53835),p=a(28120),d=a.n(p),u=a(51609),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:f,redirectTo:v,autoTrigger:E,isSiteConnected:_,setHasSeenWCConnectionModal:b}=e;(0,u.useEffect)((()=>{b()}),[b]);const y=(0,u.useCallback)((()=>{l.A.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(s.A,null)),m().createElement("h2",null,t),c,_&&m().createElement(r.Button,{variant:"primary",className:"jp-contextualized-connection__button",label:__("Continue to Jetpack","jetpack"),href:v,onClick:y},__("Continue to Jetpack","jetpack")),!_&&m().createElement(m().Fragment,null,m().createElement(i.ConnectButton,{autoTrigger:E,apiRoot:h,apiNonce:g,registrationNonce:k,redirectUri:f,connectLabel:d}),m().createElement("div",{className:"jp-contextualized-connection__tos"},m().createElement(n.A,{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},68339:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(28120),n=a.n(s),i=a(51609),r=a.n(i);const o=class extends r().PureComponent{static displayName="Count";static propTypes={count:n().number.isRequired};render(){return r().createElement("span",{className:"dops-count"},this.numberFormat(this.props.count))}}},27326:(e,t,a)=>{"use strict";a.d(t,{A:()=>S});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(13022),c=a(70386),l=a(26592),p=a(63344),d=a(60619),u=a(11346),m=a(70557),h=a(9520),g=a(53835),k=a(66087),f=a(72747),v=a(28120),E=a.n(v),_=a(51609),b=a.n(_),y=a(84952),w=a(34679),C=a(2065),A=a(26508);const __=r.__,_x=r._x;class j 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.A.tracks.recordJetpackClick({target:"paid-button",feature:this.props.module,page:"aag"})};render(){let e,t,a="";const s=(0,o.A)(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.j,{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.A)("calypso-plugins-manage",{site:this.props.siteRawUrl})},b().createElement(u.A,{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.A,{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(f.A,{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:s},b().createElement(m.A,{label:this.props.label,cardBadge:a},this.props.userCanToggle?t:""),this.props.overrideContent?this.props.overrideContent:b().createElement(l.A,{className:"jp-dash-item__card",href:this.props.href},b().createElement("div",{className:"jp-dash-item__content"},this.props.support.text&&b().createElement(h.A,n()({module:e},this.props.support)),this.props.children)))}}const S=(0,y.Ng)((e=>({getModule:t=>(0,A.f_)(e,t),isOfflineMode:(0,w.hN)(e),userCanToggle:(0,C.Ir)(e),siteRawUrl:(0,C.XG)(e),siteAdminUrl:(0,C.eu)(e)})))((0,p.t)(j))},25250:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(13022),n=a(53835),i=a(28120),r=a.n(i),o=a(51609),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=()=>{n.A.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})};render(){let e,t;const a=(0,s.A)(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},13867:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(51609),n=a(84952),i=a(26556),r=a(32819);class o extends s.Component{UNSAFE_componentWillMount(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}render(){return null}}o.defaultProps={fetchAkismetData:()=>{}};const c=(0,n.Ng)((e=>({fetchAkismetData:(0,r.fI)(),fetchingAkismetData:(0,r.Ri)(e)})),(e=>(0,i.zH)({fetchAkismetData:r.fI},e)))(o)},17659:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(51609),n=a(84952),i=a(26556),r=a(32819);class o extends s.Component{UNSAFE_componentWillMount(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}render(){return null}}o.defaultProps={checkAkismetKey:()=>{}};const c=(0,n.Ng)((e=>({checkAkismetKey:(0,r.EI)(),isCheckingAkismetKey:(0,r.OY)(e)})),(e=>(0,i.zH)({checkAkismetKey:r.EI},e)))(o)},41286:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(51609),n=a(84952),i=a(26556),r=a(32819);class o extends s.Component{componentDidMount(){this.props.fetchingBackupUndoEvent||this.props.hasLoadedBackupUndoEvent||this.props.fetchBackupUndoEvent()}render(){return null}}o.defaultProps={fetchBackupUndoEvent:()=>{}};const c=(0,n.Ng)((e=>({fetchBackupUndoEvent:r.nn,fetchingBackupUndoEvent:(0,r.j)(e),hasLoadedBackupUndoEvent:(0,r._z)(e)})),(e=>(0,i.zH)({fetchBackupUndoEvent:r.nn},e)))(o)},83906:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(26556),c=a(32819),l=a(26508);class p extends i.Component{static propTypes={isActive:n().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.Ng)((e=>({fetchProtectCount:(0,c.Vg)(),fetchingProtectData:(0,c.QZ)(e),isModuleActivated:t=>(0,l.Yp)(e,t)})),(e=>(0,o.zH)({fetchProtectCount:c.Vg},e)))(p)},1066:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(51609),n=a(84952),i=a(79521);class r extends s.Component{static defaultProps={isFetchingIntroOffers:!1};componentDidMount(){this.props.isFetchingIntroOffers||this.props.fetchIntroOffers()}render(){return null}}const o=(0,n.Ng)((e=>({isFetchingIntroOffers:(0,i.wQ)(e)})),(e=>({fetchIntroOffers:()=>e((0,i.Iz)())})))(r)},86295:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(54365);class l extends i.Component{static propTypes={isFetchingRecommendationsConditional:n().bool,isOfflineMode:n().bool};static defaultProps={isFetchingRecommendationsConditional:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsConditional||this.props.isOfflineMode||this.props.fetchRecommendationsConditional()}render(){return null}}const p=(0,r.Ng)((e=>({isFetchingRecommendationsConditional:(0,c.Rk)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchRecommendationsConditional:()=>e((0,c.Lw)())})))(l)},37049:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(54365);class l extends i.Component{static propTypes={isFetchingRecommendationsData:n().bool,isOfflineMode:n().bool};static defaultProps={isFetchingRecommendationsData:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsData||this.props.isOfflineMode||this.props.fetchRecommendationsData()}render(){return null}}const p=(0,r.Ng)((e=>({isFetchingRecommendationsData:(0,c.VT)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchRecommendationsData:()=>e((0,c.Lx)())})))(l)},59094:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(54365);class l extends i.Component{static propTypes={isFetchingRecommendationsProductSuggestions:n().bool,isOfflineMode:n().bool};static defaultProps={isFetchingRecommendationsProductSuggestions:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsProductSuggestions||this.props.isOfflineMode||this.props.fetchRecommendationsProductSuggestions()}render(){return null}}const p=(0,r.Ng)((e=>({isFetchingRecommendationsProductSuggestions:(0,c.pB)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchRecommendationsProductSuggestions:()=>e((0,c.X7)())})))(l)},81802:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(54365);class l extends i.Component{static propTypes={isFetchingRecommendationsUpsell:n().bool,isOfflineMode:n().bool};static defaultProps={isFetchingRecommendationsUpsell:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsUpsell||this.props.isOfflineMode||this.props.fetchRecommendationsUpsell()}render(){return null}}const p=(0,r.Ng)((e=>({isFetchingRecommendationsUpsell:(0,c.mh)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchRecommendationsUpsell:()=>e((0,c.kV)())})))(l)},26468:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(89336);class l extends i.Component{static propTypes={isFetchingRewindStatus:n().bool,isOfflineMode:n().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.Ng)((e=>({isFetchingRewindStatus:(0,c.wp)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchRewind:()=>e((0,c.mF)())})))(l)},69326:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(76358);class l extends i.Component{static propTypes={isFetchingScanStatus:n().bool,isOfflineMode:n().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.Ng)((e=>({isFetchingScanStatus:(0,c.G1)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchScan:()=>e((0,c.sZ)())})))(l)},2822:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(51609),n=a(84952),i=a(82656);class r extends s.Component{static defaultProps={isFetchingSiteBenefitsData:!1};componentDidMount(){this.props.isFetchingSiteBenefits||this.props.fetchSiteBenefits()}render(){return null}}const o=(0,n.Ng)((e=>({isFetchingSiteBenefits:(0,i.OX)(e)})),(e=>({fetchSiteBenefits:()=>e((0,i.Eb)())})))(r)},93079:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(51609),n=a(84952),i=a(82656);class r extends s.Component{static defaultProps={isFetchingSiteDiscount:!1};componentDidMount(){this.props.isFetchingSiteDiscount||this.props.fetchSiteDiscount()}render(){return null}}const o=(0,n.Ng)((e=>({isFetchingSiteDiscount:(0,i.dS)(e)})),(e=>({fetchSiteDiscount:()=>e((0,i.zG)())})))(r)},37866:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(51609),n=a.n(s),i=a(84952),r=a(77423);class o extends n().Component{UNSAFE_componentWillMount(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}render(){return null}}const c=(0,i.Ng)((e=>({isFetchingPluginsData:(0,r.rC)(e)})),(e=>({fetchPluginsData:()=>e((0,r.bR)())})))(o)},77054:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(66087),n=a(28120),i=a.n(n),r=a(51609),o=a(84952),c=a(78795);class l extends r.Component{static propTypes={isFetchingSiteProducts:i().bool};static defaultProps={isFetchingSiteProducts:!1};componentDidMount(){!this.props.isFetchingSiteProducts&&(0,s.isEmpty)(this.props.siteProducts)&&this.props.fetchSiteProducts()}render(){return null}}const p=(0,o.Ng)((e=>({isFetchingSiteProducts:(0,c.ab)(e),products:(0,c.Y9)(e)})),(e=>({fetchSiteProducts:()=>e((0,c.IR)())})))(l)},63109:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(66087),n=a(28120),i=a.n(n),r=a(51609),o=a(84952),c=a(34679),l=a(82656);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,s.isEmpty)(this.props.sitePlan)||(this.props.fetchSiteData(),this.props.fetchSiteFeatures(),this.props.fetchAvailablePlans(),this.props.fetchSitePurchases())}render(){return null}}const d=(0,o.Ng)((e=>({isFetchingSiteData:(0,l.Kb)(e),isOfflineMode:(0,c.hN)(e),sitePlan:(0,l.X6)(e)})),(e=>({fetchSiteData:()=>e((0,l.aW)()),fetchSiteFeatures:()=>e((0,l.Rt)()),fetchAvailablePlans:()=>e((0,l.iV)()),fetchSitePurchases:()=>e((0,l.w3)())})))(p)},97066:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(51609),n=a(84952),i=a(32819);class r extends s.Component{UNSAFE_componentWillMount(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}render(){return null}}r.defaultProps={fetchStatsData:()=>{}};const o=(0,n.Ng)((e=>({fetchStatsData:t=>(0,i.cS)(e,t),fetchingStatsData:(0,i.Ev)(e)})),(e=>({fetchStatsData:t=>e((0,i.cS)(t))})))(r)},16830:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(51609),n=a.n(s),i=a(84952),r=a(34679),o=a(2065);class c extends n().Component{UNSAFE_componentWillMount(){!this.props.isFetchingUserData&&this.props.userCanConnectAccount&&this.props.fetchUserConnectionData()}render(){return null}}const l=(0,i.Ng)((e=>({isFetchingUserData:(0,r.eR)(e),userCanConnectAccount:(0,o.Lv)(e)})),(e=>({fetchUserConnectionData:()=>e((0,r.u6)())})))(c)},64610:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(51609),n=a(84952),i=a(26556),r=a(32819),o=a(26508);class c extends s.Component{componentDidMount(){this.props.fetchingVaultPressData||this.props.hasLoadedVaultPressData||!this.props.isModuleActivated("vaultpress")||this.props.fetchVaultPressData()}render(){return null}}c.defaultProps={fetchVaultPressData:()=>{}};const l=(0,n.Ng)((e=>({fetchVaultPressData:(0,r.WU)(),fetchingVaultPressData:(0,r.en)(e),isModuleActivated:t=>(0,o.Yp)(e,t),hasLoadedVaultPressData:(0,r.Pf)(e)})),(e=>(0,i.zH)({fetchVaultPressData:r.WU},e)))(c)},96337:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(34679),c=a(74215);class l extends i.Component{static propTypes={isFetchingWafSettings:n().bool,isOfflineMode:n().bool};static defaultProps={isFetchingWafSettings:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingWafSettings||this.props.isOfflineMode||this.props.fetchWafSettings()}render(){return null}}const p=(0,r.Ng)((e=>({isFetchingWafSettings:(0,c._e)(e),isOfflineMode:(0,o.hN)(e)})),(e=>({fetchWafSettings:()=>e((0,c.Mg)())})))(l)},27338:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(13022),n=a(26592),i=a(6838),r=a(66087),o=a(51609),c=a.n(o),l=a(84952),p=a(32819),d=a(34679),u=a(69531),m=a(2065),h=a(89336),g=a(76358),k=a(82656),f=a(752);class v 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,s.A)(this.props.className,"jp-dev-card"),t=(0,i.IPX)(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(n.A,{compact:!0,className:e},c().createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,f.A)(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.Ng)((e=>({isDevVersion:(0,m.gF)(e),sitePlan:(0,k.X6)(e),canDisplayDevCard:(0,u.M4)(e),isUserLinked:(0,d._U)(e),canViewStats:(0,m.WC)(e),isConnectionOwner:(0,d.uQ)(e),isAdmin:(0,m.xQ)(e),canEditPosts:(0,m.jM)(e),getVaultPressScanThreatCount:()=>(0,p.mK)(e),rewindStatus:(0,h.Qi)(e),scanStatus:(0,g.W4)(e)})),(e=>({switchPlanPreview:t=>e((0,u.IM)(t)),switchUserPermissions:t=>e((0,u.jF)(t)),switchThreats:t=>e((0,u.oS)(parseInt(t))),disableDevCard:()=>e((0,u.ug)()),switchRewindState:t=>e((0,u.JF)(t)),switchScanState:t=>e((0,u.TH)(t))})))(v)},97058:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(96072),n=a.n(s),i=a(13022),r=a(26592),o=a(23443),c=a(31497),l=a(66087),p=a(28120),d=a.n(p),u=a(51609),m=a.n(u),h=a(752);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.A,{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,s=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.A)(this.getClickAction())},o=(0,i.A)("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),c=(0,i.A)("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return m().createElement("div",n()({className:o},this.props.clickableHeader?r:{}),m().createElement("span",{className:"dops-foldable-card__main"},m().createElement("div",n()({className:c},this.props.clickableHeaderText?r:{}),a,s)),m().createElement("span",{className:"dops-foldable-card__secondary"},e,t,this.renderActionButton()))};render(){const e=this.props.compact?o.A:r.A,t=(0,i.A)("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},77279:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(3924),n=a(50723),i=a(38250),r=a(27723),o=a(13022),c=a(27338),l=a(53835),p=a(51609),d=a.n(p),u=a(84952),m=a(34679),h=a(69531),g=a(2065),k=a(752);const __=r.__,_x=r._x,f=()=>{const e=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-e/1.5),window.scrollY>e&&window.requestAnimationFrame(f)};class v extends d().Component{static displayName="Footer";resetOnClick=()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&this.props.resetOptions()};trackVersionClick=()=>{l.A.tracks.recordJetpackClick({target:"footer_link",link:"version"})};trackTermsClick=()=>{l.A.tracks.recordJetpackClick({target:"footer_link",link:"terms"})};trackAboutClick=()=>{l.A.tracks.recordJetpackClick({target:"footer_link",link:"about"})};trackPrivacyClick=()=>{window.requestAnimationFrame(f),l.A.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})};trackModulesClick=()=>{l.A.tracks.recordJetpackClick({target:"footer_link",link:"modules"})};trackDebugClick=()=>{l.A.tracks.recordJetpackClick({target:"footer_link",link:"debug"})};render(){const e=(0,o.A)(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,s.A)("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.A)(this.resetOnClick),onClick:this.resetOnClick}),this.props.isDevVersion&&a.push({label:_x("Dev Tools","Navigation item.","jetpack"),role:"button",onKeyDown:(0,k.A)(this.props.enableDevCard),onClick:this.props.enableDevCard}),d().createElement(n.Ay,null,d().createElement("div",{className:(0,o.A)("jp-footer",e)},d().createElement("div",{className:"jp-footer__container"},d().createElement(i.A,{menu:a,moduleNameHref:(0,s.A)("jetpack"),onAboutClick:this.trackAboutClick,onPrivacyClick:this.trackPrivacyClick,onTermsClick:this.trackTermsClick})),this.props.isDevVersion&&this.props.displayDevCard&&d().createElement(c.A,null)))}}const E=(0,u.Ng)((e=>({currentVersion:(0,g.Mj)(e),displayDevCard:(0,h.M4)(e),isAtomicPlatform:(0,g.zK)(e),isDevVersion:(0,g.gF)(e),isInIdentityCrisis:(0,m.T$)(e),siteConnectionStatus:(0,m.i$)(e),userCanManageOptions:(0,g.hN)(e)})),(e=>({resetOptions:()=>e((0,h.yB)("options")),enableDevCard:()=>e((0,h.$K)())})))(v)},94025:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(13022),n=a(31497),i=a(28120),r=a.n(i),o=a(51609),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,s.A)({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return c().createElement("div",{className:e},c().createElement("span",null,c().createElement(n.A,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}},34484:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(96072),n=a.n(s),i=a(39612),r=a.n(i),o=a(13022),c=a(70386),l=a(66087),p=a(28120),d=a.n(p),u=a(51609),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.A)("dops-clipboard-button",this.props.className);return m().createElement(c.A,n()({rna:this.props.rna,ref:this.buttonRef},(0,l.omit)(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}}},62413:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(96072),n=a.n(s),i=a(13022),r=a(38970),o=a(66087),c=a(51609),l=a.n(c);class p extends l().Component{static displayName="CompactFormToggle";render(){return l().createElement(r.A,n()({},(0,o.omit)(this.props,"className"),{className:(0,i.A)(this.props.className,"is-compact")}),this.props.children)}}},38970:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(13022),n=a(61933),i=a(28120),r=a.n(i),o=a(51609),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(n.A,{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,s.A)("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())}}},11895:(e,t,a)=>{"use strict";a.d(t,{FX:()=>g,dV:()=>d,hg:()=>h,kK:()=>m,lR:()=>u});var s=a(96072),n=a.n(s),i=a(27723),r=a(13022),o=(a(70386),a(98872)),c=a(66087),l=a(51609),p=a.n(l);i._x;const d=e=>p().createElement("fieldset",n()({},(0,c.omit)(e,"className"),{className:(0,r.A)(e.className,"jp-form-fieldset")}),e.children);class u extends p().Component{static displayName="FormLabel";render(){const{className:e,htmlFor:t,...a}=this.props;return p().createElement("label",n()({},a,{htmlFor:t,className:(0,r.A)(e,"jp-form-label")}),this.props.children)}}class m extends p().Component{static displayName="FormLegend";render(){return p().createElement("legend",n()({},(0,c.omit)(this.props,"className"),{className:(0,r.A)(this.props.className,"jp-form-legend")}),this.props.children)}}p().Component;p().Component;class h extends p().Component{static displayName="FormTextarea";render(){return p().createElement("textarea",n()({},(0,c.omit)(this.props,"className"),{className:(0,r.A)(this.props.className,"jp-form-textarea")}),this.props.children)}}p().Component;p().Component;class g extends p().Component{handleOnSelect=e=>{this.props.onOptionChange({target:{type:"select",name:this.props.name,value:e.value}})};render(){const e=[];return(0,c.forOwn)(this.props.validValues,((t,a)=>{e.push({label:t,value:a})})),p().createElement(o.A,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value,rna:this.props.rna})}}},10967:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(11346),n=a(44089),i=a(10067),r=a.n(i),o=a(84202),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p),u=a(84952),m=a(26556),h=a(5546);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.A.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(s.A,{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(n.A,{href:e.href,onClick:e.onClick},e.button))}),this);return e=e.concat(this.props.storeNotices.map((function(e,t){return d().createElement(s.A,{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 f=(0,u.Ng)((e=>({storeNotices:e.globalNotices})),(e=>(0,m.zH)({removeNotice:h.fj},e)))(k)},67961:(e,t,a)=>{"use strict";a.d(t,{I:()=>n,c:()=>s});const s="NEW_NOTICE",n="REMOVE_NOTICE"},5546:(e,t,a)=>{"use strict";a.d(t,{Er:()=>o,Fc:()=>r,fj:()=>i,tg:()=>c});var s=a(66087),n=a(67961);function i(e){return{noticeId:e,type:n.I}}function r(e,t,a={}){const i={noticeId:a.id||(0,s.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:n.c,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")},73161:(e,t,a)=>{"use strict";a.d(t,{x:()=>i});var s=a(26556),n=a(67961);function i(e=[],t){switch(t.type){case n.c:return[t.notice,...e];case n.I:return e.filter((e=>e.noticeId!==t.noticeId))}return e}(0,s.HY)({globalNotices:i})},31497:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(13022),n=a(28120),i=a.n(n),r=a(51609),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),n=this.needsOffsetY(e,this.props.size),i=(0,s.A)("gridicon",e,this.props.className,{"needs-offset":t,"needs-offset-x":a,"needs-offset-y":n});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},63242:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(13022),n=a(31497),i=a(61933),r=a(53835),o=a(66087),c=a(28120),l=a.n(c),p=a(51609),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,s.A)("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(n.A,{icon:"info-outline",size:18}),this.props.screenReaderText?d().createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",d().createElement(i.A,{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,s.A)("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.A.ga.recordEvent(e,"InfoPopover: "+t+a)}}}},71584:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(56427),n=a(70386),i=a(51609),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(s.Spinner,null)):a;return r().createElement(n.A,i,o)}},3983:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>m,Ng:()=>u,xz:()=>d});var s=a(36336),n=a(66087),i=a(28120),r=a.n(i),o=a(51609),c=a.n(o),l=a(84952),p=a(2065);class d extends s.lZ{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:n.noop,trackBannerDisplay:n.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(s.lZ,this.props):null}}function u(e){return(0,l.Ng)(((e,t)=>{const a=(0,p.Ir)(e);return{arePromotionsActive:(0,p.Xr)(e),userCanPurchasePlan:a,hidePromotionBanner:!!t.plan&&!a}}))((0,s.Ng)(e))}const m=u(d)},17949:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(3924),n=a(39384),i=a(56427),r=a(86087),o=a(27723),c=a(28120),l=a.n(c),p=a(51609),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},s)=>d().createElement(n.DisconnectCard,{title:a,value:e,description:t,key:s}))))),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,s.A)("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,s.A)("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,s.A)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})})))))};u.propTypes={siteBenefits:l().array,context:l().oneOf(["disconnect","deactivate"])};const m=u},42685:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(13022),n=a(31497),i=a(66087),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(752);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,s.A)(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.A)(this.maybeDismiss)},l().createElement("div",{className:e,role:"presentation",onClick:this.clickForeground,onKeyDown:(0,p.A)(this.clickForeground)},this.props.showDismiss&&l().createElement(n.A,{icon:"cross-small",className:"jp-dialogue-modern-full__dismiss",tabIndex:"0",onKeyDown:(0,p.A)(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},52123:(e,t,a)=>{"use strict";a.d(t,{m:()=>l});var s=a(69546),n=a(27723),i=a(28120),r=a.n(i),o=a(51609),c=a.n(o);const __=n.__,l=({altText:e=__("Loading…","jetpack")})=>c().createElement("div",{className:"jp-loading-icon"},c().createElement("img",{src:s.d0+"/jetpack-logomark-blue.svg",alt:e}));l.propTypes={altText:r().string}},93287:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(3924),n=a(67506),i=a(27723),r=a(53835),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(38310);const __=i.__,u=e=>{const t={path:"",isUserLinked:!1,isOwner:!1,isFetchingData:!1,isAgencyAccount:!1,...e};(0,l.useEffect)((()=>{r.A.tracks.recordEvent("jetpack_manage_banner_view",{feature:"manage",page:t.path})}),[t.path]);const a=(0,l.useCallback)((e=>{r.A.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,s.A)("jetpack-at-a-glance-to-jetpack-manage-dashboard"),h=o):(u=__("Sign up for free","jetpack"),m=(0,s.A)("jetpack-at-a-glance-to-jetpack-manage-sign-up"),h=c),p().createElement(n.A,{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,s.A)("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},13724:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(51609),n=a.n(s),i=a(84952),r=a(26556),o=a(71607);class c extends n().Component{static displayName="DismissableNotices";dismissJetpackActionNotice=()=>{this.props.dismissJetpackActionNotice(this.props.jetpackNotices)};renderNotices=()=>{this.props.jetpackNotices;return!1};render(){return n().createElement("div",null,this.renderNotices())}}const l=(0,i.Ng)((e=>({jetpackNotices:(0,o.C8)(e),isDismissed:t=>(0,o.i$)(e,t)})),(e=>(0,r.zH)({dismissJetpackActionNotice:o.Ll},e)))(c)},19327:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(27723),n=a(11346),i=a(28120),r=a.n(i),o=a(51609),c=a.n(o),l=a(30791);const __=s.__;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(n.A,{showDismiss:!1,text:this.props.text,status:"is-error",icon:"link-break",display:this.props.display},c().createElement(l.A,{errorCode:this.props.errorCode,errorData:this.props.errorData,action:this.props.action},__("Restore Connection","jetpack")))}}},91808:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>R});var s=a(69546),n=a(3924),i=a(86087),r=a(27723),o=a(94197),c=a(10967),l=a(11346),p=a(44089),d=a(28120),u=a.n(d),m=a(51609),h=a.n(m),g=a(84952),k=a(60247),f=a(84705),v=a(34679),E=a(2065),_=a(7237),b=a(82656),y=a(13724),w=a(78857),C=a(25679),A=a(76847);const __=r.__;class j extends h().Component{static displayName="DevVersionNotice";render(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&h().createElement(l.A,{showDismiss:!1,text:__("You are currently running a development version of Jetpack.","jetpack")},h().createElement(p.A,{href:s.Ns,external:!0},__("Submit Beta feedback","jetpack")))}}j.propTypes={isDevVersion:u().bool.isRequired,userIsSubscriber:u().bool.isRequired};class S extends h().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,r.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,r.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,i.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:h().createElement("a",{href:(0,n.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:h().createElement("ul",null,t.map(((e,t)=>h().createElement("li",{key:t},e))))});return h().createElement(l.A,{showDismiss:!1,status:"is-info",text:a},h().createElement(p.A,{href:(0,n.A)("jetpack-support-development-mode")},__("Learn More","jetpack")))}return!1}}S.propTypes={siteConnectionStatus:u().oneOfType([u().string,u().bool]).isRequired,siteOfflineMode:u().oneOfType([u().bool,u().object]).isRequired};class N extends h().Component{static displayName="UserUnlinked";render(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&h().createElement("div",{className:"jp-unlinked-notice"},h().createElement(o.A,{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:h().createElement(f.Ay,{icon:"wordpress",size:24}),className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0}))}}N.propTypes={connectUrl:u().string.isRequired,siteConnected:u().bool.isRequired};class x extends h().Component{static displayName="JetpackNotices";render(){const e=this.props.siteDataErrors.filter((e=>Object.hasOwn(e,"action"))),t=this.props.location.pathname.startsWith("/connect-user");return h().createElement("div",{"aria-live":"polite"},h().createElement(c.A,null),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&(this.props.connectionErrors.length>0||e.length>0)&&h().createElement(w.A,{errors:this.props.connectionErrors.concat(e),display:!this.props.isReconnectingSite}),h().createElement(A.A,null),h().createElement(j,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),h().createElement(S,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),h().createElement(C.A,null),h().createElement(y.A,null),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&!t&&h().createElement(N,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&h().createElement(l.A,{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&&h().createElement(l.A,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}))}}const R=(0,g.Ng)((e=>({connectUrl:(0,v.Qp)(e),siteConnectionStatus:(0,v.i$)(e),userCanConnectSite:(0,E.Hz)(e),userCanConnectAccount:(0,E.Lv)(e),userIsSubscriber:(0,E.EV)(e),isConnectionOwner:(0,v.uQ)(e),isLinked:(0,v._U)(e),isDevVersion:(0,E.gF)(e),isAtomicSite:(0,E.d9)(e),siteOfflineMode:(0,v.KK)(e),isInIdentityCrisis:(0,v.T$)(e),connectionErrors:(0,E.wz)(e),siteDataErrors:(0,b.F3)(e),isReconnectingSite:(0,v.Vs)(e),licensingError:(0,_.fZ)(e),hasConnectedOwner:(0,v.BG)(e)})),(e=>({clearLicensingError:()=>e((0,_.A5)())})))((0,k.y)(x))},78857:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(69546),n=a(27723),i=a(11346),r=a(44089),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(19327);const __=n.__;class u extends p().Component{static propTypes={errors:c().array.isRequired,display:c().bool};static defaultProps={display:!0};getAction(e,t,a,s,n){switch(e){case"reconnect":return p().createElement(d.A,{text:t,errorCode:a,errorData:s,action:e,display:this.props.display});case"support":return p().createElement(i.A,{text:t,status:"is-error",icon:"link-break",showDismiss:!1,display:this.props.display},p().createElement(r.A,{href:n,external:!0},__("Contact support","jetpack")))}return null}renderOne(e){const t=this.props.isDevVersion?s.Ns:s.Iu,a=this.getAction(e.action,e.message,e.code,Object.hasOwn(e,"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=>Object.hasOwn(e,"action")));for(const a of t)Object.hasOwn(e,a.action)||(e[a.action]=a);return Object.values(e).map((e=>this.renderOne(e)))}}},30791:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(39384),n=a(27723),i=a(5546),r=a(44089),o=a(53835),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p),u=a(84952),m=a(44254),h=a(34679);const __=n.__,g=e=>{const{restoreConnection:t}=(0,s.useRestoreConnection)(),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]),n=(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.A.tracks.recordEvent("jetpack_termination_error_notice_click",a()),n())}),[e.isReconnectingSite,a,n]);return(0,p.useEffect)((()=>{o.A.tracks.recordEvent("jetpack_termination_error_notice_view",a())}),[a]),d().createElement(r.A,{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.Ng)((e=>({isReconnectingSite:(0,h.Vs)(e)})),(e=>({beforeReconnectSite:()=>{e({type:m._ce}),e((0,i.Fc)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:m.c30}),e({type:m.gbL,connectUrl:t}),e((0,h.k0)())},reconnectFailed:t=>{e({type:m.jzm,error:t}),e((0,i.fj)("reconnect-jetpack")),e((0,i.Fc)("is-error",(0,n.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)},25679:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(27723),n=a(11346),i=a(51609),r=a.n(i),o=a(84952),c=a(60247),l=a(82656);const __=s.__;const p=(0,c.y)((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(n.A,{status:"is-warning",showDismiss:!1,text:(0,s.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.Ng)((e=>({activeSitePurchases:(0,l.Ec)(e)})))(p)},76847:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(3924),n=a(56427),i=a(86087),r=a(27723),o=a(11346),c=a(44089),l=a(3027),p=a(51609),d=a.n(p),u=a(84952),m=a(2065),h=a(71607);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,s.A)("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(n.ExternalLink,{href:(0,s.A)("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="",n="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"),n="is-success";break;case"authorized":a=__("You're fueled up and ready to go, Jetpack is now active.","jetpack"),n="is-success";break;case"linked":a=__("You're fueled up and ready to go.","jetpack"),n="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"),n="is-info",t=d().createElement(c.A,{href:(0,s.A)("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"})}),n="is-success";break;default:a=e}return[a,n,t]};renderContent=()=>{let e,t="is-info",a="";const s=this.props.jetpackStateNoticesErrorCode,n=this.props.jetpackStateNoticesMessageCode,i=this.props.jetpackStateNoticesMessageContent;if(s||n||i){if(s&&(a=this.getErrorFromKey(s),"access_denied"!==s&&(t="is-error")),i&&i.release_post_content&&!this.props.isAtomicPlatform)return d().createElement(l.A,{dismiss:this.dismissJetpackStateNotice,version:this.props.currentVersion,releasePostContent:i.release_post_content,featuredImage:i.release_post_featured_image,title:i.release_post_title});if(n){const s=this.getMessageFromKey(n);a=s[0],t=s[1],e=s[2]}if(""!==a)return d().createElement(o.A,{status:t,onDismissClick:this.dismissJetpackStateNotice,text:a},e)}};render(){return d().createElement("div",null,this.state.showNotice?this.renderContent():null)}}const k=(0,u.Ng)((e=>({currentVersion:(0,m.Mj)(e),isAtomicPlatform:(0,m.zK)(e),jetpackStateNoticesErrorCode:(0,h.sT)(e),jetpackStateNoticesMessageCode:(0,h.Fc)(e),jetpackStateNoticesErrorDescription:(0,h.nV)(e),jetpackStateNoticesMessageContent:(0,h.rp)(e),siteAdminUrl:(0,m.eu)(e)})))(g)},93553:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(489),n=a(85879),i=a(56427),r=a(27723),o=a(13022),c=a(70386),l=a(31497),p=a(53835),d=a(28120),u=a.n(d),m=a(51609),h=a.n(m);const __=r.__,g=e=>{const{icon:t,title:a,productSlug:d,description:u="",features:g=[],disclaimer:k,currencyCode:f,price:v,discountedPrice:E,billingDescription:_,callToAction:b,checkoutText:y,checkoutUrl:w,priority:C="primary",illustrationPath:A}=e,j=!!A,S=!!b;(0,m.useEffect)((()=>{p.A.tracks.recordEvent("jetpack_product_card_view",{type:d})}),[d]);const N=(0,m.useCallback)((()=>{p.A.tracks.recordEvent("jetpack_product_card_checkout_click",{type:d})}),[d]),x=(0,m.useCallback)((()=>{p.A.tracks.recordEvent("jetpack_product_card_disclaimer_click",{type:d})}),[d]),R=(0,o.A)({"jp-product-card":!0,"jp-product-card--has-media":j,"jp-product-card--has-cta":S}),T=(0,o.A)(["jp-product-card__checkout",`jp-product-card__checkout--${C}`]);return h().createElement("div",{className:R},S&&h().createElement("div",{className:"jp-product-card__cta"},h().createElement(l.A,{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.A,{icon:"checkmark"}),e)))),h().createElement("div",{className:"jp-product-card__price"},h().createElement(s.A,{currency:f,price:v,offPrice:E,showNotOffPrice:!!E,legend:_})),h().createElement(n.A,{agreeButtonLabel:y}),h().createElement(c.A,{className:T,href:w,onClick:N},y),k&&h().createElement("p",{className:"jp-product-card__disclaimer"},`${k.text} `,h().createElement(i.ExternalLink,{onClick:x,href:k.url,target:"_blank",rel:"noopener noreferrer"},k.link_text))),j&&h().createElement("img",{className:"jp-product-card__media",src:A,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},76168:(e,t,a)=>{"use strict";a.d(t,{z:()=>m});var s=a(27723),n=a(70386),i=a(57476),r=a(53835),o=a(51609),c=a.n(o),l=a(84952),p=a(34679),d=a(2065),u=a(26508);const __=s.__,m=(0,l.Ng)((e=>({canEditPosts:(0,d.jM)(e),canManageOptions:(0,d.hN)(e),hasConnectedOwner:(0,p.BG)(e),isCurrentUserLinked:(0,p._U)(e),isSiteConnected:(0,p.iV)(e),activeModules:(0,u.IW)(e),siteConnectionStatus:(0,p.i$)(e)})))((e=>{const{activeModules:t,canEditPosts:a,canManageOptions:s,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,f=(0,o.useCallback)((()=>{r.A.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})}),[]),v=(0,o.useCallback)((()=>{r.A.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&&!s){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.A,null,c().createElement(n.A,{compact:!0,href:"#/dashboard",primary:g&&!k,onClick:f},__("Dashboard","jetpack")),c().createElement(n.A,{compact:!0,href:"#/settings",primary:!g&&!k,onClick:v},__("Settings","jetpack"))))}))},4443:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(67142),n=a(53835),i=a(51609),r=a.n(i),o=a(84952),c=a(34679),l=a(2065),p=a(76168);class d extends r().Component{trackLogoClick=()=>{n.A.tracks.recordJetpackClick({target:"masthead",path:"logo"})};testConnection=()=>this.props.testConnection();render(){const{isWoASite:e,sandboxDomain:t,siteConnectionStatus:a}=this.props,n="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(s.A,{className:"jetpack-logo__masthead",height:40})),n,i),e&&r().createElement(p.z,{location:this.props.location})))}}const u=(0,o.Ng)((e=>({isWoASite:(0,l.lI)(e),sandboxDomain:(0,c.os)(e),siteConnectionStatus:(0,c.i$)(e)})),(e=>({testConnection:()=>e((0,c.Mb)())})))(d)},9221:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(96072),n=a.n(s),i=a(13022),r=a(73781),o=a(20428),c=a.n(o),l=a(66087),p=a(28120),d=a.n(p),u=a(51609),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.K)(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:s,title:r,...o}=this.props,{forwardedProps:c}=(0,l.omit)(o,"onRequestClose");switch(s){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",n()({className:(0,i.A)("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},45078:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(3924),n=a(86087),i=a(27723),r=a(13022),o=a(3983),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p);const __=i.__;class u extends o.xz{static propTypes={moduleName:l().string.isRequired};render(){if(!this.props.moduleName)return null;const e=(0,r.A)("module-overridden-banner",{"is-compact":this.props.compact});return d().createElement(o.xz,{className:e,title:this.props.moduleName,icon:"cog",description:(0,n.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,s.A)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}const m=(0,o.Ng)(u)},53600:(e,t,a)=>{"use strict";a.d(t,{Z:()=>p});var s=a(27723),n=a(66087),i=a(84952),r=a(34679),o=a(2065),c=a(26508),l=a(30138);const __=s.__;function p(e){return(0,i.Ng)(((e,t)=>({validValues:(a,s="")=>("string"==typeof(0,n.get)(t,["module","module"])&&(s=t.module.module),(0,c.W7)(e,s,a)),getOptionCurrentValue:(t,a)=>(0,c.Kb)(e,t,a),getSettingCurrentValue:(t,a="",s=!0)=>(0,l.PL)(e,t,a,s),getSiteRoles:()=>(0,o.PH)(e),isUpdating:t=>(0,l.Ny)(e,t),adminEmailAddress:(0,o.q1)(e),currentIp:(0,o.n9)(e),siteAdminUrl:(0,o.eu)(e),isCurrentUserLinked:(0,r._U)(e)})),(e=>({updateOptions:(t,a={})=>e((0,l.Xx)(t,a)),regeneratePostByEmailAddress:()=>{const t={progress:__("Updating Post by Email address…","jetpack"),success:__("Regenerated Post by Email address.","jetpack"),error:e=>(0,s.sprintf)(/* translators: placeholder is an error message. */ __("Error regenerating Post by Email address. %s","jetpack"),e)};return e((0,l.Xx)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:()=>e((0,l.ic)()),clearUnsavedSettingsFlag:()=>e((0,l.jo)()),refreshSettings:()=>e((0,l.Uc)())})))(e)}},63344:(e,t,a)=>{"use strict";a.d(t,{t:()=>p});var s=a(96072),n=a.n(s),i=a(53600),r=a(53835),o=a(66087),c=a(51609),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.A.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)};trackSettingsToggle=(e,t,a)=>{r.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:a?"on":"off"})};render(){return l().createElement(e,n()({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.Z)(t)}},60619:(e,t,a)=>{"use strict";a.d(t,{j:()=>g});var s=a(3924),n=a(68316),i=a(86087),r=a(27723),o=a(53835),c=a(28120),l=a.n(c),p=a(51609),d=a.n(p),u=a(84952),m=a(26508);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.A.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,s.A)("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(n.A,{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.Ng)((e=>({getModuleOverride:t=>(0,m.d1)(e,t)})))(h)},1385:(e,t,a)=>{"use strict";a.d(t,{h:()=>i});var s=a(51609),n=a.n(s);const i=n().createElement("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n().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"}))},12659:(e,t,a)=>{"use strict";a.d(t,{e:()=>c});var s=a(28120),n=a.n(s),i=a(51609),r=a.n(i),o=a(1385);const c=({text:e})=>r().createElement("div",{className:"jetpack-money-back-guarantee"},r().createElement("div",{className:"jetpack-money-back-guarantee__icon"},o.h),r().createElement("div",{className:"jetpack-money-back-guarantee__text"},e));c.propTypes={text:n().string.isRequired}},58330:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var s=a(27723),n=a(37866),i=a(78434),r=a(70679),o=a(7130),c=a(79703),l=a(10067),p=a.n(l),d=a(53835),u=a(66087),m=a(28120),h=a.n(m),g=a(51609),k=a.n(g),f=a(84952),v=a(60247),E=a(34679),_=a(2065),b=a(26508),y=a(12623),w=a(77423);const __=s.__,_x=s._x,C=p()("calypso:url-search");class A 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.A,{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.A.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.A,{selectedText:this.props.routeName},this.props.hasAnySecurityFeature&&k().createElement(o.A,{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.A,{path:"#performance",onClick:this.handleClickForTracking("performance"),selected:"/performance"===this.props.location.pathname},_x("Performance","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["markdown","custom-content-types","post-by-email","infinite-scroll","copy-post"])&&k().createElement(o.A,{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.A,{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.A,{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.A,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.location.pathname},_x("Traffic","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["subscriptions"])&&k().createElement(o.A,{path:"#newsletter",onClick:this.handleClickForTracking("newsletter"),selected:"/newsletter"===this.props.location.pathname},_x("Newsletter","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["wordads"])&&k().createElement(o.A,{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.A,{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.A,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")):"",e=k().createElement(c.A,{selectedText:this.props.routeName},a,t)),k().createElement("div",{id:"jp-navigation",className:"dops-navigation"},k().createElement(n.A,null),k().createElement(r.A,{selectedText:this.props.routeName},e,this.maybeShowSearch()))}}A.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},A.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:u.noop,searchHasFocus:!1};const j=(0,f.Ng)((e=>({hasAnyOfTheseModules:t=>(0,b._J)(e,t),hasAnyPerformanceFeature:(0,b.ZH)(e),hasAnySecurityFeature:(0,b.j9)(e),userCanManageModules:(0,_.Ir)(e),isSubscriber:(0,_.EV)(e),userCanPublish:(0,_.n6)(e),isLinked:(0,E._U)(e),isSiteConnected:(0,E.lY)(e),isModuleActivated:t=>(0,b.Yp)(e,t),moduleList:(0,b.eI)(e),isPluginActive:t=>(0,w.gT)(e,t),searchTerm:(0,y.nh)(e)})),(e=>({searchForTerm:t=>e((0,y.F5)(t))})))((0,v.y)(A))},2152:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(3924),n=a(86087),i=a(27723),r=a(13022),o=a(70679),c=a(7130),l=a(79703),p=a(53835),d=a(28120),u=a.n(d),m=a(51609),h=a.n(m),g=a(84952),k=a(60247),f=a(34679),v=a(2065),E=a(26508),_=a(54365);const _x=i._x;class b extends h().Component{trackNavClick=e=>{p.A.tracks.recordJetpackClick({target:"nav_item",path:e})};trackNewRecommendations=()=>{this.props.newRecommendationsCount>0&&!this.props.location.pathname.startsWith("/recommendations")&&p.A.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.A.tracks.recordJetpackClick({target:"nav_item",path:"recommendations",is_new_recommendations_bubble_visible:e})};componentDidMount(){this.trackNewRecommendations()}render(){let e;const t=`${`redirect_to=${this.props.adminUrl}admin.php?page=jetpack`}${this.props.purchaseToken?`&purchasetoken=${this.props.purchaseToken}`:""}${this.props.isLinked?"":`&connect_after_checkout=true&from_site_slug=${this.props.siteUrl}&admin_url=${this.props.adminUrl}`}`;let a=(0,s.A)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-plans-no-site",{query:t});return this.props.isLinked||(a=a.replace(/&site=\d+/,"")),e=this.props.userCanManageModules?h().createElement(l.A,{selectedText:this.props.routeName},h().createElement(c.A,{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.A,{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.A,{isExternalLink:!0,path:a,onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname},_x("Plans","Navigation item.","jetpack")),this.props.showRecommendations&&h().createElement(c.A,{path:"#/recommendations",onClick:this.trackRecommendationsClick,selected:this.props.location.pathname.startsWith("/recommendations")},(0,n.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.A)("dops-section-nav-tab__update-badge",{"is-hidden":this.props.location.pathname.startsWith("/recommendations")||!this.props.newRecommendationsCount})})}))):h().createElement(l.A,{selectedText:this.props.routeName},h().createElement(c.A,{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.A,{selectedText:this.props.routeName},e))}}b.propTypes={routeName:u().string.isRequired,isOfflineMode:u().bool};const y=(0,g.Ng)((e=>({userCanManageModules:(0,v.Ir)(e),userCanViewStats:(0,v.WC)(e),isModuleActivated:t=>(0,E.Yp)(e,t),isOfflineMode:(0,f.hN)(e),isLinked:(0,f._U)(e),hasConnectedOwner:(0,f.BG)(e),showRecommendations:(0,v.ct)(e),newRecommendationsCount:(0,_.x4)(e),siteUrl:(0,v.XG)(e),adminUrl:(0,v.eu)(e),purchaseToken:(0,v.r5)(e)})))((0,k.y)(b))},38473:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(71803),n=a(28120),i=a.n(n),r=a(51609),o=a.n(r),c=a(84952),l=a(77496),p=a(34679),d=a(2065),u=a(26508);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(s.A,this.props);break;case"/settings":case"/writing":case"/sharing":case"/performance":this.props.isSubscriber||(t=o().createElement(l.A,{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.Ng)((e=>({userCanViewStats:(0,d.WC)(e),siteConnectionStatus:(0,p.i$)(e),isSubscriber:(0,d.EV)(e),isModuleActivated:t=>(0,u.Yp)(e,t),userCanManageModules:(0,d.Ir)(e)})))(m)},11346:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(13022),n=a(31497),i=a(66087),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(752);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,s.A)("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(n.A,{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.A)(r),tabIndex:"0",className:"dops-notice__dismiss",onClick:r},l().createElement(n.A,{icon:"cross",size:24}),l().createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},u)))}}},44089:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(31497),n=a(28120),i=a.n(n),r=a(51609),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(s.A,{icon:this.props.icon,size:24}),this.props.external&&o().createElement(s.A,{icon:"external",size:24}))}}},76122:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(69546),n=a(6838),i=a(28120),r=a.n(i),o=a(51609),c=a.n(o);const l={[n.T7f]:"plans/wpcom-free.svg",[n.JZ7]:"plans/wpcom-personal.svg",[n.bQ]:"plans/wpcom-personal.svg",[n.EX]:"plans/wpcom-personal.svg",[n.Zcg]:"plans/wpcom-personal.svg",[n.Ek$]:"plans/wpcom-personal.svg",[n.GiA]:"plans/wpcom-premium.svg",[n.ADq]:"plans/wpcom-premium.svg",[n.nMg]:"plans/wpcom-premium.svg",[n.Olc]:"plans/wpcom-premium.svg",[n.xYC]:"plans/wpcom-business.svg",[n.vt4]:"plans/wpcom-business.svg",[n.CRr]:"plans/wpcom-business.svg",[n.ZLW]:"plans/wpcom-business.svg",[n.WpT]:"plans/wpcom-business.svg",[n.Mk2]:"plans/wpcom-business.svg",[n.W$W]:"plans/wpcom-business.svg",[n.dji]:"plans/wpcom-business.svg",[n.DHZ]:"plans/wpcom-ecommerce.svg",[n.xie]:"plans/wpcom-ecommerce.svg",[n.mRQ]:"plans/wpcom-ecommerce.svg",[n.raG]:"plans/wpcom-ecommerce.svg",[n.cwL]:"plans/wpcom-ecommerce.svg",[n.sBM]:"plans/wpcom-ecommerce.svg",[n.dHS]:"plans/wpcom-ecommerce.svg",[n.JGt]:"plans/wpcom-ecommerce.svg",[n.pmS]:"plans/wpcom-ecommerce.svg",[n.CJy]:"plans/wpcom-ecommerce.svg",[n.qZE]:"products/product-jetpack-search.svg",[n.Qbh]:"products/product-jetpack-search.svg",[n.mFu]:"products/product-jetpack-backup.svg",[n.nFH]:"products/product-jetpack-backup.svg",[n.X4A]:"products/product-jetpack-backup.svg",[n.Jht]:"products/product-jetpack-backup.svg",[n.kUc]:"products/product-jetpack-backup.svg",[n.YRH]:"products/product-jetpack-backup.svg",[n.ZFV]:"products/product-jetpack-backup.svg",[n.ebL]:"products/product-jetpack-scan.svg",[n.FQO]:"products/product-jetpack-scan.svg",[n.tX$]:"products/product-jetpack-scan.svg",[n.Vno]:"products/product-jetpack-anti-spam.svg",[n.GGh]:"products/product-jetpack-anti-spam.svg",[n.uX5]:"products/product-jetpack-anti-spam.svg",[n.VZ5]:"products/product-jetpack-search.svg",[n.KOn]:"products/product-jetpack-search.svg",[n.DCG]:"products/product-jetpack-search.svg",[n.Is_]:"products/product-jetpack-search.svg",[n.MMo]:"plans/jetpack.svg",[n.Y1g]:"plans/jetpack.svg",[n.EsA]:"plans/jetpack.svg",[n.Ryn]:"plans/jetpack.svg",[n.BfZ]:"plans/jetpack.svg",[n.kU]:"plans/jetpack.svg",[n.YhD]:"plans/jetpack.svg",[n.t9C]:"plans/jetpack.svg",[n.$bO]:"plans/jetpack.svg",[n.ncG]:"plans/jetpack.svg",[n.b2e]:"plans/jetpack.svg",[n.eJ8]:"plans/jetpack.svg",[n.asM]:"plans/jetpack.svg",[n.Xoz]:"plans/jetpack.svg",[n._4K]:"plans/jetpack.svg",[n.pz9]:"plans/jetpack.svg",[n.rD9]:"plans/jetpack.svg",[n.Pp2]:"products/product-jetpack-videopress.svg",[n.Wn7]:"products/product-jetpack-videopress.svg",[n.ovn]:"products/product-jetpack-videopress.svg",[n.pcB]:"products/product-jetpack-social.svg",[n.om_]:"products/product-jetpack-social.svg",[n.Qpw]:"products/product-jetpack-social.svg",[n.FaP]:"products/product-jetpack-social.svg",[n.suP]:"products/product-jetpack-social.svg",[n.m6F]:"products/product-jetpack-social.svg",[n.YQy]:"products/product-jetpack-social.svg",[n.bDd]:"products/product-jetpack-social.svg",[n.HA9]:"products/product-jetpack-social.svg",[n.vS9]:"plans/jetpack-golden-token.svg",[n.Hsn]:"plans/jetpack.svg",[n.V$p]:"plans/jetpack.svg",[n.oQp]:"plans/jetpack.svg",[n.Gyc]:"products/product-jetpack-backup.svg",[n.UIR]:"products/product-jetpack-backup.svg",[n.SDZ]:"products/product-jetpack-backup.svg",[n.wBS]:"products/product-jetpack-backup.svg",[n.I5k]:"plans/jetpack.svg",[n.ufm]:"plans/jetpack.svg",[n.sG7]:"plans/jetpack.svg",[n.UBB]:"plans/jetpack.svg",[n.Y1M]:"products/product-jetpack-boost.svg",[n.LQP]:"products/product-jetpack-boost.svg",[n.JuJ]:"products/product-jetpack-boost.svg",[n.E$T]:"products/product-jetpack-ai.svg",[n.xSu]:"products/product-jetpack-ai.svg",[n.d6V]:"products/product-jetpack-ai.svg",[n.eMf]:"products/product-jetpack-stats.svg",[n.djT]:"products/product-jetpack-stats.svg",[n.zx5]:"products/product-jetpack-stats.svg",[n.IiY]:"products/product-jetpack-stats.svg",[n.c3q]:"products/product-jetpack-stats.svg",[n.EiB]:"products/product-jetpack-stats.svg",[n.DGp]:"products/product-jetpack-crm.svg"};class p extends o.Component{render(){const{className:e,alt:t,plan:a}=this.props;return c().createElement("img",{className:e,src:s.d0+l[a],width:32,height:32,alt:t||""})}}p.propTypes={classNames:r().string,alt:r().string,plan:r().oneOf([n.T7f,n.JZ7,n.bQ,n.EX,n.Zcg,n.Ek$,n.GiA,n.ADq,n.nMg,n.Olc,n.xYC,n.vt4,n.CRr,n.ZLW,n.DHZ,n.xie,n.mRQ,n.raG,n.CJy,n.qZE,n.Qbh,n.mFu,n.nFH,n.Jht,n.X4A,n.kUc,n.YRH,n.ZFV,n.ebL,n.FQO,n.tX$,n.Vno,n.GGh,n.uX5,n.VZ5,n.KOn,n.DCG,n.Is_,n.MMo,n.Y1g,n.EsA,n.Ryn,n.BfZ,n.kU,n.YhD,n.t9C,n.$bO,n.ncG,n.b2e,n.eJ8,n.asM,n.Xoz,n._4K,n.pz9,n.rD9,n.Pp2,n.Wn7,n.ovn,n.pcB,n.om_,n.Qpw,n.FaP,n.suP,n.m6F,n.YQy,n.bDd,n.HA9,n.vS9,n.Hsn,n.V$p,n.oQp,n.Gyc,n.UIR,n.SDZ,n.wBS,n.I5k,n.ufm,n.sG7,n.UBB,n.Pp2,n.Wn7,n.ovn,n.eMf,n.djT,n.zx5,n.IiY,n.c3q,n.EiB,n.xSu,n.LQP,n.DGp]).isRequired}},74180:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(35207),n=a(70557),i=a(28120),r=a.n(i);const o=({installOrActivatePrompt:e,pluginLink:t,pluginName:a,pluginSlug:i,pluginFiles:r,plan:o})=>React.createElement("div",{className:"plugin-dash-item"},React.createElement(n.A,{className:"plugin-dash-item__section-header",label:a}),React.createElement(s.A,{pluginName:a,pluginSlug:i,pluginLink:t,pluginFiles:r,installOrActivatePrompt:e,plan:o}));o.propTypes={pluginName:r().string.isRequired,pluginFiles:r().arrayOf(r().string).isRequired,pluginSlug:r().string.isRequired,pluginLink:r().string.isRequired,plan:r().string,installOrActivatePrompt:r().element.isRequired};const c=o},35207:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(5932),n=a(56427),i=a(27723),r=a(26592),o=a(3983),c=a(53835),l=a(51609),p=a(84952),d=a(77423);const __=i.__,u=(0,p.Ng)(((e,{pluginFiles:t})=>({isFetchingPluginsData:(0,d.rC)(e),aPluginIsInstalled:t.some((t=>(0,d.O8)(e,t))),aPluginIsActive:t.some((t=>(0,d.gT)(e,t)))})),(e=>({fetchPluginsData:()=>e((0,d.bR)())})))((({fetchPluginsData:e,isFetchingPluginsData:t,aPluginIsActive:a,aPluginIsInstalled:p,pluginName:d,pluginSlug:u,pluginLink:m,installOrActivatePrompt:h,installedPrompt:g,plan:k})=>{const[f,v]=(0,l.useState)(!1),[E,_]=(0,l.useState)(!1),b=(0,l.useCallback)((()=>{if(p)if(a){if(p&&a)return Promise.resolve()}else v(!0);else _(!0);return c.A.tracks.recordJetpackClick({target:"plugin_dash_item",type:p?"install":"activate",feature:u}),s.Ay.installPlugin(u,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>e())).finally((()=>{v(!1),_(!1)}))}),[e,a,p,u]);return t?React.createElement(r.A,{className:"plugin-dash-item__content"},React.createElement("p",null,__("Loading…","jetpack"))):E?React.createElement(r.A,{className:"plugin-dash-item__content"},React.createElement(n.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))):f?React.createElement(r.A,{className:"plugin-dash-item__content"},React.createElement(n.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.Ay,{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,plan:k}):React.createElement(o.Ay,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Activate %s","jetpack"),d),title:h,onClick:b,plan:k}):React.createElement(o.Ay,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ __("Install %s","jetpack"),d),title:h,onClick:b,plan:k})}))},61933:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var s=a(86087),n=a(13022),i=a(49971),r=a.n(i),o=a(61747),c=a(10067),l=a.n(c),p=a(66087),d=a(28120),u=a.n(d),m=a(51609),h=a.n(m),g=a(82279);const k=()=>{},f=l()("calypso:popover"),v=new Set;class E extends m.Component{static propTypes={autoPosition:u().bool,className:u().string,closeOnEsc:u().bool,id:u().string,ignoreContext:u().shape({getDOMNode:u().function}),position:u().string,rootClassName:u().string,showDelay:u().number,onClose:u().func.isRequired,onShow:u().func};static defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:k};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)},this.domContainerRef=(0,s.createRef)(),this.domContextRef=(0,s.createRef)()}componentDidMount(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,g.jQ)()}isDOMNode(e){return e instanceof HTMLElement}componentDidUpdate(e){const{context:t,isVisible:a}=this.props;return t!==e.context&&(!t||this.isDOMNode(t)?this.domContextRef.current=t:this.debug("Expected a DOM node for props.context",t)),a!==e.isVisible&&(a?this.show():this.hide()),this.domContainerRef.current&&this.domContextRef.current&&a&&a!==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,g.Yc)(),v.delete(this.id),f("current popover instances: ",v.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.domContainerRef.current){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.domContextRef.current&&this.domContextRef.current?.contains&&!this.domContextRef.current.contains(e.target);if(this.props.ignoreContext&&t){let a;!this.props.ignoreContext||this.isDOMNode(this.props.ignoreContext)?a=this.props.ignoreContext:this.debug("Expected a DOM node for props.context",this.props.ignoreContext),t=!(!a||!a.contains)&&(t&&!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.domContainerRef.current=e,!this.props.context||this.isDOMNode(this.props.context)?this.domContextRef.current=this.props.context:this.debug("Expected a DOM node for props.context",this.props.context),this.domContainerRef.current.focus(),this.setPosition()}getPositionClass(e=this.props.position){return`is-${e.replace(/\s+/g,"-")}`}computePosition(){if(!this.props.isVisible)return null;const{domContainerRef:e,domContextRef:t}=this,{position:a}=this.props;if(!e.current||!t.current)return this.debug("[WARN] no DOM elements to work"),null;let s=a;this.debug("position: %o",a),this.props.autoPosition&&(s=(0,g.Mf)(a,e.current,t.current),this.debug("suggested position: %o",s));const n=(0,p.assign)({},(0,g.B3)((0,g.cY)(s,e.current,t.current),e.current),{positionClass:this.getPositionClass(s)});return this.debug("updating reposition: ",n),n}debug(e,...t){f(`[%s] ${e}`,this.id,...t)}setPopoverId(e){this.id=e||`pop__${r()(16)}`,v.add(this.id),this.debug("creating ..."),f("current popover instances: ",v.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.domContextRef.current.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.A)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),h().createElement(o.A,{className:this.props.rootClassName},h().createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},h().createElement("div",{className:"dops-popover__arrow"}),h().createElement("div",{className:"dops-popover__inner"},this.props.children)))}}const _=E},82279:(e,t,a)=>{"use strict";a.d(t,{B3:()=>f,Mf:()=>g,Yc:()=>h,cY:()=>k,jQ:()=>m});var s=a(81760),n=a.n(s),i=a(10067);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 s=n()(a),i=t.clientHeight,r=t.clientWidth,o={top:s.top-i,bottom:p.height-s.bottom-i,left:s.left-r,right:p.width-s.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 s,n=-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>n&&(n=o,s=e)}return s}(u,o);return m!==h&&m!==c[h]||(m=null),function(e,t,a,s,n,i){const r=t?[e+" "+t,e,e+" "+c[t]]:[e,e+" "+l[e],e+" "+c[l[e]]];let o,d=0;const u=n*i;for(let e=0,t=r.length;e<t;e++){const t=r[e],c=k(t,a,s),l=c.left+n,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,n)*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 s=n()(t);if(!s)throw new Error("could not get bounding client rect of Tip element");const i=s.width,r=s.height,o=n()(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],s=t.documentElement||a.parentNode,n=s.clientTop||a.clientTop||0,i=s.clientLeft||a.clientLeft||0,r=window.pageYOffset||s.scrollTop,o=window.pageXOffset||s.scrollLeft;return{top:e.top+r-n,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 f=function(e,t){const a=n()(t).width;return e.left=Math.max(0,Math.min(e.left,p.width-a)),e}},41117:(e,t,a)=>{"use strict";a.d(t,{p:()=>r});var s=a(27723),n=a(51609),i=a.n(n);const __=s.__,_x=s._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")))},68859:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(3924),n=a(56427),i=a(38443),r=a(86087),o=a(27723),c=a(28120),l=a.n(c),p=a(51609),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(n.ExternalLink,{href:(0,s.A)("jetpack-subscription-renew",{path:m}),className:"my-plan-card__renew"},__("Renew subscription","jetpack")))})}}const m=u},61989:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(39384),n=a(27723),i=a(70386),r=a(26592),o=a(5546),c=a(9221),l=a(53835),p=a(28120),d=a.n(p),u=a(51609),m=a.n(u),h=a(84952),g=a(44254),k=a(34679);const __=n.__,_x=n._x;function f(e){const{show:t=!1,onHide:a,isSiteConnected:n,isReconnectingSite:o,beforeReconnectSite:p,initiateUserConnection:d,reconnectFailed:h,clickReconnectSite:g}=e,k=(0,u.useCallback)((()=>t&&n&&!o),[t,n,o]),f=(0,u.useCallback)((()=>{a&&a()}),[a]),{restoreConnection:v}=(0,s.useRestoreConnection)(),E=(0,u.useCallback)((e=>{e.preventDefault(),l.A.tracks.recordJetpackClick("confirm_reconnect_modal"),p(),v(!1).then((e=>{"in_progress"===e.status&&d(e.authorizeUrl)})).catch((e=>h(e))),f()}),[p,d,h,v,f]);return k()&&m().createElement(c.A,{className:"reconnect__modal",onRequestClose:f},m().createElement(r.A,{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.A,{className:"reconnect__modal-cancel",onClick:f},_x("Cancel","A caption for a button to cancel an action.","jetpack")),m().createElement(i.A,{className:"reconnect__modal-reconnect",onClick:g||E,primary:!0},_x("Reconnect Jetpack","A caption for a button to reconnect Jetpack.","jetpack")))))}f.displayName="ReconnectModal",f.propTypes={show:d().bool,onHide:d().func,clickReconnectSite:d().func};const v=(0,h.Ng)((e=>({isSiteConnected:(0,k.lY)(e),isReconnectingSite:(0,k.Vs)(e)})),(e=>({beforeReconnectSite:()=>{e({type:g._ce}),e((0,o.Fc)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:g.c30}),e({type:g.gbL,connectUrl:t}),e((0,k.k0)())},reconnectFailed:t=>{e({type:g.jzm,error:t}),e((0,o.fj)("reconnect-jetpack")),e((0,o.Fc)("is-error",(0,n.sprintf)(/* translators: placeholder is the error. */ __("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}})))(f)},61747:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(86087),n=a(28120),i=a.n(n),r=a(51609),o=a.n(r),c=a(84952);class l extends o().Component{static displayName="RootChild";static propTypes={children:i().node};static contextType=c.ty;componentDidMount(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.containerRoot=s.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.Kq,{store:this.context.store},e)),this.containerRoot.render(e)};render(){return null}}},14602:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(27723);const __=s.__,n=({onClick:e})=>React.createElement("button",{className:"dops-search__clear-btn",onClick:e,"aria-label":__("Clear search","jetpack")},__("Clear","jetpack"))},23685:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(31497);const n=({instanceId:e,closeSearch:t,closeListener:a})=>React.createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:t,tabIndex:"0",onKeyDown:a,"aria-controls":"dops-search-component-"+e,"aria-label":"Close Search"},React.createElement(s.A,{icon:"cross",className:"dops-search__close-icon"}))},78434:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(96072),n=a.n(s),i=a(40180),r=a(13022),o=a(31497),c=a(53835),l=a(66087),p=a(28120),d=a.n(p),u=a(51609),m=a.n(u),h=a(14602),g=a(23685);function k(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}class f 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,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,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:++f.instances}),this.closeListener=k.bind(this,"closeSearch"),this.openListener=k.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.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),s=parseFloat(a.paddingLeft),n=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+s-n.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.A.ga.recordEvent(this.props.analyticsGroup,"Clicked Open Search")};closeSearch=e=>{e.preventDefault(),this.props.disabled||(this.setState({keyword:"",isOpen:!1}),this.props.pinned&&this.openIconRef.current.focus(),c.A.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search"))};clearSearch=()=>{this.clear(),this.focus()};keyUp=e=>{"Enter"===e.key&&(0,i.Fr)()&&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,s=this.state.isOpen||!this.props.pinned||this.props.initialValue,i=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},c=(0,r.A)(this.props.additionalClasses,this.props.dir,{"is-expanded-to-container":this.props.fitsContainer,"is-open":s,"is-searching":this.props.searching,"has-focus":this.state.hasFocus,"dops-search":!0}),l=(0,r.A)("dops-search__input-fade",this.props.dir),p=(0,r.A)("dops-search__input",this.props.dir),d=!this.props.hideClose&&(this.state.keyword||this.state.isOpen),u=d&&e;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.A,{icon:"search",className:"dops-search__open-icon"})),m().createElement("div",{className:l},m().createElement("input",n()({type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:p,placeholder:t,role:"searchbox",tabIndex:s?"0":"-1",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":!s,autoCapitalize:"none",dir:this.props.dir,maxLength:this.props.maxLength},i)),this.props.overlayStyling&&this.renderStylingDiv()),u&&m().createElement(h.A,{onClick:this.clearSearch}),d&&m().createElement(g.A,{closeSearch:this.closeSearch,closeListener:this.closeListener,instanceId:this.state.instanceId}))}renderStylingDiv=()=>m().createElement("div",{className:"dops-search__text-overlay",ref:this.overlayRef},this.props.overlayStyling(this.state.keyword))}const v=f},70557:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(13022),n=a(26592),i=a(51609),r=a.n(i);const o=({label:e,children:t,className:a})=>{const i=(0,s.A)(a,"dops-section-header");return r().createElement(n.A,{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))}},70679:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(13022),n=a(78434),i=a(66087),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(7130),d=a(79703);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,s.A)({"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,s.A)({"dops-section-nav":!0,"is-empty":!0}),l().createElement("div",{className:t},l().createElement("div",{className:"dops-section-nav__panel"},l().createElement(p.A,null))))}getChildren(){return l().Children.map(this.props.children,function(e){const t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==d.A||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===d.A&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===n.A&&(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!==n.A&&(this.hasSiblingControls=!0)}.bind(this))}}const m=u},7130:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(56427),n=a(13022),i=a(68339),r=a(28120),o=a.n(r),c=a(51609),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,n.A)(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.A,{count:this.props.count}))),this.props.isExternalLink&&l().createElement(s.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.A,{count:this.props.count}))))}}const d=p},79703:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(96072),n=a.n(s),i=a(40180),r=a(13022),o=a(98872),c=a(69763),l=a(66087),p=a(28120),d=a.n(p),u=a(51609),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.A)({"dops-section-nav-tabs":!0,"is-dropdown":this.state.isDropdown,"is-open":this.state.isDropdownOpen,"has-siblings":this.props.hasSiblingControls}),s=(0,i.zK)();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&&s>660&&this.getDropdown()))}getTabWidths=()=>{const e=this;let t=0;m().Children.forEach(this.props.children,function(a,s){if(!a)return;const n=e.tabRefs["tab-"+s].current.domNode.offsetWidth;t+=n}.bind(this)),this.tabsWidth=t};getDropdown=()=>{const e=m().Children.map(this.props.children,(function(e,t){return e?m().createElement(c.A,n()({},e.props,{key:"navTabsDropdown-"+t}),e.props.children):null}));return m().createElement(o.A,{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(),e.target.ownerDocument.activeElement.click()}}}const g=h},98872:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(13022),n=a(68339),i=a(69763),r=a(26546),o=a(95665),c=a(66087),l=a(28120),p=a.n(l),d=a(51609),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,s){if(!a)return null;t.itemRefs["item-"+e]=a.type===i.A?u().createRef():void 0;const n=u().cloneElement(a,{ref:t.itemRefs["item-"+e],key:"item-"+s,onClick:function(e){t.dropdownContainerRef.current.focus(),"function"==typeof a.props.onClick&&a.props.onClick(e)}});return a.type===i.A&&e++,n}),this):this.props.options.map((function(a,s){if(!a)return u().createElement(o.A,{key:"dropdown-separator-"+this.state.instanceId+"-"+s});if(a.isLabel)return u().createElement(r.A,{key:"dropdown-label-"+this.state.instanceId+"-"+s},a.label);t.itemRefs["item-"+e]=u().createRef();const n=u().createElement(i.A,{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++,n}),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,s.A)(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(n.A,{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();this.dropdownContainerRef.current.ownerDocument.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.A})),a="number"==typeof this.focused?this.focused:(0,c.findIndex)(t,(function(e){return e.props.selected})));const s=a+("previous"===e?-1:1);s>=t.length||s<0||(this.itemRefs["item-"+s].current.itemLinkRef.current.focus(),this.focused=s)}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},69763:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(13022),n=a(68339),i=a(28120),r=a.n(i),o=a(51609),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,s.A)(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(n.A,{count:this.props.count}))))}}const p=l},26546:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(51609),n=a.n(s);const{Component:i}=n(),r=e=>e.stopPropagation();const o=class extends i{render(){return n().createElement("li",{role:"menuitem",onClick:r,className:"dops-select-dropdown__label"},n().createElement("label",null,this.props.children))}}},95665:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(51609),n=a.n(s);class i extends n().Component{render(){return n().createElement("li",{className:"dops-select-dropdown__separator"})}}const r=i},8332:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var s=a(96072),n=a.n(s),i=a(27723),r=a(70386),o=a(3983),c=a(45078),l=a(70557),p=a(53835),d=a(6838),u=a(66087),m=a(72747),h=a(83101),g=a(28120),k=a.n(g),f=a(84952),v=a(32819),E=a(34679),_=a(2065),b=a(26508),y=a(82656);const __=i.__,_x=i._x,w=e=>{const t={action:"",saveDisabled:!1,isDisabled:!1,...e},a=e=>()=>(e=>{p.A.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})})(e),s=(e,a)=>()=>{(e=>{p.A.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),f=(0,u.get)(g,["data","features","security"],!1);if(!t.userCanManageModules&&!(0,u.includes)(["post-by-email","publicize"],t.module))return React.createElement("span",null);const v=t.isDisabled,E=t.saveDisabled,_=!!t.feature&&t.feature;let b=t.header?t.header:"";""===b&&i&&(b=i.name);const y=()=>{switch(_){case d.d2k:return"inactive"===t.getModuleOverride("videopress");case d.Xd8:return"inactive"===t.getModuleOverride("wordads");case d.ZrU:return"inactive"===t.getModuleOverride("google-analytics");case d.JvE:return"inactive"===t.getModuleOverride("search");default:return!1}},w=(()=>{if(t.fetchingSiteData)return!0;switch(_){case d.FxV:if(!t.hasScan&&!f)return!1;break;case d.Xd8:if(!t.hasWordAds)return!1;break;case d.ZrU:if(!t.hasGoogleAnalytics)return!1;break;case d.pt9: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"),n=()=>_x("Connect","A caption for a button to connect a user account to access paid features.","jetpack");switch(_){case d.d2k:return t.hasConnectedOwner||t.hasVideoPress?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.d2k),feature:_,onClick:s(_),rna:!0});case d.Xd8:return t.hasWordAds?"":t.hasConnectedOwner?React.createElement(o.Ay,{title:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Generate income with high-quality ads.","jetpack")),callToAction:e(),plan:(0,d.EP8)(d.Xd8),feature:_,onClick:a(_),href:t.adsUpgradeUrl,rna:!0}):React.createElement(o.Ay,{title:__("Connect your WordPress.com account to upgrade and generate income with high-quality ads.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.Xd8),feature:_,onClick:s(_),rna:!0});case d.FxV:return k||t.hasScan&&t.hasBackups||t.multisite?"":t.hasScan&&!t.hasBackups?t.hasConnectedOwner?React.createElement(o.Ay,{title:__("Save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,d.EP8)(d.gvR),callToAction:e(),feature:_,onClick:a(_),href:t.securityUpgradeUrl,rna:!0}):React.createElement(o.Ay,{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.EP8)(d.gvR),callToAction:n(),feature:_,onClick:s(_),rna:!0}):t.hasConnectedOwner?React.createElement(o.Ay,{callToAction:e(),title:__("Automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,d.EP8)(d.FxV),feature:_,onClick:a(_),href:t.scanUpgradeUrl,rna:!0}):React.createElement(o.Ay,{callToAction:n(),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.EP8)(d.FxV),feature:_,onClick:s(_),rna:!0});case d.XkN:return t.hasConnectedOwner||t.inOfflineMode?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to set up your status alerts.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.XkN),feature:_,onClick:s(_),rna:!0});case d.Z4D:return t.hasConnectedOwner||t.inOfflineMode?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to enable Secure Sign-On","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.Z4D),feature:_,onClick:s(_),rna:!0});case d.X8r:return t.hasConnectedOwner||t.isUnavailableInOfflineMode("post-by-email")?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to enable publishing via email.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.X8r),feature:_,onClick:s(_),rna:!0});case d.Y6$:return t.hasConnectedOwner||t.inOfflineMode?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to add your social media accounts.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.Y6$),feature:_,onClick:s(_),rna:!0});case d.FpR:return t.blazeAvailable.can_init||t.inOfflineMode?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to set up campaigns and promote your content.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.FpR),feature:_,onClick:s(_),rna:!0});case d.zwM:return React.createElement(o.Ay,{title:__("Connect your WordPress.com account to discover tools to earn money with your site.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.zwM),feature:_,onClick:s(_),rna:!0});case d.ZrU:return t.hasGoogleAnalytics?"":t.hasConnectedOwner?React.createElement(o.Ay,{callToAction:e(),title:__("Connect your site to Google Analytics.","jetpack"),plan:(0,d.EP8)(d.ZrU),feature:_,onClick:a(_),href:t.gaUpgradeUrl,rna:!0}):React.createElement(o.Ay,{callToAction:n(),title:__("Connect your WordPress.com account to upgrade and connect your site to Google Analytics.","jetpack"),plan:(0,d.EP8)(d.ZrU),feature:_,onClick:s(_),rna:!0});case d.JvE:return t.hasInstantSearch?"":React.createElement(o.Ay,{callToAction:(0,h.$)()?__("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.EP8)(d.JvE),feature:_,onClick:a(_),href:t.searchUpgradeUrl,rna:!0});case d.pt9:return t.isCheckingAkismetKey||t.isAkismetKeyValid||t.hasAntispam?"":React.createElement(o.Ay,{callToAction:e(),title:__("Automatically clear spam from comments and forms.","jetpack"),plan:(0,d.EP8)(d.pt9),feature:_,href:t.spamUpgradeUrl,rna:!0});case d.jc4:return t.hasSimplePayments?"":t.hasConnectedOwner?React.createElement(o.Ay,{callToAction:e(),title:__("Start accepting PayPal payments for physical products, digital goods, or donations.","jetpack"),plan:(0,d.EP8)(d.jc4),feature:_,href:t.simplePaymentsUpgradeUrl,rna:!0}):React.createElement(o.Ay,{callToAction:n(),title:__("Connect your WordPress.com account to upgrade and access PayPal features in your editor.","jetpack"),plan:(0,d.EP8)(d.jc4),feature:_,onclick:t.doConnectUser,rna:!0});case d.KCE:return t.hasConnectedOwner?"":React.createElement(o.Ay,{title:__("Connect your WordPress.com account to enable newsletters.","jetpack"),callToAction:n(),plan:(0,d.EP8)(d.KCE),feature:_,onClick:s(_),rna:!0});default:return""}})();if(!w&&!C)return null;let A="";return t.feature?A=`jp-settings-${t.feature}`:t.module&&(A=`jp-settings-${t.module}`),(()=>{if(!y())return!1;if(_!==d.ZrU)return null;const e=t.getModule("google-analytics");return React.createElement(c.A,{moduleName:e.name})})()||React.createElement("form",n()({},A?{id:A}:null,{className:"jp-form-settings-card",onSubmit:v||E?void 0:t.onSubmit}),React.createElement(l.A,{label:b},!t.hideButton&&React.createElement(r.A,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:v||E||!t.isDirty()},E?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0)),t.action&&React.createElement(m.A,{proFeature:t.action,siteAdminUrl:t.siteAdminUrl,isCompact:!1})),w,C)};w.propTypes={action:k().string,saveDisabled:k().bool,isDisabled:k().bool};const C=(0,f.Ng)((e=>({fetchingSiteData:(0,y.Kb)(e),siteAdminUrl:(0,_.eu)(e),userCanManageModules:(0,_.Ir)(e),isAkismetKeyValid:(0,v.Ee)(e),isCheckingAkismetKey:(0,v.OY)(e),vaultPressData:(0,v.Cc)(e),getModuleOverride:t=>(0,b.d1)(e,t),getModule:t=>(0,b.f_)(e,t),adsUpgradeUrl:(0,_.Q4)(e,"jetpack-creator-cta"),securityUpgradeUrl:(0,h.F)(e,"security"),scanUpgradeUrl:(0,h.F)(e,"scan"),gaUpgradeUrl:(0,_.Q4)(e,"settings-ga"),searchUpgradeUrl:(0,h.F)(e,"search"),simplePaymentsUpgradeUrl:(0,_.Q4)(e,"jetpack-creator-cta"),spamUpgradeUrl:(0,h.F)(e,"akismet"),multisite:(0,_.xs)(e),inOfflineMode:(0,E.hN)(e),hasConnectedOwner:(0,E.BG)(e),hasAntispam:(0,y.IT)(e,"antispam"),hasBackups:(0,y.IT)(e,"backups"),hasGoogleAnalytics:(0,y.IT)(e,"google-analytics"),hasInstantSearch:(0,y.IT)(e,"instant-search"),hasScan:(0,y.IT)(e,"scan"),hasSimplePayments:(0,y.IT)(e,"simple-payments"),hasVideoPress:(0,y.IT)(e,"videopress"),hasWordAds:(0,y.IT)(e,"wordads"),isUnavailableInOfflineMode:t=>(0,E.Em)(e,t),blazeAvailable:(0,_.G4)(e)})),(e=>({doConnectUser:t=>e((0,E.k0)(t))})))(w)},19579:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(96072),n=a.n(s),i=a(13022),r=a(26592),o=a(9520),c=a(66087),l=a(28120),p=a.n(l),d=a(51609),u=a.n(d),m=a(84952),h=a(34679),g=a(2065),k=a(26508);const f=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 s=t.disableInOfflineMode&&t.isUnavailableInOfflineMode(a.module),l=t.disableInSiteConnectionMode&&t.isUnavailableInSiteConnectionMode(a.module);let p=s||l;return"post-by-email"!==a.module||t.isLinked||(p=!0),u().createElement("div",{className:(0,i.A)("jp-form-settings-group",t.className)},u().createElement(r.A,{className:(0,i.A)({"jp-form-has-child":t.hasChild,"jp-form-settings-disable":s||l})},p&&u().createElement("div",{className:"jp-form-block-fade"}),t.support.link&&u().createElement(o.A,n()({module:a},t.support)),t.children))};f.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 v=(0,m.Ng)((e=>({isOfflineMode:(0,h.hN)(e),isSitePublic:(0,g.$q)(e),userCanManageModules:(0,g.Ir)(e),userCanEditPosts:(0,g.jM)(e),isLinked:(0,h._U)(e),isModuleActivated:t=>(0,k.Yp)(e,t),isUnavailableInOfflineMode:t=>(0,h.Em)(e,t),isUnavailableInSiteConnectionMode:t=>(0,h.g)(e,t)})))(f)},6034:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var s=a(3924),n=a(27723),i=a(13022),r=a(70386),o=a(26592),c=a(31497),l=a(3983),p=a(53835),d=a(6838),u=a(28120),m=a.n(u),h=a(51609),g=a.n(h),k=a(84952),f=a(34679),v=a(2065),E=a(82656);const __=n.__,_x=n._x;class _ extends g().Component{static displayName="SupportCard";static defaultProps={className:"",siteConnectionStatus:!1};trackBannerClick=()=>{p.A.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.A.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:this.props.path})};trackGettingStartedClick=()=>{p.A.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.A)(this.props.className,"jp-support-card");return g().createElement("div",{className:t},g().createElement(o.A,{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,n.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.A,{onClick:this.trackGettingStartedClick,href:(0,s.A)("jetpack-support-getting-started")},__("Getting started with Jetpack","jetpack"),g().createElement(c.A,{className:"dops-card__link-indicator",icon:"external"})),g().createElement(r.A,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?(0,s.A)("calypso-help"):(0,s.A)("jetpack-support")},__("Search our support site","jetpack"),g().createElement(c.A,{className:"dops-card__link-indicator",icon:"external"}))))),this.props.siteConnectionStatus&&!e&&this.props.hasConnectedOwner&&g().createElement(l.Ay,{title:__("Get a faster resolution to your support questions.","jetpack"),plan:(0,d.EP8)(d.DmX),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.Ay,{title:__("Connect your WordPress.com account and upgrade to get a faster resolution to your support questions.","jetpack"),plan:(0,d.EP8)(d.DmX),callToAction:__("Connect","jetpack"),onClick:this.handleConnectClick}))}}_.propTypes={siteConnectionStatus:m().any.isRequired,className:m().string,isCurrentUserLinked:m().bool,isConnectionOwner:m().bool};const b=(0,k.Ng)((e=>({siteConnectionStatus:(0,f.i$)(e),isFetchingSiteData:(0,E.Kb)(e),isAtomicSite:(0,v.d9)(e),isDevVersion:(0,v.gF)(e),supportUpgradeUrl:(0,v.Q4)(e,"support"),isCurrentUserLinked:(0,f._U)(e),isConnectionOwner:(0,f.uQ)(e),hasConnectedOwner:(0,f.BG)(e),hasSupport:(0,E.IT)(e,"support")||(0,E.F1)(e)})),(e=>({connectUser:()=>e((0,f.k0)())})))(_)},9520:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(56427),n=a(27723),i=a(63242),r=a(53835),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l);const __=n.__;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.A.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}trackLearnMoreClick(){r.A.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}trackPrivacyInfoClick(){r.A.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.A,{position:"left",onClick:this.trackInfoClick,screenReaderText:__("Learn more","jetpack")},e+" ",t&&p().createElement("div",{className:"jp-support-info__learn-more"},p().createElement(s.ExternalLink,{href:t,onClick:this.trackLearnMoreClick,rel:"noopener noreferrer"},__("Learn more","jetpack"))),p().createElement("span",{className:"jp-support-info__privacy"},p().createElement(s.ExternalLink,{href:a,onClick:this.trackPrivacyInfoClick,rel:"noopener noreferrer"},__("Privacy information","jetpack")))))}}},78888:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(96072),n=a.n(s),i=a(13022),r=a(66087),o=a(51609),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.A)(e,{"dops-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),s=(0,r.omit)(this.props,"selectOnFocus","isError","isValid");return c().createElement("input",n()({},s,{ref:this.textFieldRef,className:a,onClick:t?this.selectOnFocus:null}))}selectOnFocus=e=>{e.target.select()}}},26224:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(96072),n=a.n(s),i=a(13022),r=a(66087),o=a(51609),c=a.n(o);class l extends c().Component{static displayName="Textarea";render(){return c().createElement("textarea",n()({},(0,r.omit)(this.props,"className"),{className:(0,i.A)(this.props.className,"dops-textarea")}),this.props.children)}}},32507:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(40180),n=a(13022),i=a(61933),r=a(28120),o=a.n(r),c=a(51609),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,s.Fr)())return null;const e=(0,n.A)("dops-popover","dops-tooltip",`is-${this.props.position}`,this.props.className);return l().createElement(i.A,{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},63922:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(28120),n=a.n(s),i=a(51609),r=a(84952),o=a(12623);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:n().object,searchTerm:n().string};const l=(0,r.Ng)((e=>({searchTerm:(0,o.nh)(e)})))(c)},67204:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(51113),n=a(58535),i=a(31249),r=a(13022),o=a(51609),c=a(26760);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),f=(0,r.A)("tree-dropdown__input-container",m&&"active",p&&"disabled"),v=(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(v[v.length-1])}),[d,b,v]),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 A=(0,o.useCallback)((()=>{E(),k.current.focus()}),[E,k]);return React.createElement("div",{className:"tree-dropdown",ref:g},React.createElement("div",{className:f,onClick:A},React.createElement(s.A,{icon:n.A}),v.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(s.A,{icon:i.A}))))),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.A)("tree-dropdown__dropdown",{visible:m})},React.createElement("div",{className:(0,r.A)("tree-dropdown-colapsable",{hide:!m})},React.createElement(c.A,{items:t,selectedItems:l,disabled:p,onChange:a,keyword:d})))))}},26760:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(56427),n=a(27723),i=a(51609),r=a(163);const __=n.__,o=e=>{const{items:t,onChange:a,selectedItems:n,disabled:o,keyword:c=""}=e,l=(0,r.E)(t),p=""!==c?.trim(),d=p?l.filter((e=>e.name.toLowerCase().includes(c?.toLowerCase()))):l,u=(0,i.useCallback)((e=>()=>a(e,!n.includes(e))),[a,n]),m=d.map((e=>React.createElement("li",{key:e.id,className:"jp-tree-item",style:{marginLeft:p?0:25*e.depth}},React.createElement(s.CheckboxControl,{id:`jp-tree-item-${e.id}`,name:"jp-tree-item",checked:n.includes(e.id),onChange:u(e.id),disabled:o,__nextHasNoMarginBottom:!0}),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)}},163:(e,t,a)=>{"use strict";function s(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 s=(e,n,i)=>{const r=t[e],o={...r,depth:n,parentNames:[...i]};a.push(o),r.children.forEach((e=>s(e,n+1,[...i,r.name])))};return e.filter((e=>0===e.parent)).forEach((e=>s(e.id,0,[]))),a.map((({children:e,...t})=>t))}a.d(t,{E:()=>s})},211:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(53835),n=a(28120),i=a.n(n),r=a(51609),o=a.n(r),c=a(84952),l=a(2065);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}:{};s.A.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.Ng)(((e,{source:t})=>({upgradeUrl:(0,l.Q4)(e,t)})))(p)},3027:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(27723),n=a(42685),i=a(63344),r=a(20428),o=a.n(r),c=a(53835),l=a(51609),p=a.n(l);const __=s.__,d=(0,i.t)(class extends l.Component{componentDidMount(){o()("body").addClass("jp-dialogue-modern-showing"),c.A.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}componentWillUnmount(){o()("body").removeClass("jp-dialogue-modern-showing")}trackLearnMoreClick=()=>{c.A.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:this.props.version})};dismissNotice=()=>{c.A.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,s.sprintf)(/* translators: Placeholder is a version number. */ __("New in Jetpack %s","jetpack"),this.props.version)),p().createElement(n.A,{svg:t,title:a,content:this.renderInnerContent(),dismiss:this.dismissNotice})}})},4924:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});const s={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};const n=function(e){if(e in s)return s[e];throw new Error("config key `"+e+"` does not exist")}},69546:(e,t,a)=>{"use strict";a.d(t,{Iu:()=>i,Ns:()=>r,W_:()=>c,d0:()=>n,ru:()=>o});var s=a(3924);const n=window.Initial_State.pluginBaseUrl+"/images/",i=(0,s.A)("jetpack-contact-support"),r=(0,s.A)("jetpack-contact-support-beta-group"),o=(0,s.A)("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"},71801:(e,t,a)=>{"use strict";a.d(t,{H:()=>v});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(27723),c=a(11895),l=a(63344),p=a(60619),d=a(8332),u=a(19579),m=a(9520),h=a(78888),g=a(51609),k=a.n(g);const __=o.__;class f 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"),s=this.props.isModuleFound("comment-likes");if(!(e||t||a||s))return null;const{isUnavailableInOfflineMode:o,getOptionValue:l}=this.props,g=this.props.getModule("comments"),f=this.props.getOptionValue("comments"),v=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.A,n()({},this.props,{header:__("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&k().createElement(u.A,{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.A)("jetpack-support-comments")}},k().createElement(p.j,{slug:"comments",compact:!0,disabled:v,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.dV,null,k().createElement(c.lR,null,k().createElement("span",{className:"jp-form-label-wide"},__("Comment form introduction","jetpack")),k().createElement(h.A,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!f||v||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.lR,null,k().createElement("span",{className:"jp-form-label-wide"},__("Color scheme","jetpack")),k().createElement(c.FX,n()({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!f||v||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||s)&&k().createElement(u.A,null,t&&k().createElement("div",{className:"jp-toggle-set"},k().createElement(c.dV,null,k().createElement(p.j,{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.A,{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.dV,null,k().createElement(r.A,{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.A,{text:__("Allow readers to use markdown in comments.","jetpack"),link:_.learn_more_button,privacyLink:_.learn_more_button+"#privacy"})),s&&k().createElement("div",{className:"jp-toggle-set"},k().createElement(c.dV,null,k().createElement(p.j,{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.A,{text:__("Allow readers to like individual comments.","jetpack"),link:(0,i.A)("jetpack-support-comment-likes"),privacyLink:(0,i.A)("jetpack-support-comment-likes",{anchor:"privacy"})}))))}}const v=(0,l.t)(f)},58011:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(96072),n=a.n(s),i=a(27723),r=a(63109),o=a(51609),c=a.n(o),l=a(84952),p=a(34679),d=a(2065),u=a(26508),m=a(12623),h=a(30138),g=a(71801);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};if(!this.props.searchTerm&&!this.props.active)return null;const t=this.props.isModuleFound("comments"),a=this.props.isModuleFound("markdown"),s=this.props.isModuleFound("gravatar-hovercards"),i=this.props.isModuleFound("comment-likes");return t||a||s||i?c().createElement("div",null,c().createElement(r.A,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,n()({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride}))):null}}const f=(0,l.Ng)((e=>({module:t=>(0,u.f_)(e,t),settings:(0,h.mt)(e),isOfflineMode:(0,p.hN)(e),isUnavailableInOfflineMode:t=>(0,p.Em)(e,t),isModuleFound:t=>(0,m.jQ)(e,t),connectUrl:(0,p.Qp)(e),isLinked:(0,p._U)(e),getModuleOverride:t=>(0,u.d1)(e,t),isOdysseyStatsEnabled:(0,d.jh)(e),isWoASite:(0,d.lI)(e),siteAdminUrl:(0,d.eu)(e)})))(k)},70695:(e,t,a)=>{"use strict";a.d(t,{V:()=>y});var s=a(96072),n=a.n(s),i=a(68316),r=a(3924),o=a(56427),c=a(86087),l=a(27723),p=a(26592),d=a(11895),u=a(63344),m=a(60619),h=a(8332),g=a(19579),k=a(78888),f=a(26224),v=a(53835),E=a(6838),_=a(51609),b=a.n(_);const __=l.__,_x=l._x,y=(0,u.t)(class extends b().Component{updateOptions=e=>{this.props.updateFormStateModuleOption("wordads",e)};trackConfigureClick=()=>{v.A.tracks.recordJetpackClick("view-earnings")};trackConfigureWidgetClick=()=>{v.A.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"),s=e("wordads_custom_adstxt","wordads"),n=e("wordads"),o=t("wordads");return b().createElement(g.A,{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.A,{checked:a,disabled:!n||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.dV,null,b().createElement("br",null),b().createElement("p",null,n&&(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.A)("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}),!n&&__("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.","jetpack")),b().createElement(f.A,{name:"wordads_custom_adstxt",value:s,disabled:!n||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"),s=this.props.getOptionValue("wordads_second_belowpost","wordads"),l=this.props.getOptionValue("wordads_inline_enabled","wordads"),u=this.props.getOptionValue("wordads_display_front_page","wordads"),f=this.props.getOptionValue("wordads_display_post","wordads"),v=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"),A=-1!==this.props.siteRawUrl.indexOf("::");return b().createElement(h.A,n()({},this.props,{header:_x("Ads","Ads header","jetpack"),feature:E.Xd8,saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"])}),b().createElement(g.A,{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.A)("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.A)("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}))),b().createElement(m.j,{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.dV,null,b().createElement(d.kK,null,__("Display ads below posts on","jetpack")),b().createElement(i.A,{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.A,{checked:f,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.A,{checked:v,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.A,{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.dV,null,b().createElement(d.kK,null,__("Additional ad placements","jetpack")),b().createElement(i.A,{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.A,{checked:s,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.A,{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.A,{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.A)("wpcom-support-us-privacy"):(0,r.A)("jetpack-support-ads")}},b().createElement(i.A,{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.dV,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.kK,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.dV,null,b().createElement(d.kK,null,__("Privacy Policy URL","jetpack")),b().createElement(k.A,{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.A,{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.A)("jetpack-support-ads")}},b().createElement(i.A,{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")})),!A&&this.renderAdsTxtSection(),!t&&e&&b().createElement(p.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},__("View your earnings","jetpack")))}})},89537:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var s=a(96072),n=a.n(s),i=a(3924),r=a(86087),o=a(27723),c=a(26592),l=a(63109),p=a(8332),d=a(19579),u=a(53835),m=a(6838),h=a(51609),g=a.n(h),k=a(84952),f=a(34679),v=a(2065),E=a(26508),_=a(12623),b=a(70695);const __=o.__;function y(e){const{buttonText:t,featureConstant:a="",featureName:s,infoLink:i,infoDescription:o,supportLink:l,title:m}=e,h=(0,r.useCallback)((()=>{u.A.tracks.recordJetpackClick({target:`visit-${s}`,feature:"earn"})}),[s]);return g().createElement(p.A,n()({},e,{header:m,hideButton:!0,module:"earn",feature:a||void 0}),g().createElement(d.A,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{link:l}},o),g().createElement(c.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:h,href:i,target:"_blank"},t))}const w=(0,k.Ng)((e=>({hasConnectedOwner:(0,f.BG)(e),module:t=>(0,E.f_)(e,t),isOffline:(0,f.hN)(e),isModuleFound:t=>(0,_.jQ)(e,t),isUnavailableInOfflineMode:t=>(0,f.Em)(e,t),isAtomicSite:(0,v.d9)(e),blogID:(0,v.V2)(e)})))((function(e){const{active:t,hasConnectedOwner:a,isModuleFound:s,isOffline:r,searchTerm:o,siteRawUrl:c,blogID:u,feature:h}=e;if(!o&&!t)return null;const k=s("wordads"),f=s("earn");return k||f?g().createElement("div",null,g().createElement(l.A,null),g().createElement("h1",{className:"screen-reader-text"},__("Jetpack Earn Settings","jetpack")),g().createElement("h2",{className:"jp-settings__section-title"},o?__("Earn","jetpack"):__("Explore tools to earn money with your site.","jetpack",0)),k&&g().createElement(b.V,n()({},e,{configureUrl:(0,i.A)("calypso-stats-ads-day",{site:u??c})})),f&&(r?g().createElement(d.A,null,g().createElement("div",{className:"jp-form-block-fade"}),__("Unavailable in Offline Mode.","jetpack")):a?g().createElement(g().Fragment,null,g().createElement(y,n()({},e,{featureName:"payments",title:__("Collect payments","jetpack"),supportLink:(0,i.A)("jetpack-support-jetpack-blocks-payments-block"),infoLink:(0,i.A)("wpcom-earn-payments",{site:u??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")})),g().createElement(y,n()({},e,{featureName:"donations",title:__("Accept donations and tips","jetpack"),supportLink:(0,i.A)("jetpack-support-jetpack-blocks-donations-block"),infoLink:(0,i.A)("wpcom-earn-payments",{site:u??c}),infoDescription:__("Accept one-time and recurring donations by enabling the Donations Form block.","jetpack"),buttonText:__("Enable donations form","jetpack")})),g().createElement(y,n()({},e,{featureName:"paypal",title:__("Collect PayPal payments","jetpack"),supportLink:(0,i.A)("jetpack-support-pay-with-paypal"),infoLink:(0,i.A)("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:m.jc4}))):g().createElement(p.A,n()({},e,{hideButton:!0,module:"earn",header:__("Collect payments","jetpack"),feature:h})))):null}))},31994:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});const s=[9,32,37,38,39,40];let n=!1;const i=function(){document.addEventListener("keydown",(function(e){n||-1!==s.indexOf(e.keyCode)&&(n=!0,document.documentElement.classList.add("dops-accessible-focus"))})),document.addEventListener("mouseup",(function(){n&&(n=!1,document.documentElement.classList.remove("dops-accessible-focus"))}))}},53835:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(90372),n=a(4924);s.A.setMcAnalyticsEnabled((0,n.A)("mc_analytics_enabled")),s.A.setGoogleAnalyticsEnabled((0,n.A)("google_analytics_enabled"),(0,n.A)("google_analytics_key"));const i=s.A},26704:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});const s=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"}},6838:(e,t,a)=>{"use strict";a.d(t,{$bO:()=>Y,ADq:()=>b,AhN:()=>Jt,BfZ:()=>L,CJy:()=>ye,CRr:()=>r,DCG:()=>G,DGp:()=>Nt,DHZ:()=>d,DmX:()=>yt,E$T:()=>ce,EP8:()=>Xt,EX:()=>j,EiB:()=>$e,Ek$:()=>N,EsA:()=>D,FQO:()=>he,FaP:()=>je,FpR:()=>It,FxV:()=>_t,GGh:()=>fe,GiA:()=>_,Gyc:()=>Ie,HA9:()=>Te,HWr:()=>rt,HdP:()=>pt,Hsn:()=>Le,I5k:()=>Fe,IPX:()=>Zt,IiY:()=>Ge,Is_:()=>K,JGt:()=>v,JM0:()=>it,JZ7:()=>C,Jd5:()=>Ut,Jht:()=>V,JuJ:()=>oe,JvE:()=>At,KCE:()=>Tt,KOn:()=>W,L$c:()=>Gt,LQP:()=>re,MMo:()=>T,Mk2:()=>l,O4w:()=>Ft,Olc:()=>w,Pp2:()=>Ee,Qbh:()=>ue,Qpw:()=>Ae,R3X:()=>St,Ryn:()=>M,SDZ:()=>ze,SyV:()=>jt,T7f:()=>R,TwY:()=>ct,UBB:()=>He,UIR:()=>De,V$p:()=>Pe,VZ5:()=>q,Vno:()=>ke,W$W:()=>x,WcS:()=>xt,Wn7:()=>_e,WpT:()=>c,X4A:()=>F,X8r:()=>Pt,Xd8:()=>wt,XkN:()=>Mt,Xoz:()=>te,Y1M:()=>ie,Y1g:()=>P,Y6$:()=>Lt,YQy:()=>xe,YRH:()=>H,YhD:()=>I,Z4D:()=>Ot,ZFV:()=>J,ZLW:()=>o,ZOP:()=>lt,Zcg:()=>S,ZfG:()=>Yt,ZrU:()=>Ct,_4K:()=>ae,_qL:()=>Wt,aG$:()=>ut,asM:()=>ee,b2e:()=>Z,bDd:()=>Re,bQ:()=>A,c3q:()=>Ke,cwL:()=>g,d2k:()=>bt,d6V:()=>pe,dHS:()=>f,dfd:()=>Kt,djT:()=>qe,dji:()=>p,eJ8:()=>Q,eMf:()=>Je,ebL:()=>me,gF_:()=>Bt,gvR:()=>Et,jc4:()=>Rt,kU:()=>O,kUc:()=>B,lFm:()=>at,m6F:()=>Ne,mFu:()=>z,mNr:()=>Ht,mRQ:()=>m,nFH:()=>U,nMg:()=>y,ncG:()=>X,nt$:()=>$t,oQp:()=>Oe,om_:()=>Ce,ovn:()=>be,p1k:()=>Vt,pcB:()=>we,pmS:()=>E,pt9:()=>vt,pz9:()=>se,qZE:()=>de,rD9:()=>ne,raG:()=>h,sBM:()=>k,sG7:()=>Be,suP:()=>Se,t9C:()=>$,tDL:()=>nt,tX$:()=>ge,tdG:()=>tt,uX5:()=>ve,ufm:()=>Ve,v4P:()=>qt,vS9:()=>Me,vt4:()=>i,wBS:()=>Ue,wD5:()=>Qt,xSu:()=>le,xYC:()=>n,xie:()=>u,yXc:()=>st,yuZ:()=>ot,zwM:()=>Dt,zx5:()=>We});var s=a(66087);const n="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",f="wooexpress-medium-bundle-yearly",v="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",A="personal-bundle-2y",j="personal-bundle-3y",S="personal-bundle-monthly",N="starter-plan",x="pro-plan",R="free_plan",T="jetpack_free",M="jetpack_premium",O="jetpack_business",P="jetpack_personal",L="jetpack_premium_monthly",I="jetpack_business_monthly",D="jetpack_personal_monthly",z="jetpack_backup_t0_yearly",U="jetpack_backup_t0_monthly",F="jetpack_backup_t1_bi_yearly",V="jetpack_backup_t1_yearly",B="jetpack_backup_t1_monthly",H="jetpack_backup_t2_yearly",J="jetpack_backup_t2_monthly",q="jetpack_search_bi_yearly",W="jetpack_search",G="jetpack_search_free",K="jetpack_search_monthly",$="jetpack_starter_yearly",Y="jetpack_starter_monthly",X="jetpack_security_t1_bi_yearly",Z="jetpack_security_t1_yearly",Q="jetpack_security_t1_monthly",ee="jetpack_security_t2_yearly",te="jetpack_security_t2_monthly",ae="jetpack_complete_bi_yearly",se="jetpack_complete",ne="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",fe="jetpack_anti_spam",ve="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",Ae="jetpack_social_basic_monthly",je="jetpack_social_advanced_bi_yearly",Se="jetpack_social_advanced_yearly",Ne="jetpack_social_advanced_monthly",xe="jetpack_social_v1_bi_yearly",Re="jetpack_social_v1_yearly",Te="jetpack_social_v1_monthly",Me="jetpack_golden_token_lifetime",Oe="jetpack_creator_monthly",Pe="jetpack_creator_yearly",Le="jetpack_creator_bi_yearly",Ie="jetpack_backup_daily",De="jetpack_backup_daily_monthly",ze="jetpack_backup_realtime",Ue="jetpack_backup_realtime_monthly",Fe="jetpack_security_daily",Ve="jetpack_security_daily_monthly",Be="jetpack_security_realtime",He="jetpack_security_realtime_monthly",Je="jetpack_stats_bi_yearly",qe="jetpack_stats",We="jetpack_stats_monthly",Ge="jetpack_stats_yearly",Ke="jetpack_stats_pwyw_yearly",$e="jetpack_stats_free_yearly",Ye=[M,O,P,L,I,D],Xe=[M,O,L,I],Ze=[$,Y,X,Z,Q,ee,te,Me,Fe,Ve,Be,He],Qe=[M,O,P,L,I,D,$,Y,X,Z,Q,ee,te,ae,se,ne,Me],et=[M,O,P,L,I,D,$,Y,X,Z,Q,ee,te,ae,se,ne,Fe,Ve,Be,He],tt=[ae,se,ne],at=[Me],st=[X,Z,Q,ee,te,n,i,r,o,d,u,m,h,x,ye,"wpcom-enterprise",Fe,Ve,Be,He],nt=[$,Y],it=[z,U,F,V,B,H,J,Ie,De,ze,Ue],rt=[q,W,K,G,de,ue],ot=[me,he,ge],ct=[ke,fe,ve],lt=[Ee,_e,be],pt=[we,Ce,Ae],dt=[je,Se,Ne],ut=[xe,Re,Te],mt=[...pt,...dt,...ut],ht=[ie,re,oe],gt=[pe,le,ce],kt=[Je,qe,We,Ge,Ke,$e],ft=[Oe,Pe,Le],vt="spam-akismet-plus",Et="site-backups-jetpack",_t="security-scanning-jetpack",bt="video-hosting-jetpack",yt="priority-support-jetpack",wt="wordads-jetpack",Ct="google-analytics-jetpack",At="search-jetpack",jt="videopress-jetpack",St="ai-jetpack",Nt="crm-jetpack",xt="boost-jetpack",Rt="simple-payments-jetpack",Tt="newsletter-jetpack",Mt="downtime-monitoring-jetpack",Ot="sso-jetpack",Pt="post-by-email-jetpack",Lt="social-jetpack",It="blaze-jetpack",Dt="earn-jetpack",zt={[Mt]:Z,[Ct]:Z,[St]:le,[xt]:re,[It]:T,[Dt]:T,[Lt]:Re,[Pt]:T,[yt]:Z,[At]:W,[_t]:he,[Rt]:Z,[Et]:V,[vt]:fe,[Ot]:Z,[bt]:Z,[jt]:_e,[Tt]:Pe,[wt]:Z};function Ut(e){return(0,s.includes)(et,e)}function Ft(e){return(0,s.includes)(Qe,e)}function Vt(e){return(0,s.includes)(it,e)}function Bt(e){return ct.includes(e)}function Ht(e){return mt.includes(e)}function Jt(e){return ht.includes(e)}function qt(e){return ft.includes(e)}function Wt(e){return Vt(e)||function(e){return(0,s.includes)(rt,e)}(e)||function(e){return ot.includes(e)}(e)||Bt(e)||function(e){return lt.includes(e)}(e)||Ht(e)||Jt(e)||function(e){return gt.includes(e)}(e)||function(e){return kt.includes(e)}(e)||qt(e)}function Gt(e){return Ze.includes(e)}function Kt(e){return st.includes(e)}function $t(e){return Ye.includes(e)}function Yt(e){return Xe.includes(e)}function Xt(e){return zt[e]}function Zt(e){switch(e){case T:case R:return"is-free-plan";case C:case A:case j:case S:case N:case P:case D:return"is-personal-plan";case _:case b:case y:case w:case M:case L:return"is-premium-plan";case n:case i:case r:case o:case O:case I:case d:case u:case m:case h:case x:case c:case l:case p:case g:case k:case f:case v:case E:return"is-business-plan";case $:case Y:return"is-jetpack-starter-plan";case X:case Z:case Q:return"is-security-t1-plan";case ee:case te:return"is-security-t2-plan";case ae:case se:case ne:case ye:return"is-complete-plan";case z:case U:return"is-backup-t0-plan";case F:case V:case B:return"is-backup-t1-plan";case H:case J:return"is-backup-t2-plan";case q:case W:case K:case de:case ue:return"is-search-plan";case G:return"is-free-search-plan";case me:case he:case ge:return"is-scan-plan";case ke:case fe:case ve:return"is-anti-spam-plan";case Ee:case _e:case be:return"is-videopress-plan";case Me:return"is-jetpack-golden-token-plan";case Le:case Pe:case Oe:return"is-jetpack-creator-plan";case Fe:case Ve:return"is-daily-security-plan";case Be:case He:return"is-realtime-security-plan";case Ie:case De:return"is-daily-backup-plan";case ze:case Ue:return"is-realtime-backup-plan";case we:case Ce:case Ae:return"is-jetpack-social-basic-plan";case je:case Se:case Ne:return"is-jetpack-social-advanced-plan";case xe:case Re: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 Je:case qe:case We:case Ge:case Ke:return"is-jetpack-stats-plan";case $e:return"is-free-jetpack-stats-plan";default:return""}}function Qt(e){return[Me].includes(e)}},70531:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(51119);const n=(e,t)=>{const a=new s.A;let n;a.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+a.getScreenCenterSpecs(780,700)),a.once("close",(()=>{let e=null;n&&n.keyring_id&&(e=Number(n.keyring_id)),t(e)})),a.on("message",(e=>n=e))}},34388:(e,t,a)=>{"use strict";function s(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}a.d(t,{G:()=>s})},17973:(e,t,a)=>{"use strict";a.d(t,{A:()=>Z});var s=a(69546),n=a(5932),i=a(3924),r=a(39384),o=a(41040),c=a(94900),l=a(38745),p=a(47143),d=a(27723),u=a(71803),m=a(77699),h=a(18589),g=a(49990),k=a(26468),f=a(77279),v=a(91808),E=a(4443),_=a(2152),b=a(58330),y=a(38473),w=a(61989),C=a(6034),A=a(63922),j=a(20428),S=a.n(j),N=a(53835),x=a(14643),R=a(56292),T=a(64793),M=a(51609),O=a.n(M),P=a(84952),L=a(60247),I=a(87593),D=a(77496),z=a(34679),U=a(2065),F=a(7237),V=a(26508),B=a(89336),H=a(12623),J=a(30138),q=a(82656),W=a(93287);const __=d.__,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-v1","/recommendations/welcome-social-image-generator","/recommendations/welcome-golden-token","/recommendations/backup-activated","/recommendations/scan-activated","/recommendations/unlimited-sharing-activated","/recommendations/social-v1-activated","/recommendations/antispam-activated","/recommendations/videopress-activated","/recommendations/search-activated","/recommendations/server-credentials"],K=["my-jetpack "],$=["/","/dashboard","/reconnect","/my-plan","/plans"],Y=["/settings","/security","/performance","/writing","/sharing","/discussion","/earn","/newsletter","/traffic","/privacy"];class X extends O().Component{constructor(e){super(e),this.closeReconnectModal=this.closeReconnectModal.bind(this),this.onLicenseActivationSuccess=this.onLicenseActivationSuccess.bind(this)}UNSAFE_componentWillMount(){this.props.setInitialState(),n.Ay.setApiRoot(this.props.apiRoot),n.Ay.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&N.A.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}componentDidMount(){const e=S()(".jp-jetpack-connect__container"),t=S()(".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&&N.A.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&&N.A.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){const e=S()("#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 O().createElement(b.A,this.props)}return O().createElement(_.A,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 O().createElement(b.A,{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 O().createElement(_.A,{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 O().createElement(g.A,{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:O().createElement("img",{src:s.d0+"/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},O().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 O().createElement(l.ry,{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:N.A})}if(this.isUserConnectScreen()&&(this.props.userCanManageModules||this.props.hasConnectedOwner)){const e=new URLSearchParams(location.search.split("?")[1]);return O().createElement(c.A,{title:this.props.connectingUserFeatureLabel&&(0,d.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&&O().createElement("div",{"aria-live":"assertive"},O().createElement(y.A,this.props));if(this.isMainConnectScreen()){const e=new URLSearchParams(location.search.split("?")[1]);return O().createElement(r.ConnectScreen,{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")},O().createElement("p",null,__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack")),O().createElement("ul",{role:"list"},O().createElement("li",null,__("Speed up your site with optimized images","jetpack")),O().createElement("li",null,__("Protect your site against bot attacks","jetpack")),O().createElement("li",null,__("Get notifications if your site goes offline","jetpack")),O().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=O().createElement(u.A,{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=O().createElement(x.A,{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.A)("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=O().createElement(D.A,{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=O().createElement(o.b,{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-v1":case"/recommendations/welcome-golden-token":case"/recommendations/backup-activated":case"/recommendations/scan-activated":case"/recommendations/unlimited-sharing-activated":case"/recommendations/social-v1-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=O().createElement(I.b,null):(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;default:if(T.Ix.includes(e)){t=O().createElement(R.A,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}),O().createElement("div",{"aria-live":"assertive",className:""+(this.shouldBlurMainContent()?"blur":"")},t)};getAtAGlance(){return O().createElement(u.A,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus})}shouldShowAppsCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&this.props.userCanViewStats&&$.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()&&$.includes(this.props.location.pathname)}shouldShowSupportCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&this.props.userCanManageModules&&$.includes(this.props.location.pathname)}shouldShowRewindStatus(){return this.props.isSiteConnected&&$.includes(this.props.location.pathname)}shouldShowMasthead(){return!this.isMainConnectScreen()&&[...$,...G,...Y].includes(this.props.location.pathname)}shouldShowFooter(){return[...$,...Y,...G,...T.Ix].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 O().createElement("div",null,this.shouldShowReconnectModal()&&O().createElement(w.A,{show:!0,onHide:this.closeReconnectModal}),a&&O().createElement("div",{className:"jp-top"},O().createElement("div",{className:"jp-top-inside"},this.shouldShowMasthead()&&O().createElement(E.A,{location:this.props.location}),this.shouldShowRewindStatus()&&O().createElement(k.A,null),t)),O().createElement("div",{className:e.join(" ")},O().createElement(m.A,null),O().createElement(v.Ay,null),this.shouldConnectUser()&&this.connectUser(),O().createElement(L.XG,{when:this.props.areThereUnsavedSettings,message:this.handleRouterWillLeave}),this.renderMainContent(this.props.location.pathname),this.shouldShowJetpackManageBanner()&&O().createElement(W.A,{path:this.props.location.pathname,isAgencyAccount:this.props.jetpackManage.isAgencyAccount}),this.shouldShowSupportCard()&&O().createElement(C.A,{path:this.props.location.pathname}),this.shouldShowAppsCard()&&O().createElement(h.A,null)),this.shouldShowFooter()&&O().createElement(f.A,{siteAdminUrl:this.props.siteAdminUrl}),O().createElement(A.A,{analytics:N.A}))}}const Z=(0,P.Ng)((e=>({isOfflineMode:(0,z.hN)(e),connectionStatus:(0,z.HF)(e),siteConnectionStatus:(0,z.i$)(e),connectedWpComUser:(0,z.vn)(e),isLinked:(0,z._U)(e),isConnectingUser:(0,z.Cq)(e),hasConnectedOwner:(0,z.BG)(e),isConnectionOwner:(0,z.uQ)(e),siteRawUrl:(0,U.XG)(e),blogID:(0,U.V2)(e),siteAdminUrl:(0,U.eu)(e),searchTerm:(0,H.nh)(e),apiRoot:(0,U.O3)(e),apiNonce:(0,U.Co)(e),registrationNonce:(0,U.N)(e),tracksUserData:(0,U.io)(e),areThereUnsavedSettings:(0,J.eu)(e),userCanManageModules:(0,U.Ir)(e),userCanConnectSite:(0,U.Hz)(e),userCanViewStats:(0,U.WC)(e),isSiteConnected:(0,z.lY)(e),isReconnectingSite:(0,z.Vs)(e),rewindStatus:(0,B.Qi)(e),currentVersion:(0,U.Mj)(e),showRecommendations:(0,U.ct)(e),pluginBaseUrl:(0,U.K$)(e),connectUrl:(0,z.Qp)(e),connectingUserFeatureLabel:(0,z.Kx)(e),connectingUserFrom:(0,z.m1)(e),isAtomicSite:(0,U.d9)(e),isWoaSite:(0,U.lI)(e),showMyJetpack:(0,U.WS)(e),isWooCommerceActive:(0,U.Lf)(e),hasSeenWCConnectionModal:(0,z.PL)(e),partnerCoupon:(0,U.ly)(e),currentRecommendationsStep:(0,U.Hv)(e),isSubscriber:(0,U.EV)(e),jetpackManage:(0,U.G_)(e)})),(e=>({setInitialState:()=>e((0,U.m$)()),clearUnsavedSettingsFlag:()=>e((0,J.jo)()),setHasSeenWCConnectionModal:()=>e((0,z.xc)()),resetConnectUser:()=>e((0,z.h_)()),updateLicensingActivationNoticeDismiss:()=>e((0,F.od)()),updateUserLicensesCounts:()=>e((0,F.r2)()),fetchSiteData:()=>e((0,q.aW)()),fetchSitePurchases:()=>e((0,q.w3)()),fetchModules:()=>e((0,V.CO)()),fetchSettings:()=>e((0,J.Uc)())})))((0,p.withDispatch)((e=>({setConnectionStatus:t=>{e(r.CONNECTION_STORE_ID).setConnectionStatus(t)}})))((0,L.y)(X)));window.wpNavMenuClassChange=function(){const e=function(){const e=document.querySelector("#toplevel_page_jetpack"),t={};if(e){const a=e.querySelector(".wp-submenu");if(a){const e=a.querySelectorAll("li:not(.wp-submenu-head) a"),s=(t,a)=>{let s=-1;return e.forEach(((e,n)=>{const i=e.href;("end"===a&&i.endsWith(t)||"start"===a&&i.startsWith(t))&&(s=n+1)})),s};return[{key:"dashboard",pattern:"/wp-admin/admin.php?page=jetpack#/dashboard",matchType:"end"},{key:"activityLog",pattern:"https://jetpack.com/redirect/?source=cloud-activity-log-wp-menu",matchType:"start"},{key:"settings",pattern:"/wp-admin/admin.php?page=jetpack#/settings",matchType:"end"}].forEach((({key:e,pattern:a,matchType:n})=>{const i=s(a,n);t[e]=i})),t}}}();let t=window.location.hash,a=new URLSearchParams(window.location.search);S()(".current").each((function(e,t){S()(t).removeClass("current")}));const s=e=>S()("#toplevel_page_jetpack").find("li").filter((function(t){return t===e}))[0];t=t.split("?")[0].replace(/#/,""),a=a.get("page"),K.includes(a)?s(e.myJetpack)?.classList.add("current"):$.includes(t)||G.includes(t)||T.Ix.includes(t)?s(e.dashboard)?.classList.add("current"):Y.includes(t)&&s(e.settings)?.classList.add("current");const n=S()("body");n.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)})),n.on("click",".jetpack-js-stop-propagation",(function(e){e.stopPropagation()}))}},51686:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(2467),n=a(66087);function i(e){(0,n.assign)(e,s.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},14643:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(27723),n=a(37049),i=a(63109),r=a(51609),o=a.n(r),c=a(84952),l=a(34679),p=a(82656),d=a(74936),u=a(70230),m=a(22784);const __=s.__;const h=(0,c.Ng)((e=>({activeFeatures:(0,p.mH)(e),activeProducts:(0,p.eA)(e),availableFeatures:(0,p.NI)(e),getSiteConnectionStatus:()=>(0,l.i$)(e),purchases:(0,p.yY)(e),sitePlan:(0,p.X6)(e)})))((function(e){let t=e.sitePlan.product_slug||"",a=e.availableFeatures,s=e.activeFeatures;return"offline"===e.getSiteConnectionStatus(e)&&(t="offline",a={},s={}),o().createElement(o().Fragment,null,o().createElement("h1",{className:"screen-reader-text"},__("Jetpack My Plan Details","jetpack")),o().createElement(i.A,null),o().createElement(n.A,null),o().createElement(m.A,{siteRawUrl:e.siteRawUrl}),o().createElement(u.A,{activeProducts:e.activeProducts,plan:t,purchases:e.purchases,siteAdminUrl:e.siteAdminUrl}),o().createElement(d.A,{activeFeatures:s,availableFeatures:a,plan:t,rewindStatus:e.rewindStatus,siteAdminUrl:e.siteAdminUrl,siteRawUrl:e.siteRawUrl,blogID:e.blogID}))}))},25535:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(69546),n=a(53835),i=a(28120),r=a.n(i),o=a(51609),c=a.n(o),l=a(72095);const p=e=>{const{additionalEventProperties:t,productSlug:a,action:i,title:r,tagLine:p,trackingId:d}=e;(0,o.useEffect)((()=>{n.A.tracks.recordEvent("jetpack_my_plan_banner_view",{type:d,...t})}),[t,d]);const u=(0,o.useCallback)((()=>{n.A.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(${s.d0}jetpack-banner-gradient.png)`}},c().createElement(l.A,{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},74936:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var s=a(69546),n=a(3924),i=a(56427),r=a(27723),o=a(70386),c=a(37866),l=a(53835),p=a(6838),d=a(66087),u=a(28120),m=a.n(u),h=a(51609),g=a.n(h),k=a(84952),f=a(2065),v=a(26508),E=a(99577),_=a(57526),b=a(82656),y=a(77423);const __=r.__;class w extends g().Component{static propTypes={plan:m().string};static defaultProps={plan:""};trackPlansClick=e=>{l.A.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.IPX)(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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("view_backup_dash"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("view_security_dash_rewind"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("view_security_dash"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("vaultpress-dashboard")},__("View your security dashboard","jetpack"))):g().createElement(o.A,{onClick:this.handleButtonClickForTracking("configure_vault"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{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-daily-security-plan":case"is-realtime-security-plan":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":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:s.d0+"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.A,{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:s.d0+"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.A,{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.A,{onClick:this.handleButtonClickForTracking("configure_akismet"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php",compact:!0,rna:!0},__("Upload videos","jetpack")):g().createElement(o.A,{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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("view_site_activity"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("view_earnings"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("wpcom-ads-earnings",{site:this.props.blogID??this.props.siteRawUrl})},__("View your earnings","jetpack"))):g().createElement(o.A,{onClick:this.activateAds,disabled:this.props.isActivatingModule("wordads"),compact:!0,rna:!0},__("Start earning","jetpack")))),a&&this.props.isWoASite&&g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.d0+"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")),g().createElement(o.A,{onClick:this.handleButtonClickForTracking("configure_ga"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("calypso-marketing-traffic",{site:this.props.blogID??this.props.siteRawUrl})},__("Configure 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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("schedule_posts"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("calypso-edit-posts",{site:this.props.blogID??this.props.siteRawUrl})},__("Schedule posts","jetpack"))):g().createElement(o.A,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize"),compact:!0,rna:!0},__("Activate Jetpack Social","jetpack")))));break;case"is-daily-backup-plan":case"is-realtime-backup-plan":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":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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("free_security"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("free_themes"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("free_sharing"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("calypso-marketing-connections",{site:this.props.blogID??this.props.siteRawUrl})},__("Start sharing","jetpack"))):g().createElement(o.A,{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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("view_site_activity"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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:s.d0+"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.A,{onClick:this.handleButtonClickForTracking("free_support_documentation"),compact:!0,rna:!0},g().createElement(i.ExternalLink,{href:(0,n.A)("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.A,null),e)}}const C=(0,k.Ng)((e=>({hasInstantSearch:(0,b.IT)(e,"instant-search"),isFetchingPluginsData:(0,y.rC)(e),isPluginActive:t=>(0,y.gT)(e,t),isPluginInstalled:t=>(0,y.O8)(e,t),isModuleActivated:t=>(0,v.Yp)(e,t),isActivatingModule:t=>(0,v.ro)(e,t),getModuleOverride:t=>(0,v.d1)(e,t),showBackups:(0,f.Fp)(e),getFeatureState:t=>(0,_.PL)(e,t),isActivatingFeature:t=>(0,_.Ny)(e,t),isWoASite:(0,f.lI)(e)})),(e=>({fetchPluginsData:()=>e((0,y.bR)()),activateModule:t=>e((0,v.MB)(t)),activateFeature:t=>e((0,E.Xx)({[t]:!0}))})))(w)},72095:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(13022),n=a(76122),i=a(28120),r=a.n(i),o=a(51609),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,s.A)("my-plan-card",...d,{"is-placeholder":i,"is-plan":p,"has-action-only":t&&!r&&!i});const u=(0,s.A)("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(n.A,{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},70230:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var s=a(96072),n=a.n(s),i=a(3924),r=a(56427),o=a(38443),c=a(86087),l=a(27723),p=a(13022),d=a(70386),u=a(26592),m=a(41117),h=a(68859),g=a(211),k=a(53835),f=a(6838),v=a(66087),E=a(28120),_=a.n(E),b=a(51609),y=a.n(b),w=a(84952),C=a(2065),A=a(7237),j=a(72095),S=a(33075);const __=l.__,_n=l._n,_x=l._x;class N extends y().Component{getProductProps(e,t=[]){const{displayBackups:a,dateFormat:s,purchases:n}=this.props,i={productSlug:e};if(!e)return{...i,isPlaceholder:!0};const r=(0,v.find)(n,(t=>t.product_slug===e));let p,d;switch(r&&(p=y().createElement(h.A,{key:"product-expiration",dateFormat:s,expiryDate:r.expiry_date,purchaseDate:r.subscribed_date,isRefundable:r.is_refundable,isGift:(0,f.wD5)(r.product_slug),purchaseID:r.ID}),d="1"===r.active?(0,o.isInTheFuture)(r.expiry_date)||null===r.expiry_date?y().createElement(m.p,{key:"product-activated",type:null===r.expiry_date?"never-expires":""}):y().createElement(m.p,{key:"product-expired",type:"product-expired"}):null),(0,f.IPX)(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})=>f.JM0.includes(e))),s=t.some((({product_slug:e})=>f.yuZ.includes(e)));a&&s?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"):s&&(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.A,{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,v.isEmpty)(this.props.activeProducts)||this.props.plan!==f.MMo?y().createElement(u.A,{compact:!0},this.renderHeader(__("My Plan","jetpack")),y().createElement(j.A,n()({},this.getProductProps(this.props.plan,this.props.activeProducts),{isPlan:!0}))):null}renderProducts(){return(0,v.isEmpty)(this.props.activeProducts)?null:y().createElement(u.A,{compact:!0},this.renderHeader(__("My Products","jetpack")),this.props.activeProducts.map((({ID:e,product_slug:t})=>y().createElement(j.A,n()({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:s,purchases:n}=this.props;if(!a)return null;const o=!!n?.length&&"header"===e;return y().createElement(u.A,{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?s+"admin.php?page=my-jetpack#/add-license":s+"admin.php?page=jetpack#/license/activation",onClick:this.trackLicenseActivationClick,className:"jp-landing__licensing-actions-link"})})),y().createElement("div",{className:(0,p.A)("jp-landing__licensing-actions-item",{"no-licenses":!t,"no-purchases":!o})},o&&y().createElement(d.A,{onClick:this.trackAllPurchasesClick,compact:!0,rna:!0},y().createElement(r.ExternalLink,{href:(0,i.A)("calypso-purchases")},__("View all purchases","jetpack"))),"footer"===e&&y().createElement(d.A,{href:s+"admin.php?page=jetpack#/recommendations",onClick:this.trackRecommendationsClick,primary:!0,rna:!0},_x("Recommendations","Navigation item.","jetpack")))))};trackAllPurchasesClick=()=>{k.A.tracks.recordJetpackClick({target:"calypso_purchases_link",page:"my-plan"})};trackLicenseActivationClick=()=>{k.A.tracks.recordJetpackClick({target:"licensing_activation_button",path:"licensing/activation",page:"my-plan"})};trackRecommendationsClick=()=>{k.A.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.A,{compact:!0},y().createElement(S.A,null)))}}N.propTypes={activeProducts:_().array,plan:_().string,purchases:_().array,siteAdminUrl:_().string,dateFormat:_().string,displayBackups:_().bool,plansMainTopUpgradeUrl:_().string,showRecommendations:_().bool};const x=(0,w.Ng)((e=>({dateFormat:(0,C.eW)(e),displayBackups:(0,C.Fp)(e),plansMainTopUpgradeUrl:(0,C.Q4)(e,"plans-main-top"),showRecommendations:(0,C.ct)(e),showLicensingUi:(0,C.VN)(e),hasDetachedUserLicenses:!!(0,A.UB)(e)})))(N)},33075:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(5932),n=a(27723),i=a(70386),r=a(5546),o=a(78888),c=a(51609),l=a.n(c),p=a(84952),d=a(7237);const __=n.__,_x=n._x,u=(0,p.Ng)(null,{errorNotice:r.tg,successNotice:r.Er,updateUserLicensesCounts:d.r2})((({errorNotice:e,successNotice:t,updateUserLicensesCounts:a})=>{const[n,r]=(0,c.useState)(!1),[p,d]=(0,c.useState)(""),u=(0,c.useCallback)((e=>{d(e.target.value)}),[]),m=(0,c.useCallback)((()=>{p&&!n&&(r(!0),s.Ay.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,n,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.A,{name:"jetpack_license_key",className:"code",value:p,placeholder:__("Jetpack licence key","jetpack"),disabled:n,onChange:u}),l().createElement(i.A,{primary:!0,compact:!0,onClick:m},n?_x("Applying…","Button caption","jetpack"):_x("Apply license","Button caption","jetpack",0)))}))},22784:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(3924),n=a(27723),i=a(70386),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(84952),d=a(2065),u=a(25535);const __=n.__,m=({partnerCoupon:e,siteRawUrl:t})=>{if("object"!=typeof e)return null;const a=l().createElement(i.A,{primary:!0,href:(0,s.A)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:t,query:`coupon=${e.coupon_code}`})},__("Redeem","jetpack"));return l().createElement(u.A,{productSlug:e.product.slug,action:a,title:(0,n.sprintf)(/* translators: %s: Jetpack product or plan name. */ __("Get %s free for one year!","jetpack"),e.product.title),tagLine:(0,n.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.Ng)((e=>({partnerCoupon:(0,d.ly)(e)})))(m)},84134:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(86087),n=a(27723);const __=n.__,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,s.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,s.createInterpolateElement)((0,n.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,s.createInterpolateElement)(/* translators: %1$s placeholder is the user display name */ /* translators: %1$s placeholder is the user display name */ (0,n.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)))}},29951:(e,t,a)=>{"use strict";a.d(t,{O:()=>s});const s="subscriptions"},14178:(e,t,a)=>{"use strict";a.d(t,{A:()=>z});var s=a(96072),n=a.n(s),i=a(68316),r=a(13346),o=a(51112),c=a(14273),l=a(3924),p=a(75918),d=a(28509),u=a(56427),m=a(86087),h=a(27723),g=a(70386),k=a(11895),f=a(63344),v=a(8332),E=a(19579),_=a(9520),b=a(78888),y=a(53835),w=a(6838),C=a(51609),A=a(84952),j=a(34679),S=a(2065),N=a(26508),x=a(84134),R=a(29951);const __=h.__,T="wpcom_featured_image_in_email",M="wpcom_subscription_emails_use_excerpt",O="jetpack_gravatar_in_email",P="jetpack_author_in_email",L="jetpack_post_date_in_email",I="jetpack_subscriptions_reply_to",D="jetpack_subscriptions_from_name",z=(0,f.t)((0,A.Ng)(((e,t)=>({moduleName:t.moduleName,subscriptionsModule:(0,N.f_)(e,R.O),isSubscriptionsActive:t.getOptionValue(R.O),isSavingAnyOption:t.isSavingAnyOption,isFeaturedImageInEmailEnabled:t.getOptionValue(T),isGravatarEnabled:t.getOptionValue(O),isPostDateEnabled:t.getOptionValue(L),isAuthorEnabled:t.getOptionValue(P),subscriptionEmailsUseExcerpt:t.getOptionValue(M),email:(0,S.rW)(e),siteName:(0,S.AM)(e),gravatar:(0,S.Qz)(e),displayName:(0,S.Mn)(e),adminUrl:(0,S.eu)(e),subscriptionReplyTo:t.getOptionValue(I),subscriptionFromName:t.getOptionValue(D),dateExample:(0,S.s2)(e),unavailableInOfflineMode:(0,j.Em)(e,R.O),siteHasConnectedUser:(0,j.BG)(e)})))((e=>{const{isSubscriptionsActive:t,isSavingAnyOption:a,subscriptionsModule:s,unavailableInOfflineMode:f,isFeaturedImageInEmailEnabled:A,isGravatarEnabled:j,isAuthorEnabled:S,isPostDateEnabled:N,subscriptionEmailsUseExcerpt:z,subscriptionReplyTo:U,subscriptionFromName:F,updateFormStateAndSaveOptionValue:V,gravatar:B,email:H,adminUrl:J,displayName:q,dateExample:W,siteName:G,siteHasConnectedUser:K}=e,$=!K||!t||f,Y=a([O,P,L]),X=$||a([O]),Z=$||a([P]),Q=$||a([L]),[ee,te]=(0,C.useState)({isGravatarEnabled:j,isAuthorEnabled:S,isPostDateEnabled:N}),ae=(0,C.useCallback)((()=>{const e=!A;V(T,e),y.A.tracks.recordEvent("jetpack_newsletter_set_toggle_featured_image_in_email",{value:e})}),[A,V]),se=(0,C.useCallback)((()=>{const e=!j;V(O,e),y.A.tracks.recordEvent("jetpack_newsletter_set_toggle_gravatar_in_email",{value:e}),te({...ee,isGravatarEnabled:e})}),[j,V,te,ee]),ne=(0,C.useCallback)((()=>{const e=!S;V(P,e),y.A.tracks.recordEvent("jetpack_newsletter_set_toggle_author_in_email",{value:e}),te({...ee,isAuthorEnabled:e})}),[S,V,te,ee]),ie=(0,C.useCallback)((()=>{const e=!N;V(L,e),y.A.tracks.recordEvent("jetpack_newsletter_set_toggle_post_data_in_email",{value:e}),te({...ee,isPostDateEnabled:e})}),[N,V,te,ee]),re=(0,C.useCallback)((e=>{V(M,"excerpt"===e),y.A.tracks.recordEvent("jetpack_newsletter_set_emails_use_excerpt",{value:e})}),[V]),oe=(0,C.useCallback)((e=>{V(I,e),y.A.tracks.recordEvent("jetpack_newsletter_set_reply_to",{value:e})}),[V]),ce=$||a([T]),le=$||a([M]),pe=$||a([I]),de=$||a([D]),[ue,me]=(0,C.useState)({value:F,hasChanged:!1}),he=(0,C.useCallback)((e=>{me({value:e.target.value,hasChanged:F!==e.target.value})}),[me,F]),ge=(0,C.useCallback)((()=>{V(D,ue.value),y.A.tracks.recordEvent("jetpack_newsletter_set_from_name_click",{value:ue.value}),me({value:ue.value,hasChanged:!1})}),[ue,V]);return React.createElement(v.A,n()({},e,{header:__("Email configuration","jetpack"),hideButton:!0,feature:w.KCE,module:R.O,saveDisabled:Y,isDisabled:$}),React.createElement(E.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!K,module:s,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.A,{disabled:ce,checked:A&&t,toogling:a([T]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Enable featured image on your new post emails","jetpack")),onChange:ae})),React.createElement(E.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!K,module:s,className:"newsletter-group"},React.createElement(k.kK,{className:"jp-form-label-wide"},__("Email byline","jetpack"),React.createElement(r.A,{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(x.A,{isGravatarEnabled:ee.isGravatarEnabled,isAuthorEnabled:ee.isAuthorEnabled,isPostDateEnabled:ee.isPostDateEnabled,gravatar:B,displayName:q,dateExample:W}),React.createElement("div",{className:"email-settings__gravatar"},React.createElement(i.A,{disabled:X,checked:j&&t,toogling:a([O]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Show author avatar on your emails","jetpack")),onChange:se}),ee.isGravatarEnabled&&React.createElement("div",{className:"email-settings__help-info"},React.createElement("div",{className:"email-settings__gravatar-help-info"},React.createElement("img",{src:B,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.A,{isExternalLink:!0,href:"https://gravatar.com/profile/avatars",variant:"secondary",size:"small"},__("Update your Gravatar","jetpack"))))),React.createElement(_.A,{text:(0,h.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"),H),privacyLink:"https://support.gravatar.com/account/data-privacy/"})),React.createElement(i.A,{disabled:Z,checked:S&&t,toogling:a([P]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Show author display name","jetpack")),onChange:ne}),React.createElement(i.A,{disabled:Q,checked:N&&t,toogling:a([L]),label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Add the post date","jetpack")),onChange:ie}),ee.isPostDateEnabled&&React.createElement("div",{className:"email-settings__help-info"},(0,m.createInterpolateElement)(__("You can customize the date format in your site’s <settingsLink>general settings</settingsLink>","jetpack"),{settingsLink:React.createElement(u.ExternalLink,{href:J+"options-general.php"})}))),React.createElement(E.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!K,module:s,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(k.kK,{className:"jp-form-label-wide"},__("For each new post email, include","jetpack")),React.createElement(c.A,{className:"jp-form-radio-gap",selected:z?"excerpt":"full",disabled:le,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:re})),React.createElement(E.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!K,module:s,className:"newsletter-group",support:{link:(0,l.A)("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(k.kK,{className:"jp-form-label-wide"},__("Sender name and reply-to settings","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(p.A,{horizontalGap:0,fluid:!0,className:"sender-name"},React.createElement(d.A,{sm:3,md:4,lg:4},React.createElement(b.A,{value:ue.value,disabled:de,onChange:he,placeholder:G||__("Enter sender name","jetpack")})),React.createElement(d.A,{sm:1,md:1,lg:1},React.createElement(g.A,{primary:!0,rna:!0,onClick:ge,disabled:de||!ue.hasChanged},__("Save","jetpack")))),React.createElement("p",{className:"reply-to"},__("Choose who receives emails when subscribers reply to your newsletter.","jetpack")),React.createElement(c.A,{className:"jp-form-radio-gap",selected:U||"comment",disabled:pe,options:[{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"},{label:React.createElement("span",{className:"jp-form-toggle-explanation"},__("Replies are not allowed","jetpack")),value:"no-reply"}],onChange:oe}),React.createElement(p.A,{horizontalGap:0,fluid:!0,className:"sender-name"},React.createElement(d.A,{className:"sender-name-example byline-preview"},(0,h.sprintf)(/* translators: 1. Site name or user entered replacement value 2. is the example email */ __("Preview: %1$s <%2$s>","jetpack"),ue.value||G,(e=>{switch(e){case"author":return"author-name@example.com";case"comment":return"comment-reply@wordpress.com";default:return"donotreply@wordpress.com"}})(U))))))})))},73842:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(27723),n=a(63109),i=a(51609),r=a.n(i),o=a(84952),c=a(26508),l=a(12623),p=a(29951),d=a(14178),u=a(24871),m=a(65849),h=a(23468),g=a(48220),k=a(64116);const __=s.__;const f=(0,o.Ng)((e=>({module:t=>(0,c.f_)(e,t),isModuleFound:t=>(0,l.jQ)(e,t)})))((function(e){const{active:t,isModuleFound:a,searchTerm:s,siteRawUrl:i,blogID:o}=e;if(!s&&!t)return null;const c=a(p.O);return c?r().createElement("div",null,r().createElement(n.A,null),r().createElement("h1",{className:"screen-reader-text"},__("Jetpack Newsletter Settings","jetpack")),r().createElement("h2",{className:"jp-settings__section-title"},s?__("Newsletter","jetpack"):__("Transform your blog posts into newsletters to easily reach your subscribers.","jetpack",0)),c&&r().createElement(r().Fragment,null,r().createElement(m.A,{siteRawUrl:i,blogID:o}),r().createElement(k.A,null),r().createElement(g.A,null),r().createElement(h.A,null),r().createElement(d.A,null),r().createElement(u.A,e))):null}))},24871:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(96072),n=a.n(s),i=a(27723),r=a(11895),o=a(63344),c=a(8332),l=a(19579),p=a(6838),d=a(51609),u=a(84952),m=a(34679),h=a(26508),g=a(26224),k=a(29951);const __=i.__,f="subscription_options",v=(0,o.t)((0,u.Ng)(((e,t)=>({isSubscriptionsActive:t.getOptionValue(k.O),subscriptionsModule:(0,h.f_)(e,k.O),isSavingAnyOption:t.isSavingAnyOption,moduleName:t.moduleName,onOptionChange:t.onOptionChange,welcomeMessage:t.getOptionValue(f)?.welcome||"",unavailableInOfflineMode:(0,m.Em)(e,k.O),siteHasConnectedUser:(0,m.BG)(e)})))((e=>{const{isSubscriptionsActive:t,isSavingAnyOption:a,subscriptionsModule:s,onOptionChange:i,welcomeMessage:o,unavailableInOfflineMode:u,siteHasConnectedUser:m}=e,h=(0,d.useCallback)((e=>{const t={target:{name:e.target.name,value:{welcome:e.target.value}}};i(t)}),[i]),v=a([f]),E=!m||!t||u||v;return React.createElement(c.A,n()({},e,{header:__("Messages","jetpack"),feature:p.KCE,module:k.O,saveDisabled:v,isDisabled:E}),React.createElement(l.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!m,module:s},React.createElement("p",{className:"jp-settings-card__email-settings"},__("These settings change the emails sent from your site to your readers.","jetpack")),React.createElement(r.lR,null,React.createElement("span",{className:"jp-form-label-wide email-settings__title"},__("Welcome email message","jetpack")),React.createElement(g.A,{disabled:E,name:f,value:o,onChange:h})),React.createElement("p",{className:"jp-form-setting-explanation"},__("You can use plain text or HTML tags in this textarea for formatting.","jetpack"))))})))},23468:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(27723),c=a(13022),l=a(8332),p=a(19579),d=a(6838),u=a(51609),m=a.n(u),h=a(84952),g=a(34679),k=a(26508),f=a(26592),v=a(63344),E=a(67204),_=a(29951);const __=o.__,b="wpcom_newsletter_categories_enabled",y="wpcom_newsletter_categories",w=e=>{switch(typeof e){case"number":return e;case"string":return parseInt(e);case"object":return e.term_id}};const C=(0,v.t)((0,h.Ng)(((e,t)=>({isSubscriptionsActive:t.getOptionValue(_.O),subscriptionsModule:(0,k.f_)(e,_.O),isNewsletterCategoriesEnabled:t.getOptionValue(b),newsletterCategories:t.getOptionValue(y),categories:t.getOptionValue("categories"),requiresConnection:(0,g.zt)(e,_.O),unavailableInOfflineMode:(0,g.Em)(e,_.O),siteHasConnectedUser:(0,g.BG)(e)})))((function(e){const{updateFormStateModuleOption:t,isSubscriptionsActive:a,isNewsletterCategoriesEnabled:s,newsletterCategories:o,categories:h,unavailableInOfflineMode:g,subscriptionsModule:k,updateFormStateOptionValue:v,isSavingAnyOption:C,siteHasConnectedUser:A}=e,j=(0,u.useCallback)((()=>{t(_.O,b)}),[t]),S=o.map(w),N=(0,u.useMemo)((()=>h.map((e=>({...e,name:e.cat_name,id:e.term_id})))),[h]),x=(0,u.useCallback)(((e,t)=>{let a;t?S.includes(e)||(a=[...S,e].sort(((e,t)=>e-t))):a=S.filter((t=>t!==e)),v(y,a)}),[S,v]),R=C([b,y]),T=!A||!a||g||R;return m().createElement(l.A,n()({},e,{header:__("Newsletter categories","jetpack"),feature:d.KCE,module:_.O,saveDisabled:R,isDisabled:T}),m().createElement(p.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!A,module:k,support:{text:__("When you add a new category, your existing subscribers will be automatically subscribed to it.","jetpack"),link:(0,i.A)("jetpack-support-subscriptions")}},m().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")),m().createElement("div",{className:"newsletter-categories-toggle-wrapper"},m().createElement(r.A,{disabled:T,checked:s&&a,onChange:j,label:m().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable newsletter categories","jetpack"))})),m().createElement("div",{className:(0,c.A)("newsletter-colapsable",{hide:!s||!a})},m().createElement(E.A,{items:N,selectedItems:S,onChange:x,disabled:T}))),m().createElement("div",{className:(0,c.A)("newsletter-card-colapsable",{hide:!s||!a})},m().createElement(f.A,{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"))))})))},65849:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(26592),c=a(63344),l=a(60619),p=a(8332),d=a(19579),u=a(53835),m=a(6838),h=a(51609),g=a.n(h),k=a(84952),f=a(34679),v=a(26508),E=a(29951);const __=r.__,_=()=>{u.A.tracks.recordJetpackClick("manage-subscribers")};const b=(0,c.t)((0,k.Ng)(((e,t)=>({isLinked:(0,f._U)(e),isOffline:(0,f.hN)(e),isSubscriptionsActive:t.getOptionValue(E.O),unavailableInOfflineMode:(0,f.Em)(e,E.O),subscriptions:(0,v.f_)(e,E.O),siteHasConnectedUser:(0,f.BG)(e)})))((function(e){const{siteRawUrl:t,blogID:a,toggleModuleNow:s,isSavingAnyOption:r,isLinked:c,isSubscriptionsActive:u,unavailableInOfflineMode:h,subscriptions:k,siteHasConnectedUser:f}=e;return g().createElement(p.A,n()({},e,{header:__("Newsletter","jetpack"),hideButton:!0,feature:m.KCE,module:E.O,isDisabled:!f}),g().createElement(d.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!f,module:k,support:{text:__("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.","jetpack"),link:(0,i.A)("jetpack-support-subscriptions")}},g().createElement(l.j,{slug:"subscriptions",disabled:!f||h,activated:u,toggling:r(E.O),toggleModule:s},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Let visitors subscribe to this site and receive emails when you publish a post","jetpack")))),!h&&u&&c?g().createElement(o.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:_,href:(0,i.A)("jetpack-settings-jetpack-manage-subscribers",{site:a??t}),target:"_blank",rel:"noopener noreferrer"},__("Manage all subscribers","jetpack")):"")})))},48220:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(96072),n=a.n(s),i=a(27723),r=a(70386),o=a(63344),c=a(8332),l=a(19579),p=a(53835),d=a(6838),u=a(51609),m=a.n(u),h=a(84952),g=a(34679),k=a(2065),f=a(26508),v=a(29951);const __=i.__;const E=(0,o.t)((0,h.Ng)(((e,t)=>({isSubscriptionsActive:t.getOptionValue(v.O),setupPaymentPlansUrl:(0,k.r9)(e,"monetize/payments"),subscriptionsModule:(0,f.f_)(e,v.O),isOffline:(0,g.hN)(e),siteHasConnectedUser:(0,g.BG)(e)})))((function(e){const{isSubscriptionsActive:t,setupPaymentPlansUrl:a,subscriptionsModule:s,siteHasConnectedUser:i}=e,o=!t,h=(0,u.useCallback)((()=>{p.A.tracks.recordJetpackClick("newsletter_settings_setup_payment_plans_button_click")}),[]);return m().createElement(c.A,n()({},e,{header:__("Paid Newsletter","jetpack"),hideButton:!0,feature:d.KCE,isDisabled:!i}),m().createElement(l.A,{disableInOfflineMode:!0,disableInSiteConnectionMode:!i,module:s},m().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")),m().createElement(r.A,{href:o?void 0:a,onClick:h,disabled:!i||o,primary:!0,rna:!0},__("Set up","jetpack"))))})))},64116:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var s=a(96072),n=a.n(s),i=a(68316),r=a(56427),o=a(27723),c=a(93832),l=a(11895),p=a(63344),d=a(8332),u=a(19579),m=a(6838),h=a(51609),g=a.n(h),k=a(84952),f=a(34679),v=a(2065),E=a(26508),_=a(29951);const __=o.__;const b=(0,p.t)((0,k.Ng)(((e,t)=>({isLinked:(0,f._U)(e),isOffline:(0,f.hN)(e),isSubscriptionsActive:t.getOptionValue(_.O),unavailableInOfflineMode:(0,f.Em)(e,_.O),subscriptions:(0,E.f_)(e,_.O),isStbEnabled:t.getOptionValue("stb_enabled"),isStcEnabled:t.getOptionValue("stc_enabled"),isSmEnabled:t.getOptionValue("sm_enabled"),isSubscribeOverlayEnabled:t.getOptionValue("jetpack_subscribe_overlay_enabled"),isSubscribeFloatingEnabled:t.getOptionValue("jetpack_subscribe_floating_button_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.ld)(e),isBlockTheme:(0,v.JQ)(e),siteAdminUrl:(0,v.eu)(e),themeStylesheet:(0,v.bc)(e),siteHasConnectedUser:(0,f.BG)(e)})))((function(e){const{unavailableInOfflineMode:t,isSavingAnyOption:a,isStbEnabled:s,isStcEnabled:o,isSmEnabled:p,isSubscribeOverlayEnabled:k,isSubscribeFloatingEnabled:f,isSubscribePostEndEnabled:v,isLoginNavigationEnabled:E,isSubscribeNavigationEnabled:b,isSubscriptionSiteEditSupported:y,isSubscriptionsActive:w,subscriptions:C,updateFormStateModuleOption:A,isBlockTheme:j,siteAdminUrl:S,themeStylesheet:N,siteHasConnectedUser:x}=e,R=S&&N?(0,c.addQueryArgs)(`${S}site-editor.php`,{postType:"wp_template_part",postId:`${N}//jetpack-subscribe-modal`,canvas:"edit"}):null,T=S&&N?(0,c.addQueryArgs)(`${S}site-editor.php`,{postType:"wp_template_part",postId:`${N}//jetpack-subscribe-overlay`,canvas:"edit"}):null,M=S&&N?(0,c.addQueryArgs)(`${S}site-editor.php`,{postType:"wp_template_part",postId:`${N}//jetpack-subscribe-floating-button`,canvas:"edit"}):null,O=S?(0,c.addQueryArgs)(`${S}site-editor.php`,{postType:"wp_template",postId:`${N}//single`}):null,P=S?(0,c.addQueryArgs)(`${S}site-editor.php`,{postType:"wp_template",postId:`${N}//index`}):null,L=(0,h.useCallback)((()=>{A(_.O,"stb_enabled")}),[A]),I=(0,h.useCallback)((()=>{A(_.O,"stc_enabled")}),[A]),D=(0,h.useCallback)((()=>{A(_.O,"sm_enabled")}),[A]),z=(0,h.useCallback)((()=>{A(_.O,"jetpack_subscribe_overlay_enabled")}),[A]),U=(0,h.useCallback)((()=>{A(_.O,"jetpack_subscribe_floating_button_enabled")}),[A]),F=(0,h.useCallback)((()=>{A(_.O,"jetpack_subscriptions_subscribe_post_end_enabled")}),[A]),V=(0,h.useCallback)((()=>{A(_.O,"jetpack_subscriptions_login_navigation_enabled")}),[A]),B=(0,h.useCallback)((()=>{A(_.O,"jetpack_subscriptions_subscribe_navigation_enabled")}),[A]),H=!w||t||!x;return g().createElement(d.A,n()({},e,{hideButton:!0,feature:m.KCE,module:_.O,header:__("Subscriptions","jetpack"),isDisabled:!x}),g().createElement(u.A,{disableInOfflineMode:!0,disableInSiteConnectionMode:!x,module:C},g().createElement("p",null,__("Automatically add subscription forms to your site and turn visitors into subscribers.","jetpack")),g().createElement(l.dV,null,g().createElement(l.kK,null,__("Homepage and posts","jetpack")),g().createElement(i.A,{checked:w&&v,disabled:H,toggling:a(["jetpack_subscriptions_subscribe_post_end_enabled"]),onChange:F,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Add the Subscribe Block at the end of each post","jetpack"),y&&O&&g().createElement(g().Fragment,null,". ",g().createElement(r.ExternalLink,{href:O},__("Preview and edit","jetpack"))))}),g().createElement(i.A,{checked:w&&p,disabled:H,toggling:a(["sm_enabled"]),onChange:D,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Show subscription pop-up when scrolling a post","jetpack"),j&&R&&g().createElement(g().Fragment,null,". ",g().createElement(r.ExternalLink,{href:R},__("Preview and edit","jetpack"))))}),g().createElement(i.A,{checked:w&&k,disabled:H,toggling:a(["jetpack_subscribe_overlay_enabled"]),onChange:z,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Subscription overlay on homepage","jetpack"),j&&T&&g().createElement(g().Fragment,null,". ",g().createElement(r.ExternalLink,{href:T},__("Preview and edit","jetpack"))))}),g().createElement(i.A,{checked:w&&f,disabled:H,toggling:a(["jetpack_subscribe_floating_button_enabled"]),onChange:U,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Floating subscribe button on site's bottom corner","jetpack"),j&&M&&g().createElement(g().Fragment,null,". ",g().createElement(r.ExternalLink,{href:M},__("Preview and edit","jetpack"))))})),y&&g().createElement(l.dV,null,g().createElement(l.kK,null,__("Navigation","jetpack")),g().createElement(i.A,{checked:w&&b,disabled:H,toggling:a(["jetpack_subscriptions_subscribe_navigation_enabled"]),onChange:B,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Add the Subscribe block to the navigation","jetpack"),P&&g().createElement(g().Fragment,null,". ",g().createElement(r.ExternalLink,{href:P},__("Preview and edit","jetpack"))))}),g().createElement(i.A,{checked:w&&E,disabled:H,toggling:a(["jetpack_subscriptions_login_navigation_enabled"]),onChange:V,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Add the Subscriber Login block to the navigation","jetpack"),P&&g().createElement(g().Fragment,null,". ",g().createElement(r.ExternalLink,{href:P},__("Preview and edit","jetpack"))))})),g().createElement(l.dV,null,g().createElement(l.kK,null,__("Comments","jetpack")),g().createElement(i.A,{checked:w&&s,disabled:H,toggling:a(["stb_enabled"]),onChange:L,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the “subscribe to site” option on your comment form","jetpack"))}),g().createElement(i.A,{checked:w&&o,disabled:H,toggling:a(["stc_enabled"]),onChange:I,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the “subscribe to comments” option on your comment form","jetpack"))}))))})))},84202:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(10067),n=a.n(s),i=a(51686);const r=n()("calypso:notices");r("initializing notices");const o={containerNames:{}};(0,i.A)(o);let c=[];const l={new:function(e,t,a){const s=t.overlay?"overlay-notices":"notices";o.containerNames[s]=s,r("creating notice",e,t,a),o[s]=[];const n={type:t.type||"message",status:a,text:e,duration:t.duration,container:s,button:t.button,href:t.href,onClick:e=>{if("function"==typeof t.onClick){const a=l.removeNotice.bind(l,n);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(n):o[s].push(n),o.emit("change"),n},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,s,n=!1;const i=function(e){return e.persistent};for(s in o.containerNames)a=o[s].length,o[s]=o[s].filter(i),a!==o[s].length&&(n=!0);c.length&&(c.forEach((function(e){o[e.container]=[],o[e.container].push(e)})),c=[]),n&&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},79223:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var s=a(27723),n=a(63109),i=a(51609),r=a.n(i),o=a(84952),c=a(34679),l=a(26508),p=a(12623),d=a(65779),u=a(17467),m=a(37276);const __=s.__;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};if(!this.props.searchTerm&&!this.props.active)return null;return["photon","videopress","photon-cdn","search"].some(this.props.isModuleFound)?r().createElement("div",null,r().createElement(n.A,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.A,e),r().createElement(m.A,e),r().createElement(d.A,e)):null}}const g=(0,o.Ng)((e=>({module:t=>(0,l.f_)(e,t),isUnavailableInOfflineMode:t=>(0,c.Em)(e,t),isModuleFound:t=>(0,p.jQ)(e,t),getModuleOverride:t=>(0,l.d1)(e,t),hasConnectedOwner:(0,c.BG)(e)})))(h)},65779:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var s=a(96072),n=a.n(s),i=a(3924),r=a(72989),o=a(68316),c=a(86087),l=a(27723),p=a(11895),d=a(3983),u=a(63344),m=a(60619),h=a(8332),g=a(19579),k=a(6838),f=a(83101),v=a(51609),E=a.n(v),_=a(84952),b=a(34679),y=a(26508),w=a(12623),C=a(82656);const __=l.__,_x=l._x;class A 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:s,hasVideoPressUnlimitedStorage:u,isFetching:f,isOffline:v,upgradeUrl:_,videoPressStorageUsed:b}=this.props,y=s&&!u&&null!==b,w=s||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.A,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:(0,i.A)("jetpack-support-videopress")}},E().createElement(p.kK,{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.A,{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.j,{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.dV,null,E().createElement(o.A,{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"))})))),A="inactive"===this.props.getModuleOverride("videopress"),j=e&&!s&&a&&!v&&!f;return E().createElement(h.A,n()({},this.props,{header:__("Media","jetpack"),feature:!A&&k.d2k,hideButton:!0}),e&&C,j&&E().createElement(d.Ay,{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.EP8)(k.SyV),feature:"jetpack_videopress",href:_,rna:!0}))}}const j=(0,_.Ng)((e=>({module:t=>(0,y.f_)(e,t),isModuleFound:t=>(0,w.jQ)(e,t),sitePlan:(0,C.X6)(e),hasVideoPressFeature:(0,C.IT)(e,"videopress-1tb-storage")||(0,C.IT)(e,"videopress-unlimited-storage")||(0,C.IT)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,C.IT)(e,"videopress-unlimited-storage"),hasConnectedOwner:(0,b.BG)(e),isOffline:(0,b.hN)(e),isFetching:(0,C.SN)(e),getModuleOverride:t=>(0,y.d1)(e,t),upgradeUrl:(0,f.F)(e,"videopress"),videoPressStorageUsed:(0,C.$U)(e)})))((0,u.t)(A))},17467:(e,t,a)=>{"use strict";a.d(t,{A:()=>A});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(27723),c=a(26592),l=a(11895),p=a(63344),d=a(60619),u=a(8332),m=a(19579),h=a(6838),g=a(51609),k=a.n(g),f=a(84952),v=a(34679),E=a(2065),_=a(30138),b=a(82656);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 A=(0,f.Ng)((e=>({isLoading:(0,b.SN)(e),inOfflineMode:(0,v.hN)(e),hasClassicSearch:(0,b.IT)(e,"search"),hasInstantSearch:(0,b.IT)(e,"instant-search"),failedToEnableSearch:!(0,_.sy)(e,"search")&&!(0,_.Ny)(e,"search")&&!1===(0,_.uH)(e,"search"),isWidgetsSupported:(0,E.f8)(e,"widgets")})))((0,p.t)((function(e){const{failedToEnableSearch:t,hasInstantSearch:a,updateOptions:s}=e,o=e.getOptionValue("search"),p=e.getOptionValue("instant_search_enabled","search"),f=(0,g.useCallback)((()=>{const e={search:!o};p!==(a&&!o)&&(e.instant_search_enabled=a&&!o),s(e)}),[a,p,o,s]),v=(0,g.useCallback)((()=>{const e={instant_search_enabled:a&&!p};e.instant_search_enabled&&!o&&(e.search=!0),s(e)}),[a,p,o,s]);(0,g.useEffect)((()=>{t&&a&&(s({has_jetpack_search_product:!0}),f())}),[t,a,s,f]);const E=!!e.isSavingAnyOption("search"),_=!!e.isSavingAnyOption("instant_search_enabled");return k().createElement(u.A,n()({},e,{module:"search",feature:h.JvE,hideButton:!0}),k().createElement(m.A,{disableInOfflineMode:!0,hasChild:!0,module:{module:"search"},support:{text:C,link:(0,i.A)("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.j,{activated:o,compact:!0,toggling:E,slug:"search",toggleModule:f},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable Search","jetpack"))),k().createElement(l.dV,null,k().createElement(r.A,{checked:o&&p,disabled:E||!e.hasInstantSearch,toggling:_,onChange:v,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.A,{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.A,{className:"jp-settings-card__configure-link",compact:!0,href:"admin.php?page=jetpack-search-configure"},w))})))},37276:(e,t,a)=>{"use strict";a.d(t,{A:()=>C});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(27723),c=a(23443),l=a(11895),p=a(63344),d=a(60619),u=a(8332),m=a(19579),h=a(53835),g=a(51609),k=a.n(g),f=a(84952),v=a(34679),E=a(26508),_=a(12623),b=a(2065),y=a(77423);const __=o.__,w=(0,p.t)(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,s=this.props.getModuleOverride("photon-cdn");let n=this.props.getModuleOverride("photon");if(this.props.isOfflineMode&&(n="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"!==n&&(e=!1,i={photon:!1,"tiled-gallery":!1,tiled_galleries:!1}),!1==!t&&"active"!==s&&(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"!==n&&(e=!0,i={photon:!0,"tiled-gallery":!0,tiled_galleries:!0}),!1===t&&"inactive"!==s&&(t=!0,i={...i,"photon-cdn":!0}),this.props.updateOptions(i,a)}!0===e||!0===t?h.A.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):h.A.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),this.props.getOptionValue("photon")!==e&&h.A.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===e?"off":"on"}),this.props.getOptionValue("photon-cdn")!==t&&h.A.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"),s=this.props.getModuleOverride("photon-cdn");let o=this.props.getModuleOverride("photon");this.props.isOfflineMode&&(o="inactive");const p=e&&t&&("inactive"!==o||"inactive"!==s),h=(e||t)&&("inactive"!==o||"inactive"!==s);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.A,n()({},this.props,{header:__("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed"}),(e||t)&&k().createElement(k().Fragment,null,k().createElement(m.A,{hasChild:!0,support:{link:(0,i.A)("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.A,{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.dV,null,e&&k().createElement(d.j,{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.j,{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.A,{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,f.Ng)((e=>({module:t=>(0,E.f_)(e,t),isModuleFound:t=>(0,_.jQ)(e,t),isOfflineMode:(0,v.hN)(e),getModuleOverride:t=>(0,E.d1)(e,t),isAtomicSite:(0,b.d9)(e),isPageOptimizeActive:(0,y.gT)(e,"page-optimize/page-optimize.php")})))(w)},91521:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var s=a(96072),n=a.n(s),i=a(3924),r=a(56427),o=a(86087),c=a(27723),l=a(62413),p=a(63344),d=a(8332),u=a(19579),m=a(53835),h=a(28120),g=a.n(h),k=a(51609),f=a.n(k),v=a(84952),E=a(30138),_=a(83177),b=a(51142);const __=c.__,_x=c._x,y=()=>m.A.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"}),w=()=>m.A.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"}),C=()=>m.A.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"});class A extends f().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()&&f().createElement("div",null,f().createElement("h1",{className:"screen-reader-text"},__("Jetpack Privacy Settings","jetpack")),f().createElement(d.A,n()({},this.props,{header:_x("Privacy Settings","Settings header","jetpack"),hideButton:!0}),f().createElement(u.A,{hasChild:!0},f().createElement("p",null,__("We are committed to your privacy and security.","jetpack")),f().createElement("p",null,f().createElement(l.A,{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:f().createElement(r.ExternalLink,{href:(0,i.A)("a8c-cookies"),onClick:w,rel:"noopener noreferrer"})}))),f().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:f().createElement(r.ExternalLink,{href:(0,i.A)("a8c-privacy"),onClick:y,rel:"noopener noreferrer"})})),f().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:f().createElement(r.ExternalLink,{href:(0,i.A)("a8c-cookies"),onClick:w,rel:"noopener noreferrer"})})),f().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:f().createElement(r.ExternalLink,{href:(0,i.A)("jetpack-support-privacy"),onClick:C,rel:"noopener noreferrer"})}))))):null}}const j=(0,v.Ng)((e=>({settings:(0,E.mt)(e),trackingSettings:(0,b.h5)(e),isUpdatingTrackingSettings:(0,b.vu)(e),isFetchingTrackingSettings:(0,b.h)(e)})),(e=>({setTrackingSettings:t=>{m.A.tracks.setOptOut(t),e((0,_.Y)({tracks_opt_out:t}))},fetchTrackingSettings:()=>e((0,_.X)())})))((0,p.t)(A))},72747:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var s=a(3924),n=a(1158),i=a(27723),r=a(70386),o=a(17659),c=a(37866),l=a(64610),p=a(53835),d=a(66087),u=a(28120),m=a.n(u),h=a(51609),g=a.n(h),k=a(84952),f=a(32819),v=a(34679),E=a(2065),_=a(89336),b=a(76358),y=a(82656),w=a(77423);const __=i.__,_n=i._n,_x=i._x,C=(e,t)=>()=>((e,t)=>p.A.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t}))(e,t);class A 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,s.A)("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(n.A,{status:e.status,text:e.text})}case"active":return g().createElement(n.A,{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(n.A,{status:a,label:c})};getSetUpButton=e=>g().createElement(r.A,{onClick:C("set_up",e),compact:!0,primary:!0,href:(0,s.A)("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,s=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(s.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.A,null),g().createElement(o.A,null),g().createElement(l.A,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(n.A,{status:"error",label:_n("Threat","Threats",a.threats.length,"jetpack")}):a.credentials?0===a.credentials.length?g().createElement(n.A,{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 s.product_slug&&r&&!p?c&&l?this.getProActions("active"):this.getSetUpButton(o):""})(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}const j=(0,k.Ng)((e=>{const t=(0,y.X6)(e);return{siteRawUrl:(0,E.XG)(e),siteAdminUrl:(0,E.eu)(e),getScanThreats:()=>(0,f.mK)(e),getVaultPressData:()=>(0,f.Cc)(e),getAkismetData:()=>(0,f.PU)(e),isFetchingVaultPressData:(0,f.en)(e),sitePlan:t,fetchingPluginsData:(0,w.rC)(e),pluginActive:t=>(0,w.gT)(e,t),pluginInstalled:t=>(0,w.O8)(e,t),isOfflineMode:(0,v.hN)(e),fetchingSiteData:(0,y.Kb)(e),isAkismetKeyValid:(0,f.Ee)(e),fetchingAkismetData:(0,f.Ri)(e),rewindStatus:(0,_.Qi)(e),scanStatus:(0,b.W4)(e),purchasedVaultPressBackups:(0,y.IT)(e,"vaultpress-backups"),purchasedVaultPressScan:(0,y.IT)(e,"vaultpress-security-scanning")}}))(A)},64793:(e,t,a)=>{"use strict";a.d(t,{Dw:()=>o,Ix:()=>i,hM:()=>r,oW:()=>n});var s=a(69546);const n={JETPACK_ANTI_SPAM:"akismet",JETPACK_BACKUP:"backup",JETPACK_SCAN:"scan",JETPACK_SEARCH:"search",JETPACK_SECURITY:"security",JETPACK_SOCIAL:"social",JETPACK_VIDEOPRESS:"videopress",JETPACK_AI:"jetpack-ai"},i=[`/product/${n.JETPACK_ANTI_SPAM}`,`/product/${n.JETPACK_BACKUP}`,`/product/${n.JETPACK_SCAN}`,`/product/${n.JETPACK_SEARCH}`,`/product/${n.JETPACK_SECURITY}`,`/product/${n.JETPACK_VIDEOPRESS}`],r=[`/add-${n.JETPACK_ANTI_SPAM}`,`/add-${n.JETPACK_BACKUP}`,`/add-${n.JETPACK_SCAN}`,`/add-${n.JETPACK_SEARCH}`,`/add-${n.JETPACK_SOCIAL}`,`/add-${n.JETPACK_VIDEOPRESS}`,`/add-${n.JETPACK_AI}`],o={[n.JETPACK_ANTI_SPAM]:`${s.d0}products/illustration-anti-spam.png`,[n.JETPACK_BACKUP]:`${s.d0}products/illustration-backup.png`,[n.JETPACK_SCAN]:`${s.d0}products/illustration-scan.png`,[n.JETPACK_SEARCH]:`${s.d0}products/illustration-search.png`,[n.JETPACK_SECURITY]:`${s.d0}products/illustration-scan.png`,[n.JETPACK_VIDEOPRESS]:`${s.d0}products/illustration-videopress.png`}},56292:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(1066),n=a(77054),i=a(52123),r=a(66087),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(84952),u=a(60247),m=a(2065),h=a(79521),g=a(95367),k=a(64793),f=a(28997);const v=e=>{const{isFetchingProducts:t,isFetchingOffers:a,products:o}=e,c=t||a||(0,r.isEmpty)(o),l=[];return c||Object.values(k.oW).forEach((function(e){if(!Object.hasOwn(o,e))return;const t=o[e];t.available&&l.push(p().createElement(u.qh,{key:e,path:`/product/${e}`},p().createElement(f.A,{product:t})))})),p().createElement(p().Fragment,null,p().createElement(n.A,null),p().createElement(s.A,null),c?p().createElement("div",{className:"jp-product-descriptions__loading"},p().createElement(i.m,null)):p().createElement(u.dO,null,l))};v.propTypes={products:c().object,isFetchingProducts:c().bool,isFetchingOffers:c().bool};const E=(0,d.Ng)((e=>({isFetchingProducts:(0,g.bP)(e),isFetchingOffers:(0,h.wQ)(e),products:(0,m.FE)(e)})))(v)},9647:(e,t,a)=>{"use strict";a.d(t,{a:()=>r,bH:()=>o,gg:()=>i,yX:()=>c});var s=a(51609),n=a.n(s);const i=n().createElement("svg",{fill:"none",viewBox:"0 0 22 16",xmlns:"http://www.w3.org/2000/svg"},n().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=n().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 18 23",xmlns:"http://www.w3.org/2000/svg"},n().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=n().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 20 25",xmlns:"http://www.w3.org/2000/svg"},n().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=n().createElement("svg",{className:"vertical",viewBox:"0 0 103 25",xmlns:"http://www.w3.org/2000/svg"},n().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"}),n().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"}),n().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"}),n().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"}),n().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"}))},28997:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(27723),n=a(13022),i=a(93553),r=a(12659),o=a(53835),c=a(66087),l=a(28120),p=a.n(l),d=a(51609),u=a(84952),m=a(2065),h=a(79521),g=a(64793),k=a(9647);const __=s.__,f=(e,t,a,n)=>{const r=!n&&Object.hasOwn(g.Dw,e.key)?g.Dw[e.key]:void 0;let o,c;switch(e.slug){case"jetpack_backup_t0_yearly":case"jetpack_backup_t1_yearly":c=k.gg;break;case"jetpack_scan":c=k.a;break;case"jetpack_anti_spam":c=k.bH;break;case"jetpack_security_t0_yearly":case"jetpack_security_t1_yearly":c=k.yX,"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.A,{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,s.sprintf)(/* translators: %s: Name of a Jetpack product. */ __("Add %s","jetpack"),e.title)})},v=e=>{const{availableProductsAndPlans:t,product:a,offers:s}=e,i=((e,t)=>{const a="security";return!((0,c.isEmpty)(e.includedInPlans)||!Object.hasOwn(t,a)||!e.includedInPlans.includes(a))&&t[a]})(a,t);(0,d.useEffect)((()=>{o.A.tracks.recordEvent("jetpack_product_description_view",{type:a.slug})}),[a]);const l=(0,n.A)({"jp-product-description":!0,"jp-product-description--split":!!i});return React.createElement(React.Fragment,null,React.createElement("div",{className:l},f(a,s,"primary",!!i),!!i&&f(i,s,"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.e,{text:__("14-day money-back guarantee","jetpack")})))};v.propTypes={product:p().object.isRequired,availableProductsAndPlans:p().object.isRequired,offers:p().arrayOf(p().object).isRequired};const E=(0,u.Ng)((e=>({availableProductsAndPlans:(0,m.FE)(e),offers:(0,h.oz)(e)})))(v)},83101:(e,t,a)=>{"use strict";a.d(t,{$:()=>i,F:()=>r});var s=a(2065),n=a(64793);const i=()=>URLSearchParams&&!!new URLSearchParams(window.location?.search).get("new_pricing_202208"),r=(e,t)=>{const a=`${(0,s.eu)(e)}admin.php?page=jetpack#`,i=`${(0,s.eu)(e)}admin.php?page=my-jetpack#`;return"search"===t?`${(0,s.eu)(e)}admin.php?page=jetpack-search`:n.hM.includes(`/add-${t}`)?`${i}/add-${t}`:n.Ix.includes(`/product/${t}`)?`${a}/product/${t}`:`${a}/dashboard`}},42538:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(27723),n=a(31497),i=a(51609),r=a.n(i);const __=s.__,o=()=>{const e=(0,i.useCallback)((()=>history.back()),[]);return r().createElement("button",{className:"jp-recommendations-back-btn",onClick:e},r().createElement(n.A,{size:18,icon:"arrow-left"}),/* translators: As in go back to the previous page. */ __("Back","jetpack"))}},31838:(e,t,a)=>{"use strict";a.d(t,{CT:()=>m,DR:()=>f,D_:()=>k,Ez:()=>g,ID:()=>c,JS:()=>l,JT:()=>i,Np:()=>b,OQ:()=>u,XD:()=>o,ec:()=>v,eo:()=>_,h2:()=>r,i4:()=>p,lr:()=>h,tB:()=>E,wo:()=>d});var s=a(27723),n=a(6838);const __=s.__,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_V1:"welcome__social_v1",WELCOME__SOCIAL_IMAGE_GENERATOR:"welcome__social_image_generator",WELCOME__GOLDEN_TOKEN:"welcome__golden_token",BACKUP_ACTIVATED:"backup-activated",SCAN_ACTIVATED:"scan-activated",SOCIAL_V1_ACTIVATED:"social-v1-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_V1",f="JETPACK_GOLDEN_TOKEN",v=16643232e5,E=[f,o,c,l,p,d,u,m,h,g,k],_={[f]:n.lFm,[o]:n.tdG,[c]:n.yXc,[l]:n.tDL,[p]:n.JM0,[d]:n.TwY,[u]:n.ZOP,[m]:n.HWr,[h]:n.yuZ,[g]:n.HdP,[k]:n.aG$},b={[o]:{name:"Complete",slugs:["backup-activated","scan-activated","antispam-activated","videopress-activated","unlimited-sharing-activated","social-v1-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",slugs:[i.UNLIMITED_SHARING_ACTIVATED,i.SOCIAL_V1_ACTIVATED]},[f]:{name:__("Jetpack Golden Token","jetpack"),slugs:[i.BACKUP_ACTIVATED,i.SCAN_ACTIVATED]}}},48011:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(27723),n=a(13022),i=a(51609),r=a.n(i);const __=s.__,o=({className:e,discount:t,suffix:a})=>t?r().createElement("div",{className:(0,n.A)("jp-recommendations-discount-badge",e)},(0,s.sprintf)( // translators: %d is the percentage value, %% the percentage symbol __("%d%% off","jetpack"),t),a):null},33841:(e,t,a)=>{"use strict";a.d(t,{t:()=>g});var s=a(56427),n=a(27723),i=a(13022),r=a(70386),o=a(31497),c=a(71584),l=a(53835),p=a(51609),d=a.n(p),u=a(84952),m=a(54365),h=a(47309);const __=n.__,g=(0,u.Ng)(((e,t)=>({isInstalling:(0,m.vW)(e,t.featureSlug),isFeatureActive:(0,m.L4)(e,t.featureSlug),...(0,h.Hf)(e,t.featureSlug),stepRoute:m.X4[t.featureSlug]})),((e,t)=>({...(0,h.AD)(e,t.featureSlug),startFeatureInstall:t=>e((0,m.YE)(t)),endFeatureInstall:t=>e((0,m.x1)(t))})))((e=>{const{activateFeature:t,configLink:a,configureButtonLabel:n,displayName:u,featureSlug:m,stepRoute:h,summaryActivateButtonLabel:g,isNew:k,isInstalling:f,startFeatureInstall:v,endFeatureInstall:E}=e,_=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommendations_summary_configure_click",{feature:m})}),[m]),b=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommendations_summary_enable_click",{feature:m}),v(m),t().finally((()=>{E(m)}))}),[t,m,v,E]),y=(0,p.useCallback)((()=>{l.A.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(s.ExternalLink,{type:"button",className:"dops-button is-rna",href:a,onClick:_},n):d().createElement(r.A,{rna:!0,href:a,onClick:_},n)):d().createElement(c.A,{primary:!0,rna:!0,isInstalling:f,onClick:b},g));return d().createElement("div",{className:(0,i.A)("jp-recommendations-feature-summary",{"is-feature-enabled":e.isFeatureActive})},e.isFeatureActive&&d().createElement("div",{className:"jp-recommendations-feature-summary__checkmark"},d().createElement(o.A,{icon:"checkmark-circle",size:24})),d().createElement(r.A,{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))}))},63409:(e,t,a)=>{"use strict";a.d(t,{j:()=>d});var s=a(13022),n=a(70386),i=a(53835),r=a(51609),o=a(84952),c=a(54365),l=a(47309);const p=({href:e,label:t,isHidden:a,onClick:n})=>React.createElement("a",{rel:"noreferrer",target:"_blank",href:e,onClick:n,className:(0,s.A)("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.Ng)(((e,t)=>({...(0,l.v1)(e,t.slug),stepRoute:c.X4[t.slug]})))((({slug:e,displayName:t,ctaLabel:a,ctaLink:s,stepRoute:o})=>{const c=!!s,l=(0,r.useCallback)((()=>{i.A.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:e})}),[e]),d=(0,r.useCallback)((()=>{i.A.tracks.recordEvent("jetpack_recommendations_summary_manage_click",{feature:e})}),[e]);return React.createElement("div",{className:"jp-recommendations-feature-summary is-primary"},c?React.createElement(n.A,{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:s,label:a,onClick:d,isHidden:!c}))))}))},88537:(e,t,a)=>{"use strict";a.d(t,{v:()=>u});var s=a(56427),n=a(27723),i=a(70386),r=a(53835),o=a(51609),c=a.n(o),l=a(84952),p=a(54365),d=a(47309);const __=n.__,u=(0,l.Ng)(((e,t)=>({...(0,d.fJ)(e,t.resourceSlug),stepRoute:p.X4[t.resourceSlug]})))((e=>{const{displayName:t,ctaLabel:a,ctaLink:n,resourceSlug:l,isNew:p,stepRoute:d}=e,u=(0,o.useCallback)((()=>{r.A.tracks.recordEvent("jetpack_recommendations_summary_learn_more_click",{feature:l})}),[l]),m=(0,o.useCallback)((()=>{r.A.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:l})}),[l]);return c().createElement("div",{className:"jp-recommendations-feature-summary"},c().createElement(i.A,{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(s.ExternalLink,{type:"button",className:"dops-button is-rna",href:n,onClick:u},a))))}))},47309:(e,t,a)=>{"use strict";a.d(t,{AD:()=>f,Hf:()=>h,ag:()=>E,c_:()=>v,fJ:()=>g,v1:()=>k,zQ:()=>_});var s=a(4567),n=a(5932),i=a(3924),r=a(7162),o=a(27723),c=a(6838),l=a(2065),p=a(30138),d=a(77423),u=a(54365),m=a(78795);const __=o.__,_x=o._x,h=(e,t)=>{switch(t){case"boost":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Jetpack Boost","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,l.eu)(e)+"admin.php?page=jetpack-boost"};case"creative-mail":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Creative Mail","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,l.eu)(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,l.eu)(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,r.getSocialScriptData)().feature_flags.useAdminUiV1?__("View Jetpack Social settings","jetpack"):_x("Manage connections","","jetpack"),displayName:__("Social Media Sharing","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:(0,r.getSocialScriptData)().feature_flags.useAdminUiV1?"#/sharing":(0,i.A)("calypso-marketing-connections",{site:(0,l.XG)(e)})};case"videopress":return{configureButtonLabel:__("How To","jetpack"),displayName:__("VideoPress","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:(0,i.A)("jetpack-support-videopress-block-editor")};case"woocommerce":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("WooCommerce","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,l.eu)(e)+"admin.php?page=wc-admin&path=%2Fsetup-wizard"};default:throw`Unknown feature slug in mapStateToSummaryFeatureProps() recommendations/feature-utils.js: ${t}`}},g=(e,t)=>{switch(t){case"agency":return{displayName:__("Jetpack for Agencies","jetpack"),ctaLabel:__("Sign Up","jetpack"),ctaLink:(0,i.A)("jetpack-for-agencies-signup-assistant-recommendation")};case"backup-plan":return{displayName:__("Site Backups","jetpack"),ctaLabel:__("Read More","jetpack"),ctaLink:(0,i.A)("jetpack-blog-backups-101")};case"anti-spam":return{displayName:__("Spam Management","jetpack"),ctaLabel:__("Read More","jetpack"),ctaLink:(0,i.A)("jetpack-blog-spam-comments")};case"server-credentials":return{displayName:__("Server Credentials","jetpack"),ctaLabel:__("Add","jetpack"),ctaLink:(0,l.r9)(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}`}},k=(e,t)=>{switch(t){case"backup-activated":return{displayName:__("Real-time Backups","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,l.r9)(e,"backup")};case"scan-activated":return{displayName:__("Real-time Malware Scanning","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,l.r9)(e,"scan")};case"unlimited-sharing-activated":return{displayName:__("Social Media Sharing","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,l.eu)(e)+"admin.php?page=jetpack#/sharing"};case"social-v1-activated":return{displayName:__("Advanced Sharing Features","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,l.eu)(e)+"admin.php?page=jetpack#/sharing"};case"antispam-activated":return{displayName:__("Automated Spam Protection","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,u.L4)(e,t)?(0,l.eu)(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,u.L4)(e,t)?(0,l.eu)(e)+"admin.php?page=jetpack-videopress":void 0};case"search-activated":return{displayName:__("Custom Site Search","jetpack"),ctaLabel:__("Customize","jetpack"),ctaLink:(0,l.eu)(e)+"admin.php?page=jetpack-search-configure"}}},f=(e,t)=>{switch(t){case"boost":return{activateFeature:()=>n.Ay.installPlugin("jetpack-boost","recommendations").then((()=>e((0,d.bR)())))};case"creative-mail":return{activateFeature:()=>n.Ay.installPlugin("creative-mail-by-constant-contact","recommendations").then((()=>e((0,d.bR)())))};case"monitor":return{activateFeature:()=>e((0,p.Xx)({monitor:!0}))};case"newsletter":return{activateFeature:()=>e((0,p.Xx)({subscriptions:!0}))};case"related-posts":return{activateFeature:()=>e((0,p.Xx)({"related-posts":!0}))};case"protect":return{activateFeature:()=>n.Ay.installPlugin("jetpack-protect","recommendations").then((()=>e((0,d.bR)())))};case"site-accelerator":return{activateFeature:()=>e((0,p.Xx)({photon:!0,"photon-cdn":!0,tiled_galleries:!0,"tiled-gallery":!0}))};case"publicize":return{activateFeature:()=>e((0,p.Xx)({publicize:!0}))};case"videopress":return{activateFeature:()=>n.Ay.installPlugin("videopress","recommendations").then((()=>e((0,d.bR)())))};case"woocommerce":return{activateFeature:()=>n.Ay.installPlugin("woocommerce","recommendations").then((()=>e((0,d.bR)())))};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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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.A)("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,l.r9)(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,l.eu)(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.A)("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,l.eu)(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,l.r9)(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.A)("calypso-marketing-connections",{site:(0,l.XG)(e)}),illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"welcome__social_v1":return{question:__("Welcome to Jetpack Social!","jetpack"),description:__("With your new Social plan you unlocked priority support, 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,r.getSocialScriptData)().feature_flags.useAdminUiV1?(0,l.eu)(e)+"admin.php?page=jetpack#/sharing":(0,i.A)("calypso-marketing-connections",{site:(0,l.XG)(e)}),ctaForceExternal:!0,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,l.eu)(e)+"admin.php?page=jetpack#/sharing",ctaForceExternal:!0,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,l.r9)(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,l.r9)(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,l.eu)(e)+"admin.php?page=jetpack#/sharing",illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"social-v1-activated":return{question:__("Advanced Sharing features","jetpack"),description:__("Use your Social plan to 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,l.eu)(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,l.eu)(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.A)("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,l.eu)(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,l.r9)(e,"settings"),illustration:"assistant-server-credentials"};case"vaultpress-backup":{const t=(0,l.XG)(e),a=(0,m.Gh)(e,c.Jht),s=()=>(0,m.ab)(e)?__("Get a discount for your first year","jetpack"):a>0?(0,o.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:s(),ctaLink:(0,i.A)("jetpack-recommendations-product-checkout",{site:t,path:c.Jht}),illustration:"assistant-backup-welcome"}}case"vaultpress-for-woocommerce":{const t=(0,l.XG)(e),a=(0,m.Nq)(e,c.Jht),n=(0,m.LE)(e,c.Jht),r=(0,s.Ay)(a,n?.currency_code),p=(0,m.ab)(e)?__("Try for 30 days","jetpack"):(0,o.sprintf)(/* translators: %s: is a formatted currency. e.g. $1 */ __("Try for %s for 30 days","jetpack"),r);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.A)("jetpack-recommendations-product-checkout",{site:t,path:c.Jht}),illustration:"assistant-backup-welcome"}}default:throw`Unknown step slug in recommendations/question: ${t}`}},E=(e,t)=>{const a=(0,l.XG)(e),s=(0,l.t9)(e);switch(t){case c.b2e:return{productCardTitle:__("Increase your site security!","jetpack"),productCardCtaLink:(0,i.A)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Jetpack Security","jetpack"),productCardList:s.security?s.security.features:[],productCardIcon:"/recommendations/cloud-icon.svg"};case c.V$p:return{productCardTitle:__("Grow and monetize your audience","jetpack"),productCardCtaLink:(0,i.A)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Jetpack Creator","jetpack"),productCardList:s.creator?s.creator.features:[],productCardIcon:"/recommendations/creator-icon.svg"};case c.GGh:return{productCardTitle:__("Block spam automatically with Jetpack Akismet Anti-spam","jetpack"),productCardCtaLink:(0,i.A)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Akismet Anti-spam","jetpack"),productCardList:s.akismet?s.akismet.features:[],productCardIcon:"/recommendations/bug-icon.svg"};case c.Wn7:return{productCardTitle:__("Upgrade for more videos and storage","jetpack"),productCardCtaLink:(0,i.A)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get VideoPress","jetpack"),productCardList:s.videopress?s.videopress.features:[],productCardIcon:"/recommendations/video-icon.svg"};case c.Jht:return{productCardTitle:__("Go back in time with one click","jetpack"),productCardCtaLink:(0,i.A)("jetpack-recommendations-product-checkout",{site:a,path:t}),productCardCtaText:__("Get Jetpack VaultPress Backup","jetpack"),productCardList:s.backup?s.backup.features:[],productCardIcon:"/recommendations/cloud-icon.svg",productCardDisclaimer:s.backup?s.backup.disclaimer:""};default:throw`Unknown product slug for getProductCardData: ${t}`}},_=(e,t,a)=>{if(t===c.b2e){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{}}},39375:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(96072),n=a.n(s),i=a(51609),r=a.n(i),o=a(84952),c=a(2065),l=a(19892),p=a(29024);const d=e=>(0,o.Ng)((e=>({discountData:(0,l.TG)(e),siteAdminUrl:(0,c.eu)(e),siteRawUrl:(0,c.XG)(e),blogID:(0,c.V2)(e)})))((t=>{const{slug:a,discountData:s,siteAdminUrl:o,siteRawUrl:c,blogID:l}=t,{code:d}=s,u=(0,i.useMemo)((()=>(0,p.u)(a,o,c,d,l)),[a,o,c,d,l]);return r().createElement(e,n()({upgradeUrl:u},t))}))},87593:(e,t,a)=>{"use strict";a.d(t,{b:()=>R});var s=a(3924),n=a(27723),i=a(1066),r=a(86295),o=a(37049),c=a(59094),l=a(81802),p=a(26468),d=a(63109),u=a(93079),m=a(37866),h=a(52123),g=a(51609),k=a.n(g),f=a(84952),v=a(60247),E=a(2065),_=a(54365),b=a(82656),y=a(77054),w=a(31838),C=a(30653),A=a(1417),j=a(62845),S=a(5115),N=a(89146),x=a(48752);const __=n.__,R=(0,f.Ng)((e=>({isLoading:!(0,_.gY)(e)||!(0,_.kv)(e)||(0,b.Kb)(e),step:(0,_.v3)(e),onboardingData:(0,_.ax)(e),newRecommendations:(0,E.dW)(e)})),(e=>({updateOnboardingData:t=>e((0,_.tI)(t)),updateStep:t=>e((0,_.si)(t))})))((e=>{const{isLoading:t,step:a,newRecommendations:n}=e;let f;switch(a){case w.JT.NOT_STARTED:case w.JT.SITE_TYPE:f="/site-type";break;case w.JT.PRODUCT_SUGGESTIONS:f="/product-suggestions";break;case w.JT.PRODUCT_PURCHASED:f="/product-purchased";break;case w.JT.AGENCY:f="/agency";break;case w.JT.WOOCOMMERCE:f="/woocommerce";break;case w.JT.MONITOR:f="/monitor";break;case w.JT.NEWSLETTER:f="/newsletter";break;case w.JT.RELATED_POSTS:f="/related-posts";break;case w.JT.CREATIVE_MAIL:f="/creative-mail";break;case w.JT.SITE_ACCELERATOR:f="/site-accelerator";break;case w.JT.VAULTPRESS_BACKUP:f="/vaultpress-backup";break;case w.JT.VAULTPRESS_FOR_WOOCOMMERCE:f="/vaultpress-for-woocommerce";break;case w.JT.PUBLICIZE:f="/publicize";break;case w.JT.PROTECT:f="/protect";break;case w.JT.ANTI_SPAM:f="/anti-spam";break;case w.JT.VIDEOPRESS:f="/videopress";break;case w.JT.BACKUP_PLAN:f="/backup-plan";break;case w.JT.BOOST:f="/boost";break;case w.JT.SUMMARY:f="/summary";break;case w.JT.WELCOME__BACKUP:f="/welcome-backup";break;case w.JT.WELCOME__COMPLETE:f="/welcome-complete";break;case w.JT.WELCOME__SECURITY:f="/welcome-security";break;case w.JT.WELCOME__STARTER:f="/welcome-starter";break;case w.JT.WELCOME__ANTISPAM:f="/welcome-antispam";break;case w.JT.WELCOME__VIDEOPRESS:f="/welcome-videopress";break;case w.JT.WELCOME__SEARCH:f="/welcome-search";break;case w.JT.WELCOME__SCAN:f="/welcome-scan";break;case w.JT.WELCOME__SOCIAL_BASIC:f="/welcome-social-basic";break;case w.JT.WELCOME__SOCIAL_V1:f="/welcome-social-v1";break;case w.JT.WELCOME__SOCIAL_IMAGE_GENERATOR:f="welcome-social-image-generator";break;case w.JT.WELCOME__GOLDEN_TOKEN:f="/welcome-golden-token";break;case w.JT.SERVER_CREDENTIALS:f="/server-credentials";break;case w.JT.BACKUP_ACTIVATED:f="/backup-activated";break;case w.JT.SCAN_ACTIVATED:f="/scan-activated";break;case w.JT.UNLIMITED_SHARING_ACTIVATED:f="/unlimited-sharing-activated";break;case w.JT.SOCIAL_V1_ACTIVATED:f="/social-v1-activated";break;case w.JT.ANTISPAM_ACTIVATED:f="/antispam-activated";break;case w.JT.VIDEOPRESS_ACTIVATED:f="/videopress-activated";break;case w.JT.SEARCH_ACTIVATED:f="/search-activated";break;default:f="/summary"}const E=e=>n&&n.includes(e);return(({step:e,isLoading:t,onboardingData:a,updateOnboardingData:s,updateStep:n})=>{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?(n(e),s({...a,hasStarted:!0})):s({viewed:o})}}),[t,a,s,e,n,i])})(e),k().createElement(k().Fragment,null,k().createElement("h1",{className:"screen-reader-text"},__("Jetpack Recommendations","jetpack")),k().createElement(o.A,null),k().createElement(c.A,null),k().createElement(l.A,null),k().createElement(r.A,null),k().createElement(p.A,null),k().createElement(d.A,null),k().createElement(m.A,null),k().createElement(u.A,null),k().createElement(y.A,null),k().createElement(i.A,null),t?k().createElement("div",{className:"jp-recommendations__loading"},k().createElement(h.m,{altText:__("Loading recommendations","jetpack")})):k().createElement(v.dO,null,k().createElement(v.rd,{exact:!0,from:"/recommendations",to:"/recommendations"+f}),k().createElement(v.qh,{path:"/recommendations/site-type"},k().createElement(N.q,null)),k().createElement(v.qh,{path:"/recommendations/product-suggestions"},k().createElement(j.h,null)),k().createElement(v.qh,{path:"/recommendations/product-purchased"},k().createElement(C.z,null)),k().createElement(v.qh,{path:"/recommendations/agency"},k().createElement(S.D,{stepSlug:"agency"})),k().createElement(v.qh,{path:"/recommendations/woocommerce"},k().createElement(A.R,{stepSlug:"woocommerce"})),k().createElement(v.qh,{path:"/recommendations/monitor"},k().createElement(A.R,{stepSlug:"monitor"})),k().createElement(v.qh,{path:"/recommendations/newsletter"},k().createElement(A.R,{stepSlug:"newsletter"})),k().createElement(v.qh,{path:"/recommendations/related-posts"},k().createElement(A.R,{stepSlug:"related-posts"})),k().createElement(v.qh,{path:"/recommendations/creative-mail"},k().createElement(A.R,{stepSlug:"creative-mail"})),k().createElement(v.qh,{path:"/recommendations/site-accelerator"},k().createElement(A.R,{stepSlug:"site-accelerator"})),k().createElement(v.qh,{path:"/recommendations/vaultpress-backup"},k().createElement(S.D,{stepSlug:"vaultpress-backup"})),k().createElement(v.qh,{path:"/recommendations/vaultpress-for-woocommerce"},k().createElement(S.D,{stepSlug:"vaultpress-for-woocommerce"})),k().createElement(v.qh,{path:"/recommendations/publicize"},k().createElement(A.R,{stepSlug:"publicize",isNew:E("publicize")})),k().createElement(v.qh,{path:"/recommendations/protect"},k().createElement(A.R,{stepSlug:"protect",isNew:E("protect")})),k().createElement(v.qh,{path:"/recommendations/anti-spam"},k().createElement(S.D,{stepSlug:"anti-spam",isNew:E("anti-spam")})),k().createElement(v.qh,{path:"/recommendations/videopress"},k().createElement(A.R,{stepSlug:"videopress",isNew:E("videopress")})),k().createElement(v.qh,{path:"/recommendations/backup-plan"},k().createElement(S.D,{stepSlug:"backup-plan",isNew:E("backup-plan")})),k().createElement(v.qh,{path:"/recommendations/boost"},k().createElement(A.R,{stepSlug:"boost",isNew:E("boost")})),k().createElement(v.qh,{path:"/recommendations/welcome-backup"},k().createElement(S.D,{stepSlug:"welcome__backup"})),k().createElement(v.qh,{path:"/recommendations/welcome-complete"},k().createElement(S.D,{stepSlug:"welcome__complete"})),k().createElement(v.qh,{path:"/recommendations/welcome-starter"},k().createElement(S.D,{stepSlug:"welcome__starter"})),k().createElement(v.qh,{path:"/recommendations/welcome-security"},k().createElement(S.D,{stepSlug:"welcome__security"})),k().createElement(v.qh,{path:"/recommendations/welcome-antispam"},k().createElement(S.D,{stepSlug:"welcome__antispam"})),k().createElement(v.qh,{path:"/recommendations/welcome-videopress"},k().createElement(S.D,{stepSlug:"welcome__videopress"})),k().createElement(v.qh,{path:"/recommendations/welcome-search"},k().createElement(S.D,{stepSlug:"welcome__search"})),k().createElement(v.qh,{path:"/recommendations/welcome-scan"},k().createElement(S.D,{stepSlug:"welcome__scan"})),k().createElement(v.qh,{path:"/recommendations/welcome-social-basic"},k().createElement(S.D,{stepSlug:"welcome__social_basic"})),k().createElement(v.qh,{path:"/recommendations/welcome-social-v1"},k().createElement(S.D,{stepSlug:"welcome__social_v1"})),k().createElement(v.qh,{path:"/recommendations/welcome-social-image-generator"},k().createElement(S.D,{stepSlug:"welcome__social_image_generator"})),k().createElement(v.qh,{path:"/recommendations/welcome-golden-token"},k().createElement(S.D,{stepSlug:"welcome__golden_token"})),k().createElement(v.qh,{path:"/recommendations/backup-activated"},k().createElement(S.D,{stepSlug:"backup-activated"})),k().createElement(v.qh,{path:"/recommendations/scan-activated"},k().createElement(S.D,{stepSlug:"scan-activated"})),k().createElement(v.qh,{path:"/recommendations/unlimited-sharing-activated"},k().createElement(S.D,{stepSlug:"unlimited-sharing-activated"})),k().createElement(v.qh,{path:"/recommendations/social-v1-activated"},k().createElement(S.D,{stepSlug:"social-v1-activated"})),k().createElement(v.qh,{path:"/recommendations/antispam-activated"},k().createElement(S.D,{stepSlug:"antispam-activated"})),k().createElement(v.qh,{path:"/recommendations/videopress-activated"},k().createElement(S.D,{stepSlug:"videopress-activated"})),k().createElement(v.qh,{path:"/recommendations/search-activated"},k().createElement(S.D,{stepSlug:"search-activated"})),k().createElement(v.qh,{path:"/recommendations/server-credentials"},k().createElement(S.D,{stepSlug:"server-credentials"})),k().createElement(v.qh,{path:"/recommendations/summary"},k().createElement(x.B,{newRecommendations:n}))),k().createElement("div",{className:"jp-recommendations__links"},k().createElement("a",{role:"button",tabIndex:"0",href:(0,s.A)("jetpack-support-getting-started")},__("Learn how to get started with Jetpack","jetpack")),k().createElement("a",{role:"button",tabIndex:"0",href:(0,s.A)("jetpack-support")},__("Search our support site","jetpack"))))}))},19742:(e,t,a)=>{"use strict";a.d(t,{T:()=>w});var s=a(96072),n=a.n(s),i=a(4567),r=a(4563),o=a(27723),c=a(13022),l=a(70386),p=a(28120),d=a.n(p),u=a(51609),m=a.n(u),h=a(84952),g=a(79521),k=a(19892),f=a(48011),v=a(39375),E=a(58734),_=a(34179);const __=o.__,b=({className:e,integer:t,fraction:a,symbol:s})=>m().createElement("div",{className:e},m().createElement("sup",{className:"jp-recommendations-product-card-upsell__currency-symbol"},s),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:s,billing_timeframe:p,cost_timeframe:d,currency_code:h,isRecommended:g,features:k,onClick:v,onMount:y,isFetchingDiscount:w,isFetchingOffers:C,discountData:A,introOffers:j,upgradeUrl:S})=>{const{discount:N}=A,x=(0,u.useMemo)((()=>(0,_.F)(A)),[A]),R=(0,u.useMemo)((()=>j.find((({product_slug:t})=>t===e))||{}),[e,j]),{original_price:T,raw_price:M}=R,O=T||12*t,P=M||O,L=(0,r.p)(R),I=!L&&x&&N?P*(1-N/100):P,D=O?Math.round((O-I)/O*100):null,z=(0,u.useMemo)((()=>(0,i.vA)(O/12,h)),[O,h]),U=(0,u.useMemo)((()=>(0,i.vA)(I/12,h)),[I,h]),F=new URL(S);L&&F.searchParams.delete("coupon");const V=g&&m().createElement(E.A,{className:"jp-recommendations-product-card-upsell__header"});return(0,u.useEffect)((()=>{y&&y()}),[y]),m().createElement("div",{className:(0,c.A)("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"},s),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"},x&&m().createElement(b,n()({className:"jp-recommendations-product-card-upsell__raw-price"},z)),m().createElement(b,n()({className:"jp-recommendations-product-card-upsell__final-price"},U)),x&&m().createElement(f.A,{className:"jp-recommendations-product-card-upsell__discount",discount:D,suffix:"*"})),m().createElement("div",{className:"jp-recommendations-product-card-upsell__billing-time-frame"},`${d}, ${p}`))),m().createElement(l.A,{className:"jp-recommendations-product-card-upsell__cta-button",primary:!g,rna:!0,href:F.toString(),onClick:v,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.Ng)((e=>({isFetchingDiscount:(0,k.dS)(e),isFetchingOffers:(0,g.wQ)(e),discountData:(0,k.TG)(e),introOffers:(0,g.oz)(e)})))((0,v.A)(y))},30653:(e,t,a)=>{"use strict";a.d(t,{z:()=>k});var s=a(72989),n=a(27723),i=a(70386),r=a(31497),o=a(52123),c=a(53835),l=a(66087),p=a(51609),d=a.n(p),u=a(84952),m=a(54365),h=a(82656),g=a(63437);const __=n.__,_x=n._x,k=(0,u.Ng)((e=>({activePurchases:(0,h.eA)(e),isFetchingSiteData:(0,h.Kb)(e),isFetchingSuggestions:(0,m.pB)(e),nextRoute:(0,m.N5)(e),sitePlan:(0,h.X6)(e),suggestions:(0,m.LY)(e)})))((e=>{const{nextRoute:t}=e,a=(({activePurchases:e,isFetchingSiteData:t,isFetchingSuggestions:a,sitePlan:s,suggestions:n})=>{if(t||a)return!1;if(!n||!(0,l.isArray)(n))return!1;const i=n.find((e=>e.slug===s.product_slug));if(i)return i;if((0,l.isArray)(e)){const t=n.find((t=>e.find((e=>t.slug===e.product_slug))));if(t)return t}return!1})(e);if((0,p.useEffect)((()=>{a&&c.A.tracks.recordEvent("jetpack_recommendations_product_suggestion_purchased",{type:a.slug})}),[a]),!a)return d().createElement(o.m,{altText:__("Loading recommendations","jetpack")});const n=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.A,{icon:"checkmark"}),e)))),d().createElement(i.A,{primary:!0,rna:!0,className:"jp-recommendations-product-purchased__next",href:t},_x("Configure your site","Recommendations Product Purchased","jetpack")));return d().createElement(g.l,{progressBar:d().createElement(s.A,{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:n,illustration:"assistant-product-purchased",illustrationClassName:"jp-recommendations-product-purchased__illustration"})}))},82662:(e,t,a)=>{"use strict";a.d(t,{O:()=>m});var s=a(13022),n=a(63242),i=a(53835),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(84952),d=a(54365);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.A.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,s.A)("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(n.A,{position:"top right",onClick:d},a)))};u.propTypes={answerKey:o().string.isRequired,info:o().string.isRequired,title:o().string.isRequired};const m=(0,p.Ng)(((e,t)=>({checked:(0,d.PV)(e,t.answerKey)})),(e=>({updateCheckboxAnswer:t=>e((0,d.or)(t))})))(u)},1417:(e,t,a)=>{"use strict";a.d(t,{R:()=>_});var s=a(72989),n=a(56427),i=a(86087),r=a(27723),o=a(70386),c=a(31497),l=a(53835),p=a(51609),d=a.n(p),u=a(84952),m=a(54365),h=a(31838),g=a(47309),k=a(90889),f=a(88291),v=a(8476),E=a(63437);const __=r.__,_=(0,u.Ng)(((e,t)=>({nextRoute:(0,m.N5)(e),...(0,g.c_)(e,t.stepSlug),...(0,g.Hf)(e,t.stepSlug),stateStepSlug:(0,m.v3)(e),updatingStep:(0,m.P0)(e),canShowProductSuggestions:(0,m.cl)(e),discountViewedStep:(0,m.Ze)(e),featureActive:(0,m.L4)(e,t.stepSlug),summaryViewed:(0,m.PS)(e,"summary"),spotlightProduct:(0,m.M_)(e,t.stepSlug),...(0,m.kJ)(e)?{stepProgressValue:(0,m.mv)(e),summaryViewed:!1}:{}})),((e,t)=>({addSelectedRecommendation:t=>e((0,m.sG)(t)),addSkippedRecommendation:t=>e((0,m.nA)(t)),addViewedRecommendation:t=>e((0,m.tx)(t)),updateRecommendationsStep:t=>e((0,m.si)(t)),startFeatureInstall:t=>e((0,m.YE)(t)),endFeatureInstall:t=>e((0,m.x1)(t)),...(0,g.AD)(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:A,nextRoute:j,progressValue:S,stepProgressValue:N,question:x,stepSlug:R,stateStepSlug:T,updatingStep:M,updateRecommendationsStep:O,spotlightProduct:P,isNew:L,canShowProductSuggestions:I,discountViewedStep:D,featureActive:z,configureButtonLabel:U,configLink:F,summaryViewed:V}=e;(0,p.useEffect)((()=>{R!==T?O(R):R!==T||M||(u(R),l.A.tracks.recordEvent("jetpack_recommendations_recommendation_viewed",{feature:R}))}),[R,T,M,O,u]);const B=!D||D===R,H=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommended_feature_learn_more_click",{feature:R})}),[R]),J=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommended_feature_enable_click",{feature:R}),a(R),m(R),t().finally((()=>{g(R)}))}),[t,a,R,m,g]),q=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommended_feature_configure_click",{feature:R})}),[R]),W=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommended_feature_decide_later_click",{feature:R}),r(R)}),[r,R]),G=(0,p.useCallback)((()=>{l.A.tracks.recordEvent("jetpack_recommended_feature_back_to_summary_click",{feature:R})}),[R]),K=(0,p.useMemo)((()=>F.match(/^https:\/\/jetpack.com\/redirect/)),[F]);let $=null;P?$=d().createElement(f.C,{productSlug:P,stepSlug:R}):B&&I&&($=d().createElement(k.A,null));const Y=(0,p.useMemo)((()=>N?d().createElement(v.X,N):S?d().createElement(s.A,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:S/100}):null),[N,S]);return d().createElement(E.l,{progressBar:Y,isNew:L,question:x,description:(0,i.createInterpolateElement)(b,{br:d().createElement("br",null),strong:d().createElement("strong",null),ExternalLink:d().createElement(n.ExternalLink,{href:y,onClick:H})}),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"},z?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.A,{icon:"checkmark-circle",size:24})),d().createElement("span",null,__("Feature Enabled","jetpack"))),d().createElement("div",{className:"jp-recommendations-question__settings-button"},K?d().createElement(n.ExternalLink,{type:"button",className:"dops-button is-rna",href:F,onClick:q},U):d().createElement(o.A,{rna:!0,href:F,onClick:q},U))):d().createElement(o.A,{primary:!0,rna:!0,href:j,onClick:J},_),d().createElement("div",{className:"jp-recommendations-question__jump-nav"},d().createElement("a",{href:j,onClick:W},z&&__("Next","jetpack"),!z&&__("Not now","jetpack")),V&&d().createElement(d().Fragment,null,d().createElement("span",{className:"jp-recommendations-question__jump-nav-separator"},"|"),d().createElement("a",{onClick:G,href:"#/recommendations/summary"},__("View Recommendations","jetpack")," ")))),sidebarCard:$,illustration:A||h.h2})}))},53250:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(96072),n=a.n(s),i=a(53835),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(84952),d=a(54365),u=a(82656),m=a(19742),h=a(34179);const g=({product:e,addSelectedRecommendation:t,upsell:a,discountData:s})=>{const r=(0,c.useMemo)((()=>(0,h.F)(s)),[s]),o=(0,c.useCallback)((()=>{i.A.tracks.recordEvent("jetpack_recommendations_product_suggestion_click",{product_slug:e.slug,discount:r}),t("product-suggestions")}),[e,t,r]),p=(0,c.useCallback)((()=>{i.A.tracks.recordEvent("jetpack_recommendations_product_suggestion_display",{product_slug:e.slug,discount:r})}),[e,r]);return l().createElement(m.T,n()({},e,{isRecommended:e.slug===a?.product_slug,onClick:o,onMount:p}))};g.propTypes={product:o().object.isRequired};const k=(0,p.Ng)((e=>({upsell:(0,d.Kl)(e),discountData:(0,u.TG)(e)})),(e=>({addSelectedRecommendation:t=>e((0,d.sG)(t))})))(g)},62845:(e,t,a)=>{"use strict";a.d(t,{h:()=>k});var s=a(27723),n=a(52123),i=a(12659),r=a(51609),o=a.n(r),c=a(84952),l=a(60247),p=a(54365),d=a(19892),u=a(42538),m=a(38747),h=a(34179),g=a(53250);const __=s.__,k=(0,c.Ng)((e=>({nextRoute:(0,p.N5)(e),isProductSuggestionsAvailable:(0,p.cl)(e),isFetchingSuggestions:(0,p.pB)(e),isFetchingDiscount:(0,d.dS)(e),isFetchingUpsell:(0,p.mh)(e),suggestions:(0,p.LY)(e),discountData:(0,d.TG)(e)})))((({nextRoute:e,isProductSuggestionsAvailable:t,isFetchingSuggestions:a,isFetchingDiscount:s,isFetchingUpsell:c,suggestions:p,discountData:d})=>{const{expiry_date:k}=d,f=(0,r.useMemo)((()=>(0,h.F)(d)),[d]);return a||c?o().createElement(n.m,{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.A,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.e,{text:__("14-day money-back guarantee","jetpack")}))),!s&&o().createElement("footer",{className:"jp-recommendations-product-suggestion__footer"},o().createElement("span",null,f&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!f&&__("Special introductory pricing, all renewals are at full price.","jetpack")),f&&k&&o().createElement("div",{className:"jp-recommendations-product-suggestion__timer"},o().createElement(m.A,{timeClassName:"jp-recommendations-product-suggestion__time",label:__("Discount ends in:","jetpack"),expiryDate:k})))):o().createElement(l.rd,{to:e.substring(1)})}))},63437:(e,t,a)=>{"use strict";a.d(t,{l:()=>f});var s=a(69546),n=a(86087),i=a(27723),r=a(13022),o=a(28120),c=a.n(o),l=a(51609),p=a.n(l),d=a(84952),u=a(79521),m=a(54365),h=a(19892);const __=i.__,g=({isLoading:e,illustration:t,illustrationClassName:a,sidebarCard:n})=>{const i=`${s.d0}recommendations/${t}`;return e?null:n?p().createElement("div",{className:"jp-recommendations-question__sidebar-card"},n):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.A)("jp-recommendations-question__illustration",a),srcSet:`${i}-2x.png 2x`,src:`${i}.png`,alt:""}))):null},k=e=>{const{answer:t,description:a,illustration:s,progressBar:i,question:o,content:c,isNew:l,sidebarCard:d}=e;return p().createElement("div",{className:(0,r.A)("jp-recommendations-question__main",{"jp-recommendations-question__main--with-sidebar":!!s||!!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,n.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 f=(0,d.Ng)((e=>({isLoading:(0,h.dS)(e)||(0,m.pB)(e)||(0,u.wQ)(e)})))(k)},5115:(e,t,a)=>{"use strict";a.d(t,{D:()=>v});var s=a(72989),n=a(56427),i=a(86087),r=a(27723),o=a(70386),c=a(53835),l=a(51609),p=a.n(l),d=a(84952),u=a(88291),m=a(54365),h=a(31838),g=a(47309),k=a(8476),f=a(63437);const __=r.__,v=(0,d.Ng)(((e,t)=>({nextRoute:(0,m.N5)(e),...(0,g.c_)(e,t.stepSlug),stateStepSlug:(0,m.v3)(e),updatingStep:(0,m.P0)(e),summaryViewed:(0,m.PS)(e,"summary"),spotlightProduct:(0,m.M_)(e,t.stepSlug),...(0,m.kJ)(e)?{stepProgressValue:(0,m.mv)(e),progressValue:null,summaryViewed:!1}:{}})),(e=>({addViewedRecommendation:t=>e((0,m.tx)(t)),updateRecommendationsStep:t=>e((0,m.si)(t))})))((e=>{const{isNew:t,progressValue:a,stepProgressValue:r,question:d,description:m,descriptionList:g,descriptionSecondary:v,descriptionLink:E,nextRoute:_,illustration:b,ctaText:y,ctaLink:w,ctaForceExternal:C,hasNoAction:A,skipText:j,stepSlug:S,stateStepSlug:N,updatingStep:x,spotlightProduct:R,updateRecommendationsStep:T,addViewedRecommendation:M,summaryViewed:O}=e;(0,l.useEffect)((()=>{S!==N?T(S):S!==N||x||(M(S),c.A.tracks.recordEvent("jetpack_recommendations_recommendation_viewed",{feature:S}))}),[S,N,x,T,M]);const P=(0,l.useCallback)((()=>{c.A.tracks.recordEvent("jetpack_recommended_resource_learn_more_click",{feature:S})}),[S]),L=(0,l.useCallback)((()=>{c.A.tracks.recordEvent("jetpack_recommended_resource_read_click",{feature:S}),window.location.href=_}),[S,_]),I=(0,l.useCallback)((()=>{c.A.tracks.recordEvent("jetpack_recommended_resource_skip_click",{feature:S})}),[S]),D=(0,l.useCallback)((()=>{c.A.tracks.recordEvent("jetpack_recommended_resource_back_to_summary_click",{feature:S})}),[S]),z=(0,l.useMemo)((()=>r?p().createElement(k.X,r):a?p().createElement(s.A,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:a/100}):null),[r,a]),U=w?.match(/^https:\/\/jetpack.com\/redirect/)||C;return p().createElement(f.l,{progressBar:z,isNew:t,question:d,description:m?(0,i.createInterpolateElement)(m,{br:p().createElement("br",null),strong:p().createElement("strong",null),ExternalLink:p().createElement(n.ExternalLink,{href:E,onClick:P})}):null,content:g||v?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)))),v&&p().createElement("p",{className:"jp-recommendations-question__description"},v)):null,answer:p().createElement("div",{className:"jp-recommendations-question__install-section"},A?p().createElement(o.A,{primary:!0,rna:!0,href:_},y):p().createElement(p().Fragment,null,U?p().createElement(n.ExternalLink,{type:"button",className:"dops-button is-rna is-primary",href:w,onClick:L},y):p().createElement(o.A,{rna:!0,primary:!0,href:w,onClick:L,va:!0},y),p().createElement("div",{className:"jp-recommendations-question__jump-nav"},p().createElement("a",{href:_,onClick:I},j||__("Not now","jetpack")),O&&p().createElement(p().Fragment,null,p().createElement("span",{className:"jp-recommendations-question__jump-nav-separator"},"|"),p().createElement("a",{onClick:D,href:"#/recommendations/summary"},__("View Recommendations","jetpack")," "))))),sidebarCard:R?p().createElement(u.C,{productSlug:R,stepSlug:S}):null,illustration:b||h.h2})}))},89146:(e,t,a)=>{"use strict";a.d(t,{q:()=>g});var s=a(72989),n=a(27723),i=a(70386),r=a(53835),o=a(51609),c=a(84952),l=a(2065),p=a(54365),d=a(31838),u=a(90889),m=a(82662),h=a(63437);const __=n.__,g=(0,c.Ng)((e=>({nextRoute:(0,p.N5)(e),siteTitle:(0,l.AM)(e),answers:{personal:(0,p.PV)(e,"site-type-personal"),builder:(0,p.PV)(e,"site-type-agency"),store:(0,p.PV)(e,"site-type-store")},stateStepSlug:(0,p.v3)(e),updatingStep:(0,p.P0)(e),canShowProductSuggestions:(0,p.cl)(e)})),(e=>({updateRecommendationsStep:t=>e((0,p.si)(t)),addViewedRecommendation:t=>e((0,p.tx)(t)),saveRecommendationsData:()=>e((0,p.UN)())})))((e=>{const{answers:t,nextRoute:a,saveRecommendationsData:c,siteTitle:l,stateStepSlug:p,updatingStep:g,addViewedRecommendation:k,updateRecommendationsStep:f,canShowProductSuggestions:v}=e;(0,o.useEffect)((()=>{"site-type-question"!==p?f("site-type-question"):"site-type-question"!==p||g||k("site-type-question")}),[p,g,f,k]);const E=(0,o.useCallback)((()=>{c(),r.A.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.O,{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.O,{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.O,{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.A,{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.l,{progressBar:React.createElement(s.A,{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,n.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:v?React.createElement(u.A,null):null,illustration:d.h2,illustrationClassName:"jp-recommendations-site-type__illustration"})}))},90889:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(69546),n=a(27723),i=a(70386),r=a(53835),o=a(51609),c=a.n(o),l=a(84952),p=a(79521),d=a(54365),u=a(19892),m=a(48011),h=a(38747),g=a(73381),k=a(34179);const __=n.__,f=(0,l.Ng)((e=>({isLoading:(0,u.dS)(e)||(0,d.pB)(e)||(0,p.wQ)(e),discountData:(0,u.TG)(e),introOffers:(0,p.oz)(e),suggestions:(0,d.LY)(e),step:(0,d.v3)(e)})),(e=>({markAsViewed:t=>e((0,d.ZA)(t))})))((({isLoading:e,discountData:t,introOffers:a,suggestions:n,markAsViewed:l,step:p})=>{const{expiry_date:d}=t,u=(0,o.useMemo)((()=>(0,g.g)(t,a,n)),[t,a,n]),f=(0,o.useMemo)((()=>(0,k.F)(t)),[t]),v=(0,o.useCallback)((()=>{r.A.tracks.recordEvent("jetpack_recommendations_upsell_card_cta_click",{discount:f})}),[f]);return(0,o.useEffect)((()=>{l(p)}),[l,p]),(0,o.useEffect)((()=>{e||r.A.tracks.recordEvent("jetpack_recommendations_upsell_card_display",{discount:f})}),[e,f]),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:s.d0+"recommendations/cloud-icon.svg",alt:""}),f&&c().createElement(m.A,{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.A,{className:"jp-recommendations-discount-card__button",rna:!0,href:"#/recommendations/product-suggestions",onClick:v},f&&__("View discounted products","jetpack"),!f&&__("View products","jetpack")))),f&&c().createElement("div",{className:"jp-recommendations-discount-card__timer"},c().createElement(h.A,{timeClassName:"jp-recommendations-discount-card__time",label:__("Discount ends in:","jetpack"),expiryDate:d}))))}))},65025:(e,t,a)=>{"use strict";a.d(t,{U:()=>h});var s=a(69546),n=a(3924),i=a(56427),r=a(86087),o=a(27723),c=a(13022),l=a(37012),p=a(53835),d=a(26704),u=a(51609),m=a(78546);const __=o.__,h=({slug:e,underside:t=!1})=>{(0,u.useEffect)((()=>{p.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"mobile_app",slug:e})}),[e]);const a=(0,u.useCallback)((()=>{p.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_jpcom",slug:e})}),[e]),o=(0,u.useCallback)((t=>{p.A.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.A,{onBadgeClick:o,storeName:"ios",utm_source:"jetpack-plugin-recommendations"})),g=()=>React.createElement("div",{className:"jp-recommendations-sidebar-mobile__apps-badge"},React.createElement(l.A,{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:s.d0+`/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,n.A)("jetpack-plugin-recommendations-mobile-app-component"),rel:"noopener noreferrer",target:"_blank",onClick:a})}))),f=t?35:25,v=React.createElement("div",{className:"jp-recommendations-sidebar-mobile__header-container"},React.createElement("img",{src:s.d0+"/recommendations/wordpress-icon.svg",width:f,height:f,alt:""}),React.createElement("img",{className:(0,c.A)("jp-recommendation-sidebar-mobile__jetpack-icon",{underside:t}),src:s.d0+"/recommendations/jetpack-icon.svg",width:f,height:f,alt:""}));return React.createElement(m.T,{className:t?"underside":"",header:v},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.A)()){case"ios":return React.createElement(h,null);case"android":return React.createElement(g,null);default:return React.createElement(k,null)}})())}},73182:(e,t,a)=>{"use strict";a.d(t,{m:()=>h});var s=a(69546),n=a(3924),i=a(27723),r=a(70386),o=a(53835),c=a(51609),l=a.n(c),p=a(84952),d=a(2065),u=a(82656),m=a(78546);const __=i.__,h=(0,p.Ng)((e=>({hasRealTimeBackups:(0,u.IT)(e,"real-time-backups"),siteRawUrl:(0,d.XG)(e)})))((e=>{const{hasRealTimeBackups:t,siteRawUrl:a}=e;(0,c.useEffect)((()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"one-click-restores"})}),[]);const p=(0,c.useCallback)((()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"one_click_restores"})}),[]),d=(0,c.useCallback)((()=>{o.A.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.T,{illustrationPath:s.d0+"/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.A,{rna:!0,href:(0,n.A)("jetpack-backup-dash-credentials",{site:a}),onClick:p},__("Enable one-click restores","jetpack"))))),l().createElement(m.T,{compact:!0},l().createElement("div",{className:"jp-recommendations-getting-started-compact"},l().createElement("a",{href:s.W_,onClick:d,target:"_blank",rel:"noreferrer"},l().createElement("img",{className:"jp-recommendations-getting-started-compact__thumbnail",src:s.d0+"backup-getting-started-thumbnail.png",srcSet:`${s.d0+"backup-getting-started-thumbnail.png"} 1x, ${s.d0+"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"))))))}))},39181:(e,t,a)=>{"use strict";a.d(t,{D:()=>d});var s=a(3924),n=a(27723),i=a(70386),r=a(31497),o=a(53835),c=a(51609),l=a(58734),p=a(78546);const __=n.__,d=()=>{(0,c.useEffect)((()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_no_price"})}),[]);const e=(0,c.useCallback)((()=>{o.A.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.T,{header:React.createElement(l.A,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.A,{rna:!0,href:(0,s.A)("jetpack-plans"),onClick:e,target:"blank",rel:"noopener noreferrer"},__("Learn more","jetpack"),React.createElement(r.A,{icon:"external"}))))}},88291:(e,t,a)=>{"use strict";a.d(t,{C:()=>m});var s=a(69546),n=a(56427),i=a(53835),r=a(28120),o=a.n(r),c=a(51609),l=a.n(c),p=a(84952),d=a(47309);const u=e=>{const{productCardTitle:t,productCardCtaLink:a,productCardCtaText:r,productCardList:o,productCardIcon:p,productCardDisclaimer:d,stepSlug:u}=e,m=(0,c.useCallback)((()=>{i.A.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:s.d0+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(n.ExternalLink,{href:d.url},d.link_text)),l().createElement(n.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.Ng)(((e,t)=>({...(0,d.ag)(e,t.productSlug),...(0,d.zQ)(e,t.productSlug,t.stepSlug)})))(u)},58734:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(27723),n=a(13022),i=a(31497),r=a(51609),o=a.n(r);const __=s.__,c=({className:e})=>o().createElement("div",{className:(0,n.A)("jp-recommendations-recommended-header",e)},o().createElement(i.A,{size:18,icon:"star"}),__("Recommended premium product","jetpack"))},93033:(e,t,a)=>{"use strict";a.d(t,{Z:()=>h});var s=a(69546),n=a(3924),i=a(27723),r=a(70386),o=a(31497),c=a(53835),l=a(51609),p=a.n(l),d=a(84952),u=a(2065),m=a(78546);const __=i.__,h=(0,d.Ng)((e=>({siteRawUrl:(0,u.XG)(e)})))((e=>{const{siteRawUrl:t}=e;(0,l.useEffect)((()=>{c.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"security"})}),[]);const a=(0,l.useCallback)((()=>{c.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"security"})}),[]);return p().createElement(m.T,{illustrationPath:s.d0+"/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.A,{rna:!0,href:(0,n.A)("jetpack-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:a},__("Manage security on Jetpack.com","jetpack"),p().createElement(o.A,{icon:"external"}))))}))},78546:(e,t,a)=>{"use strict";a.d(t,{T:()=>r});var s=a(13022),n=a(51609),i=a.n(n);const r=e=>{const{header:t,children:a,illustrationPath:n,compact:r,className:o}=e;return i().createElement("div",{className:(0,s.A)("jp-recommendations-sidebar-card",o,{"with-illustration":!!n})},n?i().createElement("div",{className:"jp-recommendations-sidebar-card__illustration-container"},i().createElement("div",{className:"jp-recommendations-sidebar-card__illustration"},i().createElement("img",{src:n,alt:""}))):t,i().createElement("div",{className:(0,s.A)("jp-recommendations-sidebar-card__content",{"is-compact":r})},a))}},8476:(e,t,a)=>{"use strict";a.d(t,{X:()=>i});var s=a(72989),n=a(27723);const __=n.__,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(s.A,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:a/100}),React.createElement("span",{className:"step-progress-bar__label"},(0,n.sprintf)(/* Translators: %1$s is the current step number, %2$s are total steps */ __("Step %1$s of %2$s","jetpack"),e+1,t)))}},48752:(e,t,a)=>{"use strict";a.d(t,{B:()=>y});var s=a(27723),n=a(13022),i=a(52123),r=a(66087),o=a(51609),c=a.n(o),l=a(84952),p=a(2065),d=a(54365),u=a(30138),m=a(77423),h=a(33841),g=a(63409),k=a(88537),f=a(65025),v=a(73182),E=a(39181),_=a(93033),b=a(32201);const __=s.__,y=(0,l.Ng)((e=>{const t=(0,m.pK)(e),a=(0,u.mt)(e),s=(0,d.Kl)(e);return{isFetchingMainData:(0,r.isEmpty)(a)||(0,r.isEmpty)(t),isFetchingSidebarData:(0,r.isEmpty)(s),isFetchingBottomSectionData:(0,r.isEmpty)(s),sidebarCardsSlug:(0,d.gH)(e),siteTitle:(0,p.AM)(e),summaryFeatureSlugs:(0,d.b4)(e),summaryResourceSlugs:(0,d.tH)(e),summaryPrimarySections:(0,d.xW)(e),stateStepSlug:(0,d.v3)(e),updatingStep:(0,d.P0)(e),isOnboardingActive:(0,d.kJ)(e),upsell:s}}),(e=>({updateRecommendationsStep:t=>e((0,d.si)(t)),updateOnboardingData:t=>e((0,d.tI)(t)),addViewedRecommendation:t=>e((0,d.tx)(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:A,newRecommendations:j=[],stateStepSlug:S,updatingStep:N,updateOnboardingData:x}=e;(0,o.useEffect)((()=>{"summary"!==S?y("summary"):"summary"!==S||N||w("summary")}),[S,N,y,w]),(0,o.useEffect)((()=>{A&&x({active:null})}),[x,A]);const R=e=>j.includes(e),T=t?c().createElement(i.m,{altText:__("Loading recommendations","jetpack")}):c().createElement(c().Fragment,null,c().createElement("div",{className:"jp-recommendations-summary__configuration"},c().createElement("h1",null,(0,s.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,s.sprintf)(/* translators: %s is the jetpack plan name */ __("Part of your %s plan","jetpack"),e)),t.map((e=>c().createElement(g.j,{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.t,{key:e,featureSlug:e,isNew:R(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.t,{key:e,featureSlug:e,isNew:R(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.v,{key:e,resourceSlug:e,isNew:R(e)})))))));let M,O;if(a)M=c().createElement(i.m,{altText:__("Loading recommendations","jetpack")});else switch(l){case"loading":M=c().createElement(i.m,{altText:__("Loading recommendations","jetpack")});break;case"upsell":M=C.hide_upsell?c().createElement(E.D,null):c().createElement(b.A,null),O=c().createElement(f.U,{slug:l,underside:!0});break;case"one-click-restores":M=c().createElement(c().Fragment,null,c().createElement(v.m,null),c().createElement(f.U,{slug:l}));break;case"manage-security":M=c().createElement(c().Fragment,null,c().createElement(_.Z,null),c().createElement(f.U,{slug:l}));break;case"download-app":M=c().createElement(f.U,{slug:l});break;default:M=c().createElement(f.U,{slug:"unknown"})}return c().createElement("div",{className:"jp-recommendations-summary"},c().createElement("div",{className:"jp-recommendations-summary__main"},c().createElement("div",{className:(0,n.A)("jp-recommendations-summary__content",{isLoading:t})},T),c().createElement("div",{className:(0,n.A)("jp-recommendations-summary__sidebar",{isLoading:a})},M)),O&&c().createElement("div",{className:(0,n.A)("jp-recommendations-summary__underside",{isLoading:r})},O))}))},32201:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(96072),n=a.n(s),i=a(27723),r=a(12659),o=a(53835),c=a(51609),l=a.n(c),p=a(84952),d=a(54365),u=a(19892),m=a(19742),h=a(38747),g=a(34179);const __=i.__,k=(0,p.Ng)((e=>({upsell:(0,d.Kl)(e),discountData:(0,u.TG)(e)})))((({upsell:e,discountData:t})=>{const{product_slug:a}=e||{},{expiry_date:s}=t,i=(0,c.useMemo)((()=>(0,g.F)(t)),[t]),p=(0,c.useCallback)((()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{product_slug:a,discount:i})}),[a,i]),d=(0,c.useCallback)((()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{product_slug:a,discount:i})}),[a,i]);return l().createElement(l().Fragment,null,l().createElement(m.T,n()({},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.A,{timeClassName:"jp-recommendations-summary__time",label:__("Discount ends in:","jetpack"),expiryDate:s})),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.e,{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"))))}))},38747:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(27723),n=a(51609),i=a.n(n);const __=s.__,r=({label:e,timeClassName:t,expiryDate:a})=>{const r=(0,n.useMemo)((()=>new Date(a)),[a]),[o,c]=(0,n.useState)(r-Date.now()),l=(0,n.useRef)(void 0),p=(0,n.useCallback)((()=>{c(r-Date.now())}),[r,c]),d=(0,n.useCallback)((e=>{const t=e/1e3,a=Math.floor(t/86400),n=Math.floor((t-3600*a*24)/3600),i=Math.floor((t-3600*a*24-3600*n)/60),r=Math.floor(t-3600*a*24-3600*n-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,s.sprintf)(__("%dd","jetpack"),a)),(a>0||n>0)&& // translators: %d is the number of hours, h an abbreviation for hours (e.g. 23h). Only translate the latter. o.push((0,s.sprintf)(__("%dh","jetpack"),n)),(a>0||n>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,s.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,s.sprintf)(__("%ds","jetpack"),r)),o.join(" ")}),[]);return(0,n.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")}},73381:(e,t,a)=>{"use strict";a.d(t,{g:()=>s});const s=(e,t,a)=>{if(!e||!t||!a)return;const s=parseInt(e?.discount,10);if(Number.isNaN(s))return;const n=a.map((({slug:e})=>e)),i=t.filter((({product_slug:e})=>n.includes(e))).map((({original_price:e,raw_price:t})=>{if(!e)return;const a=(e-t*(1-s/100))/e;return Math.round(100*a)})).filter(Boolean);return i.length?Math.max(...i):void 0}},29024:(e,t,a)=>{"use strict";a.d(t,{u:()=>n});var s=a(3924);const n=(e,t,a,n,i)=>(0,s.A)("jetpack-recommendations-product-checkout",{site:i??a,path:e,query:`coupon=${n||""}&redirect_to=${t}admin.php?jp-react-redirect=product-purchased`})},34179:(e,t,a)=>{"use strict";a.d(t,{F:()=>s});const s=e=>{if("object"!=typeof e)return!1;const{discount:t,is_used:a,expiry_date:s}=e;return!!t&&!a&&new Date(s).valueOf()-Date.now()>0}},15775:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(27723),n=a(36336),i=a(43100),r=a(63344),o=a(8332),c=a(19579),l=a(66087),p=a(51609),d=a.n(p),u=a(84952),m=a(34679),h=a(2065),g=a(26508),k=a(12623);const __=s.__,f=(0,r.t)(class extends p.Component{componentDidMount(){document.addEventListener("click",this.handleAnchorClick)}componentWillUnmount(){document.removeEventListener("click",this.handleAnchorClick)}handleAnchorClick=e=>{e.target.closest('.jp-searchable-banner a.dops-button[href="#"]')&&e.preventDefault()};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,s)=>{if(this.props.isModuleFound(s)&&(0,l.includes)(e,s)){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(d().createElement(v,{key:s,moduleData:t,offlineMode:e,siteConnectionMode:i}));this.props.getOptionValue(t.module)?a.push(d().createElement(v,{key:s,moduleData:t})):a.push(d().createElement(n.Ay,{className:"jp-searchable-banner",key:s,callToAction:__("Activate","jetpack"),description:t.description,href:"#",icon:"cog",onClick:this.handleBannerClick(t.module),title:t.name}))}})),d().createElement("div",null,a)}});class v extends p.Component{render(){const e=this.props.moduleData,t=this.props.offlineMode,a=this.props.siteConnectionMode;return d().createElement(o.A,{module:e.module,header:e.name,action:e.module,hideButton:!0},d().createElement(c.A,{disableInOfflineMode:t,disableInSiteConnectionMode:a,module:{module:e.module},support:{link:e.learn_more_button}},e.description),a&&d().createElement(i.A,{feature:e.module,featureLabel:e.name,text:__("Connect to configure.","jetpack")}))}}const E=(0,u.Ng)((e=>({modules:(0,g.eI)(e),isModuleFound:t=>(0,k.jQ)(e,t),canManageModules:(0,h.Ir)(e),isUnavailableInOfflineMode:t=>(0,m.Em)(e,t),isOfflineMode:(0,m.hN)(e),isUnavailableInSiteConnectionMode:t=>(0,m.g)(e,t)})))(f)},20790:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(96072),n=a.n(s),i=a(68316),r=a(27723),o=a(70386),c=a(11895),l=a(5546),p=a(63344),d=a(8332),u=a(19579),m=a(66087),h=a(51609),g=a.n(h),k=a(84952),f=a(96337),v=a(26224),E=a(72868),_=a(80911);const __=r.__,_x=r._x,b=class extends h.Component{state={ipAllowListEnabled:this.props.settings?.ipAllowListEnabled,ipAllowList:this.props.settings?.ipAllowList};componentDidUpdate=e=>{this.props.settings!==e.settings&&this.setState({...this.state,ipAllowListEnabled:this.props.settings?.ipAllowListEnabled,ipAllowList:this.props.settings?.ipAllowList})};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,r.sprintf)(/* translators: placeholder is an error code or an error message. */ __("Error updating settings. %s","jetpack"),e.message||e.code),{id:"module-setting-update"})}))};toggleIpAllowList=()=>{this.setState({...this.state,ipAllowListEnabled:!this.state.ipAllowListEnabled},this.onSubmit)};handleIpAllowListChange=e=>{this.setState({...this.state,ipAllowList:e?.target?.value})};currentIpIsSafelisted=()=>!!(0,m.includes)(this.state.ipAllowList,this.props.currentIp);addToSafelist=()=>{const e=this.state.ipAllowList+(0>=this.state.ipAllowList.length?"":"\n")+this.props.currentIp;this.setState({...this.state,ipAllowList:e})};render(){const e=this.props.isUnavailableInOfflineMode("waf"),t=this.props.isUnavailableInOfflineMode("protect"),a=e&&t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),s=g().createElement("div",{className:"waf__header"},g().createElement("span",null,_x("Always allowed IP addresses","Settings header","jetpack")));return g().createElement(d.A,n()({},this.props,{header:s,module:"waf",onSubmit:this.onSubmit,hideButton:!0}),g().createElement(f.A,null),g().createElement(u.A,{disableInOfflineMode:!0,support:{text:"Adding an IP address to the allow list will prevent it from being blocked by Jetpack's firewall and brute force protection features.",link:this.props.getModule("waf").learn_more_button}},g().createElement(c.dV,null,g().createElement("div",{className:"waf__settings__toggle-setting"},g().createElement(i.A,{checked:this.props.settings?.ipAllowListEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.ipAllowListEnabled!==this.props.settings?.ipAllowListEnabled,disabled:a,onChange:this.toggleIpAllowList,label:g().createElement("span",{className:"jp-form-toggle-explanation"},__("Prevent Jetpack's security features from blocking specific IP addresses","jetpack"))}),(this.state.ipAllowListEnabled||!!this.state.ipAllowList)&&g().createElement(v.A,{className:"waf__settings__ips",disabled:a||this.props.isUpdatingWafSettings||!this.props.settings?.ipAllowListEnabled,name:"ipAllowList",placeholder:__("Example:","jetpack")+"\n12.12.12.1\n12.12.12.2",value:this.state.ipAllowList,onChange:this.handleIpAllowListChange}),this.state.ipAllowListEnabled&&g().createElement("div",{className:"waf__settings__ips__button-container"},this.props.currentIp&&g().createElement("div",{className:"current-ip"},g().createElement("div",{className:"jp-form-label-wide"},(0,r.sprintf)(/* translators: placeholder is an IP address. */ __("Your current IP: %s","jetpack"),this.props.currentIp)),g().createElement(o.A,{rna:!0,compact:!0,disabled:this.props.isUpdatingWafSettings||!this.props.settings?.ipAllowListEnabled||this.currentIpIsSafelisted()||this.props.isSavingAnyOption(["jetpack_waf_ip_allow_list"]),onClick:this.addToSafelist},__("Add to Allow List","jetpack"))),g().createElement(o.A,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled: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=(0,k.Ng)((e=>({isFetchingSettings:(0,_._e)(e),isUpdatingWafSettings:(0,_.EK)(e),settings:(0,_.IE)(e)})),(e=>({updateWafSettings:t=>e((0,E.J)(t)),createNotice:(t,a,s)=>e((0,l.Fc)(t,a,s)),removeNotice:t=>e((0,l.fj)(t))})))((0,p.t)(b))},93498:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(96072),n=a.n(s),i=a(86087),r=a(27723),o=a(97058),c=a(94025),l=a(11895),p=a(31497),d=a(63344),u=a(8332),m=a(19579),h=a(78888),g=a(53835),k=a(6838),f=a(66087),v=a(51609),E=a(84952),_=a(32819);const __=r.__,_x=r._x,b=(0,d.t)(class extends v.Component{state={apiKey:this.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}};keyChanged=!1;UNSAFE_componentWillMount(){this.debouncedCheckApiKeyTyped=(0,f.debounce)(this.checkApiKeyTyped,500)}checkApiKeyTyped=e=>{this.props.checkAkismetKey(e.currentTarget.value),this.keyChanged=!0,this.setState({delayKeyCheck:!1})};updateText=e=>{const t=(0,f.assign)({},e);t.currentTarget.value=(0,f.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,f.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}trackOpenCard=()=>{g.A.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"),s=(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:React.createElement("a",{href:"https://akismet.com/wordpress/"})});return null===this.props.isAkismetKeyValid?(e.value=__("Fetching key…","jetpack"),e.disabled=!0,s=!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"),s=__("It looks like your API key has been set globally.","jetpack"),t=React.createElement(c.A,{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=React.createElement("div",{className:"form-input-validation is-warning"},React.createElement("span",null,React.createElement(p.A,{size:24,icon:"sync"}),__("Checking key…","jetpack"))),s=!1):!1===this.props.isAkismetKeyValid?(t=React.createElement(c.A,{isError:!0,text:(0,i.createInterpolateElement)(__("There's a problem with your Anti-spam API key. <a>Learn more</a>.","jetpack"),{a:React.createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})})}),e.isError=!0,a=__("Your site is not protected from spam.","jetpack")):(t=React.createElement(c.A,{text:__("Your Anti-spam key is valid.","jetpack")}),e.isValid=!0,a=__("Your site is protected from spam.","jetpack"),s=!1),React.createElement(u.A,n()({},this.props,{header:_x("Anti-spam","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:k.pt9}),React.createElement(o.A,{onOpen:this.trackOpenCard,header:a},React.createElement(m.A,{support:{text:__("Removes spam from comments and contact forms.","jetpack"),link:"https://akismet.com/jetpack/"}},React.createElement(l.dV,null,React.createElement(l.lR,null,React.createElement("span",{className:"jp-form-label-wide"},__("Your API key","jetpack")),React.createElement(h.A,e),t),s&&React.createElement("p",{className:"jp-form-setting-explanation"},s)))))}}),y=(0,E.Ng)((e=>({isAkismetKeyValid:(0,_.Ee)(e),isCheckingAkismetKey:(0,_.OY)(e)})),(e=>({checkAkismetKey:(t="")=>e((0,_.EI)(t))})))(b)},55252:(e,t,a)=>{"use strict";a.d(t,{A:()=>M});var s=a(96072),n=a.n(s),i=a(3924),r=a(37975),o=a(86087),c=a(27723),l=a(19783),p=a(36336),d=a(26592),u=a(26468),m=a(63344),h=a(8332),g=a(19579),k=a(53835),f=a(6838),v=a(66087),E=a(28120),_=a.n(E),b=a(51609),y=a.n(b),w=a(84952),C=a(32819),A=a(2065),j=a(26508),S=a(89336),N=a(82656);const __=c.__,_x=c._x,_n=c._n;class x extends b.Component{render(){return y().createElement(h.A,{header:_x("Backups and security scanning","Settings header","jetpack"),hideButton:!0,action:"scan"},y().createElement(g.A,{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.A)("vaultpress-help-get-to-know")}},__("Checking site status…","jetpack")))}}class R 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.A,type:"warning",description:__("Enter your SSH, SFTP, or FTP credentials to enable one-click site restores and fixes","jetpack"),url:(0,i.A)("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.A)("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:s,type:n,url:i}=this.getRewindMessage();return y().createElement(p.Ay,{title:e,icon:t,iconWp:a,feature:"rewind",description:s,className:`jp-banner__no-border is-jetpack-${n||"info"}`,href:i})};render(){return y().createElement(h.A,n()({feature:"rewind"},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"rewind",hideButton:!0}),this.getCardText())}}const T=(0,m.t)(class extends b.Component{toggleModule=(e,t)=>{this.props.updateFormStateOptionValue(e,!t)};trackConfigureClick=()=>{k.A.tracks.recordJetpackClick("configure-scan")};getCardText(){if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");const e=(0,v.get)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,v.get)(this.props.vaultPressData,["data","features","security"],!1);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.A)(e))),y().createElement("br",null),y().createElement("br",null),(0,o.createInterpolateElement)(__("<a>View details</a>","jetpack"),{a:y().createElement("a",{href:(0,i.A)("vaultpress-dashboard")})}),y().createElement("br",null),(0,o.createInterpolateElement)(__("<a>Contact Support</a>","jetpack"),{a:y().createElement("a",{href:(0,i.A)("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,v.get)(this.props.vaultPressData,["data","features","security"],!1),t=(0,v.get)(this.props.rewindStatus,["state"],!1),a=!1!==t,s="N/A"!==this.props.vaultPressData&&!1!==(0,v.get)(this.props.vaultPressData,["data"],!1);return a||!this.props.vaultPressActive||s?(0,v.includes)(["provisioning","awaiting_credentials","active"],t)?y().createElement(R,n()({},this.props,{rewindState:t})):y().createElement(h.A,n()({feature:f.FxV},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0}),y().createElement(u.A,null),y().createElement(g.A,{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.A)("vaultpress-help-get-to-know")}},this.getCardText()),!this.props.isUnavailableInOfflineMode("backups")&&e&&y().createElement(d.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:(0,i.A)("vaultpress-dashboard")},__("Configure your Security Scans","jetpack"))):y().createElement(x,null)}}),M=(0,w.Ng)((e=>({vaultPressData:(0,C.Cc)(e),hasScan:(0,N.IT)(e,"scan"),hasThreats:(0,C.mK)(e),vaultPressActive:(0,j.Yp)(e,"vaultpress"),showBackups:(0,A.Fp)(e),isFetchingRewindStatus:(0,S.wp)(e)})))(T)},90813:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var s=a(96072),n=a.n(s),i=a(27723),r=a(17659),o=a(63109),c=a(66087),l=a(51609),p=a.n(l),d=a(84952),u=a(32819),m=a(34679),h=a(2065),g=a(26508),k=a(12623),f=a(30138),v=a(82656),E=a(77423),_=a(20790),b=a(93498),y=a(55252),w=a(95208),C=a(53607),A=a(41048),j=a(47628),S=a(83663);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.searchTerm;if(!t&&!this.props.active)return null;const a=this.props.isModuleFound("protect"),s=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");if(!(s||a||i||d||u))return null;const m=this.props.isModuleFound("waf"),h=this.props.backupsOnly?p().createElement(w.D,n()({},e,{vaultPressData:this.props.vaultPressData})):p().createElement(y.A,e);return p().createElement("div",null,p().createElement(o.A,null),p().createElement("h1",{className:"screen-reader-text"},__("Jetpack Security Settings","jetpack")),p().createElement("h2",{className:"jp-settings__section-title"},t?__("Security","jetpack"):__("Your site is protected by Jetpack. You’ll be notified if anything needs attention.","jetpack",0)),d&&h,u&&p().createElement(C.V,e),i&&p().createElement(p().Fragment,null,p().createElement(b.A,e),p().createElement(r.A,null)),m&&p().createElement(S.A,e),a&&p().createElement(A.E,e),(m||a)&&p().createElement(_.A,e),s&&p().createElement(j.O,e))}}const x=(0,d.Ng)((e=>({backupsOnly:(0,v.IT)(e,"backups")&&!(0,v.IT)(e,"scan"),module:t=>(0,g.f_)(e,t),settings:(0,f.mt)(e),isOfflineMode:(0,m.hN)(e),isUnavailableInOfflineMode:t=>(0,m.Em)(e,t),isModuleFound:t=>(0,k.jQ)(e,t),isPluginActive:t=>(0,E.gT)(e,t),isPluginInstalled:t=>(0,E.O8)(e,t),vaultPressData:(0,u.Cc)(e),hasConnectedOwner:(0,m.BG)(e),blogID:(0,h.V2)(e)})))(N)},95208:(e,t,a)=>{"use strict";a.d(t,{D:()=>k});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(36336),c=a(8332),l=a(19579),p=a(6838),d=a(66087),u=a(28120),m=a.n(u),h=a(51609),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.A,{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.A)("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.A)("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.A)("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:s}=this.getRewindMessage();return g().createElement(o.Ay,{title:e,icon:t,feature:"rewind",description:a,className:"is-upgrade-premium jp-banner__no-border",href:s})};render(){const{rewindStatus:e,vaultPressData:t}=this.props,a=(0,d.get)(e,"state",!1),s=(0,d.get)(t,["data","features","backups"],!1);return!1!==a||s?g().createElement(c.A,n()({feature:p.gvR},this.props,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0}),"unavailable"===a?this.getVaultPressContent():this.getRewindBanner()):g().createElement(c.A,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0,action:p.gvR},g().createElement(l.A,{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.A)("jetpack-support-backup")}},__("Checking site status…","jetpack")))}}},53607:(e,t,a)=>{"use strict";a.d(t,{V:()=>k});var s=a(96072),n=a.n(s),i=a(3924),r=a(56427),o=a(86087),c=a(27723),l=a(63344),p=a(60619),d=a(8332),u=a(19579),m=a(53835),h=a(51609),g=a(6838);const __=c.__,_x=c._x,k=(0,l.t)(class extends h.Component{trackConfigureClick=()=>{m.A.tracks.recordJetpackClick("configure-monitor-email")};render(){const e=this.props.hasConnectedOwner,t=this.props.getOptionValue("monitor"),a=this.props.isUnavailableInOfflineMode("monitor");return React.createElement(d.A,n()({},this.props,{hideButton:!0,module:"monitor",header:_x("Downtime monitoring","Settings header","jetpack"),feature:g.XkN}),React.createElement(u.A,{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.A)("jetpack-support-monitor")}},React.createElement(p.j,{slug:"monitor",disabled:a||!e,activated:t,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},React.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:React.createElement(r.ExternalLink,{href:"https://wordpress.com/me/account",onClick:this.trackConfigureClick})})))))}})},41048:(e,t,a)=>{"use strict";a.d(t,{E:()=>h});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(63344),c=a(60619),l=a(8332),p=a(19579),d=a(51609),u=a.n(d);const __=r.__,_x=r._x,m=class extends d.Component{render(){const e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect");return u().createElement(l.A,n()({},this.props,{module:"protect",header:_x("Brute force protection","Settings header","jetpack"),hideButton:!0}),u().createElement(p.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("protect"),support:{text:__("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:(0,i.A)("jetpack-support-protect")}},u().createElement(c.j,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},u().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description))))}},h=(0,o.t)(m)},47628:(e,t,a)=>{"use strict";a.d(t,{O:()=>w});var s=a(96072),n=a.n(s),i=a(11883),r=a(3924),o=a(68316),c=a(39384),l=a(56427),p=a(86087),d=a(27723),u=a(11895),m=a(63344),h=a(60619),g=a(8332),k=a(19579),f=a(68767),v=a(51609),E=a(75795),_=a.n(E),b=a(6838);const __=d.__,_x=d._x,y=()=>{const{userConnectionData:e}=(0,c.useConnection)(),t=e?.currentUser?.wpcomUser?.ID,a=`https://wordpressdotcom.survey.fm/disable-sso-survey?initiated-from=jetpack&user-id=${t}`,[s,n]=(0,v.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}),n(!0)};return s?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.A,{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,m.t)(class extends v.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(g.A,n()({},this.props,{hideButton:!0,module:"sso",header:_x("WordPress.com login","Settings header, noun.","jetpack"),feature:b.Z4D}),React.createElement(k.A,{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.A)("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(h.j,{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(u.dV,null,React.createElement(o.A,{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.A,{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.A)("jetpack-support-force-2fa")}),code:React.createElement("code",null)}):null})))),this.state.showSSODisableModal&&_().createPortal(React.createElement(y,null),document.body))}})},83663:(e,t,a)=>{"use strict";a.d(t,{A:()=>D});var s=a(96072),n=a.n(s),i=a(1158),r=a(68316),o=a(3924),c=a(56427),l=a(86087),p=a(27723),d=a(70386),u=a(97058),m=a(11895),h=a(5546),g=a(3983),k=a(63344),f=a(8332),v=a(19579),E=a(6838),_=a(83101),b=a(51609),y=a.n(b),w=a(84952),C=a(82656),A=a(26592),j=a(96337),S=a(63242),N=a(60619),x=a(76122),R=a(26224),T=a(2065),M=a(77423),O=a(72868),P=a(80911);const __=p.__,_x=p._x,L=["protect/jetpack-protect.php","jetpack-protect/jetpack-protect.php","jetpack-protect-dev/jetpack-protect.php"],I=class extends b.Component{state={automaticRulesEnabled:this.props.settings?.automaticRulesEnabled,ipBlockListEnabled:this.props.settings?.ipBlockListEnabled,ipBlockList:this.props.settings?.ipBlockList,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,ipBlockListEnabled:this.props.settings?.ipBlockListEnabled,ipBlockList:this.props.settings?.ipBlockList,shareData:this.props.settings?.shareData,shareDebugData:this.props.settings?.shareDebugData})};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)};toggleIpBlockList=()=>{this.setState({...this.state,ipBlockListEnabled:!this.state.ipBlockListEnabled},this.onSubmit)};handleIpBlockListChange=e=>{this.setState({...this.state,ipBlockList: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"]),s=y().createElement("div",{className:"waf__header"},y().createElement("span",null,_x("Firewall","Settings header","jetpack")),this.props.settings?.standaloneMode&&y().createElement(i.A,{className:"waf__standalone__mode",status:"active",label:__("Standalone mode","jetpack")})),h=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(r.A,{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(r.A,{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.A,{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,o.A)("jetpack-waf-settings-privacy-info")}),hr:y().createElement("hr",null)})))})),_=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(r.A,{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.A,{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,o.A)("jetpack-waf-settings-privacy-info")}),hr:y().createElement("hr",null)})))})),b=(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)}),w=y().createElement(u.A,{header:b,className:"waf__enhanced-protection"},y().createElement(v.A,{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"))))),C=y().createElement(g.Ay,{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.A,{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.EP8)(E.FxV),feature:"jetpack_scan",href:this.props.scanUpgradeUrl,rna:!0}),T=y().createElement("div",{className:"waf__settings__toggle-setting"},y().createElement(r.A,{checked:this.props.settings?.ipBlockListEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.ipBlockListEnabled!==this.props.settings?.ipBlockListEnabled,disabled:a,onChange:this.toggleIpBlockList,label:y().createElement("span",{className:"jp-form-toggle-explanation"},__("Manual rules - Block specific IP addresses from accessing your site","jetpack"))}),(this.state.ipBlockListEnabled||!!this.state.ipBlockList)&&y().createElement("div",{className:"waf__settings__ips"},y().createElement(R.A,{disabled:a||this.props.isUpdatingWafSettings||!this.props.settings?.ipBlockListEnabled,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}),this.state.ipBlockListEnabled&&y().createElement(d.A,{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"))));return this.props.isProtectActive?y().createElement(f.A,n()({},this.props,{header:s,module:"waf",hideButton:!0}),y().createElement(A.A,{className:"dops-banner has-call-to-action"},y().createElement("div",{className:"dops-banner__icon-plan"},y().createElement(x.A,{plan:E.FQO})),y().createElement("div",{className:"dops-banner__content"},y().createElement("div",{className:"dops-banner__info"},y().createElement("div",{className:"dops-banner__title"},__("Firewall settings have been moved to the Jetpack Protect plugin.","jetpack"))),y().createElement("div",{className:"dops-banner__action"},y().createElement(d.A,{rna:!0,compact:!0,href:this.props.protectAdminUrl,primary:!0},__("View Firewall Settings","jetpack")))))):y().createElement(f.A,n()({},this.props,{header:s,module:"waf",onSubmit:this.onSubmit,hideButton:!0}),e&&y().createElement(j.A,null),y().createElement(v.A,{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.j,{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.dV,{className:"waf__settings"},h,T,k,_)),e&&this.props.bootstrapPath&&w,!this.props.hasScan&&!this.props.isFetchingSettings&&C)}},D=(0,w.Ng)((e=>{const t=(0,C.X6)(e);return{automaticRulesAvailable:(0,P.mY)(e),hasScan:(0,C.IT)(e,"scan"),protectAdminUrl:`${(0,T.eu)(e)}admin.php?page=jetpack-protect#/firewall`,isProtectActive:L.some((t=>(0,M.gT)(e,t))),getProtectUrl:`${(0,T.eu)(e)}admin.php?page=my-jetpack#/add-protect`,isFetchingSettings:(0,P._e)(e),isUpdatingWafSettings:(0,P.EK)(e),settings:(0,P.IE)(e),scanUpgradeUrl:(0,_.F)(e,"scan"),sitePlan:t}}),(e=>({updateWafSettings:t=>e((0,O.J)(t)),createNotice:(t,a,s)=>e((0,h.Fc)(t,a,s)),removeNotice:t=>e((0,h.fj)(t))})))((0,k.t)(I))},77496:(e,t,a)=>{"use strict";a.d(t,{A:()=>A});var s=a(96072),n=a.n(s),i=a(50723),r=a(59244),o=a(27723),c=a(58011),l=a(89537),p=a(73842),d=a(79223),u=a(91521),m=a(51609),h=a.n(m),g=a(84952),k=a(60247),f=a(15775),v=a(90813),E=a(8965),_=a(26508),b=a(68062),y=a(10225),w=a(6838);const __=o.__;class C extends h().Component{static displayName="SearchableSettings";render(){const{location:e={pathname:""},rewindStatus:t,searchTerm:a,siteAdminUrl:s,siteRawUrl:m,blogID:g,userCanManageModules:k}=this.props,{pathname:_}=e,C={searchTerm:a,rewindStatus:t,userCanManageModules:k};return h().createElement(i.Ay,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(v.A,n()({siteAdminUrl:s,siteRawUrl:m,active:"/security"===_||"/settings"===_&&k},C)),h().createElement(c.A,n()({siteRawUrl:m,active:"/discussion"===_},C)),h().createElement(p.A,n()({siteRawUrl:m,blogID:g,active:"/newsletter"===_},C)),h().createElement(l.A,n()({siteRawUrl:m,active:"/earn"===_,feature:w.zwM},C)),h().createElement(d.A,n()({active:"/performance"===_},C)),h().createElement(b.A,n()({siteRawUrl:m,siteAdminUrl:s,active:"/traffic"===_},C)),h().createElement(y.A,n()({siteAdminUrl:s,active:"/writing"===_||!k&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize")},C)),h().createElement(E.A,n()({siteAdminUrl:s,active:"/sharing"===_||"/settings"===_&&!k&&this.props.isModuleActivated("publicize")},C)),h().createElement(u.A,n()({active:"/privacy"===_},C)),h().createElement(f.A,{searchTerm:a})),h().createElement(r.D,null))}}const A=(0,g.Ng)((e=>({isModuleActivated:t=>(0,_.Yp)(e,t)})))((0,k.y)(C))},53790:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(47425),n=a(7162),i=a(27723),r=a(11895);const __=i.__,o=()=>React.createElement(r.dV,null,React.createElement(n.SocialImageGeneratorToggle,{toggleClass:"jp-settings-sharing__sig-toggle"},React.createElement("div",null,React.createElement(s.Ay,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(n.TemplatePickerButton,null))))},8965:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(7162),n=a(27723),i=a(63109),r=a(51609),o=a.n(r),c=a(84952),l=a(34679),p=a(2065),d=a(26508),u=a(12623),m=a(30138),h=a(82656),g=a(62505),k=a(88258),f=a(37900);const __=n.__;class v extends r.Component{render(){const{useAdminUiV1:e}=(0,s.getSocialScriptData)().feature_flags,t={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,isAtomicSite:this.props.isAtomicSite,hasSharingBlock:this.props.hasSharingBlock,isBlockTheme:this.props.isBlockTheme,useAdminUiV1:e};if(!this.props.searchTerm&&!this.props.active)return null;const a=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return a||n||r?o().createElement("div",null,o().createElement(i.A,null),o().createElement("h1",{className:"screen-reader-text"},__("Jetpack Sharing Settings","jetpack")),o().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")),a&&o().createElement(k.E,t),n&&o().createElement(f.R,t),r&&o().createElement(g.P,t)):null}}const E=(0,c.Ng)((e=>({module:t=>(0,d.f_)(e,t),settings:(0,m.mt)(e),isOfflineMode:(0,l.hN)(e),siteUsesWpAdminInterface:(0,h.dr)(e),isUnavailableInOfflineMode:t=>(0,l.Em)(e,t),isModuleFound:t=>(0,u.jQ)(e,t),isLinked:(0,l._U)(e),connectUrl:(0,l.Qp)(e),siteRawUrl:(0,p.XG)(e),blogID:(0,p.V2)(e),siteAdminUrl:(0,p.eu)(e),activeFeatures:(0,h.mH)(e),hasPaidFeatures:(0,s.hasSocialPaidFeatures)(),userCanManageModules:(0,p.Ir)(e),isAtomicSite:(0,p.d9)(e),hasSharingBlock:(0,p.Jx)(e),isBlockTheme:(0,p.JQ)(e)})))(v)},62505:(e,t,a)=>{"use strict";a.d(t,{P:()=>m});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(63344),c=a(60619),l=a(8332),p=a(19579),d=a(51609),u=a.n(d);const __=r.__,_x=r._x,m=(0,o.t)(class extends d.Component{render(){const e=this.props.isUnavailableInOfflineMode("likes"),t=this.props.getOptionValue("likes");return u().createElement(l.A,n()({},this.props,{header:_x("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0}),u().createElement(p.A,{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.A)("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.j,{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")))))}})},88258:(e,t,a)=>{"use strict";a.d(t,{E:()=>b});var s=a(96072),n=a.n(s),i=a(3924),r=a(7162),o=a(97999),c=a(86087),l=a(27723),p=a(26592),d=a(63344),u=a(60619),m=a(8332),h=a(19579),g=a(53835),k=a(51609),f=a.n(k),v=a(11895),E=a(6838),_=a(53790);const __=l.__,_x=l._x,b=(0,d.t)(class extends k.Component{trackClickConfigure(){g.A.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.getOptionValue("publicize"),t=this.props.userCanManageModules;if(!t&&!e)return null;const a=this.props.isUnavailableInOfflineMode("publicize"),s=this.props.isLinked,l=this.props.siteRawUrl,d=this.props.blogID,g=this.props.siteAdminUrl,k=this.props.hasPaidFeatures,b=(0,o.siteHasFeature)(r.features.IMAGE_GENERATOR),y=this.props.isAtomicSite,w=this.props.activeFeatures,C=this.props.useAdminUiV1,A=this.props.isOfflineMode,j=!y&&w&&w.length>0&&e&&!k&&s,S=e&&!this.props.isSavingAnyOption("publicize"),N=encodeURIComponent(g.replace(/\/$/,""));return f().createElement(m.A,n()({},this.props,{header:_x("Jetpack Social","Settings header","jetpack"),module:"publicize",hideButton:!0,feature:E.Y6$,isDisabled:A||!s}),t&&f().createElement(h.A,{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.A)("jetpack-support-publicize")}},f().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")),j?f().createElement("p",null,(0,c.createInterpolateElement)(__("<moreInfo>Upgrade to a Jetpack Social plan</moreInfo> to get advanced sharing options.","jetpack"),{moreInfo:f().createElement("a",{href:(0,i.A)("jetpack-plugin-admin-page-sharings-screen",{site:l,query:"redirect_to="+N})})})):null,f().createElement(u.j,{slug:"publicize",disabled:A||!s,activated:e,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},__("Automatically share your posts to social networks","jetpack"))),S&&b&&f().createElement(_.A,null),e&&s&&C&&!this.props.isSavingAnyOption("publicize")?f().createElement(v.dV,{className:"jp-settings__connection-management"},f().createElement(r.ConnectionManagement,null)):null),e&&!C&&(()=>{if(!a)return s&&f().createElement(p.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:(0,i.A)("calypso-marketing-connections",{site:d??l})},__("Connect your social media accounts","jetpack"))})())}})},37900:(e,t,a)=>{"use strict";a.d(t,{R:()=>v});var s=a(96072),n=a.n(s),i=a(3924),r=a(56427),o=a(86087),c=a(27723),l=a(26592),p=a(63344),d=a(60619),u=a(11346),m=a(8332),h=a(19579),g=a(53835),k=a(51609),f=a.n(k);const __=c.__,_x=c._x,v=(0,p.t)(class extends k.Component{trackClickConfigure(){g.A.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}render(){const e=this.props.isLinked,t=this.props.siteRawUrl,a=this.props.blogID,s=this.props.siteAdminUrl,c=this.props.isOfflineMode,p=this.props.siteUsesWpAdminInterface,g=this.props.hasSharingBlock,k=this.props.isBlockTheme,v=this.props.getOptionValue("sharedaddy"),E=k&&g,_=(0,i.A)("jetpack-support-sharing-block"),b=(0,i.A)("jetpack-support-sharing");return f().createElement(m.A,n()({},this.props,{header:_x("Sharing buttons","Settings header","jetpack"),module:"sharing",hideButton:!0}),f().createElement(h.A,{disableInOfflineMode:!0,module:{module:"sharedaddy"},support:{text:__("You can customize the sharing buttons and choose which services to display.","jetpack"),link:E?_:b}},f().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=f().createElement(d.j,{slug:"sharedaddy",activated:v,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},__("Add sharing buttons to your posts and pages","jetpack")));if(!E)return e;const t=v?(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:f().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:f().createElement(r.ExternalLink,{href:_})});return f().createElement(f().Fragment,null,e,f().createElement(u.A,{showDismiss:!1,status:"is-info",className:"jp-settings-sharing__block-theme-description"},t))})()),(v||E)&&(()=>{const n={compact:!0,className:"jp-settings-card__configure-link",href:`${s}options-general.php?page=sharing`};return E?n.href=`${s}site-editor.php?path=%2Fwp_template`:!e||c||p||(n.href=(0,i.A)("calypso-marketing-sharing-buttons",{site:a??t}),n.onClick=this.trackClickConfigure,n.target="_blank",n.rel="noopener noreferrer"),f().createElement(l.A,n,__("Configure your sharing buttons","jetpack"))})())}})},44254:(e,t,a)=>{"use strict";a.d(t,{$X:()=>Zt,$ns:()=>$,Adt:()=>n,B5I:()=>pt,BIk:()=>vt,BVe:()=>fe,BXj:()=>Re,C_M:()=>Ie,Cj9:()=>H,Cvy:()=>ye,Cy8:()=>J,Dvt:()=>ea,EM8:()=>K,EeE:()=>ke,EqR:()=>R,Fdt:()=>M,FtY:()=>st,G2:()=>D,G7U:()=>le,Glt:()=>C,Gvw:()=>Pe,H1n:()=>oa,H_I:()=>Dt,Hvo:()=>la,I1N:()=>mt,I9e:()=>Ue,J2s:()=>te,JH9:()=>sa,Kt:()=>Ht,Kt$:()=>Mt,LHd:()=>jt,LK9:()=>S,LKY:()=>Oe,LWm:()=>Qt,LX4:()=>da,LgT:()=>g,Lvk:()=>wt,Mcz:()=>P,N8j:()=>re,NY7:()=>je,NjB:()=>ht,NvU:()=>o,OH_:()=>y,OOn:()=>E,ObO:()=>ra,PKf:()=>z,PMD:()=>De,PoH:()=>Fe,Q9k:()=>Bt,Qgu:()=>se,Quo:()=>Ae,R1B:()=>B,RRv:()=>f,RWZ:()=>yt,S68:()=>k,SOl:()=>u,SW5:()=>_t,SjL:()=>qt,Smm:()=>c,T0C:()=>rt,TVv:()=>Ce,U7A:()=>ie,UsK:()=>Te,Vfi:()=>we,WHZ:()=>Nt,Wkx:()=>ve,Wxz:()=>Le,WzY:()=>pa,X2c:()=>s,X99:()=>xe,XSi:()=>Ut,XdB:()=>Ze,Xfo:()=>Qe,XwM:()=>pe,YC9:()=>$e,YCY:()=>be,ZC3:()=>m,ZCe:()=>$t,ZZG:()=>Be,Zo7:()=>ta,Zwb:()=>ne,_Dw:()=>de,_Wi:()=>Ye,_ce:()=>v,_i2:()=>Et,_nc:()=>Ee,aUl:()=>Ot,acX:()=>F,bhx:()=>i,bpU:()=>Wt,c30:()=>h,cBl:()=>xt,dM3:()=>O,dhe:()=>me,e2D:()=>gt,e9_:()=>Tt,eZ7:()=>ft,eb$:()=>zt,ezW:()=>aa,fCe:()=>ha,fl0:()=>ce,fnu:()=>b,gOo:()=>We,gSC:()=>he,gWA:()=>Ke,gbL:()=>r,gbR:()=>Vt,h86:()=>Yt,h8Y:()=>Ge,hTb:()=>ua,hcx:()=>et,heB:()=>lt,iSZ:()=>Se,in6:()=>He,j1M:()=>Jt,j7x:()=>ca,jA_:()=>qe,jJQ:()=>kt,jpH:()=>Me,jxF:()=>Q,jzm:()=>_,kam:()=>dt,kcV:()=>Z,kil:()=>Xe,kow:()=>Lt,lOA:()=>ge,lVz:()=>A,mX7:()=>U,msC:()=>Ct,n7H:()=>ot,n9Z:()=>q,nzj:()=>ae,oCE:()=>ma,oGo:()=>at,oOv:()=>ee,ooH:()=>x,pAF:()=>Ve,pCl:()=>tt,pGJ:()=>At,pc5:()=>Je,qyM:()=>it,rL6:()=>p,rLi:()=>Kt,rNj:()=>_e,s2d:()=>T,s5M:()=>oe,s8H:()=>ze,sKY:()=>Ft,sWT:()=>j,spT:()=>N,t7M:()=>nt,tiw:()=>L,uRk:()=>Gt,uV_:()=>Y,vI6:()=>X,vZH:()=>G,vlr:()=>w,wbC:()=>W,ww8:()=>St,xQJ:()=>ue,xQf:()=>Rt,xf2:()=>I,xlA:()=>Pt,xqC:()=>d,y9I:()=>It,yRo:()=>ut,yci:()=>ct,ymV:()=>ia,ynO:()=>Xt,yxi:()=>bt,z0g:()=>l,z9S:()=>V,zqp:()=>na,zsW:()=>Ne});const s="JETPACK_SET_INITIAL_STATE",n="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",f="USER_CONNECTION_DATA_FETCH_SUCCESS",v="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",A="USER_TRACKING_SETTINGS_UPDATE_FAIL",j="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",S="JETPACK_MODULES_LIST_FETCH",N="JETPACK_MODULES_LIST_FETCH_FAIL",x="JETPACK_MODULES_LIST_RECEIVE",R="JETPACK_MODULE_ACTIVATE",T="JETPACK_MODULE_ACTIVATE_SUCCESS",M="JETPACK_MODULE_ACTIVATE_FAIL",O="JETPACK_MODULE_DEACTIVATE",P="JETPACK_MODULE_DEACTIVATE_FAIL",L="JETPACK_MODULE_DEACTIVATE_SUCCESS",I="JETPACK_MODULE_UPDATE_OPTIONS",D="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",z="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",U="JETPACK_CONNECTION_STATUS_FETCH",F="JETPACK_CONNECTION_TEST_FETCH",V="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",B="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",H="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",J="DASHBOARD_PROTECT_COUNT_FETCH",q="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",W="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",G="RESET_OPTIONS",K="RESET_OPTIONS_FAIL",$="RESET_OPTIONS_SUCCESS",Y="VAULTPRESS_SITE_DATA_FETCH",X="VAULTPRESS_SITE_DATA_FETCH_FAIL",Z="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",Q="AKISMET_DATA_FETCH",ee="AKISMET_DATA_FETCH_FAIL",te="AKISMET_DATA_FETCH_SUCCESS",ae="AKISMET_KEY_CHECK_FETCH",se="AKISMET_KEY_CHECK_FETCH_FAIL",ne="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",fe="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",ve="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",Ae="JETPACK_SETTINGS_UPDATE_FAIL",je="JETPACK_SETTINGS_UPDATE_SUCCESS",Se="JETPACK_SETTINGS_SET_UNSAVED_FLAG",Ne="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",xe="JETPACK_SITE_DATA_FETCH",Re="JETPACK_SITE_DATA_FETCH_RECEIVE",Te="JETPACK_SITE_DATA_FETCH_FAIL",Me="JETPACK_SITE_BENEFITS_FETCH",Oe="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",Pe="JETPACK_SITE_BENEFITS_FETCH_FAIL",Le="JETPACK_SITE_DISCOUNT_FETCH",Ie="JETPACK_SITE_DISCOUNT_FETCH_RECEIVE",De="JETPACK_SITE_DISCOUNT_FETCH_FAIL",ze="JETPACK_SITE_FEATURES_FETCH",Ue="JETPACK_SITE_FEATURES_FETCH_RECEIVE",Fe="JETPACK_SITE_FEATURES_FETCH_FAIL",Ve="JETPACK_SITE_PLANS_FETCH",Be="JETPACK_SITE_PLANS_FETCH_RECEIVE",He="JETPACK_SITE_PLANS_FETCH_FAIL",Je="JETPACK_SITE_PURCHASES_FETCH",qe="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",We="JETPACK_SITE_PURCHASES_FETCH_FAIL",Ge="JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION",Ke="JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION",$e="JETPACK_RECOMMENDATIONS_DATA_ADD_VIEWED_RECOMMENDATION",Ye="JETPACK_RECOMMENDATIONS_DATA_FETCH",Xe="JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE",Ze="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",st="JETPACK_RECOMMENDATIONS_STEP_UPDATE",nt="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",ft="JETPACK_RECOMMENDATIONS_DATA_ONBOARDING_DATA_UPDATE",vt="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",At="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",jt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",St="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",Nt="DEV_CARD_DISPLAY",xt="DEV_CARD_HIDE",Rt="MOCK_SWITCH_USER_PERMISSIONS",Tt="MOCK_SWITCH_THREATS",Mt="REWIND_STATUS_FETCH",Ot="REWIND_STATUS_FETCH_RECEIVE",Pt="REWIND_STATUS_FETCH_FAIL",Lt="BACKUP_PREFLIGHT_TESTS_FETCH",It="BACKUP_PREFLIGHT_TESTS_FETCH_SUCCESS",Dt="BACKUP_PREFLIGHT_TESTS_FETCH_FAILURE",zt="BACKUP_UNDO_EVENT_FETCH",Ut="BACKUP_UNDO_EVENT_FETCH_FAILURE",Ft="BACKUP_UNDO_EVENT_FETCH_SUCCESS",Vt="MOCK_SWITCH_REWIND_STATE",Bt="SCAN_STATUS_FETCH",Ht="SCAN_STATUS_FETCH_RECEIVE",Jt="SCAN_STATUS_FETCH_FAIL",qt="MOCK_SWITCH_SCAN_STATE",Wt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",Gt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",Kt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",$t="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",Yt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",Xt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",Zt="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",sa="JETPACK_LICENSING_GET_USER_LICENSES_FAILURE",na="JETPACK_CONNECTION_HAS_SEEN_WC_CONNECTION_MODAL",ia="WAF_SETTINGS_FETCH",ra="WAF_SETTINGS_FETCH_RECEIVE",oa="WAF_SETTINGS_FETCH_FAIL",ca="WAF_SETTINGS_UPDATE",la="WAF_SETTINGS_UPDATE_SUCCESS",pa="WAF_SETTINGS_UPDATE_FAIL",da="JETPACK_INTRO_OFFERS_FETCH",ua="JETPACK_INTRO_OFFERS_FETCH_RECEIVE",ma="JETPACK_INTRO_OFFERS_FETCH_FAIL",ha="JETPACK_RECOMMENDATIONS_SITE_DISCOUNT_VIEWED"},7504:(e,t,a)=>{"use strict";a.d(t,{De:()=>i,EI:()=>p,Vg:()=>o,WU:()=>c,cS:()=>r,fI:()=>l,nn:()=>d});var s=a(5932),n=a(44254);const i=e=>t=>{t({type:n.fl0,activeStatsTab:e})},r=e=>t=>(t({type:n.G7U}),s.Ay.fetchStatsData(e).then((e=>{t({type:n._Dw,statsData:e})})).catch((e=>{t({type:n.XwM,error:e})}))),o=()=>e=>(e({type:n.Cy8}),s.Ay.getProtectCount().then((t=>{e({type:n.wbC,protectCount:t})})).catch((t=>{e({type:n.n9Z,error:t})}))),c=()=>e=>(e({type:n.uV_}),s.Ay.getVaultPressData().then((t=>{e({type:n.kcV,vaultPressData:t})})).catch((t=>{e({type:n.vI6,error:t})}))),l=()=>e=>(e({type:n.jxF}),s.Ay.getAkismetData().then((t=>{e({type:n.J2s,akismetData:t})})).catch((t=>{e({type:n.oOv,error:t})}))),p=(e="")=>t=>{t({type:n.nzj});return(""===e?s.Ay.checkAkismetKey().then((e=>{t({type:n.Zwb,akismet:e})})):s.Ay.checkAkismetKeyTyped(e).then((e=>{t({type:n.Zwb,akismet:e})}))).catch((e=>{t({type:n.Qgu,error:e})}))},d=()=>e=>(e({type:n.eb$}),s.Ay.fetchBackupUndoEvent().then((t=>{e({type:n.sKY,payload:t})})).catch((t=>{e({type:n.XSi,error:t})})))},32819:(e,t,a)=>{"use strict";a.d(t,{Cc:()=>s.Cc,De:()=>n.De,EI:()=>n.EI,Ee:()=>s.Ee,Ev:()=>s.Ev,O0:()=>s.O0,OY:()=>s.OY,PU:()=>s.PU,Pf:()=>s.Pf,Pr:()=>s.Pr,QZ:()=>s.QZ,Ri:()=>s.Ri,Vg:()=>n.Vg,WU:()=>n.WU,Zc:()=>s.Zc,_z:()=>s._z,cS:()=>n.cS,eF:()=>s.eF,en:()=>s.en,fI:()=>n.fI,j:()=>s.j,mK:()=>s.mK,nn:()=>n.nn,rC:()=>s.rC,vy:()=>s.vy});var s=a(15299),n=a(7504)},15299:(e,t,a)=>{"use strict";a.d(t,{Cc:()=>v,Ee:()=>m,Ev:()=>c,O0:()=>b,OY:()=>u,PU:()=>d,Pf:()=>k,Pr:()=>g,QZ:()=>h,Ri:()=>p,Zc:()=>y,_z:()=>C,eF:()=>l,en:()=>f,j:()=>w,mK:()=>E,rC:()=>_,vy:()=>o,ze:()=>r});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({requests:(e={},t)=>{switch(t.type){case i.G7U:return(0,s.assign)({},e,{fetchingStatsData:!0});case i.jxF:return(0,s.assign)({},e,{fetchingAkismetData:!0});case i.nzj:return(0,s.assign)({},e,{checkingAkismetKey:!0});case i.uV_:return(0,s.assign)({},e,{fetchingVaultPressData:!0});case i.Cy8:return(0,s.assign)({},e,{fetchingProtectData:!0});case i.U7A:return(0,s.assign)({},e,{fetchingPluginUpdates:!0});case i.XwM:case i._Dw:return(0,s.assign)({},e,{fetchingStatsData:!1});case i.oOv:case i.J2s:return(0,s.assign)({},e,{fetchingAkismetData:!1});case i.Qgu:case i.Zwb:return(0,s.assign)({},e,{checkingAkismetKey:!1});case i.n9Z:case i.wbC:return(0,s.assign)({},e,{fetchingProtectData:!1});case i.N8j:case i.s5M:return(0,s.assign)({},e,{fetchingPluginUpdates:!1});case i.vI6:case i.kcV:return(0,s.assign)({},e,{fetchingVaultPressData:!1,hasLoadedVaultPressData:!0});default:return e}},activeStatsTab:(e="day",t)=>t.type===i.fl0?t.activeStatsTab:e,protectCount:(e="N/A",t)=>t.type===i.wbC?t.protectCount:e,vaultPressData:(e="N/A",t)=>{switch(t.type){case i.kcV:return t.vaultPressData;case i.e9_:return(0,s.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._Dw?(0,s.assign)({},e,t.statsData):e,akismetData:(e="N/A",t)=>t.type===i.J2s?t.akismetData:e,akismet:(e={validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t)=>t.type===i.Zwb?(0,s.assign)({},e,t.akismet):e,pluginUpdates:(e="N/A",t)=>t.type===i.s5M?t.pluginUpdates:e,backupUndoEvent:(e={isFetching:!1,loaded:!1,event:{}},{type:t,payload:a})=>{switch(t){case i.eb$:return{...e,isFetching:!0,loaded:!1};case i.sKY:{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.XSi: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,s.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 f(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function v(e){return e.jetpack.dashboard.vaultPressData}function E(e){return(0,s.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}},60820:(e,t,a)=>{"use strict";a.d(t,{Mb:()=>c,Pb:()=>d,h_:()=>m,k0:()=>u,ks:()=>o,mo:()=>l,u6:()=>p,xc:()=>h});var s=a(5932),n=a(27723),i=a(5546),r=a(44254);const __=n.__,o=()=>e=>s.Ay.fetchSiteConnectionStatus().then((t=>{e({type:r.mX7,siteConnected:t})})),c=()=>e=>(e((0,i.Fc)("is-info",__("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),s.Ay.fetchSiteConnectionTest().then((t=>{e({type:r.acX,connectionTest:t}),e((0,i.fj)("test-jetpack-connection")),e((0,i.Fc)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))})).catch((t=>{e((0,i.fj)("test-jetpack-connection")),e((0,i.Fc)("is-error",(0,n.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.Adt}),s.Ay.fetchConnectUrl().then((t=>{e({type:r.gbL,connectUrl:t})})).catch((t=>{e({type:r.bhx,error:t})}))),p=()=>e=>(e({type:r.LgT}),s.Ay.fetchUserConnectionData().then((t=>{e({type:r.RRv,userConnectionData:t})})).catch((t=>{e({type:r.S68,error:t})}))),d=()=>e=>(e({type:r.SOl}),e((0,i.Fc)("is-info",__("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),s.Ay.unlinkUser().then((t=>{e({type:r.c30,userUnlinked:t}),e(l()),e((0,i.fj)("unlink-user")),e((0,i.Fc)("is-success",__("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))})).catch((t=>{e({type:r.ZC3,error:t}),e((0,i.fj)("unlink-user")),e((0,i.Fc)("is-error",(0,n.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.rL6,featureLabel:e,from:t})},m=()=>e=>{e({type:r.xqC})},h=()=>e=>(e({type:r.zqp}),s.Ay.setHasSeenWCConnectionModal())},34679:(e,t,a)=>{"use strict";a.d(t,{BG:()=>s.BG,Cq:()=>s.Cq,Em:()=>s.Em,HF:()=>s.HF,KK:()=>s.KK,Kx:()=>s.Kx,Mb:()=>n.Mb,PL:()=>s.PL,Pb:()=>n.Pb,Qp:()=>s.Qp,T$:()=>s.T$,Vg:()=>s.Vg,Vs:()=>s.Vs,_U:()=>s._U,eR:()=>s.eR,g:()=>s.g,hN:()=>s.hN,h_:()=>n.h_,i$:()=>s.i$,iV:()=>s.iV,k0:()=>n.k0,ks:()=>n.ks,lY:()=>s.lY,m1:()=>s.m1,mo:()=>n.mo,mz:()=>s.mz,os:()=>s.os,s6:()=>s.s6,u6:()=>n.u6,uQ:()=>s.uQ,vn:()=>s.vn,xc:()=>n.xc,zt:()=>s.zt});var s=a(19519),n=a(60820)},19519:(e,t,a)=>{"use strict";a.d(t,{BG:()=>A,Cq:()=>E,Em:()=>x,Ff:()=>c,HF:()=>l,KK:()=>m,Kx:()=>_,PL:()=>O,Qp:()=>h,T$:()=>S,Vg:()=>v,Vs:()=>M,_U:()=>w,eR:()=>y,g:()=>R,hN:()=>j,i$:()=>p,iV:()=>u,lY:()=>d,m1:()=>b,mz:()=>k,os:()=>T,s6:()=>f,uQ:()=>C,vn:()=>g,zt:()=>N});var s=a(66087),n=a(26556),i=a(44254),r=a(26508);const o={disconnectingSite:!1,connectingUser:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},c=(0,n.HY)({connectUrl:(e="",t)=>{switch(t.type){case i.X2c:return(0,s.get)(t,"initialState.connectUrl",e);case i.gbL:return t.connectUrl;default:return e}},status:(e={siteConnected:window.Initial_State.connectionStatus},t)=>{switch(t.type){case i.mX7:case i.z0g:return(0,s.assign)({},e,{siteConnected:t.siteConnected});case i.c30:return(0,s.assign)({},e,{siteConnected:{...e.siteConnected,isUserConnected:!1}});case i.RRv:return!0===t.userConnectionData?.currentUser?.isConnected?(0,s.assign)({},e,{siteConnected:{...e.siteConnected,hasConnectedOwner:!0}}):e;default:return e}},user:(e=window.Initial_State.userData||{},t)=>{switch(t.type){case i.RRv:return(0,s.assign)({},e,t.userConnectionData);case i.c30:{const t=(0,s.assign)({},e.currentUser,{isConnected:!1});return(0,s.assign)({},e,{currentUser:t})}case i.xQf:return(0,s.merge)({},e,t.initialState);default:return e}},requests:(e=o,t)=>{switch(t.type){case i.NvU:return(0,s.assign)({},e,{disconnectingSite:!0});case i.SOl:return(0,s.assign)({},e,{unlinkingUser:!0});case i.rL6:return(0,s.assign)({},e,{connectingUser:!0,connectingUserFeatureLabel:t.featureLabel,connectingUserFrom:t.from});case i.xqC:return(0,s.assign)({},e,{connectingUser:!1});case i.Adt:return(0,s.assign)({},e,{fetchingConnectUrl:!0});case i.LgT:return(0,s.assign)({},e,{fetchingUserData:!0});case i._ce:return(0,s.assign)({},e,{reconnectingSite:!0});case i.Smm:case i.z0g:return(0,s.assign)({},e,{disconnectingSite:!1});case i.ZC3:case i.c30:return(0,s.assign)({},e,{unlinkingUser:!1});case i.bhx:case i.gbL:return(0,s.assign)({},e,{fetchingConnectUrl:!1});case i.S68:case i.RRv:return(0,s.assign)({},e,{fetchingUserData:!1});case i.jzm:case i.OOn:return(0,s.assign)({},e,{reconnectingSite:!1});default:return e}},hasSeenWCConnectionModal:(e=window.Initial_State.hasSeenWCConnectionModal||!1,t)=>t.type===i.zqp||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,s.get)(e.jetpack.connection.status,["siteConnected","offlineMode","isActive"])&&(0,s.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 f(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function v(e){return!!e.jetpack.connection.requests.unlinkingUser}function E(e){return!!e.jetpack.connection.requests.connectingUser}function _(e){return Object.hasOwn(e.jetpack.connection.requests,"connectingUserFeatureLabel")?e.jetpack.connection.requests.connectingUserFeatureLabel:null}function b(e){return Object.hasOwn(e.jetpack.connection.requests,"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 A(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","hasConnectedOwner"],!1)}function j(e){return"offline"===p(e)}function S(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","isInIdentityCrisis"],!1)}function N(e,t){return(0,s.includes)((0,r.GG)(e).concat(["backups","scan"]),t)}function x(e,t){return j(e)&&N(e,t)}function R(e,t){return!A(e)&&function(e,t){return(0,s.includes)((0,r.Z1)(e),t)}(e,t)}function T(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","sandboxDomain"],"")}function M(e){return!!e.jetpack.connection.requests.reconnectingSite}function O(e){return!!e.jetpack.connection.hasSeenWCConnectionModal}},66904:(e,t,a)=>{"use strict";a.d(t,{$K:()=>c,IM:()=>p,JF:()=>b,TH:()=>y,jF:()=>E,oS:()=>_,ug:()=>l,yB:()=>o});var s=a(5932),n=a(27723),i=a(5546),r=a(44254);const __=n.__,o=e=>t=>(t({type:r.vZH}),t((0,i.Fc)("is-info",__("Resetting Jetpack options…","jetpack"),{id:"reset-options"})),s.Ay.resetOptions(e).then((()=>{t({type:r.$ns}),t((0,i.fj)("reset-options")),t((0,i.Fc)("is-success",__("Options reset.","jetpack"),{id:"reset-options",duration:2e3}))})).catch((e=>{t({type:r.EM8,error:e}),t((0,i.fj)("reset-options")),t((0,i.Fc)("is-error",__("Options failed to reset.","jetpack"),{id:"reset-options"}))}))),c=()=>e=>{e({type:r.WHZ})},l=()=>e=>{e({type:r.cBl})},p=e=>t=>{t({type:r.BXj,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}}},f={currentUser:{isConnected:!0}},v={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=f;break;case"is_unlinked":t=v}a({type:r.xQf,initialState:t})}},_=e=>t=>{t({type:r.e9_,mockCount:e})},b=e=>t=>{t({type:r.gbR,rewindState:{state:e}})},y=e=>t=>{t({type:r.SjL,scanState:{state:e}})}},69531:(e,t,a)=>{"use strict";a.d(t,{$K:()=>n.$K,IM:()=>n.IM,JF:()=>n.JF,M4:()=>s.M4,TH:()=>n.TH,jF:()=>n.jF,oS:()=>n.oS,ug:()=>n.ug,yB:()=>n.yB});var s=a(11067),n=a(66904)},11067:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>i,M4:()=>r});var s=a(26556),n=a(44254);const i=(0,s.HY)({display:(e=!1,t)=>{switch(t.type){case n.WHZ:return!0;case n.cBl:return!1;default:return e}}});function r(e){return!!e.jetpack.devCard.display}},82786:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>r});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({disconnectSurvey:(e={submitting:!1,submitted:!1,error:null},t)=>{switch(t.type){case i.pGJ:return(0,s.assign)({},e,{submitting:!0});case i.LHd:return(0,s.assign)({},e,{submitting:!1,submitted:!0,error:null});case i.ww8:return(0,s.assign)({},e,{submitting:!1,submitted:!1,error:t.error});default:return e}}})},70514:(e,t,a)=>{"use strict";a.d(t,{m:()=>n});var s=a(44254);const n=()=>e=>{e({type:s.X2c,initialState:window.Initial_State})}},2065:(e,t,a)=>{"use strict";a.d(t,{$q:()=>s.$q,AM:()=>s.AM,BG:()=>s.BG,Co:()=>s.Co,Dd:()=>s.Dd,EV:()=>s.EV,FE:()=>s.FE,Fp:()=>s.Fp,G4:()=>s.G4,G_:()=>s.G_,Gn:()=>s.Gn,Hv:()=>s.Hv,Hz:()=>s.Hz,IJ:()=>s.IJ,Ir:()=>s.Ir,JI:()=>s.JI,JQ:()=>s.JQ,Jx:()=>s.Jx,K$:()=>s.K$,Kz:()=>s.Kz,Lf:()=>s.Lf,Lv:()=>s.Lv,Mj:()=>s.Mj,Mn:()=>s.Mn,N:()=>s.N,O3:()=>s.O3,PH:()=>s.PH,Q4:()=>s.Q4,Qz:()=>s.Qz,TO:()=>s.TO,V2:()=>s.V2,VN:()=>s.m$,WC:()=>s.WC,WS:()=>s.WS,XG:()=>s.XG,XP:()=>s.XP,Xr:()=>s.Xr,ZE:()=>s.ZE,ZL:()=>s.ZL,bc:()=>s.bc,ct:()=>s.ct,d9:()=>s.d9,dW:()=>s.dW,eW:()=>s.eW,eu:()=>s.eu,f8:()=>s.f8,gF:()=>s.gF,hN:()=>s.hN,iO:()=>s.iO,io:()=>s.io,jM:()=>s.jM,jh:()=>s.jh,lI:()=>s.lI,ld:()=>s.ld,ly:()=>s.ly,m$:()=>n.m,n6:()=>s.n6,n9:()=>s.n9,nZ:()=>s.nZ,nr:()=>s.nr,oF:()=>s.oF,q1:()=>s.q1,r5:()=>s.r5,r9:()=>s.r9,rW:()=>s.rW,s2:()=>s.s2,t9:()=>s.t9,wz:()=>s.wz,xQ:()=>s.xQ,xs:()=>s.xs,zK:()=>s.zK});var s=a(69089),n=a(70514)},69089:(e,t,a)=>{"use strict";a.d(t,{$q:()=>_,AM:()=>E,BG:()=>U,Co:()=>F,Dd:()=>R,EV:()=>b,FE:()=>ue,Fp:()=>te,G4:()=>_e,G_:()=>we,Gn:()=>G,Hv:()=>me,Hz:()=>N,IJ:()=>ke,Ir:()=>w,JI:()=>j,JQ:()=>ee,Jx:()=>ye,K$:()=>H,Kz:()=>be,Lf:()=>fe,Lv:()=>x,Mj:()=>d,Mn:()=>P,N:()=>B,O3:()=>V,PH:()=>u,Q4:()=>pe,Qz:()=>M,TO:()=>O,V2:()=>I,WC:()=>L,WS:()=>se,XG:()=>f,XP:()=>m,Xr:()=>K,ZE:()=>D,ZL:()=>h,bc:()=>Z,ct:()=>ae,d9:()=>$,dW:()=>ne,eW:()=>ce,eu:()=>v,f8:()=>Q,gF:()=>p,hN:()=>C,iO:()=>ie,io:()=>q,jM:()=>A,jh:()=>Ee,lI:()=>Y,ld:()=>Ae,ly:()=>le,m$:()=>re,n6:()=>y,n9:()=>W,nZ:()=>T,nr:()=>ge,oF:()=>z,q1:()=>g,r5:()=>J,r9:()=>ve,rW:()=>k,s2:()=>Ce,t9:()=>de,ue:()=>l,wz:()=>he,xQ:()=>S,xs:()=>oe,zK:()=>X});var s=a(3924),n=a(66087),i=a(44254),r=a(34679),o=a(52173),c=a(78795);const l=(e=window.Initial_State,t)=>{switch(t.type){case i.X2c:return(0,n.assign)({},e,t.initialState);case i.xQf:return(0,n.merge)({},e,{userData:t.initialState});default:return e}};function p(e){return!!e.jetpack.initialState.isDevVersion}function d(e){return(0,n.get)(e.jetpack.initialState,"currentVersion","")}function u(e){return(0,n.get)(e.jetpack.initialState.stats,"roles",{})}function m(e){return(0,n.get)(e.jetpack.initialState.stats,"data")}function h(e){return(0,n.get)(e.jetpack.initialState,"connectedPlugins",{})}function g(e){return(0,n.get)(e.jetpack.initialState,["userData","currentUser","wpcomUser","email"])}function k(e){return(0,n.get)(e.jetpack.initialState,["userData","currentUser","email"])}function f(e){return(0,n.get)(e.jetpack.initialState,"rawUrl",{})}function v(e){return(0,n.get)(e.jetpack.initialState,"adminUrl",{})}function E(e){return(0,n.get)(e.jetpack.initialState,"siteTitle","")}function _(e){return(0,n.get)(e.jetpack.initialState,["connectionStatus","isPublic"])}function b(e){return!(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function y(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"publish_posts",!1)}function w(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_modules",!1)}function C(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_options",!1)}function A(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function j(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_plugins",!1)}function S(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"disconnect",!1)}function N(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect",!1)}function x(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect_user",!1)}function R(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","login"],"")}function T(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","ID"],"")}function M(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser,["gravatar"])}function O(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser,["username"])}function P(e){const t=(0,n.get)(e.jetpack.initialState.userData.currentUser,["displayName"]);return null===t?O(e):t}function L(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser.permissions,"view_stats",!1)}function I(e){return(0,n.get)(e.jetpack.initialState.siteData,["blog_id"])}function D(e){return(0,n.get)(e.jetpack.initialState.siteData,["icon"])}function z(e){return(0,n.get)(e.jetpack.initialState.siteData,["siteVisibleToSearchEngines"],!0)}function U(e){return(0,n.get)(e.jetpack.initialState.siteData,["latestBoostSpeedScores"])}function F(e){return(0,n.get)(e.jetpack.initialState,"WP_API_nonce")}function V(e){return(0,n.get)(e.jetpack.initialState,"WP_API_root")}function B(e){return(0,n.get)(e.jetpack.initialState,"registrationNonce")}function H(e){return(0,n.get)(e.jetpack.initialState,"pluginBaseUrl")}function J(e){return(0,n.get)(e.jetpack.initialState,"purchaseToken")}function q(e){return(0,n.get)(e.jetpack.initialState,"tracksUserData")}function W(e){return(0,n.get)(e.jetpack.initialState,"currentIp")}function G(e){return(0,n.get)(e.jetpack.initialState,"lastPostUrl")}function K(e){return(0,n.get)(e.jetpack.initialState.siteData,"showPromotions",!0)}function $(e){return(0,n.get)(e.jetpack.initialState.siteData,"isAtomicSite",!1)}function Y(e){return(0,n.get)(e.jetpack.initialState.siteData,"isWoASite",!1)}function X(e){return(0,n.get)(e.jetpack.initialState.siteData,"isAtomicPlatform",!1)}function Z(e){return(0,n.get)(e.jetpack.initialState.themeData,"stylesheet")}function Q(e,t){return(0,n.get)(e.jetpack.initialState.themeData,["support",t],!1)}function ee(e){return(0,n.get)(e.jetpack.initialState.themeData,["isBlockTheme"],!1)}function te(e){return(0,n.get)(e.jetpack.initialState.siteData,"showBackups",!0)}function ae(e){return(0,n.get)(e.jetpack.initialState.siteData,"showRecommendations",!1)}function se(e){return(0,n.get)(e.jetpack.initialState.siteData,"showMyJetpack",!0)}function ne(e){return(0,n.get)(e.jetpack.initialState,"newRecommendations",[])}function ie(e){return ne(e).length}function re(e){return(0,n.get)(e.jetpack.initialState.licensing,"showLicensingUi",!1)}function oe(e){return(0,n.get)(e.jetpack.initialState.siteData,"isMultisite",!1)}function ce(e){return(0,n.get)(e.jetpack.initialState.siteData,"dateFormat",!1)}function le(e){return(0,n.get)(e.jetpack.initialState,"partnerCoupon")}const pe=(e,t,a="",i=!1)=>{const c=function(e){return(0,n.get)(e.jetpack.initialState,"aff","")}(e),l=function(e){return(0,n.get)(e.jetpack.initialState,"partnerSubsidiaryId","")}(e),p=a||function(e){return(0,n.get)(e.jetpack.initialState.userData.currentUser,"id","")}(e),d=J(e),u=function(e){return(0,n.get)(e.jetpack.initialState,"calypsoEnv")}(e),m=I(e);i&&"monthly"===(0,o.e)(e)&&(t+="-monthly");const h={site:m??f(e)};return c&&(h.aff=c),p&&(h.u=p),l&&(h.subsidiaryId=l),h.query="",(0,r._U)(e)||(h.query+="unlinked=1&"),d&&(h.query+=`purchasetoken=${d}`),u&&(h.calypso_env=u),(0,s.A)(t,h)};function de(e){return(0,n.get)(e.jetpack.initialState,"products",{})}function ue(e){const t=(0,n.get)(e.jetpack.initialState,"products",{}),a=(0,c.Y9)(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,n.get)(a,[r.slug,"available"],!1),currencyCode:(0,n.get)(a,[r.slug,"currency_code"],""),showPromotion:r.show_promotion,promotionPercentage:r.discount_percent,includedInPlans:r.included_in_plans,fullPrice:(0,n.get)(a,[r.slug,"cost"],""),saleCoupon:(0,n.get)(a,[r.slug,"sale_coupon"],void 0),upgradeUrl:(0,s.A)("jetpack-product-description-checkout",{path:r.slug})};return i}function me(e){return(0,n.get)(e.jetpack.initialState,"recommendationsStep","")}function he(e){return(0,n.get)(e.jetpack.initialState,["connectionStatus","errors"],[]).filter((e=>Object.hasOwn(e,"action")))}function ge(e){return!!e.jetpack.initialState.isSafari}function ke(e){return!!e.jetpack.initialState.doNotUseConnectionIframe}function fe(e){return!!e.jetpack.initialState.isWooCommerceActive}function ve(e,t){return`https://cloud.jetpack.com/${t}/${f(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.siteData.isSharingBlockAvailable}function we(e){return e.jetpack.initialState.jetpackManage}function Ce(e){return e.jetpack.initialState.newsletterDateExample}function Ae(e){return!!e.jetpack.initialState.subscriptionSiteEditSupported}},28290:(e,t,a)=>{"use strict";a.d(t,{I:()=>i});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.LX4}),s.Ay.fetchIntroOffers().then((({data:t})=>{e({type:n.hTb,data:t})})).catch((t=>{e({type:n.oCE,error:t})})))},79521:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>n.Ff,Iz:()=>s.I,oz:()=>n.oz,wQ:()=>n.wQ});var s=a(28290),n=a(2737)},2737:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>i,oz:()=>o,wQ:()=>r});var s=a(26556),n=a(44254);const i=(0,s.HY)({data:(e=[],t)=>t.type===n.hTb?t.data:e,requests:(e={},t)=>{switch(t.type){case n.LX4:return{...e,isFetching:!0};case n.hTb:case n.oCE:return{...e,isFetching:!1};default:return e}}});function r(e){return!!e.jetpack.introOffers.requests.isFetching}function o(e){return e.jetpack.introOffers.data}},17588:(e,t,a)=>{"use strict";a.d(t,{L:()=>n});a(5932);var s=a(44254);const n=e=>t=>{t({type:s.BIk,notice:e})}},71607:(e,t,a)=>{"use strict";a.d(t,{C8:()=>s.C8,Fc:()=>s.Fc,Ll:()=>n.L,i$:()=>s.i$,nV:()=>s.nV,rp:()=>s.rp,sT:()=>s.sT});var s=a(76287),n=a(17588)},76287:(e,t,a)=>{"use strict";a.d(t,{C8:()=>o,Fc:()=>l,Ff:()=>r,i$:()=>u,nV:()=>d,rp:()=>p,sT:()=>c});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({notice:(e=!1,t)=>t.type===i.z0g?"disconnected":e,dismissed:(e=window.Initial_State.dismissedNotices,t)=>{switch(t.type){case i.BIk:return(0,s.assign)({},e,{[t.notice]:!0});case i._i2:return(0,s.assign)({},e,t.dismissedNotices);case i.$ns:return!1;default:return e}}});function o(e){return e.jetpack.jetpackNotices.notice}function c(e){return(0,s.get)(e.jetpack.initialState,["jetpackStateNotices","errorCode"])}function l(e){return(0,s.get)(e.jetpack.initialState,["jetpackStateNotices","messageCode"])}function p(e){return(0,s.get)(e.jetpack.initialState,["jetpackStateNotices","messageContent"])}function d(e){return(0,s.get)(e.jetpack.initialState,["jetpackStateNotices","errorDescription"])}function u(e,t){return(0,s.get)(e.jetpack.jetpackNotices.dismissed,[t],!1)}},31094:(e,t,a)=>{"use strict";a.d(t,{A5:()=>i,od:()=>o,r2:()=>r});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.$X,error:""}),s.Ay.updateLicensingError({error:""})),r=()=>e=>s.Ay.getUserLicensesCounts().then((t=>{e({type:n.LWm,counts:t})})).catch((t=>{e({type:n.$X,error:t})})),o=()=>(e,t)=>{const a=t().jetpack.licensing.userCounts?.detached;return s.Ay.updateLicensingActivationNoticeDismiss(a).then((t=>{e({type:n.Dvt,dismissData:t})})).catch((t=>{e({type:n.$X,error:t})}))}},7237:(e,t,a)=>{"use strict";a.d(t,{A5:()=>n.A5,UB:()=>s.UB,fZ:()=>s.fZ,od:()=>n.od,r2:()=>n.r2});var s=a(60077),n=a(31094)},60077:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>r,UB:()=>c,fZ:()=>o});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({error:(e=window.Initial_State.licensing.error,t)=>t.type===i.$X?t.error:e,userCounts:(e=window.Initial_State.licensing.userCounts??{},t)=>t.type===i.LWm?(0,s.assign)({},e,t.counts):e,activationNoticeDismiss:(e=window.Initial_State.licensing.activationNoticeDismiss??{last_detached_count:null,last_dismissed_time:null},t)=>t.type===i.Dvt?(0,s.assign)({},e,t.dismissData):e,licenses:(e=window.Initial_State.licensing.licenses??{items:[],loading:!1},t)=>{switch(t.type){case i.Zo7:return{...e,loading:!0};case i.ezW:return{...e,...t.data,loading:!1};case i.JH9:return{...e,loading:!1};default:return e}}});function o(e){return(0,s.get)(e.jetpack.licensing,["error"],"")}function c(e){return(0,s.get)(e.jetpack.licensing.userCounts,["detached"],0)}},31415:(e,t,a)=>{"use strict";a.d(t,{A3:()=>m,CO:()=>d,MB:()=>u,mh:()=>h});var s=a(5932),n=a(27723),i=a(5546),r=a(20428),o=a.n(r),c=a(66087),l=a(44254),p=a(23096);const __=n.__,d=()=>e=>(e({type:l.LK9}),s.Ay.fetchModules().then((t=>(e({type:l.ooH,modules:t}),t))).catch((t=>{e({type:l.spT,error:t})}))),u=(e,t=!1)=>(a,r)=>(a({type:l.EqR,module:e}),a((0,i.fj)("module-toggle")),a((0,i.Fc)("is-info",(0,n.sprintf)(/* translators: placeholder is a feature name, such as "Image CDN". */ __("Activating %s…","jetpack"),(0,p.f_)(r(),e).name),{id:"module-toggle"})),s.Ay.activateModule(e).then((()=>{a({type:l.s2d,module:e,success:!0}),a((0,i.fj)("module-toggle")),a((0,i.Fc)("is-success",(0,n.sprintf)(/* translators: placeholder is a feature name, such as "Image CDN". */ __("%s has been activated.","jetpack"),(0,p.f_)(r(),e).name),{id:"module-toggle",duration:2e3})),t&&window.location.reload()})).catch((t=>{a({type:l.Fdt,module:e,success:!1,error:t}),a((0,i.fj)("module-toggle")),a((0,i.Fc)("is-error",(0,n.sprintf)(/* translators: %1$s: feature name, such as "Image CDN". - %2$s: error message. */ __("%1$s failed to activate. %2$s","jetpack"),(0,p.f_)(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)(["jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&window.location.reload()}},26508:(e,t,a)=>{"use strict";a.d(t,{A3:()=>n.A3,CO:()=>n.CO,GG:()=>s.GG,IW:()=>s.IW,Kb:()=>s.Kb,MB:()=>n.MB,VV:()=>n.mh,W7:()=>s.W7,Yp:()=>s.Yp,Z1:()=>s.Z1,ZH:()=>s.ZH,_J:()=>s._J,d1:()=>s.d1,eI:()=>s.eI,f_:()=>s.f_,gp:()=>s.gp,j9:()=>s.j9,ro:()=>s.ro});var s=a(23096),n=a(31415)},23096:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>c,GG:()=>g,IW:()=>m,Kb:()=>p,W7:()=>d,Yp:()=>_,Z1:()=>k,ZH:()=>v,_J:()=>f,d1:()=>y,eI:()=>u,f_:()=>h,gp:()=>b,j9:()=>E,ro:()=>l});var s=a(66087),n=a(26556),i=a(44254),r=a(77423);const o={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},c=(0,n.HY)({items:(e={},t)=>{switch(t.type){case i.X2c:return(0,s.assign)({},t.initialState.getModules);case i.ooH:return(0,s.assign)({},e,t.modules);case i.s2d:return(0,s.assign)({},e,{[t.module]:(0,s.assign)({},e[t.module],{activated:!0})});case i.tiw:return(0,s.assign)({},e,{[t.module]:(0,s.assign)({},e[t.module],{activated:!1})});case i.PKf:{const a=(0,s.assign)({},e[t.module]);return Object.keys(t.newOptionValues).forEach((e=>{a.options[e].current_value=t.newOptionValues[e]})),(0,s.assign)({},e,{[t.module]:a})}default:return e}},requests:(e=o,t)=>{switch(t.type){case i.LK9:return(0,s.assign)({},e,{fetchingModulesList:!0});case i.spT:case i.ooH:return(0,s.assign)({},e,{fetchingModulesList:!1});case i.EqR:return(0,s.assign)({},e,{activating:(0,s.assign)({},e.activating,{[t.module]:!0})});case i.Fdt:case i.s2d:return(0,s.assign)({},e,{activating:(0,s.assign)({},e.activating,{[t.module]:!1})});case i.dM3:return(0,s.assign)({},e,{deactivating:(0,s.assign)({},e.deactivating,{[t.module]:!0})});case i.Mcz:case i.tiw:return(0,s.assign)({},e,{deactivating:(0,s.assign)({},e.deactivating,{[t.module]:!1})});case i.xf2:{const a=(0,s.assign)({},e.updatingOption);return a[t.module]=(0,s.assign)({},a[t.module]),Object.keys(t.newOptionValues).forEach((e=>{a[t.module][e]=!0})),(0,s.assign)({},e,{updatingOption:(0,s.assign)({},e.updatingOption,a)})}case i.G2:case i.PKf:{const a=(0,s.assign)({},e.updatingOption);return a[t.module]=(0,s.assign)({},a[t.module]),Object.keys(t.newOptionValues).forEach((e=>{a[t.module][e]=!1})),(0,s.assign)({},e,{updatingOption:(0,s.assign)({},e.updatingOption,a)})}default:return e}}});function l(e,t){return!!e.jetpack.modules.requests.activating[t]}function p(e,t,a){return(0,s.get)(e.jetpack.modules.items,[t,"options",a,"current_value"])}function d(e,t,a){return(0,s.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,s.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 f(e,t=[]){const a=Object.keys(u(e));return 0<(0,s.intersection)(a,t).length}function v(e){return f(e,["carousel","photon","photon-cdn","search","videopress"])}function E(e){return f(e,["protect","sso","vaultpress"])||(0,r.gT)(e,"akismet/akismet.php")}function _(e,t){return!!(0,s.get)(e.jetpack.modules.items,[t,"activated"],!1)}function b(e,t){return(0,s.includes)(Object.keys(e.jetpack.modules.items),t)}function y(e,t){return(0,s.get)(e.jetpack.modules.items,[t,"override"],!1)}},52173:(e,t,a)=>{"use strict";a.d(t,{F:()=>i,e:()=>r});var s=a(26556),n=a(44254);const i=(0,s.HY)({duration:(e="yearly",t)=>t.type===n.msC?t.duration:e});function r(e){return e.jetpack.plans.duration}},21220:(e,t,a)=>{"use strict";a(5932)},95367:(e,t,a)=>{"use strict";a.d(t,{bP:()=>s.bP});var s=a(96111);a(21220)},96111:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>r,bP:()=>o});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({items:(e={},t)=>t.type===i.dhe?t.products:e,requests:(e={},t)=>{switch(t.type){case i.xQJ:return(0,s.assign)({},e,{isFetchingProducts:!0});case i.dhe:case i.gSC:return(0,s.assign)({},e,{isFetchingProducts:!1});default:return e}}});function o(e){return!!e.jetpack.products.requests.isFetchingProducts}},66596:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>r,mq:()=>o});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({connectUrls:(e={},t)=>t.type===i.X2c?(0,s.assign)({},t.initialState.externalServicesConnectUrls):e});function o(e,t){return(0,s.get)(e.jetpack.publicize.connectUrls,t,null)}},70478:(e,t,a)=>{"use strict";a.d(t,{Lw:()=>f,Lx:()=>i,UN:()=>c,X7:()=>g,YE:()=>v,ZA:()=>h,kV:()=>k,nA:()=>p,or:()=>r,sG:()=>l,si:()=>u,tI:()=>m,tx:()=>d,x1:()=>E});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n._Wi}),s.Ay.fetchRecommendationsData().then((t=>{e({type:n.kil,data:t})})).catch((t=>{e({type:n.XdB,error:t})}))),r=e=>t=>{t({type:n.Xfo,data:e})},o=(e,t)=>{const a=t().jetpack.recommendations;return e({type:n.hcx}),s.Ay.saveRecommendationsData(a.data).then((()=>{e({type:n.pCl})})).catch((t=>{e({type:n.oGo,error:t})}))},c=()=>(e,t)=>o(e,t),l=e=>(t,a)=>(t({type:n.h8Y,slug:e}),o(t,a)),p=e=>(t,a)=>(t({type:n.gWA,slug:e}),o(t,a)),d=e=>(t,a)=>(t({type:n.YC9,slug:e}),o(t,a)),u=e=>(t,a)=>{t({type:n.FtY,step:e});const i=a().jetpack.recommendations;return s.Ay.updateRecommendationsStep(i.step).then((()=>{t({type:n.t7M})})).catch((e=>{t({type:n.qyM,error:e})}))},m=e=>(t,a)=>(t({type:n.eZ7,onboardingData:e}),o(t,a)),h=e=>({type:n.fCe,step:e}),g=()=>e=>(e({type:n.T0C}),s.Ay.fetchRecommendationsProductSuggestions().then((t=>{e({type:n.n7H,productSuggestions:t})})).catch((t=>e({type:n.yci,error:t})))),k=()=>e=>(e({type:n.heB}),s.Ay.fetchRecommendationsUpsell().then((t=>{e({type:n.B5I,upsell:t})})).catch((t=>e({type:n.kam,error:t,upsell:{hide_upsell:!0}})))),f=()=>e=>(e({type:n.yRo}),s.Ay.fetchRecommendationsConditional().then((t=>{e({type:n.I1N,data:t})})).catch((t=>e({type:n.NjB,error:t})))),v=e=>t=>{t({type:n.e2D,feature:e})},E=e=>t=>{t({type:n.jJQ,feature:e})}},54365:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>n.Ff,Kl:()=>n.Kl,L4:()=>n.L4,LY:()=>n.LY,Lw:()=>s.Lw,Lx:()=>s.Lx,M_:()=>n.M_,N5:()=>n.N5,P0:()=>n.P0,PS:()=>n.PS,PV:()=>n.PV,Rk:()=>n.Rk,UN:()=>s.UN,VT:()=>n.VT,X4:()=>n.X4,X7:()=>s.X7,YE:()=>s.YE,ZA:()=>s.ZA,Ze:()=>n.Ze,ax:()=>n.ax,b4:()=>n.b4,cl:()=>n.cl,gH:()=>n.gH,gY:()=>n.gY,kJ:()=>n.kJ,kV:()=>s.kV,kv:()=>n.kv,mh:()=>n.mh,mv:()=>n.mv,nA:()=>s.nA,or:()=>s.or,pB:()=>n.pB,sG:()=>s.sG,si:()=>s.si,tH:()=>n.tH,tI:()=>s.tI,tx:()=>s.tx,v3:()=>n.v3,vW:()=>n.vW,x1:()=>s.x1,x4:()=>n.x4,xW:()=>n.xW});var s=a(70478),n=a(79477)},93674:(e,t,a)=>{"use strict";a.d(t,{U:()=>n,b:()=>r});var s=a(31838);function n(e){const t=Object.values(s.eo).findIndex((t=>t.includes(e)));return-1===t?null:Object.keys(s.eo)[t]}function i(e){const t=s.tB.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)}},79477:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>f,Kl:()=>Y,L4:()=>O,LY:()=>k,M_:()=>D,N5:()=>$,P0:()=>C,PS:()=>R,PV:()=>j,Rk:()=>y,VT:()=>v,X4:()=>N,Ze:()=>A,ax:()=>q,b4:()=>Z,cl:()=>L,gH:()=>te,gY:()=>E,kJ:()=>W,kv:()=>w,mh:()=>b,mv:()=>K,pB:()=>_,tH:()=>Q,v3:()=>G,vW:()=>M,x4:()=>I,xW:()=>ee});var s=a(6838),n=a(66087),i=a(31838),r=a(26556),o=a(44254),c=a(34679),l=a(2065),p=a(89336),d=a(30138),u=a(82656),m=a(77423),h=a(93674);const g=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return(0,n.union)(e,t)},k=e=>(0,n.get)(e.jetpack,["recommendations","productSuggestions"],[]),f=(0,r.HY)({data:(e={},t)=>{switch(t.type){case o.kil:case o.Xfo:for(const[e,a]of Object.entries(t.data)){const s=t.data;if("site-type-business"===e){const e=s["site-type-agency"];s["site-type-agency"]=void 0!==e?e:a,delete s["site-type-business"]}if("site-type-other"===e){const e=s["site-type-personal"];s["site-type-personal"]=void 0!==e?e:a,delete s["site-type-other"]}}return(0,n.assign)({},e,t.data);case o.h8Y:{const a=(0,n.mergeWith)({},e,{selectedRecommendations:[t.slug],skippedRecommendations:[],viewedRecommendations:[]},g);return a.skippedRecommendations=(0,n.difference)(e.skippedRecommendations,[t.slug]),a}case o.gWA:{const a=(0,n.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[t.slug],viewedRecommendations:[]},g);return a.selectedRecommendations=(0,n.difference)(e.selectedRecommendations,[t.slug]),a}case o.YC9:return(0,n.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[],viewedRecommendations:[t.slug]},g);case o.eZ7:{const{active:a,viewed:s,hasStarted:n,totalSteps:i}=t.onboardingData;return Object.assign({},e,{...void 0!==a?{onboardingActive:a}:{},...void 0!==s?{onboardingViewed:s}:{},...void 0!==n?{onboardingHasStarted:n}:{},...void 0!==i?{onboardingTotalSteps:i}:{}})}default:return e}},requests:(e={},t)=>{switch(t.type){case o._Wi:return(0,n.assign)({},e,{isFetchingRecommendationsData:!0});case o.kil:return(0,n.assign)({},e,{isRecommendationsDataLoaded:!0,isFetchingRecommendationsData:!1});case o.XdB:return(0,n.assign)({},e,{isFetchingRecommendationsData:!1});case o.T0C:return(0,n.assign)({},e,{isFetchingRecommendationsProductSuggestions:!0});case o.n7H:case o.yci:return(0,n.assign)({},e,{isFetchingRecommendationsProductSuggestions:!1});case o.heB:return(0,n.assign)({},e,{isFetchingRecommendationsUpsell:!0});case o.B5I:case o.kam:return(0,n.assign)({},e,{isFetchingRecommendationsUpsell:!1});case o.yRo:return(0,n.assign)({},e,{isFetchingRecommendationsConditional:!0});case o.I1N:return(0,n.assign)({},e,{isRecommendationsConditionalLoaded:!0,isFetchingRecommendationsConditional:!1});case o.NjB:return(0,n.assign)({},e,{isFetchingRecommendationsConditional:!1});case o.FtY:return(0,n.assign)({},e,{isUpdatingRecommendationsStep:!0});case o.t7M:case o.qyM:return(0,n.assign)({},e,{isUpdatingRecommendationsStep:!1});default:return e}},step:(e="",t)=>t.type===o.FtY?t.step:e,upsell:(e={},t)=>{switch(t.type){case o.B5I:case o.kam:return t.upsell;default:return e}},productSuggestions:(e={},t)=>{switch(t.type){case o.n7H:case o.yci:return t.productSuggestions;default:return e}},conditional:(e=[],t)=>{switch(t.type){case o.I1N:case o.NjB:return t.data;default:return e}},siteDiscount:(e={},t)=>t.type===o.fCe?{...e,viewed:t.step}:e,installing:(e={},t)=>{switch(t.type){case o.e2D:return Object.values(i.JT).includes(t.feature)?{...e,[t.feature]:!0}:e;case o.jJQ:return Object.values(i.JT).includes(t.feature)?{...e,[t.feature]:!1}:e;default:return e}}}),v=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,A=e=>e.jetpack.recommendations.siteDiscount.viewed||"",j=(e,t)=>(0,n.get)(e.jetpack,["recommendations","data",t],!1),S={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.XD]:{welcome__complete:"backup-activated","backup-activated":"scan-activated","scan-activated":"antispam-activated","antispam-activated":"videopress-activated","videopress-activated":"social-v1-activated","social-v1-activated":"search-activated","search-activated":"server-credentials","server-credentials":"summary"},[i.ID]:{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.JS]:{welcome__starter:"backup-activated","backup-activated":"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.i4]:{welcome__backup:"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.wo]:{welcome__antispam:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.OQ]:{welcome__videopress:"monitor",monitor:"site-accelerator","site-accelerator":"related-posts","related-posts":"summary"},[i.CT]:{welcome__search:"related-posts","related-posts":"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.lr]:{welcome__scan:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.Ez]:{welcome__social_basic:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.D_]:{welcome__social_v1:"welcome__social_image_generator",welcome__social_image_generator:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.DR]:{welcome__golden_token:"backup-activated","backup-activated":"scan-activated","scan-activated":"server-credentials","server-credentials":"summary"}}},N={"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_v1:"#/recommendations/welcome-social-v1",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-v1-activated":"#/recommendations/social-v1-activated","antispam-activated":"#/recommendations/antispam-activated","videopress-activated":"#/recommendations/videopress-activated","search-activated":"#/recommendations/search-activated","server-credentials":"#/recommendations/server-credentials"},x=e=>(0,n.get)(e.jetpack,["recommendations","data"]),R=(e,t)=>{const a=x(e);return a.viewedRecommendations&&a.viewedRecommendations.includes(t)},T=(e,t)=>{const a=x(e);return a.skippedRecommendations&&a.skippedRecommendations.includes(t)},M=(e,t)=>(0,n.get)(e.jetpack,["recommendations","installing"])[t]??!1,O=(e,t)=>{switch(t){case"boost":return!!(0,m.gT)(e,"jetpack-boost/jetpack-boost.php");case"creative-mail":return!!(0,m.gT)(e,"creative-mail-by-constant-contact/creative-mail-plugin.php");case"monitor":return!!(0,d.PL)(e,"monitor");case"newsletter":return!!(0,d.PL)(e,"subscriptions");case"related-posts":return!!(0,d.PL)(e,"related-posts");case"site-accelerator":return!!(0,d.PL)(e,"photon")&&(0,d.PL)(e,"photon-cdn");case"woocommerce":return!!(0,m.gT)(e,"woocommerce/woocommerce.php");case"protect":return!!(0,m.gT)(e,"jetpack-protect/jetpack-protect.php");case"publicize":return!!(0,d.PL)(e,"publicize");case"videopress-activated":case"videopress":return!!(0,m.gT)(e,"videopress/jetpack-videopress.php");case"antispam-activated":return!!(0,m.gT)(e,"akismet/akismet.php");default:throw`Unknown featureSlug in isFeatureActive() in recommendations/reducer.js: ${t}`}},P=e=>"jetpack_free"===(0,u.X6)(e).product_slug&&!(0,u.F1)(e),L=e=>{if(!P(e))return!1;const t=k(e);return(0,n.isArray)(t)&&!(0,n.isEmpty)(t)},I=e=>{const t=q(e);if(t&&t.active){const{totalSteps:a}=t,s=G(e);return a.length-(a.indexOf(s)+1)}return(0,l.iO)(e)},D=(e,t)=>{switch(t){case"publicize":case"protect":if(!(0,u.Y3)(e)&&!(0,u.LT)(e))return s.b2e;break;case"backup-plan":if(!(0,u.HN)(e)&&!(0,s.O4w)((0,u.X6)(e)))return s.Jht;break;case"newsletter":if(!(0,u.SM)(e))return s.V$p;break;case"anti-spam":if(!(0,m.gT)(e,"akismet/akismet.php")&&!(0,u.DI)(e)&&!(0,s.Jd5)((0,u.X6)(e)))return s.GGh;break;case"videopress":if(!(0,u.IT)(e,"videopress-1tb-storage")&&!(0,u.IT)(e,"videopress-unlimited-storage"))return s.Wn7}return!1},z=(e,t=!1)=>{const a=(0,u.X6)(e).product_slug;return"is-free-plan"===(0,s.IPX)(a)&&(0,l.Lf)(e)===t},U=(e,t)=>{const a=(e=>(0,n.get)(e.jetpack,["recommendations","conditional"]))(e);return Array.isArray(a)&&a.indexOf(t)>-1},F=(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-v1-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_v1":case"welcome__social_image_generator":case"welcome__backup":case"welcome__golden_token":return!0;case"product-suggestions":return L(e);case"vaultpress-backup":return z(e);case"vaultpress-for-woocommerce":return z(e,!0);case"agency":return!!j(e,"site-type-agency");case"woocommerce":return!!j(e,"site-type-store")&&!O(e,t);case"monitor":return(0,c.BG)(e)&&!O(e,t);case"publicize":case"videopress":case"boost":return U(e,t)&&!O(e,t);case"protect":return U(e,t)&&!(0,m.gT)(e,"jetpack-protect/jetpack-protect.php");case"anti-spam":case"backup-plan":return U(e,t);case"server-credentials":return"awaiting_credentials"===(0,p.Qi)(e).state;case"antispam-activated":case"videopress-activated":return O(e,t);default:return!O(e,t)}},V=(e,t)=>{const a=(0,n.get)(q(e),"active"),s=(0,n.get)(S,a?`onboarding.${a}`:"default");if(!s)return"summary";let i=s[t]||"summary";for(;!F(e,i);)i=s[i];return i},B=e=>Object.keys((0,n.get)(S,`onboarding.${e}`,{})),H=e=>{const t=(0,l.Hv)(e),a=q(e);if(a&&a.active)return a.hasStarted?t:(s=a.active,B(s)[0]);var s;if("summary"===t&&!R(e,"site-type-question"))return"site-type-question";const n=(0,l.dW)(e);return n.length>0?n[0]:t},J=e=>(e=>(0,u.yY)(e).filter((({active:e,subscribed_date:t})=>"1"===e&&i.ec<Date.parse(t))))(e).map((({product_slug:e})=>(0,h.U)(e))).filter((e=>null!==e)),q=e=>{if((0,u.Kb)(e)||!E(e))return null;const t=J(e),a={active:j(e,"onboardingActive")||null,viewed:(j(e,"onboardingViewed")||[]).filter((e=>t.includes(e))),totalSteps:j(e,"onboardingTotalSteps")||[],hasStarted:j(e,"onboardingHasStarted")||!1},s=t.filter((e=>!a.viewed.includes(e)));if(s.length>0){const t=s.sort(h.b);return{active:t[0],totalSteps:B(t[0]).filter((t=>F(e,t))),viewed:(0,n.union)(a.viewed,t),hasStarted:!1}}return a},W=e=>{const t=q(e);return null!==t&&null!==t.active},G=e=>{const t=(0,n.get)(e.jetpack,["recommendations","step"],""),a=""!==t?t:H(e);return["setup-wizard-completed","banner-completed"].includes(a)?V(e,a):a},K=e=>{const t=q(e);if(!t||!t.active)return null;const{totalSteps:a}=t,s=G(e);return{currentStepIndex:a.indexOf(s),totalSteps:a.length}},$=e=>{const t=G(e),a=V(e,t);return N[a]},Y=e=>(0,n.get)(e.jetpack,["recommendations","upsell"],{}),X=(e,t)=>{switch(t){case"woocommerce":return!0===j(e,"site-type-store");case"agency":return!0===j(e,"site-type-agency");case"monitor":return(0,c.BG)(e);case"boost":case"protect":case"videopress":return U(e,t)||O(e,t);case"publicize":return!(0,u.f9)(e)&&!(0,u.vn)(e);case"anti-spam":case"backup-plan":return U(e,t);default:return!0}},Z=e=>{const t=["woocommerce","monitor","related-posts","creative-mail","newsletter","site-accelerator","protect","publicize","videopress","boost"].filter((t=>X(e,t))),a=[],s=[];for(const n of t)O(e,n)||M(e,n)?a.push(n):T(e,n)&&s.push(n);return{selected:a,skipped:s}},Q=e=>["agency","anti-spam","backup-plan"].filter((t=>X(e,t))),ee=e=>{const t=q(e);return t?t.viewed.filter((t=>((e,t)=>{const a=q(e),s=a?a.viewed:[];if(!s.includes(t))return!1;switch(t){case i.XD:return!0;case i.OQ:case i.CT:case i.ID:case i.Ez:case i.D_:return!s.includes(i.XD);case i.i4:case i.wo:case i.lr:return!s.includes(i.XD)&&!s.includes(i.ID);default:return!0}})(e,t))).sort(h.b).map((e=>i.Np[e])):[]},te=e=>{const t=(0,u.X6)(e),a=(0,p.Qi)(e).state;return t.product_slug&&a?P(e)?"upsell":"awaiting_credentials"!==a||(0,u.IT)(e,"scan")?["active","provisioning"].includes(a)?"manage-security":"download-app":"one-click-restores":"loading"}},91134:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var s=a(73161),n=a(26556),i=a(15299),r=a(19519),o=a(11067),c=a(82786),l=a(69089),p=a(79521),d=a(76287),u=a(60077),m=a(23096),h=a(52173),g=a(96111),k=a(66596),f=a(54365),v=a(28988),E=a(81626),_=a(87239),b=a(57526),y=a(71143),w=a(19892),C=a(56939),A=a(23258),j=a(51142),S=a(74215);const N=(0,n.HY)({connection:r.Ff,dashboard:i.ze,devCard:o.Ff,initialState:l.ue,jetpackNotices:d.Ff,modules:m.Ff,plans:h.F,pluginsData:y.Ff,products:g.Ff,publicize:k.Ff,recommendations:f.Ff,rewind:v.Ff,scan:E.Ff,search:_.Ff,settings:b.Ff,siteData:w.Ff,siteProducts:C.Ff,siteVerify:A.Ff,disconnectSurvey:c.Ff,trackingSettings:j.Ff,licensing:u.Ff,waf:S.Ff,introOffers:p.Ff}),x=(0,n.HY)({globalNotices:s.x,jetpack:N})},64572:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(26556),n=a(94461),i=a(91134);const r=(0,s.Zz)((0,s.Tw)(n.A),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(s.y$)(i.A)},99155:(e,t,a)=>{"use strict";a.d(t,{m:()=>i});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.Kt$}),s.Ay.fetchRewindStatus().then((t=>(e({type:n.aUl,status:t}),t))).catch((t=>{e({type:n.xlA,error:t})})))},89336:(e,t,a)=>{"use strict";a.d(t,{Qi:()=>s.Qi,mF:()=>n.m,wp:()=>s.wp});var s=a(28988),n=a(99155)},32897:(e,t,a)=>{"use strict";a.d(t,{i:()=>s});const s={SUCCESS:"success",IN_PROGRESS:"in-progress",PENDING:"pending",FAILED:"failed"}},37640:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(44254),n=a(32897),i=a(21205);const r={error:null,featureEnabled:!1,hasLoaded:!1,isFetching:!1,overallStatus:n.i.PENDING,tests:[]},o=(e=r,t)=>{switch(t.type){case s.kow:return{...e,isFetching:!0,hasLoaded:!1};case s.H_I:return{...e,isFetching:!1,hasLoaded:!0,error:t.error};case s.y9I:return{...e,isFetching:!1,hasLoaded:!0,featureEnabled:t.featureEnabled,...t.tests&&Array.isArray(t.tests)?{overallStatus:(0,i.Y)(t.tests)}:{}};default:return e}}},21205:(e,t,a)=>{"use strict";a.d(t,{Y:()=>n});var s=a(32897);const n=e=>0===e.length?s.i.PENDING:e.some((e=>e.status===s.i.FAILED))?s.i.FAILED:e.some((e=>e.status===s.i.IN_PROGRESS))?s.i.IN_PROGRESS:e.every((e=>e.status===s.i.SUCCESS))?s.i.SUCCESS:s.i.PENDING},28988:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>c,Qi:()=>p,wp:()=>l});var s=a(66087),n=a(26556),i=a(44254),r=a(37640);const o={isFetchingRewindStatus:!1},c=(0,n.HY)({data:(e={},t)=>{switch(t.type){case i.aUl:return(0,s.assign)({},e,{status:t.status});case i.gbR:return(0,s.assign)({},e,{status:t.rewindState});default:return e}},requests:(e=o,t)=>{switch(t.type){case i.Kt$:return(0,s.assign)({},e,{isFetchingRewindStatus:!0});case i.aUl:case i.xlA:return(0,s.assign)({},e,{isFetchingRewindStatus:!1});default:return e}},preflight:r.A});function l(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function p(e){return(0,s.get)(e.jetpack.rewind,["data","status"],{})}},55685:(e,t,a)=>{"use strict";a.d(t,{s:()=>i});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.Q9k}),s.Ay.fetchScanStatus().then((t=>(e({type:n.Kt,status:t}),t))).catch((t=>{e({type:n.j1M,error:t})})))},76358:(e,t,a)=>{"use strict";a.d(t,{G1:()=>s.G1,W4:()=>s.W4,sZ:()=>n.s});var s=a(81626),n=a(55685)},81626:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>o,G1:()=>c,W4:()=>l});var s=a(66087),n=a(26556),i=a(44254);const r={isFetchingScanStatus:!1},o=(0,n.HY)({data:(e={},t)=>{switch(t.type){case i.Kt:return(0,s.assign)({},e,{status:t.status});case i.SjL:return{status:{...e.status,...t.scanState}};default:return e}},requests:(e=r,t)=>{switch(t.type){case i.Q9k:return(0,s.assign)({},e,{isFetchingScanStatus:!0});case i.Kt:case i.j1M:return(0,s.assign)({},e,{isFetchingScanStatus:!1});default:return e}}});function c(e){return!!e.jetpack.scan.requests.isFetchingScanStatus}function l(e){return(0,s.get)(e.jetpack.scan,["data","status"],{})}},39628:(e,t,a)=>{"use strict";a.d(t,{F:()=>n});var s=a(44254);const n=e=>t=>{t({type:s.Lvk,term:e})}},12623:(e,t,a)=>{"use strict";a.d(t,{F5:()=>n.F,jQ:()=>s.jQ,nh:()=>s.nh});var s=a(87239),n=a(39628)},87239:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>r,jQ:()=>c,nh:()=>o});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({searchTerm:(e="",t)=>t.type===i.Lvk?t.term:e});function o(e){return e.jetpack.search.searchTerm}function c(e,t){const a=(0,s.find)((0,s.get)(e.jetpack,["modules","items"],{}),["module",t]);if(void 0===a)return!1;const n=(0,s.get)(e.jetpack,["search","searchTerm"],!1);return!n||[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(n.toLowerCase())>-1}},99577:(e,t,a)=>{"use strict";a.d(t,{Uc:()=>d,Xx:()=>u,ic:()=>l,jo:()=>p});var s=a(5932),n=a(27723),i=a(5546),r=a(66087),o=a(44254),c=a(26508);const __=n.__,l=()=>({type:o.iSZ}),p=()=>({type:o.zsW}),d=()=>e=>(e({type:o.Wkx}),s.Ay.fetchSettings().then((t=>(e({type:o._nc,settings:t}),t))).catch((t=>{e({type:o.rNj,error:t})}))),u=(e,t={})=>a=>{const l={progress:__("Updating settings…","jetpack"),success:__("Updated settings.","jetpack"),error:e=>(0,n.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)(["jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&(l.success=__("Updated settings. Refreshing page…","jetpack")),a((0,i.fj)("module-setting-update")),a((0,i.fj)("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.Fc)("is-info",l.progress,{id:"module-setting-update"})),a({type:o.TVv,updatedOptions:e}),s.Ay.updateSettings(e).then((t=>{a({type:o.NY7,updatedOptions:m(t,e),success:t}),(0,c.A3)(e),(0,c.VV)(e),a((0,i.fj)("module-setting-update")),a((0,i.fj)("module-setting-update-success")),"object"!=typeof e||(0,r.some)(p,(t=>t in e))||a((0,i.Fc)("is-success",l.success,{id:"module-setting-update-success",duration:2e3}))})).catch((t=>{a({type:o.Quo,success:!1,error:t,updatedOptions:e}),a((0,i.fj)("module-setting-update")),a((0,i.Fc)("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}},30138:(e,t,a)=>{"use strict";a.d(t,{Fj:()=>s.Fj,Ny:()=>s.Ny,Og:()=>s.Og,PL:()=>s.PL,Uc:()=>n.Uc,Xx:()=>n.Xx,eu:()=>s.eu,ic:()=>n.ic,jo:()=>n.jo,mt:()=>s.mt,sy:()=>s.sy,uH:()=>s.uH});var s=a(57526),n=a(99577)},57526:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>o,Fj:()=>g,Ny:()=>p,Og:()=>h,PL:()=>l,eu:()=>m,mt:()=>c,sy:()=>u,uH:()=>d});var s=a(66087),n=a(26556),i=a(44254);const r={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},o=(0,n.HY)({items:(e={},t)=>{switch(t.type){case i.X2c:return(0,s.assign)({},e,t.initialState.settings);case i._nc:return(0,s.assign)({},t.settings);case i.Cvy:{const a=Object.keys(t.updatedOption)[0];return(0,s.assign)({},e,{[a]:t.updatedOption[a]})}case i.NY7:return(0,s.assign)({},e,t.updatedOptions);default:return e}},requests:(e=r,t)=>{switch(t.type){case i.Wkx:return(0,s.assign)({},e,{fetchingSettingsList:!0});case i.rNj:case i._nc:return(0,s.assign)({},e,{fetchingSettingsList:!1});case i.YCY:case i.TVv:return(0,s.merge)({},e,{settingsSent:(0,s.mapValues)(t.updatedOptions,(()=>!0))});case i.Vfi:case i.Cvy:case i.Quo:case i.NY7:return(0,s.merge)({},e,{settingsSent:(0,s.mapValues)(t.updatedOptions,(()=>!1)),updatedSettings:(0,s.mapValues)(t.updatedOptions,(()=>Boolean(t.success)))});default:return e}},unsavedSettingsFlag:(e=!1,t)=>{switch(t.type){case i.iSZ:return!0;case i.zsW:return!1;default:return e}}});function c(e){return e.jetpack.settings.items}function l(e,t,a="",n=!0){if(!n||""===a||(0,s.get)(e.jetpack.settings.items,a,!1))return(0,s.get)(e.jetpack.settings.items,t,void 0)}function p(e,t=""){return"object"==typeof t?(0,s.some)((0,s.filter)(e.jetpack.settings.requests.settingsSent,((e,a)=>(0,s.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,s.get)(e.jetpack.settings.items,[t],!1)}function m(e){return(0,s.get)(e.jetpack.settings,"unsavedSettingsFlag",!1)}function h(e){return(0,s.get)(e.jetpack.settings.items,"dismiss_empty_stats_card",!1)}function g(e){return(0,s.get)(e.jetpack.settings.items,"dismiss_dash_backup_getting_started",!1)}},31528:(e,t,a)=>{"use strict";a.d(t,{I:()=>i});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.lOA}),s.Ay.fetchSiteProducts().then((t=>{e({type:n.BVe,siteProducts:t.data})})).catch((t=>{e({type:n.EeE,error:t})})))},78795:(e,t,a)=>{"use strict";a.d(t,{Gh:()=>s.Gh,IR:()=>n.I,LE:()=>s.LE,Nq:()=>s.Nq,Y9:()=>s.Y9,ab:()=>s.ab});var s=a(56939),n=a(31528)},56939:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>i,Gh:()=>p,LE:()=>c,Nq:()=>l,Y9:()=>o,ab:()=>r});var s=a(26556),n=a(44254);const i=(0,s.HY)({items:(e={},t)=>t.type===n.BVe?t.siteProducts:e,requests:(e={},t)=>{switch(t.type){case n.lOA:return{...e,isFetching:!0};case n.BVe:case n.EeE: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),s=a?.introductory_offer?.cost_per_interval||a?.cost;return Math.ceil(s/12*100)/100}function p(e,t){const a=c(e,t),s=a?.introductory_offer?.cost_per_interval;return"year"===a?.introductory_offer?.interval_unit&&1===a?.introductory_offer?.interval_count&&s?Math.ceil(s/a?.cost*100):0}},97317:(e,t,a)=>{"use strict";a.d(t,{I:()=>c,T:()=>o});var s=a(5932),n=a(27723),i=a(5546),r=a(44254);const __=n.__,o=(e=null)=>t=>(t({type:r.bpU}),s.Ay.fetchVerifySiteGoogleStatus(e).then((e=>{if(e.errors&&e.errors.length>0){const a=Object.keys(e.errors)[0],s=e.errors[a];return t({type:r.uRk,error:{code:a,message:s}}),e}return t({type:r.rLi,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.uRk,error:e.response})}))),c=e=>t=>(t({type:r.ZCe}),s.Ay.verifySiteGoogle(e).then((e=>{if(e.errors&&e.errors.length>0){const a=Object.keys(e.errors)[0],s=e.errors[a];return t({type:r.ynO,error:{code:a,message:s}}),e}return t({verified:e.verified,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url,type:r.h86}),e.verified&&t((0,i.Fc)("is-success",__("Site is verified","jetpack"),{id:"verify-site-google-verified",duration:2e3})),e})).catch((e=>{t({type:r.ynO,error:e.response})})))},70342:(e,t,a)=>{"use strict";a.d(t,{ID:()=>n.I,Iz:()=>s.Iz,L9:()=>s.L9,TI:()=>n.T,aB:()=>s.aB,ib:()=>s.ib,v1:()=>s.v1,wr:()=>s.wr,yF:()=>s.yF});var s=a(23258),n=a(97317)},23258:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>r,Iz:()=>c,L9:()=>p,aB:()=>u,ib:()=>d,v1:()=>m,wr:()=>o,yF:()=>l});var s=a(66087),n=a(26556),i=a(44254);const r=(0,n.HY)({google:(e={fetching:!1,verifying:!1,verified:!1},t)=>{switch(t.type){case i.bpU:return(0,s.assign)({},e,{fetching:!0});case i.uRk:return(0,s.assign)({},e,{fetching:!1,error:t.error});case i.rLi:return(0,s.assign)({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});case i.ZCe:return(0,s.assign)({},e,{verifying:!0});case i.h86:return(0,s.assign)({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case i.ynO:return(0,s.assign)({},e,{verifying:!1,verified:!1,error:t.error});default:return e}}});function o(e){return(0,s.get)(e,"jetpack.siteVerify.google.fetching",!1)}function c(e){return(0,s.get)(e,"jetpack.siteVerify.google.verifying",!1)}function l(e){return!o(e)&&"no_token_for_user"!==(0,s.get)(e,"jetpack.siteVerify.google.error.code",null)}function p(e){return(0,s.get)(e,"jetpack.siteVerify.google.verified",!1)}function d(e){return(0,s.get)(e,"jetpack.siteVerify.google.error",null)}function u(e){return(0,s.get)(e,"jetpack.siteVerify.google.searchConsoleUrl",null)}function m(e){return(0,s.get)(e,"jetpack.siteVerify.google.isOwner",!1)}},24667:(e,t,a)=>{"use strict";a.d(t,{Eb:()=>r,Rt:()=>c,aW:()=>i,iV:()=>l,w3:()=>p,zG:()=>o});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.X99}),s.Ay.fetchSiteData().then((t=>(e({type:n.BXj,siteData:t}),t))).catch((t=>{e({type:n.UsK,error:t})}))),r=()=>e=>(e({type:n.jpH}),s.Ay.fetchSiteBenefits().then((t=>{e({type:n.LKY,siteBenefits:t})})).catch((t=>{e({type:n.Gvw,error:t})}))),o=()=>e=>(e({type:n.Wxz}),s.Ay.fetchSiteDiscount().then((t=>{e({type:n.C_M,siteDiscount:t})})).catch((t=>{e({type:n.PMD,error:t})}))),c=()=>e=>(e({type:n.s8H}),s.Ay.fetchSiteFeatures().then((t=>(e({type:n.I9e,siteFeatures:t}),t))).catch((t=>{e({type:n.PoH,error:t})}))),l=()=>e=>(e({type:n.pAF}),s.Ay.getPlans().then((t=>(e({type:n.ZZG,plans:t}),t))).catch((t=>{e({type:n.in6,error:t})}))),p=()=>e=>(e({type:n.pc5}),s.Ay.fetchSitePurchases().then((t=>(e({type:n.jA_,purchases:t}),t))).catch((t=>{e({type:n.gOo,error:t})})))},82656:(e,t,a)=>{"use strict";a.d(t,{$U:()=>s.$U,DI:()=>s.DI,Eb:()=>n.Eb,Ec:()=>s.Ec,F1:()=>s.F1,F3:()=>s.F3,HN:()=>s.HN,IT:()=>s.IT,Kb:()=>s.Kb,LT:()=>s.LT,NI:()=>s.NI,OX:()=>s.OX,Rt:()=>n.Rt,SM:()=>s.SM,SN:()=>s.SN,TG:()=>s.TG,Up:()=>s.Up,X6:()=>s.X6,Y3:()=>s.Y3,Z$:()=>s.Z$,aW:()=>n.aW,dS:()=>s.dS,dr:()=>s.dr,eA:()=>s.eA,f9:()=>s.f9,iV:()=>n.iV,mH:()=>s.mH,vn:()=>s.vn,w3:()=>n.w3,yY:()=>s.yY,zG:()=>n.zG});var s=a(19892),n=a(24667)},74668:(e,t,a)=>{"use strict";a.d(t,{b:()=>i});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.SW5}),s.Ay.fetchPluginsData().then((t=>(e({type:n.yxi,pluginsData:t}),t))).catch((t=>{e({type:n.RWZ,error:t})})))},77423:(e,t,a)=>{"use strict";a.d(t,{O8:()=>s.O8,bR:()=>n.b,gT:()=>s.gT,pK:()=>s.pK,rC:()=>s.rC});var s=a(71143),n=a(74668)},71143:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>o,O8:()=>d,gT:()=>p,pK:()=>l,rC:()=>c});var s=a(66087),n=a(26556),i=a(44254);const r={isFetchingPluginsData:!1},o=(0,n.HY)({items:(e={},t)=>t.type===i.yxi?(0,s.assign)({},t.pluginsData):e,requests:(e=r,t)=>{switch(t.type){case i.SW5:return(0,s.assign)({},e,{isFetchingPluginsData:!0});case i.RWZ:case i.yxi:return(0,s.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]}},19892:(e,t,a)=>{"use strict";a.d(t,{$U:()=>k,DI:()=>R,Ec:()=>C,F1:()=>j,F3:()=>p,Ff:()=>l,HN:()=>M,IT:()=>b,Kb:()=>d,LT:()=>P,NI:()=>E,OX:()=>u,SM:()=>x,SN:()=>h,TG:()=>v,Up:()=>f,X6:()=>g,Y3:()=>S,Z$:()=>T,dS:()=>m,dr:()=>y,eA:()=>A,f9:()=>O,mH:()=>_,vn:()=>N,yY:()=>w});var s=a(27723),n=a(6838),i=a(66087),r=a(26556),o=a(44254);const __=s.__,c={isFetchingSiteData:!1},l=(0,r.HY)({data:(e={},t)=>{switch(t.type){case o.BXj:return(0,i.assign)({},e,t.siteData);case o.LKY:return(0,i.merge)({},e,{site:{benefits:t.siteBenefits}});case o.C_M:return t.siteDiscount?.code?(0,i.merge)({},e,{site:{discount:t.siteDiscount}}):e;case o.R1B:return(0,i.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case o.I9e:return(0,i.merge)({},e,{site:{features:t.siteFeatures}});case o.ZZG:return(0,i.merge)({},e,{sitePlans:t.plans});case o.jA_:return(0,i.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:(e=c,t)=>{switch(t.type){case o.X99:return(0,i.assign)({},e,{isFetchingSiteData:!0});case o.jpH:return(0,i.assign)({},e,{isFetchingSiteBenefits:!0});case o.Wxz:return(0,i.assign)({},e,{isFetchingSiteDiscount:!0});case o.z9S:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!0});case o.s8H:return(0,i.assign)({},e,{isFetchingSiteFeatures:!0});case o.pAF:return(0,i.assign)({},e,{isFetchingSitePlans:!0});case o.pc5:return(0,i.assign)({},e,{isFetchingSitePurchases:!0});case o.UsK:case o.BXj:return(0,i.assign)({},e,{isFetchingSiteData:!1});case o.Gvw:case o.LKY:return(0,i.assign)({},e,{isFetchingSiteBenefits:!1});case o.PMD:case o.C_M:return(0,i.assign)({},e,{isFetchingSiteDiscount:!1});case o.Cj9:case o.R1B:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case o.PoH:case o.I9e:return(0,i.assign)({},e,{isFetchingSiteFeatures:!1});case o.in6:case o.ZZG:return(0,i.assign)({},e,{isFetchingSitePlans:!1});case o.gOo:case o.jA_:return(0,i.assign)({},e,{isFetchingSitePurchases:!1});default:return e}},errors:(e={},t)=>{let a,s;if(t.type===o.UsK){switch(t.error.name){case"ApiError":a="reconnect",s=__("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":a="support",s=__("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:a=null,s=__("There seems to be a problem with your website.","jetpack")}return(0,i.assign)({},e,{message:Object.hasOwn(t.error,"response")?t.error.response.message:s,action:a,code:Object.hasOwn(t.error,"response")?t.error.response.code:"fetch_site_data_fail_other",data:Object.hasOwn(t.error,"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 f(e){return(0,i.get)(e.jetpack.siteData,["data","site","benefits"],null)}function v(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 A(e){return C(e).filter((e=>(0,n._qL)(e.product_slug)))}function j(e){return A(e).length>0}function S(e){return!!function(e){return(0,i.find)(C(e),(e=>(0,n.dfd)(e.product_slug)))}(e)||"is-complete-plan"===(0,n.IPX)(g(e).product_slug)}function N(e){return"is-complete-plan"===(0,n.IPX)(g(e).product_slug)}function x(e){return!!function(e){return(0,i.find)(A(e),(e=>(0,n.v4P)(e.product_slug)))}(e)||"is-complete-plan"===(0,n.IPX)(g(e).product_slug)}function R(e){return!!function(e){return(0,i.find)(A(e),(e=>(0,n.gF_)(e.product_slug)))}(e)}function T(e){return!!function(e){return(0,i.find)(A(e),(e=>(0,n.AhN)(e.product_slug)))}(e)}function M(e){return!!function(e){return(0,i.find)(A(e),(e=>(0,n.p1k)(e.product_slug)))}(e)}function O(e){return!!function(e){return(0,i.find)(A(e),(e=>(0,n.mNr)(e.product_slug)))}(e)}function P(e){return!!function(e){return(0,i.find)(A(e),(e=>(0,n.ZfG)(e.product_slug)))}(e)}},83177:(e,t,a)=>{"use strict";a.d(t,{X:()=>o,Y:()=>c});var s=a(5932),n=a(27723),i=a(5546),r=a(44254);const __=n.__,o=()=>e=>(e({type:r.fnu}),s.Ay.fetchUserTrackingSettings().then((t=>(e({type:r.vlr,settings:t}),t))).catch((t=>{e({type:r.OH_,error:t})}))),c=e=>t=>{const a={progress:__("Updating privacy settings…","jetpack"),success:__("Updated privacy settings.","jetpack"),error:e=>(0,n.sprintf)(/* translators: placeholder is an error message. */ __("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)};return t((0,i.fj)("tracking-settings-update")),t((0,i.fj)("tracking-settings-update-success")),t((0,i.Fc)("is-info",a.progress,{id:"tracking-settings-update"})),t({type:r.Glt,updatedSettings:e}),s.Ay.updateUserTrackingSettings(e).then((s=>{t({type:r.sWT,updatedSettings:e,success:s}),t((0,i.fj)("tracking-settings-update")),t((0,i.fj)("tracking-settings-update-success")),t((0,i.Fc)("is-success",a.success,{id:"tracking-settings-update-success",duration:2e3}))})).catch((s=>{t({type:r.lVz,updatedSettings:e,success:!1,error:s}),t((0,i.fj)("tracking-settings-update")),t((0,i.fj)("tracking-settings-update-success")),t((0,i.Fc)("is-error",a.error(s),{id:"tracking-settings-update"}))}))}},51142:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>o,h:()=>l,h5:()=>c,vu:()=>p});var s=a(66087),n=a(26556),i=a(44254);const r={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},o=(0,n.HY)({items:(e={},t)=>{switch(t.type){case i.vlr:return(0,s.assign)({},e,t.settings);case i.sWT:return(0,s.assign)({},e,t.updatedSettings);default:return e}},requests:(e=r,t)=>{switch(t.type){case i.fnu:return(0,s.assign)({},e,{fetchingTrackingSettings:!0});case i.OH_:case i.vlr:return(0,s.assign)({},e,{fetchingTrackingSettings:!1});case i.Glt:return(0,s.assign)({},e,{updatingTrackingSettings:!0});case i.lVz:case i.sWT:return(0,s.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}},72868:(e,t,a)=>{"use strict";a.d(t,{J:()=>r,M:()=>i});var s=a(5932),n=a(44254);const i=()=>e=>(e({type:n.ymV}),s.Ay.fetchWafSettings().then((t=>(e({type:n.ObO,settings:t}),t))).catch((t=>{e({type:n.H1n,error:t})}))),r=e=>t=>(t({type:n.j7x}),s.Ay.updateWafSettings({jetpack_waf_automatic_rules:e.automaticRulesEnabled,jetpack_waf_ip_allow_list_enabled:e.ipAllowListEnabled,jetpack_waf_ip_block_list_enabled:e.ipBlockListEnabled,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:n.Hvo,settings:e}),e))).catch((e=>{throw t({type:n.WzY,error:e}),e})))},74215:(e,t,a)=>{"use strict";a.d(t,{Ff:()=>s.Ff,Mg:()=>n.M,_e:()=>s._e});var s=a(80911),n=a(72868)},80911:(e,t,a)=>{"use strict";a.d(t,{EK:()=>l,Ff:()=>o,IE:()=>p,_e:()=>c,mY:()=>d});var s=a(66087),n=a(26556),i=a(44254);const r={isFetchingWafSettings:!1,isUpdatingWafSettings:!1},o=(0,n.HY)({data:(e={},t)=>{switch(t.type){case i.ObO:case i.Hvo:return(0,s.assign)({},e,{bootstrapPath:t.settings?.bootstrap_path,automaticRulesAvailable:Boolean(t.settings?.automatic_rules_available),automaticRulesEnabled:Boolean(t.settings?.jetpack_waf_automatic_rules),ipAllowListEnabled:Boolean(t.settings?.jetpack_waf_ip_allow_list_enabled),ipBlockListEnabled:Boolean(t.settings?.jetpack_waf_ip_block_list_enabled),ipAllowList:t.settings?.jetpack_waf_ip_allow_list||"",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)});default:return e}},requests:(e=r,t)=>{switch(t.type){case i.ymV:return(0,s.assign)({},e,{isFetchingWafSettings:!0});case i.ObO:case i.H1n:return(0,s.assign)({},e,{isFetchingWafSettings:!1});case i.j7x:return(0,s.assign)({},e,{isUpdatingWafSettings:!0});case i.Hvo:case i.WzY:return(0,s.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,s.get)(e.jetpack.waf,["data"],{})}function d(e){return(0,s.get)(e.jetpack.waf,["data","automaticRulesAvailable"],!1)}},79930:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(27723),c=a(26592),l=a(63344),p=a(60619),d=a(8332),u=a(19579),m=a(53835),h=a(51609),g=a.n(h),k=a(84952),f=a(2065),v=a(26508),E=a(6838);const __=o.__,_=()=>{m.A.tracks.recordJetpackClick("blaze-dashboard")};const b=(0,l.t)((0,k.Ng)(((e,t)=>({blazeActive:t.getOptionValue("blaze"),blazeDashboardEnabled:(0,f.Kz)(e),blazeModule:(0,v.f_)(e,"blaze"),blazeAvailable:(0,f.G4)(e),isWoASite:(0,f.lI)(e)})))((function(e){const{blazeActive:t,blazeAvailable:a,blazeModule:{description:s},blazeDashboardEnabled:o,hasConnectedOwner:l,isOfflineMode:m,isSavingAnyOption:h,isUnavailableInOfflineMode:k,isWoASite:f,siteAdminUrl:v,toggleModuleNow:b}=e,{can_init:y,reason:w}=a;if(f&&!o)return null;const C=k("blaze");return g().createElement(d.A,n()({},e,{header:__("Blaze","jetpack"),module:"blaze",hideButton:!0,feature:E.FpR}),g().createElement(u.A,{module:{module:"blaze"},disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{text:s,link:(0,i.A)("jetpack-support-blaze")}},y||"user_not_connected"!==w?y?g().createElement(p.j,{slug:"blaze",activated:t,disabled:C||!l,toggling:h("blaze"),toggleModule:b},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Attract high-quality traffic to your site using Blaze.","jetpack"))):g().createElement(r.A,{disabled:!0,label:__("Blaze is not available on your site.","jetpack")}):g().createElement(r.A,{disabled:!0,label:__("Attract high-quality traffic to your site using Blaze.","jetpack")})),y&&t&&!m&&g().createElement(c.A,n()({compact:!0,className:"jp-settings-card__configure-link",href:o?v+"tools.php?page=advertising":(0,i.A)("jetpack-blaze"),onClick:_},o?{}:{target:"_blank",rel:"noopener noreferrer"}),__("Manage your campaigns and view your earnings in the Blaze dashboard","jetpack")))})))},11342:(e,t,a)=>{"use strict";a.d(t,{a:()=>k});var s=a(96072),n=a.n(s),i=a(3924),r=a(86087),o=a(27723),c=a(26592),l=a(63344),p=a(8332),d=a(19579),u=a(53835),m=a(6838),h=a(51609),g=a.n(h);const __=o.__,_x=o._x,k=(0,l.t)(class extends h.Component{trackConfigureClick(){u.A.tracks.recordJetpackClick("configure-ga")}render(){return g().createElement(p.A,n()({},this.props,{header:_x("Google Analytics","Settings header","jetpack"),feature:m.ZrU,hideButton:!0}),g().createElement(d.A,{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.A)("jetpack-support-google-analytics")}},(0,r.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:g().createElement("a",{href:this.props.siteUsesWpAdminInterface?this.props.siteAdminUrl+"admin.php?page=jetpack#/stats":(0,i.A)("calypso-stats-day",{site:this.props.siteRawUrl})})})),!this.props.isUnavailableInOfflineMode("google-analytics")&&g().createElement(c.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.A)(this.props.siteUsesWpAdminInterface?"calypso-marketing-connections":"calypso-marketing-traffic",{site:this.props.site,anchor:"analytics"}),target:"_blank"},__("Configure your Google Analytics settings","jetpack")))}})},68062:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(63109),c=a(51609),l=a.n(c),p=a(84952),d=a(34679),u=a(2065),m=a(26508),h=a(12623),g=a(30138),k=a(82656),f=a(79930),v=a(11342),E=a(91237),_=a(58749),b=a(34465),y=a(82559),w=a(89708),C=a(13396);const __=r.__;class A 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};if(!this.props.searchTerm&&!this.props.active)return null;const t=this.props.isModuleFound("seo-tools"),a=this.props.isModuleFound("stats"),s=this.props.isModuleFound("shortlinks"),r=this.props.isModuleFound("related-posts"),c=this.props.isModuleFound("verification-tools"),p=this.props.isModuleFound("sitemaps"),d=this.props.isWoASite,u=this.props.isModuleFound("blaze");return t||a||s||r||c||p||d||u?l().createElement("div",null,l().createElement(o.A,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(E.F,e),t&&l().createElement(_.Ay,n()({},e,{configureUrl:(0,i.A)("calypso-marketing-traffic",{site:this.props.blogID??this.props.siteRawUrl,anchor:"seo"})})),a&&l().createElement(y.H,e),d&&l().createElement(v.a,n()({},e,{site:this.props.blogID??this.props.siteRawUrl})),u&&l().createElement(f.A,e),s&&l().createElement(b.A,e),p&&l().createElement(w.A,e),c&&l().createElement(C.m,e)):null}}const j=(0,p.Ng)((e=>({module:t=>(0,m.f_)(e,t),settings:(0,g.mt)(e),isBlockThemeActive:(0,u.JQ)(e),isOfflineMode:(0,d.hN)(e),isUnavailableInOfflineMode:t=>(0,d.Em)(e,t),isModuleFound:t=>(0,h.jQ)(e,t),isSiteConnected:(0,d.lY)(e),isWoASite:(0,u.lI)(e),lastPostUrl:(0,u.Gn)(e),getModuleOverride:t=>(0,m.d1)(e,t),hasConnectedOwner:(0,d.BG)(e),blogID:(0,u.V2)(e),siteUsesWpAdminInterface:(0,k.dr)(e)})))(A)},91237:(e,t,a)=>{"use strict";a.d(t,{F:()=>E});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(86087),c=a(27723),l=a(26592),p=a(11895),d=a(63344),u=a(60619),m=a(8332),h=a(19579),g=a(53835),k=a(51609),f=a.n(k);const __=c.__,_x=c._x;class v extends f().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.A.tracks.recordJetpackClick("configure-related-posts")};renderConfigureLink(){const{isBlockThemeActive:e,lastPostUrl:t,siteAdminUrl:a}=this.props;return e?f().createElement(l.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.A)("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")):f().createElement(l.A,{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 f().createElement(m.A,n()({},this.props,{hideButton:!0,module:"related-posts"}),f().createElement(h.A,{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.A)("jetpack-support-related-posts")}},f().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:f().createElement("a",{href:(0,i.A)("jetpack-support-related-posts"),target:"_blank",rel:"noopener noreferrer"})})),f().createElement(u.j,{slug:"related-posts",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},__("Show related content after posts","jetpack"))),f().createElement(p.dV,null,f().createElement(r.A,{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:f().createElement("span",{className:"jp-form-toggle-explanation"},__("Highlight related content with a heading","jetpack"))}),f().createElement(r.A,{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:f().createElement("span",{className:"jp-form-toggle-explanation"},__("Show a thumbnail image where available","jetpack"))}),e&&f().createElement("div",null,f().createElement(p.lR,{className:"jp-form-label-wide"},_x("Preview","A header for a preview area in the configuration screen.","jetpack")),f().createElement(l.A,{className:"jp-related-posts-preview"},this.state.show_headline&&f().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)=>f().createElement("div",{key:`preview_${t}`,className:"jp-related-posts-preview__item"},this.state.show_thumbnails&&f().createElement("img",{src:`https://jetpackme.files.wordpress.com/2019/03/${e.url}`,alt:e.text}),f().createElement("h4",{className:"jp-related-posts-preview__post-title"},f().createElement("a",{href:"#/traffic"},e.text)),f().createElement("p",{className:"jp-related-posts-preview__post-context"},e.context)))))))),!this.props.isUnavailableInOfflineMode("related-posts")&&e&&this.renderConfigureLink())}}const E=(0,d.t)(v)},58749:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>S});var s=a(96072),n=a.n(s),i=a(3924),r=a(8797),o=a(73066),c=a(82431),l=a(27723),p=a(13022),d=a(70386),u=a(97058),m=a(11895),h=a(63344),g=a(60619),k=a(11346),f=a(8332),v=a(19579),E=a(51609),_=a.n(E),b=a(84952),y=a(84705),w=a(77423),C=a(57707);const __=l.__,_x=l._x,_n=l._n,A=[{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"}],j=(0,h.t)(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.m,{siteTitle:e.title,title:e.title,url:e.url,description:e.frontPageMetaDescription});SocialPreviewFacebook=e=>_().createElement(o.l,{title:e.title,url:e.url,type:"website",imageMode:"landscape",description:e.frontPageMetaDescription,image:e.image});SocialPreviewTwitter=e=>_().createElement(c.E,{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.A,{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"),s=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:s||(this.props.siteData.description||""),image:this.props.siteData.icon?.img?`${this.props.siteData.icon.img}?s=${this.constants.siteIconPreviewSize}`:""},o=A.reduce(((e,t)=>((0,w.gT)(this.props.state,t.slug)&&e.push(t),e)),[]),c=o.length>0,d=(0,p.A)({"jp-seo-front-page-description-count":!0,"jp-seo-front-page-description-count-max":s.length>=this.constants.frontPageMetaMaxLength,"jp-seo-front-page-description-count-warn":s.length>this.constants.frontPageMetaSuggestedLength&&s.length<this.constants.frontPageMetaMaxLength});return _().createElement(f.A,n()({},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(v.A,{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.A)("jetpack-support-seo-tools")}},c&&_().createElement(k.A,{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.j,{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.rC)(this.props.state)&&!c&&_().createElement(_().Fragment,null,_().createElement(u.A,{header:__("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card"},_().createElement(v.A,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.Ay,{customSeoTitles:a,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:r}),_().createElement("div",{className:"jp-seo-custom-titles-save-button"},this.saveButton(this.props)))),_().createElement(u.A,{header:__("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card"},_().createElement(v.A,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.lR,{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.hg,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:s,onChange:this.props.onOptionChange}),_().createElement("div",{className:d},(0,l.sprintf)(/* translators: placeholder is number of characters */ _n("%d character","%d characters",s.length,"jetpack"),s.length),s.length>=this.constants.frontPageMetaMaxLength&&" - "+__("Maximum characters reached.","jetpack"))),_().createElement("div",{className:"jp-seo-front-page-description-save-button"},this.saveButton(this.props)))),_().createElement(u.A,{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.Ay,{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.Ay,{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.Ay,{icon:"x",size:24}),_().createElement("span",{className:"jp-seo-social-previews-label"},__("X","jetpack"))),this.SocialPreviewTwitter(r))))}}),S=(0,b.Ng)((e=>({siteData:e.jetpack.siteData.data,state:e})))(j)},57707:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>u});var s=a(27723),n=a(70386),i=a(11895),r=a(78888),o=a(51609),c=a.n(o);const __=s.__,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:s})=>{const i=(0,o.useCallback)((()=>{const n=t.current;n.focus();const i=`[${s}]`,r=n.textFieldRef.current.selectionStart,o=n.props.value.substring(0,r),c=n.props.value.substring(r,n.props.value.length);a(e,o+i+c)}),[e,t,a,s]);return c().createElement(n.A,{rna:!0,className:"jp-seo-custom-titles-input-button",compact:!0,onClick:i},l.insertableTokens[s])},d=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:a,value:n,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.lR,{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((s=>"archives"===e.name&&"date"===s?null:c().createElement(p,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:a,token:s,key:s}))))(e,t,a))),c().createElement(r.A,{id:`jp-seo-custom-titles-input-${e.name}`,className:"jp-seo-custom-titles-input",value:n,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,s.sprintf)(/* translators: %s is the preview text for a custom SEO input */ __("Preview: %s","jetpack"),t)))(e,n,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 s;return t[a.name]=(s=e.customSeoTitles[a.name],Array.isArray(s)?s.reduce(((e,t)=>e+("token"===t.type?`[${t.value}]`:t.value)),""):""),t}),{}),s=e.updateCustomSeoTitleInputState,n=(0,o.useCallback)(((e,t)=>{a[e.name]=t;const n=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=>e)).map((e=>{let a=null;for(const t of Object.keys(l.insertableTokens))e===`[${t}]`&&(a=t);return a&&l.tokensAvailablePerPageType[t].includes(a)?{type:"token",value:a}:{type:"string",value:e}})))(a[t],t),e)),{});s(n)}),[a,s]);return c().createElement("div",{className:"jp-seo-custom-titles"},l.pageTypes.map((s=>c().createElement(d,{pageType:s,value:a[s.name],handleCustomSeoTitleInput:n,customSeoTitleInputRef:t[s.name],siteData:e.siteData,key:s.name}))))}},34465:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(63344),c=a(60619),l=a(8332),p=a(19579),d=a(51609),u=a.n(d),m=a(84952),h=a(26508);const __=r.__,_x=r._x;class g extends d.Component{render(){const{isSiteConnected:e}=this.props;return u().createElement(l.A,n()({},this.props,{header:_x("WP.me Shortlinks","Settings header","jetpack"),module:"shortlinks",hideButton:!0}),u().createElement(p.A,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:(0,i.A)("jetpack-support-shortlinks")},disableInOfflineMode:!0},u().createElement(c.j,{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.t)((0,m.Ng)(((e,t)=>({shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:(0,h.f_)(e,"shortlinks")})))(g))},82559:(e,t,a)=>{"use strict";a.d(t,{H:()=>N});var s=a(96072),n=a.n(s),i=a(69546),r=a(3924),o=a(68316),c=a(86087),l=a(27723),p=a(13022),d=a(70386),u=a(26592),m=a(97058),h=a(11895),g=a(45078),k=a(63344),f=a(11346),v=a(44089),E=a(8332),_=a(19579),b=a(53835),y=a(66087),w=a(51609),C=a.n(w),A=a(84952),j=a(2065);const __=l.__,_x=l._x;class S 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"),s=!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),s=!0),this.setState({[`${t}_${e}`]:!this.state[`${t}_${e}`]},(()=>{this.props.updateOptions({[t]:a})})),b.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:s?"on":"off"})};activateStats=()=>{this.props.updateOptions({stats:!0})};trackOpenCard=()=>{b.A.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.setState({[`count_roles_${t}`]:(0,y.includes)(e,t,!1)})}))}addCustomRolesState(e){e.forEach((t=>{["administrator","editor","author","subscriber","contributor"].includes(t)||this.setState({[`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.A.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"),s=this.props.getSiteRoles(),l=t&&!a&&!this.props.getOptionValue("enable_odyssey_stats");return"inactive"===this.props.getModuleOverride("stats")?C().createElement(g.A,{moduleName:e.name}):t?C().createElement(E.A,n()({},this.props,{header:_x("Jetpack Stats","Settings header","jetpack"),hideButton:!0,module:"site-stats"}),C().createElement(m.A,{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.A)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":a})},C().createElement(_.A,{disableInOfflineMode:!0,module:e,support:{text:__("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:(0,r.A)("jetpack-support-wordpress-com-stats")}},!this.props.isWoASite&&C().createElement(C().Fragment,null,l&&C().createElement(f.A,{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(v.A,{href:i.ru,external:!0},__("Take a Quick Survey","jetpack"))),C().createElement(h.dV,{className:"jp-stats-odyssey-toggle"},C().createElement(o.A,{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.dV,{className:"jp-stats-form-fieldset"},C().createElement(o.A,{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.dV,{className:"jp-stats-form-fieldset"},C().createElement(h.kK,null,__("Count logged in page views from","jetpack")),Object.keys(s).map((e=>C().createElement(o.A,{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:s[e].name})))),C().createElement(h.dV,{className:"jp-stats-form-fieldset"},C().createElement(h.kK,null,__("Allow Jetpack Stats to be viewed by","jetpack")),C().createElement(o.A,{checked:!0,disabled:!0,label:s.administrator.name}),Object.keys(s).map((e=>"administrator"!==e?C().createElement(o.A,{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:s[e].name}):null))),C().createElement(h.dV,{className:"jp-stats-form-fieldset"},C().createElement(h.kK,null,__("WordPress.com Reader","jetpack")),C().createElement(o.A,{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.A,{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.d0+"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)(__("Activate Jetpack Stats to see page views, likes, followers, subscribers, and more! <a>Learn More</a>","jetpack"),{a:C().createElement("a",{href:(0,r.A)("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.A,{rna:!0,onClick:this.activateStats,primary:!0},__("Activate Jetpack Stats","jetpack")))))}}const N=(0,A.Ng)((e=>({isWoASite:(0,j.lI)(e)})))((0,k.t)(S))},89708:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(96072),n=a.n(s),i=a(3924),r=a(56427),o=a(86087),c=a(27723),l=a(13022),p=a(47982),d=a(63344),u=a(60619),m=a(8332),h=a(19579),g=a(53835),k=a(66087),f=a(51609),v=a.n(f),E=a(84952),_=a(2065);const __=c.__,_x=c._x;class b extends v().Component{renderSitemapRow=(e,t)=>v().createElement("span",{className:"jp-sitemap-row"},v().createElement(p.A,{value:e,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack")}),v().createElement(r.ExternalLink,{onClick:()=>g.A.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"],""),s=(0,l.A)({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return v().createElement(m.A,n()({},this.props,{module:"sitemaps",hideButton:!0}),v().createElement(h.A,{hasChild:!0,module:{module:"sitemaps"},support:{link:(0,i.A)("jetpack-support-sitemaps")}},v().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")),v().createElement(u.j,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},__("Generate XML sitemaps","jetpack"))),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&v().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")):v().createElement("p",{className:s},(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:v().createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}))))}}const y=(0,E.Ng)((e=>({isSiteVisibleToSearchEngines:(0,_.oF)(e),siteAdminUrl:(0,_.eu)(e)})))((0,d.t)(b))},13396:(e,t,a)=>{"use strict";a.d(t,{m:()=>b});var s=a(96072),n=a.n(s),i=a(3924),r=a(56427),o=a(86087),c=a(27723),l=a(11895),p=a(3983),d=a(63344),u=a(60619),m=a(8332),h=a(19579),g=a(78888),k=a(66087),f=a(51609),v=a.n(f),E=a(34644);const __=c.__;class _ extends v().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 v().createElement(p.Ay,{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 v().createElement(m.A,n()({},this.props,{module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"])}),v().createElement(h.A,{module:e,support:{text:__("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:(0,i.A)("jetpack-support-site-verification-tools")}},v().createElement(u.j,{slug:e.module,activated:t,toggling:this.props.isSavingAnyOption([e.module]),disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},__("Verify site ownership with third party services","jetpack"))),v().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:v().createElement("strong",null),support:v().createElement("a",{href:(0,i.A)("jetpack-support-site-verification-tools")}),google:v().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:v().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:v().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:v().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"}),facebook:v().createElement(r.ExternalLink,{rel:"noopener noreferrer",href:"https://business.facebook.com/settings/"})})),v().createElement(l.dV,null,v().createElement(E.A,n()({value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234")},this.props,{disabled:this.props.isUpdating("google")||!t})),v().createElement(l.lR,{className:"jp-form-input-with-prefix",key:"verification_service_bing"},v().createElement("span",null,__("Bing:","jetpack")),v().createElement(g.A,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})),v().createElement(l.lR,{className:"jp-form-input-with-prefix",key:"verification_service_pinterest"},v().createElement("span",null,__("Pinterest:","jetpack")),v().createElement(g.A,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})),v().createElement(l.lR,{className:"jp-form-input-with-prefix",key:"verification_service_yandex"},v().createElement("span",null,__("Yandex:","jetpack")),v().createElement(g.A,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})),v().createElement(l.lR,{className:"jp-form-input-with-prefix",key:"verification_service_facebook"},v().createElement("span",null,__("Facebook:","jetpack")),v().createElement(g.A,{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.t)(_)},34644:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var s=a(56427),n=a(86087),i=a(27723),r=a(70386),o=a(11895),c=a(5546),l=a(31497),p=a(78888),d=a(53835),u=a(70531),m=a(28120),h=a.n(m),g=a(51609),k=a.n(g),f=a(84952),v=a(2065),E=a(66596),_=a(82656),b=a(70342);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.A.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.A.tracks.recordEvent("jetpack_site_verification_google_verify_success")}))}))}handleClickAutoVerify=()=>{this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||(d.A.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),(0,u.A)(this.props.googleSiteVerificationConnectUrl,(e=>{e&&this.checkAndVerifySite(e)})))};handleClickSetManually=e=>{d.A.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickEdit=e=>{d.A.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickCancel=e=>{d.A.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:this.props.isOwner}),this.props.resetFormStateOption("google"),this.toggleVerifyMethod(e)};quickSave=e=>{d.A.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.lR,{className:"jp-form-input-with-prefix",key:"verification_service_google"},k().createElement("span",null,__("Google","jetpack")),k().createElement(p.A,{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.A,{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.A,{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.A,{icon:"checkmark-circle",size:20})," ",k().createElement("span",null,__("Your site is verified with Google","jetpack"))),k().createElement(r.A,{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,n.createInterpolateElement)(__("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:k().createElement(s.ExternalLink,{rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",(0,n.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(s.ExternalLink,{rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:k().createElement(s.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,n.createInterpolateElement)(__("<button1>Auto verify with Google</button1><span>or</span><button2>Manually verify with Google</button2>","jetpack"),{button1:k().createElement(r.A,{primary:!0,rna:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:k().createElement("span",{className:"jp-form-google-separator"}),button2:k().createElement(r.A,{rna:!0,type:"button",disabled:t,onClick:this.handleClickSetManually})})))}}const w=(0,f.Ng)((e=>({fetchingSiteData:(0,_.Kb)(e),googleSiteVerificationConnectUrl:(0,E.mq)(e,"google_site_verification"),googleSearchConsoleUrl:(0,b.aB)(e),fetchingGoogleSiteVerify:(0,b.wr)(e),isConnectedToGoogle:(0,b.yF)(e),isSiteVerifiedWithGoogle:(0,b.L9)(e),isVerifyingGoogleSite:(0,b.Iz)(e),userCanManageOptions:(0,v.hN)(e),googleSiteVerificationError:(0,b.ib)(e),isOwner:(0,b.v1)(e)})),{checkVerifyStatusGoogle:b.TI,createNotice:c.Fc,removeNotice:c.fj,verifySiteGoogle:b.ID})(y)},752:(e,t,a)=>{"use strict";function s(e){return t=>{13!==t.which&&32!==t.which||e(t)}}a.d(t,{A:()=>s})},30940:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var s=a(96072),n=a.n(s),i=a(3924),r=a(13346),o=a(27723),c=a(23443),l=a(11895),p=a(63344),d=a(60619),u=a(8332),m=a(19579),h=a(51609),g=a.n(h),k=a(84952),f=a(2065),v=a(26508),E=a(12623);const __=o.__,_x=o._x;class _ 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"),s=this.props.isModuleFound("shortcodes"),o=this.props.isModuleFound("blocks"),p=this.props.isMyJetpackReachable;if(!(e||t||a||s||o))return null;const h=this.props.module("markdown"),k=this.props.module("latex"),f=this.props.module("copy-post"),v=this.props.module("shortcodes"),E=this.props.module("blocks"),_=g().createElement(m.A,{module:f,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.A)("jetpack-support-copy-post")}},g().createElement(l.dV,null,g().createElement(d.j,{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"},f.description)))),b=g().createElement(m.A,{module:h,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.A)("jetpack-support-markdown")}},g().createElement(l.dV,null,g().createElement(d.j,{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"},h.description)))),y=g().createElement(m.A,{module:k,support:{text:__("LaTeX is a powerful markup language for writing complex mathematical equations and formulas.","jetpack"),link:(0,i.A)("jetpack-support-beautiful-math-with-latex")}},g().createElement(l.dV,null,g().createElement(d.j,{slug:"latex",activated:!!this.props.getOptionValue("latex"),toggling:this.props.isSavingAnyOption(["latex"]),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},k.description)))),w=g().createElement(m.A,{module:v,support:{text:v.description,link:(0,i.A)("jetpack-support-shortcode-embeds")}},g().createElement(l.dV,null,g().createElement(d.j,{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"))))),C=g().createElement(g().Fragment,null,g().createElement(m.A,{module:E,support:{text:__("Jetpack includes some blocks which can help you create your pages exactly the way you want them.","jetpack"),link:(0,i.A)("jetpack-support-blocks")}},g().createElement(l.dV,null,g().createElement(d.j,{slug:"blocks",activated:!!this.props.getOptionValue("blocks"),toggling:this.props.isSavingAnyOption(["blocks"]),toggleModule:this.props.toggleModuleNow},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("blocks")&&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.A,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php`},__("Discover Jetpack tools in the block editor","jetpack"))),A=g().createElement(c.A,{className:"jp-settings-card__configure-link"},g().createElement("a",{href:`${this.props.siteAdminUrl}admin.php?page=my-jetpack#/jetpack-ai`},__("Learn more about all Jetpack AI features","jetpack")),g().createElement(r.A,{type:"new",text:__("New","jetpack")}));return g().createElement(u.A,n()({},this.props,{header:_x("Composing","Settings header","jetpack"),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),e&&_,a&&b,t&&y,s&&w,o&&C,p&&!this.props.getOptionValue("jetpack_blocks_disabled")&&A)}}const b=(0,k.Ng)((e=>({module:t=>(0,v.f_)(e,t),isModuleFound:t=>(0,E.jQ)(e,t),isMyJetpackReachable:(0,f.WS)(e)})))((0,p.t)(_))},58288:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var s=a(96072),n=a.n(s),i=a(3924),r=a(68316),o=a(86087),c=a(27723),l=a(23443),p=a(63344),d=a(8332),u=a(19579),m=a(51609),h=a.n(m),g=a(84952),k=a(26508),f=a(12623);const __=c.__;class v extends h().Component{state={testimonial:this.props.getOptionValue("jetpack_testimonial","custom-content-types")||!1,portfolio:this.props.getOptionValue("jetpack_portfolio","custom-content-types")||!1};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="undefined"!=typeof jetpack_portfolio_theme_supports&&jetpack_portfolio_theme_supports,t=this.props.module("custom-content-types"),a="inactive"===this.props.getModuleOverride("custom-content-types"),s=a&&__("This feature has been disabled by a site administrator.","jetpack"),c=!s&&e?__("This feature is already supported by your theme.","jetpack"):"",p=e?(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. This feature is enabled by default in your theme settings.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")}):(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")});return h().createElement(d.A,n()({},this.props,{module:"custom-content-types",hideButton:!0}),h().createElement(u.A,{hasChild:!0,module:t,support:{link:(0,i.A)("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.A,{checked:!!this.props.getOptionValue("jetpack_testimonial","custom-content-types")&&this.props.getOptionValue("jetpack_testimonial","custom-content-types"),disabled:a,toggling:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:this.handleTestimonialToggleChange,disabledReason:s,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.A,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-testimonial`},__("Add a testimonial","jetpack")),h().createElement(u.A,{hasChild:!0,module:t,support:{link:(0,i.A)("jetpack-support-custom-content-types")}},h().createElement("p",null,p),h().createElement(r.A,{checked:!!this.props.getOptionValue("jetpack_portfolio","custom-content-types")&&this.props.getOptionValue("jetpack_portfolio","custom-content-types"),disabled:a||e,toggling:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:this.handlePortfolioToggleChange,disabledReason:c,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.A,{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.t)((0,g.Ng)(((e,t)=>({module:t=>(0,k.f_)(e,t),isModuleFound:t=>(0,f.jQ)(e,t),getModuleOverride:t=>(0,k.d1)(e,t),portfolioActive:t.getSettingCurrentValue("jetpack_portfolio","custom-content-types"),testimonialActive:t.getSettingCurrentValue("jetpack_testimonial","custom-content-types")})))(v))},10225:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var s=a(96072),n=a.n(s),i=a(27723),r=a(26592),o=a(63109),c=a(51609),l=a.n(c),p=a(84952),d=a(34679),u=a(2065),m=a(26508),h=a(12623),g=a(30138),k=a(30940),f=a(58288),v=a(51390),E=a(17336),_=a(81858),b=a(8190);const __=i.__;class y 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};if(!this.props.searchTerm&&!this.props.active)return null;if(!["carousel","copy-post","latex","markdown","shortcodes","custom-content-types","post-by-email","infinite-scroll","widgets","widget-visibility","blocks"].some(this.props.isModuleFound))return null;const t=this.props.userCanManageModules||this.props.userCanEditPosts,a=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return l().createElement("div",null,l().createElement(o.A,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(b.A,e),t&&l().createElement(k.A,n()({},e,{userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("custom-content-types")&&l().createElement(f.A,e),l().createElement(E.A,e),l().createElement(_.A,e),this.props.isModuleFound("post-by-email")&&a&&l().createElement(v.A,n()({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),!t&&!a&&l().createElement(r.A,null,__("Writing tools available to you will be shown here when an administrator enables them.","jetpack")))}}const w=(0,p.Ng)((e=>({module:t=>(0,m.f_)(e,t),settings:(0,g.mt)(e),isOfflineMode:(0,d.hN)(e),isUnavailableInOfflineMode:t=>(0,d.Em)(e,t),userCanEditPosts:(0,u.jM)(e),isModuleActivated:t=>(0,m.Yp)(e,t),isLinked:(0,d._U)(e),userCanManageModules:(0,u.Ir)(e),isModuleFound:t=>(0,h.jQ)(e,t),connectUrl:(0,d.Qp)(e),getModuleOverride:t=>(0,m.d1)(e,t)})))(y)},51390:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(70386),c=a(47982),l=a(11895),p=a(63344),d=a(60619),u=a(8332),m=a(19579),h=a(53835),g=a(51609),k=a.n(g),f=a(84952),v=a(26508),E=a(12623),_=a(6838);const __=r.__,_x=r._x;class b extends k().Component{regeneratePostByEmailAddress=e=>{h.A.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,s=this.address();return k().createElement(u.A,n()({},this.props,{module:"post-by-email",hideButton:!0,feature:_.X8r}),k().createElement(m.A,{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.A)("jetpack-support-post-by-email")}},k().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?k().createElement(d.j,{slug:"post-by-email",compact:!0,disabled:a,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},k().createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):k().createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),k().createElement(l.dV,null,k().createElement(l.lR,null,k().createElement(l.kK,null,__("Send your new posts to this email address:","jetpack")),k().createElement(c.A,{value:s,disabled:!t||a,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack"),rna:!0})),k().createElement(o.A,{rna:!0,compact:!0,disabled:!t||a,onClick:this.regeneratePostByEmailAddress},s?__("Regenerate address","jetpack"):__("Create address","jetpack",0)))))}}const y=(0,f.Ng)((e=>({module:t=>(0,v.f_)(e,t),isModuleFound:t=>(0,E.jQ)(e,t)})))((0,p.t)(b))},17336:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(11895),c=a(45078),l=a(63344),p=a(8332),d=a(19579),u=a(53835),m=a(51609),h=a.n(m),g=a(84952),k=a(2065),f=a(26508),v=a(12623);const __=r.__;class E 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.A.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");if(!e)return null;const t=this.props.getModule("infinite-scroll"),a="inactive"===this.props.getModuleOverride("infinite-scroll");return h().createElement(p.A,n()({},this.props,{header:__("Theme enhancements","jetpack"),hideButton:!e||!this.props.isInfiniteScrollSupported,module:"theme-enhancements"}),a&&h().createElement(c.A,{moduleName:t.name,compact:!0}),e&&!a&&h().createElement(d.A,{hasChild:!0,module:{module:t.module},key:`theme_enhancement_${t.module}`,support:{text:__("Loads the next posts automatically when the reader approaches the bottom of the page.","jetpack"),link:(0,i.A)("jetpack-support-infinite-scroll")}},h().createElement(o.kK,{className:"jp-form-label-wide"},t.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.lR,{key:`${t.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([t.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:t.learn_more_button+"#theme",title:__("Learn more about adding support for Infinite Scroll to your theme.","jetpack")},__("Learn more","jetpack")))))}}const _=(0,g.Ng)((e=>({module:t=>(0,f.f_)(e,t),isInfiniteScrollSupported:(0,k.f8)(e,"infinite-scroll"),isModuleFound:t=>(0,v.jQ)(e,t)})))((0,l.t)(E))},81858:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(96072),n=a.n(s),i=a(3924),r=a(27723),o=a(63344),c=a(60619),l=a(8332),p=a(19579),d=a(51609),u=a.n(d),m=a(84952),h=a(26508),g=a(12623);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.A,n()({},this.props,{header:_x("Widgets","Settings header","jetpack"),module:"widgets",hideButton:!0}),e&&u().createElement(p.A,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:(0,i.A)("jetpack-support-extra-sidebar-widgets")}},u().createElement(c.j,{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.A,{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.A)("jetpack-support-widget-visibility")}},u().createElement(c.j,{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 f=(0,o.t)((0,m.Ng)(((e,t)=>({widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:(0,h.f_)(e,"widgets"),isModuleFound:t=>(0,g.jQ)(e,t)})))(k))},8190:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var s=a(96072),n=a.n(s),i=a(68316),r=a(3924),o=a(27723),c=a(11895),l=a(63344),p=a(60619),d=a(8332),u=a(19579),m=a(51609),h=a.n(m),g=a(84952),k=a(26508),f=a(12623);const __=o.__;const v=(0,g.Ng)((e=>({module:t=>(0,k.f_)(e,t),isModuleFound:t=>(0,f.jQ)(e,t)})))((0,l.t)((function(e){const t=e.isModuleFound("carousel");if(!t)return null;const a=e.getOptionValue("carousel_display_comments","carousel"),s=e.getOptionValue("carousel_display_exif","carousel"),o=e.getOptionValue("carousel"),l=(t,a,s,n)=>h().createElement(i.A,{checked:t,disabled:!o||e.isSavingAnyOption(["carousel"]),toggling:e.isSavingAnyOption([a]),onChange:s,label:n});return h().createElement(d.A,n()({},e,{module:"media",header:__("Media","jetpack"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color")}),h().createElement(u.A,{hasChild:!0,module:{module:"carousel"},support:{link:(0,r.A)("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.j,{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.dV,null,l(s,"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.dV,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.lR,null,h().createElement(c.kK,{className:"jp-form-label-wide"},__("Carousel color scheme","jetpack")),h().createElement(c.FX,n()({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}))))))})))},26356:(e,t,a)=>{"use strict";a.d(t,{i:()=>n});const s={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 n(e){return s[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},4567:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>i,vA:()=>r});var s=a(26356),n=a(18360);function i(e,t,a={}){const i=(0,s.i)(t);if(!i||isNaN(e))return null;const{decimal:r,grouping:o,precision:c,symbol:l}={...i,...a},p=e<0?"-":"";let d=(0,n.A)(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,s.i)(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,n.A)(d,c,r,o).split(r)[0],fraction:c>0?(0,n.A)(d-u,c,r,o).slice(1):""}}},18360:(e,t,a)=>{"use strict";function s(e,t=0,a=".",s=","){const n=(e+"").replace(/[^0-9+\-Ee.]/g,""),i=isFinite(+n)?+n: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,s)),(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,{A:()=>s})},51119:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s,n=a(2467);function i(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}s=i.prototype,Object.assign(s,n.EventEmitter.prototype),s.emitChange=function(){this.emit("change")},s.off=s.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,s=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(a+window.innerHeight/2-t/2),"left="+(s+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},46140:(e,t,a)=>{"use strict";a.d(t,{Kq:()=>s,_I:()=>n,q8:()=>i});const s="article",n="landscape",i="portrait"},5954:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(10790),n=a(31280),i=a(57466);const r=({text:e,url:t,forceUrlDisplay:a})=>{let r;return(a||(0,n.ti)(e,"a"))&&(r=(0,s.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:t,rel:"nofollow noopener noreferrer",target:"_blank",children:t})),(0,s.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,s.jsx)("span",{children:(0,n.x5)(e,{platform:"facebook",maxChars:i.zl})}),r]})}},57466:(e,t,a)=>{"use strict";a.d(t,{B2:()=>o,GA:()=>i,t2:()=>r,zl:()=>n});var s=a(31280);const n=440,i=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),r=e=>(0,s.RA)((0,s.f5)(110),(0,s.ZT)(110))((0,s.$J)(e))||"",o=e=>(0,s.RA)((0,s.f5)(200),(0,s.ZT)(200))((0,s.$J)(e))||""},72691:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(27723),n=a(51609),i=a(46140);const __=s.__,r=({mode:e})=>{const[t,a]=(0,n.useState)(e),[s,r]=(0,n.useState)(!0),o=(0,n.useCallback)((({target:e})=>{if(!t){const t=e;a(t.naturalWidth>t.naturalHeight?i._I:i.q8)}r(!1)}),[t]),c=(0,n.useCallback)((()=>r(!1)),[]);return[t,s,{alt:__("Facebook Preview Thumbnail","jetpack"),onLoad:o,onError:c}]}},57181:(e,t,a)=>{"use strict";a.d(t,{D:()=>l});var s=a(10790),n=a(46140),i=a(5954),r=a(72691),o=a(72870),c=a(77114);const l=({url:e,customImage:t,user:a,customText:l,imageMode:p})=>{const[d,u,m]=(0,r.A)({mode:p}),h="is-"+(d===n.q8?"portrait":"landscape");return(0,s.jsxs)("div",{className:"facebook-preview__post",children:[(0,s.jsx)(c.A,{user:void 0}),(0,s.jsx)("div",{className:"facebook-preview__content",children:(0,s.jsxs)("div",{className:`facebook-preview__window ${h} ${t&&u?"is-loading":""}`,children:[(0,s.jsx)("div",{className:`facebook-preview__custom-image ${h}`,children:(0,s.jsx)("img",{src:t,...m})}),(0,s.jsx)(c.A,{user:a,timeElapsed:!0,hideOptions:!0}),l&&(0,s.jsx)(i.A,{text:l,url:e,forceUrlDisplay:!0})]})}),(0,s.jsx)(o.A,{})]})}},73066:(e,t,a)=>{"use strict";a.d(t,{l:()=>u});var s=a(10790),n=a(27723),i=a(46140),r=a(5954),o=a(57466),c=a(72691),l=a(72870),p=a(77114),d=a(29659);a(81500);const __=n.__,u=({url:e,title:t,description:a,image:n,user:u,customText:m,type:h,imageMode:g,compactDescription:k})=>{const[f,v,E]=(0,c.A)({mode:g}),_=h===i.Kq,b="is-"+(_&&!n||f===i.q8?"portrait":"landscape");return(0,s.jsxs)("div",{className:"facebook-preview__post",children:[(0,s.jsx)(p.A,{user:u}),(0,s.jsxs)("div",{className:"facebook-preview__content",children:[m&&(0,s.jsx)(r.A,{text:m,url:e}),(0,s.jsxs)("div",{className:`facebook-preview__body ${b} ${n&&v?"is-loading":""}`,children:[(n||_)&&(0,s.jsx)("div",{className:`facebook-preview__image ${n?"":"is-empty"} ${b}`,children:n&&(0,s.jsx)("img",{src:n,...E})}),(0,s.jsx)("div",{className:"facebook-preview__text",children:(0,s.jsxs)("div",{className:"facebook-preview__text-wrapper",children:[(0,s.jsx)("div",{className:"facebook-preview__url",children:(0,o.GA)(e)}),(0,s.jsx)("div",{className:"facebook-preview__title",children:(0,o.t2)(t)||(0,o.GA)(e)}),(0,s.jsxs)("div",{className:"facebook-preview__description "+(k?"is-compact":""),children:[a&&(0,o.B2)(a),_&&!a&& // translators: Default description for a Facebook post __("Visit the post for more.","jetpack")]}),(0,s.jsx)("div",{className:"facebook-preview__info",children:(0,s.jsx)(d.A,{name:"info"})})]})})]})]}),(0,s.jsx)(l.A,{})]})}},73188:(e,t,a)=>{"use strict";a.d(t,{h:()=>l});var s=a(10790),n=a(46140),i=a(5954),r=a(72691),o=a(72870),c=a(77114);a(81500);const l=({url:e,user:t,customText:a,media:l,imageMode:p})=>{const[d]=(0,r.A)({mode:p}),u="is-"+(d===n.q8?"portrait":"landscape");return(0,s.jsxs)("div",{className:"facebook-preview__post",children:[(0,s.jsx)(c.A,{user:t}),(0,s.jsxs)("div",{className:"facebook-preview__content",children:[a&&(0,s.jsx)(i.A,{text:a,url:e,forceUrlDisplay:!0}),(0,s.jsx)("div",{className:"facebook-preview__body",children:l?(0,s.jsx)("div",{className:`facebook-preview__media ${u}`,children:l.map(((e,t)=>(0,s.jsx)("div",{className:`facebook-preview__media-item ${u}`,children:e.type.startsWith("video/")?(0,s.jsx)("video",{controls:!0,children:(0,s.jsx)("source",{src:e.url,type:e.type})}):(0,s.jsx)("img",{alt:e.alt||"",src:e.url})},`facebook-preview__media-item-${t}`)))}):null})]}),(0,s.jsx)(o.A,{})]})}},72870:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(10790),n=a(27723),i=a(29659);a(87748);const __=n.__,r=()=>(0,s.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,s.jsxs)("li",{children:[(0,s.jsx)(i.A,{name:e}),(0,s.jsx)("span",{children:t})]},e)))})},77114:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(10790),n=a(27723),i=a(51609),r=a(29659);a(53290);const __=n.__,_x=n._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[n,c]=(0,i.useState)(e?.avatarUrl||o),l=(0,i.useCallback)((()=>{n!==o&&c(o)}),[n]);return(0,s.jsxs)("div",{className:"facebook-preview__post-header",children:[(0,s.jsxs)("div",{className:"facebook-preview__post-header-content",children:[(0,s.jsx)("img",{className:"facebook-preview__post-header-avatar",src:n,alt:"",onError:l}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"facebook-preview__post-header-name",children:e?.displayName|| // translators: name of a fictional Facebook User __("Anonymous User","jetpack")}),(0,s.jsxs)("div",{className:"facebook-preview__post-header-share",children:[(0,s.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,s.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,s.jsx)(r.A,{name:"public"})]})]})]}),!a&&(0,s.jsx)("div",{className:"facebook-preview__post-header-more"})]})}},29659:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(10790);a(15583);const n=({name:e})=>(0,s.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${e}`})},87070:(e,t,a)=>{"use strict";a.d(t,{k:()=>p});var s=a(10790),n=a(56427),i=a(27723),r=a(67556),o=a(73066),c=a(57181),l=a(73188);const __=i.__,p=({headingLevel:e,hideLinkPreview:t,hidePostPreview:a,...i})=>{const p=!!i.media?.length,d=!!i.customImage;return(0,s.jsxs)("div",{className:"social-preview facebook-preview",children:[!a&&(0,s.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,s.jsx)(r.A,{level:e,children: // translators: refers to a social post on Facebook __("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Facebook:","jetpack")}),p?(0,s.jsx)(l.h,{...i}):(0,s.jsx)(o.l,{...i})]}),!t&&(0,s.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,s.jsx)(r.A,{level:e,children: // translators: refers to a link to a Facebook post __("Link preview","jetpack")}),(0,s.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,s.jsx)(n.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),d?(0,s.jsx)(c.D,{...i}):(0,s.jsx)(o.l,{...i,compactDescription:!0,customText:"",user:void 0})]})]})}},8797:(e,t,a)=>{"use strict";a.d(t,{m:()=>l});var s=a(10790),n=a(31280);a(88904);const i=160,r=e=>{const t=e.startsWith("https://")?"https://":"http://",a=t+e.replace(t,"").split("/").join(" › ");return(0,n.RA)((0,n.f5)(68),(0,n.ZT)(68))(a)},o=(0,n.RA)((0,n.f5)(63),(0,n.y5)(23,73),(0,n.ZT)(63)),c=(0,n.RA)((0,n.f5)(i),(0,n.y5)(80,170),(0,n.ZT)(i)),l=({description:e="",siteTitle:t,title:a="",url:i=""})=>{const l=(0,n.GA)(i);return(0,s.jsx)("div",{className:"search-preview",children:(0,s.jsxs)("div",{className:"search-preview__display",children:[(0,s.jsxs)("div",{className:"search-preview__header",children:[(0,s.jsxs)("div",{className:"search-preview__branding",children:[(0,s.jsx)("img",{className:"search-preview__icon",src:`https://www.google.com/s2/favicons?sz=128&domain_url=${l}`,alt:""}),(0,s.jsxs)("div",{className:"search-preview__site",children:[(0,s.jsx)("div",{className:"search-preview__site--title",children:t||l}),(0,s.jsx)("div",{className:"search-preview__url",children:r(i)})]})]}),(0,s.jsx)("div",{className:"search-preview__menu",children:(0,s.jsx)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.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,s.jsx)("div",{className:"search-preview__title",children:o(a)}),(0,s.jsx)("div",{className:"search-preview__description",children:c((0,n.$J)(e))})]})})}},31280:(e,t,a)=>{"use strict";a.d(t,{$J:()=>d,GA:()=>r,RA:()=>p,ZT:()=>l,f5:()=>o,hV:()=>m,ti:()=>u,x5:()=>g,y5:()=>c});var s=a(10790),n=a(86087),i=a(27723);const r=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),o=e=>t=>t.length<=e&&t,c=(e,t)=>a=>{const s=a.slice(0,t),n=s.lastIndexOf(" ");return n>e&&n<t&&s.slice(0,n).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",bluesky:"https://bsky.app/hashtag/%1$s"});function g(e,t){const{platform:a,maxChars:r,maxLines:o,hyperlinkHashtags:c=!0,hyperlinkUrls:p="instagram"!==a}=t;let u=d(e);if(u=u.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),r&&u.length>r&&(u=l(r)(u)),o){const e=u.split("\n");e.length>o&&(u=e.slice(0,o).join("\n"))}const m={};if(p){(u.match(/(https?:\/\/\S+)/g)||[]).forEach(((e,t)=>{m[`Link${t}`]=(0,s.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank",children:e}),u=u.replace(e,`<Link${t} />`)}))}if(c&&h[a]){const e=u.matchAll(/(^|\s)#(\w+)/g),n=h[a];[...e].forEach((([e,a,r],o)=>{const c=(0,i.sprintf)(n,r,t.hashtagDomain);m[`Hashtag${o}`]=(0,s.jsx)("a",{href:c,rel:"noopener noreferrer",target:"_blank",children:`#${r}`}),u=u.replace(e,`${a}<Hashtag${o} />`)}))}return u=u.replace(/\n/g,"<br />"),m.br=(0,s.jsx)("br",{}),(0,n.createInterpolateElement)(u,m)}},67556:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(10790);const n=[2,3,4,5,6],i=({className:e,level:t,children:a})=>{const i=`h${t&&n.includes(t)?t:3}`;return(0,s.jsx)(i,{className:`social-preview__section-heading ${e??""}`,children:a})}},74404:(e,t,a)=>{"use strict";a.d(t,{Z:()=>o});var s=a(10790),n=a(13022),i=a(31280);const r=(0,i.RA)((0,i.f5)(200),(0,i.ZT)(200)),o=({description:e,image:t,title:a,cardType:o,url:c})=>{const l=(0,n.A)(`twitter-preview__card-${o}`,{"twitter-preview__card-has-image":!!t});return(0,s.jsx)("div",{className:"twitter-preview__card",children:(0,s.jsxs)("div",{className:l,children:[t&&(0,s.jsx)("img",{className:"twitter-preview__card-image",src:t,alt:""}),(0,s.jsxs)("div",{className:"twitter-preview__card-body",children:[(0,s.jsx)("div",{className:"twitter-preview__card-url",children:(0,i.GA)(c||"")}),(0,s.jsx)("div",{className:"twitter-preview__card-title",children:a}),(0,s.jsx)("div",{className:"twitter-preview__card-description",children:r((0,i.$J)(e))})]})]})})}},5501:(e,t,a)=>{"use strict";a.d(t,{w:()=>n});var s=a(10790);const n=()=>(0,s.jsxs)("div",{className:"twitter-preview__footer",children:[(0,s.jsx)("span",{className:"twitter-preview__icon-replies",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",children:(0,s.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,s.jsx)("span",{className:"twitter-preview__icon-retweets",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",children:(0,s.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,s.jsx)("span",{className:"twitter-preview__icon-likes",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",children:(0,s.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,s.jsx)("span",{className:"twitter-preview__icon-analytics",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M8.75 21V3h2v18h-2zM18 21V8.5h2V21h-2zM4 21l.004-10h2L6 21H4zm9.248 0v-7h2v7h-2z"})})}),(0,s.jsx)("span",{className:"twitter-preview__icon-share",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",children:(0,s.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"})})})]})},69463:(e,t,a)=>{"use strict";a.d(t,{Y:()=>r});var s=a(10790),n=a(27723),i=a(31280);const __=n.__,r=({name:e,screenName:t,date:a})=>(0,s.jsxs)("div",{className:"twitter-preview__header",children:[(0,s.jsx)("span",{className:"twitter-preview__name",children:e||__("Account Name","jetpack")}),(0,s.jsx)("span",{className:"twitter-preview__screen-name",children:t||"@account"}),(0,s.jsx)("span",{children:"·"}),(0,s.jsx)("span",{className:"twitter-preview__date",children:(0,i.hV)(a||Date.now())})]})},43204:(e,t,a)=>{"use strict";a.d(t,{f:()=>n});var s=a(10790);const n=()=>(0,s.jsxs)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"271pt",height:"270pt",viewBox:"0 0 271 270",children:[(0,s.jsx)("rect",{width:"100%",height:"100%",fill:"#ccd5de"}),(0,s.jsxs)("g",{transform:"translate(0,270) scale(0.1,-0.1)",fill:"#647785",stroke:"none",children:[(0,s.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,s.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"})]})]})},82431:(e,t,a)=>{"use strict";a.d(t,{E:()=>i});var s=a(10790),n=a(82445);const i=e=>(0,s.jsx)(n.O,{...e,text:"",media:void 0})},1336:(e,t,a)=>{"use strict";a.d(t,{$:()=>r});var s=a(10790),n=a(13022),i=a(51609);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,n.A)(["twitter-preview__media","twitter-preview__media-children-"+t.length]);return(0,s.jsx)("div",{className:r,children:t.map(((e,t)=>(0,s.jsx)(i.Fragment,{children:a?(0,s.jsx)("video",{controls:!0,children:(0,s.jsx)("source",{src:e.url,type:e.type})}):(0,s.jsx)("img",{alt:e.alt||"",src:e.url})},`twitter-preview__media-item-${t}`)))})}},82445:(e,t,a)=>{"use strict";a.d(t,{O:()=>d});var s=a(10790),n=a(74404),i=a(5501),r=a(69463),o=a(1336),c=a(58024),l=a(940),p=a(16801);a(19569);const d=({date:e,description:t,image:a,media:d,name:u,profileImage:m,screenName:h,showThreadConnector:g,text:k,title:f,tweet:v,cardType:E,url:_})=>{const b=!!d?.length;return(0,s.jsx)("div",{className:"twitter-preview__wrapper",children:(0,s.jsxs)("div",{className:"twitter-preview__container",children:[(0,s.jsx)(l.B,{profileImage:m,showThreadConnector:g}),(0,s.jsxs)("div",{className:"twitter-preview__main",children:[(0,s.jsx)(r.Y,{name:u,screenName:h,date:e}),(0,s.jsxs)("div",{className:"twitter-preview__content",children:[k?(0,s.jsx)(p.E,{text:k,url:_||"",retainUrl:b}):null,b?(0,s.jsx)(o.$,{media:d}):null,v?(0,s.jsx)(c.g,{tweet:v}):null,!b&&_&&(0,s.jsx)(n.Z,{description:t||"",image:a,title:f||"",cardType:E||"",url:_})]}),(0,s.jsx)(i.w,{})]})]})})}},58024:(e,t,a)=>{"use strict";a.d(t,{g:()=>i});var s=a(10790),n=a(56427);const i=({tweet:e})=>e?(0,s.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,s.jsx)(n.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,s.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null},940:(e,t,a)=>{"use strict";a.d(t,{B:()=>r});var s=a(10790),n=a(27723),i=a(43204);const __=n.__,r=({profileImage:e,showThreadConnector:t})=>(0,s.jsxs)("div",{className:"twitter-preview__sidebar",children:[(0,s.jsx)("div",{className:"twitter-preview__profile-image",children:e?(0,s.jsx)("img",{alt:__("Twitter profile image","jetpack"),src:e}):(0,s.jsx)(i.f,{})}),t&&(0,s.jsx)("div",{className:"twitter-preview__connector"})]})},16801:(e,t,a)=>{"use strict";a.d(t,{E:()=>i});var s=a(10790),n=a(31280);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,s.jsx)("div",{className:"twitter-preview__text",children:(0,n.x5)(i,{platform:"twitter"})})}},40180:(e,t,a)=>{"use strict";a.d(t,{Fr:()=>p,zK:()=>d});var s=769,n="<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:s>t&&s<=a}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(a,"px)")):void 0!==t?i?{matches:s>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==a&&(i?{matches:s<=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(n)}function d(){return i?s:window.innerWidth}},10067:(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 s=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))})),t.splice(n,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(78926)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},78926:(e,t,a)=>{e.exports=function(e){function t(e){let a,n,i,r=null;function o(...e){if(!o.enabled)return;const s=o,n=Number(new Date),i=n-(a||n);s.diff=i,s.prev=a,s.curr=n,a=n,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,n)=>{if("%%"===a)return"%";r++;const i=t.formatters[n];if("function"==typeof i){const t=e[r];a=i.call(s,t),e.splice(r,1),r--}return a})),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=s,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(o),o}function s(e,a){const s=t(this.namespace+(void 0===a?":":a)+e);return s.log=this.log,s}function n(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(n),...t.skips.map(n).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 s=("string"==typeof e?e:"").split(/[\s,]+/),n=s.length;for(a=0;a<n;a++)s[a]&&("-"===(e=s[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,s;for(a=0,s=t.skips.length;a<s;a++)if(t.skips[a].test(e))return!1;for(a=0,s=t.names.length;a<s;a++)if(t.names[a].test(e))return!0;return!1},t.humanize=a(44997),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}},36203:(e,t,a)=>{"use strict";function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}a.d(t,{A:()=>n});const n=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,s){return e(t,a[s])}));if("object"==typeof t||"object"==typeof a){var n=s(t),i=s(a);return n!==t||i!==a?e(n,i):Object.keys(Object.assign({},t,a)).every((function(s){return e(t[s],a[s])}))}return!1}},96309:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-lock-cef570e11997f185e23d.png"},97139:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-success-c5c132e713a79e05985f.png"},30081:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-facebook-c8a9715c8b6c8707594f.png"},26818:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-instagram-business-53d4764803db1a7b3cbc.png"},43443:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-linkedin-553fcb77cb734fc8d08f.png"},11326:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-nextdoor-6e76141465483081fde8.png"},65398:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-threads-1c941351fac252724ae7.png"},9791:(e,t,a)=>{"use strict";e.exports=a.p+"images/connections-tumblr-ac23dad7016040416331.png"},26365:(e,t,a)=>{"use strict";e.exports=a.p+"images/dois-66b3f018328e8f585646.jpg"},45329:(e,t,a)=>{"use strict";e.exports=a.p+"images/edge-e1adff73f2dc1c1dc64e.jpg"},9509:(e,t,a)=>{"use strict";e.exports=a.p+"images/fullscreen-21ca1ee2bafcb1c8eb55.jpg"},22417:(e,t,a)=>{"use strict";e.exports=a.p+"images/highway-205f94656e2fcc4aeb86.jpg"},41282:(e,t,a)=>{"use strict";e.exports=a.p+"images/connect-c399837fe1621b176d10.png"},53773:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-with-check-67191b0849d39acf52fa.svg"},38310:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-manage-3a7ecaa604823c98c3cf.svg"},74277:e=>{"use strict";e.exports={consumer_slug:"jetpack"}},39384:e=>{"use strict";e.exports=window.JetpackConnection},97999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},51609:e=>{"use strict";e.exports=window.React},75795:e=>{"use strict";e.exports=window.ReactDOM},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},20428:e=>{"use strict";e.exports=window.jQuery},66087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},94715:e=>{"use strict";e.exports=window.wp.blockEditor},56427:e=>{"use strict";e.exports=window.wp.components},29491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},47143:e=>{"use strict";e.exports=window.wp.data},38443:e=>{"use strict";e.exports=window.wp.date},14309:e=>{"use strict";e.exports=window.wp.editPost},43656:e=>{"use strict";e.exports=window.wp.editor},86087:e=>{"use strict";e.exports=window.wp.element},18537:e=>{"use strict";e.exports=window.wp.htmlEntities},27723:e=>{"use strict";e.exports=window.wp.i18n},16480:e=>{"use strict";e.exports=window.wp.mediaUtils},692:e=>{"use strict";e.exports=window.wp.notices},92279:e=>{"use strict";e.exports=window.wp.plugins},5573:e=>{"use strict";e.exports=window.wp.primitives},93832:e=>{"use strict";e.exports=window.wp.url},65246:()=>{},96072: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 s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}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},77790:(e,t,a)=>{"use strict";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)({}).hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},s.apply(null,arguments)}a.d(t,{A:()=>s})},31105:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(11200);function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,s.A)(e,t)}},94001:(e,t,a)=>{"use strict";function s(e,t){if(null==e)return{};var a={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;a[s]=e[s]}return a}a.d(t,{A:()=>s})},11200:(e,t,a)=>{"use strict";function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}a.d(t,{A:()=>s})},13022:(e,t,a)=>{"use strict";function s(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=s(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}a.d(t,{A:()=>n});const n=function(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=s(e))&&(n&&(n+=" "),n+=t);return n}},88560:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(3924),n=a(86087),i=a(27723),r=a(28120),o=a(51609),c=a(21183);const __=i.__,l=e=>{const{productId:t,siteRawUrl:a}=e,i=`https://cloud.jetpack.com/landing/${a}`,r=(0,c.p)(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,n.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,n.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,n.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,n.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,n.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,s.A)("jetpack-social-sig-support-page"),target:"_blank",rel:"noreferrer"}),br:o.createElement("br",null),link:o.createElement("a",{href:(0,s.A)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},jetpack_social_basic:{title:__("Jetpack Social Basic is active!","jetpack"),text:(0,n.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,s.A)("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},21183:(e,t,a)=>{"use strict";a.d(t,{p:()=>n});const s={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 n(e){return Object.keys(s).find((t=>s[t].includes(e)))||"default"}},73010:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(1455),n=a(86087);const i=async()=>(await s({path:"wp/v2/plugins"})).filter((e=>"active"===e.status));function r(){const[e,t]=(0,n.useState)([]),[a,s]=(0,n.useState)(!0),r=(0,n.useCallback)((async()=>{try{const e=await i();t(e)}catch{t([])}finally{s(!1)}}),[]);return(0,n.useEffect)((()=>{r()}),[r]),[e,a]}},78720:(e,t,a)=>{"use strict";a.d(t,{H:()=>i});var s=a(3924),n=a(51609);function i(e,t,a,i,r){(0,n.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,n.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,s.A)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:t,query:`coupon=${e.coupon_code}`})}),[r,i,a,e,t])}},11911:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=!0,n="Invariant failed";function i(e,t){if(!e){if(s)throw new Error(n);var a="function"==typeof t?t():t,i=a?"".concat(n,": ").concat(a):n;throw new Error(i)}}}},t={};function a(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].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 s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})();var s={};(()=>{"use strict";a.d(s,{getRouteName:()=>u});var e=a(86087),t=a(27723),n=a(31994),i=(a(66087),a(17973)),r=a(51609),o=a.n(r),c=a(84952),l=a(96749),p=a(60247),d=a(64572);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,n.A)(),function(){const t=document.getElementById("jp-plugin-container");if(null===t)return;const a=o().createElement("div",null,o().createElement(c.Kq,{store:d.A},o().createElement(l.I9,null,o().createElement(p.dO,null,o().createElement(p.qh,{path:"/dashboard"},o().createElement(i.A,{routeName:u("/dashboard")})),o().createElement(p.qh,{path:"/reconnect"},o().createElement(i.A,{routeName:u("/reconnect")})),o().createElement(p.qh,{path:"/setup"},o().createElement(i.A,{routeName:u("/setup")})),o().createElement(p.qh,{path:"/my-plan"},o().createElement(i.A,{routeName:u("/my-plan")})),o().createElement(p.qh,{path:"/plans"},o().createElement(i.A,{routeName:u("/plans")})),o().createElement(p.qh,{path:"/recommendations"},o().createElement(i.A,{routeName:u("/recommendations")})),o().createElement(p.qh,{path:"/plans-prompt"},o().createElement(i.A,{routeName:u("/plans-prompt")})),o().createElement(p.qh,{path:"/settings"},o().createElement(i.A,{routeName:u("/settings")})),o().createElement(p.qh,{path:"/discussion"},o().createElement(i.A,{routeName:u("/discussion")})),o().createElement(p.qh,{path:"/earn"},o().createElement(i.A,{routeName:u("/earn")})),o().createElement(p.qh,{path:"/newsletter"},o().createElement(i.A,{routeName:u("/newsletter")})),o().createElement(p.qh,{path:"/security"},o().createElement(i.A,{routeName:u("/security")})),o().createElement(p.qh,{path:"/performance"},o().createElement(i.A,{routeName:u("/performance")})),o().createElement(p.qh,{path:"/traffic"},o().createElement(i.A,{routeName:u("/traffic")})),o().createElement(p.qh,{path:"/writing"},o().createElement(i.A,{routeName:u("/writing")})),o().createElement(p.qh,{path:"/sharing"},o().createElement(i.A,{routeName:u("/sharing")})),o().createElement(p.qh,{path:"/license/activation"},o().createElement(i.A,{routeName:u("/license/activation")})),o().createElement(p.qh,{path:"/wpbody-content",component:i.A}),o().createElement(p.qh,{path:"/wp-toolbar",component:i.A}),o().createElement(p.qh,{path:"/privacy",component:i.A}),o().createElement(p.qh,{path:"/*"},o().createElement(i.A,{routeName:u("/*")}))))));e.createRoot(t).render(a)}()})(),window.getRouteName=s.getRouteName})();
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0.45 |
proxy
|
phpinfo
|
Настройка