| @@ -1,194 +1,54 @@ | ||
| 1 | 1 | /*! For license information please see admin.js.LICENSE.txt */ |
| 2 | -!function(){var e={61074:function(e,t,n){"use strict";var s=n(69307);t.Z=(0,s.forwardRef)((function({icon:e,size:t=24,...n},a){return(0,s.cloneElement)(e,{width:t,height:t,...n,ref:a})}))},70157:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(a.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"}));t.Z=i},79201:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.Z=i},6163:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(a.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"}));t.Z=i},39517:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(a.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.Z=i},15381:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(a.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"}));t.Z=i},90496:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(a.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"}));t.Z=i},30797:function(e,t,n){"use strict";var s=n(99196),a=n(70444);const i=(0,s.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,s.createElement)(a.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"}));t.Z=i},16163:function(e,t,n){var s=n(46147);e.exports=function(e){var t=null,n=s(e);if(3===e.nodeType){var a=n.createRange();a.selectNodeContents(e),e=a}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var i=n.createElement("span");i.appendChild(n.createTextNode("")),e.insertNode(i),t=i.getBoundingClientRect();var r=i.parentNode;r.removeChild(i),r.normalize()}return t}},65235:function(e,t){var n;!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var r=a.apply(null,n);r&&e.push(r)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var o in n)s.call(n,o)&&n[o]&&e.push(o)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},52491:function(e){var t;t=function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var a=t[s]={i:s,l:!1,exports:{}};return e[s].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(s,a,function(t){return e[t]}.bind(null,a));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.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 n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var s=window.getSelection(),a=document.createRange();a.selectNodeContents(e),s.removeAllRanges(),s.addRange(a),t=s.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var s=this;function a(){s.off(e,a),t.apply(n,arguments)}return a._=t,this.on(e,a,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),s=0,a=n.length;s<a;s++)n[s].fn.apply(n[s].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),s=n[e],a=[];if(s&&t)for(var i=0,r=s.length;i<r;i++)s[i].fn!==t&&s[i].fn._!==t&&a.push(s[i]);return a.length?n[e]=a:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var s=n(3),a=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(s.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(s.string(e))return function(e,t,n){return a(document.body,e,t,n)}(e,t,n);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 n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var s=n(5);function a(e,t,n,s,a){var r=i.apply(this,arguments);return e.addEventListener(n,r,a),{destroy:function(){e.removeEventListener(n,r,a)}}}function i(e,t,n,a){return function(n){n.delegateTarget=s(n.target,t),n.delegateTarget&&a.call(e,n)}}e.exports=function(e,t,n,s,i){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof n?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,n,s,i)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.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,n){"use strict";n.r(t);var s=n(0),a=n.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 n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),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 n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=a()(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=a()(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=n(1),p=n.n(l),u=n(2),d=n.n(u),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 n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),g=function(e){function t(e,n){!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(n),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=d()(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 f("action",e)}},{key:"defaultTarget",value:function(e){var t=f("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(p.a);function f(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=g}]).default},e.exports=t()},29494:function(e,t,n){var s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function a(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push(s[e[n]%64]);return t.join("")}e.exports=function(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return a(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),s=0;s<e;s++)t[s]=Math.floor(256*Math.random());return a(t)}var i=n(39369);try{return a(i.randomBytes(e))}catch(t){return a(i.pseudoRandomBytes(e))}}},53184:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,s=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=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(n,s){function a(n){e.removeListener(t,i),s(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,a,{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,n,s){var a,i,r,l;if(o(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),r=i[t]),void 0===r)r=i[t]=n,++e._eventsCount;else if("function"==typeof r?r=i[t]=s?[n,r]:[r,n]:s?r.unshift(n):r.push(n),(a=c(e))>0&&r.length>a&&!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 u(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=p.bind(s);return a.listener=n,s.wrapFn=a,a}function d(e,t,n){var s=e._events;if(void 0===s)return[];var a=s[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):h(a,a.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function g(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);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 a(i){s.once&&e.removeEventListener(t,a),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e||e<0||a(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||a(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=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){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(n=0;n<l;++n)s(p[n],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,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,s,a,i,r;if(o(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){r=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(s[e]=n[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,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(s=0;s<i.length;++s)"removeListener"!==(a=i[s])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[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 d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2056:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var s,a=n(58750);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}var o,c=(o=[],{activateTrap:function(e){if(o.length>0){var t=o[o.length-1];t!==e&&t.pause()}var n=o.indexOf(e);-1===n||o.splice(n,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 n=-1;return e.every((function(e,s){return!t(e)||(n=s,!1)})),n},u=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return"function"==typeof e?e.apply(void 0,n):e},d=function(e,t){var n,o=document,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,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=d[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=o.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n},f=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},k=function(){if(m.tabbableGroups=m.containers.map((function(e){var t=(0,a.ht)(e);if(t.length>0)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}})).filter((function(e){return!!e})),m.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},v=function e(t){t!==o.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!d.preventScroll}),m.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(f()))},_=function(e){h(e.target)||(u(d.clickOutsideDeactivates,e)?n.deactivate({returnFocus:d.returnFocusOnDeactivate&&!(0,a.EB)(e.target)}):u(d.allowOutsideClick,e)||e.preventDefault())},E=function(e){var t=h(e.target);t||e.target instanceof Document?t&&(m.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),v(m.mostRecentlyFocusedNode||f()))},w=function(e){if(!1!==d.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){k();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 n=p(m.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e.target===n}));if(n>=0){var s=0===n?m.tabbableGroups.length-1:n-1;t=m.tabbableGroups[s].lastTabbableNode}}else{var a=p(m.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e.target===n}));if(a>=0){var i=a===m.tabbableGroups.length-1?0:a+1;t=m.tabbableGroups[i].firstTabbableNode}}else t=g("fallbackFocus");t&&(e.preventDefault(),v(t))}(e)},b=function(e){u(d.clickOutsideDeactivates,e)||h(e.target)||u(d.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},y=function(){if(m.active)return c.activateTrap(n),s=d.delayInitialFocus?l((function(){v(f())})):v(f()),o.addEventListener("focusin",E,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",b,{capture:!0,passive:!1}),o.addEventListener("keydown",w,{capture:!0,passive:!1}),n},j=function(){if(m.active)return o.removeEventListener("focusin",E,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",b,!0),o.removeEventListener("keydown",w,!0),n};return(n={activate:function(e){if(m.active)return this;k(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=o.activeElement;var t=e&&e.onActivate?e.onActivate:d.onActivate;return t&&t(),y(),this},deactivate:function(e){if(!m.active)return this;clearTimeout(s),j(),m.active=!1,m.paused=!1,c.deactivateTrap(n);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:d.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:d.returnFocusOnDeactivate)&&l((function(){var e;v((e=m.nodeFocusedBeforeActivation,g("setReturnFocus")||e))})),this},pause:function(){return m.paused||!m.active||(m.paused=!0,j()),this},unpause:function(){return m.paused&&m.active?(m.paused=!1,k(),y(),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&&k(),this}}).updateContainerElements(e),n}},46147:function(e){e.exports=function e(t){if(n(t))return t;if(n(t.ownerDocument))return t.ownerDocument;if(n(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 n(e){return e&&e.nodeType===t}},92511:function(e,t,n){"use strict";n.d(t,{Ep:function(){return u},Hp:function(){return m},PP:function(){return x},lX:function(){return E},ob:function(){return d},q_:function(){return S}});var s=n(80255),a=n(4456),i=n(51260),r=n(94262);function o(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function u(e){var t=e.pathname,n=e.search,s=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),s&&"#"!==s&&(a+="#"===s.charAt(0)?s:"#"+s),a}function d(e,t,n,i){var r;"string"==typeof e?(r=function(e){var t=e||"/",n="",s="",a=t.indexOf("#");-1!==a&&(s=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===s?"":s}}(e),r.state=t):(void 0===(r=(0,s.Z)({},e)).pathname&&(r.pathname=""),r.search?"?"!==r.search.charAt(0)&&(r.search="?"+r.search):r.search="",r.hash?"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash):r.hash="",void 0!==t&&void 0===r.state&&(r.state=t));try{r.pathname=decodeURI(r.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(r.key=n),i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=(0,a.Z)(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,i.Z)(e.state,t.state)}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,s,a){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof s?s(i,a):a(!0):a(!1!==i)}else a(!0)},appendListener:function(e){var n=!0;function s(){n&&e.apply(void 0,arguments)}return t.push(s),function(){n=!1,t=t.filter((function(e){return e!==s}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function f(e,t){t(window.confirm(e))}var k="popstate",v="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function E(e){void 0===e&&(e={}),g||(0,r.Z)(!1);var t,n=window.history,a=(-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,E=void 0!==m&&m,w=c.getUserConfirmation,b=void 0===w?f:w,y=c.keyLength,j=void 0===y?6:y,C=e.basename?p(o(e.basename)):"";function S(e){var t=e||{},n=t.key,s=t.state,a=window.location,i=a.pathname+a.search+a.hash;return C&&(i=l(i,C)),d(i,s,n)}function N(){return Math.random().toString(36).substr(2,j)}var x=h();function T(e){(0,s.Z)(V,e),V.length=n.length,x.notifyListeners(V.location,V.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||M(S(e.state))}function P(){M(S(_()))}var Z=!1;function M(e){if(Z)Z=!1,T();else{x.confirmTransitionTo(e,"POP",b,(function(t){t?T({action:"POP",location:e}):function(e){var t=V.location,n=R.indexOf(t.key);-1===n&&(n=0);var s=R.indexOf(e.key);-1===s&&(s=0);var a=n-s;a&&(Z=!0,I(a))}(e)}))}}var O=S(_()),R=[O.key];function L(e){return C+u(e)}function I(e){n.go(e)}var z=0;function U(e){1===(z+=e)&&1===e?(window.addEventListener(k,A),i&&window.addEventListener(v,P)):0===z&&(window.removeEventListener(k,A),i&&window.removeEventListener(v,P))}var D=!1;var V={length:n.length,action:"POP",location:O,createHref:L,push:function(e,t){var s="PUSH",i=d(e,t,N(),V.location);x.confirmTransitionTo(i,s,b,(function(e){if(e){var t=L(i),r=i.key,o=i.state;if(a)if(n.pushState({key:r,state:o},null,t),E)window.location.href=t;else{var c=R.indexOf(V.location.key),l=R.slice(0,c+1);l.push(i.key),R=l,T({action:s,location:i})}else window.location.href=t}}))},replace:function(e,t){var s="REPLACE",i=d(e,t,N(),V.location);x.confirmTransitionTo(i,s,b,(function(e){if(e){var t=L(i),r=i.key,o=i.state;if(a)if(n.replaceState({key:r,state:o},null,t),E)window.location.replace(t);else{var c=R.indexOf(V.location.key);-1!==c&&(R[c]=i.key),T({action:s,location:i})}else window.location.replace(t)}}))},go:I,goBack:function(){I(-1)},goForward:function(){I(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return D||(U(1),D=!0),function(){return D&&(D=!1,U(-1)),t()}},listen:function(e){var t=x.appendListener(e);return U(1),function(){U(-1),t()}}};return V}var w="hashchange",b={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 y(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function j(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(y(window.location.href)+"#"+e)}function S(e){void 0===e&&(e={}),g||(0,r.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,i=void 0===a?f:a,c=n.hashType,m=void 0===c?"slash":c,k=e.basename?p(o(e.basename)):"",v=b[m],_=v.encodePath,E=v.decodePath;function S(){var e=E(j());return k&&(e=l(e,k)),d(e)}var N=h();function x(e){(0,s.Z)(D,e),D.length=t.length,N.notifyListeners(D.location,D.action)}var T=!1,A=null;function P(){var e,t,n=j(),s=_(n);if(n!==s)C(s);else{var a=S(),r=D.location;if(!T&&(t=a,(e=r).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===u(a))return;A=null,function(e){if(T)T=!1,x();else{var t="POP";N.confirmTransitionTo(e,t,i,(function(n){n?x({action:t,location:e}):function(e){var t=D.location,n=R.lastIndexOf(u(t));-1===n&&(n=0);var s=R.lastIndexOf(u(e));-1===s&&(s=0);var a=n-s;a&&(T=!0,L(a))}(e)}))}}(a)}}var Z=j(),M=_(Z);Z!==M&&C(M);var O=S(),R=[u(O)];function L(e){t.go(e)}var I=0;function z(e){1===(I+=e)&&1===e?window.addEventListener(w,P):0===I&&window.removeEventListener(w,P)}var U=!1;var D={length:t.length,action:"POP",location:O,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=y(window.location.href)),n+"#"+_(k+u(e))},push:function(e,t){var n="PUSH",s=d(e,void 0,void 0,D.location);N.confirmTransitionTo(s,n,i,(function(e){if(e){var t=u(s),a=_(k+t);if(j()!==a){A=t,function(e){window.location.hash=e}(a);var i=R.lastIndexOf(u(D.location)),r=R.slice(0,i+1);r.push(t),R=r,x({action:n,location:s})}else x()}}))},replace:function(e,t){var n="REPLACE",s=d(e,void 0,void 0,D.location);N.confirmTransitionTo(s,n,i,(function(e){if(e){var t=u(s),a=_(k+t);j()!==a&&(A=t,C(a));var i=R.indexOf(u(D.location));-1!==i&&(R[i]=t),x({action:n,location:s})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=N.setPrompt(e);return U||(z(1),U=!0),function(){return U&&(U=!1,z(-1)),t()}},listen:function(e){var t=N.appendListener(e);return z(1),function(){z(-1),t()}}};return D}function N(e,t,n){return Math.min(Math.max(e,t),n)}function x(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,i=void 0===a?["/"]:a,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.Z)(E,e),E.length=E.entries.length,p.notifyListeners(E.location,E.action)}function g(){return Math.random().toString(36).substr(2,l)}var f=N(o,0,i.length-1),k=i.map((function(e){return d(e,void 0,"string"==typeof e?g():e.key||g())})),v=u;function _(e){var t=N(E.index+e,0,E.entries.length-1),s=E.entries[t];p.confirmTransitionTo(s,"POP",n,(function(e){e?m({action:"POP",location:s,index:t}):m()}))}var E={length:k.length,action:"POP",location:k[f],index:f,entries:k,createHref:v,push:function(e,t){var s="PUSH",a=d(e,t,g(),E.location);p.confirmTransitionTo(a,s,n,(function(e){if(e){var t=E.index+1,n=E.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),m({action:s,location:a,index:t,entries:n})}}))},replace:function(e,t){var s="REPLACE",a=d(e,t,g(),E.location);p.confirmTransitionTo(a,s,n,(function(e){e&&(E.entries[E.index]=a,m({action:s,location:a}))}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},canGo:function(e){var t=E.index+e;return t>=0&&t<E.entries.length},block:function(e){return void 0===e&&(e=!1),p.setPrompt(e)},listen:function(e){return p.appendListener(e)}};return E}},57692:function(e,t,n){"use strict";var s=n(93801),a={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]||a}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.Memo]=r;var l=Object.defineProperty,p=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,s){if("string"!=typeof n){if(h){var a=m(n);a&&a!==h&&e(t,a,s)}var r=p(n);u&&(r=r.concat(u(n)));for(var o=c(t),g=c(n),f=0;f<r.length;++f){var k=r[f];if(!(i[k]||s&&s[k]||g&&g[k]||o&&o[k])){var v=d(n,k);try{l(t,k,v)}catch(e){}}}}return t}},97676:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},1488:function(){},56878:function(){},40888:function(){},59961:function(){},73443:function(){},78296:function(){},44046:function(){},85043:function(){},15184:function(){},9170:function(){},32295:function(){},61154:function(){},46154:function(){},18145:function(){},91680:function(){},49304:function(){},27212:function(){},5609:function(){},58449:function(){},86508:function(e,t){"use strict";t.Z={error:"TcCZnGE6mad8Dvz9pCZi",button:"_mn6o2Dtm5pfFWc8_A1K"}},17472:function(){},62103:function(e,t){"use strict";t.Z={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"}},46172:function(){},53351:function(){},45460:function(e,t){"use strict";t.Z={"star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",facebook:"aHOlEBGD5EA8NKRw3xTw",instagram:"cL3m0xBYTYhIKI7lCqDB",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43",mastodon:"DKOBOTVmTLbh26gUH_73",nextdoor:"n5XodNsuMfMAAvqHFmbw",whatsapp:"fftumuc_lJ6v0tq4UMVR"}},33527:function(){},49710:function(e,t){"use strict";t.Z={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)"}},31418:function(e,t){"use strict";t.Z={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smCols:"4",mdCols:"8",lgCols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},87054:function(e,t){"use strict";t.Z={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},12077:function(e,t){"use strict";t.Z={container:"VHYulMcpzbr10HWR0iSE","icon-wrapper":"FGpSkMCiIHQjszcV0dbn","close-button":"KoWZcCwhW13xvkEb0QON","main-content":"smrfczkC53EaFM8OJUXs",title:"IKYRWoPwt9xOVEx1wzNS","action-bar":"qM0qY6mPYp1MPN54A3Kg","is-error":"A5YkDkkXuiYgavrY6Nux",icon:"y_IPyP1wIAOhyNaqvXJq","is-warning":"cT5rwuPMZzWvi5o6shMl","is-info":"yo0O3uvNomPsYUXFCpAS","is-success":"oZdDFf1jBLkzn5ICCC6x"}},37387:function(e,t){"use strict";t.Z={container:"dovianZYLKhnbnh9I06o","price-container":"lljtQMhW7lq5tE5SDJEf","promo-label":"NubApIV1vQCRUNprfm6b",price:"dhFQXpZfMwVI8vuYHnwC","is-not-off-price":"eD7hzxFmdtG_MgmBtl_k",footer:"C64ZjjUAqJC1T2Sa7apS",legend:"UpZDGew6Ay1hPoP6eI7b",symbol:"TDiiPbuW1Z0_05u_pvcK"}},11334:function(e,t){"use strict";t.Z={wrapper:"McCYJ2ErFiztX2NeMRou",small:"BzRvZWnrBa4JjQY0uluD",progress:"DKqdDLOgkrxCkDzKGT87"}},34086:function(){},48026:function(){},49807:function(e,t){"use strict";t.Z={status:"bZ4b33s2MdcOjaDKBbeV",status__indicator:"UzkzDaqt2mXprJh2OXRz",status__label:"QuS0vdcr87FsiBvSSrvA","is-active":"bGx0wbQAwuY7k8P3PHVQ","is-inactive":"wR8Cz8uHgObTQavolv5y","is-error":"IzbBYGwBKhSYFUQlIMww","is-action":"Kdvp_HJf89IBrZuCaLm8","is-initializing":"hVf5vsbBWm8OFye7cy7a"}},67660:function(){},85837:function(e,t){"use strict";t.Z={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","mt-7":"cW6D6djs7Ppm7fD7TeoV","mr-7":"DuCnqNfcxcP3Z__Yo5Ro","mb-7":"im8407m2fw5vOg7O2zsw","ml-7":"G0fbeBgvz2sh3uTP9gNl","m-8":"kvW3sBCxRxUqz1jrVMJl","mx-8":"tOjEqjLONQdkiYx_XRnw","my-8":"op5hFSx318zgxsoZZNLN","mt-8":"c9WfNHP6TFKWIfLxv52J","mr-8":"sBA75QqcqRwwYSHJh2wc","mb-8":"GpL6idrXmSOM6jB8Ohsf","ml-8":"HbtWJoQwpgGycz8dGzeT","p-0":"uxX3khU88VQ_Ah49Ejsa","px-0":"KX0FhpBKwKzs9fOUdbNz","py-0":"PfK8vKDyN32dnimlzYjz","pt-0":"emxLHRjQuJsImnPbQIzE","pr-0":"kJ8WzlpTVgdViXt8ukP9","pb-0":"tg_UIUI11VBzrTAn2AzJ","pl-0":"uczvl8kaz84oPQJ2DB2R","p-1":"o7UHPcdVK3lt7q3lqV4o","px-1":"IDqEOxvDoYrFYxELPmtX","py-1":"DdywPW2qSYlu2pt8tpO2","pt-1":"npy3hw4A5QSkDicb2CJJ","pr-1":"LgbptTApNY5NwLQvEFAt","pb-1":"WZQy2SZuZso59bUsXXyl","pl-1":"o331apInxNunbYB3SfPE","p-2":"fMPIyD9Vqki1Lrc_yJnG","px-2":"i2pMcTcdrr10IQoiSm_L","py-2":"eA702gn32kwptiI1obXH","pt-2":"o9bGieUKcYc8o0Ij9oZX","pr-2":"SwZcFez1RDqWsOFjB5iG","pb-2":"eHpLc_idmuEqeqCTvqkN","pl-2":"vU39i2B4P1fUTMB2l6Vo","p-3":"JHWNzBnE29awhdu5BEh1","px-3":"X72lGbb56L3KFzC2xQ9N","py-3":"BzfNhRG8wXdCEB5ocQ6e","pt-3":"srV0KSDC83a2fiimSMMQ","pr-3":"lUWfkmbQjCskhcNwkyCm","pb-3":"Ts0dIlc3aTSL7V4cIHis","pl-3":"CzlqQXXhX6MvorArFZ8B","p-4":"TqMPkQtR_DdZuKb5vBoV","px-4":"a7UrjhI69Vetlcj9ZVzz","py-4":"StEhBzGs2Gi5dDEkjhAv","pt-4":"FGneZfZyvYrt1dG0zcnm","pr-4":"APEH216rpdlJWgD2fHc8","pb-4":"oGwXC3ohCic9XnAj6x69","pl-4":"U6gnT9y42ViPNOcNzBwb","p-5":"IpdRLBwnHqbqFrixgbYC","px-5":"HgNeXvkBa9o3bQ5fvFZm","py-5":"tJtFZM3XfPG9v9TSDfN1","pt-5":"PdifHW45QeXYfK568uD8","pr-5":"mbLkWTTZ0Za_BBbFZ5b2","pb-5":"vVWpZpLlWrkTt0hMk8XU","pl-5":"RxfaJj5a1Nt6IavEo5Zl","p-6":"SppJULDGdnOGcjZNCYBy","px-6":"palY2nLwdoyooPUm9Hhk","py-6":"WYw1JvZC0ppLdvSAPhr_","pt-6":"YEEJ9b90ueQaPfiU8aeN","pr-6":"QE0ssnsKvWJMqlhPbY5u","pb-6":"n8yA3jHlMRyLd5UIfoND","pl-6":"tXHmxYnHzbwtfxEaG51n","p-7":"kBTsPKkO_3g_tLkj77Um","px-7":"RyhrFx6Y1FGDrGAAyaxm","py-7":"CBwRpB0bDN3iEdQPPMJO","pt-7":"vQVSq6SvWKbOMu6r4H6b","pr-7":"oBy5__aEADMsH46mrgFX","pb-7":"KVEXoJqf1s92j0JMdNmN","pl-7":"ZMXGNrNaKW3k_3TLz0Fq","p-8":"tuiR9PhkHXhGyEgzRZRI","px-8":"U7454qyWkQNa2iaSJziu","py-8":"VLYIv2GVocjuN93e8HC8","pt-8":"X1rm9DQ1zLGLfogja5Gn","pr-8":"JS7G6kAuqJo5GIuF8S5t","pb-8":"Y8F9ga1TDCMbM1lj4gUz","pl-8":"AJuyNGrI63BOWql719H8"}},93468:function(e,t){"use strict";t.Z={global:"_fUXxnSp5pagKBp9gSN7"}},87999:function(e,t){"use strict";t.Z={toggle:"gecp_0Z0owRZtj8JAYir","is-toggling":"ykWv7fKpkVW_vpAoddu4"}},54590:function(){},15035:function(){},22202:function(){},52741:function(){},88043:function(){},9459:function(e,t){"use strict";t.Z={"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"}},91853:function(e,t){"use strict";t.Z={"connection-container":"KQcQQLxH5fI08DfOlKwL"}},75631:function(){"use strict"},58487:function(){"use strict"},69339:function(){"use strict"},45811:function(){"use strict"},82283:function(e,t){"use strict";t.Z={notice:"ptn8jt555LOvMXWaoLxs","notice--default":"IVzciZv5S5E8XgR5EsLp","notice--highlight":"OpbDsm3F65Z4K5Bz43cz","notice--warning":"dlrSwB0tyuf1TYcypDec","notice--error":"hkpqil8E11PObwu7TVU2",content:"AeqtA3GRe7sFjKaC9SqL",dismiss:"IArBTmNL2K4du5WPBUhg",actions:"T7E2eJJN4qjwPpv3mcjV"}},57304:function(){"use strict"},16184:function(){"use strict"},23761:function(){"use strict"},67454:function(){"use strict"},2097:function(){"use strict"},78619:function(){"use strict"},30664:function(){"use strict"},40088:function(){"use strict"},15214:function(e,t){"use strict";t.Z={footer:"WJ5nPw0EHj7eoNZB06TW"}},47320:function(e,t){"use strict";t.Z={templates:"m9360_cMWKFHTNk9xpNz",template:"j4EvSJfKIJLGEIAETiEY","template--active":"dQb3Zpl0puk4V6ezZslo"}},89696:function(){"use strict"},28161:function(e,t){"use strict";t.Z={"publicize-notice":"__nV49on4_ijaV8Brnsw","components-notice":"zZ3Pu7E87XyYIdPR2WTt","components-button":"fLC8AaLf3xcKaoJ4Opax"}},87728:function(){"use strict"},73171:function(e){var t=1e3,n=60*t,s=60*n,a=24*s,i=7*a,r=365.25*a;function o(e,t,n,s){var a=t>=1.5*n;return Math.round(e/n)+" "+s+(a?"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*a;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*n;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>=a)return o(e,i,a,"day");if(i>=s)return o(e,i,s,"hour");if(i>=n)return o(e,i,n,"minute");if(i>=t)return o(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=a)return Math.round(e/a)+"d";if(i>=s)return Math.round(e/s)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},20070:function(e,t,n){var s=n(97676);e.exports=m,e.exports.parse=i,e.exports.compile=function(e,t){return o(i(e,t),t)},e.exports.tokensToFunction=o,e.exports.tokensToRegExp=d;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,s=[],i=0,r=0,o="",p=t&&t.delimiter||"/";null!=(n=a.exec(e));){var u=n[0],d=n[1],m=n.index;if(o+=e.slice(r,m),r=m+u.length,d)o+=d[1];else{var h=e[r],g=n[2],f=n[3],k=n[4],v=n[5],_=n[6],E=n[7];o&&(s.push(o),o="");var w=null!=g&&null!=h&&h!==g,b="+"===_||"*"===_,y="?"===_||"*"===_,j=n[2]||p,C=k||v;s.push({name:f||i++,prefix:g||"",delimiter:j,optional:y,repeat:b,partial:w,asterisk:!!E,pattern:C?l(C):E?".*":"[^"+c(j)+"]+?"})}}return r<e.length&&(o+=e.substr(r)),o&&s.push(o),s}function r(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function o(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",u(t)));return function(t,a){for(var i="",o=t||{},c=(a||{}).pretty?r:encodeURIComponent,l=0;l<e.length;l++){var p=e[l];if("string"!=typeof p){var u,d=o[p.name];if(null==d){if(p.optional){p.partial&&(i+=p.prefix);continue}throw new TypeError('Expected "'+p.name+'" to be defined')}if(s(d)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var m=0;m<d.length;m++){if(u=c(d[m]),!n[l].test(u))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'", but received `'+JSON.stringify(u)+"`");i+=(0===m?p.prefix:p.delimiter)+u}}else{if(u=p.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!n[l].test(u))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'", but received "'+u+'"');i+=p.prefix+u}}else i+=p}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function u(e){return e&&e.sensitive?"":"i"}function d(e,t,n){s(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,i=!1!==n.end,r="",o=0;o<e.length;o++){var l=e[o];if("string"==typeof l)r+=c(l);else{var d=c(l.prefix),m="(?:"+l.pattern+")";t.push(l),l.repeat&&(m+="(?:"+d+m+")*"),r+=m=l.optional?l.partial?d+"("+m+")?":"(?:"+d+"("+m+"))?":d+"("+m+")"}}var h=c(n.delimiter||"/"),g=r.slice(-h.length)===h;return a||(r=(g?r.slice(0,-h.length):r)+"(?:"+h+"(?=$))?"),r+=i?"$":a&&g?"":"(?="+h+"|$)",p(new RegExp("^"+r,u(n)),t)}function m(e,t,n){return s(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var s=0;s<n.length;s++)t.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return p(e,t)}(e,t):s(e)?function(e,t,n){for(var s=[],a=0;a<e.length;a++)s.push(m(e[a],t,n).source);return p(new RegExp("(?:"+s.join("|")+")",u(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},469:function(e,t,n){"use strict";var s=n(90758);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,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 n={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:a};return n.PropTypes=n,n}},25162:function(e,t,n){e.exports=n(469)()},90758:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},47556:function(e,t,n){"use strict";var s=n(33713);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,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 n={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:a};return n.PropTypes=n,n}},15844:function(e,t,n){e.exports=n(47556)()},33713:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8922:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,s=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case p:case u:case i:case o:case r:case m:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case g:case c:return e;default:return t}}case a:return t}}}function b(e){return w(e)===u}t.AsyncMode=p,t.ConcurrentMode=u,t.ContextConsumer=l,t.ContextProvider=c,t.Element=s,t.ForwardRef=d,t.Fragment=i,t.Lazy=f,t.Memo=g,t.Portal=a,t.Profiler=o,t.StrictMode=r,t.Suspense=m,t.isAsyncMode=function(e){return b(e)||w(e)===p},t.isConcurrentMode=b,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===r},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===o||e===r||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===_||e.$$typeof===E||e.$$typeof===k)},t.typeOf=w},93801:function(e,t,n){"use strict";e.exports=n(8922)},4223:function(e,t){"use strict";var n=60103,s=60106,a=60107,i=60108,r=60114,o=60109,c=60110,l=60112,p=60113,u=60120,d=60115,m=60116,h=60121,g=60122,f=60117,k=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;n=_("react.element"),s=_("react.portal"),a=_("react.fragment"),i=_("react.strict_mode"),r=_("react.profiler"),o=_("react.provider"),c=_("react.context"),l=_("react.forward_ref"),p=_("react.suspense"),u=_("react.suspense_list"),d=_("react.memo"),m=_("react.lazy"),h=_("react.block"),g=_("react.server.block"),f=_("react.fundamental"),k=_("react.debug_trace_mode"),v=_("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case r:case i:case p:case u:return e;default:switch(e=e&&e.$$typeof){case c:case l:case m:case d:case o:return e;default:return t}}case s:return t}}}t.isContextConsumer=function(e){return E(e)===c}},51637:function(e,t,n){"use strict";e.exports=n(4223)},30373:function(e,t,n){"use strict";n.d(t,{E:function(){return a}});var s=n(99196),a=n.n(s)().createContext(null)},31290:function(e,t,n){"use strict";var s=n(99196),a=n.n(s),i=n(30373),r=n(95053),o=n(40999);t.Z=function(e){var t=e.store,n=e.context,c=e.children,l=(0,s.useMemo)((function(){var e=(0,r.X)(t);return{store:t,subscription:e}}),[t]),p=(0,s.useMemo)((function(){return t.getState()}),[t]);(0,o.L)((function(){var e=l.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),p!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[l,p]);var u=n||i.E;return a().createElement(u.Provider,{value:l},c)}},35642:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var s=n(80255),a=n(37921),i=n(57692),r=n.n(i),o=n(99196),c=n.n(o),l=n(51637),p=n(95053),u=n(40999),d=n(30373),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],h=["reactReduxForwardedRef"],g=[],f=[null,null];function k(e,t){var n=e[1];return[t.payload,n+1]}function v(e,t,n){(0,u.L)((function(){return e.apply(void 0,t)}),n)}function _(e,t,n,s,a,i,r){e.current=s,t.current=a,n.current=!1,i.current&&(i.current=null,r())}function E(e,t,n,s,a,i,r,o,c,l){if(e){var p=!1,u=null,d=function(){if(!p){var e,n,d=t.getState();try{e=s(d,a.current)}catch(e){n=e,u=e}n||(u=null),e===i.current?r.current||c():(i.current=e,o.current=e,r.current=!0,l({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u}}}var w=function(){return[null,0]};function b(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,u=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,b=n.methodName,y=void 0===b?"connectAdvanced":b,j=n.renderCountProp,C=void 0===j?void 0:j,S=n.shouldHandleStateChanges,N=void 0===S||S,x=n.storeKey,T=void 0===x?"store":x,A=(n.withRef,n.forwardRef),P=void 0!==A&&A,Z=n.context,M=void 0===Z?d.E:Z,O=(0,a.Z)(n,m),R=M;return function(t){var n=t.displayName||t.name||"Component",i=u(n),d=(0,s.Z)({},O,{getDisplayName:u,methodName:y,renderCountProp:C,shouldHandleStateChanges:N,storeKey:T,displayName:i,wrappedComponentName:n,WrappedComponent:t}),m=O.pure;var b=m?o.useMemo:function(e){return e()};function j(n){var i=(0,o.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,a.Z)(n,h);return[n.context,e,t]}),[n]),r=i[0],u=i[1],m=i[2],y=(0,o.useMemo)((function(){return r&&r.Consumer&&(0,l.isContextConsumer)(c().createElement(r.Consumer,null))?r:R}),[r,R]),j=(0,o.useContext)(y),C=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(j)&&Boolean(j.store);var S=C?n.store:j.store,x=(0,o.useMemo)((function(){return function(t){return e(t.dispatch,d)}(S)}),[S]),T=(0,o.useMemo)((function(){if(!N)return f;var e=(0,p.X)(S,C?null:j.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,C,j]),A=T[0],P=T[1],Z=(0,o.useMemo)((function(){return C?j:(0,s.Z)({},j,{subscription:A})}),[C,j,A]),M=(0,o.useReducer)(k,g,w),O=M[0][0],L=M[1];if(O&&O.error)throw O.error;var I=(0,o.useRef)(),z=(0,o.useRef)(m),U=(0,o.useRef)(),D=(0,o.useRef)(!1),V=b((function(){return U.current&&m===z.current?U.current:x(S.getState(),m)}),[S,O,m]);v(_,[z,I,D,m,V,U,P]),v(E,[N,S,A,x,z,I,D,U,P,L],[S,A,x]);var F=(0,o.useMemo)((function(){return c().createElement(t,(0,s.Z)({},V,{ref:u}))}),[u,t,V]);return(0,o.useMemo)((function(){return N?c().createElement(y.Provider,{value:Z},F):F}),[y,F,Z])}var S=m?c().memo(j):j;if(S.WrappedComponent=t,S.displayName=j.displayName=i,P){var x=c().forwardRef((function(e,t){return c().createElement(S,(0,s.Z)({},e,{reactReduxForwardedRef:t}))}));return x.displayName=i,x.WrappedComponent=t,r()(x,t)}return r()(S,t)}}},51479:function(e,t,n){"use strict";var s=n(80255),a=n(37921),i=n(35642),r=n(38588),o=n(72320),c=n(22004),l=n(24769),p=n(98164),u=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function d(e,t,n){for(var s=t.length-1;s>=0;s--){var a=t[s](e);if(a)return a}return function(t,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function m(e,t){return e===t}function h(e){var t=void 0===e?{}:e,n=t.connectHOC,h=void 0===n?i.Z:n,g=t.mapStateToPropsFactories,f=void 0===g?c.ZP:g,k=t.mapDispatchToPropsFactories,v=void 0===k?o.ZP:k,_=t.mergePropsFactories,E=void 0===_?l.ZP:_,w=t.selectorFactory,b=void 0===w?p.ZP:w;return function(e,t,n,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,k=o.areOwnPropsEqual,_=void 0===k?r.Z:k,w=o.areStatePropsEqual,y=void 0===w?r.Z:w,j=o.areMergedPropsEqual,C=void 0===j?r.Z:j,S=(0,a.Z)(o,u),N=d(e,f,"mapStateToProps"),x=d(t,v,"mapDispatchToProps"),T=d(n,E,"mergeProps");return h(b,(0,s.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:N,initMapDispatchToProps:x,initMergeProps:T,pure:l,areStatesEqual:g,areOwnPropsEqual:_,areStatePropsEqual:y,areMergedPropsEqual:C},S))}}t.Z=h()},72320:function(e,t,n){"use strict";var s=n(57059),a=n(70278);t.ZP=[function(e){return"function"==typeof e?(0,a.xv)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,a.dX)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,a.dX)((function(t){return(0,s.Z)(e,t)})):void 0}]},22004:function(e,t,n){"use strict";var s=n(70278);t.ZP=[function(e){return"function"==typeof e?(0,s.xv)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,s.dX)((function(){return{}}))}]},24769:function(e,t,n){"use strict";var s=n(80255);function a(e,t,n){return(0,s.Z)({},n,e,t)}t.ZP=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var s,a=n.pure,i=n.areMergedPropsEqual,r=!1;return function(t,n,o){var c=e(t,n,o);return r?a&&i(c,s)||(s=c):(r=!0,s=c),s}}}(e):void 0},function(e){return e?void 0:function(){return a}}]},98164:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var s=n(37921),a=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function i(e,t,n,s){return function(a,i){return n(e(a,i),t(s,i),i)}}function r(e,t,n,s,a){var i,r,o,c,l,p=a.areStatesEqual,u=a.areOwnPropsEqual,d=a.areStatePropsEqual,m=!1;function h(a,m){var h,g,f=!u(m,r),k=!p(a,i);return i=a,r=m,f&&k?(o=e(i,r),t.dependsOnOwnProps&&(c=t(s,r)),l=n(o,c,r)):f?(e.dependsOnOwnProps&&(o=e(i,r)),t.dependsOnOwnProps&&(c=t(s,r)),l=n(o,c,r)):k?(h=e(i,r),g=!d(h,o),o=h,g&&(l=n(o,c,r)),l):l}return function(a,p){return m?h(a,p):(o=e(i=a,r=p),c=t(s,r),l=n(o,c,r),m=!0,l)}}function o(e,t){var n=t.initMapStateToProps,o=t.initMapDispatchToProps,c=t.initMergeProps,l=(0,s.Z)(t,a),p=n(e,l),u=o(e,l),d=c(e,l);return(l.pure?r:i)(p,u,d,e,l)}},70278:function(e,t,n){"use strict";function s(e){return function(t,n){var s=e(t,n);function a(){return s}return a.dependsOnOwnProps=!1,a}}function a(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function i(e,t){return function(t,n){n.displayName;var s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,n){s.mapToProps=e,s.dependsOnOwnProps=a(e);var i=s(t,n);return"function"==typeof i&&(s.mapToProps=i,s.dependsOnOwnProps=a(i),i=s(t,n)),i},s}}n.d(t,{dX:function(){return s},xv:function(){return i}})},91654:function(e,t,n){"use strict";n.d(t,{$j:function(){return a.Z},zt:function(){return s.Z}});var s=n(31290),a=(n(35642),n(30373),n(51479));n(87518),n(68882),n(46271)},87518:function(e,t,n){"use strict";n(30373),n(46271)},82830:function(e,t,n){"use strict";n(99196),n(30373)},68882:function(e,t,n){"use strict";n(99196),n(82830),n(95053),n(40999),n(30373)},46271:function(e,t,n){"use strict";n(99196),n(30373),n(82830)},59309:function(e,t,n){"use strict";n.d(t,{$j:function(){return s.$j},zt:function(){return s.zt}});var s=n(91654),a=n(79523);(0,n(72935).F)(a.m)},95053:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var s=n(72935);var a={notify:function(){},get:function(){return[]}};function i(e,t){var n,i=a;function r(){c.onStateChange&&c.onStateChange()}function o(){var a,o,c;n||(n=t?t.addNestedSub(r):e.subscribe(r),a=(0,s.k)(),o=null,c=null,i={clear:function(){o=null,c=null},notify:function(){a((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,n=c={callback:e,next:null,prev:c};return n.prev?n.prev.next=n:o=n,function(){t&&null!==o&&(t=!1,n.next?n.next.prev=n.prev:c=n.prev,n.prev?n.prev.next=n.next:o=n.next)}}})}var c={addNestedSub:function(e){return o(),i.subscribe(e)},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,i.clear(),i=a)},getListeners:function(){return i}};return c}},72935:function(e,t,n){"use strict";n.d(t,{F:function(){return a},k:function(){return i}});var s=function(e){e()},a=function(e){return s=e},i=function(){return s}},57059:function(e,t,n){"use strict";function s(e,t){var n={},s=function(s){var a=e[s];"function"==typeof a&&(n[s]=function(){return t(a.apply(void 0,arguments))})};for(var a in e)s(a);return n}n.d(t,{Z:function(){return s}})},79523:function(e,t,n){"use strict";n.d(t,{m:function(){return s.unstable_batchedUpdates}});var s=n(91850)},38588:function(e,t,n){"use strict";function s(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(s(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!s(e[n[i]],t[n[i]]))return!1;return!0}n.d(t,{Z:function(){return a}})},40999:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var s=n(99196),a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s.useLayoutEffect:s.useEffect},27453:function(e,t,n){"use strict";n.d(t,{UT:function(){return u}});var s=n(44498),a=n(41806),i=n(99196),r=n.n(i),o=n(92511),c=n(80255),l=n(37921),p=n(94262);r().Component;var u=function(e){function t(){for(var t,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(t=e.call.apply(e,[this].concat(s))||this).history=(0,o.q_)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return r().createElement(s.F0,{history:this.history,children:this.props.children})},t}(r().Component);var d=function(e,t){return"function"==typeof e?e(t):e},m=function(e,t){return"string"==typeof e?(0,o.ob)(e,null,null,t):e},h=function(e){return e},g=r().forwardRef;void 0===g&&(g=h);var f=g((function(e,t){var n=e.innerRef,s=e.navigate,a=e.onClick,i=(0,l.Z)(e,["innerRef","navigate","onClick"]),o=i.target,p=(0,c.Z)({},i,{onClick:function(e){try{a&&a(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||n,r().createElement("a",p)}));var k=g((function(e,t){var n=e.component,a=void 0===n?f:n,i=e.replace,u=e.to,k=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return r().createElement(s.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var n=e.history,s=m(d(u,e.location),e.location),l=s?n.createHref(s):"",f=(0,c.Z)({},v,{href:l,navigate:function(){var t=d(u,e.location),s=(0,o.Ep)(e.location)===(0,o.Ep)(m(t));(i||s?n.replace:n.push)(t)}});return h!==g?f.ref=t||k:f.innerRef=k,r().createElement(a,f)}))})),v=function(e){return e},_=r().forwardRef;void 0===_&&(_=v);_((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,u=e.activeStyle,h=e.className,g=e.exact,f=e.isActive,E=e.location,w=e.sensitive,b=e.strict,y=e.style,j=e.to,C=e.innerRef,S=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return r().createElement(s.s6.Consumer,null,(function(e){e||(0,p.Z)(!1);var n=E||e.location,i=m(d(j,n),n),l=i.pathname,N=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=N?(0,s.LX)(n.pathname,{path:N,exact:g,sensitive:w,strict:b}):null,T=!!(f?f(x,n):x),A="function"==typeof h?h(T):h,P="function"==typeof y?y(T):y;T&&(A=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(A,o),P=(0,c.Z)({},P,u));var Z=(0,c.Z)({"aria-current":T&&a||null,className:A,style:P,to:i},S);return v!==_?Z.ref=t||C:Z.innerRef=C,r().createElement(k,Z)}))}))},44498:function(e,t,n){"use strict";n.d(t,{AW:function(){return O},EN:function(){return V},F0:function(){return b},LX:function(){return M},NL:function(){return j},l_:function(){return T},rs:function(){return D},s6:function(){return w}});var s=n(41806),a=n(99196),i=n.n(a),r=n(15844),o=n.n(r),c=n(92511),l=n(94262),p=n(80255),u=n(20070),d=n.n(u),m=(n(93801),n(37921)),h=n(57692),g=n.n(h),f=1073741823,k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window||"undefined"!=typeof window?window:{};var v=i().createContext||function(e,t){var n,a,r="__create-react-context-"+function(){var e="__global_unique_id__";return k[e]=(k[e]||0)+1}()+"__",c=function(e){function n(){for(var t,n,s,a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,s=[],{on:function(e){s.push(e)},off:function(e){s=s.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,s.forEach((function(e){return e(n,t)}))}}),t}(0,s.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[r]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,s=this.props.value,a=e.value;((i=s)===(r=a)?0!==i||1/i==1/r:i!=i&&r!=r)?n=0:(n="function"==typeof t?t(s,a):f,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,r},a.render=function(){return this.props.children},n}(i().Component);c.childContextTypes=((n={})[r]=o().object.isRequired,n);var l=function(t){function n(){for(var e,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(e=t.call.apply(t,[this].concat(s))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,s.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},a.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},a.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},a.getValue=function(){return this.context[r]?this.context[r].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i().Component);return l.contextTypes=((a={})[r]=o().object,a),{Provider:c,Consumer:l}},_=function(e){var t=v();return t.displayName=e,t},E=_("Router-History"),w=_("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,s.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.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})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return i().createElement(w.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i().createElement(E.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i().Component);i().Component;var y=function(e){function t(){return e.apply(this,arguments)||this}(0,s.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(i().Component);function j(e){var t=e.message,n=e.when,s=void 0===n||n;return i().createElement(w.Consumer,null,(function(e){if(e||(0,l.Z)(!1),!s||e.staticContext)return null;var n=e.history.block;return i().createElement(y,{onMount:function(e){e.release=n(t)},onUpdate:function(e,s){s.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var C={},S=1e4,N=0;function x(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(C[e])return C[e];var t=d().compile(e);return N<S&&(C[e]=t,N++),t}(e)(t,{pretty:!0})}function T(e){var t=e.computedMatch,n=e.to,s=e.push,a=void 0!==s&&s;return i().createElement(w.Consumer,null,(function(e){e||(0,l.Z)(!1);var s=e.history,r=e.staticContext,o=a?s.push:s.replace,u=(0,c.ob)(t?"string"==typeof n?x(n,t.params):(0,p.Z)({},n,{pathname:x(n.pathname,t.params)}):n);return r?(o(u),null):i().createElement(y,{onMount:function(){o(u)},onUpdate:function(e,t){var n=(0,c.ob)(t.to);(0,c.Hp)(n,(0,p.Z)({},u,{key:n.key}))||o(u)},to:n})}))}var A={},P=1e4,Z=0;function M(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,s=n.path,a=n.exact,i=void 0!==a&&a,r=n.strict,o=void 0!==r&&r,c=n.sensitive,l=void 0!==c&&c;return[].concat(s).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var s=function(e,t){var n=""+t.end+t.strict+t.sensitive,s=A[n]||(A[n]={});if(s[e])return s[e];var a=[],i={regexp:d()(e,a,t),keys:a};return Z<P&&(s[e]=i,Z++),i}(n,{end:i,strict:o,sensitive:l}),a=s.regexp,r=s.keys,c=a.exec(e);if(!c)return null;var p=c[0],u=c.slice(1),m=e===p;return i&&!m?null:{path:n,url:"/"===n&&""===p?"/":p,isExact:m,params:r.reduce((function(e,t,n){return e[t.name]=u[n],e}),{})}}),null)}var O=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(w.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,s=e.props.computedMatch?e.props.computedMatch:e.props.path?M(n.pathname,e.props):t.match,a=(0,p.Z)({},t,{location:n,match:s}),r=e.props,o=r.children,c=r.component,u=r.render;return Array.isArray(o)&&function(e){return 0===i().Children.count(e)}(o)&&(o=null),i().createElement(w.Provider,{value:a},a.match?o?"function"==typeof o?o(a):o:c?i().createElement(c,a):u?u(a):null:"function"==typeof o?o(a):null)}))},t}(i().Component);function R(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var n=R(e);return 0!==t.pathname.indexOf(n)?t:(0,p.Z)({},t,{pathname:t.pathname.substr(n.length)})}function I(e){return"string"==typeof e?e:(0,c.Ep)(e)}function z(e){return function(){(0,l.Z)(!1)}}function U(){}i().Component;var D=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.Z)(t,e),t.prototype.render=function(){var e=this;return i().createElement(w.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,s,a=e.props.location||t.location;return i().Children.forEach(e.props.children,(function(e){if(null==s&&i().isValidElement(e)){n=e;var r=e.props.path||e.props.from;s=r?M(a.pathname,(0,p.Z)({},e.props,{path:r})):t.match}})),s?i().cloneElement(n,{location:a,computedMatch:s}):null}))},t}(i().Component);function V(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,s=(0,m.Z)(t,["wrappedComponentRef"]);return i().createElement(w.Consumer,null,(function(t){return t||(0,l.Z)(!1),i().createElement(e,(0,p.Z)({},s,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,g()(n,e)}i().useContext},24561:function(e,t,n){"use strict";var s=n(99196),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var s,i={},l=null,p=null;for(s in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(p=t.ref),t)r.call(t,s)&&!c.hasOwnProperty(s)&&(i[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===i[s]&&(i[s]=t[s]);return{$$typeof:a,type:e,key:l,ref:p,props:i,_owner:o.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},30275:function(e,t,n){"use strict";e.exports=n(24561)},75385:function(e,t){"use strict";function n(e){return function(t){var n=t.dispatch,s=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,s,e):t(a)}}}}var s=n();s.withExtraArgument=n,t.Z=s},835:function(e,t,n){"use strict";n.d(t,{DE:function(){return u},MT:function(){return o},UY:function(){return l},md:function(){return g},qC:function(){return h}});var s=n(407),a=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};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,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"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===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,p=[],u=p,d=!1;function m(){u===p&&(u=p.slice())}function h(){if(d)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(d)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(),u.push(e),function(){if(t){if(d)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 n=u.indexOf(e);u.splice(n,1),p=null}}}function f(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(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=c(l,e)}finally{d=!1}for(var t=p=u,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:i.INIT}),(a={dispatch:f,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,f({type:i.REPLACE})}})[s.Z]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[s.Z]=function(){return this},e},a}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"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),n={},s=0;s<t.length;s++){var a=t[s];0,"function"==typeof e[a]&&(n[a]=e[a])}var r,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(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===n(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.')}))}(n)}catch(e){r=e}return function(e,t){if(void 0===e&&(e={}),r)throw r;for(var s=!1,a={},i=0;i<o.length;i++){var l=o[i],p=n[l],u=e[l],d=p(u,t);if(void 0===d){var m=c(l,t);throw new Error(m)}a[l]=d,s=s||d!==u}return(s=s||o.length!==Object.keys(e).length)?a:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function u(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 n={};for(var s in e){var a=e[s];"function"==typeof a&&(n[s]=p(a,t))}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];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),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=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.")},a={getState:n.getState,dispatch:function(){return s.apply(void 0,arguments)}},i=t.map((function(e){return e(a)}));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{dispatch:s=h.apply(void 0,i)(n.dispatch)})}}}},24274:function(e){"use strict";function t(e,n){var s;if(Array.isArray(n))for(s=0;s<n.length;s++)t(e,n[s]);else for(s in n)e[s]=(e[s]||[]).concat(n[s])}e.exports=function(e){var n,s={};return t(s,e),(n=function(e){return function(t){return function(n){var a,i,r=s[n.type],o=t(n);if(r)for(a=0;a<r.length;a++)(i=r[a](n,e))&&e.dispatch(i);return o}}}).effects=s,n}},4456:function(e,t){"use strict";function n(e){return"/"===e.charAt(0)}function s(e,t){for(var n=t,s=n+1,a=e.length;s<a;n+=1,s+=1)e[n]=e[s];e.pop()}t.Z=function(e,t){void 0===t&&(t="");var a,i=e&&e.split("/")||[],r=t&&t.split("/")||[],o=e&&n(e),c=t&&n(t),l=o||c;if(e&&n(e)?r=i:i.length&&(r.pop(),r=r.concat(i)),!r.length)return"/";if(r.length){var p=r[r.length-1];a="."===p||".."===p||""===p}else a=!1;for(var u=0,d=r.length;d>=0;d--){var m=r[d];"."===m?s(r,d):".."===m?(s(r,d),u++):u&&(s(r,d),u--)}if(!l)for(;u--;u)r.unshift("..");!l||""===r[0]||r[0]&&n(r[0])||r.unshift("");var h=r.join("/");return a&&"/"!==h.substr(-1)&&(h+="/"),h}},92659:function(e,t,n){"use strict";function s(e){return s="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},s(e)}t.Z=void 0;var a,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!=r&&Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}return a.default=e,n&&n.set(e,a),a}(n(99196)),r=(a=n(15844))&&a.__esModule?a:{default:a},o=["size","onClick","icon","className"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function l(){return l=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},l.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,s,a=function(e,t){if(null==e)return{};var n,s,a={},i=Object.keys(e);for(s=0;s<i.length;s++)n=i[s],0<=t.indexOf(n)||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function u(e,t){for(var n,s=0;s<t.length;s++)(n=t[s]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n.apply(this,arguments)}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e);var n=m(t);return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(t,[{key:"render",value:function(){var e,t=this.props,n=t.size,s=t.onClick,a=t.icon,r=t.className,c=p(t,o),u=["social-logo","social-logo-"+a,r].filter(Boolean).join(" ");switch(a){default:e=i.default.createElement("svg",l({height:n,width:n},c));break;case"amazon":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.589.589 0 00.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.061v.369zm-.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.015zm7.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.55zm.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684-.301-.386-1.99-.183-2.749-.092-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59z"})));break;case"behance":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156.482.102.894.273 1.241.507.344.235.612.546.804.938.188.387.281.871.281 1.443 0 .619-.141 1.137-.421 1.551-.284.413-.7.751-1.255 1.014.756.218 1.317.601 1.689 1.146.374.549.557 1.205.557 1.975 0 .623-.12 1.161-.359 1.612a3.144 3.144 0 01-.973 1.114c-.408.288-.876.5-1.399.637A6.144 6.144 0 017.963 18H2V5.698h5.799m-.35 4.97c.481 0 .878-.114 1.192-.345.311-.228.463-.603.463-1.119 0-.286-.051-.523-.152-.707a1.123 1.123 0 00-.416-.427 1.733 1.733 0 00-.596-.216 3.616 3.616 0 00-.697-.06H4.709v2.874h2.74zm.151 5.237c.267 0 .521-.024.759-.077.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491.11-.206.163-.474.163-.798 0-.633-.18-1.084-.533-1.357-.356-.27-.83-.404-1.413-.404H4.709v3.388H7.6zm8.562-.041c.367.358.897.538 1.583.538.493 0 .92-.125 1.277-.374.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693-.701 0-1.332-.113-1.899-.337a4.041 4.041 0 01-1.439-.958 4.364 4.364 0 01-.904-1.484 5.433 5.433 0 01-.32-1.899c0-.666.11-1.288.329-1.863a4.36 4.36 0 01.933-1.492c.406-.42.885-.751 1.444-.994a4.63 4.63 0 011.857-.363c.754 0 1.414.145 1.98.44a3.941 3.941 0 011.389 1.181 4.82 4.82 0 01.783 1.69c.16.632.217 1.292.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496-.39 0-.714.066-.973.2a1.972 1.972 0 00-.621.491 1.772 1.772 0 00-.328.628 2.695 2.695 0 00-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41zm-3.916-3.446h4.985V6.524h-4.985v1.214z"})));break;case"blogger-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 01-1.16-1.079l-.001-.013A5.813 5.813 0 0011.803 3H8.871a5.813 5.813 0 00-5.813 5.813v6.375a5.813 5.813 0 005.813 5.813h6.257a5.814 5.814 0 005.813-5.813l.002-4.121a1.164 1.164 0 00-1.164-1.163zM8.726 7.713h3.291a1.117 1.117 0 110 2.234H8.726a1.117 1.117 0 110-2.234zm6.601 8.657H8.72a1.057 1.057 0 110-2.114h6.607a1.057 1.057 0 110 2.114z"})));break;case"blogger":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M14.722 14.019a.654.654 0 01-.654.654H9.977a.654.654 0 010-1.308h4.091c.361 0 .654.293.654.654zm-4.741-3.321h2.038a.692.692 0 000-1.384H9.981a.692.692 0 000 1.384zM21 5v14a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2zm-3.456 6.39a.72.72 0 00-.72-.72h-.607l-.013.001a.72.72 0 01-.718-.668l-.001-.008a3.599 3.599 0 00-3.599-3.599H10.07a3.599 3.599 0 00-3.599 3.599v3.947a3.6 3.6 0 003.599 3.599h3.874a3.599 3.599 0 003.599-3.599l.001-2.552z"})));break;case"codepen":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M22.016 8.84l-.007-.037c-.005-.025-.008-.048-.015-.072-.003-.015-.01-.028-.013-.042l-.023-.062-.02-.042a.391.391 0 00-.03-.057.357.357 0 00-.025-.038l-.035-.052-.03-.037c-.015-.017-.028-.032-.043-.045-.01-.012-.022-.023-.035-.035a.442.442 0 00-.048-.04l-.037-.03-.015-.012-9.161-6.096a.864.864 0 00-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 00-.078.082c-.012.013-.022.023-.03.037-.011.017-.025.035-.035.052a.498.498 0 01-.025.038c-.011.022-.021.039-.03.059a.39.39 0 01-.02.041 1.184 1.184 0 00-.034.106c-.007.023-.011.046-.016.071-.001.014-.005.025-.006.037a.73.73 0 00-.009.114v6.093c0 .037.003.075.008.112l.007.038c.005.023.008.047.015.072a.209.209 0 00.013.04c.007.022.013.042.022.063l.02.04a.4.4 0 00.055.096l.035.052.03.037a.603.603 0 00.042.045l.035.035c.015.013.032.028.048.04l.038.03.013.01 9.163 6.095a.858.858 0 00.959.004l9.163-6.095.015-.01c.013-.01.027-.02.037-.03a.534.534 0 00.048-.04c.013-.012.025-.023.035-.035.017-.015.03-.032.043-.045l.03-.037a.678.678 0 00.035-.052l.025-.038a.4.4 0 00.03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04.007-.025.01-.048.015-.072l.007-.037c.003-.042.007-.079.007-.117V8.954a.625.625 0 00-.008-.114zm-9.154-4.376l6.751 4.49-3.016 2.013-3.735-2.492V4.464zm-1.724 0v4.009l-3.735 2.494-3.014-2.013 6.749-4.49zm-7.439 6.098L5.853 12l-2.155 1.438v-2.876zm7.439 8.974l-6.749-4.491 3.015-2.011 3.735 2.492v4.01zM12 14.035L8.953 12 12 9.966 15.047 12 12 14.035zm.862 5.501v-4.009l3.735-2.492 3.016 2.011-6.751 4.49zm7.441-6.098L18.147 12l2.156-1.438v2.876z"})));break;case"dribbble":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10zm8.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 003.661-5.725zm-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 0012 20.555a8.488 8.488 0 003.336-.679zm-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637.111-.036.224-.07.337-.102a29.017 29.017 0 00-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 002.19 5.973zm-2.015-7.46c.382.005 3.901.02 7.897-1.041a54.477 54.477 0 00-3.167-4.94 8.572 8.572 0 00-4.73 5.981zm6.359-6.555a45.7 45.7 0 013.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.508 8.508 0 00-7.664-1.915zm8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27.028 27.028 0 01.751 1.678c2.842-.357 5.666.215 5.948.275a8.503 8.503 0 00-1.929-5.32z"})));break;case"dropbox":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12 6.134L6.069 9.797 2 6.54l5.883-3.843L12 6.134zm-10 6.92l5.883 3.843L12 13.459 6.069 9.797 2 13.054zm10 .405l4.116 3.439L22 13.054l-4.069-3.257L12 13.459zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663L22 6.54zm-9.989 7.66l-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153-4.128-3.426z"})));break;case"eventbrite":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M18.041 3.931L5.959 3A2.96 2.96 0 003 5.959v12.083A2.96 2.96 0 005.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959zM16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048-.152.708-.304 1.416-.451 2.128.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.17 2.17 0 01-.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-.841a3542.51 3542.51 0 011.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 01.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.783z",fillRule:"evenodd",clipRule:"evenodd"})));break;case"facebook":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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-10z"})));break;case"fediverse":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{viewBox:"0 0 743 743",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M181.131 275.137a68.894 68.894 0 01-29.465 29.328l161.758 162.389 38.998-19.764-171.291-171.953zm213.363 214.187l-38.998 19.764 81.963 82.283a68.895 68.895 0 0129.471-29.332l-72.436-72.715zM581.646 339.391l-91.576 46.41 6.752 43.189 103.616-52.513a68.896 68.896 0 01-18.792-37.086zm-144.738 73.351L220.383 522.477a68.895 68.895 0 0118.795 37.089L443.66 455.934l-6.752-43.192zM367.275 142.438l-104.48 203.97 30.848 30.967 110.623-215.957a68.899 68.899 0 01-36.991-18.98zM235.621 399.459l-52.922 103.314a68.896 68.896 0 0136.987 18.979l46.781-91.328-30.846-30.965zM150.768 304.918a68.888 68.888 0 01-34.416 7.195 68.979 68.979 0 01-6.651-.695l30.903 197.662a68.883 68.883 0 0134.416-7.195 68.91 68.91 0 016.646.695l-30.898-197.662zM239.342 560.545c.707 4.589.949 9.239.72 13.877a68.902 68.902 0 01-7.267 27.18l197.629 31.712c-.708-4.59-.95-9.24-.723-13.878a68.892 68.892 0 017.27-27.178l-197.629-31.713zM601.133 377.199l-91.219 178.082a68.895 68.895 0 0136.994 18.983l91.217-178.08a68.895 68.895 0 01-36.992-18.985zM476.723 125.33a68.895 68.895 0 01-29.471 29.332l141.266 141.811a68.889 68.889 0 0129.468-29.332L476.723 125.33zM347.787 104.631l-178.576 90.498a68.897 68.897 0 0118.793 37.086l178.574-90.502a68.896 68.896 0 01-18.791-37.082zM446.926 154.826a68.902 68.902 0 01-34.983 7.483 69.274 69.274 0 01-6.029-.633l15.818 101.291 43.163 6.926-17.969-115.067zm-16 167.028l37.4 239.482a68.895 68.895 0 0133.914-6.943c2.415.137 4.82.401 7.207.791L474.09 328.777l-43.164-6.923zM188.131 232.975c.734 4.66.988 9.383.758 14.095a68.91 68.91 0 01-7.16 26.983l101.369 16.281 19.923-38.908-114.89-18.451zm173.736 27.9l-19.926 38.912 239.514 38.467a68.897 68.897 0 01-.695-13.719 68.893 68.893 0 017.349-27.324l-226.242-36.336z"}),i.default.createElement("path",{d:"M412.284 156.054c34.538 1.882 64.061-24.592 65.943-59.13 1.881-34.538-24.592-64.062-59.131-65.943-34.538-1.882-64.061 24.592-65.943 59.13-1.881 34.538 24.593 64.062 59.131 65.943zM646.144 390.82c34.538 1.881 64.062-24.593 65.943-59.131 1.882-34.538-24.592-64.061-59.13-65.943-34.538-1.881-64.062 24.593-65.943 59.131-1.882 34.538 24.592 64.061 59.13 65.943zM495.086 685.719c34.538 1.881 64.062-24.592 65.943-59.13 1.881-34.538-24.592-64.062-59.13-65.943-34.538-1.882-64.062 24.592-65.943 59.13-1.882 34.538 24.592 64.062 59.13 65.943zM167.866 633.211c34.538 1.882 64.062-24.592 65.943-59.13 1.882-34.538-24.592-64.062-59.13-65.943-34.538-1.881-64.062 24.592-65.943 59.13-1.881 34.538 24.592 64.062 59.13 65.943zM116.692 305.86c34.538 1.882 64.062-24.592 65.943-59.13 1.881-34.538-24.592-64.062-59.131-65.943-34.538-1.881-64.061 24.592-65.943 59.13-1.881 34.538 24.593 64.062 59.131 65.943z",fillOpacity:".996"})));break;case"feed":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333zM2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2zm2.5 15a2.5 2.5 0 100 5 2.5 2.5 0 000-5z"})));break;case"flickr":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})));break;case"foursquare":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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 2zm-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.715-.072.353-.407 2.102-.448 2.295-.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.683l-.446 2.333z"})));break;case"ghost":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M10.203 20.997H3.005v-3.599h7.198v3.599zm10.792-3.599h-7.193v3.599h7.193v-3.599zm.003-7.198H3v3.599h17.998V10.2zm-7.195-7.197H3.005v3.599h10.798V3.003zm7.197 0h-3.599v3.599H21V3.003z"})));break;case"github":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.548 9.548 0 0112 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.481A9.997 9.997 0 0022 12c0-5.523-4.477-10-10-10z"})));break;case"google-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.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.672 0 2.022 1.62 3.672 3.606 3.672 2.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.862z"})));break;case"google-plus-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.02H8V11zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})));break;case"google-plus":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1.919 14.05a4.051 4.051 0 010-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.229 2.229 0 00-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.956zM19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19v1.5z"})));break;case"google":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.05h-9.36z"})));break;case"instagram":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.673.315.315.51.615.673 1.035.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.035-.315.315-.615.51-1.035.673-.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.786 2.786 0 01-1.035-.673 2.786 2.786 0 01-.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.035.315-.315.615-.51 1.035-.673.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.401 4.401 0 00-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.411 4.411 0 001.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.411 4.411 0 0019.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 3zm0 4.378a4.622 4.622 0 100 9.244 4.622 4.622 0 000-9.244zM12 15a3 3 0 110-6 3 3 0 010 6zm4.804-8.884a1.08 1.08 0 10.001 2.161 1.08 1.08 0 00-.001-2.161z"})));break;case"link":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M17 13H7v-2h10v2zm1-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 004-4v-2a4 4 0 00-4-4zM2 11v2a4 4 0 004 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 00-4 4z"})));break;case"linkedin":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M19.7 3H4.3A1.3 1.3 0 003 4.3v15.4A1.3 1.3 0 004.3 21h15.4a1.3 1.3 0 001.3-1.3V4.3A1.3 1.3 0 0019.7 3zM8.339 18.338H5.667v-8.59h2.672v8.59zM7.004 8.574a1.548 1.548 0 11-.002-3.096 1.548 1.548 0 01.002 3.096zm11.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"})));break;case"mail":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"mastodon":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.359 4.359 0 01-.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-.921h-.058zM9.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.922.53.609.794 1.434.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.012c0-1.035.263-1.86.793-2.469.547-.609 1.263-.922 2.15-.922z"})));break;case"medium-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{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-6zm9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648-1.636 0-2.962-2.53-2.962-5.649s1.325-5.649 2.96-5.649zm4.577.589c.576 0 1.042 2.265 1.042 5.06 0 2.794-.466 5.06-1.042 5.06-.575 0-1.04-2.265-1.04-5.06 0-2.794.465-5.06 1.04-5.06z",fillRule:"nonzero"})));break;case"medium":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M3 3v18h18V3H3zm15 4.26l-1 .93a.28.28 0 00-.11.27v6.8a.27.27 0 00.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 00.17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 00.17-.54V9a.5.5 0 00-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18v.2z"})));break;case"nextdoor":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{strokeMiterlimit:"10",viewBox:"0 0 130 130",xmlns:"http://www.w3.org/2000/svg",clipRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}),i.default.createElement("g",null,i.default.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.75 33.799 3.064 63.685-21.857 66.75-55.657 3.064-33.8-21.857-63.686-55.657-66.75a62.075 62.075 0 00-6.281-.25zm3.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 01-1.25-1.25V63.375c0-5.58-4.309-11.938-11.469-11.938-7.47 0-11.468 6.358-11.468 11.938V88.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.718z"})));break;case"patreon":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.975 5a5.05 5.05 0 00-5.041 5.046c0 2.774 2.261 5.03 5.04 5.03A5.034 5.034 0 0019 10.047C19 7.264 16.746 5 13.975 5zM5 18.44h2.461V5H5v13.44z"})));break;case"pinterest-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.365.365 0 00-.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"})));break;case"pinterest":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.297.297 0 01.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 2z"})));break;case"pocket":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M21.927 4.194A1.82 1.82 0 0020.222 3H3.839a1.823 1.823 0 00-1.813 1.814v6.035l.069 1.2c.29 2.73 1.707 5.115 3.899 6.778l.119.089.025.018a9.897 9.897 0 003.91 1.727 10.06 10.06 0 004.049-.014.261.261 0 00.064-.023 9.906 9.906 0 003.753-1.691l.025-.018c.04-.029.08-.058.119-.089 2.192-1.664 3.609-4.049 3.898-6.778l.069-1.2V4.814a1.792 1.792 0 00-.098-.62zm-4.235 6.287l-4.704 4.512a1.372 1.372 0 01-1.898 0l-4.705-4.512a1.371 1.371 0 111.898-1.979l3.756 3.601 3.755-3.601a1.372 1.372 0 011.898 1.979z"})));break;case"polldaddy":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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-10zm.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.775 7.775 0 00-6.094-2.94 7.764 7.764 0 00-5.896 2.703c-.006.003-.01.01-.016.014l-.152.159-.031.032a6.122 6.122 0 00-1.633 4.165 6.15 6.15 0 006.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.386 7.386 0 016.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68zm3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.673 3.673 0 00.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.362 2.362 0 00.753 1.879c.501.476 1.23.667 1.871.529a2.067 2.067 0 001.469-1.134 1.912 1.912 0 00-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.698 1.698 0 00-1.437.679 1.525 1.525 0 00-.18 1.489c.004.011.01.021.016.03.193.634.774 1.1 1.467 1.117a1.618 1.618 0 01-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 01.499-1.539 2.016 2.016 0 011.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.515 2.515 0 01-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.825 2.825 0 01-.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.216 5.216 0 01-1.947-.376 5.01 5.01 0 002.613-.079 4.955 4.955 0 002.514-1.751c.618-.828.95-1.861.901-2.869zM12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a6.548 6.548 0 00-.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.041z"})));break;case"print":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3a2 2 0 01-2 2H7a2 2 0 01-2-2v-3H2V9a2 2 0 012-2h1V5a2 2 0 012-2h10a2 2 0 012 2v2h1a2 2 0 012 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5a1.5 1.5 0 10-3.001.001A1.5 1.5 0 0020 10.5z"})));break;case"reddit":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M22 11.816a2.279 2.279 0 00-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.878 1.878 0 001.876 1.862 1.88 1.88 0 001.877-1.878 1.88 1.88 0 00-1.877-1.877c-.769 0-1.431.466-1.72 1.13l-3.508-.826a.386.386 0 00-.46.261l-1.35 4.268c-2.316.038-4.411.67-5.97 1.671a2.24 2.24 0 00-1.492-.581A2.279 2.279 0 002 11.816c0 .814.433 1.523 1.078 1.925a4.056 4.056 0 00-.061.672c0 3.292 4.011 5.97 8.941 5.97s8.941-2.678 8.941-5.97c0-.214-.02-.424-.053-.632A2.259 2.259 0 0022 11.816zm-3.224-7.422a1.1 1.1 0 11-.001 2.199 1.1 1.1 0 01.001-2.199zM2.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.482 1.482 0 01-.525-1.129zm9.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.193zm8.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.185zm-11.64 1.703c-.76 0-1.397-.616-1.397-1.376 0-.76.637-1.397 1.397-1.397s1.376.637 1.376 1.397-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.616 1.376-1.376 1.376-.76 0-1.399-.616-1.399-1.376 0-.76.639-1.397 1.399-1.397s1.376.637 1.376 1.397zm-1.172 3.38a.389.389 0 010 .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 11.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 01.549 0z"})));break;case"share":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.118A2.981 2.981 0 0015 19a3 3 0 103-3z"})));break;case"skype":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M10.113 2.699l.1-.02c.033.017.066.033.098.051l-.198-.031zM2.72 10.223l-.017.103c.018.032.033.064.051.095l-.034-.198zm18.555 3.548c.007-.035.011-.071.018-.106-.018-.031-.033-.064-.052-.095l.034.201zm-7.712 7.428c.032.019.065.035.096.053l.105-.017-.201-.036zM22 16.386a5.55 5.55 0 01-1.637 3.953 5.548 5.548 0 01-3.953 1.637 5.575 5.575 0 01-2.75-.725l.105-.017-.202-.035c.032.019.065.035.096.053a9.524 9.524 0 01-1.654.147 9.375 9.375 0 01-3.676-.743 9.38 9.38 0 01-3.002-2.023 9.397 9.397 0 01-2.023-3.002 9.375 9.375 0 01-.743-3.676c0-.546.049-1.093.142-1.628.018.032.033.064.051.095l-.034-.199-.017.103A5.586 5.586 0 012 7.615c0-1.493.582-2.898 1.637-3.953A5.555 5.555 0 017.59 2.024c.915 0 1.818.228 2.622.655l-.1.02.199.031c-.032-.018-.066-.034-.098-.051l.004-.001a9.543 9.543 0 011.788-.169 9.41 9.41 0 016.678 2.766 9.4 9.4 0 012.024 3.002 9.375 9.375 0 01.743 3.676c0 .575-.054 1.15-.157 1.712-.018-.031-.033-.064-.052-.095l.034.201c.007-.035.011-.071.018-.106.461.829.707 1.767.707 2.721zm-5.183-2.248c0-1.331-.613-2.743-3.033-3.282l-2.209-.49c-.84-.192-1.807-.444-1.807-1.237 0-.794.679-1.348 1.903-1.348 2.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.599z"})));break;case"spotify":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.622.622 0 01-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 11-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 01.206.857M17.81 13.7a.78.78 0 01-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 116.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 01.256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 11-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 11-.955 1.608"})));break;case"squarespace":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M20.87 9.271a3.86 3.86 0 00-5.458 0l-6.141 6.141a.964.964 0 101.365 1.364l6.14-6.14a1.929 1.929 0 112.729 2.729l-6.022 6.022a1.929 1.929 0 002.729 0l4.658-4.658a3.86 3.86 0 000-5.458zm-2.047 2.047a.965.965 0 00-1.365 0l-6.14 6.14a1.929 1.929 0 01-2.729 0 .964.964 0 10-1.364 1.364 3.86 3.86 0 005.458 0l6.14-6.14a.966.966 0 000-1.364zm-2.047-6.141a3.858 3.858 0 00-5.458 0l-6.14 6.14a.964.964 0 101.364 1.364l6.141-6.14a1.929 1.929 0 012.729 0 .965.965 0 101.364-1.364zm-2.047 2.047a.964.964 0 00-1.364 0l-6.14 6.141a1.929 1.929 0 11-2.729-2.729l6.022-6.022a1.929 1.929 0 00-2.729 0L3.13 9.271a3.86 3.86 0 005.458 5.458l6.14-6.141a.963.963 0 00.001-1.364z"})));break;case"stumbleupon":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12 4.294a4.471 4.471 0 00-4.471 4.471v6.353a1.059 1.059 0 11-2.118 0v-2.824H2v2.941a4.471 4.471 0 008.942 0v-6.47a1.059 1.059 0 112.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0012 4.294zm1.059 8.059v2.882a4.471 4.471 0 008.941 0v-2.824h-3.412v2.824a1.059 1.059 0 11-2.118 0v-2.882l-2 .647-1.411-.647z"})));break;case"telegram":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486-.15-.475-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238l-1.786 9.004z"})));break;case"threads":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{viewBox:"0 0 192 192",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{class:"x19hqcy",d:"M141.537 88.988a66.667 66.667 0 00-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.553zM98.44 129.507c-10.44.588-21.286-4.098-21.82-14.135-.397-7.442 5.296-15.746 22.461-16.735 1.966-.114 3.895-.169 5.79-.169 6.235 0 12.068.606 17.371 1.765-1.978 24.702-13.58 28.713-23.802 29.274z"})));break;case"tiktok-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M5 3a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2H5zm7.531 3h2.053s-.114 2.635 2.85 2.82v2.04s-1.582.099-2.85-.87l.021 4.207a3.804 3.804 0 11-3.802-3.802h.533v2.082a1.73 1.73 0 00-1.922.648 1.727 1.727 0 001.947 2.646 1.73 1.73 0 001.19-1.642L12.53 6z"})));break;case"tiktok":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.011a6.338 6.338 0 11-6.34-6.338h.89v3.472a2.882 2.882 0 102.024 2.752L12.22 2z"})));break;case"tumblr-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.126l-.924-2.743z"})));break;case"tumblr":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-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.656z"})));break;case"twitch":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M16.499 8.089h-1.636v4.91h1.636v-4.91zm-4.499 0h-1.637v4.91H12v-4.91zM4.228 3.178L3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178H4.228zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501v9.002z"})));break;case"twitter-alt":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M22.23 5.924a8.212 8.212 0 01-2.357.646 4.115 4.115 0 001.804-2.27 8.221 8.221 0 01-2.606.996 4.103 4.103 0 00-6.991 3.742 11.647 11.647 0 01-8.457-4.287 4.087 4.087 0 00-.556 2.063 4.1 4.1 0 001.825 3.415 4.09 4.09 0 01-1.859-.513v.052a4.104 4.104 0 003.292 4.023 4.099 4.099 0 01-1.853.07 4.11 4.11 0 003.833 2.85 8.236 8.236 0 01-5.096 1.756 8.33 8.33 0 01-.979-.057 11.617 11.617 0 006.29 1.843c7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.531a8.298 8.298 0 002.047-2.123z"})));break;case"twitter":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-2.534 6.71c.004.099.007.198.007.298 0 3.045-2.318 6.556-6.556 6.556a6.52 6.52 0 01-3.532-1.035 4.626 4.626 0 003.412-.954 2.307 2.307 0 01-2.152-1.6 2.295 2.295 0 001.04-.04 2.306 2.306 0 01-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 01-.713-3.076 6.54 6.54 0 004.749 2.407 2.305 2.305 0 013.926-2.101 4.602 4.602 0 001.463-.559 2.31 2.31 0 01-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192z"})));break;case"vimeo":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M22.396 7.164c-.093 2.026-1.507 4.799-4.245 8.32C15.322 19.161 12.928 21 10.97 21c-1.214 0-2.24-1.119-3.079-3.359l-1.68-6.159c-.623-2.239-1.29-3.36-2.005-3.36-.156 0-.701.328-1.634.98l-.978-1.261c1.027-.902 2.04-1.805 3.037-2.708C6.001 3.95 7.03 3.327 7.715 3.264c1.619-.156 2.616.951 2.99 3.321.404 2.557.685 4.147.841 4.769.467 2.121.981 3.181 1.542 3.181.435 0 1.09-.688 1.963-2.065.871-1.376 1.338-2.422 1.401-3.142.125-1.187-.343-1.782-1.401-1.782-.498 0-1.012.115-1.541.341 1.023-3.35 2.977-4.977 5.862-4.884 2.139.063 3.148 1.45 3.024 4.161z"})));break;case"whatsapp":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M2.048 22l1.406-5.136a9.894 9.894 0 01-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.848 9.848 0 017.011 2.906 9.85 9.85 0 012.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.913 9.913 0 01-4.736-1.206L2.048 22zm5.497-3.172l.301.179a8.214 8.214 0 004.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.189 8.189 0 00-2.41-5.828 8.182 8.182 0 00-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.222 8.222 0 001.259 4.384l.196.312-.832 3.04 3.118-.819zm9.49-4.554c-.062-.103-.227-.165-.475-.289-.248-.124-1.465-.723-1.692-.806-.227-.083-.392-.124-.557.124-.165.248-.64.806-.784.971-.144.165-.289.186-.536.062-.248-.124-1.046-.385-1.991-1.229-.736-.657-1.233-1.468-1.378-1.715-.144-.248-.015-.382.109-.505.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413.083-.165.041-.31-.021-.434s-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.91.91 0 00-.66.31c-.226.248-.866.847-.866 2.066 0 1.219.887 2.396 1.011 2.562.124.165 1.746 2.666 4.23 3.739.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.179z"})));break;case"woocommerce":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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-3zm-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-.6.5 0 .8.3.9.9.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.2.2.2.3.4.3.6s0 .4-.1.5z"})));break;case"wordpress":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M12.158 12.786L9.46 20.625a8.984 8.984 0 005.526-.144.852.852 0 01-.065-.124l-2.763-7.571zM3.009 12a8.993 8.993 0 005.067 8.092L3.788 8.341A8.952 8.952 0 003.009 12zm15.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.596.04 0 .078.005.116.007A8.963 8.963 0 0012 3.009a8.982 8.982 0 00-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.996c.456-1.169.684-2.137.684-2.907zm1.82-3.86c.039.286.06.593.06.924 0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.984 8.984 0 004.47-7.771 8.922 8.922 0 00-1.1-4.313zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})));break;case"x":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M13.982 10.622L20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378zm-2.128 2.474l-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787z"})));break;case"xanga":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.createElement("path",{d:"M9 9h6v6H9V9zM3 9h6V3H3v6zm12 0h6V3h-6v6zm0 12h6v-6h-6v6zM3 21h6v-6H3v6z"})));break;case"youtube":e=i.default.createElement("svg",l({className:u,height:n,width:n,onClick:s},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),i.default.createElement("g",null,i.default.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.237zM9.935 14.594l-.001-5.62 5.404 2.82-5.403 2.8z"})))}return e}}]),t}(i.PureComponent);t.Z=f,g(f,"defaultProps",{size:24}),g(f,"propTypes",{icon:r.default.string.isRequired,size:r.default.number,onClick:r.default.func,className:r.default.string})},407:function(e,t,n){"use strict";var s,a=n(37148);e=n.hmd(e),s="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;var i=(0,a.Z)(s);t.Z=i},37148:function(e,t,n){"use strict";function s(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,{Z:function(){return s}})},58750:function(e,t,n){"use strict";n.d(t,{EB:function(){return w},ht:function(){return _}});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"],a=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,n){var s=Array.prototype.slice.apply(e.querySelectorAll(a));return t&&r.call(e,a)&&s.unshift(e),s=s.filter(n)},l=function e(t,n,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,a)&&s.filter(c)&&(n||!t.includes(c))&&i.push(c);var u=c.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(c),d=!s.shadowRootFilter||s.shadowRootFilter(c);if(u&&d){var m=e(!0===u?c.children:u.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},u=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},d=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||o(e),s=function(e){return n.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 a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!a||a===e}(e)},h=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return 0===n&&0===s},g=function(e,t){return!(t.disabled||function(e){return d(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(a,"details:not([open]) *"))return!0;var i=o(e).host,c=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return h(e)}else{if("function"==typeof s){for(var l=e;e;){var p=e.parentElement,u=o(e);if(p&&!p.shadowRoot&&!0===s(p))return h(e);e=e.assignedSlot?e.assignedSlot:p||u===e.ownerDocument?p:u.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 n=0;n<t.children.length;n++){var s=t.children.item(n);if("LEGEND"===s.tagName)return!!r.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},f=function(e,t){return!(m(t)||p(t)<0||!g(e,t))},k=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},v=function e(t){var n=[],s=[];return t.forEach((function(t,a){var i=!!t.scope,r=i?t.scope:t,o=p(r,i),c=i?e(t.candidates):r;0===o?i?n.push.apply(n,c):n.push(r):s.push({documentOrder:a,tabIndex:o,item:t,isScope:i,content:c})})),s.sort(u).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:f.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:k}):c(e,t.includeContainer,f.bind(null,t)),v(n)},E=s.concat("iframe").join(","),w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,E)&&g(t,e)}},6975:function(e,t,n){"use strict";var s=n(51128);const a=n.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,n){o.setUser(e,t),o.setSuperProps(n),o.identifyUser()},setGoogleAnalyticsEnabled:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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 n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);o.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);a("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),a('Built stat "%s" in group "%s"',t,e);return n}(e,t);o.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){o.tracks.recordPageView(e),o.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,a,i,r){o.ga.recordPurchase(e,t,n,s,a,i,r)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(i&&(a("- Super Props: %o",i),t=Object.assign(t,i)),a('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):a('- 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){a("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(),a("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,n,s){o.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==s&&(i+=" [Option Value: "+s+"]"),a(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,a,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:n,price:a,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"])}};t.Z=o},64743:function(e,t,n){"use strict";var s=n(61132),a=n(96483);function i(e){class t extends Error{constructor(){super(...arguments),this.name=e}}return t}const r=i("JsonParseError"),o=i("JsonParseAfterRedirectError"),c=i("Api404Error"),l=i("Api404AfterRedirectError"),p=i("FetchNetworkError");const u=new function(e,t){let n=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("?"),n=t.length>1?t[1]:"",s=n.length?n.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const p={setApiRoot(e){n=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)=>{const a={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(a.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(a.redirect_uri=t),h(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(a)}).then(d).then(m)},fetchAuthorizationUrl:e=>u((0,a.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),o).then(d).then(m),fetchSiteConnectionData:()=>u(`${n}jetpack/v4/connection/data`,o).then(m),fetchSiteConnectionStatus:()=>u(`${n}jetpack/v4/connection`,o).then(m),fetchSiteConnectionTest:()=>u(`${n}jetpack/v4/connection/test`,o).then(d).then(m),fetchUserConnectionData:()=>u(`${n}jetpack/v4/connection/data`,o).then(m),fetchUserTrackingSettings:()=>u(`${n}jetpack/v4/tracking/settings`,o).then(d).then(m),updateUserTrackingSettings:e=>h(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(d).then(m),disconnectSite:()=>h(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(d).then(m),fetchConnectUrl:()=>u(`${n}jetpack/v4/connection/url`,o).then(d).then(m),unlinkUser:()=>h(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify({linked:!1})}).then(d).then(m),reconnect:()=>h(`${n}jetpack/v4/connection/reconnect`,c).then(d).then(m),fetchConnectedPlugins:()=>u(`${n}jetpack/v4/connection/plugins`,o).then(d).then(m),setHasSeenWCConnectionModal:()=>h(`${n}jetpack/v4/seen-wc-connection-modal`,c).then(d).then(m),fetchModules:()=>u(`${n}jetpack/v4/module/all`,o).then(d).then(m),fetchModule:e=>u(`${n}jetpack/v4/module/${e}`,o).then(d).then(m),activateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(d).then(m),deactivateModule:e=>h(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>h(`${n}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(d).then(m),updateSettings:e=>h(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(d).then(m),getProtectCount:()=>u(`${n}jetpack/v4/module/protect/data`,o).then(d).then(m),resetOptions:e=>h(`${n}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(d).then(m),activateVaultPress:()=>h(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(d).then(m),getVaultPressData:()=>u(`${n}jetpack/v4/module/vaultpress/data`,o).then(d).then(m),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),h(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(s)}).then(d).then(m)},activateAkismet:()=>h(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(d).then(m),getAkismetData:()=>u(`${n}jetpack/v4/module/akismet/data`,o).then(d).then(m),checkAkismetKey:()=>u(`${n}jetpack/v4/module/akismet/key/check`,o).then(d).then(m),checkAkismetKeyTyped:e=>h(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(d).then(m),fetchStatsData:e=>u(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),o).then(d).then(m).then(f),getPluginUpdates:()=>u(`${n}jetpack/v4/updates/plugins`,o).then(d).then(m),getPlans:()=>u(`${n}jetpack/v4/plans`,o).then(d).then(m),fetchSettings:()=>u(`${n}jetpack/v4/settings`,o).then(d).then(m),updateSetting:e=>h(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(d).then(m),fetchSiteData:()=>u(`${n}jetpack/v4/site`,o).then(d).then(m).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>u(`${n}jetpack/v4/site/features`,o).then(d).then(m).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>u(`${n}jetpack/v4/site/products`,o).then(d).then(m),fetchSitePurchases:()=>u(`${n}jetpack/v4/site/purchases`,o).then(d).then(m).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>u(`${n}jetpack/v4/site/benefits`,o).then(d).then(m).then((e=>JSON.parse(e.data))),fetchSiteDiscount:()=>u(`${n}jetpack/v4/site/discount`,o).then(d).then(m).then((e=>e.data)),fetchSetupQuestionnaire:()=>u(`${n}jetpack/v4/setup/questionnaire`,o).then(d).then(m),fetchRecommendationsData:()=>u(`${n}jetpack/v4/recommendations/data`,o).then(d).then(m),fetchRecommendationsProductSuggestions:()=>u(`${n}jetpack/v4/recommendations/product-suggestions`,o).then(d).then(m),fetchRecommendationsUpsell:()=>u(`${n}jetpack/v4/recommendations/upsell`,o).then(d).then(m),fetchRecommendationsConditional:()=>u(`${n}jetpack/v4/recommendations/conditional`,o).then(d).then(m),saveRecommendationsData:e=>h(`${n}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(d),fetchProducts:()=>u(`${n}jetpack/v4/products`,o).then(d).then(m),fetchRewindStatus:()=>u(`${n}jetpack/v4/rewind`,o).then(d).then(m).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>u(`${n}jetpack/v4/scan`,o).then(d).then(m).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>h(`${n}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(d).then(m),fetchPluginsData:()=>u(`${n}jetpack/v4/plugins`,o).then(d).then(m),fetchIntroOffers:()=>u(`${n}jetpack/v4/intro-offers`,o).then(d).then(m),fetchVerifySiteGoogleStatus:e=>u(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,o).then(d).then(m),verifySiteGoogle:e=>h(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(d).then(m),submitSurvey:e=>h(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(d).then(m),saveSetupQuestionnaire:e=>h(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(d).then(m),updateLicensingError:e=>h(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(d).then(m),updateLicenseKey:e=>h(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(d).then(m),getUserLicensesCounts:()=>u(`${n}jetpack/v4/licensing/user/counts`,o).then(d).then(m),getUserLicenses:()=>u(`${n}jetpack/v4/licensing/user/licenses`,o).then(d).then(m),updateLicensingActivationNoticeDismiss:e=>h(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(d).then(m),updateRecommendationsStep:e=>h(`${n}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(d),confirmIDCSafeMode:()=>h(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(d),startIDCFresh:e=>h(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(d).then(m),migrateIDC:()=>h(`${n}jetpack/v4/identity-crisis/migrate`,c).then(d),attachLicenses:e=>h(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(d).then(m),fetchSearchPlanInfo:()=>u(`${i}jetpack/v4/search/plan`,o).then(d).then(m),fetchSearchSettings:()=>u(`${i}jetpack/v4/search/settings`,o).then(d).then(m),updateSearchSettings:e=>h(`${i}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(d).then(m),fetchSearchStats:()=>u(`${i}jetpack/v4/search/stats`,o).then(d).then(m),fetchWafSettings:()=>u(`${n}jetpack/v4/waf`,o).then(d).then(m),updateWafSettings:e=>h(`${n}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(d).then(m),fetchWordAdsSettings:()=>u(`${n}jetpack/v4/wordads/settings`,o).then(d).then(m),updateWordAdsSettings:e=>h(`${n}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>u(`${i}jetpack/v4/search/pricing`,o).then(d).then(m),fetchMigrationStatus:()=>u(`${n}jetpack/v4/migration/status`,o).then(d).then(m),fetchBackupUndoEvent:()=>u(`${n}jetpack/v4/site/backup/undo-event`,o).then(d).then(m)};function u(e,t){return fetch(l(e),t)}function h(e,t,n){return fetch(e,Object.assign({},t,n)).catch(g)}function f(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 d(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 n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function m(e){return e.json().catch((t=>h(t,e.redirected,e.url)))}function h(e,t,n){throw t?new o(n):new r}function g(){throw new p}t.ZP=u},62264:function(e,t,n){"use strict";n.d(t,{M:function(){return r}});var s=n(65736),a=n(65146),i=n(36873);const __=s.__;class r extends Error{constructor(e,t,n){super(),this.httpCode=e,this.body=t,this.parseError=n}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) */ | |
| 3 | -__("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 */ | |
| 4 | -__("HTTP %d error received while communicating with the server.","jetpack"),this.httpCode)}getDisplayBody(){return(0,i.b)(this.body)?JSON.stringify(this.body,null," "):(0,a.x)(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return __("Your site's REST API does not seem to be accessible. Jetpack Boost requires access to your REST API in order to receive site performance scores. Please make sure that your site's REST API is active and accessible, and try again.","jetpack")}}},38426:function(e,t,n){"use strict";var s=n(65736),a=n(62264),i=n(60259);const __=s.__;async function r(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const r={method:e,mode:"cors",headers:{"X-WP-Nonce":arguments.length>4?arguments[4]:void 0}};"post"!==e&&"delete"!==e||!a||(r.body=JSON.stringify(a),r.headers["Content-Type"]="application/json");const o=function(e,t){return t+i.N+i.L+e}(n,t);let c;try{c=await fetch(o,r)}catch(e){const t=r;delete t.body,delete t.headers["X-WP-Nonce"];const n={requestInitiator:window.location.href,requestUrl:o,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 */ | |
| 5 | -__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack"),JSON.stringify(n)))}return c}async function o(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0;const o=await r(e,t,n,s,i);let c,l;try{c=await o.text()}catch(e){throw new a.M(o.status,null,e)}try{l=JSON.parse(c)}catch(e){throw new a.M(o.status,c,e)}if(!o.ok)throw new a.M(o.status,l,null);return l}t.Z={get:function(e,t,n){return o("get",e,t,null,n)},post:function(e,t){return o("post",e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0)}}},60259:function(e,t,n){"use strict";n.d(t,{L:function(){return a},N:function(){return s}});const s="jetpack-boost/v1",a=""},60128:function(e,t,n){"use strict";n.d(t,{tZ:function(){return d},yn:function(){return h}});var s=n(65736),a=n(38426),i=n(41061),r=n(65146),o=n(36873),c=n(62653),l=n(32893);const __=s.__,p=12e4,u=5e3;async function d(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;const i=m(await a.Z.post(t,e?"/speed-scores/refresh":"/speed-scores",{url:n},s));return i.scores?i.scores:await async function(e,t,n){return(0,c.Z)({timeout:p,interval:u,timeoutError:__("Timed out while waiting for speed-score.","jetpack"),callback:async s=>{const i=m(await a.Z.post(e,"/speed-scores",{url:t},n));i.scores&&s(i.scores)}})}(t,n,s)}function m(e){if(e.error){const t=__("An unknown error occurred while requesting metrics","jetpack");throw(0,l.V)(e.error,t)}if((0,o.b)(e.scores))return{status:"success",scores:{current:(0,o.b)(e.scores.current)?{mobile:(0,i.W)(e.scores.current.mobile,0),desktop:(0,i.W)(e.scores.current.desktop,0)}:{mobile:0,desktop:0},noBoost:(0,o.b)(e.scores.noBoost)?{mobile:(0,i.W)(e.scores.noBoost.mobile,0),desktop:(0,i.W)(e.scores.noBoost.desktop,0)}:null,isStale:!!e.scores.isStale}};const t=(0,r.x)(e.status);if(!t)throw new Error(__("Invalid response while requesting metrics","jetpack"));return{status:t}}function h(e,t){const n=(e+t)/2;return n>90?"A":n>75?"B":n>50?"C":n>35?"D":n>25?"E":"F"}},41061:function(e,t,n){"use strict";function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if("number"==typeof e)return e;if("string"==typeof e){const t=parseFloat(e);if(!isNaN(t))return t}return t}n.d(t,{W:function(){return s}})},65146:function(e,t,n){"use strict";function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return"string"==typeof e?e:e&&e.toString instanceof Function?e.toString():t}n.d(t,{x:function(){return s}})},36873:function(e,t,n){"use strict";function s(e){return!!e&&e instanceof Object&&!(e instanceof Array)}n.d(t,{b:function(){return s}})},62653:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(65736);const __=s.__;async function a(e){let t,n,{interval:s,callback:a,timeout:i,timeoutError:r}=e;return new Promise(((e,o)=>{t=setTimeout((()=>{o(new Error(r||__("Timed out","jetpack")))}),i||12e4),n=setInterval((async()=>{try{await Promise.resolve(a(e))}catch(e){o(e)}}),s)})).finally((()=>{clearTimeout(t),clearInterval(n)}))}},32893:function(e,t,n){"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))}n.d(t,{V:function(){return s}})},67121:function(e,t,n){"use strict";var s=n(55609),a=n(65736),i=n(65235),r=n.n(i),o=n(15844),c=n.n(o),l=n(99196),p=n.n(l),u=n(90526),d=n(86508);const __=a.__,m=e=>{const{label:t,onClick:n,isLoading:a,isDisabled:i,displayError:o,errorMessage:c}=e;return p().createElement(p().Fragment,null,p().createElement(u.Z,{className:r()(d.Z.button,"jp-action-button--button"),label:t,onClick:n,variant:"primary",disabled:a||i},a?p().createElement(s.Spinner,null):t),o&&p().createElement("p",{className:r()(d.Z.error,"jp-action-button__error")},c))};m.propTypes={label:c().string.isRequired,onClick:c().func,isLoading:c().bool,isDisabled:c().bool,displayError:c().bool,errorMessage:c().oneOfType([c().string,c().element])},m.defaultProps={isLoading:!1,displayError:!1,errorMessage:__("An error occurred. Please try again.","jetpack")},t.Z=m},37525:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(65235),o=n.n(r),c=n(99196),l=n.n(c);const __=i.__;t.Z=e=>{let{title:t=__("An Automattic Airline","jetpack"),height:n=7,className:s,...i}=e;return l().createElement("svg",a()({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:n,className:o()("jp-automattic-byline-logo",s)},i),l().createElement("desc",{id:"jp-automattic-byline-logo-title"},t),l().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"}),l().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"}),l().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))}},14186:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(67172);n(17472);const __=s.__;t.Z=e=>{let{score:t,isLoading:n,showPrevScores:s,active:a,prevScore:o=0,scoreBarType:c,noBoostScoreTooltip:l}=e;if(!a)return null;const p=o/t*100,u=__("Desktop score","jetpack"),d=__("Mobile score","jetpack");return React.createElement("div",{className:i()("jb-score-bar",`jb-score-bar--${c}`)},React.createElement("div",{className:"jb-score-bar__label"},"desktop"===c?React.createElement(r.Z,{icon:"computer",size:24}):React.createElement(r.Z,{icon:"phone",size:24}),React.createElement("div",null,"desktop"===c?u:d)),React.createElement("div",{className:"jb-score-bar__bounds"},React.createElement("div",{className:i()("jb-score-bar__filler",n&&!t?"fill-loading":t>70?"fill-good":t>50?"fill-mediocre":"fill-bad"),style:{width:`${t}%`}},n?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"},t),s&&!!o&&o<t&&React.createElement("div",{className:"jb-score-bar__no_boost_score",style:{left:`min(${p}%, calc( 100% - var(--clearance-space))`}},o,l&&React.createElement("div",{role:"tooltip",className:"jb-score-bar__no_boost_score_tooltip"},l)))))}},90526:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(55609),r=n(61074),o=n(15381),c=n(65235),l=n.n(c),p=n(99196),u=n.n(p),d=n(62103);const m=(0,p.forwardRef)(((e,t)=>{const{children:n,variant:s="primary",size:c="normal",weight:p="bold",icon:m,iconSize:h,disabled:g,isDestructive:f,isLoading:k,isExternalLink:v,className:_,text:E,fullWidth:w,...b}=e,y=l()(d.Z.button,_,{[d.Z.normal]:"normal"===c,[d.Z.small]:"small"===c,[d.Z.icon]:Boolean(m),[d.Z.loading]:k,[d.Z.regular]:"regular"===p,[d.Z["full-width"]]:w,[d.Z["is-icon-button"]]:Boolean(m)&&!n});b.ref=t;const j="normal"===c?20:16,C=v&&u().createElement(r.Z,{size:j,icon:o.Z,className:d.Z["external-icon"]}),S=v?"_blank":void 0,N=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className;return u().createElement(i.Button,a()({target:S,variant:s,className:l()(y,{"has-text":!!m&&N}),icon:v?void 0:m,iconSize:h,disabled:g,"aria-disabled":g,isDestructive:f,text:E},b),k&&u().createElement(i.Spinner,null),u().createElement("span",null,n),C)}));m.displayName="Button",t.Z=m},69026:function(e,t,n){"use strict";n(46172);t.Z=e=>{let{format:t="horizontal",icon:n,imageUrl:s}=e;return React.createElement("div",{className:"jp-components__decorative-card "+(t?"jp-components__decorative-card--"+t:"")},React.createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:s?`url( ${s} )`:""}}),React.createElement("div",{className:"jp-components__decorative-card__content"},React.createElement("div",{className:"jp-components__decorative-card__lines"})),n?React.createElement("div",{className:"jp-components__decorative-card__icon-container"},React.createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+n})):null)}},67172:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(99196);n(53351);const __=s.__;class o extends r.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"}))}}render(){const{size:e=24,className:t=""}=this.props,n=this.props.height||e,s=this.props.width||e,a=this.props.style||{height:n,width:s},r="gridicons-"+this.props.icon,o=i()("gridicon",r,t,{"needs-offset":this.needsOffset(r,e)}),c=this.getSVGDescription(r);return React.createElement("svg",{className:o,focusable:this.props.focusable,height:n,onClick:this.props.onClick,style:a,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))}}t.Z=o},3396:function(e,t,n){"use strict";n.d(t,{VS:function(){return d},av:function(){return m}});var s=n(82674),a=n.n(s),i=n(55609),r=n(65235),o=n.n(r),c=n(92659),l=n(45460);const p=e=>{let{className:t,size:n=24,viewBox:s="0 0 24 24",opacity:r=1,color:c="#2C3338",children:p}=e;const u={className:o()(l.Z.iconWrapper,t),width:n,height:n,viewBox:s,opacity:r,fill:void 0};return c&&(u.fill=c),React.createElement(i.SVG,a()({},u,{fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg"}),React.createElement(i.G,{opacity:r},p))},u={...{"anti-spam":e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,className:s,color:a}=e;return React.createElement(p,{className:s,size:n,opacity:t,color:a},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{size:t,className:n=l.Z["star-icon"],color:s}=e;return React.createElement(p,{className:n,size:t,color:s},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:e=>{let{opacity:t=1,size:n,color:s}=e;return React.createElement(p,{size:n,opacity:t,color:s},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:e=>{let{size:t,className:n=l.Z.jetpack,color:s}=e;return React.createElement(p,{className:n,size:t,color:s,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:e=>{let{size:t=16,className:n,color:s}=e;return React.createElement(p,{className:n,size:t,color:s,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"}))}}};function d(e){return u[e]?u[e]:null}const m=e=>{let{serviceName:t,className:n}=e;return React.createElement(c.Z,{className:o()(l.Z.socialIcon,l.Z[t],n),icon:t})}},38237:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(9818),r=n(65736),o=n(61074),c=n(15381),l=n(65235),p=n.n(l),u=n(99196),d=n.n(u),m=n(6895),h=n(80428),g=n(37525),f=(n(33527),n(78868)),k=n(32054);const __=r.__,_x=r._x,v=()=>d().createElement(f.Z,{logoColor:"#000",showText:!1,height:16,"aria-hidden":"true"});t.Z=e=>{let{moduleName:t=__("Jetpack","jetpack"),className:n,moduleNameHref:s="https://jetpack.com",menu:r,siteAdminUrl:l,onAboutClick:u,onPrivacyClick:f,onTermsClick:_,...E}=e;const[w]=(0,k.Z)("sm","<="),[b]=(0,k.Z)("md","<="),[y]=(0,k.Z)("lg",">"),{isActive:j,connectedPlugins:C}=(0,i.useSelect)((e=>{const t=e(h.t);return{connectedPlugins:t?.getConnectedPlugins(),...t.getConnectionStatus()}}),[h.t]),S=l&&j&&C?.some((e=>{let{slug:t}=e;return"jetpack"===t}));let N=[{label:_x("About","Link to learn more about Jetpack.","jetpack"),title:__("About Jetpack","jetpack"),href:S?new URL("admin.php?page=jetpack_about",l).href:(0,m.Z)("jetpack-about"),target:"_blank",onClick:u},{label:_x("Privacy","Shorthand for Privacy Policy.","jetpack"),title:__("Automattic's Privacy Policy","jetpack"),href:S?new URL("admin.php?page=jetpack#/privacy",l).href:(0,m.Z)("a8c-privacy"),target:S?"_self":"_blank",onClick:f},{label:_x("Terms","Shorthand for Terms of Service.","jetpack"),title:__("WordPress.com Terms of Service","jetpack"),href:(0,m.Z)("wpcom-tos"),target:"_blank",onClick:_}];r&&(N=[...N,...r]);const x=d().createElement(d().Fragment,null,d().createElement(v,null),t);return d().createElement("footer",a()({className:p()("jp-dashboard-footer",{"is-sm":w,"is-md":b,"is-lg":y},n),"aria-label":__("Jetpack","jetpack")},E),d().createElement("ul",null,d().createElement("li",{className:"jp-dashboard-footer__jp-item"},s?d().createElement("a",{href:s},x):x),N.map((e=>{const t="button"===e.role,n=!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:p()("jp-dashboard-footer__menu-item",{"is-external":n}),role:e.role,rel:n?"noopener noreferrer":void 0,tabIndex:t?0:void 0},e.label,n&&d().createElement(o.Z,{icon:c.Z,size:16})))})),d().createElement("li",{className:"jp-dashboard-footer__a8c-item"},d().createElement("a",{href:S?new URL("admin.php?page=jetpack_about",l).href:(0,m.Z)("a8c-about"),"aria-label":__("An Automattic Airline","jetpack")},d().createElement(g.Z,{"aria-hidden":"true"})))))}},78868:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(65235),o=n.n(r),c=n(99196),l=n.n(c);const __=i.__;t.Z=e=>{let{logoColor:t="#069e08",showText:n=!0,className:s,height:i=32,...r}=e;const c=n?"0 0 118 32":"0 0 32 32";return l().createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:o()("jetpack-logo",s),"aria-labelledby":"jetpack-logo-title",height:i},r),l().createElement("desc",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack")),l().createElement("path",{fill:t,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"}),n&&l().createElement(l().Fragment,null,l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().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"}),l().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}},73846:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(99196),r=n(31418);const o=Number(r.Z.smCols),c=Number(r.Z.mdCols),l=Number(r.Z.lgCols);t.Z=e=>{const{children:t,tagName:n="div",className:s}=e,p=Math.min(o,"number"==typeof e.sm?e.sm:o),u=Math.min(o,"object"==typeof e.sm?e.sm.start:0),d=Math.min(o,"object"==typeof e.sm?e.sm.end:0),m=Math.min(c,"number"==typeof e.md?e.md:c),h=Math.min(c,"object"==typeof e.md?e.md.start:0),g=Math.min(c,"object"==typeof e.md?e.md.end:0),f=Math.min(l,"number"==typeof e.lg?e.lg:l),k=Math.min(l,"object"==typeof e.lg?e.lg.start:0),v=Math.min(l,"object"==typeof e.lg?e.lg.end:0),_=a()(s,{[r.Z[`col-sm-${p}`]]:!(u&&d),[r.Z[`col-sm-${u}-start`]]:u>0,[r.Z[`col-sm-${d}-end`]]:d>0,[r.Z[`col-md-${m}`]]:!(h&&g),[r.Z[`col-md-${h}-start`]]:h>0,[r.Z[`col-md-${g}-end`]]:g>0,[r.Z[`col-lg-${f}`]]:!(k&&v),[r.Z[`col-lg-${k}-start`]]:k>0,[r.Z[`col-lg-${v}-end`]]:v>0});return(0,i.createElement)(n,{className:_},t)}},13363:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(99196),r=n(87054);t.Z=e=>{let{children:t,fluid:n=!1,tagName:s="div",className:o,horizontalGap:c=1,horizontalSpacing:l=1}=e;const p=(0,i.useMemo)((()=>{const e=`calc( var(--horizontal-spacing) * ${l} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${c} )`}}),[c,l]),u=a()(o,r.Z.container,{[r.Z.fluid]:n});return(0,i.createElement)(s,{className:u,style:p},t)}},32054:function(e,t,n){"use strict";var s=n(94333),a=n(49710);const i=["sm","md","lg"];t.Z=(e,t)=>{const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],[o,c,l]=i,p={sm:(0,s.useMediaQuery)(a.Z[o]),md:(0,s.useMediaQuery)(a.Z[c]),lg:(0,s.useMediaQuery)(a.Z[l])};return n.map(((e,t)=>{const n=r[t];return n?((e,t,n)=>{const s=i.indexOf(e),a=s+1,r=t.includes("=");let o=[];return t.startsWith("<")&&(o=i.slice(0,r?a:s)),t.startsWith(">")&&(o=i.slice(r?s:a)),o?.length?o.some((e=>n[e])):n[e]})(e,n,p):p[e]}))}},41342:function(e,t,n){"use strict";var s=n(30797),a=n(90496),i=n(79201),r=n(61074),o=n(39517),c=n(65235),l=n.n(c),p=n(99196),u=n.n(p),d=n(12077);const m=e=>{switch(e){case"error":case"warning":default:return s.Z;case"info":return a.Z;case"success":return i.Z}},h=e=>{let{level:t,title:n,children:s,actions:a,hideCloseButton:i,onClose:c}=e;const p=l()(d.Z.container,d.Z[`is-${t}`]);return u().createElement("div",{className:p},u().createElement("div",{className:d.Z["icon-wrapper"]},u().createElement(r.Z,{icon:m(t),className:d.Z.icon})),u().createElement("div",{className:d.Z["main-content"]},u().createElement("div",{className:d.Z.title},n),s,a&&a.length>0&&u().createElement("div",{className:d.Z["action-bar"]},a.map(((e,t)=>u().createElement("div",{key:t,className:d.Z.action},e))))),!i&&u().createElement("button",{"aria-label":"close",className:d.Z["close-button"],onClick:c},u().createElement(r.Z,{icon:o.Z})))};h.defaultProps={level:"info",hideCloseButton:!1},t.Z=h},52947:function(e,t,n){"use strict";var s=n(98709);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,s.X)();return new Intl.NumberFormat(n,t).format(e)}},25347:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(45106),o=n(33789),c=n(37387);const __=s.__;t.Z=e=>{let{price:t,offPrice:n,currency:s="",showNotOffPrice:a=!0,hideDiscountLabel:l=!0,promoLabel:p="",legend:u=__("/month, paid yearly","jetpack"),isNotConvenientPrice:d=!1,hidePriceFraction:m=!1,children:h}=e;if(null==t&&null==n||!s)return null;a=a&&null!=n;const g="number"==typeof t&&"number"==typeof n?Math.floor((t-n)/t*100):0,f=!l&&g&&g>0?g+__("% off","jetpack"):null;return React.createElement(React.Fragment,null,React.createElement("div",{className:c.Z.container},React.createElement("div",{className:i()(c.Z["price-container"],"product-price_container")},React.createElement(o.t,{value:n??t,currency:s,isOff:!d,hidePriceFraction:m}),a&&React.createElement(o.t,{value:t,currency:s,isOff:!1,hidePriceFraction:m}),f&&React.createElement(r.ZP,{className:i()(c.Z["promo-label"],"product-price_promo_label")},f))),React.createElement("div",{className:c.Z.footer},h||React.createElement(r.ZP,{className:i()(c.Z.legend,"product-price_legend")},u),p&&React.createElement(r.ZP,{className:i()(c.Z["promo-label"],"product-price_promo_label")},p)))}},33789:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var s=n(25607),a=n(65235),i=n.n(a),r=n(45106),o=n(37387);const c=e=>{let{value:t,currency:n,isOff:a,hidePriceFraction:c}=e;const l=i()(o.Z.price,"product-price_price",{[o.Z["is-not-off-price"]]:!a}),{symbol:p,integer:u,fraction:d}=(0,s.LR)(t,n),m=!c||!d.endsWith("00");return React.createElement(r.ZP,{className:l,variant:"headline-medium",component:"p"},React.createElement(r.ZP,{className:o.Z.symbol,component:"sup",variant:"title-medium"},p),u,m&&React.createElement(r.ZP,{component:"sup",variant:"body-small","data-testid":"PriceFraction"},React.createElement("strong",null,d)))}},94343:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(11334);t.Z=e=>{let{className:t,progressClassName:n,progress:s,size:r="normal"}=e;if(null==s)return null;const o={width:100*Math.max(Math.min(s,1),0)+"%"};return React.createElement("div",{className:a()(t,i.Z.wrapper,{[i.Z.small]:"small"===r})},React.createElement("div",{className:a()(n,i.Z.progress),style:o}))}},43521:function(e,t,n){"use strict";var s=n(65736),a=n(99196),i=n.n(a),r=n(52947);n(34086);const __=s.__;t.Z=e=>{let{totalCount:t,items:n=[],showLegendLabelBeforeCount:s=!1,sortByCount:o}=e;const c=(0,a.useMemo)((()=>t||n.reduce(((e,t)=>{let{count:n}=t;return e+n}),0)),[n,t]),l=(0,a.useMemo)((()=>o?[...n].sort(((e,t)=>"ascending"===o?e.count-t.count:t.count-e.count)):n),[n,o]);return i().createElement("div",{className:"record-meter-bar"},i().createElement("div",{className:"record-meter-bar__items","aria-hidden":"true"},l.map((e=>{let{count:t,label:n,backgroundColor:s}=e;const a=(t/c*100).toPrecision(2);return i().createElement("div",{key:n,style:{backgroundColor:s,flexBasis:`${a}%`}})}))),i().createElement("div",{className:"record-meter-bar__legend","aria-hidden":"true"},i().createElement("ul",{className:"record-meter-bar__legend--items"},l.map((e=>{let{count:t,label:n,backgroundColor:a}=e;const o=(0,r.Z)(t);return i().createElement("li",{key:n,className:"record-meter-bar__legend--item"},i().createElement("div",{className:"record-meter-bar__legend--item-circle",style:{backgroundColor:a}}),!s&&i().createElement("span",null,i().createElement("span",{className:"record-meter-bar__legend--item-count"},o),i().createElement("span",{className:"record-meter-bar__legend--item-label"},n)),s&&i().createElement("span",null,i().createElement("span",{className:"record-meter-bar__legend--item-label record-meter-bar__legend--item-label-first"},n),i().createElement("span",{className:"record-meter-bar__legend--item-count"},"(",o,")")))})))),i().createElement("table",{className:"screen-reader-text"},i().createElement("caption",null,__("Summary of the records","jetpack")),i().createElement("tbody",null,i().createElement("tr",null,i().createElement("th",{scope:"col"},__("Record type","jetpack")),i().createElement("th",{scope:"col"},__("Record count","jetpack"))),l.map((e=>{let{label:t,count:n}=e;return i().createElement("tr",{key:t},i().createElement("td",null,t),i().createElement("td",null,n))})))))}},45033:function(e,t,n){"use strict";var s=n(15844),a=n.n(s),i=n(99196),r=n.n(i);n(48026);const o=e=>{const t=e.className+" jp-components-spinner",n={width:e.size,height:e.size,fontSize:e.size,borderTopColor:e.color},s={borderTopColor:e.color,borderRightColor:e.color};return r().createElement("div",{className:t},r().createElement("div",{className:"jp-components-spinner__outer",style:n},r().createElement("div",{className:"jp-components-spinner__inner",style:s})))};o.propTypes={color:a().string,className:a().string,size:a().number},o.defaultProps={color:"#FFFFFF",className:"",size:20},t.Z=o},73474:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(45106),o=n(49807);const __=s.__;t.Z=e=>{let{className:t,label:n,status:s="inactive"}=e;const a={active:__("Active","jetpack"),error:__("Error","jetpack"),action:__("Action needed","jetpack"),inactive:__("Inactive","jetpack"),initializing:__("Setting up","jetpack")};return React.createElement(r.ZP,{variant:"body-extra-small",className:i()(o.Z.status,{[o.Z[`is-${s}`]]:s},t)},React.createElement("span",{className:o.Z.status__indicator}),React.createElement("span",{className:o.Z.status__label},n||""===n?n:a[s]))}},37325:function(e,t,n){"use strict";var s=n(69307),a=n(65736),i=n(65235),r=n.n(i),o=n(6895),c=n(45106);n(67660);const __=a.__,l=()=>(0,s.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack"),{tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=e=>{let{agreeButtonLabel:t}=e;return(0,s.createInterpolateElement)((0,a.sprintf)(/* translators: %s is a button label */ | |
| 6 | -__("By clicking the <strong>%s</strong> button, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack"),t),{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=e=>{let{slug:t,children:n}=e;return React.createElement("a",{className:"terms-of-service__link",href:(0,o.Z)(t),rel:"noopener noreferrer",target:"_blank"},n)};t.Z=e=>{let{className:t,multipleButtons:n,agreeButtonLabel:s}=e;return React.createElement(c.ZP,{className:r()(t,"terms-of-service")},n?React.createElement(l,null):React.createElement(p,{agreeButtonLabel:s}))}},66017:function(e,t,n){"use strict";n.d(t,{h:function(){return s},s:function(){return a}});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"},a=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},45106:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(99196),c=n.n(o),l=n(66017),p=n(85837);const u=(0,o.forwardRef)(((e,t)=>{let{variant:n="body",children:s,component:i,className:u,...d}=e;const m=i||l.h[n]||"span",h=(0,o.useMemo)((()=>l.s.reduce(((e,t)=>(void 0!==d[t]&&(e+=p.Z[`${t}-${d[t]}`]+" ",delete d[t]),e)),"")),[d]);return d.ref=t,c().createElement(m,a()({className:r()(p.Z.reset,p.Z[n],u,h)},d),s)}));u.displayName="Text",t.ZP=u},88275:function(e,t,n){"use strict";var s=n(99196),a=n.n(s),i=n(93468);const r={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},o={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-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={},u=(e,t,n)=>{const s={...r,...o,...c,...l};for(const t in s)e.style.setProperty(t,s[t]);n&&e.classList.add(i.Z.global),t&&(p[t]={provided:!0,root:e})};t.ZP=e=>{let{children:t=null,targetDom:n,id:i,withGlobalStyles:r=!0}=e;const o=(0,s.useRef)(),c=p?.[i]?.provided;return(0,s.useLayoutEffect)((()=>{if(!c)return n?u(n,i,r):void(o?.current&&u(o.current,i,r))}),[n,o,c,i,r]),n?t:a().createElement("div",{ref:o},t)}},48229:function(e,t,n){"use strict";var s=n(55609),a=n(65235),i=n.n(a),r=n(99196),o=n(87999);t.Z=e=>{let{checked:t,className:n,disabled:a,help:c,toggling:l,label:p,onChange:u}=e;const d=void 0!==l?t&&!l||!t&&l:t,m=(0,r.useCallback)((e=>{l||u(e)}),[l,u]);return React.createElement(s.ToggleControl,{checked:d,className:i()(o.Z.toggle,n,{[o.Z["is-toggling"]]:l}),disabled:a,help:c,label:p,onChange:m})}},98709:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var s=n(69771);const a=()=>{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"}},6895:function(e,t,n){"use strict";function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};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}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),s&&(n.calypso_env=s);return"https://jetpack.com/redirect/?"+Object.keys(n).map((e=>e+"="+n[e])).join("&")}n.d(t,{Z:function(){return s}})},16554:function(e,t,n){"use strict";function s(e){return 1===e?.interval_count&&"month"===e?.interval_unit}n.d(t,{Z:function(){return s}})},61132:function(e,t,n){let s={};try{s=n(92787)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const a=e=>s.hasOwnProperty(e);e.exports={jetpackConfigHas:a,jetpackConfigGet:e=>{if(!a(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]}}},14792:function(e,t,n){"use strict";var s=n(67121),a=n(65736),i=n(15844),r=n.n(i),o=n(99196),c=n.n(o),l=n(31294);const __=a.__,p=e=>{const{apiRoot:t,apiNonce:n,connectLabel:a,registrationNonce:i,redirectUri:r,from:o,autoTrigger:p}=e,{handleRegisterSite:u,isRegistered:d,isUserConnected:m,siteIsRegistering:h,userIsConnecting:g,registrationError:f}=(0,l.Z)({registrationNonce:i,redirectUri:r,apiRoot:t,apiNonce:n,autoTrigger:p,from:o});return c().createElement(c().Fragment,null,(!d||!m)&&c().createElement(s.Z,{label:a,onClick:u,displayError:!!f,isLoading:h||g}))};p.propTypes={connectLabel:r().string,apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,from:r().string,redirectUri:r().string.isRequired,registrationNonce:r().string.isRequired,autoTrigger:r().bool},p.defaultProps={connectLabel:__("Connect","jetpack"),redirectUri:null,autoTrigger:!1},t.Z=p},9312:function(e,t,n){"use strict";var s=n(65736),a=n(15844),i=n.n(a),r=n(99196),o=n.n(r),c=n(31294),l=n(71624);const __=s.__,p=e=>{let{title:t,buttonLabel:n,apiRoot:s,apiNonce:a,registrationNonce:i,from:r,redirectUri:p,images:u,children:d,assetBaseUrl:m,autoTrigger:h,footer:g,skipUserConnection:f,logo:k}=e;const{handleRegisterSite:v,siteIsRegistering:_,userIsConnecting:E,registrationError:w,isOfflineMode:b}=(0,c.Z)({registrationNonce:i,redirectUri:p,apiRoot:s,apiNonce:a,autoTrigger:h,from:r,skipUserConnection:f}),y=Boolean(w),j=_||E,C=w?.response?.code;return o().createElement(l.Z,{title:t,images:u,assetBaseUrl:m,buttonLabel:n,handleButtonClick:v,displayButtonError:y,errorCode:C,buttonIsLoading:j,footer:g,isOfflineMode:b,logo:k},d)};p.propTypes={title:i().string,buttonLabel:i().string,apiRoot:i().string.isRequired,apiNonce:i().string.isRequired,registrationNonce:i().string.isRequired,from:i().string,redirectUri:i().string.isRequired,autoTrigger:i().bool,images:i().arrayOf(i().string),assetBaseUrl:i().string,skipUserConnection:i().bool,logo:i().element},p.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack"),buttonLabel:__("Set up Jetpack","jetpack"),images:[],redirectUri:null,autoTrigger:!1,skipUserConnection:!1},t.Z=p},71624:function(e,t,n){"use strict";var s=n(6895),a=n(37325),i=n(67121),r=n(69307),o=n(65736),c=n(15844),l=n.n(c),p=n(99196),u=n.n(p),d=n(18524);n(54590);const __=o.__,m=e=>{const{title:t,images:n,children:o,assetBaseUrl:c,isLoading:l,buttonLabel:p,handleButtonClick:m,displayButtonError:h,errorCode:g,buttonIsLoading:f,footer:k,isOfflineMode:v,logo:_}=e,E=(()=>{switch(g){case"fail_domain_forbidden":case"fail_ip_forbidden":case"fail_domain_tld":case"fail_subdomain_wpcom":case"siteurl_private_ip":return __("Your site host is on a private network. Jetpack can only connect to public sites.","jetpack")}if(v)return(0,r.createInterpolateElement)(__("Unavailable in <a>Offline Mode</a>","jetpack"),{a:u().createElement("a",{href:(0,s.Z)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})})})();return u().createElement(d.Z,{title:t,assetBaseUrl:c,images:n,className:"jp-connection__connect-screen"+(l?" jp-connection__connect-screen__loading":""),logo:_},u().createElement("div",{className:"jp-connection__connect-screen__content"},o,u().createElement("div",{className:"jp-connection__connect-screen__tos"},u().createElement(a.Z,{agreeButtonLabel:p})),u().createElement(i.Z,{label:p,onClick:m,displayError:h||v,errorMessage:E,isLoading:f,isDisabled:v}),k&&u().createElement("div",{className:"jp-connection__connect-screen__footer"},k)))};m.propTypes={title:l().string,images:l().arrayOf(l().string),assetBaseUrl:l().string,isLoading:l().bool,buttonLabel:l().string.isRequired,handleButtonClick:l().func,displayButtonError:l().bool,errorCode:l().string,buttonIsLoading:l().bool,footer:l().node,isOfflineMode:l().bool,logo:l().element},m.defaultProps={isLoading:!1,buttonIsLoading:!1,displayButtonError:!1,errorCode:null,handleButtonClick:()=>{},footer:null,isOfflineMode:!1},t.Z=m},62458:function(e,t,n){"use strict";var s=n(15844),a=n.n(s),i=n(99196),r=n.n(i);const o=e=>{const{images:t,assetBaseUrl:n}=e;if(!t.length)return null;const s=t.map(((e,t)=>r().createElement(r().Fragment,{key:t},r().createElement("img",{src:n+e,alt:""}))));return r().createElement("div",{className:"jp-connection__connect-screen__image-slider"},s)};o.propTypes={images:a().arrayOf(a().string).isRequired,assetBaseUrl:a().string},o.defaultProps={assetBaseUrl:""},t.Z=o},18524:function(e,t,n){"use strict";var s=n(78868),a=n(65235),i=n.n(a),r=n(15844),o=n.n(r),c=n(99196),l=n.n(c),p=n(62458);n(15035);const u=e=>{const{title:t,children:n,className:a,assetBaseUrl:r,images:o,logo:c,rna:u=!1}=e,d=o?.length;return l().createElement("div",{className:i()("jp-connection__connect-screen-layout",d?"jp-connection__connect-screen-layout__two-columns":"",a?" "+a:"")},u&&l().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs"},l().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__green"}),l().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__yellow"}),l().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__blue"})),l().createElement("div",{className:"jp-connection__connect-screen-layout__left"},c||l().createElement(s.Z,null),l().createElement("h2",null,t),n),d?l().createElement("div",{className:"jp-connection__connect-screen-layout__right"},l().createElement(p.Z,{images:o,assetBaseUrl:r})):null)};u.propTypes={title:o().string,className:o().string,images:o().arrayOf(o().string),assetBaseUrl:o().string,logo:o().element},t.Z=u},57879:function(e,t,n){"use strict";var s=n(65736),a=n(15844),i=n.n(a),r=n(99196),o=n.n(r),c=n(14322);const __=s.__,l=e=>{const{connectedPlugins:t,disconnectingPlugin:n}=e,s=(0,r.useMemo)((()=>{if(t){return Object.keys(t).map((e=>Object.assign({slug:e},t[e]))).filter((e=>n!==e.slug))}return[]}),[t,n]);return t&&s.length>0?o().createElement(o().Fragment,null,o().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack"))),o().createElement("div",{className:"jp-connection__disconnect-card__group"},s.map((e=>o().createElement(c.Z,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:i().array,disconnectingPlugin:i().string},t.Z=l},14322:function(e,t,n){"use strict";var s=n(15844),a=n.n(s),i=n(99196),r=n.n(i);n(22202);const o=e=>{const{title:t,value:n,description:s}=e;return r().createElement("div",{className:"jp-connection__disconnect-card card"},r().createElement("div",{className:"jp-connection__disconnect-card__card-content"},r().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},t),(n||s)&&r().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},r().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},n),r().createElement("div",{className:"jp-connection__disconnect-card__card-description"},s))))};o.propTypes={title:a().string,value:a().oneOfType([a().string,a().number]),description:a().string},t.Z=o},16168:function(e,t,n){"use strict";var s=n(6975),a=n(64743),i=n(61132),r=n(55609),o=n(65736),c=n(15844),l=n.n(c),p=n(99196),u=n.n(p),d=(n(52741),n(9015)),m=n(45995),h=n(31702),g=n(61166);const __=o.__,f=e=>{const[t,n]=(0,p.useState)(!1),[o,c]=(0,p.useState)(!1),[l,f]=(0,p.useState)(!1),[k,v]=(0,p.useState)(!1),[_,E]=(0,p.useState)(!1),[w,b]=(0,p.useState)(!1),{apiRoot:y,apiNonce:j,connectedPlugins:C,title:S,pluginScreenDisconnectCallback:N,onDisconnected:x,onError:T,disconnectStepComponent:A,context:P,connectedUser:Z,connectedSiteId:M,isOpen:O,onClose:R}=e;let L="";(0,i.jetpackConfigHas)("consumer_slug")&&(L=(0,i.jetpackConfigGet)("consumer_slug"));const I=(0,p.useMemo)((()=>({context:P,plugin:L})),[P,L]);(0,p.useEffect)((()=>{a.ZP.setApiRoot(y),a.ZP.setApiNonce(j)}),[y,j]),(0,p.useEffect)((()=>{Z&&Z.ID&&Z.login&&s.Z.initialize(Z.ID,Z.login)}),[Z,Z.ID,Z.login]),(0,p.useEffect)((()=>{O&&s.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",I)}),[O,I]),(0,p.useEffect)((()=>{O&&(o?!o||k||_?k&&!_?s.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},I)):_&&s.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},I)):s.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},I)):s.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},I)))}),[O,o,k,_,I]);const z=(0,p.useCallback)((()=>{a.ZP.disconnectSite().then((()=>{n(!1),c(!0)})).catch((e=>{n(!1),f(e),T&&T(e)}))}),[n,c,f,T]),U=(0,p.useCallback)(((e,t)=>{b(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);s.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",t),E(!0),b(!1)})).catch((e=>{s.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},t)),E(!0),b(!1)}))}),[b,E]),D=(0,p.useCallback)((e=>{e&&e.preventDefault(),f(!1),n(!0),"plugins"!==P?z():N&&N(e)}),[f,n,N,P,z]),V=(0,p.useCallback)((e=>s.Z.tracks.recordEvent(e,I)),[I]),F=(0,p.useCallback)((()=>!(!Z.ID||!M)),[Z,M]),B=(0,p.useCallback)(((e,t,n)=>{if(n&&n.preventDefault(),!F())return void E(!0);const s={site_id:M,user_id:Z.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:t||null}}},a=Object.assign({},I,{disconnect_reason:e});U(s,a)}),[U,E,F,M,Z,I]),H=(0,p.useCallback)((e=>{e&&e.preventDefault(),x&&x(),R()}),[x,R]),q=(0,p.useCallback)((e=>{e&&e.preventDefault(),v(!0)}),[v]);return u().createElement(u().Fragment,null,O&&u().createElement(r.Modal,{title:"",contentLabel:S,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:R,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(o?" jp-connection__disconnect-dialog__success":"")},o?!o||k||_?k&&!_?u().createElement(h.Z,{isSubmittingFeedback:w,onFeedBackProvided:B,onExit:H}):_?u().createElement(g.Z,{onExit:H}):void 0:u().createElement(m.Z,{canProvideFeedback:F(),onProvideFeedback:q,onExit:H}):u().createElement(d.Z,{title:S,connectedPlugins:C,disconnectStepComponent:A,isDisconnecting:t,closeModal:R,onDisconnect:D,disconnectError:l,context:P,disconnectingPlugin:L,trackModalClick:V})))};f.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,title:l().string,onDisconnected:l().func,onError:l().func,context:l().string,connectedPlugins:l().oneOfType([l().array,l().object]),pluginScreenDisconnectCallback:l().func,disconnectStepComponent:l().element,connectedUser:l().object,connectedSiteId:l().number,isOpen:l().bool,onClose:l().func},f.defaultProps={title:__("Are you sure you want to disconnect?","jetpack"),context:"jetpack-dashboard",connectedUser:{}},t.Z=f},45995:function(e,t,n){"use strict";var s=n(69026),a=n(55609),i=n(69307),r=n(65736),o=n(15844),c=n.n(o),l=n(99196),p=n.n(l),u=n(62042);const __=r.__,d=e=>{const{onExit:t,canProvideFeedback:n,onProvideFeedback:r}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(s.Z,{icon:"unlink",imageUrl:u}),p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},p().createElement("h1",null,(0,i.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack"),{br:p().createElement("br",null)})),n&&p().createElement(p().Fragment,null,p().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack")),p().createElement("p",null,p().createElement(a.Button,{variant:"primary",onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack"))),p().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("No thank you","jetpack"))),!n&&p().createElement(p().Fragment,null,p().createElement("p",null,p().createElement(a.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack"))))))};d.propTypes={onExit:c().func,onProvideFeedback:c().func,canProvideFeedback:c().bool},t.Z=d},9015:function(e,t,n){"use strict";var s=n(6895),a=n(55609),i=n(69307),r=n(65736),o=n(15844),c=n.n(o),l=n(99196),p=n.n(l),u=n(57879);const __=r.__,d=e=>{const{title:t,isDisconnecting:n,onDisconnect:r,disconnectError:o,disconnectStepComponent:c,connectedPlugins:d,disconnectingPlugin:m,closeModal:h,context:g,trackModalClick:f}=e,k=(0,l.useCallback)((()=>f("jetpack_disconnect_dialog_click_learn_about")),[f]),v=(0,l.useCallback)((()=>f("jetpack_disconnect_dialog_click_support")),[f]),_=(0,l.useCallback)((()=>{f("jetpack_disconnect_dialog_click_stay_connected"),h()}),[f,h]),E=(0,l.useCallback)((e=>{f("jetpack_disconnect_dialog_click_disconnect"),r(e)}),[f,r]),w=(0,l.useCallback)((e=>{"Escape"!==e.key||n||_()}),[_,n]);(0,l.useEffect)((()=>(document.addEventListener("keydown",w,!1),()=>{document.removeEventListener("keydown",w,!1)})),[]);return p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},t),p().createElement(u.Z,{connectedPlugins:d,disconnectingPlugin:m}),c,(()=>{if(!(d&&Object.keys(d).filter((e=>e!==m)).length)&&!c)return p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack"),p().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack")))})()),p().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},p().createElement("div",{className:"jp-row"},p().createElement("div",{className:"lg-col-span-8 md-col-span-9 sm-col-span-4"},p().createElement("p",null,(0,i.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack"),{strong:p().createElement("strong",null),jpConnectionInfoLink:p().createElement(a.ExternalLink,{href:(0,s.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__disconnect-dialog__link",onClick:k}),jpSupportLink:p().createElement(a.ExternalLink,{href:(0,s.Z)("jetpack-support"),className:"jp-connection__disconnect-dialog__link",onClick:v})}))),p().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-4 md-col-span-7 sm-col-span-4"},p().createElement(a.Button,{variant:"primary",disabled:n,onClick:_,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===g?__("Cancel","jetpack"):__("Stay connected","jetpack",0)),(()=>{let e=__("Disconnect","jetpack");return n?e=__("Disconnecting…","jetpack"):"plugins"===g&&(e=__("Deactivate","jetpack")),p().createElement(a.Button,{variant:"primary",disabled:n,onClick:E,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),o&&p().createElement("p",{className:"jp-connection__disconnect-dialog__error"},o)))};d.propTypes={title:c().string,isDisconnecting:c().bool,onDisconnect:c().func,disconnectError:c().bool,disconnectStepComponent:c().element,connectedPlugins:c().array,disconnectingPlugin:c().string,closeModal:c().func,context:c().string,trackModalClick:c().func},t.Z=d},31702:function(e,t,n){"use strict";var s=n(65736),a=n(15844),i=n.n(a),r=n(99196),o=n.n(r),c=(n(88043),n(36336));const __=s.__,l=e=>{const{onExit:t,onFeedBackProvided:n,isSubmittingFeedback:s}=e;return o().createElement("div",{className:"jp-connection__disconnect-dialog__content"},o().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack")),o().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack")),o().createElement(c.Z,{onSubmit:n,isSubmittingFeedback:s}),o().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("Skip for now","jetpack")))};l.PropTypes={onExit:i().func,onFeedBackProvided:i().func,isSubmittingFeedback:i().bool},t.Z=l},61166:function(e,t,n){"use strict";var s=n(69026),a=n(55609),i=n(69307),r=n(65736),o=n(15844),c=n.n(o),l=n(99196),p=n.n(l),u=n(90724);const __=r.__,d=e=>{const{onExit:t}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(s.Z,{format:"vertical",imageUrl:u}),p().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},p().createElement("h1",null,__("Thank you!","jetpack")),p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,i.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack"),{br:p().createElement("br",null)})),p().createElement(a.Button,{variant:"primary",onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack"))))};d.PropTypes={onExit:c().func,assetBaseUrl:c().string},t.Z=d},36336:function(e,t,n){"use strict";var s=n(55609),a=n(65736),i=n(15844),r=n.n(i),o=n(99196),c=n.n(o),l=n(54372);const __=a.__,p=e=>{const{onSubmit:t,isSubmittingFeedback:n}=e,[a,i]=(0,o.useState)(),[r,p]=(0,o.useState)(),u=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack")},{id:"not-working",answerText:__("I can't get it to work.","jetpack")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack")},{id:"buggy",answerText:__("It's buggy.","jetpack")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack")}],d="another-reason",m=(0,o.useCallback)((()=>{t(a,a===d?r:"")}),[t,d,r,a]),h=(0,o.useCallback)((e=>{const t=e.target.value;e.stopPropagation(),p(t)}),[p]),g=e=>e===a?"jp-connect__disconnect-survey-card--selected":"",f=(0,o.useCallback)(((e,t)=>{switch(t.key){case"Enter":case"Space":case"Spacebar":case" ":i(e)}}),[i]);return c().createElement(c().Fragment,null,c().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},u.map((e=>c().createElement(l.Z,{id:e.id,onClick:i,onKeyDown:f,className:"card jp-connect__disconnect-survey-card "+g(e.id)},c().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),c().createElement(l.Z,{id:d,key:d,onClick:i,onKeyDown:f,className:"card jp-connect__disconnect-survey-card "+g(d)},c().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack")," ",c().createElement("input",{placeholder:__("share your experience","jetpack"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:r,onChange:h,maxLength:1e3})))),c().createElement("p",null,c().createElement(s.Button,{disabled:!a||n,variant:"primary",onClick:m,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},n?__("Submitting…","jetpack"):__("Submit Feedback","jetpack",0))))};p.PropTypes={onSubmit:r().func,isSubmittingFeedback:r().bool},t.Z=p},54372:function(e,t,n){"use strict";var s=n(99196),a=n.n(s);n(88043);t.Z=e=>{const{id:t,onClick:n,onKeyDown:i,children:r,className:o}=e,c=(0,s.useCallback)((()=>{n(t)}),[t,n]),l=(0,s.useCallback)((e=>{i(t,e)}),[t,i]);return a().createElement("div",{tabIndex:"0",role:"button",onClick:c,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+o},r)}},31294:function(e,t,n){"use strict";var s=n(64743),a=n(9818),i=n(99196),r=n(80428);const o=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};t.Z=function(){let{registrationNonce:e=o.registrationNonce,apiRoot:t=o.apiRoot,apiNonce:n=o.apiNonce,redirectUri:c,autoTrigger:l,from:p,skipUserConnection:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{registerSite:d,connectUser:m,refreshConnectedPlugins:h}=(0,a.useDispatch)(r.t),g=(0,a.useSelect)((e=>e(r.t).getRegistrationError())),{siteIsRegistering:f,userIsConnecting:k,userConnectionData:v,connectedPlugins:_,connectionErrors:E,isRegistered:w,isUserConnected:b,hasConnectedOwner:y,isOfflineMode:j}=(0,a.useSelect)((e=>({siteIsRegistering:e(r.t).getSiteIsRegistering(),userIsConnecting:e(r.t).getUserIsConnecting(),userConnectionData:e(r.t).getUserConnectionData(),connectedPlugins:e(r.t).getConnectedPlugins(),connectionErrors:e(r.t).getConnectionErrors(),isOfflineMode:e(r.t).getIsOfflineMode(),...e(r.t).getConnectionStatus()}))),C=()=>u?c?(window.location=c,Promise.resolve(c)):Promise.resolve():m({from:p,redirectUri:c}),S=t=>(t&&t.preventDefault(),w?C():d({registrationNonce:e,redirectUri:c}).then((()=>C())));return(0,i.useEffect)((()=>{s.ZP.setApiRoot(t),s.ZP.setApiNonce(n)}),[t,n]),(0,i.useEffect)((()=>{!l||f||k||S()}),[]),{handleRegisterSite:S,handleConnectUser:C,refreshConnectedPlugins:h,isRegistered:w,isUserConnected:b,siteIsRegistering:f,userIsConnecting:k,registrationError:g,userConnectionData:v,hasConnectedOwner:y,connectedPlugins:_,connectionErrors:E,isOfflineMode:j}}},51045:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(64743),a=n(9818),i=n(99196),r=n(80428);const{apiRoot:o,apiNonce:c}=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};function l(){const[e,t]=(0,i.useState)(!1),[n,l]=(0,i.useState)(null),{disconnectUserSuccess:p,setConnectionErrors:u}=(0,a.useDispatch)(r.t);return(0,i.useEffect)((()=>{s.ZP.setApiRoot(o),s.ZP.setApiNonce(c)}),[]),{restoreConnection:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t(!0),l(null),s.ZP.reconnect().then((t=>("in_progress"===t.status?(p(),u({}),e&&(window.location.href="/wp-admin/admin.php?page=my-jetpack#/connection")):window.location.reload(),t))).catch((e=>{throw l(e),t(!1),e}))},isRestoringConnection:e,restoreConnectionError:n}}},27523:function(e,t,n){"use strict";n.d(t,{LI:function(){return i},N4:function(){return o},Qo:function(){return u},T1:function(){return l},TS:function(){return p},ZP:function(){return b},b5:function(){return m},i6:function(){return a},qJ:function(){return h},qV:function(){return c},r7:function(){return r},wQ:function(){return d}});var s=n(64743);const a="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",u="DISCONNECT_USER_SUCCESS",d="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",h="SET_IS_OFFLINE_MODE",g=e=>({type:a,connectionStatus:e}),f=e=>({type:r,isRegistering:e}),k=e=>({type:o,isConnecting:e}),v=e=>({type:c,registrationError:e}),_=()=>({type:l}),E=e=>({type:p,authorizationUrl:e}),w=e=>({type:d,connectedPlugins:e});const b={setConnectionStatus:g,setConnectionStatusIsFetching:e=>({type:i,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:f,setUserIsConnecting:k,setRegistrationError:v,clearRegistrationError:_,setAuthorizationUrl:E,registerSite:function(e){let{registrationNonce:t,redirectUri:n}=e;return function*(){yield _(),yield f(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:t,redirectUri:n};return yield g({isRegistered:!0}),yield E(e.authorizeUrl),yield f(!1),Promise.resolve(e)}catch(e){return yield v(e),yield f(!1),Promise.reject(e)}}()},connectUser:function(){let{from:e,redirectFunc:t,redirectUri:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){yield k(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:t,redirectUri:n}}()},disconnectUserSuccess:()=>({type:u}),setConnectedPlugins:w,refreshConnectedPlugins:()=>async e=>{let{dispatch:t}=e;return await new Promise((e=>s.ZP.fetchConnectedPlugins().then((n=>{t(w(n)),e(n)}))))},setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:h,isOfflineMode:e})}},31432:function(e,t,n){"use strict";var s=n(64743),a=n(9818),i=n(27057);const r=(0,a.createRegistryControl)((e=>{let{resolveSelect:t}=e;return function(){let{from:e,redirectFunc:n,redirectUri:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((a,r)=>{t(i.Z).getAuthorizationUrl(s).then((t=>{const s=n||(e=>window.location.assign(e)),i=new URL(t);e&&i.searchParams.set("from",encodeURIComponent(e));const r=i.toString();s(r),a(r)})).catch((e=>{r(e)}))}))}}));t.Z={FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:t}=e;return s.ZP.fetchAuthorizationUrl(t)},REGISTER_SITE:e=>{let{registrationNonce:t,redirectUri:n}=e;return s.ZP.registerSite(t,n)},CONNECT_USER:r}},41479:function(e,t,n){"use strict";var s=n(9818),a=n(27523);const i=(0,s.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.i6:return{...e,...t.connectionStatus};case a.Qo:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.LI?t.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.r7?t.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.N4?t.isConnecting:e},registrationError:(e,t)=>{switch(t.type){case a.T1:return!1;case a.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===a.TS?t.authorizationUrl:e,userConnectionData:(e,t)=>(t.type,e),connectedPlugins:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===a.wQ?t.connectedPlugins:e},connectionErrors:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===a.b5?t.connectionErrors:e},isOfflineMode:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===a.qJ?t.isConnecting:e}});t.Z=i},77728:function(e,t,n){"use strict";var s=n(9818),a=n(27523),i=n(27057);const r={getAuthorizationUrl:{isFulfilled:function(e){const t=Boolean(e.authorizationUrl);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];const o=(0,s.select)(i.Z).hasFinishedResolution("getAuthorizationUrl",a);return t&&!o&&(0,s.dispatch)(i.Z).finishResolution("getAuthorizationUrl",a),t},*fulfill(e){const t=yield a.ZP.fetchAuthorizationUrl(e);yield a.ZP.setAuthorizationUrl(t.authorizeUrl)}}};t.Z={...r}},82725:function(e,t){"use strict";const n={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}};t.Z=n},13535:function(e,t,n){"use strict";var s=n(9818);class a{static store=null;static mayBeInit(e,t){null===a.store&&(a.store=(0,s.createReduxStore)(e,t),(0,s.register)(a.store))}}t.Z=a},27057:function(e,t){"use strict";t.Z="jetpack-connection"},80428:function(e,t,n){"use strict";n.d(t,{t:function(){return l.Z}});var s=n(27523),a=n(31432),i=n(41479),r=n(77728),o=n(82725),c=n(13535),l=n(27057);const p=window.JP_CONNECTION_INITIAL_STATE;p||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),c.Z.mayBeInit(l.Z,{__experimentalUseThunks:!0,reducer:i.Z,actions:s.ZP,selectors:o.Z,resolvers:r.Z,controls:a.Z,initialState:p||{}})},18728:function(e,t,n){"use strict";var s=n(6975),a=n(78868),i=n(45033),r=n(55609),o=n(69307),c=n(65736),l=n(61074),p=n(30797),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m);const __=c.__,g=e=>{const{className:t,disabled:n,onChange:s,value:a}=e;return h().createElement(r.TextControl,{className:t,label:__("License key","jetpack"),value:a,onChange:s,disabled:n})},f=e=>{const{className:t,availableLicenses:n,disabled:s,onChange:a,value:i}=e,[o,l]=(0,m.useState)(""),p=null===n,u=(0,m.useMemo)((()=>p?[{label:__("Fetching available licenses…","jetpack"),value:""}]:[...n.map((e=>{let{product:t,license_key:n}=e;return{label:(0,c.sprintf)(/* translators: placeholder is the product name and license key */ | |
| 7 | -__("%1$s - %2$s","jetpack"),t,n),value:n}})),{label:__("I want to add a license key manually","jetpack"),value:""}]),[n,p]);(0,m.useEffect)((()=>{l(u?.length?u[0].value:"")}),[u]);const d=(0,m.useCallback)((e=>{l(e),a(e)}),[a]);return h().createElement(h().Fragment,null,h().createElement(r.SelectControl,{className:t,disabled:s,label:__("Select a license key","jetpack"),value:o,options:u,onChange:d}),!p&&!o&&h().createElement(r.TextControl,{className:t,label:__("Input a license key","jetpack"),value:i,onChange:a,disabled:s}))},k=e=>{const{activateLicense:t,availableLicenses:n,fetchingAvailableLicenses:c,isActivating:u,license:d,licenseError:k,onLicenseChange:v}=e,_=null!=k;(0,m.useEffect)((()=>{s.Z.tracks.recordEvent("jetpack_wpa_license_key_activation_view")}),[]);const E=_?"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field",w=n&&n.length;return h().createElement("div",{className:"jp-license-activation-screen-controls"},h().createElement("div",{className:"jp-license-activation-screen-controls--content"},h().createElement(a.Z,{showText:!1,height:48}),h().createElement("h1",null,__("Add a license key","jetpack")),h().createElement("p",null,(0,o.createInterpolateElement)(__("<strong>Check your email</strong> for your license key. You should have received it after making your purchase.","jetpack"),{strong:h().createElement("strong",null)})),c||w?h().createElement(f,{className:E,disabled:c||u,onChange:v,availableLicenses:c?null:n,value:d}):h().createElement(g,{className:E,disabled:u,onChange:v,value:d}),_&&h().createElement("div",{className:"jp-license-activation-screen-controls--license-field-error"},h().createElement(l.Z,{icon:p.Z}),h().createElement("span",null,k))),h().createElement("div",null,h().createElement(r.Button,{className:"jp-license-activation-screen-controls--button",onClick:t,disabled:!d},u?h().createElement(i.Z,null):__("Activate","jetpack"))))};k.propTypes={activateLicense:d().func.isRequired,availableLicenses:d().array,fetchingAvailableLicenses:d().bool,isActivating:d().bool.isRequired,license:d().string.isRequired,licenseError:d().string,onLicenseChange:d().func.isRequired,siteUrl:d().string.isRequired},t.Z=k},58781:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);const __=i.__,p=e=>{const{imageUrl:t,showSupportLink:n=!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:""})),n&&l().createElement("p",{className:"jp-license-activation-screen-illustration--support-link"},(0,a.createInterpolateElement)(__("Do you need help? <a>Contact us.</a>","jetpack"),{a:l().createElement("a",{href:(0,s.Z)("jetpack-support-license-activation")})})))};p.propTypes={imageUrl:o().string.isRequired,showSupportLink:o().bool},t.Z=p},37554:function(e,t,n){"use strict";var s=n(78868),a=n(25162),i=n.n(a),r=n(99196),o=n.n(r),c=n(83157),l=n(48288),p=n(14172);const u=e=>{const{productId:t,siteRawUrl:n,siteAdminUrl:a,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.Z,{showText:!1,height:48})),o().createElement(l.Z,{siteRawUrl:n,productId:t}),o().createElement("div",{className:"jp-license-activation-screen-success-info--buttons"},o().createElement(c.c,{currentRecommendationsStep:i,siteAdminUrl:a,siteRawUrl:n}),o().createElement(p.o,{siteRawUrl:n,productId:t})))};u.propTypes={siteRawUrl:i().string,productId:i().number,siteAdminUrl:i().string,currentRecommendationsStep:i().string},t.Z=u},83157:function(e,t,n){"use strict";n.d(t,{c:function(){return p}});var s=n(6895),a=n(55609),i=n(65736),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);const __=i.__,p=e=>{const{currentRecommendationsStep:t,siteAdminUrl:n,siteRawUrl:i}=e;return"not-started"===t?l().createElement(a.Button,{className:"jp-license-activation-screen-success-info--button",href:n+"admin.php?page=jetpack#/recommendations"},__("Configure my site","jetpack")):l().createElement(a.Button,{className:"jp-license-activation-screen-success-info--button",href:(0,s.Z)("license-activation-view-my-plans",{site:i})},__("View my plans","jetpack"))};p.propTypes={siteAdminUrl:o().string.isRequired,currentRecommendationsStep:o().string,siteRawUrl:o().string.isRequired}},14172:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var s=n(6895),a=n(55609),i=n(65736),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(69430);const __=i.__,u=e=>{const{productId:t,siteRawUrl:n}=e,i={jetpack_backup:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_complete:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_scan:{text:__("View scan results","jetpack"),redirectSource:"jetpack-license-activation-success-scan"},jetpack_search:{text:__("Configure search","jetpack"),redirectSource:"jetpack-license-activation-success-search"},jetpack_security:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},default:null}[(0,p.F)(t)];return l().createElement(l().Fragment,null,i&&l().createElement(a.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,s.Z)(i.redirectSource,{site:n})},i.text))};u.propTypes={siteRawUrl:o().string,productId:o().number}},20468:function(e,t,n){"use strict";var s=n(6975),a=n(64743),i=n(69307),r=n(65736),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(18728),d=n(58781),m=n(37554),h=n(89644),g=n(88702),f=n(21160);const __=r.__,k=e=>{const{availableLicenses:t=[],currentRecommendationsStep:n,fetchingAvailableLicenses:r=!1,onActivationSuccess:o=(()=>null),siteAdminUrl:c,siteRawUrl:k,startingLicense:v,displayName:_=""}=e,[E,w]=(0,l.useState)(v??""),[b,y]=(0,l.useState)(null),[j,C]=(0,l.useState)(!1),[S,N]=(0,l.useState)(null);(0,l.useEffect)((()=>{t&&t[0]&&w(t[0].license_key)}),[t]);const x=(0,l.useCallback)((()=>j?Promise.resolve():E.length<1?(y(__("This is not a valid license key. Please try again.","jetpack")),Promise.resolve()):(y(null),C(!0),s.Z.tracks.recordJetpackClick({target:"license_activation_button"}),a.ZP.attachLicenses([E]).then((e=>{const t=(e=>{let t=e;for(;Array.isArray(t)&&t.length>0;)t=t[0];if(t?.activatedProductId)return t.activatedProductId;if(t?.errors)for(const e in t.errors)if(t.errors[e].length>0)throw new Error(t.errors[e][0]);throw new Error(__("An unknown error occurred during license activation. Please try again.","jetpack"))})(e);N(t),o(t),s.Z.tracks.recordEvent("jetpack_wpa_license_activation_success")})).catch((e=>{s.Z.tracks.recordEvent("jetpack_wpa_license_activation_error");"invalid_permission_manage_user_licenses"===e.response?.code?y((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"})})):y(e.message)})).finally((()=>{C(!1)})))),[j,E,o]);return null!==S&&E.startsWith("jetpack-golden-token")?p().createElement(h.Z,{tokenRedeemed:!0,displayName:_}):null!==S?p().createElement("div",{className:"jp-license-activation-screen"},p().createElement(m.Z,{siteRawUrl:k,productId:S,siteAdminUrl:c,currentRecommendationsStep:n}),p().createElement(d.Z,{imageUrl:f,showSupportLink:!1})):p().createElement("div",{className:"jp-license-activation-screen"},p().createElement(u.Z,{availableLicenses:t,activateLicense:x,fetchingAvailableLicenses:r,isActivating:j,license:E,licenseError:b,onLicenseChange:w,siteUrl:k}),p().createElement(d.Z,{imageUrl:g,showSupportLink:!0}))};k.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},t.Z=k},89644:function(e,t,n){"use strict";var s=n(3396),a=n(13363),i=n(73846),r=n(78868),o=n(90526),c=n(55609),l=n(65736),p=n(65235),u=n.n(p),d=n(25162),m=n.n(d),h=n(99196),g=n.n(h),f=n(9459);const __=l.__,_x=l._x;function k(e){let{redeemClick:t,displayName:n,onModalClose:p,tokenRedeemed:d}=e;const[m,k]=(0,h.useState)(!1),v=(0,h.useRef)(null);(0,h.useEffect)((()=>{setTimeout((()=>{v?.current?.play()}),500)}),[v]);const _=(0,s.VS)("scan"),E=(0,s.VS)("backup"),w=(0,h.useCallback)((e=>{t?.(e),k(!0),v.current.play()}),[v,t]),b=(0,h.useCallback)((()=>{m&&v.current.play()}),[m]),y=u()(f.Z.modal,{[f.Z.animating]:m});return g().createElement("div",null,g().createElement(c.Modal,{className:y,onRequestClose:p,isDismissible:!1,__experimentalHideHeader:!0},g().createElement(a.Z,{horizontalSpacing:3,horizontalGap:3},g().createElement(i.Z,null,g().createElement(r.Z,{className:f.Z["jetpack-logo"]}),g().createElement("div",{className:f.Z["video-wrap"],onClick:b,role:"presentation"},g().createElement("video",{ref:v,src:"https://videos.files.wordpress.com/oSlNIBQO/jetpack-golden-token.mp4",muted:"muted"})),g().createElement("div",{className:f.Z["content-wrap"]},g().createElement("div",{className:f.Z["content-wrap-text"]},n.length>0&&g().createElement("p",{className:f.Z["hi-user"]},(0,l.sprintf)(/* Translators: %s is the user's display name. */ | |
| 8 | -__("Hey, %s","jetpack"),n)),g().createElement("h2",{className:f.Z.headline},__("You have been gifted a Jetpack Golden Token.","jetpack")),g().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"))),g().createElement(o.Z,{variant:"primary",weight:"regular",onClick:w,className:f.Z.button},d&&__("Awesome!","jetpack"),!d&&__("Redeem your token","jetpack"))),g().createElement("div",{className:`${f.Z["powers-wrap"]} ${f.Z["content-wrap"]}`},g().createElement("div",{className:f.Z["content-wrap-text"]},g().createElement("h2",{className:f.Z.headline},__("Super powers are ready!","jetpack")),g().createElement("p",{className:f.Z.paragraph},__("Your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack"))),g().createElement("div",{className:f.Z["jetpack-products"]},g().createElement("div",null,g().createElement(E,null),g().createElement("h3",null,__("VaultPress Backup","jetpack")),g().createElement("p",null,__("Save every change and get back online quickly with one‑click restores.","jetpack"))),g().createElement("div",null,g().createElement(_,null),g().createElement("h3",null,_x("Scan","Plugin name (noun).","jetpack")),g().createElement("p",null,__("Automated scanning and one‑click fixes to keep your site ahead of security threats.","jetpack")))),g().createElement(o.Z,{variant:"primary",weight:"regular",onClick:w,href:window?.myJetpackInitialState?.myJetpackUrl,className:f.Z.button},__("Explore your new powers","jetpack")))))))}k.defaultProps={tokenRedeemed:!1,onModalClose:e=>{document.referrer.includes(window.location.host)?(e.preventDefault(),history.back()):(e.preventDefault(),window.location.href=window?.myJetpackInitialState?.myJetpackUrl)}},k.propTypes={redeemClick:m().func,tokenRedeemed:m().bool,displayName:m().string,onModalClose:m().func},t.Z=k},53281:function(e,t,n){"use strict";n.d(t,{I:function(){return s.Z}});var s=n(20468);n(89644)},10221:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n.n(i),o=n(881),c=n(84859);const l=e=>{const{apiNonce:t,apiRoot:n,connectionStatus:s,partnerCoupon:a,assetBaseUrl:i,registrationNonce:l,siteRawUrl:p,tracksUserData:u,analytics:d}=e;return s.hasConnectedOwner?r().createElement(o.ZP,{assetBaseUrl:i,connectionStatus:s,partnerCoupon:a,siteRawUrl:p,tracksUserData:!!u,analytics:d}):r().createElement(c.Z,{apiNonce:t,registrationNonce:l,apiRoot:n,assetBaseUrl:i,connectionStatus:s,partnerCoupon:a,siteRawUrl:p,tracksUserData:!!u,analytics:d})};l.propTypes={apiRoot:a().string.isRequired,apiNonce:a().string.isRequired,assetBaseUrl:a().string.isRequired,connectionStatus:a().object.isRequired,partnerCoupon:a().object.isRequired,registrationNonce:a().string.isRequired,siteRawUrl:a().string.isRequired,tracksUserData:a().bool.isRequired,analytics:a().object},t.Z=l},881:function(e,t,n){"use strict";var s=n(78868),a=n(67121),i=n(65736),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(9864);const __=i.__,u="jetpackRedeemPartnerCouponDismissedAt";function d(){const e=localStorage.getItem(u);return!(!e||(new Date).getTime()>parseInt(e)+2592e5)}const m=e=>{const{connectionStatus:t,partnerCoupon:n,assetBaseUrl:r,siteRawUrl:o,tracksUserData:m,analytics:h}=e,[g,f]=(0,c.useState)(d()),k=(0,p.i)(n,o,t,m,h),v=(0,c.useCallback)((()=>{localStorage.setItem(u,(new Date).getTime()),f(d())}),[f]);if(g)return null;let _=null;return _=n.partner.logo?l().createElement(l().Fragment,null,l().createElement(s.Z,null),l().createElement("span",null,"+"),l().createElement("img",{src:`${r}${n.partner.logo.src}`,alt:(0,i.sprintf)(/* translators: %s: Name of Jetpack partner. */ | |
| 9 | -__("Logo of %s who are offering a coupon in partnership with Jetpack","jetpack"),n.partner.name),width:n.partner.logo.width,height:n.partner.logo.height})):l().createElement(s.Z,null),l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection"},l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__layout"},l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__content"},l().createElement("div",{className:"jetpack-redeem-partner-coupon-post-connection__logo"},_),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. */ | |
| 10 | -__("Redeem your coupon and get started with %s for free the first year! Never worry about losing your data, ever.","jetpack"),n.product.title)),l().createElement("ul",null,n.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(a.Z,{label:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 11 | -__("Redeem %s","jetpack"),n.product.title),onClick:k})),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},t.ZP=m},84859:function(e,t,n){"use strict";var s=n(67121),a=n(9312),i=n(65736),r=n(65235),o=n.n(r),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(9864);const __=i.__,m=e=>{const{apiNonce:t,apiRoot:n,connectionStatus:r,partnerCoupon:c,assetBaseUrl:l,registrationNonce:p,siteRawUrl:m,tracksUserData:h,analytics:g}=e,f=(0,d.i)(c,m,r,h,g),k=o()("jetpack-redeem-partner-coupon-pre-connection",{"jetpack-redeem-partner-coupon-pre-connection--connected":!!r.hasConnectedOwner});return u().createElement("div",{className:k},u().createElement(a.Z,{apiNonce:t,registrationNonce:p,apiRoot:n,images:["/images/connect-right-partner-backup.png"],assetBaseUrl:l,from:"jetpack-partner-coupon",title:(0,i.sprintf)(/* translators: %s: Jetpack partner name. */ | |
| 12 | -__("Welcome to Jetpack %s traveler!","jetpack"),c.partner.name),buttonLabel:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 13 | -__("Set up & redeem %s","jetpack"),c.product.title),redirectUri:`admin.php?page=jetpack&partnerCoupon=${c.coupon_code}`,connectionStatus:r},u().createElement("p",null,(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 14 | -__("Redeem your coupon and get started with %s for free the first year!","jetpack"),c.product.title)),u().createElement("ul",null,c.product.features.map(((e,t)=>u().createElement("li",{key:t},e)))),r.hasConnectedOwner&&u().createElement(s.Z,{label:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 15 | -__("Redeem %s","jetpack"),c.product.title),onClick:f})))};m.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,assetBaseUrl:l().string.isRequired,connectionStatus:l().object.isRequired,partnerCoupon:l().object.isRequired,registrationNonce:l().string.isRequired,siteRawUrl:l().string.isRequired,tracksUserData:l().bool.isRequired,analytics:l().object},t.Z=m},1862:function(e,t,n){"use strict";n.d(t,{es:function(){return s.Z}});var s=n(10221);n(84859),n(881)},81050:function(e,t,n){"use strict";n.d(t,{K9:function(){return s.Z},py:function(){return i.Z},vQ:function(){return a.Z}});n(77771),n(23177),n(4277),n(49021),n(95788),n(8454),n(74140),n(54005),n(8350);var s=n(76848),a=n(92116),i=n(79631);n(8714),n(19649),n(52403),n(82087),n(37568),n(48751),n(14085),n(45579),n(75323),n(91474),n(86419),n(22917)},92116:function(e,t,n){"use strict";var s=n(48229),a=n(9818),i=n(69307),r=n(99196),o=n.n(r),c=n(23177);t.Z=e=>{let{shouldRefresh:t=!1,toggleClass:n,children:r}=e;const l=(0,a.useDispatch)(c.E).refreshAutoConversionSettings;(0,i.useEffect)((()=>{t&&l()}),[t,l]);const{isEnabled:p,isUpdating:u}=(0,a.useSelect)((e=>{const t=e(c.E);return{isEnabled:t.isAutoConversionEnabled(),isUpdating:t.isAutoConversionSettingsUpdating()}}),[]),d=(0,a.useDispatch)(c.E).updateAutoConversionSettings,m=(0,i.useCallback)((()=>{d({image:!p})}),[p,d]);return o().createElement(s.Z,{className:n,disabled:u,checked:p,onChange:m,label:r})}},85761:function(e,t,n){"use strict";var s=n(3396),a=n(69307),i=n(65235),r=n.n(i),o=n(15844),c=n.n(o);const l=e=>{const{checked:t,serviceName:n,label:i,onClick:o,profilePicture:c}=e,[l,p]=(0,a.useState)(!!c),u=(0,a.useCallback)((()=>p(!1)),[]),d=(0,a.useCallback)((e=>{13===e.keyCode&&o()}),[o]);return React.createElement("div",{onClick:o,onKeyDown:d,role:"switch","aria-checked":t,tabIndex:"0",className:r()("components-connection-icon",{"components-connection-icon__picture":l})},l&&React.createElement("img",{src:c,alt:i,onError:u}),React.createElement(s.av,{alt:i,serviceName:"instagram-business"===n?"instagram":"twitter"===n?"x":n,className:"jetpack-publicize-gutenberg-social-icon"}))};l.propTypes={serviceName:c().string,label:c().string,profilePicture:c().string},t.Z=l},24479:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(15844),r=n.n(i),o=n(85761);const c=e=>{const{checked:t,disabled:n,onChange:s,serviceName:i,label:r,profilePicture:c}=e,l=a()("components-connection-toggle",{"is-not-checked":!t,"is-disabled":n});return React.createElement("div",{className:l,title:r},React.createElement(o.Z,{checked:t,label:r,onClick:s,serviceName:i,profilePicture:c}))};c.propTypes={className:r().string,checked:r().bool,id:r().string.isRequired,disabled:r().bool,onChange:r().func,serviceName:r().string,label:r().string,profilePicture:r().string},t.Z=c},49021:function(e,t,n){"use strict";var s=n(55609),a=n(94333),i=n(9818),r=n(69307),o=n(65736);const __=o.__;class c extends r.Component{componentDidMount(){this.props.refreshConnections()}refreshConnectionClick=e=>{const{href:t,title:n}=e.target;e.preventDefault();const s=window.open(t,n,""),a=window.setInterval((()=>{!1!==s.closed&&(window.clearInterval(a),this.props.refreshConnections())}),500)};renderRefreshableConnections(){const{failedConnections:e}=this.props,t=e.filter((e=>e.can_refresh));return t.length?React.createElement(s.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},React.createElement("p",null,__("Before you hit Publish, please refresh the following connection(s) to make sure we can share your post:","jetpack")),t.map((e=>React.createElement(s.Button,{href:e.refresh_url,isSmall:!0,key:e.id,onClick:this.refreshConnectionClick,title:e.refresh_text},e.refresh_text)))):null}renderNonRefreshableConnections(){const{failedConnections:e}=this.props,t=e.filter((e=>!e.can_refresh));return t.length?t.map((e=>React.createElement(s.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},React.createElement("p",null,e.test_message)))):null}render(){return React.createElement(r.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}(0,a.compose)([(0,i.withSelect)((e=>({failedConnections:e("jetpack/publicize").getFailedConnections()}))),(0,i.withDispatch)((e=>({refreshConnections:e("jetpack/publicize").refreshConnectionTestResults})))])(c)},4277:function(e,t,n){"use strict";var s=n(13419),a=n(55609),i=n(9818),r=n(69307),o=n(65736),c=n(92819),l=n(24479),p=n(28161),u=n(91853);const __=o.__;class d extends r.Component{maybeDisplayLinkedInNotice=()=>this.connectionNeedsReauth()&&React.createElement(a.Notice,{className:p.Z["publicize-notice"],isDismissible:!1,status:"error"},React.createElement("p",null,__("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.","jetpack")),React.createElement(a.ExternalLink,{href:`https://wordpress.com/marketing/connections/${(0,s.lQ)()}`},__("Go to Sharing settings","jetpack")));connectionNeedsReauth=()=>(0,c.includes)(this.props.mustReauthConnections,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:n,name:s,profilePicture:a}=this.props,i="connection-"+s+"-"+t,r=s.replace("_","-"),o=React.createElement(l.Z,{id:i,className:u.Z["connection-toggle"],checked:e,onChange:this.onConnectionChange,disabled:this.isDisabled(),serviceName:r,label:n,profilePicture:a});return React.createElement("li",null,this.maybeDisplayLinkedInNotice(),React.createElement("div",{className:u.Z["connection-container"]},o))}}(0,i.withSelect)((e=>({failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()})))(d)},95788:function(e,t,n){"use strict";n(13419),n(55609),n(9818),n(69307),n(65736),n(88219),n(75323),n(39118),n(75263),n(98811),n(46791),n(6230),n(96672),n(37568),n(48751),n(23177),n(4277),n(29753),n(71961),n(62578),n(69709),n(75631)},9888:function(e,t,n){"use strict";n(86989),n(55609),n(9818),n(12238),n(65736),n(65235),n(99196),n(75263),n(58487)},90785:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var s=n(6895);function a(e){return e?(0,s.Z)("sigenerate",{query:`t=${e}`}):""}},88649:function(e,t,n){"use strict";n(52175),n(55609),n(69307),n(65736),n(65235),n(46791),n(1795),n(13858),n(69339)},29753:function(e,t,n){"use strict";n(55609),n(69307);var s=n(65736);n(99196),n(88219),n(98811),n(88649),n(53513),n(45811);const __=s.__;__("Choose Media","jetpack")},71961:function(e,t,n){"use strict";n(55609),n(65736)},62578:function(e,t,n){"use strict";var s=n(55609),a=n(65736),i=n(61074),r=n(6163),o=n(65235),c=n.n(o),l=n(15844),p=n.n(l),u=n(82283);const __=a.__,d=e=>{let{children:t,type:n="default",actions:a=[],onDismiss:o}=e;const l=c()(u.Z.notice,u.Z[`notice--${n}`]);return React.createElement("div",{className:l},React.createElement("div",{className:u.Z.content}," ",t," "),o&&React.createElement("button",{className:u.Z.dismiss,onClick:o},React.createElement(s.VisuallyHidden,null,__("Dismiss notice","jetpack")),React.createElement(i.Z,{icon:r.Z})),a&&a.length>0&&React.createElement("div",{className:u.Z.actions},a.map((e=>e))))};d.propTypes={children:p().node.isRequired,type:p().oneOf(["default","highlight","warning","error"]),actions:p().arrayOf(p().element),onDismiss:p().func}},574:function(e,t,n){"use strict";n(55609),n(65736),n(99196),n(34607),n(57304)},23519:function(e,t,n){"use strict";n(55609),n(65736),n(34607),n(77551),n(54066),n(16184)},8714:function(e,t,n){"use strict";n(55609),n(9818),n(12238),n(69307),n(65736),n(99196),n(14085),n(86419),n(37568),n(49021),n(95788),n(574),n(23519),n(91474),n(23761)},82087:function(e,t,n){"use strict";n(13419),n(55609),n(72067),n(69307),n(65736),n(23519),n(34607),n(67454)},52403:function(e,t,n){"use strict";n(13419),n(86989),n(72067),n(69307),n(14085),n(86419),n(37568),n(19649)},19649:function(e,t,n){"use strict";n(13419),n(65736),n(99196),n(2097)},69709:function(e,t,n){"use strict";n(65736),n(14085),n(78619)},2817:function(e,t,n){"use strict";var s=n(65736);const __=s.__;__("X","jetpack"),__("WhatsApp","jetpack"),__("Facebook","jetpack")},22917:function(e,t,n){"use strict";n(34607)},34607:function(e,t,n){"use strict";n(13419),n(69307),n(65736),n(65235),n(2817),n(30664),n(38730)},38730:function(e,t,n){"use strict";n(9818),n(69307)},91474:function(e,t,n){"use strict";n(55609),n(9818),n(12238),n(69307),n(65736),n(53961),n(14085),n(45579),n(37568)},54005:function(e,t,n){"use strict";n(55609),n(69307),n(65736),n(75263),n(9888),n(81469)},81469:function(e,t,n){"use strict";n(55609),n(69307);var s=n(65736);n(75263),n(98811),n(9888),n(88649),n(39356),n(40088);const __=s.__;__("Choose Image","jetpack")},79631:function(e,t,n){"use strict";var s=n(32054),a=n(90526),i=n(9818),r=n(69307),o=n(65736),c=n(99196),l=n.n(c),p=n(23177),u=n(8350);const __=o.__;t.Z=()=>{const[e,t]=(0,r.useState)(null),{isEnabled:n,isUpdating:o,defaultTemplate:c}=(0,i.useSelect)((e=>{const t=e(p.E);return{isEnabled:t.isSocialImageGeneratorEnabled(),isUpdating:t.isUpdatingSocialImageGeneratorSettings(),defaultTemplate:t.getSocialImageGeneratorDefaultTemplate()}}),[]),d=(0,i.useDispatch)(p.E).updateSocialImageGeneratorSettings;(0,r.useEffect)((()=>{if(e){d({defaults:{template:e}})}}),[e,d]);const[m]=(0,s.Z)("sm"),h=(0,r.useCallback)((e=>{let{open:t}=e;return l().createElement(a.Z,{fullWidth:m,variant:"secondary",size:"small",disabled:o||!n,onClick:t},__("Change default template","jetpack"))}),[n,m,o]);return l().createElement(u.Z,{value:e||c,onSelect:t,render:h})}},8350:function(e,t,n){"use strict";var s=n(88275),a=n(55609),i=n(69307),r=n(65736),o=n(39356),c=n(15214);const __=r.__;t.Z=e=>{let{onSelect:t,render:n,value:r=null}=e;const[l,p]=(0,i.useState)(!1),[u,d]=(0,i.useState)(r),m=(0,i.useCallback)((()=>p(!0)),[p]),h=(0,i.useCallback)((()=>{p(!1)}),[p]),g=(0,i.useCallback)((()=>{t(u),p(!1)}),[t,p,u]);return React.createElement(s.ZP,{targetDom:document.body},n({open:m}),l&&React.createElement(a.Modal,{onRequestClose:h,title:__("Pick a Template","jetpack")},React.createElement(o.Z,{value:u,onTemplateSelected:d}),React.createElement("div",{className:c.Z.footer},React.createElement(a.Button,{variant:"tertiary",onClick:h},__("Cancel","jetpack")),React.createElement(a.Button,{variant:"primary",onClick:g},__("Save","jetpack")))))}},39356:function(e,t,n){"use strict";var s=n(69307),a=n(65736),i=n(65235),r=n.n(i),o=n(47320),c=n(57227);const __=a.__;t.Z=e=>{let{value:t=null,onTemplateSelected:n=null}=e;const i=(0,s.useCallback)((e=>{const t=e.target.id;n?.(t)}),[n]);return React.createElement("div",{className:o.Z.templates},c.Z.map((e=>React.createElement("button",{onClick:i,id:e.name,key:e.name,className:r()(o.Z.template,{[o.Z["template--active"]]:e.name===t})},React.createElement("img",{src:e.image,alt:e.label}),React.createElement("span",{className:"screen-reader-text"},/* translators: %s is the name of the template */ | |
| 16 | -(0,a.sprintf)(__("Pick the %s template","jetpack"),e.label))))))}},57227:function(e,t,n){"use strict";var s=n(30253),a=n(91948),i=n(5353);const r=[{name:"highway",label:"Highway",image:n(27956)},{name:"dois",label:"Dois",image:s},{name:"edge",label:"Edge",image:a},{name:"fullscreen",label:"Fullscreen",image:i}];t.Z=r},76848:function(e,t,n){"use strict";var s=n(48229),a=n(9818),i=n(69307),r=n(99196),o=n.n(r),c=n(23177);t.Z=e=>{let{toggleClass:t,children:n,shouldRefresh:r=!1}=e;const l=(0,a.useDispatch)(c.E).refreshSocialImageGeneratorSettings;(0,i.useEffect)((()=>{r&&l()}),[l,r]);const{isEnabled:p,isUpdating:u}=(0,a.useSelect)((e=>{const t=e(c.E);return{isEnabled:t.isSocialImageGeneratorEnabled(),isUpdating:t.isUpdatingSocialImageGeneratorSettings()}}),[]),d=(0,a.useDispatch)(c.E).updateSocialImageGeneratorSettings,m=(0,i.useCallback)((()=>{d({enabled:!p})}),[p,d]);return o().createElement(s.Z,{className:t,disabled:u,checked:p,onChange:m,label:n})}},53513:function(e,t,n){"use strict";n(55609),n(69307);var s=n(65736);n(88219),n(89696);const __=s.__;__("You need a featured image or media attached to your post to be able to share as a social post.","jetpack"),__("By default, the image and text appear on social media as a link preview. To optimize engagement, share as a social post.","jetpack")},63855:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(13477),r=n(9818),o=n(37568),c=n(48751);t.Z=(0,r.withSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor");return{excerpt:t("excerpt"),content:t("content").split("\x3c!--more")[0]}}))((e=>{const{connections:t}=(0,o.Z)(),{message:n}=(0,c.Z)(),{title:s,excerpt:r,content:l}=e,p=t?.find((e=>"facebook"===e.service_name));let u;return p&&(u={displayName:p.display_name,avatarUrl:p.profile_picture}),React.createElement(i.S,a()({},e,{type:"article",user:u,customText:n||r||l||s}))}))},83704:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(17915),r=n(9818),o=n(22629),c=n(99196),l=n.n(c);t.Z=function(e){const t=(0,r.useSelect)((e=>{const{getEntityRecord:t}=e("core");return(0,o.decodeEntities)(t("root","site").title)}));return l().createElement(i.X,a()({},e,{siteTitle:t}))}},4124:function(e,t,n){"use strict";n.d(t,{m:function(){return c}});var s=n(4049),a=n(99196),i=n.n(a),r=n(48751),o=n(34074);function c(e){const{title:t,image:n,media:a}=e,{name:c,profileImage:l}=(0,o.getInstagramDetails)(),{message:p}=(0,r.Z)(),u=p||t;return i().createElement(s.V,{image:n,media:a,name:c,profileImage:l,caption:u})}},27725:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var s=n(93453),a=n(65736),i=n(99196),r=n.n(i),o=n(48751),c=n(34074);const __=a.__;function l(e){const{title:t,url:n,image:a,media:i}=e,{name:l,profileImage:p}=(0,c.getLinkedInDetails)(),{message:u}=(0,o.Z)(),d=`${u||t} ${i.length?n:""}`.trim();return r().createElement(s.S,{jobTitle:__("Job Title (Company Name)","jetpack"),image:a,name:l,profileImage:p,title:t,description:d,url:n,media:i})}},28586:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(60312),r=n(9818),o=n(22629),c=n(37568),l=n(48751),p=n(34074);t.Z=e=>{const{connections:t}=(0,c.Z)(),{message:n}=(0,l.Z)(),{content:s,siteName:u}=(0,r.useSelect)((e=>{const{getEditedPostAttribute:t}=e("core/editor"),{getSite:n}=e("core");return{content:t("content").split("\x3c!--more")[0],siteName:(0,o.decodeEntities)(n().title)}})),d=(0,p.shouldUploadAttachedMedia)(),m=t?.find((e=>"mastodon"===e.service_name));let h;m&&(h={displayName:m.display_name,avatarUrl:m.profile_picture,address:m.username});const g=e.media?.[0],f=g?.type.startsWith("image/")?g.url:null;return React.createElement(i.I,a()({},e,{siteName:u,user:h,description:s,customText:n,customImage:f,isSocialPost:d}))}},8454:function(e,t,n){"use strict";var s=n(55609),a=n(9818),i=n(65736),r=n(39517),o=n(34074),c=n(90785),l=n(81694),p=n(25399);const __=i.__;(0,a.withSelect)((e=>{const{getMedia:t}=e("core"),{getEditedPostAttribute:n}=e("core/editor"),s=n("featured_media");let a=s?(0,p.i)(t(s)):"";const i=(0,o.getImageGeneratorPostSettings)(),r=i.enabled?(0,c.t)(i.token):"",l=(0,o.getAttachedMedia)();if(r)a=r;else if(l?.[0]?.id){const[e]=l;!!e.id&&t(e.id)?.mime_type?.startsWith("image/")&&e.url&&(a=e.url)}const u=[];if((0,o.shouldUploadAttachedMedia)())if(r)u.push({type:"image/jpeg",url:r,alt:""});else{const e=e=>{const n=t(e);return n?{type:n.mime_type,url:(0,p.i)(n),alt:n.alt_text}:null};for(const{id:t}of l){const n=e(t);n&&u.push(n)}if(0===u.length&&s){const t=e(s);t&&u.push(t)}}return{title:n("meta")?.jetpack_seo_html_title||n("title"),description:n("meta")?.advanced_seo_description||n("excerpt")||n("content").split("\x3c!--more")[0]||__("Visit the post for more.","jetpack"),url:n("link"),image:a,media:u,initialTabName:null}}))((function(e){let{onClose:t,image:n,media:a,title:i,description:o,url:c,initialTabName:p}=e;const u=(0,l.P)();return React.createElement(s.Modal,{onRequestClose:t,className:"jetpack-social-previews__modal",__experimentalHideHeader:!0},React.createElement(s.Button,{className:"jetpack-social-previews__modal--close-btn",onClick:t,icon:r.Z,label:__("Close","jetpack")}),React.createElement(s.TabPanel,{className:"jetpack-social-previews__modal-previews",tabs:u,initialTabName:p},(e=>React.createElement("div",null,React.createElement(e.preview,{title:i,description:o,url:c,image:n,media:a})))))}))},18553:function(e,t,n){"use strict";n.d(t,{T:function(){return c}});var s=n(93122),a=n(99196),i=n.n(a),r=n(48751),o=n(34074);function c(e){const{title:t,url:n,image:a,media:c}=e,{name:l,profileImage:p}=(0,o.getNextdoorDetails)(),{message:u}=(0,r.Z)(),d=`${u||t} ${c.length?n:""}`.trim();return i().createElement(s.m,{image:a,name:l,profileImage:p,title:t,description:d,url:n,media:c})}},74140:function(e,t,n){"use strict";n(55609),n(65736),n(81694)},94714:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(1044),r=n(9818),o=n(37568),c=n(48751);t.Z=e=>{const{content:t,author:n}=(0,r.useSelect)((e=>{const{getUser:t}=e("core"),{getEditedPostAttribute:n}=e("core/editor"),s=n("author"),a=s&&t(s);return{content:n("content").split("\x3c!--more")[0],author:a?.name}})),{connections:s}=(0,o.Z)(),{message:l}=(0,c.Z)(),p=s?.find((e=>"tumblr"===e.service_name));let u;return p&&(u={displayName:p.display_name||n,avatarUrl:p.profile_picture}),React.createElement(i.b,a()({},e,{user:u,description:t,customText:l}))}},24766:function(e,t,n){"use strict";var s=n(10167),a=n(9818),i=n(99196),r=n.n(i);t.Z=function(e){let{title:t,description:n,image:i,url:o,media:c}=e;const l=(0,a.useSelect)((e=>{const{getTweetTemplate:s,getShareMessage:a}=e("jetpack/publicize");return[{...s(),text:a()+(c.length?` ${o}`:""),cardType:i?"summary_large_image":"summary",title:t,description:n,image:i,media:c,url:o}]}),[t,i,n,c,o]);return r().createElement(s.c,{tweets:l,hidePostPreview:!0})}},81694:function(e,t,n){"use strict";n.d(t,{P:function(){return v}});var s=n(82674),a=n.n(s),i=n(3396),r=n(9818),o=n(65736),c=n(99196),l=n.n(c),p=n(63855),u=n(83704),d=n(4124),m=n(27725),h=n(28586),g=n(18553),f=n(94714),k=n(24766);const __=o.__;function v(){const{isInstagramSupported:e,isMastodonSupported:t,isNextdoorSupported:n}=(0,r.useSelect)((e=>{const t=e("jetpack/publicize");return{isInstagramSupported:t.isInstagramConnectionSupported(),isMastodonSupported:t.isMastodonConnectionSupported(),isNextdoorSupported:t.isNextdoorConnectionSupported()}}));return(0,c.useMemo)((()=>[{title:__("Google Search","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"google"},e)),name:"google",preview:u.Z},{title:__("X","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"x"},e)),name:"x",preview:k.Z},{title:__("Facebook","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"facebook"},e)),name:"facebook",preview:p.Z},e?{title:__("Instagram","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"instagram"},e)),name:"instagram",preview:d.m}:null,{title:__("LinkedIn","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"linkedin"},e)),name:"linkedin",preview:m.y},n?{title:__("Nextdoor","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"nextdoor"},e)),name:"nextdoor",preview:g.T}:null,{title:__("Tumblr","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"tumblr-alt"},e)),name:"tumblr",preview:f.Z},t?{title:__("Mastodon","jetpack"),icon:e=>l().createElement(i.av,a()({serviceName:"mastodon"},e)),name:"mastodon",preview:h.Z}:null].filter(Boolean)),[e,t,n])}},25399:function(e,t,n){"use strict";function s(e){return e?e.media_details?.sizes?.large?.source_url||e.source_url:null}n.d(t,{i:function(){return s}})},13858:function(e,t,n){"use strict";n(69307),n(87728)},88219:function(e,t,n){"use strict";n(9818),n(12238),n(69307)},75323:function(e,t,n){"use strict";n(13419),n(86989),n(69307)},39118:function(e,t,n){"use strict";n(9818),n(12238)},75263:function(e,t,n){"use strict";n(9818),n(12238),n(69307)},98811:function(e,t,n){"use strict";n(9818),n(69307)},46791:function(e,t,n){"use strict";n(69307),n(1795)},1795:function(e,t,n){"use strict";const s="video/mp4",a="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"],u=r.concat(["image/gif","image/jpe","image/tif","image/tiff","image/webp"]),d=[a,"video/avi","video/mpg","video/mpeg","video/m4v"];r.concat([s,i,a]),r.concat([s,i]),o.concat([i,...c]),r.concat([s,a,i]),r.concat([s,i]),l.concat([...p,s,i]),u.concat([...d,s,i]),new Set([...r,...o,...l,...c,...p,"image/png","image/jpeg","image/jpg","image/heic","image/heif","image/webp"])},14085:function(e,t,n){"use strict";n(13419),n(9818),n(12238)},6230:function(e,t,n){"use strict";n(9818),n(69307),n(23177)},96672:function(e,t,n){"use strict";n(94333),n(69307),n(37568)},86419:function(e,t,n){"use strict";n(94333),n(9818),n(12238),n(69307)},45579:function(e,t,n){"use strict";n(13419),n(86989),n(9818),n(12238),n(69307),n(65736),n(37568),n(48751)},37568:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(9818);function a(){const{refreshConnectionTestResults:e,toggleConnectionById:t}=(0,s.useDispatch)("jetpack/publicize"),n=(0,s.useSelect)((e=>e("jetpack/publicize").getConnections()),[]),a=n.filter((e=>!e.enabled)).map((e=>e.id)),i=n.filter((e=>e.enabled));return{connections:n,hasConnections:n.length>0,hasEnabledConnections:n&&n.some((e=>e.enabled)),skippedConnections:a,enabledConnections:i,toggleById:t,refresh:e}}},48751:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=n(9818),a=n(12238);function i(){const{editPost:e}=(0,s.useDispatch)(a.store),{message:t,maxLength:n}=(0,s.useSelect)((e=>({message:e("jetpack/publicize").getShareMessage(),maxLength:e("jetpack/publicize").getShareMessageMaxLength()})),[]);return{message:t,maxLength:n,updateMessage:function(t){e({meta:{jetpack_publicize_message:t}})}}}},21052:function(e,t,n){"use strict";n.d(t,{Wh:function(){return l},wO:function(){return r}});var s=n(9818),a=n(23177),i=n(4957);const r="SET_AUTO_CONVERSION_SETTINGS";function o(){return l({isUpdating:!0})}function c(){return l({isUpdating:!1})}function l(e){return{type:r,options:e}}t.ZP={updateAutoConversionSettings:function*(e){try{yield o(),yield l(e),yield(0,i.Fl)(e);const t=yield(0,i.wi)();return yield l(t),!0}catch(e){const t=(0,s.select)(a.E).getAutoConversionSettings();return yield l(t),!1}finally{yield c()}},setAutoConversionSettings:l,refreshAutoConversionSettings:function*(){try{yield o();const e=yield(0,i.wi)();return yield l(e),!0}catch(e){return!1}finally{yield c()}}}},54725:function(e,t,n){"use strict";var s=n(21052),a=n(371),i=n(4462);const r={...a.ZP,...i.ZP,...s.ZP};t.Z=r},371:function(e,t,n){"use strict";n.d(t,{dz:function(){return r},ff:function(){return o}});var s=n(9818),a=n(23177),i=n(4957);const r="SET_JETPACK_SETTINGS";function o(e){return{type:r,options:e}}t.ZP={updateJetpackSettings:function*(e){try{yield o({is_updating:!0}),yield o(e),yield(0,i.RF)(e);const t=yield(0,i.es)();return yield o(t),!0}catch(e){const t=(0,s.select)(a.E).getJetpackSettings();return yield o(t),!1}finally{yield o({is_updating:!1})}},setJetpackSettings:o}},4462:function(e,t,n){"use strict";n.d(t,{ch:function(){return l},kg:function(){return r}});var s=n(9818),a=n(23177),i=n(4957);const r="SET_SOCIAL_IMAGE_GENERATOR_SETTINGS";function o(){return l({isUpdating:!0})}function c(){return l({isUpdating:!1})}function l(e){return{type:r,options:e}}t.ZP={updateSocialImageGeneratorSettings:function*(e){try{yield o(),yield l(e),yield(0,i.Ux)(e);const t=yield(0,i.oB)();return yield l(t),!0}catch(e){const t=(0,s.select)(a.E).getSocialImageGeneratorSettings();return yield l(t),!1}finally{yield c()}},setSocialImageGeneratorSettings:l,refreshSocialImageGeneratorSettings:function*(){try{yield o();const e=yield(0,i.oB)();return yield l(e),!0}catch(e){return!1}finally{yield c()}}}},4957:function(e,t,n){"use strict";n.d(t,{Fl:function(){return f},RF:function(){return d},Ux:function(){return h},es:function(){return u},oB:function(){return m},wi:function(){return g}});var s=n(86989),a=n.n(s);const i="FETCH_JETPACK_SETTINGS",r="UPDATE_JETPACK_SETTINGS",o="FETCH_SOCIAL_IMAGE_GENERATOR_SETTINGS",c="UPDATE_SOCIAL_IMAGE_GENERATOR_SETTINGS",l="FETCH_AUTO_CONVERSION_SETTINGS",p="UPDATE_AUTO_CONVERSION_SETTINGS",u=()=>({type:i}),d=e=>({type:r,settings:e}),m=()=>({type:o}),h=e=>({type:c,settings:e}),g=()=>({type:l}),f=e=>({type:p,settings:e});t.ZP={[i]:function(){return a()({path:"/jetpack/v4/social/settings"})},[r]:function(e){return a()({path:"/jetpack/v4/social/settings",method:"POST",data:e.settings})},[o]:function(){return a()({path:"/jetpack/v4/social-image-generator/settings"})},[c]:function(e){return a()({path:"/jetpack/v4/social-image-generator/settings",method:"POST",data:e.settings})},[l]:function(){return a()({path:"/jetpack/v4/auto-conversion/settings"})},[p]:function(e){return a()({path:"/jetpack/v4/auto-conversion/settings",method:"POST",data:e.settings})}}},23177:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var s=n(9818),a=n(54725),i=n(4957),r=n(45272),o=n(15781),c=n(22987);const l="jetpack-social-plugin",p={reducer:r.Z,actions:a.Z,selectors:c.Z,resolvers:o.ZP,controls:i.ZP,initialState:window?.jetpackSocialInitialState||window?.Initial_State?.socialInitialState||window?.Jetpack_Editor_Initial_State?.social||{}},u=(0,s.createReduxStore)(l,p);(0,s.register)(u)},20750:function(e,t,n){"use strict";var s=n(21052);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.wO?{...e,...t.options}:e}},71837:function(e,t){"use strict";t.Z=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},45272:function(e,t,n){"use strict";var s=n(9818),a=n(20750),i=n(71837),r=n(80697),o=n(35652),c=n(28696),l=n(54489);const p=(0,s.combineReducers)({sharesData:o.Z,siteData:c.Z,connectionData:i.Z,jetpackSettings:r.Z,socialImageGeneratorSettings:l.Z,autoConversionSettings:a.Z});t.Z=p},80697:function(e,t,n){"use strict";var s=n(371);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.dz?{...e,...t.options}:e}},35652:function(e,t){"use strict";t.Z=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},28696:function(e,t){"use strict";t.Z=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},54489:function(e,t,n){"use strict";var s=n(4462);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.kg?{...e,...t.options}:e}},15781:function(e,t,n){"use strict";var s=n(21052),a=n(371),i=n(4462),r=n(4957);t.ZP={getJetpackSettings:function*(){try{const e=yield(0,r.es)();if(e)return(0,a.ff)(e)}catch(e){console.log(e)}},getSocialImageGeneratorSettings:function*(){try{const e=yield(0,r.oB)();if(e)return(0,i.ch)(e)}catch(e){console.log(e)}},getAutoConversionSettings:function*(){try{const e=yield(0,r.wi)();if(e)return(0,s.Wh)(e)}catch(e){console.log(e)}}}},68113:function(e,t){"use strict";t.Z={getAutoConversionSettings:e=>e.autoConversionSettings,isAutoConversionAvailable:e=>e.autoConversionSettings.available,isAutoConversionEnabled:e=>e.autoConversionSettings.image,isAutoConversionSettingsUpdating:e=>e.autoConversionSettings.isUpdating}},43354:function(e,t){"use strict";const n=e=>e.connectionData?.connections??{},s={getConnections:n,getConnectionsAdminUrl:e=>e.connectionData?.adminUrl??null,hasConnections:e=>Object.keys(n(e)).length>0};t.Z=s},22987:function(e,t,n){"use strict";var s=n(68113),a=n(43354),i=n(82836),r=n(66450),o=n(85675),c=n(45073);const l={...o.Z,...a.Z,...i.Z,...r.Z,...c.Z,...s.Z};t.Z=l},82836:function(e,t){"use strict";t.Z={getJetpackSettings:e=>e.jetpackSettings,isModuleEnabled:e=>e.jetpackSettings.publicize_active,showPricingPage:e=>e.jetpackSettings.show_pricing_page,isUpdatingJetpackSettings:e=>e.jetpackSettings.is_updating,hasPaidPlan:e=>!(e.jetpackSettings?.showNudge??1),isEnhancedPublishingEnabled:e=>e.jetpackSettings?.isEnhancedPublishingEnabled??!1,getDismissedNotices:e=>e.jetpackSettings?.dismissedNotices,isInstagramConnectionSupported:e=>e.jetpackSettings?.isInstagramConnectionSupported,isMastodonConnectionSupported:e=>e.jetpackSettings?.isMastodonConnectionSupported}},66450:function(e,t){"use strict";t.Z={getSharesCount:e=>(e.sharesData?.publicized_count??0)+(e.sharesData?.to_be_publicized_count??0),getPostsCount:e=>e.sharesData?.shared_posts_count??0,isShareLimitEnabled:e=>e.sharesData?.is_share_limit_enabled??!1,numberOfSharesRemaining:e=>e.sharesData?.shares_remaining??null,shouldShowAdvancedPlanNudge:e=>e.sharesData?.show_advanced_plan_upgrade_nudge??!1}},85675:function(e,t){"use strict";t.Z={getAdminUrl:e=>e.siteData?.adminUrl??null,getAPIRootUrl:e=>e.siteData?.apiRoot??null,getAPINonce:e=>e.siteData?.apiNonce??null,getRegistrationNonce:e=>e.siteData?.registrationNonce??null,getSiteSuffix:e=>e.siteData?.siteSuffix??null,getPluginVersion:e=>e.siteData?.pluginVersion??null}},45073:function(e,t){"use strict";t.Z={getSocialImageGeneratorSettings:e=>e.socialImageGeneratorSettings,isSocialImageGeneratorAvailable:e=>e.socialImageGeneratorSettings.available,isSocialImageGeneratorEnabled:e=>e.socialImageGeneratorSettings.enabled,isUpdatingSocialImageGeneratorSettings:e=>e.socialImageGeneratorSettings.isUpdating,getSocialImageGeneratorDefaultTemplate:e=>e.socialImageGeneratorSettings.defaultTemplate}},13530:function(e,t,n){"use strict";n.r(t),n.d(t,{fetchFromAPI:function(){return o},getTwitterCards:function(){return p},refreshConnectionTestResults:function(){return a},refreshTweets:function(){return c},setTweets:function(){return l},setTwitterCards:function(){return u},toggleConnectionById:function(){return i},togglePublicizeFeature:function(){return r}});var s=n(9818);function a(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function i(e){return{type:"TOGGLE_CONNECTION_BY_ID",connectionId:e}}function r(){return{type:"TOGGLE_PUBLICIZE_FEATURE"}}function o(e){return{type:"FETCH_FROM_API",path:e}}function c(){return{type:"REFRESH_TWEETS"}}function l(e){return{type:"SET_TWEETS",tweets:e}}function p(e){const{twitterCardIsCached:t}=(0,s.select)("jetpack/publicize");return{type:"GET_TWITTER_CARDS",urls:e.filter((e=>!t(e)))}}function u(e){return{type:"SET_TWITTER_CARDS",cards:e}}},99376:function(e,t,n){"use strict";var s=n(86989),a=n.n(s);t.Z={FETCH_FROM_API:e=>{let{path:t}=e;return a()({path:t})}}},43785:function(e,t,n){"use strict";var s=n(13419),a=n(86989),i=n.n(a),r=n(9818),o=n(12238);t.ZP={REFRESH_CONNECTION_TEST_RESULTS:async function(){try{const e=(0,s.Pb)()?.social||{},t=e.connectionRefreshPath??"/wpcom/v2/publicize/connection-test-results",n=await i()({path:t}),a=(0,r.select)("jetpack/publicize").getConnections(),c=n,l=[],p={done:!1,enabled:Boolean(e.sharesData?.shares_remaining),toggleable:!0};for(const e of c){const t=a.find((t=>t.connection_id?t.connection_id===e.connection_id:t.id===e.id)),{done:n,enabled:s,toggleable:i}=t??p,r={display_name:e.display_name,username:e.username,service_name:e.service_name,id:e.id,profile_picture:e.profile_picture,done:n,enabled:s,toggleable:i,is_healthy:e.test_success,error_code:e.error_code,connection_id:e.connection_id};l.push(r)}return(0,r.dispatch)(o.store).editPost({jetpack_publicize_connections:l})}catch(e){}},TOGGLE_CONNECTION_BY_ID:async function(e){let{connectionId:t}=e;const n=(0,r.select)("jetpack/publicize").getConnections().map((e=>({...e,enabled:(e.connection_id?e.connection_id===t:e.id===t)?!e.enabled:e.enabled})));return(0,r.dispatch)(o.store).editPost({jetpack_publicize_connections:n})},TOGGLE_PUBLICIZE_FEATURE:async function(){const e=(0,r.select)("jetpack/publicize").getFeatureEnableState();return(0,r.dispatch)(o.store).editPost({meta:{jetpack_publicize_feature_enabled:!e}})}}},77771:function(e,t,n){"use strict";var s=n(9818),a=n(13530),i=n(99376),r=n(92479),o=n(82726),c=n(34074);const l=(0,s.registerStore)("jetpack/publicize",{actions:a,controls:i.Z,reducer:o.Z,selectors:c});(0,r.Z)(l)},92479:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(92819),a=n(24274),i=n.n(a),r=n(43785);function o(e){const t=[i()(r.ZP)];let n=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},a=[];const o={getState:e.getState,dispatch:function(){return n(...arguments)}};return a=t.map((e=>e(o))),n=(0,s.flowRight)(...a)(e.dispatch),e.dispatch=n,e}},82726:function(e,t,n){"use strict";function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case"REFRESH_CONNECTION_TEST_RESULTS":case"TOGGLE_CONNECTION_BY_ID":case"TOGGLE_PUBLICIZE_FEATURE":return e}return e}n.d(t,{Z:function(){return s}})},34074:function(e,t,n){"use strict";n.r(t),n.d(t,{getAttachedMedia:function(){return E},getConnections:function(){return f},getFailedConnections:function(){return c},getFeatureEnableState:function(){return k},getImageGeneratorPostSettings:function(){return b},getInstagramDetails:function(){return d},getJetpackSocialOptions:function(){return v},getJetpackSocialPostAlreadyShared:function(){return _},getLinkedInDetails:function(){return p},getMustReauthConnections:function(){return l},getNextdoorDetails:function(){return u},getShareMessage:function(){return h},getShareMessageMaxLength:function(){return g},getTweetTemplate:function(){return m},isInstagramConnectionSupported:function(){return y},isMastodonConnectionSupported:function(){return C},isNextdoorConnectionSupported:function(){return j},shouldUploadAttachedMedia:function(){return w}});var s=n(13419),a=n(9818),i=n(12238),r=n(92819);const o=255;function c(){return f().filter((e=>!1===e.test_success))}function l(){return f().filter((e=>"must_reauth"===e.test_success)).map((e=>e.service_name))}function p(){let{forceDefaults:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e){const e=f().find((e=>{let{service_name:t}=e;return"linkedin"===t}));if(e)return{name:e.display_name,profileImage:e.profile_picture}}return{name:"",profileImage:""}}function u(){let{forceDefaults:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e){const e=f().find((e=>{let{service_name:t}=e;return"nextdoor"===t}));if(e)return{name:e.display_name,profileImage:e.profile_picture}}return{name:"",profileImage:""}}function d(){const e=f().find((e=>{let{service_name:t}=e;return"instagram-business"===t}));return e?{name:e.username,profileImage:e.profile_picture}:{name:"username",profileImage:""}}function m(e){const t=e.connections||f(),n=t?.find((e=>"twitter"===e.service_name));return{name:n?.profile_display_name,profileImage:n?.profile_picture,screenName:n?.display_name}}function h(){const{getEditedPostAttribute:e}=(0,a.select)("core/editor"),t=e("meta"),n=(0,r.get)(t,["jetpack_publicize_message"],"");return n?n.substr(0,g()):""}function g(){return o}function f(){return(0,a.select)(i.store).getEditedPostAttribute("jetpack_publicize_connections")||[]}function k(){const{getEditedPostAttribute:e}=(0,a.select)(i.store),t=e("meta");return(0,r.get)(t,["jetpack_publicize_feature_enabled"],!0)}function v(){const{getEditedPostAttribute:e}=(0,a.select)(i.store),t=e("meta");return(0,r.get)(t,["jetpack_social_options"],{})}function _(){const{getEditedPostAttribute:e}=(0,a.select)(i.store),t=e("meta");return(0,r.get)(t,["jetpack_social_post_already_shared"],{})}function E(){return(0,r.get)(v(),["attached_media"],[])}function w(){return v()?.should_upload_attached_media??!1}function b(){return v()?.image_generator_settings??{}}function y(){return!!(0,s.Pb)()?.social?.isInstagramConnectionSupported}function j(){return!!(0,s.Pb)()?.social?.isNextdoorConnectionSupported}function C(){return!!(0,s.Pb)()?.social?.isMastodonConnectionSupported}},13419:function(e,t,n){"use strict";n.d(t,{Pb:function(){return s.Z},lQ:function(){return a.Z}});var s=n(50148),a=n(35004);n(76714),n(80354),n(75404),n(61053),n(11380),n(6342),n(96959)},6342:function(e,t,n){"use strict";n(99196)},96959:function(e,t,n){"use strict";n(69307)},50148:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});const s="Jetpack_Editor_Initial_State";function a(){return"object"==typeof window?window?.[s]??null:null}},35004:function(e,t,n){"use strict";function s(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null}n.d(t,{Z:function(){return s}})},61053:function(e,t,n){"use strict";var s=n(6975);n(69307);const{tracks:a}=s.Z,{recordEvent:i}=a},11380:function(e,t,n){"use strict";n(86989),n(69307)},75404:function(e,t,n){"use strict";var s=n(65736);n(96483),n(92819);const __=s.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},76714:function(e,t,n){"use strict";n(98817)},80354:function(e,t,n){"use strict";n(82674),n(94333)},4341:function(e,t,n){"use strict";var s=n(6895),a=n(65736),i=n(65235),r=n.n(i),o=n(85799),c=n(43255),l=n(84069),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d),h=n(59309),g=n(96300);const __=a.__;class f extends d.Component{static propTypes={inOfflineMode:u().bool.isRequired,siteRawUrl:u().string.isRequired};static defaultProps={inOfflineMode:!1,siteRawUrl:""};trackActivityClick=()=>{l.Z.tracks.recordJetpackClick({type:"activity-link",target:"at-a-glance",feature:"activity-log"})};render(){const{inOfflineMode:e}=this.props,t=__("Jetpack keeps a complete record of everything that happens on your site, taking the guesswork out of site management, debugging, and repair.","jetpack");return m().createElement("div",{className:"jp-dash-item__interior"},m().createElement(c.Z,{label:__("Activity","jetpack"),isModule:!1,className:r()({"jp-dash-item__is-inactive":e}),pro:!1},m().createElement("p",{className:"jp-dash-item__description"},e?__("Unavailable in Offline Mode.","jetpack"):t)),m().createElement(o.Z,{key:"view-activity",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:(0,s.Z)("calypso-activity-log",{site:this.props.siteRawUrl}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackActivityClick},__("View site activity","jetpack")))}}t.Z=(0,h.$j)((e=>({inOfflineMode:(0,g.Ex)(e)})))(f)},91248:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(64743),r=n(52947),o=n(69307),c=n(65736),l=n(97506),p=n(85799),u=n(43255),d=n(11020),m=n(41549),h=n(85733),g=n(84069),f=n(59584),k=n(92819),v=n(1137),_=n(25162),E=n.n(_),w=n(99196),b=n.n(w),y=n(59309),j=n(17296),C=n(96300),S=n(69508),N=n(33002);const __=c.__,_x=c._x;class x extends w.Component{static propTypes={siteRawUrl:E().string.isRequired,siteAdminUrl:E().string.isRequired,trackUpgradeButtonView:E().func,akismetData:E().oneOfType([E().string,E().object,E().number]).isRequired,isOfflineMode:E().bool.isRequired,upgradeUrl:E().string.isRequired,hasConnectedOwner:E().bool.isRequired};static defaultProps={siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isOfflineMode:"",trackUpgradeButtonView:k.noop};trackActivateClick(){g.Z.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"anti-spam"})}onActivateClick=()=>(this.trackActivateClick(),this.props.createNotice("is-info",__("Activating Akismet…","jetpack"),{id:"activating-akismet"}),i.ZP.activateAkismet().then((()=>{this.props.removeNotice("activating-akismet"),window.location.href=this.props.siteAdminUrl+"admin.php?page=akismet-key-config"})).catch((()=>{this.props.removeNotice("activating-akismet"),this.props.createNotice("is-error",__("Could not activate Akismet.","jetpack"),{id:"activate-akismet-failure"})})),!1);trackModerateClick(){g.Z.tracks.recordJetpackClick({type:"moderate-link",target:"at-a-glance",feature:"anti-spam"})}onModerateClick=()=>{this.trackModerateClick()};getContent(){const{akismetData:e,siteAdminUrl:t}=this.props,n=__("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 n;return"not_active"===e?n=(0,o.createInterpolateElement)(__("Already have an API key? <Button>Activate Akismet Anti-spam</Button>.","jetpack"),{Button:b().createElement(l.Z,{className:"jp-link-button",onClick:this.onActivateClick})}):"invalid_key"===e&&(n=(0,o.createInterpolateElement)(__("Already have an API key? <a>Get started</a>.","jetpack"),{a:b().createElement("a",{href:t+"admin.php?page=akismet-key-config"})})),b().createElement(h.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Automatically clear spam from comments and forms.","jetpack"),description:n,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"akismet",path:"dashboard",plan:(0,f.o2o)(f.V37),trackBannerDisplay:this.props.trackUpgradeButtonView,noIcon:!0})},c=()=>b().createElement(h.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"akismet",path:"dashboard",plan:(0,f.o2o)(f.V37)}),d=()=>this.props.hasConnectedOwner?i():c();if("N/A"===e)return b().createElement(u.Z,{label:n,module:"akismet",support:s,pro:!0},b().createElement("p",{className:"jp-dash-item__description"},__("Loading…","jetpack")));if(["not_installed","not_active","invalid_key"].includes(e)){const e={label:n,module:"akismet",support:s,className:"jp-dash-item__is-inactive",pro:!0};return this.props.hasAntiSpam||this.props.hasAkismet?b().createElement(u.Z,e,__("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.","jetpack")):this.props.isOfflineMode?b().createElement(u.Z,e,b().createElement("p",{className:"jp-dash-item__description"},__("Unavailable in Offline Mode.","jetpack"))):b().createElement(u.Z,a()({},e,{overrideContent:d()}))}return[b().createElement(u.Z,{key:"comment-moderation",label:n,module:"akismet",support:s,status:"is-working",pro:!0},(()=>0!==this.props.akismetData?b().createElement(b().Fragment,null,b().createElement("h2",{className:"jp-dash-item__count"},(0,r.Z)(this.props.akismetData)),b().createElement("p",{className:"jp-dash-item__description"},_x("Spam comments blocked.",'Example: "412 Spam comments blocked"',"jetpack"))):b().createElement("div",{className:"jp-dash-item__recently-activated"},b().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&&b().createElement(p.Z,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:`${this.props.siteAdminUrl}edit-comments.php`,onClick:this.onModerateClick},__("Moderate comments","jetpack"))]}render(){return b().createElement("div",{className:"jp-dash-item__interior"},b().createElement(d.Z,null),this.getContent())}}t.Z=(0,y.$j)((e=>({akismetData:(0,j.fU)(e),isAtomicSite:(0,S.Ug)(e),isOfflineMode:(0,C.Ex)(e),upgradeUrl:(0,v.z)(e,"akismet"),nonce:(0,S.VY)(e),hasConnectedOwner:(0,C.it)(e),hasAntiSpam:(0,N.CV)(e,"antispam"),hasAkismet:(0,N.CV)(e,"akismet")})),(e=>({createNotice:m.iI,removeNotice:m.qq,connectUser:()=>e((0,C.bL)())})))(x)},83326:function(e,t,n){"use strict";var s=n(80800),a=n(65736),i=n(97506),r=n(85799),o=n(84069),c=n(99196),l=n.n(c),p=n(59309),u=n(3230);const __=a.__;t.Z=(0,p.$j)((e=>({isDismissed:(0,u.wS)(e)})),(e=>({dismiss:()=>e((0,u.VP)({dismiss_dash_backup_getting_started:!0}))})))((e=>{let{isDismissed:t,dismiss:n}=e;const a=(0,c.useCallback)((()=>{n(),o.Z.tracks.recordEvent("jetpack_backup_getting_started_video_dismiss",{position:"at_a_glance"})}),[n]),p=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"at_a_glance"})}),[]);return t?null:l().createElement(r.Z,{className:"dash-backup-getting-started"},l().createElement(i.Z,{borderless:!0,compact:!0,className:"dash-backup-getting-started__dismiss",onClick:a},l().createElement("span",{className:"dashicons dashicons-no"})),l().createElement("a",{href:s.zh,target:"_blank",rel:"noreferrer"},l().createElement("img",{className:"dash-backup-getting-started__thumbnail",src:s.hp+"backup-getting-started-thumbnail.png",srcSet:`${s.hp+"backup-getting-started-thumbnail.png"} 1x, ${s.hp+"backup-getting-started-thumbnail-2x.png"} 2x`,alt:""})),l().createElement("div",{className:"dash-backup-getting-started__content"},l().createElement("h3",{className:"dash-backup-getting-started__header"},__("Getting started with Jetpack Backup","jetpack")),l().createElement("p",{className:"dash-backup-getting-started__text"},__("A short video guide on how to back up your website","jetpack"))),l().createElement(i.Z,{className:"dash-backup-getting-started__cta",href:s.zh,onClick:p,target:"_blank",rel:"noreferrer",compact:!0,primary:!0},__("Watch the video","jetpack")))}))},30647:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var s=n(43521),a=n(65736),i=n(85799),r=n(84069),o=n(99196),c=n.n(o),l=n(49890);const __=a.__,p=e=>{let{comments:t,plugins:n,posts:a,onClosePopup:p}=e;const u=(0,o.useRef)(!1);(0,o.useEffect)((()=>{u.current||(r.Z.tracks.recordEvent("jetpack_wpa_aag_backup_bar_chart_view",{comments:t,plugins:n,posts:a}),u.current=!0)}),[]);const d=(0,o.useMemo)((()=>[{count:a,label:__("Posts","jetpack"),backgroundColor:"#00BA37"},{count:n,label:__("Plugins","jetpack"),backgroundColor:"#3895BA"},{count:t,label:__("Comments","jetpack"),backgroundColor:"#E68B28"}]),[t,n,a]);return c().createElement(i.Z,{className:"jp-dash-upgrade-backup"},c().createElement(l.G,{posts:a,comments:t,onClosePopup:p}),c().createElement(s.Z,{items:d}))}},91498:function(e,t,n){"use strict";var s=n(84069),a=n(99196),i=n.n(a),r=n(59309),o=n(17296),c=n(30647);t.Z=(0,r.$j)((e=>{const t=(0,o.yZ)(e)?.general?.stats;return{comments:t?.comments,plugins:Object.keys((0,o.Fb)(e)).length,posts:t?.posts,isFetchingData:(0,o.vz)(e)||(0,o.F2)(e)}}))((e=>{let{comments:t,isFetchingData:n,plugins:r,posts:o}=e;const[l,p]=(0,a.useState)(!0),u=(0,a.useCallback)((()=>{const e={comments:t,plugins:r,posts:o,target:"backup_bar_chart_close",type:"dismiss"};s.Z.tracks.recordJetpackClick(e),p(!1)}),[t,r,o]);return!n&&l&&o>20?i().createElement(c.v,{posts:o,comments:t,plugins:r,onClosePopup:u}):null}))},49890:function(e,t,n){"use strict";n.d(t,{G:function(){return c}});var s=n(80800),a=n(65736),i=n(97506),r=n(99196),o=n.n(r);const __=a.__,c=e=>{let{posts:t,comments:n,onClosePopup:r}=e;return o().createElement("div",{className:"jp-dash-upgrade-backup__popup"},o().createElement(i.Z,{onClick:r,className:"jp-dash-upgrade-backup__popup-close-icon",compact:!0,borderless:!0},o().createElement("img",{src:s.hp+"/close.svg",alt:__("Close","jetpack")})),o().createElement("img",{className:"jp-dash-upgrade-backup__popup-lock-icon",src:s.hp+"/lock.svg",alt:__("Locked","jetpack")}),o().createElement("p",{className:"jp-dash-upgrade-backup__popup-title"},__("Upgrade to backup","jetpack")),o().createElement("p",null,(0,a.sprintf)(/* translators: 1 number of posts, 2 number of comments */ | |
| 17 | -__("Be sure your %1$d posts, %2$d comments, and more information are safely backed up with Jetpack","jetpack"),t,n)))}},92792:function(e,t,n){"use strict";var s=n(6895),a=n(55609),i=n(69771),r=n(69307),o=n(65736),c=n(61074),l=n(70157),p=n(97506),u=n(85799),d=n(43255),m=n(75402),h=n(83526),g=n(85733),f=n(84069),k=n(59584),v=n(92819),_=n(1137),E=n(25162),w=n.n(E),b=n(99196),y=n.n(b),j=n(59309),C=n(17296),S=n(96300),N=n(69508),x=n(33002),T=n(61372),A=n(83326),P=n(91498);const __=o.__,_x=o._x,Z=e=>y().createElement(d.Z,{label:__("VaultPress Backup","jetpack"),module:e.feature||"backups",support:{text:__("VaultPress Backup allows you to easily restore or download a backup from a specific moment.","jetpack"),link:(0,s.Z)("jetpack-support-backup")},className:e.className+" dash-backups",status:e.status,pro:!0,overrideContent:e.overrideContent},y().createElement("p",{className:"jp-dash-item__description"},e.content));class M extends b.Component{static propTypes={siteRawUrl:w().string.isRequired,getOptionValue:w().func.isRequired,rewindStatus:w().string.isRequired,rewindStatusReason:w().string.isRequired,trackUpgradeButtonView:w().func,vaultPressData:w().any.isRequired,hasBackups:w().bool.isRequired,hasRealTimeBackups:w().bool.isRequired,isOfflineMode:w().bool.isRequired,isVaultPressInstalled:w().bool.isRequired,isWoA:w().bool.isRequired,upgradeUrl:w().string.isRequired,hasConnectedOwner:w().bool.isRequired,backupUndoEvent:w().any.isRequired};static defaultProps={siteRawUrl:"",getOptionValue:v.noop,vaultPressData:"",isOfflineMode:!1,isVaultPressInstalled:!1,isWoA:!1,rewindStatus:"",trackUpgradeButtonView:v.noop,backupUndoEvent:{}};trackBackupsClick=(()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"backups-link";return function(){f.Z.tracks.recordJetpackClick({type:e,target:"at-a-glance",feature:"backups"})}})();trackRedeemCouponButtonView=()=>{const{partnerCoupon:e}=this.props;f.Z.tracks.recordEvent("jetpack_wpa_aag_redeem_partner_coupon_button_view",{feature:"backups",coupon_preset:e.preset})};getJetpackBackupBanner(){const{partnerCoupon:e,upgradeUrl:t,siteRawUrl:n,trackUpgradeButtonView:a}=this.props;if(this.props.hasConnectedOwner){if(e&&"jetpack_backup_daily"===e.product.slug){const t=(0,s.Z)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:n,query:`coupon=${e.coupon_code}`});return y().createElement(g.ZP,{callToAction:__("Redeem","jetpack"),title:(0,o.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 18 | -__("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,k.o2o)(k.N_2),trackBannerDisplay:this.trackRedeemCouponButtonView})}return y().createElement(y().Fragment,null,y().createElement(P.Z,null),y().createElement(g.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Never worry about losing your site – automatic backups keep your content safe.","jetpack"),disableHref:"false",href:t,eventFeature:"backups",path:"dashboard",plan:(0,k.o2o)(k.N_2),trackBannerDisplay:a}))}return y().createElement(g.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get automatic backups that keep your content safe.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"backups",path:"dashboard",plan:(0,k.o2o)(k.N_2)})}getVPContent(){const{hasBackups:e,isFetchingSite:t,isVaultPressInstalled:n,getOptionValue:a,siteRawUrl:i,vaultPressData:o}=this.props;return a("vaultpress")&&"success"===(0,v.get)(o,"code","")?Z({className:"jp-dash-item__is-active",status:"is-working",content:y().createElement("span",null,(0,v.get)(o,"message","")," ",(0,r.createInterpolateElement)(__("<a>View backup details</a>.","jetpack"),{a:y().createElement("a",{href:(0,s.Z)("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})}))}):t?this.renderLoading():Z(e?{className:"jp-dash-item__is-inactive",status:n?"pro-inactive":"pro-uninstalled",content:(0,r.createInterpolateElement)(__("To automatically back up your entire site, please <a>install and activate</a> VaultPress.","jetpack"),{a:y().createElement("a",{href:(0,s.Z)("calypso-plugins-setup",{site:i,query:"only=backups"}),target:"_blank",rel:"noopener noreferrer"})})}:{className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:this.getJetpackBackupBanner()})}renderManageBackupsLinks(){const{isWoA:e,siteRawUrl:t}=this.props;return y().createElement(u.Z,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom"},y().createElement("div",{className:"jp-dash-item__action-links"},y().createElement(a.ExternalLink,{href:e?(0,s.Z)("calypso-backups",{site:t}):(0,s.Z)("my-jetpack-manage-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("backups-link")},__("View your site's backups","jetpack")),y().createElement(a.ExternalLink,{href:(0,s.Z)("calypso-activity-log",{site:t,query:"group=rewind"}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("restore-points-link")},__("View your most recent restore points","jetpack"))))}getRewindContent(){const{hasRealTimeBackups:e,rewindStatus:t,siteRawUrl:n,backupUndoEventLoaded:i}=this.props,o=(e,t,n)=>y().createElement(u.Z,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick(n)},t),c=e=>Z({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",content:e});switch(t){case"provisioning":return y().createElement(y().Fragment,null,c(__("We are configuring your site's backups.","jetpack")));case"awaiting_credentials":return y().createElement(y().Fragment,null,c(__("Enter your SSH, SFTP or FTP credentials to enable one-click site restores and faster backups","jetpack")),o((0,s.Z)("jetpack-backup-dash-credentials",{site:n}),__("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:y().createElement(a.ExternalLink,{href:(0,s.Z)("jetpack-blog-realtime-mechanics"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("realtime-learn-more-link")})})),y().createElement(y().Fragment,null,c(t),this.renderManageBackupsLinks())}}return!1}renderLoading(){return Z({className:"",status:"",content:__("Loading…","jetpack")})}renderFromRewindStatus(){return this.props.hasBackups&&"unavailable"===this.props.rewindStatus&&"site_new"===this.props.rewindStatusReason?Z({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():y().createElement("div",{className:"jp-dash-item"},this.getRewindContent())}trackUndoFeatureView(){f.Z.tracks.recordEvent("jetpack_wpa_aag_backup_undo_view")}trackUndoButtonClick(){f.Z.tracks.recordEvent("jetpack_wpa_aag_backup_undo_button_click")}renderUndo(){const{backupUndoEvent:e}=this.props,{activityDate:t,activityTitle:n,activityDescription:a,actorName:o,actorRole:u,actorAvatarUrl:d,undoBackupId:m}=e,h=(0,i.dateI18n)("M jS, g:i a",t),g=y().createElement("div",{className:"dops-card jp-dash-item__card dash-backup-undo"},y().createElement("div",{className:"jp-dash-item__description dash-backup-undo__activity-log"},y().createElement("div",{className:"dash-backup-undo__activity-log-date"},h),y().createElement("div",{className:"dash-backup-undo__activity-log-action"},n),y().createElement("div",{className:"dash-backup-undo__activity-log-description"},a),y().createElement("div",{className:"dash-backup-undo__activity-log-user-meta"},y().createElement("div",{className:"dash-backup-undo__activity-log-user-meta-avatar"},y().createElement("img",{alt:o,src:d??"https://www.gravatar.com/avatar/0?s=96&d=mm",width:"30",height:"30"})),y().createElement("div",{className:"dash-backup-undo__activity-log-user-meta-name"},o,u&&" - "+u))),y().createElement("div",{className:"dash-backup-undo__cta"},(0,r.createInterpolateElement)(__("<button><icon /> Undo</button>","jetpack"),{button:y().createElement(p.Z,{href:(0,s.Z)("jetpack-backup-undo-cta",{path:m}),primary:!0,target:"_blank",onClick:this.trackUndoButtonClick}),icon:y().createElement(c.Z,{icon:l.Z})})));return this.trackUndoFeatureView(),y().createElement(y().Fragment,null,Z({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",overrideContent:g}),this.renderManageBackupsLinks())}renderGettingStartedVideo(){return"awaiting_credentials"!==this.props.rewindStatus?null:y().createElement(A.Z,null)}render(){return this.props.showBackups?this.props.isOfflineMode?y().createElement("div",{className:"jp-dash-item__interior"},Z({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:__("Unavailable in Offline Mode.","jetpack")})):(this.props.isFetchingSite&&this.renderLoading(),y().createElement("div",null,y().createElement(h.Z,null),"active"===this.props.rewindStatus&&y().createElement(m.Z,null),this.renderFromRewindStatus(),this.renderGettingStartedVideo())):null}}t.Z=(0,j.$j)((e=>({vaultPressData:(0,C.XK)(e),isOfflineMode:(0,S.Ex)(e),isVaultPressInstalled:(0,T.P8)(e,"vaultpress/vaultpress.php"),showBackups:(0,N.xR)(e),upgradeUrl:(0,_.z)(e,"backup"),hasConnectedOwner:(0,S.it)(e),isFetchingSite:(0,x._5)(e),hasBackups:(0,x.CV)(e,"backups"),hasRealTimeBackups:(0,x.CV)(e,"real-time-backups"),partnerCoupon:(0,N.DV)(e),isWoA:(0,N.Pw)(e),backupUndoEvent:(0,C.b9)(e),backupUndoEventLoaded:(0,C.O1)(e),backupUndoEventIsFetching:(0,C.Ve)(e)})),(e=>({connectUser:()=>e((0,S.bL)())})))(M)},96438:function(e,t,n){"use strict";var s=n(64743),a=n(60128),i=n(14186),r=n(6895),o=n(55609),c=n(69307),l=n(65736),p=n(65235),u=n.n(p),d=n(42698),m=n(87553),h=n(81114),g=n(84069),f=n(25162),k=n.n(f),v=n(99196),_=n(59309),E=n(96300),w=n(69508),b=n(33002),y=n(61372);const __=l.__,_x=l._x,j="admin.php?page=jetpack-boost",C=["jetpack-boost/jetpack-boost.php","jetpack-boost-dev/jetpack-boost.php"],S="jetpack-boost",N=e=>{let{siteAdminUrl:t,siteConnectionStatus:n,siteUrl:r,apiRoot:o,apiNonce:p,fetchPluginsData:d,fetchingPluginsData:f,isBoostInstalled:k,isBoostActive:_,hasActiveBoostPurchase:E,latestSpeedScores:w={}}=e;const b="offline"===n,[y,N]=(0,v.useState)(!1),[P,Z]=(0,v.useState)(!1),[M,O]=(0,v.useState)(!1),[R,L]=(0,v.useState)("C"),[I,z]=(0,v.useState)(1),[U,D]=(0,v.useState)(0),[V,F]=(0,v.useState)(0),[B,H]=(0,v.useState)(!1),q=k&&_,W=!(q||b||f||B),J=_x("Boost","The Jetpack Boost product name, without the Jetpack prefix","jetpack"),$=()=>{D(w.scores.mobile),F(w.scores.desktop),L((0,a.yn)(w.scores.mobile,w.scores.desktop)),z(G(1e3*w.timestamp))},G=e=>{const t=new Date(e),n=new Date-t;return Math.floor(n/864e5)};(0,v.useEffect)((()=>{w&&G(1e3*w.timestamp)<21?$():(async()=>{if(!b&&!q){N(!0);try{const e=await(0,a.tZ)(!0,o,r,p),t=(0,a.yn)(e.current.mobile,e.current.desktop);L(t),D(e.current.mobile),F(e.current.desktop),z(0),N(!1)}catch(e){g.Z.tracks.recordEvent("jetpack_boost_speed_score_error",{feature:S,position:"at-a-glance",error:e}),w&&w.scores?$():H(!0),N(!1)}}})()}),[]);const K=()=>{switch(R){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 k?O(!0):Z(!0),g.Z.tracks.recordJetpackClick({target:"boost_instant_tests_install",type:k?"activate":"install",feature:S}),s.ZP.installPlugin(S,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>d())).finally((()=>{Z(!1),O(!1)}))}),[d,k,q]);return React.createElement("div",{className:"dash-boost-speed-score"},W?React.createElement(React.Fragment,null,y?React.createElement(h.Z,{className:"dash-boost-speed-score__section-header",label:J}):React.createElement("div",{className:"dash-boost-speed-score__summary"},React.createElement("div",null,React.createElement("span",{className:"dash-boost-speed-score__summary-grade"},(0,l.sprintf)( | |
| 19 | -// translators: %s is the letter grade of the site's speed performance. | |
| 20 | -__("Your site’s speed performance score: %s","jetpack"),R),React.createElement(x,null)),React.createElement("p",{className:u()("dash-boost-speed-score__score-text",["C","D","E","F"].includes(R)?"warning":"")},(()=>{switch(R){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(I){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)( | |
| 21 | -// translators: %s is the number of days since the site was last tested. | |
| 22 | -__("Your site was tested %s days ago","jetpack"),I)}})()),React.createElement("button",{className:"dash-boost-speed-score__install-button-link",onClick:Y,disabled:P||M},(()=>{let e;if(!q)return P?e=__("Installing…","jetpack"):M?e=__("Activating…","jetpack"):k&&(e=__("Activate Boost to run instant tests","jetpack")),e??__("Install Boost to run instant tests","jetpack")})()))),React.createElement("div",{className:"dash-boost-speed-score__score-bars"},React.createElement(i.Z,{score:U,active:!0,isLoading:y,showPrevScores:!1,scoreBarType:"mobile"}),React.createElement(i.Z,{score:V,active:!0,isLoading:y,showPrevScores:!1,scoreBarType:"desktop"}))):React.createElement(h.Z,{className:"dash-boost-speed-score__section-header",label:J}),React.createElement("div",null,React.createElement(m.Z,{pluginName:J,pluginSlug:S,pluginFiles:C,pluginLink:t+j,installOrActivatePrompt:(0,c.createInterpolateElement)((0,l.sprintf)("<b>%1$s<Info/><br/></b>%2$s",K().top,K().bottom),{br:React.createElement("br",null),b:React.createElement("b",null),Info:React.createElement(T,null)}),installedPrompt:E?__("We’re automatically re-generating your site’s Critical CSS.","jetpack"):(0,c.createInterpolateElement)(__("<a>Re-generate your Critical CSS after you make changes on your site</a><Info/>","jetpack"),{a:React.createElement("a",{href:t+j}),Info:React.createElement(A,null)})})))};N.propTypes={siteAdminUrl:k().string.isRequired,siteConnectionStatus:k().oneOfType([k().bool,k().string]).isRequired,siteUrl:k().string.isRequired,apiRoot:k().string.isRequired,apiNonce:k().string.isRequired,fetchingPluginsData:k().bool.isRequired,isBoostInstalled:k().bool.isRequired,isBoostActive:k().bool.isRequired,hasActiveBoostPurchase:k().bool.isRequired,latestSpeedScores:k().shape({timestamp:k().number,scores:k().shape({mobile:k().number,desktop:k().number}),theme:k().string})},t.Z=(0,_.$j)((e=>({siteConnectionStatus:(0,E.Gz)(e),siteUrl:(0,w.JR)(e),apiRoot:(0,w.yB)(e),apiNonce:(0,w.VY)(e),fetchingPluginsData:(0,y.vz)(e),isBoostInstalled:C.some((t=>(0,y.P8)(e,t))),isBoostActive:C.some((t=>(0,y.TB)(e,t))),hasActiveBoostPurchase:(0,b.az)(e),latestSpeedScores:(0,w.aZ)(e)})),(e=>({fetchPluginsData:()=>e((0,y.s4)())})))(N);const x=()=>{const e=(0,v.useCallback)((()=>{g.Z.tracks.recordJetpackClick({target:"boost-grade-info-button",feature:S})}),[]);return React.createElement("div",{className:"boost-grade-info"},React.createElement(d.Z,{onClick:e,screenReaderText:__("Learn more about how this grade is calculated","jetpack")},React.createElement("p",{className:"boost-grade-info__grades-description"},__("Your Overall Score is a summary of your website performance across both mobile and desktop devices. It gives a general idea of your sites’ overall performance.","jetpack")),React.createElement("div",{className:"boost-grade-info__grades-table"},React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null,"A"),React.createElement("td",null,"90+")),React.createElement("tr",null,React.createElement("th",null,"B"),React.createElement("td",null,"75-90")),React.createElement("tr",null,React.createElement("th",null,"C"),React.createElement("td",null,"50-75")))),React.createElement("table",null,React.createElement("tbody",null,React.createElement("tr",null,React.createElement("th",null,"D"),React.createElement("td",null,"35-50")),React.createElement("tr",null,React.createElement("th",null,"E"),React.createElement("td",null,"25-35")),React.createElement("tr",null,React.createElement("th",null,"F"),React.createElement("td",null,"0-25")))))))},T=()=>{const e=(0,v.useCallback)((()=>{g.Z.tracks.recordJetpackClick({target:"boost-conversion-loss-info-button",feature:S})}),[]),t=(0,v.useCallback)((()=>{g.Z.tracks.recordJetpackClick({target:"boost-conversion-loss-info-source",feature:S})}),[]);return React.createElement("div",{className:"boost-conversion-loss-info"},React.createElement(d.Z,{onClick:e,screenReaderText:__("Learn more about how slow sites lose visitors","jetpack")},React.createElement("p",{className:"boost-conversion-loss-info__source"},__("Source: ","jetpack"),React.createElement(o.ExternalLink,{href:"https://web.dev/why-speed-matters/",target:"_blank",rel:"noopener noreferrer",onClick:t},"web.dev"))))},A=()=>{const e=(0,r.Z)("jetpack-boost-critical-css"),t=(0,v.useCallback)((()=>{g.Z.tracks.recordJetpackClick({target:"boost-critical-css-info-button",feature:S})}),[]),n=(0,v.useCallback)((()=>{g.Z.tracks.recordJetpackClick({target:"boost-critical-css-info-link",feature:S})}),[]);return React.createElement("div",{className:"boost-critical-css-info"},React.createElement(d.Z,{onClick:t,screenReaderText:__("Learn more about how critical CSS works","jetpack")},React.createElement("h3",{className:"boost-critical-css-info__title"},__("Regenerate Critical CSS","jetpack")),React.createElement("p",null,(0,c.createInterpolateElement)(__("You should regenerate <ExternalLink>Critical CSS</ExternalLink> to optimize speed whenever your site’s HTML or CSS structure changes after:","jetpack"),{ExternalLink:React.createElement(o.ExternalLink,{onClick:n,href:e,target:"_blank",rel:"noopener noreferrer"})})),React.createElement("ul",{className:"boost-critical-css-info__list"},React.createElement("li",null,__("Making theme changes","jetpack")),React.createElement("li",null,__("Writing a new post/page","jetpack")),React.createElement("li",null,__("Editing a post/page","jetpack")),React.createElement("li",null,__("Activating, deactivating, or updating plugins that impact your site layout","jetpack")),React.createElement("li",null,__("Upgrading your WordPress version if the new release includes core CSS changes","jetpack"))),React.createElement("p",{className:"boost-critical-css-info__bottom-text"},__("Being on top of this can be tedious and time-consuming. Boost’s cloud service can automatically detect when your site needs a new Critical CSS and generate it, improving site performance and SEO without requiring manual monitoring.","jetpack"))))}},21475:function(e,t,n){"use strict";var s=n(69307),a=n(65736),i=n(57633),r=n(43255),o=n(27583),c=n(5060),l=n(25162),p=n.n(l),u=n(99196),d=n.n(u),m=n(59309),h=n(96300),g=n(69508);const __=a.__,_x=a._x;class f extends u.Component{siteConnection(){let e="";return this.props.isOfflineMode?e=d().createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?d().createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):d().createElement(c.Z,{icon:"globe",size:64}),d().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=d().createElement("div",null,d().createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?d().createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):d().createElement(c.Z,{icon:"globe",size:64}),d().createElement("div",{className:"jp-connection-settings__text"},__("Your site is connected to WordPress.com.","jetpack"),this.props.isConnectionOwner&&d().createElement("span",{className:"jp-connection-settings__is-owner"},__("You are the Jetpack owner.","jetpack")),this.props.userCanDisconnectSite&&d().createElement("div",{className:"jp-connection-settings__actions"},d().createElement(i.Z,{asLink:!0,autoOpenInDisconnectRoute:!0})))))),e}userConnection(){const e=this.props.isConnectionOwner?null:d().createElement(i.Z,{asLink:!0,connectUser:!0,from:"connection-settings"});let t="";return this.props.isOfflineMode?d().createElement("div",{className:"jp-connection-settings__info"},this.props.userGravatar?d().createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userGravatar}):d().createElement(c.Z,{icon:"user",size:64}),d().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"):d().createElement("div",null,d().createElement("div",{className:"jp-connection-settings__info"},d().createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.wpComConnectedUser.avatar}),d().createElement("div",{className:"jp-connection-settings__text"},(0,s.createInterpolateElement)((0,a.sprintf)(/* translators: Placeholder is the WordPress user login name. */ | |
| 23 | -__("Connected as <span>%s</span>","jetpack"),this.props.wpComConnectedUser.login),{span:d().createElement("span",{className:"jp-connection-settings__username"})}),d().createElement("div",{className:"jp-connection-settings__email"},this.props.wpComConnectedUser.email))),d().createElement("div",{className:"jp-connection-settings__actions"},e)):d().createElement("div",null,d().createElement("div",{className:"jp-connection-settings__info"},__("Get the most out of Jetpack.","jetpack")),d().createElement("div",{className:"jp-connection-settings__actions"},e)),t)}render(){return d().createElement("div",null,d().createElement(o.Z,null),d().createElement("div",{className:"jp-at-a-glance__item-grid"},d().createElement("div",{className:"jp-at-a-glance__left"},d().createElement("div",{className:"jp-dash-item__interior"},d().createElement(r.Z,{className:"jp-connection-type",label:_x("Site connection","Dashboard widget header","jetpack")},this.siteConnection()))),this.props.userCanConnectAccount&&d().createElement("div",{className:"jp-at-a-glance__right"},d().createElement("div",{className:"jp-dash-item__interior"},d().createElement(r.Z,{className:"jp-connection-type",label:_x("Account connection","Dashboard widget header","jetpack")},this.userConnection())))))}}f.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},t.Z=(0,m.$j)((e=>({siteConnectionStatus:(0,h.Gz)(e),isOfflineMode:(0,h.Ex)(e),userCanDisconnectSite:(0,g.WB)(e),userCanConnectAccount:(0,g.n0)(e),userGravatar:(0,g.KF)(e),username:(0,g.Ms)(e),isConnectionOwner:(0,h.QM)(e),isLinked:(0,h.BU)(e),siteIcon:(0,g.ze)(e),isFetchingUserData:(0,h.Dd)(e),wpComConnectedUser:(0,h.tN)(e)})))(f)},6408:function(e,t,n){"use strict";var s=n(6895),a=n(55609),i=n(69307),r=n(65736),o=n(88154),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(97436);const __=r.__,_x=r._x,m=["zero-bs-crm/ZeroBSCRM.php"];class h extends p.Component{static propTypes={siteAdminUrl:l().string.isRequired};render(){return u().createElement(o.Z,{iconAlt:__("Plugin icon","jetpack"),iconSrc:d,pluginName:_x("CRM","The Jetpack CRM product name, without the Jetpack prefix","jetpack"),pluginFiles:m,pluginSlug:"zero-bs-crm",pluginLink:this.props.siteAdminUrl+"admin.php?page=zerobscrm-dash",installOrActivatePrompt:(0,i.createInterpolateElement)(__("Sell more and get more leads with the free Jetpack CRM plugin built specifically for WordPress.<br /><ExternalLink>Learn more</ExternalLink>","jetpack"),{ExternalLink:u().createElement(a.ExternalLink,{href:(0,s.Z)("stats-nudges-crm-learn")}),br:u().createElement("br",null)})})}}t.Z=h},36288:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(88275),r=n(1862),o=n(65736),c=n(69552),l=n(70298),p=n(26551),u=n(69270),d=n(7679),m=n(2353),h=n(84069),g=n(92819),f=n(99196),k=n.n(f),v=n(59309),_=n(96300),E=n(69508),w=n(50416),b=n(15080),y=n(4341),j=n(91248),C=n(92792),S=n(96438),N=n(21475),x=n(6408),T=n(51806),A=n(73823),P=n(50786),Z=n(49260),M=n(39441),O=n(46158),R=n(10242),L=n(86354);const __=o.__;class I extends f.Component{trackSecurityClick=()=>h.Z.tracks.recordJetpackClick("aag_manage_security_wpcom");trackUpgradeButtonView=(()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return()=>h.Z.tracks.recordEvent("jetpack_wpa_aag_upgrade_button_view",{feature:e})})();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},n=k().createElement(c.Z,{label:__("Security","jetpack"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isOfflineMode||!this.props.userCanManageModules?"":__("Manage security settings","jetpack"),externalLinkPath:this.props.isOfflineMode?"":"#/security",externalLinkClick:this.trackSecurityClick}),s=k().createElement("div",null,k().createElement(c.Z,{label:__("Connections","jetpack"),className:"jp-dash-section-header__connections"}),k().createElement(N.Z,null)),o=(0,g.get)(this.props.rewindStatus,["state"],""),m=(0,g.get)(this.props.rewindStatus,["reason"],""),f=[],v=!this.props.fetchingScanStatus&&"vp_active_on_site"===this.props.scanStatus?.reason;if(this.props.isAtomicSite||this.props.multisite&&!v||f.push(k().createElement(Z.Z,a()({},e,t,{trackUpgradeButtonView:this.trackUpgradeButtonView("scan")}))),f.push(k().createElement(j.Z,a()({},t,{trackUpgradeButtonView:this.trackUpgradeButtonView("akismet")}))),"inactive"!==this.props.getModuleOverride("protect")&&f.push(k().createElement(P.Z,e)),"inactive"!==this.props.getModuleOverride("monitor")&&f.push(k().createElement(T.Z,e)),"active"===o&&f.unshift(k().createElement(y.Z,a()({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){const g=!this.props.multisite&&!this.props.isOfflineMode&&this.props.hasConnectedOwner,v=[];"inactive"!==this.props.getModuleOverride("photon")&&v.push(k().createElement(A.Z,e)),"inactive"!==this.props.getModuleOverride("search")&&v.push(k().createElement(M.Z,a()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("search")}))),"inactive"!==this.props.getModuleOverride("videopress")&&v.push(k().createElement(L.Z,a()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("videopress")}))),this.props.userCanManagePlugins&&v.push(k().createElement(x.Z,{siteAdminUrl:this.props.siteAdminUrl}));const _=!this.props.isOfflineMode&&this.props.partnerCoupon&&k().createElement(r.es,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,assetBaseUrl:this.props.pluginBaseUrl,connectionStatus:this.props.connectionStatus,partnerCoupon:this.props.partnerCoupon,siteRawUrl:this.props.siteRawUrl,tracksUserData:!!this.props.tracksUserData,analytics:h.Z}),E=g?k().createElement("div",{className:"jp-at-a-glance__pinned-bundle"},k().createElement(O.Z,null),k().createElement(C.Z,a()({},e,{siteRawUrl:this.props.siteRawUrl,rewindStatus:o,rewindStatusReason:m,trackUpgradeButtonView:this.trackUpgradeButtonView("backups")}))):null,w=this.props.userCanManagePlugins?k().createElement("div",{className:"jp-at-a-glance__pinned-bundle"},k().createElement(S.Z,{siteAdminUrl:this.props.siteAdminUrl})):void 0;return k().createElement(i.ZP,null,k().createElement("div",{className:"jp-at-a-glance"},k().createElement("h1",{className:"screen-reader-text"},__("Jetpack At A Glance Dashboard","jetpack")),k().createElement(d.Z,null),k().createElement(u.Z,null),k().createElement(l.Z,null),k().createElement(p.Z,null),_,k().createElement(R.Z,a()({},e,t)),k().createElement(z,{header:n,cards:f,pinnedBundle:E}),k().createElement(z,{header:k().createElement(c.Z,{label:__("Performance and Growth","jetpack")}),cards:v,pinnedBundle:w}),s))}let _="";this.props.userCanViewStats&&(_=k().createElement(R.Z,a()({},e,t)));const E=k().createElement(P.Z,e),w=this.props.getOptionValue("protect")&&this.props.hasConnectedOwner;return this.props.userIsSubscriber?k().createElement("div",null,_,s):k().createElement("div",null,_,w&&n,w&&E,s)}}t.Z=(0,v.$j)((e=>({userCanManageModules:(0,E.pK)(e),userCanViewStats:(0,E.px)(e),userCanManagePlugins:(0,E.ic)(e),userIsSubscriber:(0,E.dc)(e),isAtomicSite:(0,E.Ug)(e),isOfflineMode:(0,_.Ex)(e),getModuleOverride:t=>(0,w.Qy)(e,t),multisite:(0,E.TA)(e),scanStatus:(0,b.C8)(e),fetchingScanStatus:(0,b.gE)(e),hasConnectedOwner:(0,_.it)(e),connectionStatus:(0,_.Zp)(e),partnerCoupon:(0,E.DV)(e),pluginBaseUrl:(0,E.wB)(e),tracksUserData:(0,E.hv)(e),apiRoot:(0,E.yB)(e),apiNonce:(0,E.VY)(e),registrationNonce:(0,E.H$)(e)})))((0,m.u)(I));const z=e=>{let{cards:t=[],header:n,pinnedBundle:s}=e;return t.length?k().createElement(k().Fragment,null,n,s,(0,g.chunk)(t,2).map(((e,t)=>{let[n,s]=e;return k().createElement("div",{className:"jp-at-a-glance__item-grid",key:`card-${t}`},k().createElement("div",{className:"jp-at-a-glance__left"},n),k().createElement("div",{className:"jp-at-a-glance__right"},s))}))):null}},51806:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(97506),o=n(43255),c=n(84069),l=n(25162),p=n.n(l),u=n(99196),d=n.n(u),m=n(59309),h=n(96300),g=n(50416);const __=i.__;class f extends u.Component{static propTypes={isOfflineMode:p().bool.isRequired,isModuleAvailable:p().bool.isRequired,hasConnectedOwner:p().bool.isRequired};activateAndTrack=()=>{c.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),this.props.updateOptions({monitor:!0})};connect=()=>this.props.connectUser();getContent(){const e=__("Downtime monitoring","jetpack"),t={text:__("Jetpack’s downtime monitor will continuously monitor your site and alert you the moment that downtime is detected.","jetpack"),link:(0,s.Z)("jetpack-support-monitor")};if(this.props.getOptionValue("monitor")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner)return d().createElement(o.Z,{label:e,module:"monitor",support:t,status:"is-working"},d().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 n=this.props.hasConnectedOwner?(0,a.createInterpolateElement)(__("<Button>Activate Monitor</Button> to receive email notifications if your site goes down.","jetpack"),{Button:d().createElement(r.Z,{className:"jp-link-button",onClick:this.activateAndTrack})}):__("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack");return d().createElement(o.Z,{label:e,module:"monitor",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},d().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode.","jetpack"):n),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&d().createElement("p",{className:"jp-dash-item__description jp-dash-item__connect"},(0,a.createInterpolateElement)(__("<Button>Connect your WordPress.com</Button> account to use this feature.","jetpack"),{Button:d().createElement(r.Z,{className:"jp-link-button",onClick:this.connect})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}t.Z=(0,m.$j)((e=>({isOfflineMode:(0,h.Ex)(e),isModuleAvailable:(0,g.v1)(e,"monitor"),hasConnectedOwner:(0,h.it)(e)})),(e=>({connectUser:()=>e((0,h.bL)())})))(f)},73823:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(97506),o=n(43255),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(59309),m=n(96300),h=n(50416);const __=i.__;class g extends p.Component{static propTypes={isOfflineMode:l().bool.isRequired,isModuleAvailable:l().bool.isRequired};activatePhoton=()=>this.props.updateOptions({photon:!0});getContent(){const e=__("Image Accelerator","jetpack"),t={text:__("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.","jetpack"),link:(0,s.Z)("jetpack-support-photon")};return this.props.getOptionValue("photon")?u().createElement(o.Z,{label:e,module:"photon",support:t,status:"is-working"},u().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"))):u().createElement(o.Z,{label:e,module:"photon",support:t,className:"jp-dash-item__is-inactive"},u().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,a.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:u().createElement(r.Z,{className:"jp-link-button",onClick:this.activatePhoton})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}t.Z=(0,d.$j)((e=>({isOfflineMode:(0,m.Ex)(e),isModuleAvailable:(0,h.v1)(e,"photon")})))(g)},50786:function(e,t,n){"use strict";var s=n(6895),a=n(52947),i=n(69307),r=n(65736),o=n(97506),c=n(43255),l=n(4681),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d),h=n(59309),g=n(17296),f=n(96300),k=n(50416);const __=r.__;class v extends d.Component{static propTypes={isOfflineMode:u().bool.isRequired,protectCount:u().any.isRequired,isModuleAvailable:u().bool.isRequired,hasConnectedOwner:u().bool.isRequired,connectUser:u().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.Z)("jetpack-support-protect")};if(this.props.getOptionValue("protect")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner){const n=this.props.protectCount;return"N/A"===n?m().createElement(c.Z,{label:e,module:"protect",support:t},m().createElement("p",{className:"jp-dash-item__description"},__("Loading…","jetpack"))):0===n?m().createElement(c.Z,{label:e,module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},m().createElement("div",{className:"jp-dash-item__recently-activated-lower"},m().createElement(l.Z,null),m().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is actively blocking malicious login attempts. Data will display here soon!","jetpack")))):m().createElement(c.Z,{label:e,module:"protect",support:t,status:"is-working"},m().createElement("h2",{className:"jp-dash-item__count"},(0,a.Z)(n)),m().createElement("p",{className:"jp-dash-item__description"},__("Total malicious attacks blocked on your site.","jetpack")))}return m().createElement(c.Z,{label:e,module:"protect",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},m().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode&&__("Unavailable in Offline Mode","jetpack"),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&(0,i.createInterpolateElement)(__("<Button>Connect your WordPress.com</Button> account to keep your site protected from malicious sign in attempts.","jetpack"),{Button:m().createElement(o.Z,{className:"jp-link-button",onClick:this.connect})}),!this.props.isOfflineMode&&this.props.hasConnectedOwner&&(0,i.createInterpolateElement)(__("<Button>Activate Protect</Button> to keep your site protected from malicious sign in attempts.","jetpack"),{Button:m().createElement(o.Z,{className:"jp-link-button",onClick:this.activateProtect})})))}render(){return this.props.isModuleAvailable&&m().createElement("div",{className:"jp-dash-item__interior"},m().createElement(l.Z,null),this.getContent())}}t.Z=(0,h.$j)((e=>({protectCount:(0,g.xz)(e),isOfflineMode:(0,f.Ex)(e),isModuleAvailable:(0,k.v1)(e,"protect"),hasConnectedOwner:(0,f.it)(e)})),(e=>({connectUser:()=>e((0,f.bL)())})))(v)},49260:function(e,t,n){"use strict";var s=n(64743),a=n(6895),i=n(52947),r=n(69307),o=n(65736),c=n(97506),l=n(85799),p=n(43255),u=n(41549),d=n(85733),m=n(84069),h=n(59584),g=n(92819),f=n(1137),k=n(25162),v=n.n(k),_=n(99196),E=n.n(_),w=n(59309),b=n(17296),y=n(96300),j=n(69508),C=n(15080),S=n(33002),N=n(61372);const __=o.__,_n=o._n,_x=o._x,x=e=>E().createElement(p.Z,{label:__("Scan","jetpack"),module:e.feature||"scan",support:{text:__("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data.","jetpack"),link:(0,a.Z)("jetpack-support-security")},className:e.className||"",status:e.status||"",pro:!0,overrideContent:e.overrideContent},(0,g.isArray)(e.content)?e.content.map(((e,t)=>E().createElement(E().Fragment,{key:t},e))):E().createElement("p",{className:"jp-dash-item__description"},e.content)),T=e=>x({className:"jp-dash-item__is-active",status:"is-working",content:e});class A extends _.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.Z.tracks.recordJetpackClick({type:"scans-link",target:"at-a-glance",feature:"scans"})};onActivateVaultPressClick=()=>(m.Z.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"vaultpress"}),this.props.createNotice("is-info",__("Activating VaultPress…","jetpack"),{id:"activating-vaultpress"}),s.ZP.activateVaultPress().then((()=>{this.props.removeNotice("activating-vaultpress"),window.location.href=this.props.siteAdminUrl+"admin.php?page=vaultpress"})).catch((()=>{this.props.removeNotice("activating-vaultpress"),this.props.createNotice("is-error",__("Could not activate VaultPress.","jetpack"),{id:"activate-vaultpress-failure"})})),!1);getVPContent(){const{vaultPressData:e,hasConnectedOwner:t}=this.props;if("not_registered"===e?.code)return x({className:"jp-dash-item__is-inactive",status:"not-registered",content:(0,r.createInterpolateElement)(__("VaultPress is having difficulties scanning. Please make sure your <keyLink>registration key is entered</keyLink>. If you require further assistance please <supportLink>contact support</supportLink>.","jetpack"),{keyLink:E().createElement("a",{href:this.props.siteAdminUrl+"admin.php?page=vaultpress"}),supportLink:E().createElement("a",{href:(0,a.Z)("vaultpress-help")})})});if((0,g.get)(e,["data","features","security"],!1)){const t=this.props.scanThreats;if(0!==t)return this.renderThreatsFound(t,(0,a.Z)("vaultpress-dashboard"));if("success"===e.code)return x({status:"is-working",content:__("No threats found, you're good to go!","jetpack")})}if(this.props.fetchingSiteData)return x({content:__("Loading…","jetpack")});const n=!1!==this.props.sitePlan,s=["is-premium-plan","is-business-plan"].includes(this.props.planClass);return n&&s?this.props.isVaultPressInstalled?x({className:"jp-dash-item__is-inactive",status:"pro-inactive",content:[E().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:E().createElement(c.Z,{className:"jp-link-button",onClick:this.onActivateVaultPressClick})}))]}):x({className:"jp-dash-item__is-inactive",status:"pro-uninstalled",content:[E().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:E().createElement("a",{href:(0,a.Z)("calypso-plugins-vaultpress"),target:"_blank",rel:"noopener noreferrer"})}))]}):x({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:t?this.getUpgradeBanner():this.getConnectBanner()})}getUpgradeBanner(){return E().createElement(d.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Purchase Jetpack Scan to protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"scan",path:"dashboard",plan:(0,h.o2o)(h.eMt),trackBannerDisplay:this.props.trackUpgradeButtonView,noIcon:!0})}getConnectBanner(){return E().createElement(d.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade to Jetpack Scan and protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"scan",path:"dashboard",plan:(0,h.o2o)(h.eMt)})}renderAction(e,t){return this.props.isAtomicSite?null:E().createElement(l.Z,{compact:!0,key:"manage-scan",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer",onClick:this.trackScansClick},t)}renderThreatsFound(e,t){return E().createElement(E().Fragment,null,T([E().createElement("h2",{className:"jp-dash-item__count is-alert"},(0,i.Z)(e)),E().createElement("p",{className:"jp-dash-item__description"},(0,r.createInterpolateElement)(_n("Security threat found. <a>Click here</a> to fix them immediately.","Security threats found. <a>Click here</a> to fix them immediately.",e,"jetpack"),{a:E().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,n=(0,a.Z)("calypso-scanner",{site:t});if(Array.isArray(e.threats)&&e.threats.length>0)return this.renderThreatsFound(e.threats.length,n);if(e.credentials&&0===e.credentials.length)return E().createElement(E().Fragment,null,T(__("Enter your SSH, SFTP, or FTP credentials to enable one-click fixes","jetpack")),this.renderAction((0,a.Z)("jetpack-scan-dash-credentials",{site:t}),__("Enter credentials","jetpack")));switch(e.state){case"provisioning":return E().createElement(E().Fragment,null,T(__("We are configuring your site protection.","jetpack")));case"idle":case"scanning":return E().createElement(E().Fragment,null,T(__("No security threats found. Your site will continue to be monitored for future threats.","jetpack")),this.renderAction((0,a.Z)("calypso-scanner",{site:t}),__("View security scan details","jetpack")))}return!1}getUpgradeContent(){const{hasConnectedOwner:e}=this.props;return x({className:"jp-dash-item__is-inactive",overrideContent:e?this.getUpgradeBanner():this.getConnectBanner()})}getContent(){const{scanStatus:e}=this.props;return e.state&&"unavailable"!==e.state?E().createElement("div",{className:"jp-dash-item"},this.getRewindContent()):"vp_active_on_site"===e.reason?this.getVPContent():this.getUpgradeContent()}render(){if(!this.props.showBackups)return null;if(this.props.isOfflineMode)return x({className:"jp-dash-item__is-inactive",content:__("Unavailable in Offline Mode.","jetpack")});const e=this.props.fetchingScanStatus||this.props.fetchingVaultPressData;return E().createElement("div",null,e?x({content:__("Loading…","jetpack")}):this.getContent())}}t.Z=(0,w.$j)((e=>{const t=(0,S.UL)(e);return{isAtomicSite:(0,j.Ug)(e),isOfflineMode:(0,y.Ex)(e),scanStatus:(0,C.C8)(e),fetchingScanStatus:(0,C.gE)(e),isVaultPressInstalled:(0,N.P8)(e,"vaultpress/vaultpress.php"),fetchingVaultPressData:(0,b.P_)(e),vaultPressData:(0,b.XK)(e),scanThreats:(0,b._R)(e),fetchingSiteData:(0,S._5)(e),sitePlan:t,planClass:(0,h.scx)((0,g.get)(t,"product_slug","")),showBackups:(0,j.xR)(e),upgradeUrl:(0,f.z)(e,"scan"),hasConnectedOwner:(0,y.it)(e)}}),(e=>({createNotice:u.iI,removeNotice:u.qq,connectUser:()=>e((0,y.bL)())})))(A)},39441:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(97506),o=n(85799),c=n(43255),l=n(85733),p=n(84069),u=n(59584),d=n(92819),m=n(1137),h=n(25162),g=n.n(h),f=n(99196),k=n.n(f),v=n(59309),_=n(96300),E=n(69508),w=n(33002);const __=i.__,_x=i._x,b=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),y=__("Customize your Search experience.","jetpack"),j=__("Search supports many customizations. ","jetpack"),C=e=>k().createElement(c.Z,{label:__("Search","jetpack"),module:"search",support:{text:j,link:(0,s.Z)("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent},k().createElement("p",{className:"jp-dash-item__description"},e.content));class S extends f.Component{static propTypes={getOptionValue:g().func.isRequired,trackUpgradeBanner:g().func,isOfflineMode:g().bool.isRequired,hasConnectedOwner:g().bool.isRequired};static defaultProps={getOptionValue:d.noop,isOfflineMode:!1,trackUpgradeBanner:d.noop};trackConfigureSearchLink=()=>{p.Z.tracks.recordJetpackClick({type:"configure-search-link",target:"at-a-glance",feature:"search"})};trackAddSearchWidgetLink=()=>{p.Z.tracks.recordJetpackClick({type:"search-widget-link",target:"at-a-glance",feature:"search"})};trackAddSearchBlockLink=()=>{p.Z.tracks.recordJetpackClick({type:"search-block-link",target:"at-a-glance",feature:"search"})};activateSearch=()=>{this.props.updateOptions({search:!0,...this.props.hasInstantSearch?{instant_search_enabled:!0}:{}})};render(){return this.props.isFetching?C({status:"",content:__("Loading…","jetpack")}):this.props.isOfflineMode?C({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")?k().createElement("div",{className:"jp-dash-item"},k().createElement(c.Z,{label:__("Search","jetpack"),module:"search",support:{text:j,link:(0,s.Z)("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0},k().createElement("p",{className:"jp-dash-item__description"},__("Jetpack Search is powering search on your site.","jetpack"))),this.props.hasInstantSearch&&k().createElement(o.Z,{compact:!0,className:"jp-search-config-aag",href:"admin.php?page=jetpack-search-configure",onClick:this.trackConfigureSearchLink},y),!this.props.hasInstantSearch&&!this.props.isBlockThemeActive&&k().createElement(o.Z,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets",onClick:this.trackAddSearchWidgetLink},__("Add Search (Jetpack) Widget","jetpack")),!this.props.hasInstantSearch&&this.props.isBlockThemeActive&&k().createElement(o.Z,{compact:!0,className:"jp-search-config-aag",href:"site-editor.php",onClick:this.trackAddSearchBlockLink},__("Add a Search Block","jetpack"))):C({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,a.createInterpolateElement)(__("<Button>Activate</Button> to help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),{Button:k().createElement(r.Z,{className:"jp-link-button",onClick:this.activateSearch})})}):C({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:this.props.hasConnectedOwner?k().createElement(l.ZP,{callToAction:(0,m.I)()?__("Start for free","jetpack"):_x("Upgrade","Call to action to buy a new plan","jetpack"),title:b,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"search",path:"dashboard",plan:(0,u.o2o)(u.T54),icon:"search",trackBannerDisplay:this.props.trackUpgradeButtonView,noIcon:!0}):k().createElement(l.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get Jetpack Search, which helps your visitors instantly find the right content – right when they need it.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"search",path:"dashboard",plan:(0,u.o2o)(u.T54),noIcon:!0})})}}t.Z=(0,v.$j)((e=>({isBlockThemeActive:(0,E.$2)(e),isOfflineMode:(0,_.Ex)(e),isFetching:(0,w.GR)(e),hasClassicSearch:(0,w.CV)(e,"search"),hasInstantSearch:(0,w.CV)(e,"instant-search"),upgradeUrl:(0,m.z)(e,"search"),hasConnectedOwner:(0,_.it)(e)})),(e=>({connectUser:()=>e((0,_.bL)())})))(S)},46158:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(97506),o=n(85799),c=n(84069),l=n(1137),p=n(99196),u=n.n(p),d=n(59309),m=n(33002),h=n(5060),g=n(80118);const __=i.__,_x=i._x;class f extends p.Component{trackUpgradeClick=()=>{c.Z.tracks.recordJetpackClick({page:"aag",target:"upgrade-button",feature:"security"})};render(){const{hasActiveSecurityPurchase:e,isFetchingSitePurchases:t}=this.props;return e||t?null:u().createElement(o.Z,{className:"dash-security-bundle"},u().createElement("div",{className:"dash-security-bundle--icon"},u().createElement("img",{src:g,alt:__("A shield and check mark representing the Jetpack Security Bundle","jetpack")})),u().createElement("div",{className:"dash-security-bundle--content"},u().createElement("div",{className:"dash-security-bundle--content-info"},u().createElement("h3",null,__("Comprehensive Site Security","jetpack")),u().createElement("p",null,(0,a.createInterpolateElement)(__("Total protection for your site, including<br /> VaultPress Backup, Scan, and Akismet Anti-spam.","jetpack"),{br:u().createElement("br",null)}))),u().createElement("div",{className:"dash-security-bundle--content-cta"},u().createElement(r.Z,{className:"dash-security-bundle--content-cta-button",href:this.props.productDescriptionUrl,onClick:this.trackUpgradeClick,primary:!0},_x("Upgrade","Call to action to buy a new plan","jetpack")),u().createElement(r.Z,{className:"dash-security-bundle--content-cta-button",href:(0,s.Z)("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"},_x("Learn more","Learn more about the new plan","jetpack"),u().createElement(h.Z,{className:"dops-card__link-indicator",icon:"external"})))))}}t.Z=(0,d.$j)((e=>({hasActiveSecurityPurchase:(0,m.VL)(e),isFetchingSitePurchases:(0,m.GR)(e),productDescriptionUrl:(0,l.z)(e,"security")})))(f)},33361:function(e,t,n){"use strict";var s=n(52947),a=n(6895),i=n(55609),r=n(69771),o=n(69307),c=n(65736),l=n(65235),p=n.n(l),u=n(97506),d=n(57633),m=n(84069),h=n(25162),g=n.n(h),f=n(99196),k=n.n(f),v=n(59309),_=n(69508);const __=c.__,_x=c._x,_n=c._n;class E extends f.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=()=>m.Z.tracks.recordJetpackClick("view_detailed_stats");trackViewWpcomStats=()=>m.Z.tracks.recordJetpackClick("view_wpcom_stats");render(){const e=this.statsBottom()[0];return k().createElement("div",null,k().createElement("div",{className:"jp-at-a-glance__stats-summary"},k().createElement("div",{className:"jp-at-a-glance__stats-summary-today"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Views today","Referring to a number of page views","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),k().createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Best overall day","Referring to a number of page views","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,c.sprintf)(/* Translators: placeholder is a number of views. */ | |
| 24 | -_n("%s View","%s Views",e.bestDay.count,"jetpack"),(0,s.Z)(e.bestDay.count))),k().createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,r.dateI18n)(this.props.dateFormat,e.bestDay.day))),k().createElement("div",{className:"jp-at-a-glance__stats-summary-alltime-views"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time views","Referring to a number of page views","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,s.Z)(e.allTime.views))),k().createElement("div",{className:"jp-at-a-glance__stats-summary-alltime-comments"},k().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time comments","Referring to a number of comments","jetpack")),k().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,s.Z)(e.allTime.comments)))),k().createElement("div",{className:"jp-at-a-glance__stats-cta"},k().createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),k().createElement("div",{className:"jp-at-a-glance__stats-ctas"},!this.props.isWoASite&&(0,o.createInterpolateElement)(__("<button>View detailed stats</button>","jetpack"),{button:k().createElement(u.Z,{href:this.props.siteAdminUrl+"admin.php?page=stats",onClick:this.trackViewDetailedStats,primary:!0})}),!this.props.isLinked&&this.props.userCanConnectAccount&&k().createElement(d.Z,{connectUser:!0,from:"unlinked-user-connect",connectLegend:__("Connect your WordPress.com account for more metrics","jetpack")}),this.props.isLinked&&!this.props.isOdysseyStatsEnabled&&(0,o.createInterpolateElement)(__("<ExternalLink>View on WordPress.com</ExternalLink>","jetpack"),{ExternalLink:k().createElement(i.ExternalLink,{onClick:this.trackViewWpcomStats,href:(0,a.Z)("calypso-stats-insights",{site:this.props.siteRawUrl}),rel:"noopener noreferrer",target:"_blank",className:p()("jp-at-a-glance__stats-ctas-wpcom-stats",this.props.className)})}))))}}E.propTypes={siteRawUrl:g().string.isRequired,siteAdminUrl:g().string.isRequired,statsData:g().object.isRequired,isLinked:g().bool.isRequired,dateFormat:g().string.isRequired},E.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1,dateFormat:"F j, Y"},t.Z=(0,v.$j)((e=>({isOdysseyStatsEnabled:(0,_.ij)(e),isWoASite:(0,_.Pw)(e),userCanConnectAccount:(0,_.n0)(e)})))(E)},10242:function(e,t,n){"use strict";var s=n(6895),a=n(52947),i=n(78868),r=n(55609),o=n(69771),c=n(69307),l=n(65736),p=n(97506),u=n(85799),d=n(53068),m=n(69552),h=n(67619),g=n(39224),f=n(84069),k=n(92819),v=n(25162),_=n.n(v),E=n(99196),w=n.n(E),b=n(59309),y=n(17296),j=n(96300),C=n(69508),S=n(50416),N=n(3230),x=n(33361);const __=l.__;class T extends E.Component{static propTypes={isOfflineMode:_().bool.isRequired,siteRawUrl:_().string.isRequired,siteAdminUrl:_().string.isRequired,statsData:_().any.isRequired,isModuleAvailable:_().bool.isRequired};constructor(e){super(e),this.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed}}shouldLinkToWpcomStats(){return!this.props.isOdysseyStatsEnabled||this.props.isAtomicSite}barClick=e=>{e.data.link&&(f.Z.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,this.props.isOdysseyStatsEnabled||this.props.isAtomicSite?"_self":"_blank"))};statsChart(e){const{siteAdminUrl:t,siteRawUrl:n,statsData:i}=this.props,r=[];let c=0;const/* translators: short date format, such as: Jan 12. */ | |
| 25 | -p=__("M j","jetpack"), | |
| 26 | -/* translators: long date format, such as: January 12th. */ | |
| 27 | -u=__("F jS","jetpack"), | |
| 28 | -/* translators: long month/year format, such as: January, 2021. */ | |
| 29 | -d=__("F Y","jetpack");return"object"!=typeof i[e]?{chartData:r,totalViews:!1}:((0,k.forEach)(i[e].data,(i=>{const m=i[1];let h=i[0],g="",f="";c+=m,"day"===e?(g=(0,o.dateI18n)(p,h),f=(0,o.dateI18n)(u,h)):"week"===e?(h=h.replace(/W/g,"-"),g=(0,o.dateI18n)(p,h),f=(0,l.sprintf)(/* translators: placeholder is a date. */ | |
| 30 | -__("Week of %s","jetpack"),(0,o.dateI18n)(u,h))):"month"===e&&(g=(0,o.dateI18n)("M",h),f=(0,o.dateI18n)(d,h)),r.push({label:g,value:m,nestedValue:null,className:"statsChartbar",data:{link:this.shouldLinkToWpcomStats()?(0,s.Z)(`calypso-stats-${e}`,{site:n,query:`startDate=${h}`}):`${t}admin.php?page=stats#!/stats/day/${n}?startDate=${h}`},tooltipData:[{label:f,value:(0,l.sprintf)(/* translators: placeholder is a number */ | |
| 31 | -__("Views: %s","jetpack"),(0,a.Z)(m)),className:"tooltip class"}]})})),{chartData:r,totalViews:c})}statsErrors(){return(0,k.get)(this.props.statsData,["general","errors"],!1)}renderStatsChart(e){return w().createElement("div",{className:"jp-at-a-glance__stats-chart-container"},w().createElement("div",{className:"jp-at-a-glance__stats-chart"},w().createElement(d.Z,{data:e,barClick:this.barClick}),0===e.length&&w().createElement(r.Spinner,null)),w().createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},w().createElement(x.Z,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,dateFormat:this.props.dateFormat})))}dismissCard=()=>{this.setState({emptyStatsDismissed:!0}),this.props.updateOptions({dismiss_empty_stats_card:!0})};renderEmptyStatsCard(){return w().createElement(u.Z,{className:"jp-at-a-glance__stats-empty-container"},w().createElement("div",{className:"jp-at-a-glance__stats-empty"},w().createElement(i.Z,{height:64,showText:!1}),w().createElement("p",null,__("Hello there! Jetpack Stats has been activated.","jetpack"),w().createElement("br",null),__("Just give us a little time to collect data so we can display it for you here.","jetpack")),w().createElement(p.Z,{onClick:this.dismissCard,primary:!0},__("Okay, got it!","jetpack"))))}activateStats=e=>{this.props.updateOptions({stats:!0}),e.preventDefault()};renderStatsArea(){if(this.props.getOptionValue("stats")){if(this.statsErrors())return w().createElement("div",{className:"jp-at-a-glance__stats-inactive"},w().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:w().createElement("a",{href:(0,s.Z)("calypso-stats-insights",{site:this.props.siteRawUrl})})})));const e=this.statsChart(this.props.activeTab),t=e.chartData,n=e.totalViews,a=t.length&&n<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return w().createElement("div",{className:"jp-at-a-glance__stats-container"+(a&&" jp-at-a-glance__stats-container-empty")},a?this.renderEmptyStatsCard():"",this.renderStatsChart(t))}return w().createElement("div",{className:"jp-at-a-glance__stats-inactive"},w().createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},w().createElement(i.Z,{height:40,showText:!1})),w().createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):w().createElement(w().Fragment,null,w().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:w().createElement(r.ExternalLink,{href:(0,s.Z)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})}))),!this.props.isOfflineMode&&w().createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},w().createElement(p.Z,{onClick:this.activateStats,primary:!0},__("Activate Stats","jetpack"))))}switchTo(e){f.Z.tracks.recordJetpackClick({target:"stats_switch_view",view:e}),this.props.switchView(e),this.props.fetchStatsData(e)}switchToDay=e=>{this.switchTo("day"),e.preventDefault()};switchToWeek=e=>{this.switchTo("week"),e.preventDefault()};switchToMonth=e=>{this.switchTo("month"),e.preventDefault()};maybeShowStatsTabs(){return!(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)&&(this.props.getOptionValue("stats")&&!this.statsErrors()?w().createElement("ul",{className:"jp-at-a-glance__stats-views"},w().createElement("li",{className:"jp-at-a-glance__stats-view"},w().createElement("a",{tabIndex:"0",href:"#",onClick:this.switchToDay,className:this.getClass("day")},__("Days","jetpack"))),w().createElement("li",{className:"jp-at-a-glance__stats-view"},w().createElement("a",{tabIndex:"0",href:"#",onClick:this.switchToWeek,className:this.getClass("week")},__("Weeks","jetpack"))),w().createElement("li",{className:"jp-at-a-glance__stats-view"},w().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")?w().createElement("div",null,w().createElement(g.Z,{moduleName:__("Jetpack Stats","jetpack")})):this.props.isModuleAvailable&&w().createElement("div",null,w().createElement(h.Z,{range:this.props.activeTab}),w().createElement(m.Z,{label:__("Jetpack Stats","jetpack"),className:"jp-dash-section-header-stats"},this.maybeShowStatsTabs()),w().createElement(u.Z,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},this.renderStatsArea()))}}t.Z=(0,b.$j)((e=>({isModuleAvailable:(0,S.v1)(e,"stats"),activeTab:(0,y.l5)(e),dateFormat:(0,C.mh)(e),isOfflineMode:(0,j.Ex)(e),isLinked:(0,j.BU)(e),connectUrl:(0,j.AM)(e),statsData:(0,k.isEmpty)((0,y.yZ)(e))?(0,C.Uu)(e):(0,y.yZ)(e),isEmptyStatsCardDismissed:(0,N.g0)(e),getModuleOverride:t=>(0,S.Qy)(e,t),isOdysseyStatsEnabled:(0,C.ij)(e),isAtomicSite:(0,C.Ug)(e)})),(e=>({switchView:t=>e((0,y.D3)(t)),fetchStatsData:t=>e((0,y.g4)(t))})))(T)},86354:function(e,t,n){"use strict";var s=n(6895),a=n(94343),i=n(69307),r=n(65736),o=n(97506),c=n(43255),l=n(85733),p=n(59584),u=n(92819),d=n(1137),m=n(25162),h=n.n(m),g=n(99196),f=n.n(g),k=n(59309),v=n(96300),_=n(50416),E=n(33002);const __=r.__,_x=r._x;class w extends g.Component{static propTypes={hasConnectedOwner:h().bool.isRequired,isOffline:h().bool.isRequired,isModuleAvailable:h().bool.isRequired,trackUpgradeButtonView:h().func};static defaultProps={trackUpgradeButtonView:u.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.Z)("jetpack-support-videopress")},{hasConnectedOwner:n,hasVideoPressFeature:r,hasVideoPressUnlimitedStorage:u,isFetching:d,isOffline:m,upgradeUrl:h,videoPressStorageUsed:g}=this.props,k=r&&!u&&null!==g,v=n&&!r&&!m&&!d,_=r||null===g||0!==g?__("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")&&n?f().createElement(c.Z,{className:"jp-dash-item__videopress",label:e,module:"videopress",support:t,status:"is-working",overrideContent:f().createElement(f().Fragment,null,f().createElement("div",{className:"dops-card jp-dash-item__card"},f().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")),k&&f().createElement("div",{className:"jp-dash-item__videopress-storage"},f().createElement("span",null,__("Video storage used out of 1TB:","jetpack")),f().createElement(a.Z,{progress:g/1e6}))),v&&f().createElement(l.ZP,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:_,disableHref:"false",eventFeature:"videopress",noIcon:!0,path:"dashboard",plan:(0,p.o2o)(p.qbT),feature:"jetpack_videopress",href:h,trackBannerDisplay:this.props.trackUpgradeButtonView}))}):f().createElement(c.Z,{label:e,module:"videopress",support:t,className:"jp-dash-item__is-inactive",noToggle:!n,overrideContent:!n&&!m&&f().createElement(l.ZP,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"videopress",path:"dashboard",plan:(0,p.o2o)(p.qbT),icon:"video"})},f().createElement("p",{className:"jp-dash-item__description"},m?__("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:f().createElement(o.Z,{className:"jp-link-button",onClick:this.activateVideoPress})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}t.Z=(0,k.$j)((e=>({hasConnectedOwner:(0,v.it)(e),hasVideoPressFeature:(0,E.CV)(e,"videopress-1tb-storage")||(0,E.CV)(e,"videopress-unlimited-storage")||(0,E.CV)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,E.CV)(e,"videopress-unlimited-storage"),isModuleAvailable:(0,_.v1)(e,"videopress"),isOffline:(0,v.Ex)(e),isFetching:(0,E.GR)(e),sitePlan:(0,E.UL)(e),upgradeUrl:(0,d.z)(e,"videopress"),videoPressStorageUsed:(0,E.VH)(e)})),(e=>({connectUser:()=>e((0,v.bL)())})))(w)},57301:function(e,t,n){"use strict";var s=n(19567),a=n.n(s),i=n(99196),r=n.n(i);class o extends r().Component{componentDidMount(){const e=a()(this.refs.adminNotices),t=a()(".vp-deactivated");t.length>0&&t.each((function(){const t=a()(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 a()("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return a()("<div/>",{html:this.innerHTML})})),t.prependTo(e).css("display","flex")}));const n=a()(".vp-notice");n.length>0&&n.each((function(){const t=a()(this);if(0===t.find(".dops-notice__icon").length){const e=t.hasClass("vp-registered"),n=e?"is-success":"is-error";t.addClass("dops-notice vp-notice-jp "+n),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 a()("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return a()("<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=a()(".woocommerce-message");s.length>0&&s.each((function(){const t=a()(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 n=t.find(".dops-notice__text");n.find("p").replaceWith((function(){return a()("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})})),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)}));const i=a()(".notice");i.length>0&&i.each((function(){a()(this).hide()})),e.length>0&&a()(".dops-notice__dismiss").on("click",(function(){a()(this).parent().closest("div").hide()}))}render(){return r().createElement("div",{id:"jp-admin-notices",ref:"adminNotices","aria-live":"polite"})}}t.Z=o},73709:function(e,t,n){"use strict";var s=n(6895),a=n(65736),i=n(65235),r=n.n(i),o=n(97506),c=n(85799),l=n(84069),p=n(99196),u=n(59309),d=n(96300),m=n(3230),h=n(33002),g=n(5060);const __=a.__;t.Z=(0,u.$j)((e=>({isFetchingData:(0,h._5)(e),isUserLinked:(0,d.BU)(e),isOwner:(0,d.QM)(e),isDismissed:(0,m.O$)(e)})),(e=>({dismiss:()=>e((0,m.VP)({dismiss_dash_agencies_learn_more:!0})),connectUser:()=>e((0,d.bL)())})))((e=>{let{isDismissed:t,dismiss:n,path:i,discountPercentage:u,isUserLinked:d,isOwner:m,isFetchingData:h,className:f}=e;const k=(0,p.useCallback)((e=>{l.Z.tracks.recordJetpackClick({target:e,feature:"agencies",page:i,is_user_wpcom_connected:d?"yes":"no",is_connection_owner:m?"yes":"no"})}),[i,d,m]),v=(0,p.useCallback)((()=>{k("learn-more-click")}),[k]),_=(0,p.useCallback)((()=>{n(),k("learn-more-dismiss")}),[n,k]);if(t)return null;if(h)return React.createElement("div",null);const E=r()(f,"jp-agecies-card");return React.createElement("div",{className:E},React.createElement(c.Z,{className:"jp-agencies-card__wrapper"},React.createElement("div",{className:"jp-agencies-card__contact"},React.createElement("div",{className:"jp-agencies-card__content"},React.createElement("div",{className:"jp-agencies-card-text"},React.createElement("h3",{className:"jp-agencies-card__header"},__("Manage your clients’ sites with ease","jetpack")),React.createElement("p",{className:"jp-agencies-card__description"},(0,a.sprintf)(/* translators: %s is the percentage discount the users get in the agencies portal */ | |
| 32 | -__("Manage your clients’ sites with ease and get a %s discount with the Jetpack licensing platform.","jetpack"),`${u}%`))),React.createElement("div",{className:"jp-agencies-card__link-button"},React.createElement(o.Z,{onClick:v,primary:!0,href:(0,s.Z)("jitm-jetpack_agencies_ad"),target:"_blank",rel:"noreferrer"},__("Learn More","jetpack"),React.createElement(g.Z,{className:"dops-card__link-indicator",icon:"external"})))),React.createElement(o.Z,{borderless:!0,compact:!0,className:"jp-agencies-card__dismiss",onClick:_},React.createElement("span",{className:"dashicons dashicons-no"})))))}))},20408:function(e,t,n){"use strict";var s=n(80800),a=n(98709),i=n(65736),r=n(65235),o=n.n(r),c=n(92819),l=n(25162),p=n.n(l),u=n(99196),d=n.n(u);const __=i.__,m={ios:{defaultSrc:s.hp+"/get-apps-ios-store.svg",src:"https://linkmaker.itunes.apple.com/assets/shared/badges/{localeSlug}/appstore-lrg.svg",tracksEvent:"calypso_app_download_ios_click",getStoreLink:e=>`https://apps.apple.com/app/apple-store/id1565481562?pt=299112&ct=${e}&mt=8`,getTitleText:()=>__("Download the Jetpack iOS mobile app.","jetpack"),getAltText:()=>__("Apple App Store download badge","jetpack"),getLocaleSlug:function(){const e=(0,a.X)().split("-")[0];return"en"===e?"en-us":`${e}-${e}`}},android:{defaultSrc:s.hp+"/get-apps-google-play.png",src:"https://play.google.com/intl/en_us/badges/images/generic/{localeSlug}_badge_web_generic.png",tracksEvent:"calypso_app_download_android_click",getStoreLink:function(e){return`https://play.google.com/store/apps/details?id=com.jetpack.android&referrer=utm_source%3D%${e}%26utm_medium%3D${arguments.length>1&&void 0!==arguments[1]?arguments[1]:"web"}%26utm_campaign%3D${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mobile-download-promo-pages"}`},getTitleText:()=>__("Download the Jetpack Android mobile app.","jetpack"),getAltText:()=>__("Google Play Store download badge","jetpack"),getLocaleSlug:function(){return(0,a.X)().split("-")[0]}}};class h extends u.PureComponent{static propTypes={altText:p().string,storeLink:p().string,storeName:p().oneOf(["ios","android"]).isRequired,titleText:p().string,onBadgeClick:p().func,utm_source:p().string,utm_campaign:p().string,utm_medium:p().string};static defaultProps={altText:"",storeLink:null,titleText:""};constructor(e){super(e);const t=m[e.storeName].getLocaleSlug().toLowerCase(),n=!(0,c.startsWith)(t,"en");this.state={shouldLoadExternalImage:n,imageSrc:n?m[e.storeName].src.replace("{localeSlug}",t):m[e.storeName].defaultSrc},n&&(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:m[this.props.storeName].defaultSrc})};onLinkClick=()=>{this.props.onBadgeClick(this.props.storeName)};render(){const{altText:e,titleText:t,storeLink:n,storeName:s,utm_source:a,utm_medium:i,utm_campaign:r}=this.props,{imageSrc:c,hasExternalImageLoaded:l}=this.state,p=o()("apps-badge",{[`${s}-app-badge`]:!0,"is-external-image":l}),u=m[s];return d().createElement("figure",{className:p},d().createElement("a",{href:n||u.getStoreLink(a,i,r),onClick:this.onLinkClick,target:"_blank",rel:"noopener noreferrer"},d().createElement("img",{src:c,title:t||u.getTitleText(),alt:e||u.getAltText()})))}}t.Z=h},17363:function(e,t,n){"use strict";var s=n(80800),a=n(6895),i=n(69307),r=n(65736),o=n(65235),c=n.n(o),l=n(20408),p=n(85799),u=n(84069),d=n(34443),m=n(25162),h=n.n(m),g=n(99196),f=n.n(g),k=n(44498);const __=r.__;class v extends f().Component{static displayName="AppsCard";trackDownloadClick=e=>{u.Z.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:this.props.location.pathname,store:e})};trackAppLinkClick=()=>{u.Z.tracks.recordJetpackClick({target:"jetpack-apps-link",page:this.props.location.pathname})};getAppLinkSection=()=>{const e=(0,d.Z)();switch(e){case"ios":case"android":return this.getAppCards(e);default:return this.getQrCode()}};getAppCards=e=>f().createElement("div",{className:"jp-apps-card__apps-badges"},"android"===e?f().createElement(l.Z,{altText:__("Google Play Store download badge.","jetpack"),titleText:__("Download the Jetpack Android mobile app.","jetpack"),storeName:"android",storeLink:"https://play.google.com/store/apps/details?id=com.jetpack.android&utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard",onBadgeClick:this.trackDownloadClick}):f().createElement(l.Z,{altText:__("Apple App Store download badge.","jetpack"),titleText:__("Download the Jetpack iOS mobile app.","jetpack"),storeName:"ios",storeLink:"https://apps.apple.com/us/app/jetpack-website-builder/id1565481562?pt=299112ct=jpdash&mt=8",onBadgeClick:this.trackDownloadClick}));getQrCode=()=>f().createElement("div",{className:"jp-apps-card__apps-qr-code"},f().createElement("img",{src:s.hp+"get-apps-qr-code.svg",alt:"",width:114}));render(){const e=c()(this.props.className,"jp-apps-card");return f().createElement("div",{className:e},f().createElement(p.Z,{className:"jp-apps-card__content"},f().createElement("div",{className:"jp-apps-card__description"},f().createElement("img",{className:"jp-apps-card__top_img",src:s.hp+"get-apps-icon.svg",alt:""}),f().createElement("h3",{className:"jp-apps-card__header"},__("Bring your stats with you using the Jetpack mobile app","jetpack")),f().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:f().createElement("a",{className:"jp-apps-card__link",href:(0,a.Z)("jetpack-plugin-dashboard-apps-card"),onClick:this.trackAppLinkClick})}))),this.getAppLinkSection()))}}v.propTypes={className:h().string},t.Z=(0,k.EN)(v)},47407:function(e,t,n){"use strict";n.d(t,{$j:function(){return w},jL:function(){return E}});var s=n(61074),a=n(65235),i=n.n(a),r=n(97506),o=n(85799),c=n(5060),l=n(53234),p=n(84069),u=n(59584),d=n(92819),m=n(25162),h=n.n(m),g=n(99196),f=n.n(g),k=n(59309),v=n(96300),_=n(69508);class E extends g.Component{static propTypes={callToAction:h().string,className:h().string,currentVersion:h().string.isRequired,description:h().node,eventFeature:h().string,eventProps:h().object,feature:h().string,href:h().string,icon:h().string,iconAlt:h().string,iconSrc:h().string,iconRaw:h().string,iconWp:h().any,list:h().arrayOf(h().string),onClick:h().func,path:h().string,plan:h().string,siteSlug:h().string,title:h().node.isRequired,isCurrentUserLinked:h().bool,isConnectionOwner:h().bool,noIcon:h().bool,rna:h().bool};static defaultProps={onClick:d.noop,eventProps:{},rna:!1,noIcon:!1};getHref(){const{href:e,feature:t,siteSlug:n}=this.props;return!e&&n?t?`/plans/${n}?feature=${t}`:`/plans/${n}`:e}handleClick=()=>{this.props.onClick();const{eventFeature:e,path:t,currentVersion:n,eventProps:s}=this.props;if(e||t){const a=e?{feature:e}:{},i=t?{path:t}:{},r={target:"banner",type:"upgrade",current_version:n,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no",...a,...i,...s};p.Z.tracks.recordJetpackClick(r)}};getIcon(){const{icon:e,iconAlt:t,iconSrc:n,iconRaw:a,iconWp:i,plan:r}=this.props;return a?f().createElement("div",{className:"dops-banner__icon-plan"},f().createElement("img",{src:a,alt:t})):!r||e&&n?i?f().createElement("div",{className:"dops-banner__icon-wp"},f().createElement(s.Z,{icon:i})):f().createElement("div",{className:"dops-banner__icons"},f().createElement("div",{className:"dops-banner__icon"},e&&f().createElement(c.Z,{icon:e||"info-outline",size:18}),n&&f().createElement("img",{className:"dops-banner__icon-circle-svg",src:n,alt:t})),f().createElement("div",{className:"dops-banner__icon-circle"},e&&f().createElement(c.Z,{icon:e||"info-outline",size:18}),n&&f().createElement("img",{className:"dops-banner__icon-circle-svg",src:n,alt:t}))):f().createElement("div",{className:"dops-banner__icon-plan"},f().createElement(l.Z,{plan:r}))}getContent(){const{callToAction:e,description:t,list:n,title:s,rna:a}=this.props;return f().createElement("div",{className:"dops-banner__content"},f().createElement("div",{className:"dops-banner__info"},f().createElement("div",{className:"dops-banner__title"},s),t&&f().createElement("div",{className:"dops-banner__description"},t),(0,d.size)(n)>0&&f().createElement("ul",{className:"dops-banner__list"},n.map(((e,t)=>f().createElement("li",{key:t},f().createElement(c.Z,{icon:"checkmark",size:18}),e))))),e&&f().createElement("div",{className:"dops-banner__action"},e&&f().createElement(r.Z,{rna:a,compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0},e)))}render(){const{callToAction:e,className:t,plan:n,noIcon:s}=this.props,a=(0,u.scx)(n),r=(0,u.G1J)(n),c=(0,u.yy5)(n),l=i()("dops-banner",t,{"has-call-to-action":e},{"is-upgrade-personal":r&&"is-personal-plan"===a},{"is-upgrade-premium":r&&"is-premium-plan"===a},{"is-upgrade-business":r&&"is-business-plan"===a},{"is-product":c},{"is-plan":!c},{"is-bundle":!c&&(0,u.Pu7)(n)});return f().createElement(o.Z,{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 w(e){return(0,k.$j)((e=>({currentVersion:(0,_.w1)(e),isCurrentUserLinked:(0,v.BU)(e),isConnectionOwner:(0,v.QM)(e)})))(e)}t.ZP=w(E)},98492:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(65235),a=n.n(s),i=n(99196),r=n.n(i);class o extends r().Component{static displayName="ButtonGroup";static propTypes={children(e){let t=null;return r().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=a()("dops-button-group",this.props.className);return r().createElement("span",{className:e},this.props.children)}}},97506:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(65235),a=n.n(s),i=n(92819),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);class p extends l().Component{static displayName="Button";static propTypes={disabled:o().bool,compact:o().bool,primary:o().bool,scary:o().bool,type:o().string,href:o().string,onClick:o().func,borderless:o().bool,rna:o().bool,className:o().string};static defaultProps={disabled:!1,type:"button",onClick:i.noop,borderless:!1};render(){const e=this.props.href?"a":"button",{primary:t,compact:n,scary:s,borderless:i,rna:r,className:o,...c}=this.props,p=a()({"dops-button":!0,"is-compact":n,"is-primary":t,"is-scary":s,"is-borderless":i,"is-rna":r});return c.className=a()(o,p),l().createElement(e,c,this.props.children)}}},15773:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(65235),a=n.n(s),i=n(85799),r=n(92819),o=n(99196),c=n.n(o);class l extends c().Component{static displayName="CompactCard";render(){const e=(0,r.assign)({},this.props,{className:a()(this.props.className,"is-compact")});return c().createElement(i.Z,e,this.props.children)}}},85799:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(92819),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(5060);class u extends l().Component{static propTypes={title:o().any,vertical:o().any,style:o().object,className:o().string,device:o().oneOf(["desktop","tablet","phone"])};static defaultProps={vertical:null};render(){return l().createElement("div",{className: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 l().createElement("div",{className:e},l().createElement("h4",{ref:"label",className:"dops-card-section-label"},this.props.title),l().createElement("div",{ref:"content",className:"dops-card-section-content"},this.props.children))}}class d extends l().Component{render(){return l().createElement("div",{className:"dops-card-footer"},this.props.children)}}class m extends l().Component{static propTypes={meta:o().any,icon:o().string,iconLabel:o().any,iconColor:o().string,style:o().object,className:o().string,href:o().string,onClick:o().func,title:o().string,tagName:o().string,target:o().string,compact:o().bool,children:o().node};static defaultProps={iconColor:"#787878",className:"",tagName:"div",onClick:()=>{}};render(){const e=a()("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),t=["compact","tagName","meta","iconColor"];let n,s;return this.props.href?n=this.props.target&&l().createElement(p.Z,{className:"dops-card__link-indicator",icon:"external"}):t.push("href","target"),this.props.title&&(s=l().createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&l().createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),l().createElement(this.props.href?"a":this.props.tagName,(0,i.assign)((0,i.omit)(this.props,t),{className:e}),s,this.props.children,n)}_renderIcon=()=>l().createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&l().createElement(p.Z,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)}m.Section=u,m.Footer=d,t.Z=m},17855:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(25162),a=n.n(s),i=n(99196),r=n.n(i),o=n(48918),c=n(42224);class l extends r().Component{static displayName="ModuleChartBarContainer";static propTypes={isTouch:a().bool,data:a().array,yAxisMax:a().number,width:a().number,barClick:a().func};buildBars=e=>{const t=this.props.data.length,n=this.props.chartWidth,s=n/t;let a="bottom right";return this.props.data.map((function(i,c){const l=s*(c+1);return l+230>n&&l+s-230>0&&(a="bottom left"),r().createElement(o.Z,{index:c,key:c,isTouch:this.props.isTouch,tooltipPosition:a,className:i.className,clickHandler:this.props.barClick,data:i,max:e,count:t})}),this)};render(){return r().createElement("div",null,r().createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),r().createElement(c.Z,{data:this.props.data,labelWidth:42}))}}},48918:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(65235),a=n.n(s),i=n(5060),r=n(54088),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l);class u extends p().Component{static displayName="ModuleChartBar";static propTypes={isTouch:c().bool,tooltipPosition:c().string,className:c().string,clickHandler:c().func,data:c().object.isRequired,max:c().number,count:c().number};state={showPopover:!1};buildSections=()=>{const e=this.props.data.value,t=this.props.max,n=100-(t?Math.ceil(e/t*1e4)/100:0),s=Math.max(1,Math.floor(n)),i=[],r=this.props.data.nestedValue,o={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===n&&!this.props.active};let c,l,u;const d={height:s+"%"};i.push(p().createElement("div",{key:"spacer",className:a()(o),style:d}));const m={top:s+"%"};return r&&(l=e?Math.ceil(r/e*1e4)/100:0,u={height:l+"%"},c=p().createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:u})),i.push(p().createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:m},c)),i.push(p().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 n=["module-content-list-item"];let s;return e.icon&&(s=p().createElement(i.Z,{icon:e.icon,size:18})),n.push(e.className),p().createElement("li",{key:t,className:n.join(" ")},p().createElement("span",{className:"dops-wrapper"},p().createElement("span",{className:"value"},e.value),p().createElement("span",{className:"label"},s,e.label)))}));return p().createElement(r.Z,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.refs&&this.refs.valueBar,isVisible:this.state.showPopover,position:this.props.tooltipPosition},p().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 n={width:1/e*100+"%"};return p().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:a()(t),style:n},this.buildSections(),p().createElement("div",{className:"dops-chart__bar-marker is-hundred"}),p().createElement("div",{className:"dops-chart__bar-marker is-fifty"}),p().createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}},53068:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(65736),a=n(77733),i=n(92819),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(17855);const _x=s._x;class u 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};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.refs.chart.clientWidth-82;(0,a._)()?(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),n=Math.pow(10,t.toString().length-1);let s=Math.ceil((t+1)/n)*n;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),n=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:"chart",className:"dops-chart"},l().createElement("div",{className:"dops-chart__y-axis-markers"},l().createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),l().createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),l().createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),l().createElement("div",{className:"dops-chart__y-axis"},l().createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),l().createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),l().createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),l().createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),l().createElement(p.Z,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:(0,a._)()}),s)}}},28914:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var s=n(25162),a=n.n(s),i=n(99196),r=n.n(i);class o extends r().Component{static displayName="ModuleChartLabel";static propTypes={width:a().number.isRequired,x:a().number.isRequired,label:a().string.isRequired};render(){const e={width:this.props.width+"px"};return e.left=this.props.x+"px",r().createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}},42224:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(92819),a=n(25162),i=n.n(a),r=n(99196),o=n.n(r),c=n(28914);class l extends o().Component{static displayName="ModuleChartXAxis";static propTypes={labelWidth:i().number.isRequired,data:i().array.isRequired};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 n=this.refs.axis;!e||e instanceof Event||(t=e),n.style.overflow="hidden";const s=n.clientWidth;n.style.overflow="visible";const a=s/(t.data.length||1),i=t.labelWidth,r=Math.ceil(i/a);this.setState({divisor:r,spacing:a})};render(){const e=this.props.data,t=e.map((function(t,n){const s=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2;let a;return(e.length-n-1)%this.state.divisor==0&&(a=o().createElement(c.Z,{key:n,label:t.label,width:this.props.labelWidth,x:s})),a}),this);return o().createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}},64104:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(99026),c=n(9494),l=n(92819),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d);class h extends m().Component{static displayName="ClipboardButtonInput";static propTypes={value:u().string,disabled:u().bool,className:u().string,copied:u().string,copy:u().string,prompt:u().string,rna:u().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,l.omit)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus","rna");return m().createElement("span",{className:r()("dops-clipboard-button-input",this.props.className)},m().createElement(c.Z,a()({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),m().createElement(o.Z,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0,rna:this.props.rna},this.state.isCopied?this.props.copied:this.props.copy))}}},57633:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(16168),o=n(55609),c=n(69307),l=n(65736),p=n(96483),u=n(97506),d=n(71865),m=n(84069),h=n(25162),g=n.n(h),f=n(99196),k=n.n(f),v=n(59309),_=n(96300),E=n(69508),w=n(33002),b=n(3915),y=n(6165);const __=l.__;class j extends k().Component{static displayName="ConnectButton";static propTypes={connectUser:g().bool,from:g().string,asLink:g().bool,connectLegend:g().string,connectInPlace:g().bool,customConnect:g().func,autoOpenInDisconnectRoute:g().bool,rna:g().bool,compact:g().bool};static defaultProps={connectUser:!1,from:"",asLink:!1,connectInPlace:!0,autoOpenInDisconnectRoute:!1,rna:!1,compact:!1};constructor(e){super(e),this.state={showModal:e.autoOpenInDisconnectRoute&&"#/disconnect"===(0,p.getFragment)(window.location.href)}}handleOpenModal=e=>{m.Z.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),this.toggleVisibility()};handleDisconnected=()=>{this.props.fetchConnectUrl(),this.props.fetchSiteConnectionStatus()};toggleVisibility=()=>{this.setState({showModal:!this.state.showModal})};loadConnectionScreen=e=>{e.preventDefault(),this.props.isAuthorizing||this.props.fetchingConnectUrl||(m.Z.tracks.recordJetpackClick("link_account_in_place"),this.props.customConnect?this.props.customConnect():this.props.doConnectUser(null,this.props.from))};renderDisconnectStepComponent=()=>this.props.siteBenefits?k().createElement(y.Z,{siteBenefits:this.props.siteBenefits}):null;renderUserButton=()=>{if(this.props.isLinked)return k().createElement("div",null,k().createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:(0,b.Z)(this.props.unlinkUser),onClick:this.props.unlinkUser,disabled:this.props.isUnlinking},this.props.connectLegend||__("Disconnect your WordPress.com account","jetpack")));let e=this.props.connectUrl;this.props.from&&(e+=`&from=${this.props.from}`,e+="&additional-user");const t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl||this.props.isAuthorizing,onClick:this.loadConnectionScreen},n=this.props.connectLegend||__("Connect your WordPress.com account","jetpack");return this.props.asLink?k().createElement("a",t,n):k().createElement(u.Z,a()({rna:this.props.rna,compact:this.props.compact},t),n)};renderContent=()=>{if(this.props.connectUser)return this.renderUserButton();if(this.props.isSiteConnected)return k().createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,b.Z)(this.handleOpenModal),onClick:this.handleOpenModal,disabled:this.props.isDisconnecting},this.props.connectLegend||__("Manage site connection","jetpack"));let e=this.props.connectUrl;this.props.from&&(e+=`&from=${this.props.from}`);const t={className:"jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},n=this.props.connectLegend||__("Set up Jetpack","jetpack");return this.props.asLink?k().createElement("a",t,n):k().createElement(u.Z,t,n)};render(){return k().createElement("div",null,k().createElement(d.Z,null),!this.props.isSiteConnected&&k().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>share details</shareDetailsLink> with WordPress.com.","jetpack"),{tosLink:k().createElement(o.ExternalLink,{href:(0,i.Z)("wpcom-tos")}),shareDetailsLink:k().createElement(o.ExternalLink,{href:(0,i.Z)("jetpack-support-what-data-does-jetpack-sync")})})),this.renderContent(),k().createElement(r.Z,{apiNonce:this.props.apiNonce,apiRoot:this.props.apiRoot,connectedPlugins:this.props.connectedPlugins,connectedUser:{ID:this.props.userWpComId,login:this.props.userWpComLogin},connectedSiteId:this.props.connectedSiteId,disconnectStepComponent:this.renderDisconnectStepComponent(),onDisconnected:this.handleDisconnected,isOpen:this.state.showModal,onClose:this.toggleVisibility,context:"jetpack"}))}}t.Z=(0,v.$j)((e=>({siteRawUrl:(0,E.JR)(e),isSiteConnected:(0,_.Gz)(e),isDisconnecting:(0,_.e_)(e),fetchingConnectUrl:(0,_.Mq)(e),connectUrl:(0,_.AM)(e),isLinked:(0,_.BU)(e),isUnlinking:(0,_.jZ)(e),isAuthorizing:(0,_.zq)(e),isSafari:(0,E.G6)(e),doNotUseConnectionIframe:(0,E.jq)(e),apiNonce:(0,E.VY)(e),apiRoot:(0,E.yB)(e),connectedPlugins:(0,E.xz)(e),siteBenefits:(0,w.nq)(e),pluginUrl:(0,E.wB)(e),userWpComLogin:(0,E.IU)(e),userWpComId:(0,E._G)(e),connectedSiteId:(0,E.EZ)(e)})),(e=>({fetchConnectUrl:()=>e((0,_.eW)()),fetchSiteConnectionStatus:()=>e((0,_.I7)()),unlinkUser:()=>e((0,_.EP)()),doConnectUser:(t,n)=>e((0,_.bL)(t,n))})))(j)},66164:function(e,t,n){"use strict";var s=n(65736),a=n(85799),i=n(57633),r=n(84069),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(59309),d=n(96300);const __=s.__,m=e=>{const{feature:t,featureLabel:n,text:o,doConnectUser:c}=e,u="unlinked-user-connect",d=(0,l.useCallback)((()=>{r.Z.tracks.recordJetpackClick({target:"connection-bar-click",feature:t,is_user_wpcom_connected:"no",is_connection_owner:"no"}),c(n,u)}),[c,t,n,u]);return p().createElement(a.Z,{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. */ | |
| 33 | -__("This feature is provided by the WordPress.com cloud. %s","jetpack"),o)),p().createElement(i.Z,{connectUser:!0,from:u,connectLegend:__("Connect your WordPress.com account","jetpack"),customConnect:d,rna:!0,compact:!0}))};m.propTypes={text:c().string.isRequired,feature:c().string,featureLabel:c().string},t.Z=(0,u.$j)(null,(e=>({doConnectUser:(t,n)=>e((0,d.bL)(t,n))})))(m)},79099:function(e,t,n){"use strict";var s=n(41342),a=n(67121),i=n(65736),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(59309),u=n(96300);const __=i.__;class d extends l().Component{static propTypes={title:o().string.isRequired,description:o().node,from:o().string};handleClick(){this.props.doConnectUser(null,this.props.from)}render(){const{description:e,title:t}=this.props,n={label:__("Connect your WordPress.com account","jetpack"),onClick:()=>this.handleClick()};return l().createElement(s.Z,{title:t,hideCloseButton:!0,actions:[l().createElement(a.Z,n)]},e)}}t.Z=(0,p.$j)((e=>e),(e=>({doConnectUser:(t,n)=>e((0,u.bL)(t,n))})))(d)},16102:function(e,t,n){"use strict";var s=n(78868),a=n(37325),i=n(14792),r=n(55609),o=n(69307),c=n(65736),l=n(84069),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d);const __=c.__,h=e=>{const{title:t,logo:n,children:c,className:p,buttonLabel:u,apiRoot:h,apiNonce:g,registrationNonce:f,redirectUri:k,redirectTo:v,autoTrigger:_,isSiteConnected:E,setHasSeenWCConnectionModal:w}=e;(0,d.useEffect)((()=>{w()}),[w]);const b=(0,d.useCallback)((()=>{l.Z.tracks.recordJetpackClick("contextualized_connection_continue_button")}),[]);return m().createElement("div",{className:"jp-contextualized-connection"+(p?" "+p:"")},m().createElement("div",{className:"jp-contextualized-connection__content"},m().createElement("div",{className:"jp-contextualized-connection__logo"},n||m().createElement(s.Z,null)),m().createElement("h2",null,t),c,E&&m().createElement(r.Button,{variant:"primary",className:"jp-contextualized-connection__button",label:__("Continue to Jetpack","jetpack"),href:v,onClick:b},__("Continue to Jetpack","jetpack")),!E&&m().createElement(m().Fragment,null,m().createElement(i.Z,{autoTrigger:_,apiRoot:h,apiNonce:g,registrationNonce:f,redirectUri:k,connectLabel:u}),m().createElement("div",{className:"jp-contextualized-connection__tos"},m().createElement(a.Z,{agreeButtonLabel:u})))),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:u().string,className:u().string,buttonLabel:u().string,apiRoot:u().string.isRequired,apiNonce:u().string.isRequired,registrationNonce:u().string.isRequired,redirectUri:u().string.isRequired,redirectTo:u().string.isRequired,autoTrigger:u().bool,isSiteConnected:u().bool.isRequired,logo:u().shape({type:u().oneOf(["img","svg"])})},t.Z=h},85582:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n.n(i);t.Z=class extends r().PureComponent{static displayName="Count";static propTypes={count:a().number.isRequired};render(){return r().createElement("span",{className:"dops-count"},this.numberFormat(this.props.count))}}},43255:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(65235),c=n.n(o),l=n(97506),p=n(85799),u=n(2353),d=n(5004),m=n(71668),h=n(81114),g=n(79032),f=n(84069),k=n(92819),v=n(86450),_=n(25162),E=n.n(_),w=n(99196),b=n.n(w),y=n(59309),j=n(96300),C=n(69508),S=n(50416);const __=r.__,_x=r._x;class N extends w.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:n}=this.props;e({[t]:!n(t)})};trackPaidBtnClick=()=>{f.Z.tracks.recordJetpackClick({target:"paid-button",feature:this.props.module,page:"aag"})};render(){let e,t,n="";const s=c()(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"],this.props.module)&&this.props.isOfflineMode||this.props.noToggle||"manage"===this.props.module?"":b().createElement(d.T,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:this.toggleModule,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=b().createElement("a",{href:this.props.isOfflineMode?this.props.siteAdminUrl+"update-core.php":(0,i.Z)("calypso-plugins-manage",{site:this.props.siteRawUrl})},b().createElement(m.Z,{showDismiss:!1,status:this.props.status,isCompact:!0},_x("Updates needed","Short warning message","jetpack")))),"is-working"===this.props.status&&(t=b().createElement("span",{className:"jp-dash-item__active-label"},__("Active","jetpack")))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isOfflineMode&&(n=b().createElement(l.Z,{onClick:this.trackPaidBtnClick,compact:!0,href:"#/plans"},_x("Paid","Short label appearing near a paid feature configuration block.","jetpack")),this.props.isModule&&(t=b().createElement(v.Z,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),this.props.module&&this.props.getModule&&(e=this.props.getModule(this.props.module)),b().createElement("div",{className:s},b().createElement(h.Z,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),this.props.overrideContent?this.props.overrideContent:b().createElement(p.Z,{className:"jp-dash-item__card",href:this.props.href},b().createElement("div",{className:"jp-dash-item__content"},this.props.support.text&&b().createElement(g.Z,a()({module:e},this.props.support)),this.props.children)))}}t.Z=(0,y.$j)((e=>({getModule:t=>(0,S.rT)(e,t),isOfflineMode:(0,j.Ex)(e),userCanToggle:(0,C.pK)(e),siteRawUrl:(0,C.JR)(e),siteAdminUrl:(0,C.wW)(e)})))((0,u.u)(N))},69552:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(84069),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);class p extends l().Component{static displayName="DashSectionHeader";static propTypes={label:o().string.isRequired,settingsPath:o().string,externalLinkPath:o().string,externalLink:o().string,externalLinkClick:o().func};static defaultProps={label:"",settingsPath:"",externalLinkPath:"",externalLink:""};trackCogClick=()=>{i.Z.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})};render(){let e,t;const n=a()(this.props.className,"jp-dash-section-header");return this.props.externalLink&&(e=l().createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(t=l().createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),l().createElement("div",{className:n},l().createElement("div",{className:"jp-dash-section-header__label"},l().createElement("h2",{className:"jp-dash-section-header__name"},this.props.label)),e,t)}}t.Z=p},11020:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(835),r=n(17296);class o extends s.Component{UNSAFE_componentWillMount(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}render(){return null}}o.defaultProps={fetchAkismetData:()=>{}},t.Z=(0,a.$j)((e=>({fetchAkismetData:(0,r.bB)(),fetchingAkismetData:(0,r.bV)(e)})),(e=>(0,i.DE)({fetchAkismetData:r.bB},e)))(o)},3544:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(835),r=n(17296);class o extends s.Component{UNSAFE_componentWillMount(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}render(){return null}}o.defaultProps={checkAkismetKey:()=>{}},t.Z=(0,a.$j)((e=>({checkAkismetKey:(0,r.Bt)(),isCheckingAkismetKey:(0,r.gw)(e)})),(e=>(0,i.DE)({checkAkismetKey:r.Bt},e)))(o)},75402:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(835),r=n(17296);class o extends s.Component{componentDidMount(){this.props.fetchingBackupUndoEvent||this.props.hasLoadedBackupUndoEvent||this.props.fetchBackupUndoEvent()}render(){return null}}o.defaultProps={fetchBackupUndoEvent:()=>{}},t.Z=(0,a.$j)((e=>({fetchBackupUndoEvent:r.zx,fetchingBackupUndoEvent:(0,r.Ve)(e),hasLoadedBackupUndoEvent:(0,r.O1)(e)})),(e=>(0,i.DE)({fetchBackupUndoEvent:r.zx},e)))(o)},4681:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(835),r=n(17296),o=n(50416);class c extends s.Component{UNSAFE_componentWillMount(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}render(){return null}}c.defaultProps={fetchProtectCount:()=>{}},t.Z=(0,a.$j)((e=>({fetchProtectCount:(0,r.eR)(),fetchingProtectData:(0,r.Xu)(e),isModuleActivated:t=>(0,o.mp)(e,t)})),(e=>(0,i.DE)({fetchProtectCount:r.eR},e)))(c)},53190:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(36920);class r extends s.Component{static defaultProps={isFetchingIntroOffers:!1};componentDidMount(){this.props.isFetchingIntroOffers||this.props.fetchIntroOffers()}render(){return null}}t.Z=(0,a.$j)((e=>({isFetchingIntroOffers:(0,i.HW)(e)})),(e=>({fetchIntroOffers:()=>e((0,i.lR)())})))(r)},85182:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsConditional:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingRecommendationsConditional:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsConditional||this.props.isOfflineMode||this.props.fetchRecommendationsConditional()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingRecommendationsConditional:(0,c.E4)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsConditional:()=>e((0,c.AP)())})))(l)},70298:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsData:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingRecommendationsData:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsData||this.props.isOfflineMode||this.props.fetchRecommendationsData()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingRecommendationsData:(0,c.WS)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsData:()=>e((0,c.V2)())})))(l)},18882:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsProductSuggestions:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingRecommendationsProductSuggestions:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsProductSuggestions||this.props.isOfflineMode||this.props.fetchRecommendationsProductSuggestions()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingRecommendationsProductSuggestions:(0,c.at)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsProductSuggestions:()=>e((0,c.km)())})))(l)},90023:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(8722);class l extends i.Component{static propTypes={isFetchingRecommendationsUpsell:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingRecommendationsUpsell:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsUpsell||this.props.isOfflineMode||this.props.fetchRecommendationsUpsell()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingRecommendationsUpsell:(0,c.b5)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRecommendationsUpsell:()=>e((0,c.tR)())})))(l)},88546:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(69377);class l extends i.Component{static propTypes={isFetchingRewindStatus:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingRewindStatus:!1,isOfflineMode:!1};UNSAFE_componentWillMount(){this.props.isFetchingRewindStatus||this.props.isOfflineMode||this.props.fetchRewind()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingRewindStatus:(0,c.Li)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchRewind:()=>e((0,c.Au)())})))(l)},26551:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(15080);class l extends i.Component{static propTypes={isFetchingScanStatus:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingScanStatus:!1,isOfflineMode:!1};UNSAFE_componentWillMount(){this.props.isFetchingScanStatus||this.props.isOfflineMode||this.props.fetchScan()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingScanStatus:(0,c.gE)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchScan:()=>e((0,c.eR)())})))(l)},71865:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(33002);class r extends s.Component{static defaultProps={isFetchingSiteBenefitsData:!1};componentDidMount(){this.props.isFetchingSiteBenefits||this.props.fetchSiteBenefits()}render(){return null}}t.Z=(0,a.$j)((e=>({isFetchingSiteBenefits:(0,i.bl)(e)})),(e=>({fetchSiteBenefits:()=>e((0,i.IO)())})))(r)},92658:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(33002);class r extends s.Component{static defaultProps={isFetchingSiteDiscount:!1};componentDidMount(){this.props.isFetchingSiteDiscount||this.props.fetchSiteDiscount()}render(){return null}}t.Z=(0,a.$j)((e=>({isFetchingSiteDiscount:(0,i.Zd)(e)})),(e=>({fetchSiteDiscount:()=>e((0,i.N$)())})))(r)},7679:function(e,t,n){"use strict";var s=n(99196),a=n.n(s),i=n(59309),r=n(61372);class o extends a().Component{UNSAFE_componentWillMount(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}render(){return null}}t.Z=(0,i.$j)((e=>({isFetchingPluginsData:(0,r.vz)(e)})),(e=>({fetchPluginsData:()=>e((0,r.s4)())})))(o)},24289:function(e,t,n){"use strict";var s=n(92819),a=n(25162),i=n.n(a),r=n(99196),o=n(59309),c=n(77805);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}}t.Z=(0,o.$j)((e=>({isFetchingSiteProducts:(0,c.aX)(e),products:(0,c.dt)(e)})),(e=>({fetchSiteProducts:()=>e((0,c.pW)())})))(l)},69270:function(e,t,n){"use strict";var s=n(92819),a=n(25162),i=n.n(a),r=n(99196),o=n(59309),c=n(96300),l=n(33002);class p extends r.Component{static propTypes={isFetchingSiteData:i().bool,isOfflineMode:i().bool,sitePlan:i().object};static defaultProps={isFetchingSiteData:!1,isOfflineMode:!1,sitePlan:{}};UNSAFE_componentWillMount(){this.props.isFetchingSiteData||this.props.isOfflineMode||!(0,s.isEmpty)(this.props.sitePlan)||(this.props.fetchSiteData(),this.props.fetchSiteFeatures(),this.props.fetchAvailablePlans(),this.props.fetchSitePurchases())}render(){return null}}t.Z=(0,o.$j)((e=>({isFetchingSiteData:(0,l._5)(e),isOfflineMode:(0,c.Ex)(e),sitePlan:(0,l.UL)(e)})),(e=>({fetchSiteData:()=>e((0,l.tO)()),fetchSiteFeatures:()=>e((0,l.ij)()),fetchAvailablePlans:()=>e((0,l.lA)()),fetchSitePurchases:()=>e((0,l.Z_)())})))(p)},67619:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(17296);class r extends s.Component{UNSAFE_componentWillMount(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}render(){return null}}r.defaultProps={fetchStatsData:()=>{}},t.Z=(0,a.$j)((e=>({fetchStatsData:t=>(0,i.g4)(e,t),fetchingStatsData:(0,i.F2)(e)})),(e=>({fetchStatsData:t=>e((0,i.g4)(t))})))(r)},27583:function(e,t,n){"use strict";var s=n(99196),a=n.n(s),i=n(59309),r=n(96300),o=n(69508);class c extends a().Component{UNSAFE_componentWillMount(){!this.props.isFetchingUserData&&this.props.userCanConnectAccount&&this.props.fetchUserConnectionData()}render(){return null}}t.Z=(0,i.$j)((e=>({isFetchingUserData:(0,r.Dd)(e),userCanConnectAccount:(0,o.n0)(e)})),(e=>({fetchUserConnectionData:()=>e((0,r.jb)())})))(c)},83526:function(e,t,n){"use strict";var s=n(99196),a=n(59309),i=n(835),r=n(17296),o=n(50416);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:()=>{}},t.Z=(0,a.$j)((e=>({fetchVaultPressData:(0,r.l7)(),fetchingVaultPressData:(0,r.P_)(e),isModuleActivated:t=>(0,o.mp)(e,t),hasLoadedVaultPressData:(0,r.V_)(e)})),(e=>(0,i.DE)({fetchVaultPressData:r.l7},e)))(c)},5074:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(96300),c=n(22948);class l extends i.Component{static propTypes={isFetchingWafSettings:a().bool,isOfflineMode:a().bool};static defaultProps={isFetchingWafSettings:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingWafSettings||this.props.isOfflineMode||this.props.fetchWafSettings()}render(){return null}}t.Z=(0,r.$j)((e=>({isFetchingWafSettings:(0,c.vd)(e),isOfflineMode:(0,o.Ex)(e)})),(e=>({fetchWafSettings:()=>e((0,c.Iv)())})))(l)},78088:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(85799),r=n(59584),o=n(92819),c=n(99196),l=n.n(c),p=n(59309),u=n(17296),d=n(96300),m=n(80625),h=n(69508),g=n(69377),f=n(15080),k=n(33002),v=n(3915);class _ extends l().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 l().createElement("div",null,l().createElement("hr",null),l().createElement("ul",null,l().createElement("li",null,l().createElement("label",{htmlFor:"view_stats"},l().createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats")),l().createElement("li",null,l().createElement("label",{htmlFor:"hide_stats"},l().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=()=>l().createElement("div",null,l().createElement("hr",null),l().createElement("ul",null,l().createElement("li",null,l().createElement("label",{htmlFor:"is_linked"},l().createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked")),l().createElement("li",null,l().createElement("label",{htmlFor:"is_unlinked"},l().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=a()(this.props.className,"jp-dev-card"),t=(0,r.scx)(this.props.sitePlan.product_slug),n=(0,o.get)(this.props.rewindStatus,["state"],!1),s=(0,o.get)(this.props.scanStatus,["state"],!1);return l().createElement(i.Z,{compact:!0,className:e},l().createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,v.Z)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),l().createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),l().createElement("ul",null,l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_free"},l().createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_personal"},l().createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_premium"},l().createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_business"},l().createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_starter"},l().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)")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_security_t1"},l().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)")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_security_t2"},l().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)")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_complete"},l().createElement("input",{type:"radio",id:"jetpack_complete",value:"jetpack_complete",name:"jetpack_complete",checked:"is-complete-plan"===t,onChange:this.onPlanChange}),"Complete")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_backup_t0"},l().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)")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_backup_t1"},l().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)")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_backup_t2"},l().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)")),l().createElement("li",{className:"jp-dev-card__deprecated-plans-list-header"},"— DEPRECATED —"),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_security_daily"},l().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")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_security_realtime"},l().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")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_backup_daily"},l().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")),l().createElement("li",null,l().createElement("label",{htmlFor:"jetpack_backup_realtime"},l().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"))),l().createElement("hr",null),l().createElement("ul",null,l().createElement("li",null,l().createElement("label",{htmlFor:"admin_master"},l().createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (master)")),l().createElement("li",null,l().createElement("label",{htmlFor:"admin_secondary"},l().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)")),l().createElement("li",null,l().createElement("label",{htmlFor:"editor"},l().createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),l().createElement("li",null,l().createElement("label",{htmlFor:"subscriber"},l().createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),l().createElement("hr",null),l().createElement("ul",null,l().createElement("li",null,l().createElement("label",{htmlFor:"nothreats"},l().createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),l().createElement("li",null,l().createElement("label",{htmlFor:"threats"},l().createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),l().createElement("hr",null),l().createElement("ul",null,l().createElement("strong",null,"Backup"),l().createElement("li",null,l().createElement("label",{htmlFor:"rewindUnavailable"},l().createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable")),l().createElement("li",null,l().createElement("label",{htmlFor:"rewindProvisioning"},l().createElement("input",{type:"radio",id:"rewindProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===n,onChange:this.onRewindStatusChange}),"Provisioning")),l().createElement("li",null,l().createElement("label",{htmlFor:"rewindAwatingCreds"},l().createElement("input",{type:"radio",id:"rewindAwatingCreds",value:"awaiting_credentials",name:"awaiting_credentials",checked:"awaiting_credentials"===n,onChange:this.onRewindStatusChange}),"Awaiting credentials")),l().createElement("li",null,l().createElement("label",{htmlFor:"rewindActive"},l().createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"))),l().createElement("ul",null,l().createElement("strong",null,"Scan"),l().createElement("li",null,l().createElement("label",{htmlFor:"scanUnavailable"},l().createElement("input",{type:"radio",id:"scanUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===s,onChange:this.onScanStatusChange}),"Unavailable")),l().createElement("li",null,l().createElement("label",{htmlFor:"scanProvisioning"},l().createElement("input",{type:"radio",id:"scanProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===s,onChange:this.onScanStatusChange}),"Provisioning")),l().createElement("li",null,l().createElement("label",{htmlFor:"scanIdle"},l().createElement("input",{type:"radio",id:"scanIdle",value:"idle",name:"idle",checked:"idle"===s,onChange:this.onScanStatusChange}),"Idle")),l().createElement("li",null,l().createElement("label",{htmlFor:"scanScanning"},l().createElement("input",{type:"radio",id:"scanScanning",value:"scanning",name:"scanning",checked:"scanning"===s,onChange:this.onScanStatusChange}),"Scanning"))),this.maybeShowStatsToggle(),this.showIsLinkedToggle())}}t.Z=(0,p.$j)((e=>({isDevVersion:(0,h._W)(e),sitePlan:(0,k.UL)(e),canDisplayDevCard:(0,m.Ry)(e),isUserLinked:(0,d.BU)(e),canViewStats:(0,h.px)(e),isConnectionOwner:(0,d.QM)(e),isAdmin:(0,h.WB)(e),canEditPosts:(0,h.rp)(e),getVaultPressScanThreatCount:()=>(0,u._R)(e),rewindStatus:(0,g.of)(e),scanStatus:(0,f.C8)(e)})),(e=>({switchPlanPreview:t=>e((0,m.fb)(t)),switchUserPermissions:t=>e((0,m.Yw)(t)),switchThreats:t=>e((0,m.aX)(parseInt(t))),disableDevCard:()=>e((0,m.Wh)()),switchRewindState:t=>e((0,m._s)(t)),switchScanState:t=>e((0,m.pH)(t))})))(_)},30860:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(85799),c=n(15773),l=n(5060),p=n(92819),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(3915);class f extends h().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:p.noop,onClose:p.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 h().createElement("button",{className:"dops-foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){const t=24;return h().createElement("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e},h().createElement("span",{className:"screen-reader-text"},"More"),h().createElement(l.Z,{icon:this.props.icon,size:t}))}};renderContent=()=>h().createElement("div",{className:"dops-foldable-card__content"},this.props.children);renderHeader=()=>{const e=this.props.summary?h().createElement("span",{className:"dops-foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?h().createElement("span",{className:"dops-foldable-card__summary_expanded"},this.props.expandedSummary," "):null,n=this.props.header?h().createElement("div",{className:"dops-foldable-card__header-text"},this.props.header):null,s=this.props.subheader?h().createElement("div",{className:"dops-foldable-card__subheader"},this.props.subheader):null,i={role:"button",tabIndex:0,onClick:this.getClickAction(),onKeyDown:(0,g.Z)(this.getClickAction())},o=r()("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),c=r()("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return h().createElement("div",a()({className:o},this.props.clickableHeader?i:{}),h().createElement("span",{className:"dops-foldable-card__main"},h().createElement("div",a()({className:c},this.props.clickableHeaderText?i:{}),n,s)),h().createElement("span",{className:"dops-foldable-card__secondary"},e,t,this.renderActionButton()))};render(){const e=this.props.compact?c.Z:o.Z,t=r()("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return h().createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}t.Z=f},7516:function(e,t,n){"use strict";var s=n(6895),a=n(88275),i=n(38237),r=n(65736),o=n(65235),c=n.n(o),l=n(78088),p=n(84069),u=n(99196),d=n.n(u),m=n(59309),h=n(96300),g=n(80625),f=n(69508),k=n(3915);const __=r.__,_x=r._x,v=()=>{const e=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-e/1.5),window.scrollY>e&&window.requestAnimationFrame(v)};class _ extends d().Component{static displayName="Footer";resetOnClick=()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&this.props.resetOptions()};trackVersionClick=()=>{p.Z.tracks.recordJetpackClick({target:"footer_link",link:"version"})};trackTermsClick=()=>{p.Z.tracks.recordJetpackClick({target:"footer_link",link:"terms"})};trackAboutClick=()=>{p.Z.tracks.recordJetpackClick({target:"footer_link",link:"about"})};trackPrivacyClick=()=>{window.requestAnimationFrame(v),p.Z.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})};trackModulesClick=()=>{p.Z.tracks.recordJetpackClick({target:"footer_link",link:"modules"})};trackDebugClick=()=>{p.Z.tracks.recordJetpackClick({target:"footer_link",link:"debug"})};render(){const e=c()(this.props.className,"jp-footer"),t=this.props.currentVersion,n=[];return this.props.isAtomicPlatform||n.push({label:(0,r.sprintf)(/* Translators: placeholder is a version number. */ | |
| 34 | -__("Version %s","jetpack"),t),href:(0,s.Z)("jetpack"),target:"_blank",onClick:this.trackVersionClick}),this.props.siteConnectionStatus&&this.props.userCanManageOptions&&n.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&&n.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&&n.push({label:_x("Reset Options (dev only)","Navigation item.","jetpack"),role:"button",onKeyDown:(0,k.Z)(this.resetOnClick),onClick:this.resetOnClick}),this.props.isDevVersion&&n.push({label:_x("Dev Tools","Navigation item.","jetpack"),role:"button",onKeyDown:(0,k.Z)(this.props.enableDevCard),onClick:this.props.enableDevCard}),d().createElement(a.ZP,null,d().createElement("div",{className:c()("jp-footer",e)},d().createElement("div",{className:"jp-footer__container"},d().createElement(i.Z,{menu:n,moduleNameHref:(0,s.Z)("jetpack"),siteAdminUrl:this.props.siteAdminUrl,onAboutClick:this.trackAboutClick,onPrivacyClick:this.trackPrivacyClick,onTermsClick:this.trackTermsClick})),this.props.isDevVersion&&this.props.displayDevCard&&d().createElement(l.Z,null)))}}t.Z=(0,m.$j)((e=>({currentVersion:(0,f.w1)(e),displayDevCard:(0,g.Ry)(e),isAtomicPlatform:(0,f.vL)(e),isDevVersion:(0,f._W)(e),isInIdentityCrisis:(0,h.l9)(e),siteAdminUrl:(0,f.wW)(e),siteConnectionStatus:(0,h.Gz)(e),userCanManageOptions:(0,f.UF)(e)})),(e=>({resetOptions:()=>e((0,g._G)("options")),enableDevCard:()=>e((0,g.vN)())})))(_)},45452:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(65235),a=n.n(s),i=n(5060),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);class p extends l().Component{static displayName="FormInputValidation";static propTypes={isError:o().bool,isWarning:o().bool,text:o().node,icon:o().string};static defaultProps={isError:!1};render(){const e=a()({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return l().createElement("div",{className:e},l().createElement("span",null,l().createElement(i.Z,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}},99026:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(52491),c=n.n(o),l=n(97506),p=n(92819),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(91850),f=n.n(g);class k extends h().Component{static displayName="ClipboardButton";static propTypes={className:d().string,text:d().string,prompt:d().string,onCopy:d().func,rna:d().bool};static defaultProps={onCopy:p.noop,rna:!1};componentDidMount(){const e=f().findDOMNode(this.refs.button);this.clipboard=new(c())(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=r()("dops-clipboard-button",this.props.className);return h().createElement(l.Z,a()({rna:this.props.rna,ref:"button"},(0,p.omit)(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}}},81674:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(44517),c=n(92819),l=n(99196),p=n.n(l);class u extends p().Component{static displayName="CompactFormToggle";render(){return p().createElement(o.Z,a()({},(0,c.omit)(this.props,"className"),{className:r()(this.props.className,"is-compact")}),this.props.children)}}},44517:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(65235),a=n.n(s),i=n(28402),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);class p extends c.Component{static propTypes={onChange:o().func,onKeyDown:o().func,checked:o().bool,disabled:o().bool,id:o().string,className:o().string,toggling:o().bool,"aria-label":o().string,children:o().node,disabledReason:o().node};static defaultProps={checked:!1,disabled:!1,onKeyDown:()=>{},onChange:()=>{},disabledPopoverPosition:"bottom",disabledReason:""};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=()=>l().createElement(i.Z,{isVisible:this.state.showPopover,context:this.refs&&this.refs.toggleSwitch,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=a()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return l().createElement("span",null,l().createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),l().createElement("label",{className:"form-toggle__label",htmlFor:e},l().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:"toggleSwitch"}),l().createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}},61775:function(e,t,n){"use strict";n.d(t,{B1:function(){return h},C_:function(){return u},Gj:function(){return m},ih:function(){return g},lX:function(){return d}});var s=n(82674),a=n.n(s),i=(n(65736),n(65235)),r=n.n(i),o=(n(97506),n(96200)),c=n(92819),l=n(99196),p=n.n(l);const u=e=>p().createElement("fieldset",a()({},(0,c.omit)(e,"className"),{className:r()(e.className,"jp-form-fieldset")}),e.children);class d extends p().Component{static displayName="FormLabel";render(){const{className:e,htmlFor:t,...n}=this.props;return p().createElement("label",a()({},n,{htmlFor:t,className:r()(e,"jp-form-label")}),this.props.children)}}class m extends p().Component{static displayName="FormLegend";render(){return p().createElement("legend",a()({},(0,c.omit)(this.props,"className"),{className:r()(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",a()({},(0,c.omit)(this.props,"className"),{className:r()(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,n)=>{e.push({label:t,value:n})})),p().createElement(o.Z,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value,rna:this.props.rna})}}},37851:function(e,t,n){"use strict";var s=n(71668),a=n(52099),i=n(51128),r=n.n(i),o=n(91088),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(59309),m=n(835),h=n(41549);const g=r()("calypso:notices");class f extends u().Component{static displayName="NoticesList";static propTypes={id:l().string,notices:l().oneOfType([l().object,l().array])};static defaultProps={id:"overlay-notices",notices:Object.freeze([])};UNSAFE_componentWillMount(){g("Mounting Global Notices React component.")}removeNotice=e=>{e&&o.Z.removeNotice(e)};handleLocalNoticeDismissClick=e=>()=>this.removeNotice(e);handleReduxNoticeDismissClick=e=>()=>this.props.removeNotice(e);render(){let e=(this.props.notices[this.props.id]||[]).map((function(e,t){return u().createElement(s.Z,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss},e.button&&u().createElement(a.Z,{href:e.href,onClick:e.onClick},e.button))}),this);return e=e.concat(this.props.storeNotices.map((function(e,t){return u().createElement(s.Z,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})}),this)),e.length?u().createElement("div",{id:this.props.id,className:"global-notices"},e):null}}t.Z=(0,d.$j)((e=>({storeNotices:e.globalNotices})),(e=>(0,m.DE)({removeNotice:h.qq},e)))(f)},65901:function(e,t,n){"use strict";n.d(t,{m:function(){return a},o:function(){return s}});const s="NEW_NOTICE",a="REMOVE_NOTICE"},41549:function(e,t,n){"use strict";n.d(t,{RT:function(){return o},iI:function(){return r},qq:function(){return i},tF:function(){return c}});var s=n(92819),a=n(65901);function i(e){return{noticeId:e,type:a.m}}function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={noticeId:n.id||(0,s.uniqueId)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:a.o,notice:i}}const o=r.bind(null,"is-success"),c=r.bind(null,"is-error");r.bind(null,"is-info"),r.bind(null,"is-warning")},33929:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var s=n(835),a=n(65901);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.o:return[t.notice,...e];case a.m:return e.filter((e=>e.noticeId!==t.noticeId))}return e}(0,s.UY)({globalNotices:i})},5060:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(25162),r=n.n(i),o=n(99196),c=n.n(o);class l extends c().PureComponent{static displayName="Gridicon";static defaultProps={className:"",size:24};static propTypes={icon:r().string.isRequired,size:r().number,onClick:r().func,className:r().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),n=this.needsOffsetX(e,this.props.size),s=this.needsOffsetY(e,this.props.size),i=a()("gridicon",e,this.props.className,{"needs-offset":t,"needs-offset-x":n,"needs-offset-y":s});let r;switch(e){default:r=c().createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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"}),c().createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":r=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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=c().createElement("svg",{className:i,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},c().createElement("g",null,c().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"}),c().createElement("g",null,c().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}}t.Z=l},42698:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(5060),r=n(28402),o=n(84069),c=n(92819),l=n(25162),p=n.n(l),u=n(99196),d=n.n(u);t.Z=class extends d().Component{static displayName="InfoPopover";static propTypes={id:p().string,position:p().string,className:p().string,rootClassName:p().string,gaEventCategory:p().string,popoverName:p().string,onClick:p().func,ignoreContext:p().shape({getDOMNode:p().function})};static defaultProps={position:"bottom",onClick:c.noop};state={showPopover:!1};render(){const e=a()("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return d().createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},d().createElement(i.Z,{icon:"info-outline",size:18}),this.props.screenReaderText?d().createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",d().createElement(r.Z,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className: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 n=this.state.showPopover?" Opened":" Closed";o.Z.ga.recordEvent(e,"InfoPopover: "+t+n)}}}},16626:function(e,t,n){"use strict";var s=n(55609),a=n(97506),i=n(99196),r=n.n(i);t.Z=e=>{const{isInstalling:t=!1,children:n=null,...i}=e,o=t?r().createElement("div",{className:"jp-install-button__spinner-container"},r().createElement(s.Spinner,null)):n;return r().createElement(a.Z,i,o)}},85733:function(e,t,n){"use strict";n.d(t,{$j:function(){return d},zv:function(){return u}});var s=n(47407),a=n(92819),i=n(25162),r=n.n(i),o=n(99196),c=n.n(o),l=n(59309),p=n(69508);class u extends s.jL{static propTypes={callToAction:r().string,className:r().string,description:r().node,eventFeature:r().string,feature:r().string,href:r().string,icon:r().string,iconAlt:r().string,iconSrc:r().string,list:r().arrayOf(r().string),onClick:r().func,trackBannerDisplay:r().func,path:r().string,plan:r().string,siteSlug:r().string,title:r().node.isRequired,noIcon:r().bool,rna:r().bool};static defaultProps={onClick:a.noop,trackBannerDisplay:a.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.jL,this.props):null}}function d(e){return(0,l.$j)(((e,t)=>{const n=(0,p.pK)(e);return{arePromotionsActive:(0,p.Hy)(e),userCanPurchasePlan:n,hidePromotionBanner:!!t.plan&&!n}}))((0,s.$j)(e))}t.ZP=d(u)},6165:function(e,t,n){"use strict";var s=n(6895),a=n(14322),i=n(55609),r=n(69307),o=n(65736),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p);const __=o.__,d=e=>{const{siteBenefits:t,context:n}=e;return u().createElement(u().Fragment,null,t.length>0&&u().createElement(u().Fragment,null,u().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},u().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},"disconnect"===n?__("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))),u().createElement("div",{className:"jp-connection__disconnect-card__group"},t.map(((e,t)=>{let{value:n,description:s,title:i}=e;return u().createElement(a.Z,{title:i,value:n,description:s,key:t})})))),t.length<=2&&u().createElement("div",{className:"jetpack-benefits__general-benefits-section"},u().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack has many powerful tools that can help you achieve your goals","jetpack")),u().createElement("ul",{className:"jetpack-benefits__general-benefits-list"},u().createElement("li",{key:"reason-cdn"},(0,r.createInterpolateElement)(__("Speed up your site and provide mobile-ready images with <ExternalLink>our CDN</ExternalLink>","jetpack"),{ExternalLink:u().createElement(i.ExternalLink,{href:(0,s.Z)("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})})),u().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:u().createElement(i.ExternalLink,{href:(0,s.Z)("jetpack-features-brute-force"),rel:"noopener noreferrer",target:"_blank"})})),u().createElement("li",{key:"reason-social"},(0,r.createInterpolateElement)(__("Grow your traffic with automated social <ExternalLink>publishing and sharing</ExternalLink>","jetpack"),{ExternalLink:u().createElement(i.ExternalLink,{href:(0,s.Z)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})})))))};d.propTypes={siteBenefits:l().array,context:l().oneOf(["disconnect","deactivate"])},d.defaultProps={context:"disconnect"},t.Z=d},88120:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(5060),r=n(92819),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(3915);class d extends l.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=a()(this.props.className,"jp-dialogue-modern",{"has-featured-image":!!this.props.svg});return p().createElement("div",{className:"jp-dialogue-modern-full__container",role:"presentation",onClick:this.maybeDismiss,onKeyDown:(0,u.Z)(this.maybeDismiss)},p().createElement("div",{className:e,role:"presentation",onClick:this.clickForeground,onKeyDown:(0,u.Z)(this.clickForeground)},this.props.showDismiss&&p().createElement(i.Z,{icon:"cross-small",className:"jp-dialogue-modern-full__dismiss",tabIndex:"0",onKeyDown:(0,u.Z)(this.props.dismiss),onClick:this.props.dismiss}),this.props.svg,p().createElement("div",{className:"jp-dialogue-modern__content"},p().createElement("h1",{className:"jp-dialogue-modern__title"},this.props.title),this.props.content),p().createElement("div",null,this.props.belowContent)))}}d.propTypes={content:c().oneOfType([c().string,c().object]).isRequired,belowContent:c().oneOfType([c().string,c().object]).isRequired,svg:c().oneOfType([c().bool,c().object]),dismissOnClick:c().func,showDismiss:c().bool,title:c().string,adminUrl:c().string,dismiss:c().func},d.defaultProps={svg:!1,showDismiss:!0,dismiss:r.noop,content:"",belowContent:"",title:""},t.Z=d},72129:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var s=n(80800),a=n(65736),i=n(25162),r=n.n(i),o=n(99196),c=n.n(o);const __=a.__,l=e=>{let{altText:t}=e;return c().createElement("div",{className:"jp-loading-icon"},c().createElement("img",{src:s.hp+"/jetpack-logomark-blue.svg",alt:t}))};l.propTypes={altText:r().string},l.defaultProps={altText:__("Loading…","jetpack")}},90381:function(e,t,n){"use strict";var s=n(99196),a=n.n(s),i=n(59309),r=n(835),o=n(35613);class c extends a().Component{static displayName="DismissableNotices";dismissJetpackActionNotice=()=>{this.props.dismissJetpackActionNotice(this.props.jetpackNotices)};renderNotices=()=>{this.props.jetpackNotices;return!1};render(){return a().createElement("div",null,this.renderNotices())}}t.Z=(0,i.$j)((e=>({jetpackNotices:(0,o.gq)(e),isDismissed:t=>(0,o.jE)(e,t)})),(e=>(0,r.DE)({dismissJetpackActionNotice:o.Sn},e)))(c)},77332:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(65736),a=n(71668),i=n(25162),r=n.n(i),o=n(99196),c=n.n(o),l=n(4721);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(a.Z,{showDismiss:!1,text:this.props.text,status:"is-error",icon:"link-break",display:this.props.display},c().createElement(l.Z,{errorCode:this.props.errorCode,errorData:this.props.errorData,action:this.props.action},__("Restore Connection","jetpack")))}}},75060:function(e,t,n){"use strict";var s=n(80800),a=n(6895),i=n(69307),r=n(65736),o=n(79099),c=n(37851),l=n(71668),p=n(52099),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(59309),f=n(44498),k=n(92659),v=n(96300),_=n(69508),E=n(59963),w=n(33002),b=n(90381),y=n(69635),j=n(41225),C=n(81375);const __=r.__;class S extends h().Component{static displayName="DevVersionNotice";render(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&h().createElement(l.Z,{showDismiss:!1,text:__("You are currently running a development version of Jetpack.","jetpack")},h().createElement(p.Z,{href:s.Ez,external:!0},__("Submit Beta feedback","jetpack")))}}S.propTypes={isDevVersion:d().bool.isRequired,userIsSubscriber:d().bool.isRequired};class N extends h().Component{static displayName="StagingSiteNotice";render(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){const e=(0,a.Z)("jetpack-support-staging-sites"),t={text:__("You are running Jetpack on a staging server.","jetpack"),status:"is-basic",showDismiss:!1};return h().createElement(l.Z,t,h().createElement(p.Z,{href:e},__("More Info","jetpack")))}return!1}}N.propTypes={isStaging:d().bool.isRequired,isInIdentityCrisis:d().bool.isRequired};class x 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. */ | |
| 35 | -__("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. */ | |
| 36 | -__("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 n=(0,i.createInterpolateElement)(/* translators: reasons is an unordered list of reasons why a site may be in Offline mode. */ | |
| 37 | -__("Currently in <a>Offline Mode</a> (some features are disabled) because: <reasons/>","jetpack"),{a:h().createElement("a",{href:(0,a.Z)("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.Z,{showDismiss:!1,status:"is-info",text:n},h().createElement(p.Z,{href:(0,a.Z)("jetpack-support-development-mode")},__("Learn More","jetpack")))}return!1}}x.propTypes={siteConnectionStatus:d().oneOfType([d().string,d().bool]).isRequired,siteOfflineMode:d().oneOfType([d().bool,d().object]).isRequired};class T 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.Z,{title:__("Connect your WordPress.com account","jetpack"),description:__("Jetpack is powering your site, but to access all of its features you’ll need to connect your account to WordPress.com.","jetpack"),callToAction:__("Create account","jetpack"),href:`${this.props.connectUrl}&from=unlinked-user-connect`,icon:h().createElement(k.Z,{icon:"wordpress",size:24}),className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0}))}}T.propTypes={connectUrl:d().string.isRequired,siteConnected:d().bool.isRequired};class A extends h().Component{static displayName="JetpackNotices";render(){const e=this.props.siteDataErrors.filter((e=>e.hasOwnProperty("action"))),t=this.props.location.pathname.startsWith("/connect-user");return h().createElement("div",{"aria-live":"polite"},h().createElement(c.Z,null),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&(this.props.connectionErrors.length>0||e.length>0)&&h().createElement(y.Z,{errors:this.props.connectionErrors.concat(e),display:!this.props.isReconnectingSite}),h().createElement(C.Z,null),h().createElement(S,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),h().createElement(x,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),h().createElement(N,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),h().createElement(j.Z,null),h().createElement(b.Z,null),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&!t&&h().createElement(T,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&h().createElement(l.Z,{showDismiss:!1,status:"is-warning",text:__("This site is not connected to WordPress.com. Please ask the site administrator to connect.","jetpack")}),this.props.licensingError&&h().createElement(l.Z,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}))}}t.ZP=(0,g.$j)((e=>({connectUrl:(0,v.AM)(e),siteConnectionStatus:(0,v.Gz)(e),userCanConnectSite:(0,_.Mc)(e),userCanConnectAccount:(0,_.n0)(e),userIsSubscriber:(0,_.dc)(e),isConnectionOwner:(0,v.QM)(e),isLinked:(0,v.BU)(e),isDevVersion:(0,_._W)(e),isAtomicSite:(0,_.Ug)(e),siteOfflineMode:(0,v.Hu)(e),isStaging:(0,v.cm)(e),isInIdentityCrisis:(0,v.l9)(e),connectionErrors:(0,_.PK)(e),siteDataErrors:(0,w.Vc)(e),isReconnectingSite:(0,v.O_)(e),licensingError:(0,E.Tk)(e),hasConnectedOwner:(0,v.it)(e)})),(e=>({clearLicensingError:()=>e((0,E.xw)())})))((0,f.EN)(A))},69635:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(80800),a=n(65736),i=n(71668),r=n(52099),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(77332);const __=a.__;class d extends p().Component{static propTypes={errors:c().array.isRequired,display:c().bool};static defaultProps={display:!0};getAction(e,t,n,s,a){switch(e){case"reconnect":return p().createElement(u.Z,{text:t,errorCode:n,errorData:s,action:e,display:this.props.display});case"support":return p().createElement(i.Z,{text:t,status:"is-error",icon:"link-break",showDismiss:!1,display:this.props.display},p().createElement(r.Z,{href:a,external:!0},__("Contact support","jetpack")))}return null}renderOne(e){const t=this.props.isDevVersion?s.Ez:s.Fr,n=this.getAction(e.action,e.message,e.code,e.hasOwnProperty("data")?e.data:{},t);return null===n?null:p().createElement(p().Fragment,{key:e.action},n)}render(){const e={},t=this.props.errors.filter((e=>e.hasOwnProperty("action")));for(const n of t)e.hasOwnProperty(n.action)||(e[n.action]=n);return Object.values(e).map((e=>this.renderOne(e)))}}},4721:function(e,t,n){"use strict";var s=n(51045),a=n(65736),i=n(41549),r=n(52099),o=n(84069),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(59309),m=n(51975),h=n(96300);const __=a.__,g=e=>{const{restoreConnection:t}=(0,s.Z)(),n=(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]),a=(0,p.useCallback)((()=>(e.beforeReconnectSite(),t(!1).then((t=>{"in_progress"===t.status&&e.initiateUserConnection(t.authorizeUrl)})).catch((t=>e.reconnectFailed(t))))),[e,t]),i=(0,p.useCallback)((()=>{e.isReconnectingSite||(o.Z.tracks.recordEvent("jetpack_termination_error_notice_click",n()),a())}),[e.isReconnectingSite,n,a]);return(0,p.useEffect)((()=>{o.Z.tracks.recordEvent("jetpack_termination_error_notice_view",n())}),[n]),u().createElement(r.Z,{icon:e.icon,onClick:i},e.children)};g.propTypes={icon:l().string,errorCode:l().string,errorData:l().object,action:l().string},t.Z=(0,d.$j)((e=>({isReconnectingSite:(0,h.O_)(e)})),(e=>({beforeReconnectSite:()=>{e({type:m.bGw}),e((0,i.iI)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:m.dDV}),e({type:m.hmP,connectUrl:t}),e((0,h.bL)())},reconnectFailed:t=>{e({type:m.B9W,error:t}),e((0,i.qq)("reconnect-jetpack")),e((0,i.iI)("is-error",(0,a.sprintf)(/* translators: placeholder is the error. */ | |
| 38 | -__("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}})))(g)},41225:function(e,t,n){"use strict";var s=n(65736),a=n(71668),i=n(99196),r=n.n(i),o=n(59309),c=n(44498),l=n(33002);const __=s.__;const p=(0,c.EN)((function(e){let{activeSitePurchases:t,location:{pathname:n}}=e;if("/plans"!==n)return null;if(t.length<=1)return null;const i=t.map((e=>{let{product_slug:t,...n}=e;return{...n,product_slug:t.replace("_monthly","")}})),o=i.find((e=>{let{product_slug:t}=e;return t.includes("backup")}));if(!o)return null;const c=i.find((e=>{let{product_slug:t}=e;return"jetpack_personal"===t||"jetpack_premium"===t||"jetpack_business"===t}));if(!c)return null;if("jetpack_backup_realtime"===o.product_slug&&"jetpack_business"!==c.product_slug)return null;let l=__("daily backups","jetpack");return"jetpack_business"===c.product_slug&&(l=__("real-time backups","jetpack")),r().createElement(a.Z,{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". */ | |
| 39 | -__("Your %2$s Plan includes %1$s. Looks like you also purchased the %3$s product. Consider removing %3$s.","jetpack"),l,c.product_name,o.product_name)})}));t.Z=(0,o.$j)((e=>({activeSitePurchases:(0,l.nl)(e)})))(p)},81375:function(e,t,n){"use strict";var s=n(6895),a=n(55609),i=n(69307),r=n(65736),o=n(71668),c=n(52099),l=n(39327),p=n(99196),u=n.n(p),d=n(59309),m=n(69508),h=n(35613);const __=r.__;class g extends u().Component{static displayName="JetpackStateNotices";state={showNotice:!0};dismissJetpackStateNotice=()=>{this.setState({showNotice:!1})};getErrorFromKey=e=>{const t=this.props.jetpackStateNoticesErrorDescription||!1;let n="";switch(e){case"cheatin":n=__("Cheatin' uh?","jetpack");break;case"access_denied":n=(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:u().createElement("a",{href:(0,s.Z)("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:u().createElement("p",null)});break;case"wrong_state":n=__("You need to stay logged in to your WordPress blog while you authorize Jetpack.","jetpack");break;case"invalid_client":n=__("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.","jetpack");break;case"invalid_grant":n=__('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.',"jetpack");break;case"site_inaccessible":case"site_requires_authorization":n=(0,r.sprintf)(/* translators: placeholder is an error code and message. */ | |
| 40 | -__("Your website needs to be publicly accessible to use Jetpack: %s","jetpack"),e);break;case"connection_disabled":n=(0,i.createInterpolateElement)(__("This site can't be connected to WordPress.com because it violates our <a>Terms of Service</a>.","jetpack"),{a:u().createElement(a.ExternalLink,{href:(0,s.Z)("wpcom-tos")})});break;case"not_public":n=(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:u().createElement("strong",null)});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=__("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":n=(0,r.sprintf)(/* translators: placeholder is an error code and message. */ | |
| 41 | -__("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":n=(0,i.createInterpolateElement)((0,r.sprintf)(/* translators: placeholder is an error code and message. */ | |
| 42 | -__("<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:u().createElement("strong",null)});break;default:n=e}return t?u().createElement("div",null,n,u().createElement("br",null),t):u().createElement("div",null,n)};getMessageFromKey=e=>{let t,n="",a="is-info";switch(e){case"modules_activated":this.props.isAtomicPlatform||(n=(0,i.createInterpolateElement)((0,r.sprintf)(/* translators: placeholder is a version number, like 8.8. */ | |
| 43 | -__("Welcome to <s>Jetpack %s</s>!","jetpack"),this.props.currentVersion),{s:u().createElement("strong",null)}));break;case"already_authorized":n=__("Your Jetpack is already connected.","jetpack"),a="is-success";break;case"authorized":n=__("You're fueled up and ready to go, Jetpack is now active.","jetpack"),a="is-success";break;case"linked":n=__("You're fueled up and ready to go.","jetpack"),a="is-success";break;case"protect_misconfigured_ip":n=__("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.","jetpack"),a="is-info",t=u().createElement(c.Z,{href:(0,s.Z)("jetpack-support-security-troubleshooting-protect")},__("Learn More","jetpack"));break;case"reconnection_completed":n=(0,i.createInterpolateElement)(__("Jetpack successfully reconnected! You can check your Jetpack Connection health by visiting the <a>Site Health tool</a>.","jetpack"),{a:u().createElement("a",{href:this.props.siteAdminUrl+"site-health.php"})}),a="is-success";break;default:n=e}return[n,a,t]};renderContent=()=>{let e,t="is-info",n="";const s=this.props.jetpackStateNoticesErrorCode,a=this.props.jetpackStateNoticesMessageCode,i=this.props.jetpackStateNoticesMessageContent;if(s||a||i){if(s&&(n=this.getErrorFromKey(s),"access_denied"!==s&&(t="is-error")),i&&i.release_post_content&&!this.props.isAtomicPlatform)return u().createElement(l.Z,{dismiss:this.dismissJetpackStateNotice,version:this.props.currentVersion,releasePostContent:i.release_post_content,featuredImage:i.release_post_featured_image,title:i.release_post_title});if(a){const s=this.getMessageFromKey(a);n=s[0],t=s[1],e=s[2]}if(""!==n)return u().createElement(o.Z,{status:t,onDismissClick:this.dismissJetpackStateNotice,text:n},e)}};render(){return u().createElement("div",null,this.state.showNotice?this.renderContent():null)}}t.Z=(0,d.$j)((e=>({currentVersion:(0,m.w1)(e),isAtomicPlatform:(0,m.vL)(e),jetpackStateNoticesErrorCode:(0,h.gB)(e),jetpackStateNoticesMessageCode:(0,h.pt)(e),jetpackStateNoticesErrorDescription:(0,h.XF)(e),jetpackStateNoticesMessageContent:(0,h.Rv)(e),siteAdminUrl:(0,m.wW)(e)})))(g)},22177:function(e,t,n){"use strict";var s=n(25347),a=n(37325),i=n(55609),r=n(65736),o=n(65235),c=n.n(o),l=n(97506),p=n(5060),u=n(84069),d=n(25162),m=n.n(d),h=n(99196),g=n.n(h);const __=r.__,f=e=>{const{icon:t,title:n,productSlug:o,description:d,features:m,disclaimer:f,currencyCode:k,price:v,discountedPrice:_,billingDescription:E,callToAction:w,checkoutText:b,checkoutUrl:y,priority:j,illustrationPath:C}=e,S=!!C,N=!!w;(0,h.useEffect)((()=>{u.Z.tracks.recordEvent("jetpack_product_card_view",{type:o})}),[o]);const x=(0,h.useCallback)((()=>{u.Z.tracks.recordEvent("jetpack_product_card_checkout_click",{type:o})}),[o]),T=(0,h.useCallback)((()=>{u.Z.tracks.recordEvent("jetpack_product_card_disclaimer_click",{type:o})}),[o]),A=c()({"jp-product-card":!0,"jp-product-card--has-media":S,"jp-product-card--has-cta":N}),P=c()(["jp-product-card__checkout",`jp-product-card__checkout--${j}`]);return g().createElement("div",{className:A},N&&g().createElement("div",{className:"jp-product-card__cta"},g().createElement(p.Z,{icon:"star"})," ",w),g().createElement("div",{className:"jp-product-card__inner"},!!t&&g().createElement("div",{className:"jp-product-card__icon"},t),g().createElement("h3",{className:"jp-product-card__title"},n),g().createElement("p",{className:"jp-product-card__description"},d),m.length&&g().createElement("ul",{className:"jp-product-card__features"},m.map(((e,t)=>g().createElement("li",{className:"jp-product-card__feature",key:t},g().createElement(p.Z,{icon:"checkmark"}),e)))),g().createElement("div",{className:"jp-product-card__price"},g().createElement(s.Z,{currency:k,price:v,offPrice:_,showNotOffPrice:!!_,legend:E})),g().createElement(a.Z,{agreeButtonLabel:b}),g().createElement(l.Z,{className:P,href:y,onClick:x},b),f&&g().createElement("p",{className:"jp-product-card__disclaimer"},`${f.text} `,g().createElement(i.ExternalLink,{onClick:T,href:f.url,target:"_blank",rel:"noopener noreferrer"},f.link_text))),S&&g().createElement("img",{className:"jp-product-card__media",src:C,alt:(0,r.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 44 | -__("Graphical illustration of product: %s","jetpack"),n)}))};f.propTypes={checkoutText:m().string.isRequired,checkoutUrl:m().string.isRequired,title:m().string.isRequired,price:m().number.isRequired,discountedPrice:m().number,currencyCode:m().string.isRequired,billingDescription:m().string.isRequired,productSlug:m().string.isRequired,description:m().string,features:m().array,disclaimer:m().object,icon:m().element,callToAction:m().string,priority:m().string,illustrationPath:m().string},f.defaultProps={description:"",features:[],priority:"primary",showIllustration:""},t.Z=f},56484:function(e,t,n){"use strict";n.d(t,{e:function(){return m}});var s=n(65736),a=n(97506),i=n(98492),r=n(84069),o=n(99196),c=n.n(o),l=n(59309),p=n(96300),u=n(69508),d=n(50416);const __=s.__,m=(0,l.$j)((e=>({canEditPosts:(0,u.rp)(e),canManageOptions:(0,u.UF)(e),hasConnectedOwner:(0,p.it)(e),isCurrentUserLinked:(0,p.BU)(e),isSiteConnected:(0,p.j8)(e),activeModules:(0,d.Xx)(e),siteConnectionStatus:(0,p.Gz)(e)})))((e=>{const{activeModules:t,canEditPosts:n,canManageOptions:s,hasConnectedOwner:l,isCurrentUserLinked:p,isSiteConnected:u,location:d={pathname:""},siteConnectionStatus:m}=e,{pathname:h}=d,g=["/","/dashboard","/my-plan","/plans"].includes(h)||h.includes("/recommendations"),f=""===h,k=(0,o.useCallback)((()=>{r.Z.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})}),[]),v=(0,o.useCallback)((()=>{r.Z.tracks.recordJetpackClick({target:"masthead",path:"nav_settings"})}),[]);if(f)return null;if(!m)return null;if(h.startsWith("/setup"))return null;if(!n)return null;if("offline"!==m&&!u)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.Z,null,c().createElement(a.Z,{compact:!0,href:"#/dashboard",primary:g&&!f,onClick:k},__("Dashboard","jetpack")),c().createElement(a.Z,{compact:!0,href:"#/settings",primary:!g&&!f,onClick:v},__("Settings","jetpack"))))}))},36795:function(e,t,n){"use strict";var s=n(78868),a=n(84069),i=n(99196),r=n.n(i),o=n(59309),c=n(96300),l=n(69508),p=n(56484);class u extends r().Component{trackLogoClick=()=>{a.Z.tracks.recordJetpackClick({target:"masthead",path:"logo"})};testConnection=()=>this.props.testConnection();render(){const{isWoASite:e,sandboxDomain:t,siteConnectionStatus:n}=this.props,a="offline"===n?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.Z,{className:"jetpack-logo__masthead",height:40})),a,i),e&&r().createElement(p.e,{location:this.props.location})))}}t.Z=(0,o.$j)((e=>({isWoASite:(0,l.Pw)(e),sandboxDomain:(0,c.LN)(e),siteConnectionStatus:(0,c.Gz)(e)})),(e=>({testConnection:()=>e((0,c.SG)())})))(u)},42676:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(2056),c=n(19567),l=n.n(c),p=n(92819),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(91850),f=n.n(g);let k=!1;class v extends h().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:{}};state={overlayMouseDown:!1};componentDidMount(){l()("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),l()(document).keyup(this.handleEscapeKey);try{this.focusTrap=(0,o.v)(f().findDOMNode(this)),this.focusTrap.activate({initialFocus:this.props.initialFocus})}catch(e){}}componentWillUnmount(){l()("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),l()(document).unbind("keyup",this.handleEscapeKey);try{this.focusTrap.deactivate()}catch(e){}}handleEscapeKey=e=>{"Escape"===e.code&&this.maybeClose()};maybeClose=()=>{this.props.onRequestClose&&!k&&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&&!k&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())};handleMouseEventModal=e=>{e.stopPropagation()};render(){let e;const{style:t,className:n,width:s,title:i,...o}=this.props,{forwardedProps:c}=(0,p.omit)(o,"onRequestClose");switch(s){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}const l=(0,p.assign)({},t,e);return h().createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},h().createElement("div",a()({className:r()("dops-modal",n),style:l,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":i},c),this.props.children))}}v.preventClose=function(){k=!0},v.allowClose=function(){k=!1},t.Z=v},39224:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(65235),o=n.n(r),c=n(85733),l=n(25162),p=n.n(l),u=n(99196),d=n.n(u);const __=i.__;class m extends c.zv{static propTypes={moduleName:p().string.isRequired};render(){if(!this.props.moduleName)return null;const e=o()("module-overridden-banner",{"is-compact":this.props.compact});return d().createElement(c.zv,{className:e,title:this.props.moduleName,icon:"cog",description:(0,a.createInterpolateElement)((0,i.sprintf)(/* translators: placeholder is a feature name. */ | |
| 45 | -__("%s has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),this.props.moduleName),{link:d().createElement("a",{href:(0,s.Z)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}t.Z=(0,c.$j)(m)},39031:function(e,t,n){"use strict";n.d(t,{l:function(){return p}});var s=n(65736),a=n(92819),i=n(59309),r=n(96300),o=n(69508),c=n(50416),l=n(3230);const __=s.__;function p(e){return(0,i.$j)(((e,t)=>({validValues:function(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof(0,a.get)(t,["module","module"])&&(s=t.module.module),(0,c.R9)(e,s,n)},getOptionCurrentValue:(t,n)=>(0,c.C5)(e,t,n),getSettingCurrentValue:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,l.$8)(e,t,n,s)},getSiteRoles:()=>(0,o.Td)(e),isUpdating:t=>(0,l.Cu)(e,t),adminEmailAddress:(0,o.je)(e),currentIp:(0,o.de)(e),siteAdminUrl:(0,o.wW)(e),isCurrentUserLinked:(0,r.BU)(e)})),(e=>({updateOptions:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e((0,l.VP)(t,n))},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. */ | |
| 46 | -__("Error regenerating Post by Email address. %s","jetpack"),e)};return e((0,l.VP)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:()=>e((0,l.a6)()),clearUnsavedSettingsFlag:()=>e((0,l._1)()),refreshSettings:()=>e((0,l.wv)())})))(e)}},2353:function(e,t,n){"use strict";n.d(t,{u:function(){return p}});var s=n(82674),a=n.n(s),i=n(39031),r=n(84069),o=n(92819),c=n(99196),l=n.n(c);function p(e){class t extends l().Component{state={options:{}};onOptionChange=e=>{const t=e.target.name;let n;n="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,this.updateFormStateOptionValue(t,n)};updateFormStateOptionValue=(()=>{var e=this;return function(t){"string"==typeof t&&(t={[t]:arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0});const n={...e.state.options,...t};return e.setState({options:n}),!0}})();resetFormStateOption=e=>(this.setState({options:(0,o.omit)(this.state.options,[e])}),!0);updateFormStateModuleOption=(()=>{var e=this;return function(t,n){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.trackSettingsToggle(t,n,!e.getOptionValue(n)),e.getOptionValue(t)?s?e.props.updateOptions({[t]:!1,[n]:!e.getOptionValue(n)}):e.props.updateOptions({[n]:!e.getOptionValue(n)}):e.props.updateOptions({[t]:!0,[n]:!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,n)=>{n=n.replace(/\-/,"_"),e[n]=t})),this.trackFormSubmission(e),this.setState({options:{}})})).then((()=>{this.props.refreshSettings(),this.props.clearUnsavedSettingsFlag()}))};getOptionValue=(()=>{var e=this;return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,o.get)(e.state.options,t,e.props.getSettingCurrentValue(t,n,s))}})();shouldSaveButtonBeDisabled=()=>this.isSavingAnyOption()||!this.isDirty();isDirty=()=>!!Object.keys(this.state.options).length;isSavingAnyOption=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.props.isUpdating(t)}})();trackFormSubmission=e=>{r.Z.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)};trackSettingsToggle=(e,t,n)=>{r.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})};render(){return l().createElement(e,a()({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty,resetFormStateOption:this.resetFormStateOption},this.props))}}return(0,i.l)(t)}},5004:function(e,t,n){"use strict";n.d(t,{T:function(){return g}});var s=n(6895),a=n(48229),i=n(69307),r=n(65736),o=n(84069),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(59309),m=n(50416);const __=r.__;class h extends p.Component{static displayName="ModuleToggle";static propTypes={toggleModule:l().func,activated:l().bool,disabled:l().bool,className:l().string,compact:l().bool,id:l().string,overrideCondition:l().string};static defaultProps={activated:!1,disabled:!1,overrideCondition:""};toggleModule=()=>(this.trackModuleToggle(this.props.slug,this.props.activated),this.props.toggleModule(this.props.slug,this.props.activated));trackModuleToggle=(e,t)=>{"stats"!==e&&o.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})};isDisabledByOverride=()=>{const e=this.props.getModuleOverride(this.props.slug);return this.props.overrideCondition?this.props.overrideCondition===e:!!e};getDisabledReason=()=>{if(!this.isDisabledByOverride())return null;const e=this.props.getModuleOverride(this.props.slug),t={link:u().createElement("a",{href:(0,s.Z)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}})};switch(e){case"active":return(0,i.createInterpolateElement)(__("This feature has been enabled by a site administrator. <link>Learn more</link>.","jetpack"),t);case"inactive":return(0,i.createInterpolateElement)(__("This feature has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),t);default:return(0,i.createInterpolateElement)(__("This feature is being managed by a site administrator. <link>Learn more</link>.","jetpack"),t)}};render(){return u().createElement(a.Z,{checked:this.props.activated||this.props.isModuleActivated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled||this.isDisabledByOverride(),onChange:this.toggleModule,help:this.getDisabledReason(),label:this.props.children})}}const g=(0,d.$j)((e=>({getModuleOverride:t=>(0,m.Qy)(e,t)})))(h)},86138:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var s=n(99196),a=n.n(s);const i=a().createElement("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0862 0.22949C10.7536 -0.0764963 10.2464 -0.0764967 9.9138 0.229489L7.7667 2.20503C7.59755 2.36066 7.37497 2.44281 7.14676 2.43386L4.24981 2.32013C3.80111 2.30252 3.41252 2.63319 3.35171 3.08438L2.95909 5.99736C2.92816 6.22684 2.80973 6.43486 2.62923 6.57677L0.337958 8.37807C-0.0169309 8.65707 -0.105018 9.1637 0.134374 9.54896L1.67996 12.0364C1.80172 12.2323 1.84285 12.4689 1.79452 12.6952L1.18104 15.5687C1.08602 16.0138 1.33965 16.4593 1.76723 16.5984L4.52782 17.4963C4.7453 17.5671 4.92675 17.7215 5.03321 17.9264L6.38456 20.5275C6.59387 20.9304 7.07055 21.1064 7.48625 20.9342L10.1701 19.8225C10.3816 19.7349 10.6184 19.7349 10.8299 19.8225L13.5137 20.9342C13.9294 21.1064 14.4061 20.9304 14.6154 20.5275L15.9668 17.9264C16.0733 17.7215 16.2547 17.5671 16.4722 17.4963L19.2328 16.5984C19.6603 16.4593 19.914 16.0138 19.819 15.5687L19.2055 12.6953C19.1572 12.4689 19.1983 12.2323 19.32 12.0364L20.8656 9.54896C21.105 9.1637 21.0169 8.65707 20.662 8.37807L18.3708 6.57677C18.1903 6.43486 18.0718 6.22684 18.0409 5.99736L17.6483 3.08438C17.5875 2.63319 17.1989 2.30252 16.7502 2.32013L13.8532 2.43386C13.625 2.44281 13.4024 2.36066 13.2333 2.20503L11.0862 0.22949ZM8.76611 14H7.15771V9.11328H7.07422L5.54492 10.146V8.75732L7.15771 7.65869H8.76611V14ZM14.2072 14H12.6823V12.9189H9.56662V11.7017C10.3401 10.2822 11.1443 8.95068 11.966 7.65869H14.2072V11.6621H14.9983V12.9189H14.2072V14ZM10.9641 11.6401V11.7192H12.7219V8.81006H12.6428C12.0759 9.69336 11.4738 10.6865 10.9641 11.6401Z",fill:"black"}))},23609:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var s=n(25162),a=n.n(s),i=n(99196),r=n.n(i),o=n(86138);const c=e=>{let{text:t}=e;return r().createElement("div",{className:"jetpack-money-back-guarantee"},r().createElement("div",{className:"jetpack-money-back-guarantee__icon"},o.B),r().createElement("div",{className:"jetpack-money-back-guarantee__text"},t))};c.propTypes={text:a().string.isRequired}},54265:function(e,t,n){"use strict";var s=n(65736),a=n(7679),i=n(11677),r=n(24399),o=n(21675),c=n(56923),l=n(51128),p=n.n(l),u=n(84069),d=n(92819),m=n(25162),h=n.n(m),g=n(99196),f=n.n(g),k=n(59309),v=n(44498),_=n(96300),E=n(69508),w=n(50416),b=n(89292),y=n(61372);const __=s.__,_x=s._x,j=p()("calypso:url-search");class C extends f().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 n="#"+t[0]+(e?"?term="+e:"");j("search posts for:",e),j("setting URL: "+n),window.location.href=n};onRouteChange=e=>{const t=(e.search||"").substr(1).split("&").filter((e=>0===e.indexOf("term=")));let n="";t.length>0&&(n=t[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(n))};maybeShowSearch(){if(this.props.userCanManageModules)return f().createElement(i.Z,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:__("Search for a Jetpack feature.","jetpack"),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})}trackNavClick(e){u.Z.tracks.recordJetpackClick({target:"nav_item",path:e})}handleClickForTracking(e){return()=>this.trackNavClick(e)}render(){let e,t,n;return this.props.userCanManageModules?e=f().createElement(c.Z,{selectedText:this.props.routeName},this.props.hasAnySecurityFeature&&f().createElement(o.Z,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.location.pathname||"/settings"===this.props.location.pathname},_x("Security","Navigation item.","jetpack")),this.props.hasAnyPerformanceFeature&&f().createElement(o.Z,{path:"#performance",onClick:this.handleClickForTracking("performance"),selected:"/performance"===this.props.location.pathname},_x("Performance","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["masterbar","markdown","custom-content-types","post-by-email","infinite-scroll","copy-post"])&&f().createElement(o.Z,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["publicize","sharedaddy","likes"])&&f().createElement(o.Z,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname},_x("Sharing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["comments","gravatar-hovercards","markdown"])&&f().createElement(o.Z,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.location.pathname},_x("Discussion","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["seo-tools","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&f().createElement(o.Z,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.location.pathname},_x("Traffic","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["subscriptions"])&&f().createElement(o.Z,{path:"#newsletter",onClick:this.handleClickForTracking("newsletter"),selected:"/newsletter"===this.props.location.pathname},_x("Newsletter","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["wordads"])&&f().createElement(o.Z,{path:"#earn",onClick:this.handleClickForTracking("earn"),selected:"/earn"===this.props.location.pathname},_x("Monetize","Navigation item.","jetpack"))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["publicize"])&&f().createElement(o.Z,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname||"/settings"===this.props.location.pathname},_x("Sharing","Navigation item.","jetpack")):"",n=this.props.isModuleActivated("post-by-email")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["post-by-email"])&&f().createElement(o.Z,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")):"",e=f().createElement(c.Z,{selectedText:this.props.routeName},n,t)),f().createElement("div",{id:"jp-navigation",className:"dops-navigation"},f().createElement(a.Z,null),f().createElement(r.Z,{selectedText:this.props.routeName},e,this.maybeShowSearch()))}}C.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},C.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:d.noop,searchHasFocus:!1},t.Z=(0,k.$j)((e=>({hasAnyOfTheseModules:t=>(0,w.og)(e,t),hasAnyPerformanceFeature:(0,w.zc)(e),hasAnySecurityFeature:(0,w.Su)(e),userCanManageModules:(0,E.pK)(e),isSubscriber:(0,E.dc)(e),userCanPublish:(0,E.D6)(e),isLinked:(0,_.BU)(e),isSiteConnected:(0,_.q7)(e),isModuleActivated:t=>(0,w.mp)(e,t),moduleList:(0,w.hU)(e),isPluginActive:t=>(0,y.TB)(e,t),searchTerm:(0,b.He)(e)})),(e=>({searchForTerm:t=>e((0,b.eb)(t))})))((0,v.EN)(C))},32977:function(e,t,n){"use strict";var s=n(6895),a=n(69307),i=n(65736),r=n(65235),o=n.n(r),c=n(24399),l=n(21675),p=n(56923),u=n(84069),d=n(25162),m=n.n(d),h=n(99196),g=n.n(h),f=n(59309),k=n(44498),v=n(96300),_=n(69508),E=n(50416),w=n(8722);const _x=i._x;class b extends g().Component{trackNavClick=e=>{u.Z.tracks.recordJetpackClick({target:"nav_item",path:e})};trackNewRecommendations=()=>{this.props.newRecommendationsCount>0&&!this.props.location.pathname.startsWith("/recommendations")&&u.Z.tracks.recordEvent("jetpack_recommendations_new_recommendation_bubble_visible",{path:this.props.location.pathname})};trackDashboardClick=()=>{this.trackNavClick("dashboard")};trackMyPlanClick=()=>{this.trackNavClick("my-plan")};trackPlansClick=()=>{this.trackNavClick("plans")};trackRecommendationsClick=()=>{const e=this.props.newRecommendationsCount>0;u.Z.tracks.recordJetpackClick({target:"nav_item",path:"recommendations",is_new_recommendations_bubble_visible:e})};componentDidMount(){this.trackNewRecommendations()}render(){let e;const t=(0,s.Z)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-site-only-plans",{site:this.props.siteUrl,...this.props.purchaseToken?{query:`purchasetoken=${this.props.purchaseToken}`}:{}});return e=this.props.userCanManageModules?g().createElement(p.Z,{selectedText:this.props.routeName},g().createElement(l.Z,{path:"#/dashboard",onClick:this.trackDashboardClick,selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},_x("At a Glance","Navigation item.","jetpack")),!this.props.isOfflineMode&&this.props.isLinked&&g().createElement(l.Z,{path:"#/my-plan",onClick:this.trackMyPlanClick,selected:"/my-plan"===this.props.location.pathname},_x("My Plan","Navigation item.","jetpack")),!this.props.isOfflineMode&&g().createElement(l.Z,{isExternalLink:!0,path:t,onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname},_x("Plans","Navigation item.","jetpack")),this.props.showRecommendations&&g().createElement(l.Z,{path:"#/recommendations",onClick:this.trackRecommendationsClick,selected:this.props.location.pathname.startsWith("/recommendations")},(0,a.createInterpolateElement)((0,i.sprintf)(/* translators: %d is a count of how many new (unread) recommendations are available. */ | |
| 47 | -_x("Recommendations <count>%d</count>","Navigation item.","jetpack"),this.props.newRecommendationsCount),{count:g().createElement("span",{className:o()("dops-section-nav-tab__update-badge",{"is-hidden":this.props.location.pathname.startsWith("/recommendations")||!this.props.newRecommendationsCount})})}))):g().createElement(p.Z,{selectedText:this.props.routeName},g().createElement(l.Z,{path:"#/dashboard",selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},_x("At a Glance","Navigation item.","jetpack"))),g().createElement("div",{id:"jp-navigation",className:"dops-navigation"},g().createElement(c.Z,{selectedText:this.props.routeName},e))}}b.propTypes={routeName:m().string.isRequired,isOfflineMode:m().bool},t.Z=(0,f.$j)((e=>({userCanManageModules:(0,_.pK)(e),userCanViewStats:(0,_.px)(e),isModuleActivated:t=>(0,E.mp)(e,t),isOfflineMode:(0,v.Ex)(e),isLinked:(0,v.BU)(e),hasConnectedOwner:(0,v.it)(e),showRecommendations:(0,_.mb)(e),newRecommendationsCount:(0,w.dU)(e),siteUrl:(0,_.JR)(e),purchaseToken:(0,_.as)(e)})))((0,k.EN)(b))},14241:function(e,t,n){"use strict";var s=n(36288),a=n(25162),i=n.n(a),r=n(99196),o=n.n(r),c=n(59309),l=n(49517),p=n(96300),u=n(69508),d=n(50416);class m extends o().Component{shouldComponentUpdate(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.location.pathname!==this.props.location.pathname}renderMainContent=e=>{let t;switch(e){case"/dashboard":default:this.props.history.replace("/dashboard"),t=o().createElement(s.Z,this.props);break;case"/settings":case"/writing":case"/sharing":case"/performance":this.props.isSubscriber||(t=o().createElement(l.Z,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,userCanManageModules:this.props.userCanManageModules}))}return window.wpNavMenuClassChange(),o().createElement("div",null,t)};render(){return this.renderMainContent(this.props.location.pathname)}}m.propTypes={userCanViewStats:i().bool.isRequired,isSubscriber:i().bool.isRequired,siteConnectionStatus:i().any.isRequired},t.Z=(0,c.$j)((e=>({userCanViewStats:(0,u.px)(e),siteConnectionStatus:(0,p.Gz)(e),isSubscriber:(0,u.dc)(e),isModuleActivated:t=>(0,d.mp)(e,t),userCanManageModules:(0,u.pK)(e)})))(m)},71668:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(65235),a=n.n(s),i=n(5060),r=n(92819),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(3915);class d extends p().Component{static displayName="SimpleNotice";static defaultProps={duration:0,status:null,showDismiss:!0,className:"",onDismissClick:r.noop,display:!0};static propTypes={status:c().string,showDismiss:c().bool,isCompact:c().bool,duration:c().number,text:c().oneOfType([c().oneOfType([c().string,c().node]),c().arrayOf(c().oneOfType([c().string,c().node]))]),icon:c().string,onDismissClick:c().func,className:c().string,display:c().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:n,isCompact:s,onDismissClick:r,showDismiss:o=!s,status:c,text:l,dismissText:d,display:m}=this.props,h=a()("dops-notice",c,t,{"is-compact":s,"is-dismissable":o,"is-hidden":!m});return p().createElement("div",{className:h},p().createElement("span",{className:"dops-notice__icon-wrapper"},p().createElement(i.Z,{className:"dops-notice__icon",icon:n||this.getIcon(),size:24})),p().createElement("span",{className:"dops-notice__content"},p().createElement("span",{className:"dops-notice__text"},l?this.clearText(l):e)),l?e:null,o&&p().createElement("span",{role:"button",onKeyDown:(0,u.Z)(r),tabIndex:"0",className:"dops-notice__dismiss",onClick:r},p().createElement(i.Z,{icon:"cross",size:24}),p().createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},d)))}}},52099:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var s=n(5060),a=n(25162),i=n.n(a),r=n(99196),o=n.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.Z,{icon:this.props.icon,size:24}),this.props.external&&o().createElement(s.Z,{icon:"external",size:24}))}}},53234:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(80800),a=n(59584),i=n(25162),r=n.n(i),o=n(99196),c=n.n(o);const l={[a._dN]:"plans/wpcom-free.svg",[a.syR]:"plans/wpcom-personal.svg",[a.Qm2]:"plans/wpcom-personal.svg",[a.TID]:"plans/wpcom-personal.svg",[a.wmd]:"plans/wpcom-personal.svg",[a.pd0]:"plans/wpcom-personal.svg",[a.xfZ]:"plans/wpcom-premium.svg",[a.G6C]:"plans/wpcom-premium.svg",[a._BF]:"plans/wpcom-premium.svg",[a.OEg]:"plans/wpcom-premium.svg",[a.p7x]:"plans/wpcom-business.svg",[a.j2d]:"plans/wpcom-business.svg",[a.hhG]:"plans/wpcom-business.svg",[a.Wgk]:"plans/wpcom-business.svg",[a.sqC]:"plans/wpcom-business.svg",[a.f$H]:"plans/wpcom-business.svg",[a.$Kn]:"plans/wpcom-business.svg",[a.fDC]:"plans/wpcom-business.svg",[a.JA7]:"plans/wpcom-ecommerce.svg",[a.f3A]:"plans/wpcom-ecommerce.svg",[a.A3l]:"plans/wpcom-ecommerce.svg",[a.lv]:"plans/wpcom-ecommerce.svg",[a.EcK]:"plans/wpcom-ecommerce.svg",[a.TBc]:"plans/wpcom-ecommerce.svg",[a.e9K]:"plans/wpcom-ecommerce.svg",[a.Pte]:"plans/wpcom-ecommerce.svg",[a.vQF]:"plans/wpcom-ecommerce.svg",[a.uzL]:"plans/wpcom-ecommerce.svg",[a.Ijo]:"products/product-jetpack-search.svg",[a.unl]:"products/product-jetpack-search.svg",[a.ZRv]:"products/product-jetpack-backup.svg",[a.hI$]:"products/product-jetpack-backup.svg",[a.Ba4]:"products/product-jetpack-backup.svg",[a.tVY]:"products/product-jetpack-backup.svg",[a.XLA]:"products/product-jetpack-backup.svg",[a.LAg]:"products/product-jetpack-backup.svg",[a.UsJ]:"products/product-jetpack-backup.svg",[a.Yq$]:"products/product-jetpack-scan.svg",[a.WSn]:"products/product-jetpack-scan.svg",[a.tlC]:"products/product-jetpack-scan.svg",[a.INL]:"products/product-jetpack-anti-spam.svg",[a.shc]:"products/product-jetpack-anti-spam.svg",[a.vSC]:"products/product-jetpack-anti-spam.svg",[a.Q1Y]:"products/product-jetpack-search.svg",[a.dWz]:"products/product-jetpack-search.svg",[a.YN_]:"products/product-jetpack-search.svg",[a.uxe]:"products/product-jetpack-search.svg",[a.ljz]:"plans/jetpack.svg",[a.apc]:"plans/jetpack.svg",[a.nsL]:"plans/jetpack.svg",[a.Xzm]:"plans/jetpack.svg",[a.p2b]:"plans/jetpack.svg",[a.NJq]:"plans/jetpack.svg",[a.yYZ]:"plans/jetpack.svg",[a.WjF]:"plans/jetpack.svg",[a.Rw2]:"plans/jetpack.svg",[a.ns9]:"plans/jetpack.svg",[a.Etl]:"plans/jetpack.svg",[a.Cb]:"plans/jetpack.svg",[a.s1w]:"plans/jetpack.svg",[a.aSV]:"plans/jetpack.svg",[a.iPR]:"plans/jetpack.svg",[a.th6]:"plans/jetpack.svg",[a.JX4]:"plans/jetpack.svg",[a.FLw]:"products/product-jetpack-videopress.svg",[a.v_I]:"products/product-jetpack-videopress.svg",[a.Bi]:"products/product-jetpack-videopress.svg",[a.vKQ]:"products/product-jetpack-social.svg",[a.eld]:"products/product-jetpack-social.svg",[a.k31]:"products/product-jetpack-social.svg",[a.lF9]:"products/product-jetpack-social.svg",[a.vbP]:"products/product-jetpack-social.svg",[a.k2r]:"products/product-jetpack-social.svg",[a.ko$]:"plans/jetpack-golden-token.svg",[a.O3V]:"plans/jetpack.svg",[a.PuQ]:"plans/jetpack.svg",[a.FSp]:"plans/jetpack.svg",[a._dE]:"products/product-jetpack-backup.svg",[a.icM]:"products/product-jetpack-backup.svg",[a.sTY]:"products/product-jetpack-backup.svg",[a.$Po]:"products/product-jetpack-backup.svg",[a.VlB]:"plans/jetpack.svg",[a.DlI]:"plans/jetpack.svg",[a.jIY]:"plans/jetpack.svg",[a.G$d]:"plans/jetpack.svg",[a.Mzu]:"products/product-jetpack-boost.svg",[a.qnt]:"products/product-jetpack-boost.svg",[a.C7d]:"products/product-jetpack-boost.svg",[a.Dgm]:"products/product-jetpack-ai.svg",[a.yWn]:"products/product-jetpack-ai.svg",[a.our]:"products/product-jetpack-ai.svg",[a.nE6]:"products/product-jetpack-stats.svg",[a.JEv]:"products/product-jetpack-stats.svg",[a.JBA]:"products/product-jetpack-stats.svg",[a.Guz]:"products/product-jetpack-stats.svg",[a.j2v]:"products/product-jetpack-stats.svg"};class p extends o.Component{render(){const{className:e,alt:t,plan:n}=this.props;return c().createElement("img",{className:e,src:s.hp+l[n],width:32,height:32,alt:t||""})}}p.propTypes={classNames:r().string,alt:r().string,plan:r().oneOf([a._dN,a.syR,a.Qm2,a.TID,a.wmd,a.pd0,a.xfZ,a.G6C,a._BF,a.OEg,a.p7x,a.j2d,a.hhG,a.Wgk,a.JA7,a.f3A,a.A3l,a.lv,a.uzL,a.Ijo,a.unl,a.ZRv,a.hI$,a.tVY,a.Ba4,a.XLA,a.LAg,a.UsJ,a.Yq$,a.WSn,a.tlC,a.INL,a.shc,a.vSC,a.Q1Y,a.dWz,a.YN_,a.uxe,a.ljz,a.apc,a.nsL,a.Xzm,a.p2b,a.NJq,a.yYZ,a.WjF,a.Rw2,a.ns9,a.Etl,a.Cb,a.s1w,a.aSV,a.iPR,a.th6,a.JX4,a.FLw,a.v_I,a.Bi,a.vKQ,a.eld,a.k31,a.lF9,a.vbP,a.k2r,a.ko$,a.O3V,a.PuQ,a.FSp,a._dE,a.icM,a.sTY,a.$Po,a.VlB,a.DlI,a.jIY,a.G$d,a.FLw,a.v_I,a.Bi,a.nE6,a.JEv,a.JBA,a.Guz,a.j2v]).isRequired}},88154:function(e,t,n){"use strict";var s=n(87553),a=n(81114),i=n(25162),r=n.n(i);const o=e=>{let{installOrActivatePrompt:t,pluginLink:n,pluginName:i,pluginSlug:r,pluginFiles:o}=e;return React.createElement("div",{className:"plugin-dash-item"},React.createElement(a.Z,{className:"plugin-dash-item__section-header",label:i}),React.createElement(s.Z,{pluginName:i,pluginSlug:r,pluginLink:n,pluginFiles:o,installOrActivatePrompt:t}))};o.propTypes={pluginName:r().string.isRequired,pluginFiles:r().arrayOf(r().string).isRequired,pluginSlug:r().string.isRequired,pluginLink:r().string.isRequired,installOrActivatePrompt:r().element.isRequired},t.Z=o},87553:function(e,t,n){"use strict";var s=n(64743),a=n(55609),i=n(65736),r=n(85799),o=n(85733),c=n(84069),l=n(99196),p=n(59309),u=n(61372);const __=i.__;t.Z=(0,p.$j)(((e,t)=>{let{pluginFiles:n}=t;return{isFetchingPluginsData:(0,u.vz)(e),aPluginIsInstalled:n.some((t=>(0,u.P8)(e,t))),aPluginIsActive:n.some((t=>(0,u.TB)(e,t)))}}),(e=>({fetchPluginsData:()=>e((0,u.s4)())})))((e=>{let{fetchPluginsData:t,isFetchingPluginsData:n,aPluginIsActive:p,aPluginIsInstalled:u,pluginName:d,pluginSlug:m,pluginLink:h,installOrActivatePrompt:g,installedPrompt:f}=e;const[k,v]=(0,l.useState)(!1),[_,E]=(0,l.useState)(!1),w=(0,l.useCallback)((()=>{if(u)if(p){if(u&&p)return Promise.resolve()}else v(!0);else E(!0);return c.Z.tracks.recordJetpackClick({target:"plugin_dash_item",type:u?"install":"activate",feature:m}),s.ZP.installPlugin(m,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>t())).finally((()=>{v(!1),E(!1)}))}),[t,p,u,m]);return n?React.createElement(r.Z,{className:"plugin-dash-item__content"},React.createElement("p",null,__("Loading…","jetpack"))):_?React.createElement(r.Z,{className:"plugin-dash-item__content"},React.createElement(a.Spinner,null),React.createElement("p",null,(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ | |
| 48 | -__("Installing %s","jetpack"),d))):k?React.createElement(r.Z,{className:"plugin-dash-item__content"},React.createElement(a.Spinner,null),React.createElement("p",null,(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ | |
| 49 | -__("Activating %s","jetpack"),d))):u?p?React.createElement(o.ZP,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ | |
| 50 | -__("Manage %s","jetpack"),d),title:f??__("Plugin is installed & active.","jetpack"),href:h,noIcon:!0}):React.createElement(o.ZP,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ | |
| 51 | -__("Activate %s","jetpack"),d),title:g,onClick:w,noIcon:!0}):React.createElement(o.ZP,{callToAction:(0,i.sprintf)(/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */ | |
| 52 | -__("Install %s","jetpack"),d),title:g,onClick:w,noIcon:!0})}))},28402:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(29494),r=n.n(i),o=n(40616),c=n(51128),l=n.n(c),p=n(92819),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(91850),f=n.n(g),k=n(98355);const v=()=>{},_=l()("calypso:popover"),E=new Set;class w extends m.Component{static propTypes={autoPosition:d().bool,className:d().string,closeOnEsc:d().bool,id:d().string,ignoreContext:d().shape({getDOMNode:d().function}),position:d().string,rootClassName:d().string,showDelay:d().number,onClose:d().func.isRequired,onShow:d().func};static defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:v};constructor(e){super(e),this.setPopoverId(e.id),this.setDOMBehavior=this.setDOMBehavior.bind(this),this.setPosition=this.setPosition.bind(this),this.onClickout=this.onClickout.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onWindowChange=this.onWindowChange.bind(this),this.state={show:e.isVisible,left:-99999,top:-99999,positionClass:this.getPositionClass(e.position)}}componentDidMount(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,k.fN)()}UNSAFE_componentWillReceiveProps(e){if((0,k.kK)(e.context)?this.domContext=e.context:this.domContext=f().findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}componentDidUpdate(e){const{isVisible:t}=this.props;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after render completes"),void setTimeout((()=>this.setPosition()),0)):null}componentWillUnmount(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,k.zR)(),E.delete(this.id),_("current popover instances: ",E.size)}bindEscKeyListener(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}unbindEscKeyListener(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}onKeydown(e){if(27!==e.keyCode)return null;this.close(!0)}bindClickoutHandler(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),this._clickoutHandlerReference=t=>{e.contains(t.target)||this.onClickout(t)},void document.addEventListener("click",this._clickoutHandlerReference,!0)):(this.debug("no element to bind clickout side "),null)}unbindClickoutHandler(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),document.removeEventListener("click",this._clickoutHandlerReference,!0),this._clickoutHandlerReference=null)}onClickout(e){let t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){const n=f().findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}bindDebouncedReposition(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}unbindDebouncedReposition(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}onWindowChange(){this.willReposition=window.requestAnimationFrame(this.setPosition)}setDOMBehavior(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,k.kK)(this.props.context)?this.domContext=this.props.context:this.domContext=f().findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}getPositionClass(){return`is-${(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position).replace(/\s+/g,"-")}`}computePosition(){if(!this.props.isVisible)return null;const{domContainer:e,domContext:t}=this,{position:n}=this.props;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;let s=n;this.debug("position: %o",n),this.props.autoPosition&&(s=(0,k.X6)(n,e,t),this.debug("suggested position: %o",s));const a=(0,p.assign)({},(0,k.Ou)((0,k.cv)(s,e,t),e),{positionClass:this.getPositionClass(s)});return this.debug("updating reposition: ",a),a}debug(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];_(`[%s] ${e}`,this.id,...n)}setPopoverId(e){this.id=e||`pop__${r()(16)}`,E.add(this.id),this.debug("creating ..."),_("current popover instances: ",E.size)}setPosition(){const e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}getStylePosition(){const{left:e,top:t}=this.state;return{left:e,top:t}}show(){if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",`${this.props.showDelay}ms`),this.clearShowTimer(),this._openDelayTimer=setTimeout((()=>{this.setState({show:!0})}),this.props.showDelay)}hide(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}clearShowTimer(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}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=a()("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),h().createElement(o.Z,{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)))}}t.Z=w},98355:function(e,t,n){"use strict";n.d(t,{Ou:function(){return k},X6:function(){return g},cv:function(){return f},fN:function(){return m},kK:function(){return v},zR:function(){return h}});var s=n(16163),a=n.n(s),i=n(51128);const r=n.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 u(){p=o()}let d=!1;const m=()=>{if(d)return r("window events already bound");d=!0,r("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",u,!0),window.addEventListener("scroll",u,!0)},h=()=>{if(!d)return r("window events are not bound");d=!1,r("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",u,!0),window.removeEventListener("scroll",u,!0)},g=(e,t,n)=>{const s=a()(n),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},u=e.split(/\s+/),[d]=u;let[,m]=u;const h=function(e,t){const n=[e,c[e],l[e],c[l[e]]];let s,a=-1/0;for(let i=0,r=n.length;i<r;i++){const r=n[i],o=t[r];if(o>0)return r;o>a&&(a=o,s=e)}return s}(d,o);return m!==h&&m!==c[h]||(m=null),function(e,t,n,s,a,i){const r=t?[e+" "+t,e,e+" "+c[t]]:[e,e+" "+l[e],e+" "+c[l[e]]];let o,u=0;const d=a*i;for(let e=0,t=r.length;e<t;e++){const t=r[e],c=f(t,n,s),l=c.left+a,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,a)*h;if(g===d)return t;g>u&&(u=g,o=t)}return o}(h,m,t,n,r,i)||e};function f(e,t,n){const s=a()(t);if(!s)throw new Error("could not get bounding client rect of Tip element");const i=s.width,r=s.height,o=a()(n);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 n=t.body||t.getElementsByTagName("body")[0],s=t.documentElement||n.parentNode,a=s.clientTop||n.clientTop||0,i=s.clientLeft||n.clientLeft||0,r=window.pageYOffset||s.scrollTop,o=window.pageXOffset||s.scrollLeft;return{top:e.top+r-a,left:e.left+o-i}}(o,document);if(!p)throw new Error("could not determine page offset of `target`");let u={};switch(e){case"top":u={top:p.top-r,left:p.left+c/2-i/2};break;case"bottom":u={top:p.top+l,left:p.left+c/2-i/2};break;case"right":u={top:p.top+l/2-r/2,left:p.left+c};break;case"left":u={top:p.top+l/2-r/2,left:p.left-i};break;case"top left":u={top:p.top-r,left:p.left+c/2-i+15};break;case"top right":u={top:p.top-r,left:p.left+c/2-15};break;case"bottom left":u={top:p.top+l,left:p.left+c/2-i+15};break;case"bottom right":u={top:p.top+l,left:p.left+c/2-15};break;case"left top":u={top:p.top+l/2-r,left:p.left-i};break;case"left bottom":u={top:p.top+l/2,left:p.left-i};break;case"right top":u={top:p.top+l/2-r,left:p.left+c};break;case"right bottom":u={top:p.top+l/2,left:p.left+c};break;default:throw new Error(`invalid position "${e}"`)}return u}const k=function(e,t){const n=a()(t).width;return e.left=Math.max(0,Math.min(e.left,p.width-n)),e},v=e=>{try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}},30420:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var s=n(65736),a=n(99196),i=n.n(a);const __=s.__,_x=s._x,r=e=>{let{type:t}=e;return"product-expired"===t?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"===t?" never-expires":"")},i().createElement("span",{className:"jp-product-activated-label__text"},"never-expires"===t?_x("Never expires","Label for a subscription that never expires","jetpack"):_x("Subscription active","Label for an active subscription","jetpack")))}},38833:function(e,t,n){"use strict";var s=n(6895),a=n(55609),i=n(69771),r=n(69307),o=n(65736),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p);const __=o.__;class d extends u().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:n,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. */ | |
| 53 | -__("Gifted on %s.","jetpack"),(0,i.dateI18n)(c,e)):null}if(!e||n){const e=new Date(t);return"Invalid Date"!==e.toString()?(0,o.sprintf)(/* translators: placeholder is a date. */ | |
| 54 | -__("Purchased on %s.","jetpack"),(0,i.dateI18n)(c,e)):null}const d=new Date(e),m=p;return"Invalid Date"===d.toString()?null:(0,i.isInTheFuture)(d)?(0,o.sprintf)(/* translators: placeholder is a date. */ | |
| 55 | -__("Renews on %s.","jetpack"),(0,i.dateI18n)(c,d)):(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %d is a count of how many new (unread) recommendations are available. */ | |
| 56 | -__("<span>Expired on %s.</span> <renewLink />","jetpack"),(0,i.dateI18n)(c,d)),{span:u().createElement("span",{className:"my-plan-card__expired"}),renewLink:u().createElement("span",{className:"my-plan-card__renew"},u().createElement(a.ExternalLink,{href:(0,s.Z)("jetpack-subscription-renew",{path:m}),className:"my-plan-card__renew"},__("Renew subscription","jetpack")))})}}t.Z=d},86799:function(e,t,n){"use strict";var s=n(51045),a=n(65736),i=n(97506),r=n(85799),o=n(41549),c=n(42676),l=n(84069),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d),h=n(59309),g=n(51975),f=n(96300);const __=a.__,_x=a._x;function k(e){const{show:t,onHide:n,isSiteConnected:a,isReconnectingSite:o,beforeReconnectSite:p,initiateUserConnection:u,reconnectFailed:h,clickReconnectSite:g}=e,f=(0,d.useCallback)((()=>t&&a&&!o),[t,a,o]),k=(0,d.useCallback)((()=>{n&&n()}),[n]),{restoreConnection:v}=(0,s.Z)(),_=(0,d.useCallback)((e=>{e.preventDefault(),l.Z.tracks.recordJetpackClick("confirm_reconnect_modal"),p(),v(!1).then((e=>{"in_progress"===e.status&&u(e.authorizeUrl)})).catch((e=>h(e))),k()}),[p,u,h,v,k]);return f()&&m().createElement(c.Z,{className:"reconnect__modal",onRequestClose:k},m().createElement(r.Z,{className:"reconnect__modal__body"},m().createElement("h2",null,__("Reconnect Jetpack","jetpack")),m().createElement("h4",null,__("You’ve clicked a link to restore your Jetpack connection.","jetpack")),m().createElement("h4",null,m().createElement("strong",null,__("You should only do this if advised by Site Health tests or Jetpack Support.","jetpack"))),m().createElement("h4",null,__("Click below to reconnect Jetpack","jetpack")),m().createElement("div",{className:"reconnect__modal-actions"},m().createElement(i.Z,{className:"reconnect__modal-cancel",onClick:k},_x("Cancel","A caption for a button to cancel an action.","jetpack")),m().createElement(i.Z,{className:"reconnect__modal-reconnect",onClick:g||_,primary:!0},_x("Reconnect Jetpack","A caption for a button to reconnect Jetpack.","jetpack")))))}k.displayName="ReconnectModal",k.propTypes={show:u().bool,onHide:u().func,clickReconnectSite:u().func},k.defaultProps={show:!1},t.Z=(0,h.$j)((e=>({isSiteConnected:(0,f.q7)(e),isReconnectingSite:(0,f.O_)(e)})),(e=>({beforeReconnectSite:()=>{e({type:g.bGw}),e((0,o.iI)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:g.dDV}),e({type:g.hmP,connectUrl:t}),e((0,f.bL)())},reconnectFailed:t=>{e({type:g.B9W,error:t}),e((0,o.qq)("reconnect-jetpack")),e((0,o.iI)("is-error",(0,a.sprintf)(/* translators: placeholder is the error. */ | |
| 57 | -__("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}})))(k)},40616:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var s=n(69307),a=n(25162),i=n.n(a),r=n(99196),o=n.n(r),c=n(59309);class l extends o().Component{static displayName="RootChild";static propTypes={children:i().node};static contextTypes={store:i().object};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.zt,{store:this.context.store},e)),this.containerRoot.render(e)};render(){return null}}},11677:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(2816),r=n(65235),o=n.n(r),c=n(5060),l=n(84069),p=n(92819),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(91850),f=n.n(g);function k(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}class v extends h().Component{static displayName="Search";static instances=0;static propTypes={additionalClasses:d().string,initialValue:d().string,placeholder:d().string,pinned:d().bool,delaySearch:d().bool,delayTimeout:d().number,onSearch:d().func.isRequired,onSearchChange:d().func,onSearchOpen:d().func,onSearchClose:d().func,analyticsGroup:d().string,overlayStyling:d().func,autoFocus:d().bool,disabled:d().bool,onKeyDown:d().func,onClick:d().func,disableAutocorrect:d().bool,onBlur:d().func,searching:d().bool,isOpen:d().bool,dir:d().oneOf(["ltr","rtl"]),fitsContainer:d().bool,maxLength:d().number,hideClose:d().bool};static defaultProps={pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:p.noop,onSearchOpen:p.noop,onSearchClose:p.noop,onKeyDown:p.noop,onClick:p.noop,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1};state={keyword:this.props.initialValue||"",isOpen:!!this.props.isOpen,hasFocus:!1};UNSAFE_componentWillMount(){this.setState({instanceId:++v.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,p.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch),e.isOpen&&this.setState({isOpen:e.isOpen}),e.initialValue===this.props.initialValue||this.state.keyword!==this.props.initialValue&&""!==this.state.keyword||this.setState({keyword:e.initialValue||""})}componentDidUpdate(e,t){this.scrollOverlay(),(this.state.isOpen&&!t.isOpen||this.props.autoFocus&&!e.autoFocus)&&this.focus(),this.state.keyword!==t.keyword&&(this.state.keyword?this.onSearch(this.state.keyword):(this.props.delaySearch&&this.onSearch.cancel(),this.props.onSearch(this.state.keyword)),this.props.onSearchChange(this.state.keyword))}componentDidMount(){this.onSearch=this.props.delaySearch?(0,p.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout((()=>this.focus()),0)}scrollOverlay=()=>{this.refs.overlay&&window.requestAnimationFrame((()=>{this.refs.overlay&&this.refs.searchInput&&(this.refs.overlay.scrollLeft=this.getScrollLeft(this.refs.searchInput))}))};getScrollLeft=e=>{if(!e.createTextRange)return e.scrollLeft;const t=e.createTextRange(),n=window.getComputedStyle(e,void 0),s=parseFloat(n.paddingLeft),a=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+s-a.left};focus=()=>{setTimeout((()=>this.refs.searchInput&&f().findDOMNode(this.refs.searchInput).focus()),0)};blur=()=>{f().findDOMNode(this.refs.searchInput).blur()};getCurrentSearchValue=()=>f().findDOMNode(this.refs.searchInput).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}),l.Z.ga.recordEvent(this.props.analyticsGroup,"Clicked Open Search")};closeSearch=e=>{if(e.preventDefault(),this.props.disabled)return;const t=f().findDOMNode(this.refs.searchInput);this.setState({keyword:"",isOpen:this.props.isOpen||!1}),t.value="",t.blur(),this.props.pinned&&f().findDOMNode(this.refs.openIcon).focus(),this.props.onSearchClose(e),l.Z.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search")};keyUp=e=>{"Enter"===e.key&&(0,i.tq)()&&this.blur(),this.props.pinned&&("Escape"===e.key&&this.closeSearch(e),this.scrollOverlay())};keyDown=e=>{this.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&this.closeSearch(e),this.props.onKeyDown(e)};onFocus=()=>{const e=f().findDOMNode(this.refs.searchInput),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…",n=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"},r=o()(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=o()("dops-search__input-fade",this.props.dir),p=o()("dops-search__input",this.props.dir);return h().createElement("div",{dir:this.props.dir||null,className:r,role:"search"},h().createElement("div",{role:"button",className:"dops-search__icon-navigation",ref:"openIcon",onClick:n?this.openSearch:this.focus,tabIndex:n?"0":null,onKeyDown:n?this.openListener:null,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Open Search"},h().createElement(c.Z,{icon:"search",className:"dops-search__open-icon"})),h().createElement("div",{className:l},h().createElement("input",a()({type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:p,placeholder:t,role:"searchbox",value:e,ref:"searchInput",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()),this.closeButton())}renderStylingDiv=()=>h().createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},this.props.overlayStyling(this.state.keyword));closeButton=()=>this.props.hideClose||!this.state.keyword&&!this.state.isOpen?null:h().createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:this.closeSearch,tabIndex:"0",onKeyDown:this.closeListener,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Close Search"},h().createElement(c.Z,{icon:"cross",className:"dops-search__close-icon"}))}t.Z=v},81114:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(85799),r=n(99196),o=n.n(r);t.Z=e=>{let{label:t,children:n,className:s}=e;const r=a()(s,"dops-section-header");return o().createElement(i.Z,{compact:!0,className:r},o().createElement("div",{className:"dops-section-header__label"},o().createElement("span",{className:"dops-section-header__label-text"},t)),o().createElement("div",{className:"dops-section-header__actions"},n))}},24399:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(11677),r=n(92819),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(21675),d=n(56923);class m extends p().Component{static displayName="SectionNav";static propTypes={children:c().node,selectedText:c().node,selectedCount:c().number,hasPinnedItems:c().bool,onMobileNavPanelOpen:c().func};state={mobileOpen:!1};static defaultProps={onMobileNavPanelOpen:()=>{}};UNSAFE_componentWillMount(){this.checkForSiblingControls(this.props.children)}UNSAFE_componentWillReceiveProps(e){(0,r.isEqual)(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())}render(){const e=this.getChildren();let t;return e?(t=a()({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),p().createElement("div",{className:t},p().createElement("div",{className:"dops-section-nav__mobile-header",role:"button",onClick:this.toggleMobileOpenState,tabIndex:0,onKeyUp:this.toggleMobileOpenState},p().createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),p().createElement("div",{className:"dops-section-nav__panel"},e))):(t=a()({"dops-section-nav":!0,"is-empty":!0}),p().createElement("div",{className:t},p().createElement("div",{className:"dops-section-nav__panel"},p().createElement(u.Z,null))))}getChildren(){return p().Children.map(this.props.children,function(e){const t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==d.Z||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===d.Z&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===i.Z&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),p().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,p().Children.forEach(e,function(e,t){t&&e&&e.type!==i.Z&&(this.hasSiblingControls=!0)}.bind(this))}}t.Z=m},21675:function(e,t,n){"use strict";var s=n(55609),a=n(65235),i=n.n(a),r=n(85582),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l);class u extends p().PureComponent{static displayName="NavItem";static propTypes={itemType:c().string,path:c().string,selected:c().bool,tabIndex:c().number,onClick:c().func,isExternalLink:c().bool,disabled:c().bool,count:c().number};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 n=i()(t);let a;return this.props.disabled||(a=this.props.onClick),p().createElement("li",{className:n},!this.props.isExternalLink&&p().createElement("a",{href:this.props.path,className:"dops-section-nav-"+e+"__link",onClick:a,tabIndex:this.props.tabIndex||0,disabled:this.props.disabled,role:"menuitem"},p().createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&p().createElement(r.Z,{count:this.props.count}))),this.props.isExternalLink&&p().createElement(s.ExternalLink,{href:this.props.path,target:"_blank",rel:"external",onClick:a,className:"dops-section-nav-"+e+"__link",disabled:this.props.disabled,role:"menuitem"},p().createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&p().createElement(r.Z,{count:this.props.count}))))}}t.Z=u},56923:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(2816),r=n(65235),o=n.n(r),c=n(96200),l=n(51226),p=n(92819),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(91850),f=n.n(g);class k extends h().Component{static propTypes={selectedText:d().string,selectedCount:d().number,label:d().string,hasSiblingControls:d().bool};static defaultProps={hasSiblingControls:!1};state={isDropdown:!1};componentDidMount(){this.setDropdown(),this.debouncedAfterResize=(0,p.debounce)(this.setDropdown,300),window.addEventListener("resize",this.debouncedAfterResize)}UNSAFE_componentWillReceiveProps(){this.setDropdown()}componentWillUnmount(){window.removeEventListener("resize",this.debouncedAfterResize)}render(){const e=h().Children.map(this.props.children,(function(e,t){return e&&h().cloneElement(e,{ref:"tab-"+t})})),t=o()({"dops-section-nav-tabs":!0,"is-dropdown":this.state.isDropdown,"is-open":this.state.isDropdownOpen,"has-siblings":this.props.hasSiblingControls}),n=(0,i.bQ)();return h().createElement("div",{className:"dops-section-nav-group",ref:"navGroup"},h().createElement("div",{className:t},this.props.label&&h().createElement("h6",{className:"dops-section-nav-group__label"},this.props.label),h().createElement("ul",{className:"dops-section-nav-tabs__list",role:"menu",onKeyDown:this.keyHandler},e),this.state.isDropdown&&n>660&&this.getDropdown()))}getTabWidths=()=>{let e=0;h().Children.forEach(this.props.children,function(t,n){if(!t)return;const s=f().findDOMNode(this.refs["tab-"+n]).offsetWidth;e+=s}.bind(this)),this.tabsWidth=e};getDropdown=()=>{const e=h().Children.map(this.props.children,(function(e,t){return e?h().createElement(l.Z,a()({},e.props,{key:"navTabsDropdown-"+t}),e.props.children):null}));return h().createElement(c.Z,{className:"dops-section-nav-tabs__dropdown",selectedText:this.props.selectedText,selectedCount:this.props.selectedCount},e)};setDropdown=()=>{let e;if(window.innerWidth>660){if(!this.refs.navGroup)return;e=this.refs.navGroup.offsetWidth,this.tabsWidth||this.getTabWidths(),e<=this.tabsWidth&&!this.state.isDropdown?this.setState({isDropdown:!0}):e>this.tabsWidth&&this.state.isDropdown&&this.setState({isDropdown:!1})}else window.innerWidth<=660&&this.state.isDropdown&&this.setState({isDropdown:!1})};keyHandler=e=>{switch(e.keyCode){case 32:case 13:e.preventDefault(),document.activeElement.click()}}}t.Z=k},96200:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(85582),r=n(51226),o=n(65668),c=n(6764),l=n(92819),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d),h=n(91850),g=n.n(h);const{Component:f}=m(),k=()=>{};class v extends f{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:++v.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,l.find)(e.options,(e=>!e.isLabel));return t&&t.value}dropdownOptions(){let e=0;const t=this;return this.props.children?m().Children.map(this.props.children,(function(n,s){if(!n)return null;const a=m().cloneElement(n,{ref:n.type===r.Z?"item-"+e:null,key:"item-"+s,onClick:function(e){t.refs.dropdownContainer.focus(),"function"==typeof n.props.onClick&&n.props.onClick(e)}});return n.type===r.Z&&e++,a}),this):this.props.options.map((function(t,n){if(!t)return m().createElement(c.Z,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return m().createElement(o.Z,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);const s=m().createElement(r.Z,{key:"dropdown-item-"+this.state.instanceId+"-"+t.value,ref:"item-"+e,selected:this.state.selected===t.value,onClick:this.onSelectItem(t),path:t.path},t.label);return e++,s}),this)}render(){const e={"dops-select-dropdown":!0,"is-compact":this.props.compact,"is-open":this.state.isOpen,"is-disabled":this.props.disabled,"is-rna":this.props.rna};this.props.className&&this.props.className.split(" ").forEach((function(t){e[t]=!0}));const t=a()(e),n=this.props.selectedText?this.props.selectedText:(0,l.result)((0,l.find)(this.props.options,{value:this.state.selected}),"label");return m().createElement("div",{style:this.props.style,className:t},m().createElement("div",{ref:"dropdownContainer",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},m().createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},m().createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&m().createElement(i.Z,{count:this.props.selectedCount}))),m().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.refs.dropdownContainer.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.refs.dropdownContainer.focus()}}navigateItemByTabKey(e){if(!this.state.isOpen)return;e.preventDefault();const t=e.shiftKey?"previous":"next";this.focusSibling(t)}activateItem(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}focusSibling(e){let t,n;if(!this.state.isOpen)return;this.props.options.length?(t=(0,l.map)((0,l.filter)(this.props.options,(e=>e&&!e.isLabel)),"value"),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=(0,l.filter)(this.props.children,(function(e){return e.type===r.Z})),n="number"==typeof this.focused?this.focused:(0,l.findIndex)(t,(function(e){return e.props.selected})));const s=n+("previous"===e?-1:1);s>=t.length||s<0||(g().findDOMNode(this.refs["item-"+s].refs.itemLink).focus(),this.focused=s)}handleOutsideClick(e){g().findDOMNode(this.refs.dropdownContainer).contains(e.target)||this.closeDropdown()}}v.defaultProps={options:[],onSelect:k,onToggle:k,disabled:!1,style:{},rna:!1},v.propTypes={selectedText:u().string,selectedCount:u().number,initialSelected:u().string,className:u().string,style:u().object,onSelect:u().func,onToggle:u().func,focusSibling:u().func,tabIndex:u().number,disabled:u().bool,options:u().arrayOf(u().shape({value:u().string.isRequired,label:u().string.isRequired,path:u().string})),rna:u().bool},v.instances=0,t.Z=v},51226:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(85582),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);class p extends l().Component{static propTypes={children:o().node.isRequired,path:o().string,selected:o().bool,onClick:o().func,count:o().number};static defaultProps={selected:!1};render(){const e=a()(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return l().createElement("li",{className:"dops-select-dropdown__option"},l().createElement("a",{ref:"itemLink",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},l().createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&l().createElement(i.Z,{count:this.props.count}))))}}t.Z=p},65668:function(e,t,n){"use strict";var s=n(99196),a=n.n(s);const{Component:i}=a(),r=e=>e.stopPropagation();t.Z=class extends i{render(){return a().createElement("li",{role:"menuitem",onClick:r,className:"dops-select-dropdown__label"},a().createElement("label",null,this.props.children))}}},6764:function(e,t,n){"use strict";var s=n(99196),a=n.n(s);class i extends a().Component{render(){return a().createElement("li",{className:"dops-select-dropdown__separator"})}}t.Z=i},93806:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(97506),o=n(85733),c=n(39224),l=n(81114),p=n(84069),u=n(59584),d=n(92819),m=n(86450),h=n(1137),g=n(25162),f=n.n(g),k=n(99196),v=n.n(k),_=n(59309),E=n(17296),w=n(96300),b=n(69508),y=n(50416),j=n(33002);const __=i.__,_x=i._x,C=e=>{const t=e=>()=>(e=>{p.Z.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})})(e),n=(t,n)=>()=>{(e=>{p.Z.tracks.recordJetpackClick({target:"connect-banner",feature:e,type:"connect"})})(t),e.doConnectUser(n)},s=!!e.module&&e.getModule(e.module),i=e.vaultPressData,g=(0,d.get)(i,["data","features","backups"],!1),f=(0,d.get)(i,["data","features","security"],!1);if(!e.userCanManageModules&&!(0,d.includes)(["post-by-email","publicize"],e.module))return v().createElement("span",null);const k=e.saveDisabled,_=!!e.feature&&e.feature;let E=e.header?e.header:"";""===E&&s&&(E=s.name);const w=()=>{switch(_){case u.BD8:return"inactive"===e.getModuleOverride("videopress");case u.N8_:return"inactive"===e.getModuleOverride("wordads");case u.r2Z:return"inactive"===e.getModuleOverride("google-analytics");case u.T54:return"inactive"===e.getModuleOverride("search");default:return!1}},b=(()=>{if(e.fetchingSiteData)return!0;switch(_){case u.eMt:if(!e.hasScan&&!f)return!1;break;case u.N8_:if(!e.hasWordAds)return!1;break;case u.r2Z:if(!e.hasGoogleAnalytics)return!1;break;case u.V37:if(!e.hasAntispam&&!e.isAkismetKeyValid&&!e.isCheckingAkismetKey)return!1}return!0})()&&e.children,y=!e.fetchingSiteData&&!w()&&!e.inOfflineMode&&(()=>{const s=_x("Upgrade","A caption for a button to upgrade an existing paid feature to a higher tier.","jetpack"),a=_x("Connect","A caption for a button to connect a user account to access paid features.","jetpack");switch(_){case u.BD8:return e.hasConnectedOwner||e.hasVideoPress?"":v().createElement(o.ZP,{title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),callToAction:a,plan:(0,u.o2o)(u.BD8),feature:_,onClick:n(_),rna:!0});case u.N8_:return e.hasWordAds?"":e.hasConnectedOwner?v().createElement(o.ZP,{title:__("Generate income with high-quality ads.","jetpack"),callToAction:s,plan:(0,u.o2o)(u.N8_),feature:_,onClick:t(_),href:e.adsUpgradeUrl,rna:!0}):v().createElement(o.ZP,{title:__("Connect your WordPress.com account to upgrade and generate income with high-quality ads.","jetpack"),callToAction:a,plan:(0,u.o2o)(u.N8_),feature:_,onClick:n(_),rna:!0});case u.eMt:return g||e.hasScan&&e.hasBackups||e.multisite?"":e.hasScan&&!e.hasBackups?e.hasConnectedOwner?v().createElement(o.ZP,{title:__("Save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,u.o2o)(u.N_2),callToAction:s,feature:_,onClick:t(_),href:e.securityUpgradeUrl,rna:!0}):v().createElement(o.ZP,{title:__("Connect your WordPress.com account to upgrade and save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,u.o2o)(u.N_2),callToAction:a,feature:_,onClick:n(_),rna:!0}):e.hasConnectedOwner?v().createElement(o.ZP,{callToAction:s,title:__("Automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,u.o2o)(u.eMt),feature:_,onClick:t(_),href:e.scanUpgradeUrl,rna:!0}):v().createElement(o.ZP,{callToAction:a,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,u.o2o)(u.eMt),feature:_,onClick:n(_),rna:!0});case u.r2Z:return e.hasGoogleAnalytics?"":e.hasConnectedOwner?v().createElement(o.ZP,{callToAction:s,title:__("Connect your site to Google Analytics.","jetpack"),plan:(0,u.o2o)(u.r2Z),feature:_,onClick:t(_),href:e.gaUpgradeUrl,rna:!0}):v().createElement(o.ZP,{callToAction:a,title:__("Connect your WordPress.com account to upgrade and connect your site to Google Analytics.","jetpack"),plan:(0,u.o2o)(u.r2Z),feature:_,onClick:n(_),rna:!0});case u.T54:return e.hasInstantSearch?"":e.hasConnectedOwner?v().createElement(o.ZP,{callToAction:(0,h.I)()?__("Start for free","jetpack"):_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:(0,u.o2o)(u.T54),feature:_,onClick:t(_),href:e.searchUpgradeUrl,rna:!0}):v().createElement(o.ZP,{callToAction:a,title:__("Connect your WordPress.com account to upgrade and help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:(0,u.o2o)(u.T54),feature:_,onClick:n(_),rna:!0});case u.V37:return e.isCheckingAkismetKey||e.isAkismetKeyValid||e.hasAntispam?"":e.hasConnectedOwner?v().createElement(o.ZP,{callToAction:s,title:__("Automatically clear spam from comments and forms.","jetpack"),plan:(0,u.o2o)(u.V37),feature:_,href:e.spamUpgradeUrl,rna:!0}):v().createElement(o.ZP,{callToAction:a,title:__("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms.","jetpack"),plan:(0,u.o2o)(u.V37),feature:_,onclick:e.doConnectUser,rna:!0});case u.S5m:return e.hasSimplePayments?"":e.hasConnectedOwner?v().createElement(o.ZP,{callToAction:s,title:__("Start accepting PayPal payments for physical products, digital goods, or donations.","jetpack"),plan:(0,u.o2o)(u.S5m),feature:_,href:e.simplePaymentsUpgradeUrl,rna:!0}):v().createElement(o.ZP,{callToAction:a,title:__("Connect your WordPress.com account to upgrade and access PayPal features in your editor.","jetpack"),plan:(0,u.o2o)(u.S5m),feature:_,onclick:e.doConnectUser,rna:!0});default:return""}})();if(!b&&!y)return null;let j="";return e.feature?j=`jp-settings-${e.feature}`:e.module&&(j=`jp-settings-${e.module}`),(()=>{if(!w())return!1;if(_!==u.r2Z)return null;const t=e.getModule("google-analytics");return v().createElement(c.Z,{moduleName:t.name})})()||v().createElement("form",a()({},j?{id:j}:null,{className:"jp-form-settings-card",onSubmit:k?void 0:e.onSubmit}),v().createElement(l.Z,{label:E},!e.hideButton&&v().createElement(r.Z,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:k||!e.isDirty()},k?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0)),e.action&&v().createElement(m.Z,{proFeature:e.action,siteAdminUrl:e.siteAdminUrl,isCompact:!1})),b,y)};C.propTypes={action:f().string,saveDisabled:f().bool},C.defaultProps={action:"",saveDisabled:!1},t.Z=(0,_.$j)((e=>({fetchingSiteData:(0,j._5)(e),siteAdminUrl:(0,b.wW)(e),userCanManageModules:(0,b.pK)(e),isAkismetKeyValid:(0,E._2)(e),isCheckingAkismetKey:(0,E.gw)(e),vaultPressData:(0,E.XK)(e),getModuleOverride:t=>(0,y.Qy)(e,t),getModule:t=>(0,y.rT)(e,t),adsUpgradeUrl:(0,b.Qq)(e,"jetpack-creator-cta"),securityUpgradeUrl:(0,h.z)(e,"security"),scanUpgradeUrl:(0,h.z)(e,"scan"),gaUpgradeUrl:(0,b.Qq)(e,"settings-ga"),searchUpgradeUrl:(0,h.z)(e,"search"),simplePaymentsUpgradeUrl:(0,b.Qq)(e,"jetpack-creator-cta"),spamUpgradeUrl:(0,h.z)(e,"akismet"),multisite:(0,b.TA)(e),inOfflineMode:(0,w.Ex)(e),hasConnectedOwner:(0,w.it)(e),hasAntispam:(0,j.CV)(e,"antispam"),hasBackups:(0,j.CV)(e,"backups"),hasGoogleAnalytics:(0,j.CV)(e,"google-analytics"),hasInstantSearch:(0,j.CV)(e,"instant-search"),hasScan:(0,j.CV)(e,"scan"),hasSimplePayments:(0,j.CV)(e,"simple-payments"),hasVideoPress:(0,j.CV)(e,"videopress"),hasWordAds:(0,j.CV)(e,"wordads")})),(e=>({doConnectUser:t=>e((0,w.bL)(t))})))(C)},28178:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(85799),c=n(79032),l=n(92819),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d),h=n(59309),g=n(96300),f=n(69508),k=n(50416);const v=e=>{const t=e.module;if(t.module&&!e.userCanManageModules&&!(0,l.includes)(["post-by-email","publicize"],t.module))return m().createElement("span",null);const n=e.disableInOfflineMode&&e.isUnavailableInOfflineMode(t.module),s=e.disableInSiteConnectionMode&&e.isUnavailableInSiteConnectionMode(t.module);let i=n||s;return"post-by-email"!==t.module||e.isLinked||(i=!0),m().createElement("div",{className:r()("jp-form-settings-group",e.className)},m().createElement(o.Z,{className:r()({"jp-form-has-child":e.hasChild,"jp-form-settings-disable":n||s})},i&&m().createElement("div",{className:"jp-form-block-fade"}),e.support.link&&m().createElement(c.Z,a()({module:t},e.support)),e.children))};v.propTypes={support:u().object,module:u().object,disableInOfflineMode:u().bool.isRequired,disableInSiteConnectionMode:u().bool,isOfflineMode:u().bool.isRequired,isSitePublic:u().bool.isRequired,userCanManageModules:u().bool.isRequired,isLinked:u().bool.isRequired,isUnavailableInOfflineMode:u().func.isRequired,className:u().string},v.defaultProps={support:{text:"",link:""},module:{},disableInOfflineMode:!1,disableInSiteConnectionMode:!1,isOfflineMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInOfflineMode:l.noop,className:""},t.Z=(0,h.$j)((e=>({isOfflineMode:(0,g.Ex)(e),isSitePublic:(0,f.$r)(e),userCanManageModules:(0,f.pK)(e),userCanEditPosts:(0,f.rp)(e),isLinked:(0,g.BU)(e),isModuleActivated:t=>(0,k.mp)(e,t),isUnavailableInOfflineMode:t=>(0,g.t_)(e,t),isUnavailableInSiteConnectionMode:t=>(0,g.IK)(e,t)})))(v)},92685:function(e,t,n){"use strict";var s=n(6895),a=n(65736),i=n(65235),r=n.n(i),o=n(97506),c=n(85799),l=n(5060),p=n(85733),u=n(84069),d=n(59584),m=n(25162),h=n.n(m),g=n(99196),f=n.n(g),k=n(59309),v=n(96300),_=n(69508),E=n(33002);const __=a.__,_x=a._x;class w extends f().Component{static displayName="SupportCard";static defaultProps={className:"",siteConnectionStatus:!1};trackBannerClick=()=>{u.Z.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:this.props.path,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no"})};handleConnectClick=()=>{this.trackBannerClick(),this.props.connectUser()};trackSearchClick=()=>{u.Z.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:this.props.path})};trackGettingStartedClick=()=>{u.Z.tracks.recordJetpackClick({target:"support-card",button:"getting-started",page:this.props.path})};render(){const{hasSupport:e}=this.props;if(this.props.isFetchingSiteData)return f().createElement("div",null);const t=r()(this.props.className,"jp-support-card");return f().createElement("div",{className:t},f().createElement(c.Z,{className:"jp-support-card__happiness"},f().createElement("div",{className:"jp-support-card__happiness-contact"},f().createElement("h3",{className:"jp-support-card__header"},__("We’re here to help","jetpack")),f().createElement("p",{className:"jp-support-card__description"},e?(0,a.sprintf)(/* translators: placeholder is either Jetpack or WordPress.com */ | |
| 58 | -__("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")),f().createElement("p",{className:"jp-support-card__description"},this.props.isAtomicSite||f().createElement(o.Z,{onClick:this.trackGettingStartedClick,href:(0,s.Z)("jetpack-support-getting-started")},__("Getting started with Jetpack","jetpack"),f().createElement(l.Z,{className:"dops-card__link-indicator",icon:"external"})),f().createElement(o.Z,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?(0,s.Z)("calypso-help"):(0,s.Z)("jetpack-support")},__("Search our support site","jetpack"),f().createElement(l.Z,{className:"dops-card__link-indicator",icon:"external"}))))),this.props.siteConnectionStatus&&!e&&this.props.hasConnectedOwner&&f().createElement(p.ZP,{title:__("Get a faster resolution to your support questions.","jetpack"),plan:(0,d.o2o)(d.psy),callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),onClick:this.trackBannerClick,href:this.props.supportUpgradeUrl}),this.props.siteConnectionStatus&&!e&&!this.props.hasConnectedOwner&&f().createElement(p.ZP,{title:__("Connect your WordPress.com account and upgrade to get a faster resolution to your support questions.","jetpack"),plan:(0,d.o2o)(d.psy),callToAction:__("Connect","jetpack"),onClick:this.handleConnectClick}))}}w.propTypes={siteConnectionStatus:h().any.isRequired,className:h().string,isCurrentUserLinked:h().bool,isConnectionOwner:h().bool},t.Z=(0,k.$j)((e=>({siteConnectionStatus:(0,v.Gz)(e),isFetchingSiteData:(0,E._5)(e),isAtomicSite:(0,_.Ug)(e),isDevVersion:(0,_._W)(e),supportUpgradeUrl:(0,_.Qq)(e,"support"),isCurrentUserLinked:(0,v.BU)(e),isConnectionOwner:(0,v.QM)(e),hasConnectedOwner:(0,v.it)(e),hasSupport:(0,E.CV)(e,"support")})),(e=>({connectUser:()=>e((0,v.bL)())})))(w)},79032:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var s=n(55609),a=n(65736),i=n(42698),r=n(84069),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l);const __=a.__;class u extends l.Component{static propTypes={module:c().object,text:c().string,link:c().string,privacyLink:c().string};static defaultProps={module:void 0,text:"",link:"",privacyLink:""};constructor(){super(...arguments),this.getModule=this.getModule.bind(this),this.trackInfoClick=this.trackInfoClick.bind(this),this.trackLearnMoreClick=this.trackLearnMoreClick.bind(this),this.trackPrivacyInfoClick=this.trackPrivacyInfoClick.bind(this)}getModule(){return this.props.module||{}}trackInfoClick(){r.Z.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}trackLearnMoreClick(){r.Z.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}trackPrivacyInfoClick(){r.Z.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}render(){const{text:e,link:t}=this.props;let{privacyLink:n}=this.props;return!n&&t&&(n=t+"#privacy"),p().createElement("div",{className:"jp-support-info"},p().createElement(i.Z,{position:"left",onClick:this.trackInfoClick,screenReaderText:__("Learn more","jetpack")},e+" ",t&&p().createElement("div",{className:"jp-support-info__learn-more"},p().createElement(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:n,onClick:this.trackPrivacyInfoClick,rel:"noopener noreferrer"},__("Privacy information","jetpack")))))}}},9494:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(92819),c=n(99196),l=n.n(c);class p extends l().Component{static displayName="TextInput";static defaultProps={isError:!1,isValid:!1,selectOnFocus:!1,type:"text"};focus=()=>{this.refs.textField.focus()};render(){const{className:e,selectOnFocus:t}=this.props,n=r()(e,{"dops-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),s=(0,o.omit)(this.props,"selectOnFocus","isError","isValid");return l().createElement("input",a()({},s,{ref:"textField",className:n,onClick:t?this.selectOnFocus:null}))}selectOnFocus=e=>{e.target.select()}}},65936:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var s=n(82674),a=n.n(s),i=n(65235),r=n.n(i),o=n(92819),c=n(99196),l=n.n(c);class p extends l().Component{static displayName="Textarea";render(){return l().createElement("textarea",a()({},(0,o.omit)(this.props,"className"),{className:r()(this.props.className,"dops-textarea")}),this.props.children)}}},54088:function(e,t,n){"use strict";var s=n(2816),a=n(65235),i=n.n(a),r=n(28402),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l);const u=()=>{};class d extends l.Component{static propTypes={autoPosition:c().bool,className:c().string,id:c().string,isVisible:c().bool,position:c().string,rootClassName:c().string,status:c().string,showDelay:c().number,showOnMobile:c().bool};static defaultProps={showDelay:100,position:"top",showOnMobile:!1};render(){if(!this.props.showOnMobile&&(0,s.tq)())return null;const e=i()("dops-popover","dops-tooltip",`is-${this.props.position}`,this.props.className);return p().createElement(r.Z,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:u,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}t.Z=d},63157:function(e,t,n){"use strict";var s=n(25162),a=n.n(s),i=n(99196),r=n(59309),o=n(89292);class c extends i.Component{UNSAFE_componentWillReceiveProps(e){const t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&e.searchTerm.length>=3&&t("jetpack_wpa_search_term",{term:e.searchTerm})}render(){return null}}c.propTypes={analytics:a().object,searchTerm:a().string},t.Z=(0,r.$j)((e=>({searchTerm:(0,o.He)(e)})))(c)},37834:function(e,t,n){"use strict";var s=n(84069),a=n(25162),i=n.n(a),r=n(99196),o=n.n(r),c=n(59309),l=n(69508);class p extends r.PureComponent{static propTypes={source:i().string.isRequired,target:i().string.isRequired,feature:i().string,upgradeUrl:i().string.isRequired};trackClick=()=>{const{target:e,feature:t}=this.props;if(e){const n=t?{feature:t}:{};s.Z.tracks.recordJetpackClick({type:"upgrade-link",target:e,...n})}};render(){return o().createElement("a",{href:this.props.upgradeUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.trackClick},this.props.children)}}t.Z=(0,c.$j)(((e,t)=>{let{source:n}=t;return{upgradeUrl:(0,l.Qq)(e,n)}}))(p)},39327:function(e,t,n){"use strict";var s=n(65736),a=n(88120),i=n(2353),r=n(19567),o=n.n(r),c=n(84069),l=n(99196),p=n.n(l);const __=s.__,u=(0,i.u)(class extends l.Component{componentDidMount(){o()("body").addClass("jp-dialogue-modern-showing"),c.Z.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}componentWillUnmount(){o()("body").removeClass("jp-dialogue-modern-showing")}trackLearnMoreClick=()=>{c.Z.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:this.props.version})};dismissNotice=()=>{c.Z.tracks.recordJetpackClick({target:"warm_welcome_dismiss",version:this.props.version}),this.props.dismiss()};renderInnerContent(){const e=(new DOMParser).parseFromString(this.props.releasePostContent,"text/html"),t=e.getElementsByTagName("a");for(let e=0;e<t.length;e++)t[e].setAttribute("target","_blank"),t[e].setAttribute("rel","noopener noreferrer");const n=e.body.innerHTML;return p().createElement("div",{className:"jp-upgrade-notice__content"},p().createElement("div",{dangerouslySetInnerHTML:{__html:n}}))}render(){const{featuredImage:e}=this.props;let t=null,{title:n}=this.props;return e&&e.length>0&&(t=p().createElement("img",{src:e,alt:""})),n&&0!==n.length||(n=(0,s.sprintf)(/* translators: Placeholder is a version number. */ | |
| 59 | -__("New in Jetpack %s","jetpack"),this.props.version)),p().createElement(a.Z,{svg:t,title:n,content:this.renderInnerContent(),dismiss:this.dismissNotice})}});t.Z=u},35182:function(e,t){"use strict";const n={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};t.Z=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")}},80800:function(e,t,n){"use strict";n.d(t,{Ez:function(){return r},Fr:function(){return i},hp:function(){return a},x8:function(){return o},zh:function(){return c}});var s=n(6895);const a=window.Initial_State.pluginBaseUrl+"/images/",i=(0,s.Z)("jetpack-contact-support"),r=(0,s.Z)("jetpack-contact-support-beta-group"),o=(0,s.Z)("jetpack-stats-2023-opt-out-survey"),c="https://jetpack.com/support/backup/the-jetpack-backup-plugin/getting-started-with-the-jetpack-backup-plugin/#starting-your-first-backup"},13067:function(e,t,n){"use strict";n.d(t,{H:function(){return v}});var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(65736),c=n(61775),l=n(2353),p=n(5004),u=n(93806),d=n(28178),m=n(79032),h=n(9494),g=n(99196),f=n.n(g);const __=o.__;class k extends f().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"),n=this.props.isModuleFound("markdown"),s=this.props.isModuleFound("comment-likes");if(!(e||t||n||s))return null;const{isUnavailableInOfflineMode:o,getOptionValue:l}=this.props,g=this.props.getModule("comments"),k=this.props.getOptionValue("comments"),v=this.props.isUnavailableInOfflineMode("comments"),_=this.props.getModule("gravatar-hovercards"),E=this.props.getModule("markdown"),w=o("comment-likes"),b=l("comment-likes");return f().createElement(u.Z,a()({},this.props,{header:__("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&f().createElement(d.Z,{hasChild:!0,disableInOfflineMode:!0,module:g,support:{text:__("Replaces the standard WordPress comment form with a new comment system that includes social media login options.","jetpack"),link:(0,i.Z)("jetpack-support-comments")}},f().createElement(p.T,{slug:"comments",compact:!0,disabled:v,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},g.description)),f().createElement(c.C_,null,f().createElement(c.lX,null,f().createElement("span",{className:"jp-form-label-wide"},__("Comment form introduction","jetpack")),f().createElement(h.Z,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!k||v||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),f().createElement("span",{className:"jp-form-setting-explanation"},__("A few catchy words to motivate your visitors to comment.","jetpack")),f().createElement(c.lX,null,f().createElement("span",{className:"jp-form-label-wide"},__("Color scheme","jetpack")),f().createElement(c.ih,a()({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!k||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||n||s)&&f().createElement(d.Z,null,t&&f().createElement("div",{className:"jp-toggle-set"},f().createElement(c.C_,null,f().createElement(p.T,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},_.description))),f().createElement(m.Z,{text:__("Show Gravatar hovercards alongside comments.","jetpack"),link:_.learn_more_button,privacyLink:_.learn_more_button+"#privacy"})),n&&f().createElement("div",{className:"jp-toggle-set"},f().createElement(c.C_,null,f().createElement(r.Z,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown"])||"inactive"===this.props.getModuleOverride("markdown"),toggling:this.props.isSavingAnyOption(["wpcom_publish_comments_with_markdown"]),onChange:this.handleMarkdownCommentsToggle,label:__("Enable Markdown use for comments.","jetpack")})),f().createElement(m.Z,{text:__("Allow readers to use markdown in comments.","jetpack"),link:E.learn_more_button,privacyLink:E.learn_more_button+"#privacy"})),s&&f().createElement("div",{className:"jp-toggle-set"},f().createElement(c.C_,null,f().createElement(p.T,{slug:"comment-likes",compact:!0,disabled:w,activated:b,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},f().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable comment likes.","jetpack")))),f().createElement(m.Z,{text:__("Allow readers to like individual comments.","jetpack"),link:(0,i.Z)("jetpack-support-comment-likes"),privacyLink:(0,i.Z)("jetpack-support-comment-likes",{anchor:"privacy"})}))))}}const v=(0,l.u)(k)},70399:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(69270),o=n(99196),c=n.n(o),l=n(59309),p=n(96300),u=n(69508),d=n(50416),m=n(89292),h=n(3230),g=n(13067);const __=i.__;class f extends c().Component{static displayName="DiscussionSettings";render(){const e={settings:this.props.settings,getModule:this.props.module,isOdysseyStatsEnabled:this.props.isOdysseyStatsEnabled,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isWoASite:this.props.isWoASite,siteAdminUrl:this.props.siteAdminUrl},t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),s=this.props.isModuleFound("gravatar-hovercards"),i=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||n||s||i)?c().createElement("div",null,c().createElement(r.Z,null),c().createElement("h1",{className:"screen-reader-text"},__("Jetpack Discussion Settings","jetpack")),c().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Discussion","jetpack"):__("Manage advanced comment settings.","jetpack")),c().createElement(g.H,a()({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride}))):null}}t.Z=(0,l.$j)((e=>({module:t=>(0,d.rT)(e,t),settings:(0,h.Gw)(e),isOfflineMode:(0,p.Ex)(e),isUnavailableInOfflineMode:t=>(0,p.t_)(e,t),isModuleFound:t=>(0,m.CX)(e,t),connectUrl:(0,p.AM)(e),isLinked:(0,p.BU)(e),getModuleOverride:t=>(0,d.Qy)(e,t),isOdysseyStatsEnabled:(0,u.ij)(e),isWoASite:(0,u.Pw)(e),siteAdminUrl:(0,u.wW)(e)})))(f)},83693:function(e,t,n){"use strict";n.d(t,{f:function(){return b}});var s=n(82674),a=n.n(s),i=n(48229),r=n(6895),o=n(55609),c=n(69307),l=n(65736),p=n(85799),u=n(61775),d=n(2353),m=n(5004),h=n(93806),g=n(28178),f=n(9494),k=n(65936),v=n(84069),_=n(59584),E=n(99196),w=n.n(E);const __=l.__,_x=l._x,b=(0,d.u)(class extends w().Component{updateOptions=e=>{this.props.updateFormStateModuleOption("wordads",e)};trackConfigureClick=()=>{v.Z.tracks.recordJetpackClick("view-earnings")};trackConfigureWidgetClick=()=>{v.Z.tracks.recordJetpackClick("place_ad_widget")};handleChange=e=>()=>this.updateOptions(e);renderAdsTxtSection(){const{getOptionValue:e,isUnavailableInOfflineMode:t}=this.props,n=e("wordads_custom_adstxt_enabled","wordads"),s=e("wordads_custom_adstxt","wordads"),a=e("wordads"),o=t("wordads");return w().createElement(g.Z,{hasChild:!0,support:{text:__("Ads.txt (Authorized Digital Sellers) is a mechanism that enables content owners to declare who is authorized to sell their ad inventory. It’s the formal list of advertising partners you support as a publisher.","jetpack"),link:"https://jetpack.com/support/ads/"}},w().createElement(i.Z,{checked:n,disabled:!a||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")}),n&&w().createElement(u.C_,null,w().createElement("br",null),w().createElement("p",null,a&&(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:w().createElement("a",{href:"/ads.txt",target:"_blank",rel:"noopener noreferrer"}),link2:w().createElement("a",{href:(0,r.Z)("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}),!a&&__("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.","jetpack")),w().createElement(k.Z,{name:"wordads_custom_adstxt",value:s,disabled:!a||o||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt"]),onChange:this.props.onOptionChange})))}render(){const e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInOfflineMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),s=this.props.getOptionValue("wordads_second_belowpost","wordads"),l=this.props.getOptionValue("wordads_display_front_page","wordads"),d=this.props.getOptionValue("wordads_display_post","wordads"),k=this.props.getOptionValue("wordads_display_page","wordads"),v=this.props.getOptionValue("wordads_display_archive","wordads"),E=this.props.getOptionValue("wordads_ccpa_enabled","wordads"),b=this.props.getOptionValue("wordads_ccpa_privacy_policy_url","wordads"),y=-1!==this.props.siteRawUrl.indexOf("::");return w().createElement(h.Z,a()({},this.props,{header:_x("Ads","Ads header","jetpack"),feature:_.N8_,saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"])}),w().createElement(g.Z,{disableInOfflineMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:__("Displays high-quality ads on your site that allow you to earn income.","jetpack"),link:(0,r.Z)("jetpack-support-ads")}},w().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"),w().createElement("br",null),w().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:w().createElement(o.ExternalLink,{href:(0,r.Z)("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}))),w().createElement(m.T,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},w().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable ads and display an ad below each post","jetpack"))),w().createElement(u.C_,null,w().createElement(u.Gj,null,__("Display ads below posts on","jetpack")),w().createElement(i.Z,{checked:l,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")}),w().createElement(i.Z,{checked:d,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_post"]),onChange:this.handleChange("wordads_display_post"),label:__("Posts","jetpack")}),w().createElement(i.Z,{checked:k,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_page"]),onChange:this.handleChange("wordads_display_page"),label:__("Pages","jetpack")}),w().createElement(i.Z,{checked:v,disabled:!e||t||this.props.isSavingAnyOption(["wordads"]),toggling:this.props.isSavingAnyOption(["wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive"),label:__("Archives","jetpack")})),w().createElement(u.C_,null,w().createElement(u.Gj,null,__("Additional ad placements","jetpack")),w().createElement(i.Z,{checked:n,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")}),w().createElement(i.Z,{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")}))),w().createElement(g.Z,{hasChild:!0,support:{text:__("Enables a targeted advertising opt-out link in US states where this is legally required.","jetpack"),link:this.props.isAtomicSite?(0,r.Z)("wpcom-support-us-privacy"):(0,r.Z)("jetpack-support-ads")}},w().createElement(i.Z,{checked:E,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")}),E&&w().createElement(u.C_,null,w().createElement("p",null,w().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"))),w().createElement("p",null,w().createElement(u.Gj,null,__("Do Not Sell Link","jetpack")),(0,c.createInterpolateElement)(__('If you enable targeted advertising in all US states, you are required to place a "Do Not Sell or Share My Personal Information" link on every page of your site where targeted advertising will appear. You can use the <widgetLink>Do Not Sell Link Widget</widgetLink>, or the <code>[privacy-do-not-sell-link]</code> shortcode to automatically place this link on your site. Note: the link will always display to logged in administrators regardless of geolocation.',"jetpack"),{code:w().createElement("code",null),widgetLink:w().createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}),w().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")))),E&&w().createElement(u.C_,null,w().createElement(u.Gj,null,__("Privacy Policy URL","jetpack")),w().createElement(f.Z,{name:"wordads_ccpa_privacy_policy_url",placeholder:"https://",value:b,disabled:!e||t||!E||this.props.isSavingAnyOption(["wordads","wordads_ccpa_privacy_policy_url"]),onChange:this.props.onOptionChange}),w().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")))),!y&&this.renderAdsTxtSection(),!t&&e&&w().createElement(p.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},__("View your earnings","jetpack")))}})},32223:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(69307),o=n(65736),c=n(85799),l=n(66164),p=n(69270),u=n(93806),d=n(28178),m=n(84069),h=n(59584),g=n(99196),f=n.n(g),k=n(59309),v=n(96300),_=n(69508),E=n(50416),w=n(89292),b=n(83693);const __=o.__;function y(e){const{buttonText:t,featureConstant:n="",featureName:s,infoLink:i,infoDescription:o,supportLink:l,title:p}=e,h=(0,r.useCallback)((()=>{m.Z.tracks.recordJetpackClick({target:`visit-${s}`,feature:"earn"})}),[s]);return f().createElement(u.Z,a()({},e,{header:p,hideButton:!0,module:"earn",feature:n||void 0}),f().createElement(d.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{link:l}},o),f().createElement(c.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:h,href:i,target:"_blank"},t))}t.Z=(0,k.$j)((e=>({hasConnectedOwner:(0,v.it)(e),module:t=>(0,E.rT)(e,t),isOffline:(0,v.Ex)(e),isModuleFound:t=>(0,w.CX)(e,t),isUnavailableInOfflineMode:t=>(0,v.t_)(e,t),isAtomicSite:(0,_.Ug)(e)})))((function(e){const{active:t,hasConnectedOwner:n,isModuleFound:s,isOffline:r,searchTerm:o,siteRawUrl:c}=e,m=s("wordads"),g=s("earn");return(o||t)&&(m||g)?f().createElement("div",null,f().createElement(p.Z,null),f().createElement("h1",{className:"screen-reader-text"},__("Jetpack Earn Settings","jetpack")),f().createElement("h2",{className:"jp-settings__section-title"},o?__("Earn","jetpack"):__("Explore tools to earn money with your site.","jetpack",0)),m&&f().createElement(b.f,a()({},e,{configureUrl:(0,i.Z)("calypso-stats-ads-day",{site:c})})),g&&(r?f().createElement(d.Z,null,f().createElement("div",{className:"jp-form-block-fade"}),__("Unavailable in Offline Mode.","jetpack")):n?f().createElement(f().Fragment,null,f().createElement(y,a()({},e,{featureName:"payments",title:__("Collect payments","jetpack"),supportLink:(0,i.Z)("jetpack-support-jetpack-blocks-payments-block"),infoLink:(0,i.Z)("wpcom-earn-payments",{site: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")})),f().createElement(y,a()({},e,{featureName:"donations",title:__("Accept donations and tips","jetpack"),supportLink:(0,i.Z)("jetpack-support-jetpack-blocks-donations-block"),infoLink:(0,i.Z)("wpcom-earn-payments",{site:c}),infoDescription:__("Accept one-time and recurring donations by enabling the Donations Form block.","jetpack"),buttonText:__("Enable donations form","jetpack")})),f().createElement(y,a()({},e,{featureName:"paypal",title:__("Collect PayPal payments","jetpack"),supportLink:(0,i.Z)("jetpack-support-pay-with-paypal"),infoLink:(0,i.Z)("jetpack-support-pay-with-paypal"),infoDescription:__("Accept credit card payments via PayPal for physical products, services, donations, or support of your creative work.","jetpack"),buttonText:__("Learn how to get started","jetpack"),featureConstant:h.S5m}))):f().createElement(u.Z,a()({},e,{hideButton:!0,module:"earn",header:__("Collect payments","jetpack")}),f().createElement(l.Z,{feature:"earn",featureLabel:__("Collect payments","jetpack"),text:__("Connect to discover tools to earn money with your site.","jetpack")})))):null}))},31493:function(e,t){"use strict";const n=[9,32,37,38,39,40];let s=!1;t.Z=function(){document.addEventListener("keydown",(function(e){s||-1!==n.indexOf(e.keyCode)&&(s=!0,document.documentElement.classList.add("dops-accessible-focus"))})),document.addEventListener("mouseup",(function(){s&&(s=!1,document.documentElement.classList.remove("dops-accessible-focus"))}))}},84069:function(e,t,n){"use strict";var s=n(6975),a=n(35182);s.Z.setMcAnalyticsEnabled((0,a.Z)("mc_analytics_enabled")),s.Z.setGoogleAnalyticsEnabled((0,a.Z)("google_analytics_enabled"),(0,a.Z)("google_analytics_key")),t.Z=s.Z},34443:function(e,t){"use strict";t.Z=function(){const e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"windows":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":"unknown"}},59584:function(e,t,n){"use strict";n.d(t,{$Kn:function(){return T},$Po:function(){return Le},A3l:function(){return m},BD8:function(){return mt},Ba4:function(){return D},Bi:function(){return we},C7d:function(){return oe},Cb:function(){return Q},Cbu:function(){return st},DMv:function(){return xt},Dgm:function(){return ce},DlI:function(){return ze},ECB:function(){return jt},EcK:function(){return g},Etl:function(){return X},FLw:function(){return _e},FSp:function(){return Ae},G$d:function(){return De},G1J:function(){return Tt},G6C:function(){return w},Guz:function(){return He},INL:function(){return fe},Ijo:function(){return ue},JA7:function(){return u},JBA:function(){return Be},JEv:function(){return Fe},JX4:function(){return ae},LAg:function(){return B},MC3:function(){return yt},Mvu:function(){return Ct},Mzu:function(){return ie},N8_:function(){return gt},NJq:function(){return M},N_2:function(){return ut},O$n:function(){return wt},O3V:function(){return Ze},OEg:function(){return y},OMh:function(){return nt},Pte:function(){return v},Pu7:function(){return Nt},PuQ:function(){return Pe},Q1Y:function(){return q},Qm2:function(){return C},Rw2:function(){return K},S5m:function(){return _t},SsR:function(){return At},T54:function(){return kt},TBc:function(){return f},TID:function(){return S},UsJ:function(){return H},V37:function(){return pt},VlB:function(){return Ie},WSn:function(){return he},Wgk:function(){return o},WjF:function(){return G},XLA:function(){return F},Xzm:function(){return Z},YN_:function(){return J},Yq$:function(){return me},ZRv:function(){return z},_BF:function(){return b},_dE:function(){return Me},_dN:function(){return A},aSV:function(){return te},apc:function(){return O},dWz:function(){return W},e9K:function(){return k},eMt:function(){return dt},eld:function(){return je},f$H:function(){return l},f3A:function(){return d},fCb:function(){return et},fDC:function(){return p},fOq:function(){return Qe},hI$:function(){return U},hhG:function(){return r},iPR:function(){return ne},icM:function(){return Oe},j2d:function(){return i},j2v:function(){return qe},jIY:function(){return Ue},jTC:function(){return tt},k2r:function(){return xe},k31:function(){return Ce},kdX:function(){return bt},ko$:function(){return Te},lF9:function(){return Se},ljz:function(){return P},lv:function(){return h},nAQ:function(){return Xe},nE6:function(){return Ve},ns9:function(){return Y},nsL:function(){return I},o2o:function(){return Pt},oay:function(){return Mt},our:function(){return pe},p2b:function(){return R},p7x:function(){return a},pd0:function(){return x},psy:function(){return ht},qSP:function(){return at},qbT:function(){return vt},qnt:function(){return re},r2Z:function(){return ft},rVK:function(){return it},s1w:function(){return ee},sTY:function(){return Re},scx:function(){return Zt},shc:function(){return ke},sqC:function(){return c},syR:function(){return j},tVY:function(){return V},th6:function(){return se},tlC:function(){return ge},unl:function(){return de},uxe:function(){return $},uzL:function(){return be},vKQ:function(){return ye},vQF:function(){return _},vSC:function(){return ve},v_I:function(){return Ee},vbP:function(){return Ne},wmd:function(){return N},xfZ:function(){return E},yWn:function(){return le},yYZ:function(){return L},yy5:function(){return St},z6U:function(){return Ye}});var s=n(92819);const a="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",u="ecommerce-bundle",d="ecommerce-bundle-2y",m="ecommerce-bundle-3y",h="ecommerce-bundle-monthly",g="wooexpress-small-bundle-yearly",f="wooexpress-small-bundle-monthly",k="wooexpress-medium-bundle-yearly",v="wooexpress-medium-bundle-monthly",_="ecommerce-trial-bundle-monthly",E="value_bundle",w="value_bundle-2y",b="value_bundle-3y",y="value_bundle-monthly",j="personal-bundle",C="personal-bundle-2y",S="personal-bundle-3y",N="personal-bundle-monthly",x="starter-plan",T="pro-plan",A="free_plan",P="jetpack_free",Z="jetpack_premium",M="jetpack_business",O="jetpack_personal",R="jetpack_premium_monthly",L="jetpack_business_monthly",I="jetpack_personal_monthly",z="jetpack_backup_t0_yearly",U="jetpack_backup_t0_monthly",D="jetpack_backup_t1_bi_yearly",V="jetpack_backup_t1_yearly",F="jetpack_backup_t1_monthly",B="jetpack_backup_t2_yearly",H="jetpack_backup_t2_monthly",q="jetpack_search_bi_yearly",W="jetpack_search",J="jetpack_search_free",$="jetpack_search_monthly",G="jetpack_starter_yearly",K="jetpack_starter_monthly",Y="jetpack_security_t1_bi_yearly",X="jetpack_security_t1_yearly",Q="jetpack_security_t1_monthly",ee="jetpack_security_t2_yearly",te="jetpack_security_t2_monthly",ne="jetpack_complete_bi_yearly",se="jetpack_complete",ae="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",ue="wpcom_search",de="wpcom_search_monthly",me="jetpack_scan_bi_yearly",he="jetpack_scan",ge="jetpack_scan_monthly",fe="jetpack_anti_spam_bi_yearly",ke="jetpack_anti_spam",ve="jetpack_anti_spam_monthly",_e="jetpack_videopress_bi_yearly",Ee="jetpack_videopress",we="jetpack_videopress_monthly",be="vip",ye="jetpack_social_basic_bi_yearly",je="jetpack_social_basic_yearly",Ce="jetpack_social_basic_monthly",Se="jetpack_social_advanced_bi_yearly",Ne="jetpack_social_advanced_yearly",xe="jetpack_social_advanced_monthly",Te="jetpack_golden_token_lifetime",Ae="jetpack_creator_monthly",Pe="jetpack_creator_yearly",Ze="jetpack_creator_bi_yearly",Me="jetpack_backup_daily",Oe="jetpack_backup_daily_monthly",Re="jetpack_backup_realtime",Le="jetpack_backup_realtime_monthly",Ie="jetpack_security_daily",ze="jetpack_security_daily_monthly",Ue="jetpack_security_realtime",De="jetpack_security_realtime_monthly",Ve="jetpack_stats_bi_yearly",Fe="jetpack_stats",Be="jetpack_stats_monthly",He="jetpack_stats_pwyw_yearly",qe="jetpack_stats_free_yearly",We=[Z,M,O,R,L,I],Je=[Z,M,R,L],$e=[G,K,Y,X,Q,ee,te,Te,Ie,ze,Ue,De],Ge=[Z,M,O,R,L,I,G,K,Y,X,Q,ee,te,ne,se,ae,Te],Ke=[Z,M,O,R,L,I,G,K,Y,X,Q,ee,te,ne,se,ae,Ie,ze,Ue,De],Ye=[ne,se,ae],Xe=[Te],Qe=[Y,X,Q,ee,te,a,i,r,o,u,d,m,h,T,be,"wpcom-enterprise",Ie,ze,Ue,De],et=[G,K],tt=[z,U,D,V,F,B,H,Me,Oe,Re,Le],nt=[q,W,$,J,ue,de],st=[me,he,ge],at=[fe,ke,ve],it=[_e,Ee,we],rt=[ye,je,Ce,Se,Ne,xe],ot=[ie,re,oe],ct=[pe,le,ce],lt=[Ve,Fe,Be,He,qe],pt="spam-akismet-plus",ut="site-backups-jetpack",dt="security-scanning-jetpack",mt="video-hosting-jetpack",ht="priority-support-jetpack",gt="wordads-jetpack",ft="google-analytics-jetpack",kt="search-jetpack",vt="videopress-jetpack",_t="simple-payments-jetpack",Et={[ht]:X,[kt]:W,[dt]:he,[ut]:V,[pt]:ke,[mt]:X,[gt]:X,[ft]:X,[pt]:ke,[vt]:Ee,[_t]:X};function wt(e){return(0,s.includes)(Ke,e)}function bt(e){return(0,s.includes)(Ge,e)}function yt(e){return(0,s.includes)(tt,e)}function jt(e){return at.includes(e)}function Ct(e){return ot.includes(e)}function St(e){return yt(e)||function(e){return(0,s.includes)(nt,e)}(e)||function(e){return st.includes(e)}(e)||jt(e)||function(e){return it.includes(e)}(e)||function(e){return rt.includes(e)}(e)||Ct(e)||function(e){return ct.includes(e)}(e)||function(e){return lt.includes(e)}(e)}function Nt(e){return $e.includes(e)}function xt(e){return Qe.includes(e)}function Tt(e){return We.includes(e)}function At(e){return Je.includes(e)}function Pt(e){return Et[e]}function Zt(e){switch(e){case P:case A:return"is-free-plan";case j:case C:case S:case N:case x:case O:case I:return"is-personal-plan";case E:case w:case b:case y:case Z:case R:return"is-premium-plan";case a:case i:case r:case o:case M:case L:case u:case d:case m:case h:case T:case c:case l:case p:case g:case f:case k:case v:case _:return"is-business-plan";case G:case K:return"is-jetpack-starter-plan";case Y:case X:case Q:return"is-security-t1-plan";case ee:case te:return"is-security-t2-plan";case ne:case se:case ae:case be:return"is-complete-plan";case z:case U:return"is-backup-t0-plan";case D:case V:case F:return"is-backup-t1-plan";case B:case H:return"is-backup-t2-plan";case q:case W:case $:case ue:case de:return"is-search-plan";case J:return"is-free-search-plan";case me:case he:case ge:return"is-scan-plan";case fe:case ke:case ve:return"is-anti-spam-plan";case _e:case Ee:case we:return"is-videopress-plan";case Te:return"is-jetpack-golden-token-plan";case Ze:case Pe:case Ae:return"is-jetpack-creator-plan";case Ie:case ze:return"is-daily-security-plan";case Ue:case De:return"is-realtime-security-plan";case Me:case Oe:return"is-daily-backup-plan";case Re:case Le:return"is-realtime-backup-plan";case ye:case je:case Ce:return"is-jetpack-social-basic-plan";case Se:case Ne:case xe:return"is-jetpack-social-advanced-plan";case ie:case re:case oe:return"is-jetpack-boost-plan";case pe:case ce:case le:return"is-jetpack-ai-plan";case Ve:case Fe:case Be:case He:return"is-jetpack-stats-plan";case qe:return"is-free-jetpack-stats-plan";default:return""}}function Mt(e){return[Te].includes(e)}},23962:function(e,t,n){"use strict";var s=n(7211);t.Z=(e,t)=>{const n=new s.Z;let a;n.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+n.getScreenCenterSpecs(780,700)),n.once("close",(()=>{let e=null;a&&a.keyring_id&&(e=Number(a.keyring_id)),t(e)})),n.on("message",(e=>a=e))}},77733:function(e,t,n){"use strict";function s(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}n.d(t,{_:function(){return s}})},31215:function(e,t,n){"use strict";var s=n(80800),a=n(64743),i=n(6895),r=n(9312),o=n(80428),c=n(53281),l=n(1862),p=n(55609),u=n(9818),d=n(69307),m=n(65736),h=n(36288),g=n(57301),f=n(17363),k=n(16102),v=n(88546),_=n(7516),E=n(75060),w=n(36795),b=n(32977),y=n(54265),j=n(14241),C=n(86799),S=n(92685),N=n(63157),x=n(19567),T=n.n(x),A=n(84069),P=n(38106),Z=n(35150),M=n(94648),O=n(99196),R=n.n(O),L=n(59309),I=n(44498),z=n(22267),U=n(49517),D=n(96300),V=n(69508),F=n(59963),B=n(50416),H=n(69377),q=n(89292),W=n(3230),J=n(33002),$=n(73709);const __=m.__,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-golden-token","/recommendations/backup-activated","/recommendations/scan-activated","/recommendations/antispam-activated","/recommendations/videopress-activated","/recommendations/search-activated","/recommendations/server-credentials"],K=["my-jetpack "],Y=["/","/dashboard","/reconnect","/my-plan","/plans"],X=["/settings","/security","/performance","/writing","/sharing","/discussion","/earn","/newsletter","/traffic","/privacy"];class Q extends R().Component{constructor(e){super(e),this.closeReconnectModal=this.closeReconnectModal.bind(this),this.onLicenseActivationSuccess=this.onLicenseActivationSuccess.bind(this)}UNSAFE_componentWillMount(){this.props.setInitialState(),a.ZP.setApiRoot(this.props.apiRoot),a.ZP.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&A.Z.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}componentDidMount(){const e=T()(".jp-jetpack-connect__container"),t=T()(".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&&A.Z.initialize(e.userid,e.username,{blog_id:e.blogid})};shouldComponentUpdate(e){return!["/wpbody-content","/wp-toolbar"].includes(e.location.pathname)&&(JSON.stringify(e.connectionStatus)!==JSON.stringify(this.props.connectionStatus)||e.siteConnectionStatus!==this.props.siteConnectionStatus||e.isLinked!==this.props.isLinked||e.isConnectingUser!==this.props.isConnectingUser||e.location.pathname!==this.props.location.pathname||e.searchTerm!==this.props.searchTerm||e.rewindStatus!==this.props.rewindStatus||e.areThereUnsavedSettings!==this.props.areThereUnsavedSettings||e.isReconnectingSite!==this.props.isReconnectingSite)}componentDidUpdate(e){if(e.location.pathname!==this.props.location.pathname&&this.props.isSiteConnected&&A.Z.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){const e=T()("#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 R().createElement(y.Z,this.props)}return R().createElement(b.Z,this.props)}if(this.isMainConnectScreen())return null;switch(e){case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/earn":case"/newsletter":case"/traffic":case"/privacy":return R().createElement(y.Z,{routeName:this.props.routeName,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl});case"/license/activation":if(this.props.isLinked&&this.props.isConnectionOwner)return null}return R().createElement(b.Z,{routeName:this.props.routeName})};renderMainContent=e=>{if(this.shouldShowWooConnectionScreen()){const e=this.props.location.state?.previousPath,t=e&&"/woo-setup"!==e?`#${e}`:"#/dashboard";return R().createElement(k.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,title:__("Welcome to Jetpack! Security, Growth, & Performance tools for WordPress businesses","jetpack"),logo:R().createElement("img",{src:s.hp+"/jetpack-woocommerce-logo.svg",alt:__("Jetpack and WooCommerce","jetpack")}),buttonLabel:__("Set up Jetpack","jetpack"),redirectUri:"admin.php?page=jetpack",redirectTo:t,from:this.props.location.pathname,isSiteConnected:this.props.isSiteConnected,setHasSeenWCConnectionModal:this.props.setHasSeenWCConnectionModal},R().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 R().createElement(l.es,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,assetBaseUrl:this.props.pluginBaseUrl,connectionStatus:this.props.connectionStatus,partnerCoupon:this.props.partnerCoupon,siteRawUrl:this.props.siteRawUrl,tracksUserData:!!this.props.tracksUserData,analytics:A.Z})}if(this.isUserConnectScreen()&&(this.props.userCanManageModules||this.props.hasConnectedOwner)){const e=new URLSearchParams(location.search.split("?")[1]);return R().createElement(r.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,images:["/images/connect-right-secondary.png"],assetBaseUrl:this.props.pluginBaseUrl,autoTrigger:this.shouldAutoTriggerConnection(),title:this.props.connectingUserFeatureLabel?(0,m.sprintf)(/* translators: placeholder is a feature label (e.g. SEO, Notifications) */ | |
| 60 | -__("Unlock %s and more amazing features","jetpack"),this.props.connectingUserFeatureLabel):__("Unlock all the amazing features of Jetpack by connecting now","jetpack"),buttonLabel:__("Connect your user account","jetpack"),redirectUri:"admin.php?page=jetpack",from:e&&e.get("from")||this.props.connectingUserFrom},R().createElement("ul",null,R().createElement("li",null,__("Receive instant downtime alerts","jetpack")),R().createElement("li",null,__("Automatically share your content on social media","jetpack")),R().createElement("li",null,__("Let your subscribers know when you post","jetpack")),R().createElement("li",null,__("Receive notifications about new likes and comments","jetpack")),R().createElement("li",null,__("Let visitors share your content on social media","jetpack")),R().createElement("li",null,(0,d.createInterpolateElement)(__("And more! <a>See all Jetpack features</a>","jetpack"),{a:R().createElement("a",{href:(0,i.Z)("jetpack-features"),target:"_blank",rel:"noreferrer"})}),R().createElement("a",{className:"jp-connection-screen-icon",href:(0,i.Z)("jetpack-features"),target:"_blank",rel:"noreferrer"},R().createElement(p.Dashicon,{icon:"external"})))))}if(!this.props.userCanManageModules)return!!this.props.siteConnectionStatus&&R().createElement("div",{"aria-live":"assertive"},R().createElement(j.Z,this.props));if(this.isMainConnectScreen()){const e=new URLSearchParams(location.search.split("?")[1]);return R().createElement(r.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,images:["/images/connect-right.jpg"],assetBaseUrl:this.props.pluginBaseUrl,autoTrigger:this.shouldAutoTriggerConnection(),redirectUri:"admin.php?page=jetpack",from:e&&e.get("from")},R().createElement("p",null,__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack")),R().createElement("ul",null,R().createElement("li",null,__("Measure your impact with Jetpack Stats","jetpack")),R().createElement("li",null,__("Speed up your site with optimized images","jetpack")),R().createElement("li",null,__("Protect your site against bot attacks","jetpack")),R().createElement("li",null,__("Get notifications if your site goes offline","jetpack")),R().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=R().createElement(h.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/setup":this.props.isSiteConnected&&(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;case"/my-plan":t=R().createElement(P.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/plans":case"/plans-prompt":window.location.href=(0,i.Z)("jetpack-plans",{site:this.props.siteRawUrl});break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/earn":case"/newsletter":case"/traffic":case"/privacy":t=R().createElement(U.Z,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus,userCanManageModules:this.props.userCanManageModules});break;case"/license/activation":this.props.isLinked&&this.props.isConnectionOwner?t=R().createElement(c.I,{siteRawUrl:this.props.siteRawUrl,onActivationSuccess:this.onLicenseActivationSuccess,siteAdminUrl:this.props.siteAdminUrl,currentRecommendationsStep:this.props.currentRecommendationsStep}):(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;case"/recommendations":case"/recommendations/site-type":case"/recommendations/product-suggestions":case"/recommendations/product-purchased":case"/recommendations/agency":case"/recommendations/woocommerce":case"/recommendations/monitor":case"/recommendations/newsletter":case"/recommendations/related-posts":case"/recommendations/creative-mail":case"/recommendations/site-accelerator":case"/recommendations/publicize":case"/recommendations/protect":case"/recommendations/anti-spam":case"/recommendations/videopress":case"/recommendations/backup-plan":case"/recommendations/boost":case"/recommendations/summary":case"/recommendations/vaultpress-backup":case"/recommendations/vaultpress-for-woocommerce":case"/recommendations/welcome-backup":case"/recommendations/welcome-complete":case"/recommendations/welcome-security":case"/recommendations/welcome-starter":case"/recommendations/welcome-antispam":case"/recommendations/welcome-videopress":case"/recommendations/welcome-search":case"/recommendations/welcome-scan":case"/recommendations/welcome-golden-token":case"/recommendations/backup-activated":case"/recommendations/scan-activated":case"/recommendations/antispam-activated":case"/recommendations/videopress-activated":case"/recommendations/search-activated":case"/recommendations/server-credentials":this.props.showRecommendations?t=R().createElement(z.V,null):(this.props.history.replace("/dashboard"),t=this.getAtAGlance());break;default:if(M.w7.includes(e)){t=R().createElement(Z.Z,null);break}this.props.history.replace("/dashboard"),t=this.getAtAGlance()}return this.props.isWoaSite?window.wpNavMenuClassChange({dashboard:1,settings:1}):this.props.showMyJetpack?window.wpNavMenuClassChange():window.wpNavMenuClassChange({dashboard:1,settings:2}),R().createElement("div",{"aria-live":"assertive",className:""+(this.shouldBlurMainContent()?"blur":"")},t)};getAtAGlance(){return R().createElement(h.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus})}shouldShowAppsCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&this.props.userCanViewStats&&Y.includes(this.props.location.pathname)}shouldShowAgenciesCard(){const{site_count:e}=this.props.connectedWpComUser;return this.props.userCanConnectSite&&e>=2&&this.props.isSiteConnected&&!this.props.isAtomicSite&&!this.shouldShowWooConnectionScreen()&&Y.includes(this.props.location.pathname)}shouldShowSupportCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&this.props.userCanManageModules&&Y.includes(this.props.location.pathname)}shouldShowRewindStatus(){return this.props.isSiteConnected&&Y.includes(this.props.location.pathname)}shouldShowMasthead(){return!this.isMainConnectScreen()&&[...Y,...G,...X].includes(this.props.location.pathname)}shouldShowFooter(){return[...Y,...X,...G,...M.w7].includes(this.props.location.pathname)}shouldBlurMainContent(){return this.props.isReconnectingSite}shouldShowReconnectModal(){return"/reconnect"===this.props.location.pathname}closeReconnectModal(){this.props.history.replace("/dashboard")}isMainConnectScreen(){return!1===this.props.siteConnectionStatus&&this.props.userCanConnectSite}isUserConnectScreen(){return"/connect-user"===this.props.location.pathname||"/connect-user-setup"===this.props.location.pathname}shouldShowWooConnectionScreen(){return"/woo-setup"===this.props.location.pathname}shouldConnectUser(){return this.props.isConnectingUser}connectUser(){this.props.resetConnectUser(),this.props.history.replace("/connect-user")}isLicensingScreen(){return this.props.location.pathname.startsWith("/license")}shouldAutoTriggerConnection(){return this.props.location.pathname.startsWith("/setup")||this.props.location.pathname.startsWith("/connect-user-setup")}onLicenseActivationSuccess(){this.props.updateUserLicensesCounts().then((()=>{this.props.updateLicensingActivationNoticeDismiss()})),this.props.fetchSiteData(),this.props.fetchSitePurchases(),this.props.fetchModules(),this.props.fetchSettings()}render(){const e=["jp-lower"];this.isMainConnectScreen()&&e.push("jp-main-connect-screen"),this.isUserConnectScreen()&&e.push("jp-user-connect-screen"),this.isLicensingScreen()&&e.push("jp-licensing-screen");const t=this.renderMainNav(this.props.location.pathname),n=t||this.shouldShowMasthead()||this.shouldShowRewindStatus();return R().createElement("div",null,this.shouldShowReconnectModal()&&R().createElement(C.Z,{show:!0,onHide:this.closeReconnectModal}),n&&R().createElement("div",{className:"jp-top"},R().createElement("div",{className:"jp-top-inside"},this.shouldShowMasthead()&&R().createElement(w.Z,{location:this.props.location}),this.shouldShowRewindStatus()&&R().createElement(v.Z,null),t)),R().createElement("div",{className:e.join(" ")},R().createElement(g.Z,null),R().createElement(E.ZP,null),this.shouldConnectUser()&&this.connectUser(),R().createElement(I.NL,{when:this.props.areThereUnsavedSettings,message:this.handleRouterWillLeave}),this.renderMainContent(this.props.location.pathname),this.shouldShowAgenciesCard()&&R().createElement($.Z,{path:this.props.location.pathname,discountPercentage:60}),this.shouldShowSupportCard()&&R().createElement(S.Z,{path:this.props.location.pathname}),this.shouldShowAppsCard()&&R().createElement(f.Z,null)),this.shouldShowFooter()&&R().createElement(_.Z,{siteAdminUrl:this.props.siteAdminUrl}),R().createElement(N.Z,{analytics:A.Z}))}}t.Z=(0,L.$j)((e=>({isOfflineMode:(0,D.Ex)(e),connectionStatus:(0,D.Zp)(e),siteConnectionStatus:(0,D.Gz)(e),connectedWpComUser:(0,D.tN)(e),isLinked:(0,D.BU)(e),isConnectingUser:(0,D.zq)(e),hasConnectedOwner:(0,D.it)(e),isConnectionOwner:(0,D.QM)(e),siteRawUrl:(0,V.JR)(e),siteAdminUrl:(0,V.wW)(e),searchTerm:(0,q.He)(e),apiRoot:(0,V.yB)(e),apiNonce:(0,V.VY)(e),registrationNonce:(0,V.H$)(e),tracksUserData:(0,V.hv)(e),areThereUnsavedSettings:(0,W.GD)(e),userCanManageModules:(0,V.pK)(e),userCanConnectSite:(0,V.Mc)(e),userCanViewStats:(0,V.px)(e),isSiteConnected:(0,D.q7)(e),isReconnectingSite:(0,D.O_)(e),rewindStatus:(0,H.of)(e),currentVersion:(0,V.w1)(e),showRecommendations:(0,V.mb)(e),pluginBaseUrl:(0,V.wB)(e),connectUrl:(0,D.AM)(e),connectingUserFeatureLabel:(0,D.xP)(e),connectingUserFrom:(0,D._8)(e),isAtomicSite:(0,V.Ug)(e),isWoaSite:(0,V.Pw)(e),showMyJetpack:(0,V.GC)(e),isWooCommerceActive:(0,V.nP)(e),hasSeenWCConnectionModal:(0,D.rH)(e),partnerCoupon:(0,V.DV)(e),currentRecommendationsStep:(0,V.rd)(e),isSubscriber:(0,V.dc)(e)})),(e=>({setInitialState:()=>e((0,V.KY)()),clearUnsavedSettingsFlag:()=>e((0,W._1)()),setHasSeenWCConnectionModal:()=>e((0,D.qJ)()),resetConnectUser:()=>e((0,D.HD)()),updateLicensingActivationNoticeDismiss:()=>e((0,F.bT)()),updateUserLicensesCounts:()=>e((0,F.Ng)()),fetchSiteData:()=>e((0,J.tO)()),fetchSitePurchases:()=>e((0,J.Z_)()),fetchModules:()=>e((0,B.Z$)()),fetchSettings:()=>e((0,W.wv)())})))((0,u.withDispatch)((e=>({setConnectionStatus:t=>{e(o.t).setConnectionStatus(t)}})))((0,I.EN)(Q))),window.wpNavMenuClassChange=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{myJetpack:1,dashboard:2,settings:3},t=window.location.hash,n=new URLSearchParams(window.location.search);T()(".current").each((function(e,t){T()(t).removeClass("current")}));const s=e=>T()("#toplevel_page_jetpack").find("li").filter((function(t){return t===e}))[0];t=t.split("?")[0].replace(/#/,""),n=n.get("page"),K.includes(n)?s(e.myJetpack)?.classList.add("current"):Y.includes(t)||G.includes(t)||M.w7.includes(t)?s(e.dashboard)?.classList.add("current"):X.includes(t)&&s(e.settings)?.classList.add("current");const a=T()("body");a.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)})),a.on("click",".jetpack-js-stop-propagation",(function(e){e.stopPropagation()}))}},6257:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=n(53184),a=n(92819);function i(e){(0,a.assign)(e,s.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},38106:function(e,t,n){"use strict";var s=n(65736),a=n(70298),i=n(69270),r=n(99196),o=n.n(r),c=n(59309),l=n(96300),p=n(33002),u=n(49308),d=n(92709),m=n(41863);const __=s.__;t.Z=(0,c.$j)((e=>({activeFeatures:(0,p.$l)(e),activeProducts:(0,p.p)(e),availableFeatures:(0,p.ms)(e),getSiteConnectionStatus:()=>(0,l.Gz)(e),purchases:(0,p.qn)(e),sitePlan:(0,p.UL)(e)})))((function(e){let t=e.sitePlan.product_slug||"",n=e.availableFeatures,s=e.activeFeatures;return"offline"===e.getSiteConnectionStatus(e)&&(t="offline",n={},s={}),o().createElement(o().Fragment,null,o().createElement("h1",{className:"screen-reader-text"},__("Jetpack My Plan Details","jetpack")),o().createElement(i.Z,null),o().createElement(a.Z,null),o().createElement(m.Z,{siteRawUrl:e.siteRawUrl}),o().createElement(d.Z,{activeProducts:e.activeProducts,plan:t,purchases:e.purchases,siteAdminUrl:e.siteAdminUrl}),o().createElement(u.Z,{activeFeatures:s,availableFeatures:n,plan:t,rewindStatus:e.rewindStatus,siteAdminUrl:e.siteAdminUrl,siteRawUrl:e.siteRawUrl}))}))},18669:function(e,t,n){"use strict";var s=n(80800),a=n(84069),i=n(25162),r=n.n(i),o=n(99196),c=n.n(o),l=n(71459);const p=e=>{const{additionalEventProperties:t,productSlug:n,action:i,title:r,tagLine:p,trackingId:u}=e;(0,o.useEffect)((()=>{a.Z.tracks.recordEvent("jetpack_my_plan_banner_view",{type:u,...t})}),[t,u]);const d=(0,o.useCallback)((()=>{a.Z.tracks.recordJetpackClick({target:u,feature:"my-plan-banner",page:"my-plan",...t})}),[t,u]);return c().createElement("div",{className:"jp-my-plan-banner"},c().createElement("div",{className:"jp-my-plan-banner__card dops-card",style:{backgroundImage:`url(${s.hp}jetpack-banner-gradient.png)`}},c().createElement(l.Z,{productSlug:n,action:c().cloneElement(i,{onClick:d}),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])},t.Z=p},49308:function(e,t,n){"use strict";var s=n(80800),a=n(6895),i=n(55609),r=n(65736),o=n(97506),c=n(7679),l=n(84069),p=n(59584),u=n(92819),d=n(25162),m=n.n(d),h=n(99196),g=n.n(h),f=n(59309),k=n(69508),v=n(50416),_=n(91952),E=n(11834),w=n(33002),b=n(61372);const __=r.__;class y extends g().Component{static propTypes={plan:m().string};static defaultProps={plan:""};trackPlansClick=e=>{l.Z.tracks.recordJetpackClick({page:"my-plan",target:e,plan:this.props.plan})};handleButtonClickForTracking=e=>()=>this.trackPlansClick(e);activateAds=()=>{this.props.activateModule("wordads"),this.trackPlansClick("activate_wordads")};activatePublicize=()=>{this.props.activateModule("publicize"),this.trackPlansClick("activate_publicize")};activateVideoPress=()=>{this.props.activateFeature("videopress"),this.trackPlansClick("activate_videopress")};activateGoogleAnalytics=()=>{this.props.activateModule("google-analytics"),this.trackPlansClick("activate_ga")};render(){let e="";const t="offline"!==this.props.plan?(0,p.scx)(this.props.plan):"offline",n=(0,u.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,u.get)(this.props.rewindStatus,["state"],!1),l=!this.props.showBackups||!r&&"unavailable"!==(0,u.get)(this.props.rewindStatus,["state"],!1),d=e=>{const{title:t,description:n}=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.hp+"products/product-jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:__("A Jetpack Site securely backed up with Jetpack Backup","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},t),g().createElement("p",null,n),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_backup_dash"),href:(0,a.Z)("calypso-activity-log",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("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.hp+"products/product-jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site backups","jetpack")),g().createElement("p",null,__("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_security_dash_rewind"),href:(0,a.Z)("calypso-activity-log",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("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.hp+"products/product-jetpack-protect.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site security","jetpack")),g().createElement("p",null,e+__(" (powered by VaultPress).","jetpack")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_security_dash"),href:(0,a.Z)("vaultpress-dashboard"),compact:!0,rna:!0},g().createElement(i.ExternalLink,null," ",__("View your security dashboard","jetpack"))):g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("configure_vault"),href:(0,a.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:"only=vaultpress"}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("View settings","jetpack")))))};let h;"is-daily-backup-plan"===t&&(h=d({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=d({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 f=()=>g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"products/product-jetpack-search.svg",className:"jp-landing__plan-features-icon",alt:__("A Jetpack Site with the power of Jetpack Search","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Instant search and filtering","jetpack")),g().createElement("p",null,__("Relevant search results and filtering tightly integrated with your theme.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_search_customizer"),href:this.props.siteAdminUrl+"admin.php?page=jetpack-search-configure",compact:!0,rna:!0},__("Customize Search","jetpack"))));switch(t){case"is-personal-plan":case"is-premium-plan":case"is-jetpack-starter-plan":case"is-security-t1-plan":case"is-security-t2-plan":case"is-business-plan":case"is-complete-plan":case"is-daily-security-plan":case"is-realtime-security-plan":e=g().createElement("div",{className:"jp-landing__plan-features"},"is-personal-plan"===t&&m(),"is-premium-plan"===t&&m(),"is-business-plan"===t&&m(),this.props.hasInstantSearch&&f(),"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.hp+"products/product-jetpack-boost.svg",className:"jp-landing__plan-features-icon",alt:__("A fast and performant website","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Optimized performance","jetpack")),g().createElement("p",null,__("Load pages faster by serving your images from our global network of servers.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("paid_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance",compact:!0,rna:!0},__("Make your site faster","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"products/product-jetpack-anti-spam.svg",className:"jp-landing__plan-features-icon",alt:__("A folder holding real comments","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Anti-spam","jetpack")),g().createElement("p",null,__("Spam is automatically blocked from your comments.","jetpack")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:`${this.props.siteAdminUrl}admin.php?page=akismet-key-config&view=stats`,compact:!0,rna:!0},__("View your spam stats","jetpack")):g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("configure_akismet"),href:(0,a.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:"only=akismet"}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("View settings","jetpack"))))),n&&"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.hp+"products/product-jetpack-videopress.svg",className:"jp-landing__plan-features-icon",alt:__("A cloud with multiple types of content floating around it","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("VideoPress","jetpack")),g().createElement("p",null,__("High-speed, high-definition video hosting with no third-party ads.","jetpack")),this.props.getFeatureState("videopress")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php",compact:!0,rna:!0},__("Upload videos","jetpack")):g().createElement(o.Z,{onClick:this.activateVideoPress,disabled:this.props.isActivatingFeature("videopress"),compact:!0,rna:!0},__("Activate VideoPress","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Interface showing a chronological list of changes and updates in a site","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site activity","jetpack")),g().createElement("p",null,__("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:(0,a.Z)("calypso-activity-log",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("View your site activity","jetpack"))))),n&&"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.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("A chart showing an healthy increase in earnings","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Monetize your site with ads","jetpack")),g().createElement("p",null,__("WordAds lets you earn money by displaying promotional content. Start earning today.","jetpack")),this.props.isModuleActivated("wordads")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_earnings"),href:(0,a.Z)("wpcom-ads-earnings",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("View your earnings","jetpack"))):g().createElement(o.Z,{onClick:this.activateAds,disabled:this.props.isActivatingModule("wordads"),compact:!0,rna:!0},__("Start earning","jetpack")))),n&&"inactive"!==this.props.getModuleOverride("google-analytics")&&g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Charts depicting an evolution in traffic and engagement","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Google Analytics","jetpack")),g().createElement("p",null,__("Complement WordPress.com’s stats with Google’s in-depth look at your visitors and traffic patterns.","jetpack")),this.props.isModuleActivated("google-analytics")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("configure_ga"),href:(0,a.Z)("calypso-marketing-traffic",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("Configure Google Analytics","jetpack"))):g().createElement(o.Z,{onClick:this.activateGoogleAnalytics,disabled:this.props.isActivatingModule("google-analytics"),compact:!0,rna:!0},__("Activate Google Analytics","jetpack")))),n&&"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.hp+"products/product-jetpack-social.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Marketing automation","jetpack")),g().createElement("p",null,__("Schedule unlimited tweets, Facebook posts, and other social posts in advance.","jetpack")),this.props.isModuleActivated("publicize")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("schedule_posts"),href:(0,a.Z)("calypso-edit-posts",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("Schedule posts","jetpack"))):g().createElement(o.Z,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize"),compact:!0,rna:!0},__("Activate Jetpack Social","jetpack")))));break;case"is-free-plan":case"is-backup-t0-plan":case"is-backup-t1-plan":case"is-backup-t2-plan":case"is-search-plan":case"is-jetpack-golden-token-plan":case"is-free-search-plan":case"is-jetpack-creator-plan":case"offline":case"is-daily-backup-plan":case"is-realtime-backup-plan":e=g().createElement("div",{className:"jp-landing__plan-features"},h,this.props.hasInstantSearch&&f(),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"products/product-jetpack-protect.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Always-on security","jetpack")),g().createElement("p",null,__("Prevent login attacks, and get instant notifications when there’s an issue with your site.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_security"),href:(0,a.Z)("calypso-settings-security",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("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.hp+"products/product-jetpack-boost.svg",className:"jp-landing__plan-features-icon",alt:__("A fast and performant website","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Optimized performance","jetpack")),g().createElement("p",null,__("Load pages faster by serving your images from our global network of servers.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance",compact:!0,rna:!0},__("Make your site faster","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("A wide variety of themes and tools to customize a site","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Design the perfect website","jetpack")),g().createElement("p",null,__("Get access to professionally crafted themes offered on WordPress.com, & customize your site exactly how you like it.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_themes"),href:(0,a.Z)("calypso-themes",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("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.hp+"products/product-jetpack-social.svg",className:"jp-landing__plan-features-icon",alt:__("Jetpack Stats showing an evolution in traffic and engagement","jetpack")})),"inactive"!==this.props.getModuleOverride("publicize")&&g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Increase traffic to your site","jetpack")),g().createElement("p",null,__("Reach a wider audience by automatically sharing your posts on social media.","jetpack")),this.props.isModuleActivated("publicize")?g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_sharing"),href:(0,a.Z)("calypso-marketing-connections",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("Start sharing","jetpack"))):g().createElement(o.Z,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize"),compact:!0,rna:!0},__("Activate Jetpack Social","jetpack")))),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("div",{className:"jp-landing__plan-features-img"},g().createElement("img",{src:s.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Interface showing a chronological list of changes and updates in a site","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site activity","jetpack")),g().createElement("p",null,__("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:(0,a.Z)("calypso-activity-log",{site:this.props.siteRawUrl}),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("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.hp+"plans/jetpack.svg",className:"jp-landing__plan-features-icon",alt:__("Chat bubbles representing getting in touch with support","jetpack")})),g().createElement("div",{className:"jp-landing__plan-features-text"},g().createElement("h3",{className:"jp-landing__plan-features-title"},__("Support documentation","jetpack")),g().createElement("p",null,__("Need help? Learn about getting started, customizing your site, using advanced code snippets, and more.","jetpack")),g().createElement(o.Z,{onClick:this.handleButtonClickForTracking("free_support_documentation"),href:(0,a.Z)("jetpack-support"),compact:!0,rna:!0},g().createElement(i.ExternalLink,null,__("Search support docs","jetpack"))))));break;default:e=g().createElement("div",{className:"jp-landing__plan-features is-loading"},g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),g().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),g().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),g().createElement("div",{className:"jp-landing__plan-features-card"},g().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),g().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return g().createElement("div",null,g().createElement(c.Z,null),e)}}t.Z=(0,f.$j)((e=>({hasInstantSearch:(0,w.CV)(e,"instant-search"),isFetchingPluginsData:(0,b.vz)(e),isPluginActive:t=>(0,b.TB)(e,t),isPluginInstalled:t=>(0,b.P8)(e,t),isModuleActivated:t=>(0,v.mp)(e,t),isActivatingModule:t=>(0,v.ZY)(e,t),getModuleOverride:t=>(0,v.Qy)(e,t),showBackups:(0,k.xR)(e),getFeatureState:t=>(0,E.$8)(e,t),isActivatingFeature:t=>(0,E.Cu)(e,t)})),(e=>({fetchPluginsData:()=>e((0,b.s4)()),activateModule:t=>e((0,v.d)(t)),activateFeature:t=>e((0,_.VP)({[t]:!0}))})))(y)},71459:function(e,t,n){"use strict";var s=n(65235),a=n.n(s),i=n(53234),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c);const p=e=>{let{productSlug:t,action:n,isError:s,isPlaceholder:r,details:o,tagLine:c,title:p,isPlan:u,cardClassNames:d=[]}=e;d=a()("my-plan-card",...d,{"is-placeholder":r,"is-plan":u,"has-action-only":n&&!o&&!r});const m=a()("my-plan-card__details",{"is-error":s});return l().createElement("div",{className:d},l().createElement("div",{className:"my-plan-card__primary"},l().createElement("div",{className:"my-plan-card__icon"},t&&l().createElement(i.Z,{plan:t,alt:p})),l().createElement("div",{className:"my-plan-card__header"},p&&l().createElement("h2",{className:"my-plan-card__title"},p),c&&l().createElement("p",{className:"my-plan-card__tag-line"},c))),(o||n||r)&&l().createElement("div",{className:"my-plan-card__secondary"},l().createElement("div",{className:m},r?null:o),l().createElement("div",{className:"my-plan-card__action"},r?null:n)))};p.propTypes={productSlug:o().string.isRequired,action:o().oneOfType([o().node,o().element]),isError:o().bool,isPlaceholder:o().bool,details:o().oneOfType([o().string,o().node,o().element]),tagLine:o().oneOfType([o().string,o().node,o().element]),title:o().oneOfType([o().string,o().node,o().element]),classNames:o().array},t.Z=p},92709:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(55609),o=n(69771),c=n(69307),l=n(65736),p=n(65235),u=n.n(p),d=n(97506),m=n(85799),h=n(30420),g=n(38833),f=n(37834),k=n(84069),v=n(59584),_=n(92819),E=n(25162),w=n.n(E),b=n(99196),y=n.n(b),j=n(59309),C=n(69508),S=n(59963),N=n(71459),x=n(47487);const __=l.__,_n=l._n,_x=l._x;class T extends y().Component{getProductProps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const{displayBackups:n,dateFormat:s,purchases:a}=this.props,i={productSlug:e};if(!e)return{...i,isPlaceholder:!0};const r=(0,_.find)(a,(t=>t.product_slug===e));let p,u;switch(r&&(p=y().createElement(g.Z,{key:"product-expiration",dateFormat:s,expiryDate:r.expiry_date,purchaseDate:r.subscribed_date,isRefundable:r.is_refundable,isGift:(0,v.oay)(r.product_slug),purchaseID:r.ID}),u="1"===r.active?(0,o.isInTheFuture)(r.expiry_date)||null===r.expiry_date?y().createElement(h.w,{key:"product-activated",type:null===r.expiry_date?"never-expires":""}):y().createElement(h.w,{key:"product-expired",type:"product-expired"}):null),(0,v.scx)(e)){case"is-free-plan":{let e=__("Worried about security? Get backups, automated security fixes and more: <a>Upgrade now</a>","jetpack");if(t.length){const n=t.some((e=>{let{product_slug:t}=e;return v.jTC.includes(t)})),s=t.some((e=>{let{product_slug:t}=e;return v.Cbu.includes(t)}));n&&s?e=__("Upgrade your site to access additional features, including spam protection and priority support: <a>Upgrade now</a>","jetpack"):n?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(f.Z,{source:"my-plan-header-free-plan-text-link",target:"upgrade-now",feature:"my-plan-header-free-upgrade"})}),title:__("Jetpack Free","jetpack")}}case"is-personal-plan":return{...i,details:p,tagLine:n?__("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:[u,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:[u,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:[u,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ | |
| 61 | -_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:[u,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ | |
| 62 | -_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:[u,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:[u,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ | |
| 63 | -_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:[u,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */ | |
| 64 | -_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:[u,p],tagLine:(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: %1$d is the number of terabytes of storage space the site has. */ | |
| 65 | -_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:[u,p],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search","jetpack")};case"is-free-search-plan":return{...i,details:[u,p],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search Free","jetpack")};case"is-scan-plan":return{...i,details:[u,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:[u,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:[u,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:[u,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-advanced-plan":return{...i,details:[u,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:[u,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:[u,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:[u,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:[u,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:[u,p],tagLine:__("Simple, yet powerful analytics with priority support.","jetpack"),title:__("Jetpack Stats","jetpack")};case"is-free-jetpack-stats-plan":return{...i,details:[u,p],tagLine:__("Simple, yet powerful analytics.","jetpack"),title:__("Jetpack Stats Free","jetpack")};case"is-jetpack-creator-plan":return{...i,details:[u,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,_.isEmpty)(this.props.activeProducts)||this.props.plan!==v.ljz?y().createElement(m.Z,{compact:!0},this.renderHeader(__("My Plan","jetpack")),y().createElement(N.Z,a()({},this.getProductProps(this.props.plan,this.props.activeProducts),{isPlan:!0}))):null}renderProducts(){return(0,_.isEmpty)(this.props.activeProducts)?null:y().createElement(m.Z,{compact:!0},this.renderHeader(__("My Products","jetpack")),this.props.activeProducts.map((e=>{let{ID:t,product_slug:n}=e;return y().createElement(N.Z,a()({key:"product-card-"+t},this.getProductProps(n)))})))}renderHeader(e){return y().createElement("h3",{className:"jp-landing__card-header"},e)}renderLicensingActions=(()=>{var e=this;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"header";const{hasDetachedUserLicenses:n,showRecommendations:s,siteAdminUrl:a,purchases:o}=e.props;if(!s)return null;const l=!!o?.length&&"header"===t;return y().createElement(m.Z,{compact:!0},y().createElement("div",{className:"jp-landing__licensing-actions"},"header"===t&&y().createElement("span",null,(0,c.createInterpolateElement)(/* translators: %s is the link to the License management page. */ | |
| 66 | -__("Got a license key? <a>Activate it here.</a>","jetpack"),{a:y().createElement("a",{href:window.Initial_State?.useMyJetpackLicensingUI?a+"admin.php?page=my-jetpack#/add-license":a+"admin.php?page=jetpack#/license/activation",onClick:e.trackLicenseActivationClick,className:"jp-landing__licensing-actions-link"})})),y().createElement("div",{className:u()("jp-landing__licensing-actions-item",{"no-licenses":!n,"no-purchases":!l})},l&&y().createElement(d.Z,{onClick:e.trackAllPurchasesClick,href:(0,i.Z)("calypso-purchases"),compact:!0,rna:!0},y().createElement(r.ExternalLink,null,__("View all purchases","jetpack"))),"footer"===t&&y().createElement(d.Z,{href:a+"admin.php?page=jetpack#/recommendations",onClick:e.trackRecommendationsClick,primary:!0,rna:!0},_x("Recommendations","Navigation item.","jetpack")))))}})();trackAllPurchasesClick=()=>{k.Z.tracks.recordJetpackClick({target:"calypso_purchases_link",page:"my-plan"})};trackLicenseActivationClick=()=>{k.Z.tracks.recordJetpackClick({target:"licensing_activation_button",path:"licensing/activation",page:"my-plan"})};trackRecommendationsClick=()=>{k.Z.tracks.recordJetpackClick({target:"recommendations-button",page:"my-plan"})};renderFooter(){return!this.props.hasDetachedUserLicenses&&this.renderLicensingActions("footer")}render(){return y().createElement("div",{className:"jp-landing__plans"},this.renderLicensingActions(),this.renderPlan(),this.renderProducts(),this.renderFooter(),this.props.showLicensingUi&&y().createElement(m.Z,{compact:!0},y().createElement(x.Z,null)))}}T.propTypes={activeProducts:w().array,plan:w().string,purchases:w().array,siteAdminUrl:w().string,dateFormat:w().string,displayBackups:w().bool,plansMainTopUpgradeUrl:w().string,showRecommendations:w().bool},t.Z=(0,j.$j)((e=>({dateFormat:(0,C.mh)(e),displayBackups:(0,C.xR)(e),plansMainTopUpgradeUrl:(0,C.Qq)(e,"plans-main-top"),showRecommendations:(0,C.mb)(e),showLicensingUi:(0,C.Yg)(e),hasDetachedUserLicenses:!!(0,S.O4)(e)})))(T)},47487:function(e,t,n){"use strict";var s=n(64743),a=n(65736),i=n(97506),r=n(41549),o=n(9494),c=n(99196),l=n.n(c),p=n(59309),u=n(59963);const __=a.__,_x=a._x;t.Z=(0,p.$j)(null,{errorNotice:r.tF,successNotice:r.RT,updateUserLicensesCounts:u.Ng})((e=>{let{errorNotice:t,successNotice:n,updateUserLicensesCounts:a}=e;const[r,p]=(0,c.useState)(!1),[u,d]=(0,c.useState)(""),m=(0,c.useCallback)((e=>{d(e.target.value)}),[]),h=(0,c.useCallback)((()=>{u&&!r&&(p(!0),s.ZP.updateLicenseKey(u).then((()=>{a(),n(__("Jetpack license key added. It may take a minute for the license to be processed.","jetpack")),p(!1),d("")})).catch((()=>{t(__("Error adding Jetpack license key.","jetpack")),p(!1)})))}),[t,n,r,u,a]);return l().createElement("div",{className:"jp-landing__plan-features-header-jetpack-license"},l().createElement("h3",null,__("Jetpack License","jetpack")),l().createElement("p",null,__('If you have a Jetpack license key paste it here to queue it for activation. Once your license is processed your product will appear under "My Plan".',"jetpack")),l().createElement(o.Z,{name:"jetpack_license_key",className:"code",value:u,placeholder:__("Jetpack licence key","jetpack"),disabled:r,onChange:m}),l().createElement(i.Z,{primary:!0,compact:!0,onClick:h},r?_x("Applying…","Button caption","jetpack"):_x("Apply license","Button caption","jetpack",0)))}))},41863:function(e,t,n){"use strict";var s=n(6895),a=n(65736),i=n(97506),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(59309),u=n(69508),d=n(18669);const __=a.__,m=e=>{let{partnerCoupon:t,siteRawUrl:n}=e;if("object"!=typeof t)return null;const r=l().createElement(i.Z,{primary:!0,href:(0,s.Z)("jetpack-plugin-partner-coupon-checkout",{path:t.product.slug,site:n,query:`coupon=${t.coupon_code}`})},__("Redeem","jetpack"));return l().createElement(d.Z,{productSlug:t.product.slug,action:r,title:(0,a.sprintf)(/* translators: %s: Jetpack product or plan name. */ | |
| 67 | -__("Get %s free for one year!","jetpack"),t.product.title),tagLine:(0,a.sprintf)(/* translators: %1$s: the name of a Jetpack partner, %2$s: the name of a Jetpack product or plan. */ | |
| 68 | -__("Redeem your %1$s coupon to get started with %2$s for free the first year!","jetpack"),t.partner.name,t.product.title),trackingId:"jetpack-partner-coupon",additionalEventProperties:{coupon:t.coupon_code}})};m.propTypes={partnerCoupon:o().oneOfType([o().object,o().bool]).isRequired,siteRawUrl:o().string.isRequired},t.Z=(0,p.$j)((e=>({partnerCoupon:(0,u.DV)(e)})))(m)},32466:function(e,t,n){"use strict";var s=n(65736),a=n(69270),i=n(99196),r=n.n(i),o=n(59309),c=n(50416),l=n(89292),p=n(19366);const __=s.__;t.Z=(0,o.$j)((e=>({module:t=>(0,c.rT)(e,t),isModuleFound:t=>(0,l.CX)(e,t)})))((function(e){const{active:t,isModuleFound:n,searchTerm:s,siteRawUrl:i}=e,o=n("subscriptions");return(s||t)&&o?r().createElement("div",null,r().createElement(a.Z,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)),o&&r().createElement(p.Z,{siteRawUrl:i})):null}))},19366:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(55609),c=n(65736),l=n(96483),p=n(85799),u=n(66164),d=n(61775),m=n(2353),h=n(5004),g=n(93806),f=n(28178),k=n(84069),v=n(99196),_=n.n(v),E=n(59309),w=n(96300),b=n(69508),y=n(50416);const __=c.__,j=()=>{k.Z.tracks.recordJetpackClick("manage-subscribers")};t.Z=(0,m.u)((0,E.$j)(((e,t)=>({isLinked:(0,w.BU)(e),isOffline:(0,w.Ex)(e),isSubscriptionsActive:t.getOptionValue("subscriptions"),hasSubscriptionModal:(0,b.z8)(e),unavailableInOfflineMode:(0,w.t_)(e,"subscriptions"),subscriptions:(0,y.rT)(e,"subscriptions"),isStbEnabled:t.getOptionValue("stb_enabled"),isStcEnabled:t.getOptionValue("stc_enabled"),isSmEnabled:t.getOptionValue("sm_enabled"),isBlockTheme:(0,b.$2)(e),siteAdminUrl:(0,b.wW)(e),themeStylesheet:(0,b.rf)(e)})))((function(e){const{hasSubscriptionModal:t,unavailableInOfflineMode:n,isLinked:s,isOffline:c,isSavingAnyOption:m,isStbEnabled:k,isStcEnabled:E,isSmEnabled:w,isSubscriptionsActive:b,siteRawUrl:y,subscriptions:C,toggleModuleNow:S,updateFormStateModuleOption:N,isBlockTheme:x,siteAdminUrl:T,themeStylesheet:A}=e,P=T&&A?(0,l.addQueryArgs)(`${T}site-editor.php`,{postType:"wp_template_part",postId:`${A}//jetpack-subscribe-modal`,canvas:"edit"}):null,Z=(0,v.useCallback)((()=>{N("subscriptions","stb_enabled")}),[N]),M=(0,v.useCallback)((()=>{N("subscriptions","stc_enabled")}),[N]),O=(0,v.useCallback)((()=>{N("subscriptions","sm_enabled")}),[N]);return _().createElement(g.Z,a()({},e,{hideButton:!0,module:"subscriptions"}),_().createElement(f.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:C,support:{text:__("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.","jetpack"),link:(0,i.Z)("jetpack-support-subscriptions")}},_().createElement(h.T,{slug:"subscriptions",disabled:n||!s,activated:b,toggling:m("subscriptions"),toggleModule:S},_().createElement("span",{className:"jp-form-toggle-explanation"},C.description)),_().createElement(d.C_,null,_().createElement(r.Z,{checked:b&&k,disabled:!b||n||m(["subscriptions"])||!s,toggling:m(["stb_enabled"]),onChange:Z,label:__("Enable the “subscribe to site” option on your comment form","jetpack")}),_().createElement(r.Z,{checked:b&&E,disabled:!b||n||m(["subscriptions"])||!s,toggling:m(["stc_enabled"]),onChange:M,label:__("Enable the “subscribe to comments” option on your comment form","jetpack")}),t&&_().createElement(_().Fragment,null,_().createElement(r.Z,{checked:b&&w,disabled:!b||n||m(["subscriptions"])||!s,toggling:m(["sm_enabled"]),onChange:O,label:__("Enable subscriber pop-up","jetpack")}),_().createElement("p",{className:"jp-form-setting-explanation"},__("Automatically add a subscribe form pop-up to every post and turn visitors into subscribers. It will appear as readers scroll through your posts.","jetpack"),x&&P&&_().createElement(_().Fragment,null," ",_().createElement(o.ExternalLink,{href:P},__("Preview and edit the pop-up","jetpack"))))))),!n&&b&&s?_().createElement(p.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:j,href:(0,i.Z)("calypso-subscribers",{site:y}),target:"_blank",rel:"noopener noreferrer"},__("Manage all subscribers","jetpack")):"",!s&&!c&&_().createElement(u.Z,{feature:"subscriptions",featureLabel:__("Newsletter","jetpack"),text:__("Connect to manage your subscriptions settings.","jetpack")}))})))},91088:function(e,t,n){"use strict";var s=n(51128),a=n.n(s),i=n(6257);const r=a()("calypso:notices");r("initializing notices");const o={containerNames:{}};(0,i.Z)(o);let c=[];const l={new:function(e,t,n){const s=t.overlay?"overlay-notices":"notices";o.containerNames[s]=s,r("creating notice",e,t,n),o[s]=[];const a={type:t.type||"message",status:n,text:e,duration:t.duration,container:s,button:t.button,href:t.href,onClick:e=>{if("function"==typeof t.onClick){const n=l.removeNotice.bind(l,a);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?c.push(a):o[s].push(a),o.emit("change"),a},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],n=t.indexOf(e);-1!==n&&(t.splice(n,1),o.emit("change"))},clearNoticesOnNavigation:function(e,t){r("clearNoticesOnNavigation");let n,s,a=!1;const i=function(e){return e.persistent};for(s in o.containerNames)n=o[s].length,o[s]=o[s].filter(i),n!==o[s].length&&(a=!0);c.length&&(c.forEach((function(e){o[e.container]=[],o[e.container].push(e)})),c=[]),a&&o.emit("change"),t()},clearNotices:function(e){o[e]=[],o.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.Z=l},62160:function(e,t,n){"use strict";var s=n(65736),a=n(69270),i=n(99196),r=n.n(i),o=n(59309),c=n(96300),l=n(50416),p=n(89292),u=n(719),d=n(29300),m=n(77122);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},t=["photon","videopress","photon-cdn","search"].some(this.props.isModuleFound);return(this.props.searchTerm||this.props.active)&&t?r().createElement("div",null,r().createElement(a.Z,null),r().createElement("h1",{className:"screen-reader-text"},__("Jetpack Performance Settings","jetpack")),r().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Performance","jetpack"):__("Load pages faster, optimize images, and speed up your visitors’ experience.","jetpack")),r().createElement(d.Z,e),r().createElement(m.Z,e),r().createElement(u.Z,e)):null}}t.Z=(0,o.$j)((e=>({module:t=>(0,l.rT)(e,t),isUnavailableInOfflineMode:t=>(0,c.t_)(e,t),isModuleFound:t=>(0,p.CX)(e,t),getModuleOverride:t=>(0,l.Qy)(e,t),hasConnectedOwner:(0,c.it)(e)})))(h)},719:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(94343),o=n(48229),c=n(65736),l=n(61775),p=n(85733),u=n(2353),d=n(5004),m=n(93806),h=n(28178),g=n(59584),f=n(1137),k=n(99196),v=n.n(k),_=n(59309),E=n(96300),w=n(50416),b=n(89292),y=n(33002);const __=c.__,_x=c._x;class j extends v().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:n,hasVideoPressFeature:s,hasVideoPressUnlimitedStorage:c,isFetching:u,isOffline:f,upgradeUrl:k,videoPressStorageUsed:_}=this.props,E=s&&!c&&null!==_,w=s||null===_||0!==_?__("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"),b=v().createElement(h.Z,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:(0,i.Z)("jetpack-support-videopress")}},v().createElement(l.Gj,{className:"jp-form-label-wide"},__("VideoPress","jetpack")),v().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")," "),E&&v().createElement("div",{className:"media__videopress-storage"},v().createElement("span",null,__("Video storage used out of 1TB:","jetpack")),v().createElement(r.Z,{progress:_/1e6})),n&&v().createElement(v().Fragment,null,v().createElement(d.T,{slug:"videopress",disabled:this.props.isUnavailableInOfflineMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable VideoPress","jetpack"))),v().createElement(l.C_,null,v().createElement(o.Z,{id:"videopress-site-privacy",disabled:!this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress_private_enabled_for_site"),checked:this.props.getOptionValue("videopress_private_enabled_for_site"),onChange:this.togglePrivacySetting,label:__("Video Privacy: Restrict views to members of this site","jetpack")})))),y="inactive"===this.props.getModuleOverride("videopress"),j=e&&!s&&n&&!f&&!u;return v().createElement(m.Z,a()({},this.props,{header:__("Media","jetpack"),feature:!y&&g.BD8,hideButton:!0}),e&&b,j&&v().createElement(p.ZP,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:w,eventFeature:"videopress",icon:"video",plan:(0,g.o2o)(g.qbT),feature:"jetpack_videopress",href:k,rna:!0}))}}t.Z=(0,_.$j)((e=>({module:t=>(0,w.rT)(e,t),isModuleFound:t=>(0,b.CX)(e,t),sitePlan:(0,y.UL)(e),hasVideoPressFeature:(0,y.CV)(e,"videopress-1tb-storage")||(0,y.CV)(e,"videopress-unlimited-storage")||(0,y.CV)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,y.CV)(e,"videopress-unlimited-storage"),hasConnectedOwner:(0,E.it)(e),isOffline:(0,E.Ex)(e),isFetching:(0,y.GR)(e),getModuleOverride:t=>(0,w.Qy)(e,t),upgradeUrl:(0,f.z)(e,"videopress"),videoPressStorageUsed:(0,y.VH)(e)})))((0,u.u)(j))},29300:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(65736),c=n(85799),l=n(61775),p=n(2353),u=n(5004),d=n(93806),m=n(28178),h=n(59584),g=n(99196),f=n.n(g),k=n(59309),v=n(96300),_=n(69508),E=n(3230),w=n(33002);const __=o.__,b=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),y=__("Customize your Search experience.","jetpack"),j=__("Search supports many customizations. ","jetpack");t.Z=(0,k.$j)((e=>({isLoading:(0,w.GR)(e),inOfflineMode:(0,v.Ex)(e),hasClassicSearch:(0,w.CV)(e,"search"),hasInstantSearch:(0,w.CV)(e,"instant-search"),failedToEnableSearch:!(0,E.qg)(e,"search")&&!(0,E.Cu)(e,"search")&&!1===(0,E.p0)(e,"search"),isWidgetsSupported:(0,_.Cv)(e,"widgets")})))((0,p.u)((function(e){const{failedToEnableSearch:t,hasInstantSearch:n,updateOptions:s}=e,o=e.getOptionValue("search"),p=e.getOptionValue("instant_search_enabled","search"),k=(0,g.useCallback)((()=>{const e={search:!o};p!==(n&&!o)&&(e.instant_search_enabled=n&&!o),s(e)}),[n,p,o,s]),v=(0,g.useCallback)((()=>{const e={instant_search_enabled:n&&!p};e.instant_search_enabled&&!o&&(e.search=!0),s(e)}),[n,p,o,s]);(0,g.useEffect)((()=>{t&&n&&(s({has_jetpack_search_product:!0}),k())}),[t,n,s,k]);const _=!!e.isSavingAnyOption("search"),E=!!e.isSavingAnyOption("instant_search_enabled");return f().createElement(d.Z,a()({},e,{module:"search",feature:h.T54,hideButton:!0}),f().createElement(m.Z,{disableInOfflineMode:!0,hasChild:!0,module:{module:"search"},support:{text:j,link:(0,i.Z)("jetpack-support-search")}},f().createElement("p",null,e.inOfflineMode?__("Unavailable in Offline Mode","jetpack"):b),e.isLoading&&__("Loading…","jetpack"),!e.isLoading&&(e.hasClassicSearch||e.hasInstantSearch)&&f().createElement(g.Fragment,null,f().createElement(u.T,{activated:o,compact:!0,toggling:_,slug:"search",toggleModule:k},__("Enable Search","jetpack")),f().createElement(l.C_,null,f().createElement(r.Z,{checked:o&&p,disabled:_||!e.hasInstantSearch,toggling:E,onChange:v,label:__("Enable instant search experience (recommended)","jetpack"),help:f().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&&f().createElement(c.Z,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},__("Add Jetpack Search Widget","jetpack")),e.hasInstantSearch&&o&&p&&f().createElement(c.Z,{className:"jp-settings-card__configure-link",compact:!0,href:"admin.php?page=jetpack-search-configure"},y))})))},77122:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(65736),c=n(61775),l=n(2353),p=n(5004),u=n(93806),d=n(28178),m=n(84069),h=n(99196),g=n.n(h),f=n(59309),k=n(96300),v=n(50416),_=n(89292),E=n(69508);const __=o.__,w=(0,l.u)(class extends h.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 n=e||t,s=this.props.getModuleOverride("photon-cdn");let a=this.props.getModuleOverride("photon");if(this.props.isOfflineMode&&(a="inactive"),!0===n){const n={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. */ | |
| 69 | -__("Error disabling site accelerator. %s","jetpack"),e)};let i={};!1==!e&&"active"!==a&&(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,n)}else{const n={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. */ | |
| 70 | -__("Error enabling Site accelerator. %s","jetpack"),e)};let i={};!1===e&&"inactive"!==a&&(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,n)}!0===e||!0===t?m.Z.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):m.Z.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),this.props.getOptionValue("photon")!==e&&m.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===e?"off":"on"}),this.props.getOptionValue("photon-cdn")!==t&&m.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon-cdn",toggled:!1===t?"off":"on"})};render(){const e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("photon-cdn");if(!e&&!t)return null;const n=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 l=e&&t&&("inactive"!==o||"inactive"!==s),m=(e||t)&&("inactive"!==o||"inactive"!==s);let h;return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?h=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?h=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(h=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(h=!0)):h=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),g().createElement(u.Z,a()({},this.props,{header:__("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed"}),(e||t)&&g().createElement(d.Z,{hasChild:!0,support:{link:(0,i.Z)("jetpack-support-site-accelerator")}},g().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")),m&&g().createElement(r.Z,{checked:n,toggling:h,onChange:this.handleSiteAcceleratorChange,disabled:!l,label:__("Enable site accelerator","jetpack")}),g().createElement(c.C_,null,e&&g().createElement(p.T,{slug:"photon",disabled:this.props.isUnavailableInOfflineMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Speed up image load times","jetpack"))),t&&g().createElement(p.T,{slug:"photon-cdn",activated:this.props.getOptionValue("photon-cdn"),toggling:this.props.isSavingAnyOption("photon-cdn"),toggleModule:this.toggleModule},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Speed up static file load times","jetpack"))))))}});t.Z=(0,f.$j)((e=>({module:t=>(0,v.rT)(e,t),isModuleFound:t=>(0,_.CX)(e,t),isOfflineMode:(0,k.Ex)(e),getModuleOverride:t=>(0,v.Qy)(e,t),gutenbergInfo:(0,E.Zb)(e)})))(w)},65043:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(55609),o=n(69307),c=n(65736),l=n(81674),p=n(2353),u=n(93806),d=n(28178),m=n(84069),h=n(25162),g=n.n(h),f=n(99196),k=n.n(f),v=n(59309),_=n(3230),E=n(97639),w=n(30775);const __=c.__,_x=c._x,b=()=>m.Z.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"}),y=()=>m.Z.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"}),j=()=>m.Z.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"});class C extends k().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()&&k().createElement("div",null,k().createElement("h1",{className:"screen-reader-text"},__("Jetpack Privacy Settings","jetpack")),k().createElement(u.Z,a()({},this.props,{header:_x("Privacy Settings","Settings header","jetpack"),hideButton:!0}),k().createElement(d.Z,{hasChild:!0},k().createElement("p",null,__("We are committed to your privacy and security.","jetpack")),k().createElement("p",null,k().createElement(l.Z,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,o.createInterpolateElement)(__("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. <cookiePolicyLink>Learn more</cookiePolicyLink>.","jetpack"),{cookiePolicyLink:k().createElement(r.ExternalLink,{href:(0,i.Z)("a8c-cookies"),onClick:y,rel:"noopener noreferrer"})}))),k().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:k().createElement(r.ExternalLink,{href:(0,i.Z)("a8c-privacy"),onClick:b,rel:"noopener noreferrer"})})),k().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:k().createElement(r.ExternalLink,{href:(0,i.Z)("a8c-cookies"),onClick:y,rel:"noopener noreferrer"})})),k().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:k().createElement(r.ExternalLink,{href:(0,i.Z)("jetpack-support-privacy"),onClick:j,rel:"noopener noreferrer"})}))))):null}}t.Z=(0,v.$j)((e=>({settings:(0,_.Gw)(e),trackingSettings:(0,w.AO)(e),isUpdatingTrackingSettings:(0,w.Ak)(e),isFetchingTrackingSettings:(0,w.ab)(e)})),(e=>({setTrackingSettings:t=>{m.Z.tracks.setOptOut(t),e((0,E.X)({tracks_opt_out:t}))},fetchTrackingSettings:()=>e((0,E.$)())})))((0,p.u)(C))},86450:function(e,t,n){"use strict";var s=n(6895),a=n(73474),i=n(65736),r=n(97506),o=n(3544),c=n(7679),l=n(83526),p=n(84069),u=n(92819),d=n(25162),m=n.n(d),h=n(99196),g=n.n(h),f=n(59309),k=n(17296),v=n(96300),_=n(69508),E=n(69377),w=n(15080),b=n(33002),y=n(61372);const __=i.__,_n=i._n,_x=i._x,j=(e,t)=>()=>((e,t)=>p.Z.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t}))(e,t);class C 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 n="",i=!1,r=!1,o="";switch(e){case"threats":n="error",r=_x("Threats detected","A caption for a small button to fix security issues.","jetpack"),o=(0,s.Z)("vaultpress-dashboard");break;case"secure":n="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(a.Z,{status:e.status,text:e.text});case"active":return g().createElement(a.Z,{status:"active"})}const c=g().createElement(g().Fragment,null,i,r&&g().createElement("a",{className:"dops-notice__text-no-underline",onClick:j(e,t),href:o},r));return g().createElement(a.Z,{status:n,label:c})};getSetUpButton=e=>g().createElement(r.Z,{onClick:j("set_up",e),compact:!0,primary:!0,href:(0,s.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:`only=${e}`})},_x("Set up","Caption for a button to set up a feature.","jetpack"));render(){const{purchasedVaultPressBackups:e,purchasedVaultPressScan:t,scanStatus:n}=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),d=(0,u.get)(i,["data","features","backups"],!1),m=(0,u.get)(i,["data","features","security"],!1);return g().createElement("div",null,g().createElement(c.Z,null),g().createElement(o.Z,null),g().createElement(l.Z,null),!this.props.isOfflineMode&&((o,c,l)=>{switch(o){case"rewind":return this.getProActions("rewind_connected","rewind");case"backups":if(p&&!d&&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||d||this.props.isCompact?"":this.getSetUpButton("backups");if(n&&"unavailable"!==n.state)return Array.isArray(n.threats)&&n.threats.length>0?g().createElement(a.Z,{status:"error",label:_n("Threat","Threats",n.threats.length,"jetpack")}):n.credentials?0===n.credentials.length?g().createElement(a.Z,{status:"action"}):this.getProActions("secure","scan"):"";break;case"search":return"";case"akismet":if(p&&(!c||!l))return"";if(!this.props.isAkismetKeyValid&&!this.props.fetchingAkismetData&&c&&l&&!p)return this.getSetUpButton(o)}return s.product_slug&&r&&!p?c&&l?this.getProActions("active"):this.getSetUpButton(o):""})(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r)))}}t.Z=(0,f.$j)((e=>{const t=(0,b.UL)(e);return{siteRawUrl:(0,_.JR)(e),siteAdminUrl:(0,_.wW)(e),getScanThreats:()=>(0,k._R)(e),getVaultPressData:()=>(0,k.XK)(e),getAkismetData:()=>(0,k.fU)(e),isFetchingVaultPressData:(0,k.P_)(e),sitePlan:t,fetchingPluginsData:(0,y.vz)(e),pluginActive:t=>(0,y.TB)(e,t),pluginInstalled:t=>(0,y.P8)(e,t),isOfflineMode:(0,v.Ex)(e),fetchingSiteData:(0,b._5)(e),isAkismetKeyValid:(0,k._2)(e),fetchingAkismetData:(0,k.bV)(e),rewindStatus:(0,E.of)(e),scanStatus:(0,w.C8)(e),purchasedVaultPressBackups:(0,b.CV)(e,"vaultpress-backups"),purchasedVaultPressScan:(0,b.CV)(e,"vaultpress-security-scanning")}}))(C)},94648:function(e,t,n){"use strict";n.d(t,{ZS:function(){return o},mH:function(){return r},tE:function(){return a},w7:function(){return i}});var s=n(80800);const a={JETPACK_ANTI_SPAM:"akismet",JETPACK_BACKUP:"backup",JETPACK_SCAN:"scan",JETPACK_SEARCH:"search",JETPACK_SECURITY:"security",JETPACK_SOCIAL:"social",JETPACK_VIDEOPRESS:"videopress"},i=[`/product/${a.JETPACK_ANTI_SPAM}`,`/product/${a.JETPACK_BACKUP}`,`/product/${a.JETPACK_SCAN}`,`/product/${a.JETPACK_SEARCH}`,`/product/${a.JETPACK_SECURITY}`,`/product/${a.JETPACK_VIDEOPRESS}`],r=[`/add-${a.JETPACK_ANTI_SPAM}`,`/add-${a.JETPACK_BACKUP}`,`/add-${a.JETPACK_SCAN}`,`/add-${a.JETPACK_SEARCH}`,`/add-${a.JETPACK_SOCIAL}`,`/add-${a.JETPACK_VIDEOPRESS}`],o={[a.JETPACK_ANTI_SPAM]:`${s.hp}products/illustration-anti-spam.png`,[a.JETPACK_BACKUP]:`${s.hp}products/illustration-backup.png`,[a.JETPACK_SCAN]:`${s.hp}products/illustration-scan.png`,[a.JETPACK_SEARCH]:`${s.hp}products/illustration-search.png`,[a.JETPACK_SECURITY]:`${s.hp}products/illustration-scan.png`,[a.JETPACK_VIDEOPRESS]:`${s.hp}products/illustration-videopress.png`}},35150:function(e,t,n){"use strict";var s=n(53190),a=n(24289),i=n(72129),r=n(92819),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(59309),d=n(44498),m=n(69508),h=n(36920),g=n(84884),f=n(94648),k=n(95229);const v=e=>{const{isFetchingProducts:t,isFetchingOffers:n,products:o}=e,c=t||n||(0,r.isEmpty)(o),l=[];return c||Object.values(f.tE).forEach((function(e){if(!o.hasOwnProperty(e))return;const t=o[e];t.available&&l.push(p().createElement(d.AW,{key:e,path:`/product/${e}`},p().createElement(k.Z,{product:t})))})),p().createElement(p().Fragment,null,p().createElement(a.Z,null),p().createElement(s.Z,null),c?p().createElement("div",{className:"jp-product-descriptions__loading"},p().createElement(i.D,null)):p().createElement(d.rs,null,l))};v.propTypes={products:c().object,isFetchingProducts:c().bool,isFetchingOffers:c().bool},t.Z=(0,u.$j)((e=>({isFetchingProducts:(0,g.T0)(e),isFetchingOffers:(0,h.HW)(e),products:(0,m.by)(e)})))(v)},55413:function(e,t,n){"use strict";n.d(t,{dn:function(){return o},jZ:function(){return c},pz:function(){return i},yS:function(){return r}});var s=n(99196),a=n.n(s);const i=a().createElement("svg",{fill:"none",viewBox:"0 0 22 16",xmlns:"http://www.w3.org/2000/svg"},a().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=a().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 18 23",xmlns:"http://www.w3.org/2000/svg"},a().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=a().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 20 25",xmlns:"http://www.w3.org/2000/svg"},a().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=a().createElement("svg",{className:"vertical",viewBox:"0 0 103 25",xmlns:"http://www.w3.org/2000/svg"},a().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"}),a().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"}),a().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"}),a().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"}),a().createElement("path",{d:"m16.092 11.164 0.0188-1.7026 1e-4 -0.03867c0-1.9752-1.8025-3.8666-4.4-3.8666-2.1696 0-3.828 1.3518-4.2735 2.9432l-0.42657 1.5238-1.581-0.0647c-0.0393-0.0016-0.07893-0.0024-0.11886-0.0024-1.587 0-2.9778 1.3444-2.9778 3.1333 0 1.7871 1.3878 3.1305 2.9728 3.1334l0.02863-2e-4h12.052l0.0123 2e-4c1.1943 0 2.2667-1.0162 2.2667-2.4 0-1.2351-0.8646-2.1899-1.8964-2.3684l-1.6776-0.2904zm-10.581-3.2038c-0.06651-0.00271-0.13335-0.00408-0.2005-0.00408-2.7492 0-4.9778 2.2983-4.9778 5.1333 0 2.8351 2.2286 5.1334 4.9778 5.1334l0.02962-2e-4h12.035l0.0236 2e-4c2.3564 0 4.2667-1.97 4.2667-4.4 0-2.1802-1.5375-3.99-3.5554-4.3392l3e-4 -0.0608c0-3.24-2.8653-5.8666-6.4-5.8666-2.9837 0-5.4905 1.8716-6.1994 4.404z",clipRule:"evenodd",fillRule:"evenodd"}))},95229:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(22177),o=n(23609),c=n(84069),l=n(92819),p=n(25162),u=n.n(p),d=n(99196),m=n(59309),h=n(69508),g=n(36920),f=n(94648),k=n(55413);const __=s.__,v=(e,t,n,a)=>{const i=!a&&f.ZS.hasOwnProperty(e.key)?f.ZS[e.key]:void 0;let o,c;switch(e.slug){case"jetpack_backup_t0_yearly":case"jetpack_backup_t1_yearly":c=k.pz;break;case"jetpack_scan":c=k.yS;break;case"jetpack_anti_spam":c=k.dn;break;case"jetpack_security_t0_yearly":case"jetpack_security_t1_yearly":c=k.jZ,"secondary"===n&&(o=__("Popular upgrade","jetpack"))}const l=t?.find((t=>{let{product_slug:n}=t;return n===e.slug})),p=l?.original_price||e.fullPrice,u=e?.saleCoupon?.discount?1-e.saleCoupon.discount/100:1,d=(l?.raw_price||p)*u;return React.createElement(r.Z,{icon:c,title:e.title,productSlug:e.slug,description:e.description,features:e.features,disclaimer:e.disclaimer,currencyCode:e.currencyCode,price:p/12,discountedPrice:d&&d!==p?d/12:null,billingDescription:__("per month, paid yearly","jetpack"),callToAction:o,priority:n,illustrationPath:i,checkoutUrl:e.upgradeUrl,checkoutText:(0,s.sprintf)(/* translators: %s: Name of a Jetpack product. */ | |
| 71 | -__("Add %s","jetpack"),e.title)})},_=e=>{const{availableProductsAndPlans:t,product:n,offers:s}=e,a=((e,t)=>{const n="security";return!((0,l.isEmpty)(e.includedInPlans)||!t.hasOwnProperty(n)||!e.includedInPlans.includes(n))&&t[n]})(n,t);(0,d.useEffect)((()=>{c.Z.tracks.recordEvent("jetpack_product_description_view",{type:n.slug})}),[n]);const r=i()({"jp-product-description":!0,"jp-product-description--split":!!a});return React.createElement(React.Fragment,null,React.createElement("div",{className:r},v(n,s,"primary",!!a),!!a&&v(a,s,"secondary",!!a)),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(o.N,{text:__("14-day money-back guarantee","jetpack")})))};_.propTypes={product:u().object.isRequired,availableProductsAndPlans:u().object.isRequired,offers:u().arrayOf(u().object).isRequired},t.Z=(0,m.$j)((e=>({availableProductsAndPlans:(0,h.by)(e),offers:(0,g.ni)(e)})))(_)},1137:function(e,t,n){"use strict";n.d(t,{I:function(){return i},z:function(){return r}});var s=n(69508),a=n(94648);const i=()=>URLSearchParams&&!!new URLSearchParams(window.location?.search).get("new_pricing_202208"),r=(e,t)=>{const n=`${(0,s.wW)(e)}admin.php?page=jetpack#`,i=`${(0,s.wW)(e)}admin.php?page=my-jetpack#`;return"search"===t?`${(0,s.wW)(e)}admin.php?page=jetpack-search`:a.mH.includes(`/add-${t}`)?`${i}/add-${t}`:a.w7.includes(`/product/${t}`)?`${n}/product/${t}`:`${n}/dashboard`}},98014:function(e,t,n){"use strict";var s=n(65736),a=n(5060),i=n(99196),r=n.n(i);const __=s.__;t.Z=()=>{const e=(0,i.useCallback)((()=>history.back()),[]);return r().createElement("button",{className:"jp-recommendations-back-btn",onClick:e},r().createElement(a.Z,{size:18,icon:"arrow-left"}),/* translators: As in go back to the previous page. */ | |
| 72 | -__("Back","jetpack"))}},39398:function(e,t,n){"use strict";n.d(t,{DF:function(){return u},JI:function(){return g},Lw:function(){return d},NN:function(){return m},UP:function(){return h},WU:function(){return o},Wn:function(){return c},XE:function(){return _},dL:function(){return l},f6:function(){return f},fq:function(){return v},lY:function(){return r},rU:function(){return k},sV:function(){return p},uw:function(){return i}});var s=n(65736),a=n(59584);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__GOLDEN_TOKEN:"welcome__golden_token",BACKUP_ACTIVATED:"backup-activated",SCAN_ACTIVATED:"scan-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",u="JETPACK_ANTI_SPAM",d="JETPACK_VIDEOPRESS",m="JETPACK_SEARCH",h="JETPACK_SCAN",g="JETPACK_GOLDEN_TOKEN",f=16643232e5,k=[g,o,c,l,p,u,d,m,h],v={[g]:a.nAQ,[o]:a.z6U,[c]:a.fOq,[l]:a.fCb,[p]:a.jTC,[u]:a.qSP,[d]:a.rVK,[m]:a.OMh,[h]:a.Cbu},_={[o]:{name:"Complete",slugs:["backup-activated","scan-activated","antispam-activated","videopress-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"]},[u]:{name:"Akismet Anti-Spam",slugs:["antispam-activated"]},[d]:{name:"VideoPress",slugs:["videopress-activated"]},[m]:{name:"Search",slugs:["search-activated"]},[h]:{name:"Scan",slugs:["scan-activated"]},[g]:{name:__("Jetpack Golden Token","jetpack"),slugs:[i.BACKUP_ACTIVATED,i.SCAN_ACTIVATED]}}},23494:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(99196),o=n.n(r);const __=s.__;t.Z=e=>{let{className:t,discount:n,suffix:a}=e;return n?o().createElement("div",{className:i()("jp-recommendations-discount-badge",t)},(0,s.sprintf)( | |
| 73 | -// translators: %d is the percentage value, %% the percentage symbol | |
| 74 | -__("%d%% off","jetpack"),n),a):null}},2025:function(e,t,n){"use strict";n.d(t,{H:function(){return f}});var s=n(55609),a=n(65736),i=n(65235),r=n.n(i),o=n(97506),c=n(5060),l=n(16626),p=n(84069),u=n(99196),d=n.n(u),m=n(59309),h=n(8722),g=n(97684);const __=a.__,f=(0,m.$j)(((e,t)=>({isInstalling:(0,h.c1)(e,t.featureSlug),isFeatureActive:(0,h.dz)(e,t.featureSlug),...(0,g.mp)(e,t.featureSlug),stepRoute:h.BR[t.featureSlug]})),((e,t)=>({...(0,g.ZS)(e,t.featureSlug),startFeatureInstall:t=>e((0,h.s2)(t)),endFeatureInstall:t=>e((0,h.Ti)(t))})))((e=>{const{activateFeature:t,configLink:n,configureButtonLabel:a,displayName:i,featureSlug:m,stepRoute:h,summaryActivateButtonLabel:g,isNew:f,isInstalling:k,startFeatureInstall:v,endFeatureInstall:_}=e,E=(0,u.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_configure_click",{feature:m})}),[m]),w=(0,u.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_enable_click",{feature:m}),v(m),t().finally((()=>{_(m)}))}),[t,m,v,_]),b=(0,u.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:m})}),[m]),y=(0,u.useMemo)((()=>n.match(/^https:\/\/jetpack.com\/redirect/)),[n]),j=d().createElement("div",{className:"jp-recommendations-feature-summary__cta"},e.isFeatureActive?d().createElement(d().Fragment,null,y?d().createElement(s.ExternalLink,{type:"button",className:"dops-button is-rna",href:n,onClick:E},a):d().createElement(o.Z,{rna:!0,href:n,onClick:E},a)):d().createElement(l.Z,{primary:!0,rna:!0,isInstalling:k,onClick:w},g));return d().createElement("div",{className:r()("jp-recommendations-feature-summary",{"is-feature-enabled":e.isFeatureActive})},e.isFeatureActive&&d().createElement("div",{className:"jp-recommendations-feature-summary__checkmark"},d().createElement(c.Z,{icon:"checkmark-circle",size:24})),d().createElement(o.Z,{borderless:!0,href:h,onClick:b,className:"jp-recommendations-feature-summary__display-name"},d().createElement("span",{className:"jp-recommendations-feature-summary__display-name-text"},i),f&& | |
| 75 | -/* translators: 'New' is shown as a badge to indicate that this content has not been viewed before. */ | |
| 76 | -d().createElement("span",{className:"jp-recommendations__new-badge"},__("New","jetpack"))),d().createElement("div",{className:"jp-recommendations-feature-summary__actions"},j))}))},21404:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var s=n(65235),a=n.n(s),i=n(97506),r=n(84069),o=n(99196),c=n(59309),l=n(8722),p=n(97684);const u=e=>{let{href:t,label:n,isHidden:s,onClick:i}=e;return React.createElement("a",{rel:"noreferrer",target:"_blank",href:t,onClick:i,className:a()("jp-summary-text-link",{"is-hidden":s})},n,React.createElement("span",{className:"jp-summary-text-link__icon dashicons dashicons-arrow-right-alt2"}))},d=(0,c.$j)(((e,t)=>({...(0,p.tX)(e,t.slug),stepRoute:l.BR[t.slug]})))((e=>{let{slug:t,displayName:n,ctaLabel:s,ctaLink:a,stepRoute:c}=e;const l=!!a,p=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:t})}),[t]),d=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_manage_click",{feature:t})}),[t]);return React.createElement("div",{className:"jp-recommendations-feature-summary is-primary"},l?React.createElement(i.Z,{href:c,onClick:p,className:"jp-recommendations-feature-summary__display-name",borderless:!0},React.createElement("span",{className:"jp-recommendations-feature-summary__display-name-text"},n)):React.createElement("span",{className:"jp-recommendations-feature-summary__display-name"},n),React.createElement("div",{className:"jp-recommendations-feature-summary__actions"},React.createElement("div",{className:"jp-recommendations-feature-summary__cta"},React.createElement(u,{href:a,label:s,onClick:d,isHidden:!l}))))}))},91508:function(e,t,n){"use strict";n.d(t,{_:function(){return d}});var s=n(55609),a=n(65736),i=n(97506),r=n(84069),o=n(99196),c=n.n(o),l=n(59309),p=n(8722),u=n(97684);const __=a.__,d=(0,l.$j)(((e,t)=>({...(0,u.tB)(e,t.resourceSlug),stepRoute:p.BR[t.resourceSlug]})))((e=>{const{displayName:t,ctaLabel:n,ctaLink:a,resourceSlug:l,isNew:p,stepRoute:u}=e,d=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_learn_more_click",{feature:l})}),[l]),m=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_step_name_click",{feature:l})}),[l]);return c().createElement("div",{className:"jp-recommendations-feature-summary"},c().createElement(i.Z,{borderless:!0,href:u,onClick:m,className:"jp-recommendations-feature-summary__display-name"},c().createElement("span",{className:"jp-recommendations-feature-summary__display-name-text"},t),p&& | |
| 77 | -/* translators: 'New' is shown as a badge to indicate that this content has not been viewed before. */ | |
| 78 | -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:a,onClick:d},n))))}))},97684:function(e,t,n){"use strict";n.d(t,{ZS:function(){return f},gU:function(){return k},mp:function(){return m},qJ:function(){return _},r3:function(){return v},tB:function(){return h},tX:function(){return g}});var s=n(25607),a=n(64743),i=n(6895),r=n(65736),o=n(59584),c=n(69508),l=n(3230),p=n(61372),u=n(8722),d=n(77805);const __=r.__,m=(e,t)=>{switch(t){case"boost":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Jetpack Boost","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=jetpack-boost"};case"creative-mail":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Creative Mail","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=creativemail"};case"monitor":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Downtime Monitoring","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=monitor"};case"newsletter":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Newsletter","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=subscriptions"};case"related-posts":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Related Posts","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=related%20posts"};case"protect":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Jetpack Protect","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=jetpack-protect"};case"site-accelerator":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Site Accelerator","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=cdn"};case"publicize":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Social Media Sharing","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:(0,i.Z)("calypso-marketing-connections",{site:(0,c.JR)(e)})};case"videopress":return{configureButtonLabel:__("How To","jetpack"),displayName:__("VideoPress","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:(0,i.Z)("jetpack-support-videopress-block-editor")};case"woocommerce":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("WooCommerce","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,c.wW)(e)+"admin.php?page=wc-admin&path=%2Fsetup-wizard"};default:throw`Unknown feature slug in mapStateToSummaryFeatureProps() recommendations/feature-utils.js: ${t}`}},h=(e,t)=>{switch(t){case"agency":return{displayName:__("Jetpack for Agencies","jetpack"),ctaLabel:__("Sign Up","jetpack"),ctaLink:(0,i.Z)("jetpack-for-agencies-signup-assistant-recommendation")};case"backup-plan":return{displayName:__("Site Backups","jetpack"),ctaLabel:__("Read More","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-backups-101")};case"anti-spam":return{displayName:__("Spam Management","jetpack"),ctaLabel:__("Read More","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-spam-comments")};case"server-credentials":return{displayName:__("Server Credentials","jetpack"),ctaLabel:__("Add","jetpack"),ctaLink:(0,c.jU)(e,"settings")};case"vaultpress-backup":case"vaultpress-for-woocommerce":return{displayName:__("VaultPress Backup","jetpack")};default:throw`Unknown resource slug in getSummaryResourceProps() recommendations/feature-utils.js: ${t}`}},g=(e,t)=>{switch(t){case"backup-activated":return{displayName:__("Real-time Backups","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,c.jU)(e,"backup")};case"scan-activated":return{displayName:__("Real-time Malware Scanning","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,c.jU)(e,"scan")};case"antispam-activated":return{displayName:__("Automated Spam Protection","jetpack"),ctaLabel:__("Manage","jetpack"),ctaLink:(0,u.dz)(e,t)?(0,c.wW)(e)+"admin.php?page=akismet-key-config":void 0};case"videopress-activated":return{displayName:__("Ad-free, Customizable Video","jetpack"),ctaLabel:__("Add a Video","jetpack"),ctaLink:(0,u.dz)(e,t)?(0,c.wW)(e)+"admin.php?page=jetpack-videopress":void 0};case"search-activated":return{displayName:__("Custom Site Search","jetpack"),ctaLabel:__("Customize","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack-search-configure"}}},f=(e,t)=>{switch(t){case"boost":return{activateFeature:()=>a.ZP.installPlugin("jetpack-boost","recommendations").then((()=>e((0,p.s4)())))};case"creative-mail":return{activateFeature:()=>a.ZP.installPlugin("creative-mail-by-constant-contact","recommendations").then((()=>e((0,p.s4)())))};case"monitor":return{activateFeature:()=>e((0,l.VP)({monitor:!0}))};case"newsletter":return{activateFeature:()=>e((0,l.VP)({subscriptions:!0}))};case"related-posts":return{activateFeature:()=>e((0,l.VP)({"related-posts":!0}))};case"protect":return{activateFeature:()=>a.ZP.installPlugin("jetpack-protect","recommendations").then((()=>e((0,p.s4)())))};case"site-accelerator":return{activateFeature:()=>e((0,l.VP)({photon:!0,"photon-cdn":!0,tiled_galleries:!0,"tiled-gallery":!0}))};case"publicize":return{activateFeature:()=>e((0,l.VP)({publicize:!0}))};case"videopress":return{activateFeature:()=>a.ZP.installPlugin("videopress","recommendations").then((()=>e((0,p.s4)())))};case"woocommerce":return{activateFeature:()=>a.ZP.installPlugin("woocommerce","recommendations").then((()=>e((0,p.s4)())))};default:throw`Unknown feature slug in mapDispatchToProps recommendations/feature-utils.js: ${t}`}},k=(e,t)=>{switch(t){case"agency":return{progressValue:"28",question:__("Manage your clients’ sites with ease","jetpack"),description:__("Jetpack’s world-class security features are now easier to manage for anyone with at least five WordPress websites.<br/><br/>Purchase and manage licenses, and get a 60% discount with our licensing platform.","jetpack"),ctaText:__("Get Jetpack for Agencies","jetpack"),ctaLink:(0,i.Z)("jetpack-for-agencies-signup-assistant-recommendation"),illustration:"assistant-agency"};case"backup-plan":return{question:__("Be prepared for auto-updates.","jetpack"),description:__("We noticed that you’ve recently enabled auto-updates for one of your plugins. Nice work, keeping plugins updated is vital for a healthy site!<br/><br/>Sometimes auto-updating plugins can cause unexpected changes on your site. Finding an older version of the plugin or learning how to install it to revert the changes can be challenging.<br/><br/>Here at Jetpack, we recommend regular backups of your site so you can go back in time with the click of a button.","jetpack"),ctaText:__("Learn More About Site Backups","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-backups-101")};case"boost":return{question:__("Get more views for your new page.","jetpack"),description:__("Fast websites mean more page visits and conversions. Even a one-second delay in loading times can reduce conversion rates by 20%.<br/><br/> Make your site blazing fast with <ExternalLink>Jetpack Boost’s</ExternalLink> simple dashboard and acceleration tool:","jetpack"),descriptionList:[__("Optimize CSS loading","jetpack"),__("Defer non-essential Javascript","jetpack"),__("Lazy image loading and site performance scores","jetpack")],descriptionLink:(0,i.Z)("jetpack-plugin-boost-recommendation"),ctaText:__("Install Jetpack Boost for free","jetpack")};case"creative-mail":return{progressValue:"76",question:__("Would you like to turn site visitors into subscribers?","jetpack"),description:__("The Jetpack Newsletter Form combined with Creative Mail by Constant Contact can help automatically gather subscribers and send them beautiful emails. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-jetpack-blocks-newsletter-sign-up"),ctaText:__("Install Creative Mail","jetpack"),illustration:"assistant-creative-mail"};case"newsletter":return{progressValue:"70",question:__("Send subscribers your latest blog posts via email?","jetpack"),description:__("With Jetpack Newsletter you can keep your audience engaged by automatically sending your content via email. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-newsletter-landing"),ctaText:__("Enable Newsletter","jetpack"),illustration:"assistant-newsletter"};case"monitor":return{progressValue:"52",question:__("Would you like Downtime Monitoring to notify you if your site goes offline?","jetpack"),description:__("If your site ever goes down, Downtime Monitoring will send you an email or push notitification to let you know. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-monitor"),ctaText:__("Enable Downtime Monitoring","jetpack"),illustration:"assistant-downtime-monitoring"};case"related-posts":return{progressValue:"64",question:__("Would you like Related Posts to display at the bottom of your content?","jetpack"),description:__("Displaying Related Posts at the end of your content keeps visitors engaged and on your site. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-related-posts"),ctaText:__("Enable Related Posts","jetpack"),illustration:"assistant-related-post"};case"site-accelerator":return{progressValue:"88",question:__("Would you like your site to load faster?","jetpack"),description:__("Faster sites get better ranking in search engines and help keep visitors on your site longer. Jetpack will automatically optimize and load your images and files from our global Content Delivery Network (CDN). <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-support-site-accelerator"),ctaText:__("Enable Site Accelerator","jetpack"),illustration:"assistant-site-accelerator"};case"publicize":return{question:__("Automatically share your posts to social media to grow your audience.","jetpack"),description:__("It’s easy to share your content to a wider audience by connecting your social media accounts to Jetpack. When you publish a post, it will automatically appear on all your favorite platforms. Best of all, it’s free. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-blog-social-sharing"),ctaText:__("Enable Social Media Sharing","jetpack")};case"protect":return{question:__("With more plugins comes more responsibility.","jetpack"),description:__("As you add plugins to your site, you have to start thinking about vulnerabilities.<br /><br /><strong>Jetpack Protect</strong> is a free security solution for WordPress that runs automated scans on your site and warns you about vulnerabilities.<br /><br />Focus on running your business while we protect your site with Jetpack Protect. <ExternalLink>Learn More</ExternalLink>.","jetpack"),descriptionLink:(0,i.Z)("jetpack-protect-assistant-recommendation"),ctaText:__("Install Protect for Free","jetpack")};case"anti-spam":return{question:__("It’s time to block spam comments.","jetpack"),description:__("Congratulations! Your content is getting traction and receiving comments. The more popular your content is, the more likely it is you will be a target for spam comments. To ensure a great experience for your readers, we recommend manually moderating spam or using an automated product like Jetpack Akismet Anti-spam.","jetpack"),ctaText:__("Learn how to block spam","jetpack"),ctaLink:(0,i.Z)("jetpack-blog-spam-comments"),illustration:"assistant-antispam"};case"videopress":return{question:__("Share videos on your site to increase engagement and purchases.","jetpack"),description:__("No matter your business, adding videos to your site is essential for success. Jetpack VideoPress offers HD, ad-free video hosting, so you can keep the focus on your content. Try it for free or upgrade for more space. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("jetpack-videopress"),ctaText:__("Try VideoPress for free","jetpack")};case"woocommerce":return{progressValue:"40",question:__("Would you like WooCommerce to power your store?","jetpack"),description:__("We’re partnered with <strong>WooCommerce</strong> — a customizable, open-source eCommerce platform built for WordPress. It’s everything you need to start selling products today. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:(0,i.Z)("woocommerce-features-landing"),ctaText:__("Install WooCommerce","jetpack"),illustration:"assistant-woo-commerce"};case"welcome__backup":return{ | |
| 79 | -/* translators: <nbsp/> represents a non-breakable space */ | |
| 80 | -question:__("Welcome to Jetpack VaultPress<nbsp/>Backup!","jetpack"),description:__("Real-time cloud-based backups are now active for your site. Save every change and get back online in one click from desktop and mobile.","jetpack"),ctaText:__("Manage Backups","jetpack"),ctaLink:(0,c.jU)(e,"backup"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"welcome__complete":return{question:__("Welcome to Jetpack Complete!","jetpack"),description:__("Congratulations, you’ve just unlocked the full power of the Jetpack suite; all of our Security, Performance, Growth, and Design tools.","jetpack"),ctaText:__("Set up your new tools","jetpack"),hasNoAction:!0,illustration:"assistant-complete-welcome"};case"welcome__security":return{question:__("Welcome to Jetpack Security!","jetpack"),description:__("Congratulations, you’ve just unlocked comprehensive WordPress site security, including backups, malware scanning, and spam protection.","jetpack"),ctaText:__("Set up your new tools","jetpack"),hasNoAction:!0};case"welcome__starter":return{question:__("Welcome to Jetpack Starter!","jetpack"),description:__("Congratulations! You’ve unlocked essential security tools for your site, including real-time backups and spam protection for comments and forms. Let’s get everything set up. It will only take a minute.","jetpack"),ctaText:__("Set up Jetpack Starter","jetpack"),hasNoAction:!0};case"welcome__antispam":return{ | |
| 81 | -/* translators: <nbsp/> represents a non-breakable space */ | |
| 82 | -question:__("Welcome to Jetpack Akismet<nbsp/>Anti-spam!","jetpack"),description:__("Automated spam protection is now active for comments and forms. We’ll flag anything that looks suspicious and comments will now be available to moderate.","jetpack"),ctaText:__("Configure Akismet Anti-spam","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=akismet-key-config",illustration:"assistant-antispam",skipText:__("Next","jetpack")};case"welcome__videopress":return{question:__("Welcome to Jetpack VideoPress!","jetpack"),description:__("Jetpack VideoPress is now active. Stunning-quality video with none of the hassle. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.","jetpack"),ctaText:__("Learn how to add videos to your site","jetpack"),ctaLink:(0,i.Z)("jetpack-support-videopress-block-editor"),illustration:"assistant-videopress",skipText:__("Next","jetpack")};case"welcome__search":return{question:__("Welcome to Jetpack Search!","jetpack"),description:__("Jetpack Search is now active. Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),ctaText:__("Customize Search","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack-search-configure",illustration:"assistant-search",skipText:__("Next","jetpack")};case"welcome__scan":return{question:__("Welcome to Jetpack Scan!","jetpack"),description:__("Automated malware scanning is live and your site’s first scan is underway. We’ll notify you if we detect anything suspicious, with one-click fixes for most issues.","jetpack"),ctaText:__("View Security Dashboard","jetpack"),ctaLink:(0,c.jU)(e,"scan"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"welcome__golden_token":return{question:__("Congratulations, you have been gifted a Jetpack Golden Token!","jetpack"),description:__("Congratulations, your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack"),descriptionList:[__("Jetpack VaultPress Backup","jetpack"),__("Jetpack Scan","jetpack")],ctaText:__("Set up your new powers","jetpack"),hasNoAction:!0,illustration:"assistant-golden-token-welcome"};case"backup-activated":return{question:__("Site backups are live","jetpack"),description:__("Real-time cloud-based backups are now active for your site. Save every change and get back online in one click from desktop and mobile.","jetpack"),ctaText:__("Manage Backups","jetpack"),ctaLink:(0,c.jU)(e,"backup"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"scan-activated":return{question:__("Real-time Malware Scanning","jetpack"),description:__("Automated malware scanning is live and your site’s first scan is underway. We’ll notify you if we detect anything suspicious, with one-click fixes for most issues.","jetpack"),ctaText:__("View Security Dashboard","jetpack"),ctaLink:(0,c.jU)(e,"scan"),illustration:"assistant-malware-scanning",skipText:__("Next","jetpack")};case"antispam-activated":return{question:__("Live Spam Protection","jetpack"),description:__("Automated spam protection is now active for comments and forms. We’ll flag anything that looks suspicious and comments will now be available to moderate.","jetpack"),ctaText:__("Configure Akismet Anti-spam","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=akismet-key-config",illustration:"assistant-antispam",skipText:__("Next","jetpack")};case"videopress-activated":return{question:__("Ad-free, Customizable Video","jetpack"),description:__("Jetpack VideoPress is now active. Stunning-quality video with none of the hassle. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.","jetpack"),ctaText:__("Learn how to add videos to your site","jetpack"),ctaLink:(0,i.Z)("jetpack-support-videopress-block-editor"),illustration:"assistant-videopress",skipText:__("Next","jetpack")};case"search-activated":return{question:__("Custom Site Search","jetpack"),description:__("Jetpack Search is now active. Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),ctaText:__("Customize Search","jetpack"),ctaLink:(0,c.wW)(e)+"admin.php?page=jetpack-search-configure",illustration:"assistant-search",skipText:__("Next","jetpack")};case"server-credentials":return{question:__("Setup one-click restores","jetpack"),description:__("To restore your site to a previous version, you need to add your server credentials. We recommend doing this now so you can restore your site in one click if you encounter issues in the future.","jetpack"),ctaText:__("Add server credentials","jetpack"),ctaLink:(0,c.jU)(e,"settings"),illustration:"assistant-server-credentials"};case"vaultpress-backup":{const t=(0,c.JR)(e),n=(0,d.cR)(e,o.tVY),s=()=>(0,d.aX)(e)?__("Get a discount for your first year","jetpack"):n>0?(0,r.sprintf)(/* translators: %(discount)s: is a discount percentage. e.g. 50 */ | |
| 83 | -__("Get %(discount)s%% off your first year","jetpack"),{discount:n}):__("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.Z)("jetpack-recommendations-product-checkout",{site:t,path:o.tVY}),illustration:"assistant-backup-welcome"}}case"vaultpress-for-woocommerce":{const t=(0,c.JR)(e),n=(0,d.Ki)(e,o.tVY),a=(0,d.gp)(e,o.tVY),l=(0,s.ZP)(n,a?.currency_code),p=(0,d.aX)(e)?__("Try for 30 days","jetpack"):(0,r.sprintf)(/* translators: %s: is a formatted currency. e.g. $1 */ | |
| 84 | -__("Try for %s for 30 days","jetpack"),l);return{progressValue:100,question:__("Store downtime means lost sales. Do you have a cloud-based store backup solution?","jetpack"),description:__("VaultPress Backup saves your store in the cloud, so even if your host goes down, you’ll never lose a thing.","jetpack"),descriptionList:[__("Restore your site to any past state in one click while keeping all orders and products current.","jetpack"),__("Backups are encrypted, keeping your store data secure.","jetpack"),__("Protect your customer data and stay GDPR compliant.","jetpack"),__("Custom WooCommerce table backups.","jetpack"),__("Easy to use; no developer required.","jetpack")],ctaText:p,ctaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:t,path:o.tVY}),illustration:"assistant-backup-welcome"}}default:throw`Unknown step slug in recommendations/question: ${t}`}},v=(e,t)=>{const n=(0,c.JR)(e),s=(0,c.Q6)(e);switch(t){case o.Etl:return{productCardTitle:__("Increase your site security!","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:n,path:t}),productCardCtaText:__("Get Jetpack Security","jetpack"),productCardList:s.security?s.security.features:[],productCardIcon:"/recommendations/cloud-icon.svg"};case o.shc:return{productCardTitle:__("Block spam automatically with Jetpack Akismet Anti-spam","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:n,path:t}),productCardCtaText:__("Get Akismet Anti-spam","jetpack"),productCardList:s.akismet?s.akismet.features:[],productCardIcon:"/recommendations/bug-icon.svg"};case o.v_I:return{productCardTitle:__("Upgrade for more videos and storage","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:n,path:t}),productCardCtaText:__("Get VideoPress","jetpack"),productCardList:s.videopress?s.videopress.features:[],productCardIcon:"/recommendations/video-icon.svg"};case o.tVY:return{productCardTitle:__("Go back in time with one click","jetpack"),productCardCtaLink:(0,i.Z)("jetpack-recommendations-product-checkout",{site:n,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,n)=>{if(t===o.Etl){if("publicize"===n)return{productCardTitle:__("Your site is growing. It’s time for a security plan.","jetpack")};if("protect"===n)return{productCardTitle:__("Jetpack Security gives you complete site protection and backups.","jetpack")}}return{}}},71912:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(99196),r=n.n(i),o=n(59309),c=n(69508),l=n(16876),p=n(38356);t.Z=e=>(0,o.$j)((e=>({discountData:(0,l.u)(e),siteAdminUrl:(0,c.wW)(e),siteRawUrl:(0,c.JR)(e)})))((t=>{const{slug:n,discountData:s,siteAdminUrl:o,siteRawUrl:c}=t,{code:l}=s,u=(0,i.useMemo)((()=>(0,p.N)(n,o,c,l)),[n,o,c,l]);return r().createElement(e,a()({upgradeUrl:u},t))}))},22267:function(e,t,n){"use strict";n.d(t,{V:function(){return A}});var s=n(6895),a=n(65736),i=n(53190),r=n(85182),o=n(70298),c=n(18882),l=n(90023),p=n(88546),u=n(69270),d=n(92658),m=n(7679),h=n(72129),g=n(99196),f=n.n(g),k=n(59309),v=n(44498),_=n(69508),E=n(8722),w=n(33002),b=n(24289),y=n(39398),j=n(14404),C=n(69720),S=n(15376),N=n(96816),x=n(97392),T=n(43026);const __=a.__,A=(0,k.$j)((e=>({isLoading:!(0,E.WA)(e)||!(0,E.i8)(e)||(0,w._5)(e),step:(0,E.TO)(e),onboardingData:(0,E.YU)(e),newRecommendations:(0,_.YJ)(e)})),(e=>({updateOnboardingData:t=>e((0,E.y5)(t)),updateStep:t=>e((0,E.OC)(t))})))((e=>{const{isLoading:t,step:n,newRecommendations:a}=e;let k;switch(n){case y.uw.NOT_STARTED:case y.uw.SITE_TYPE:k="/site-type";break;case y.uw.PRODUCT_SUGGESTIONS:k="/product-suggestions";break;case y.uw.PRODUCT_PURCHASED:k="/product-purchased";break;case y.uw.AGENCY:k="/agency";break;case y.uw.WOOCOMMERCE:k="/woocommerce";break;case y.uw.MONITOR:k="/monitor";break;case y.uw.NEWSLETTER:k="/newsletter";break;case y.uw.RELATED_POSTS:k="/related-posts";break;case y.uw.CREATIVE_MAIL:k="/creative-mail";break;case y.uw.SITE_ACCELERATOR:k="/site-accelerator";break;case y.uw.VAULTPRESS_BACKUP:k="/vaultpress-backup";break;case y.uw.VAULTPRESS_FOR_WOOCOMMERCE:k="/vaultpress-for-woocommerce";break;case y.uw.PUBLICIZE:k="/publicize";break;case y.uw.PROTECT:k="/protect";break;case y.uw.ANTI_SPAM:k="/anti-spam";break;case y.uw.VIDEOPRESS:k="/videopress";break;case y.uw.BACKUP_PLAN:k="/backup-plan";break;case y.uw.BOOST:k="/boost";break;case y.uw.SUMMARY:k="/summary";break;case y.uw.WELCOME__BACKUP:k="/welcome-backup";break;case y.uw.WELCOME__COMPLETE:k="/welcome-complete";break;case y.uw.WELCOME__SECURITY:k="/welcome-security";break;case y.uw.WELCOME__STARTER:k="/welcome-starter";break;case y.uw.WELCOME__ANTISPAM:k="/welcome-antispam";break;case y.uw.WELCOME__VIDEOPRESS:k="/welcome-videopress";break;case y.uw.WELCOME__SEARCH:k="/welcome-search";break;case y.uw.WELCOME__SCAN:k="/welcome-scan";break;case y.uw.WELCOME__GOLDEN_TOKEN:k="/welcome-golden-token";break;case y.uw.SERVER_CREDENTIALS:k="/server-credentials";break;case y.uw.BACKUP_ACTIVATED:k="/backup-activated";break;case y.uw.SCAN_ACTIVATED:k="/scan-activated";break;case y.uw.ANTISPAM_ACTIVATED:k="/antispam-activated";break;case y.uw.VIDEOPRESS_ACTIVATED:k="/videopress-activated";break;case y.uw.SEARCH_ACTIVATED:k="/search-activated";break;default:k="/summary"}const _=e=>a&&a.includes(e);return(e=>{let{step:t,isLoading:n,onboardingData:s,updateOnboardingData:a,updateStep:i}=e;const[r,o]=(0,g.useState)(!1);(0,g.useEffect)((()=>{if(!r&&s&&!n){const{active:e,hasStarted:n,viewed:r}=s;o(!0),e&&!n?(i(t),a({...s,hasStarted:!0})):a({viewed:r})}}),[n,s,a,t,i,r])})(e),f().createElement(f().Fragment,null,f().createElement("h1",{className:"screen-reader-text"},__("Jetpack Recommendations","jetpack")),f().createElement(o.Z,null),f().createElement(c.Z,null),f().createElement(l.Z,null),f().createElement(r.Z,null),f().createElement(p.Z,null),f().createElement(u.Z,null),f().createElement(m.Z,null),f().createElement(d.Z,null),f().createElement(b.Z,null),f().createElement(i.Z,null),t?f().createElement("div",{className:"jp-recommendations__loading"},f().createElement(h.D,{altText:__("Loading recommendations","jetpack")})):f().createElement(v.rs,null,f().createElement(v.l_,{exact:!0,from:"/recommendations",to:"/recommendations"+k}),f().createElement(v.AW,{path:"/recommendations/site-type"},f().createElement(x.g,null)),f().createElement(v.AW,{path:"/recommendations/product-suggestions"},f().createElement(S.V,null)),f().createElement(v.AW,{path:"/recommendations/product-purchased"},f().createElement(j.Y,null)),f().createElement(v.AW,{path:"/recommendations/agency"},f().createElement(N.t,{stepSlug:"agency"})),f().createElement(v.AW,{path:"/recommendations/woocommerce"},f().createElement(C.Q,{stepSlug:"woocommerce"})),f().createElement(v.AW,{path:"/recommendations/monitor"},f().createElement(C.Q,{stepSlug:"monitor"})),f().createElement(v.AW,{path:"/recommendations/newsletter"},f().createElement(C.Q,{stepSlug:"newsletter"})),f().createElement(v.AW,{path:"/recommendations/related-posts"},f().createElement(C.Q,{stepSlug:"related-posts"})),f().createElement(v.AW,{path:"/recommendations/creative-mail"},f().createElement(C.Q,{stepSlug:"creative-mail"})),f().createElement(v.AW,{path:"/recommendations/site-accelerator"},f().createElement(C.Q,{stepSlug:"site-accelerator"})),f().createElement(v.AW,{path:"/recommendations/vaultpress-backup"},f().createElement(N.t,{stepSlug:"vaultpress-backup"})),f().createElement(v.AW,{path:"/recommendations/vaultpress-for-woocommerce"},f().createElement(N.t,{stepSlug:"vaultpress-for-woocommerce"})),f().createElement(v.AW,{path:"/recommendations/publicize"},f().createElement(C.Q,{stepSlug:"publicize",isNew:_("publicize")})),f().createElement(v.AW,{path:"/recommendations/protect"},f().createElement(C.Q,{stepSlug:"protect",isNew:_("protect")})),f().createElement(v.AW,{path:"/recommendations/anti-spam"},f().createElement(N.t,{stepSlug:"anti-spam",isNew:_("anti-spam")})),f().createElement(v.AW,{path:"/recommendations/videopress"},f().createElement(C.Q,{stepSlug:"videopress",isNew:_("videopress")})),f().createElement(v.AW,{path:"/recommendations/backup-plan"},f().createElement(N.t,{stepSlug:"backup-plan",isNew:_("backup-plan")})),f().createElement(v.AW,{path:"/recommendations/boost"},f().createElement(C.Q,{stepSlug:"boost",isNew:_("boost")})),f().createElement(v.AW,{path:"/recommendations/welcome-backup"},f().createElement(N.t,{stepSlug:"welcome__backup"})),f().createElement(v.AW,{path:"/recommendations/welcome-complete"},f().createElement(N.t,{stepSlug:"welcome__complete"})),f().createElement(v.AW,{path:"/recommendations/welcome-starter"},f().createElement(N.t,{stepSlug:"welcome__starter"})),f().createElement(v.AW,{path:"/recommendations/welcome-security"},f().createElement(N.t,{stepSlug:"welcome__security"})),f().createElement(v.AW,{path:"/recommendations/welcome-antispam"},f().createElement(N.t,{stepSlug:"welcome__antispam"})),f().createElement(v.AW,{path:"/recommendations/welcome-videopress"},f().createElement(N.t,{stepSlug:"welcome__videopress"})),f().createElement(v.AW,{path:"/recommendations/welcome-search"},f().createElement(N.t,{stepSlug:"welcome__search"})),f().createElement(v.AW,{path:"/recommendations/welcome-scan"},f().createElement(N.t,{stepSlug:"welcome__scan"})),f().createElement(v.AW,{path:"/recommendations/welcome-golden-token"},f().createElement(N.t,{stepSlug:"welcome__golden_token"})),f().createElement(v.AW,{path:"/recommendations/backup-activated"},f().createElement(N.t,{stepSlug:"backup-activated"})),f().createElement(v.AW,{path:"/recommendations/scan-activated"},f().createElement(N.t,{stepSlug:"scan-activated"})),f().createElement(v.AW,{path:"/recommendations/antispam-activated"},f().createElement(N.t,{stepSlug:"antispam-activated"})),f().createElement(v.AW,{path:"/recommendations/videopress-activated"},f().createElement(N.t,{stepSlug:"videopress-activated"})),f().createElement(v.AW,{path:"/recommendations/search-activated"},f().createElement(N.t,{stepSlug:"search-activated"})),f().createElement(v.AW,{path:"/recommendations/server-credentials"},f().createElement(N.t,{stepSlug:"server-credentials"})),f().createElement(v.AW,{path:"/recommendations/summary"},f().createElement(T.E,{newRecommendations:a}))),f().createElement("div",{className:"jp-recommendations__links"},f().createElement("a",{role:"button",tabIndex:"0",href:(0,s.Z)("jetpack-support-getting-started")},__("Learn how to get started with Jetpack","jetpack")),f().createElement("a",{role:"button",tabIndex:"0",href:(0,s.Z)("jetpack-support")},__("Search our support site","jetpack"))))}))},18821:function(e,t,n){"use strict";n.d(t,{u:function(){return j}});var s=n(82674),a=n.n(s),i=n(25607),r=n(16554),o=n(65736),c=n(65235),l=n.n(c),p=n(97506),u=n(25162),d=n.n(u),m=n(99196),h=n.n(m),g=n(59309),f=n(36920),k=n(16876),v=n(23494),_=n(71912),E=n(36622),w=n(17279);const __=o.__,b=e=>{let{className:t,integer:n,fraction:s,symbol:a}=e;return h().createElement("div",{className:t},h().createElement("sup",{className:"jp-recommendations-product-card-upsell__currency-symbol"},a),h().createElement("span",{className:"jp-recommendations-product-card-upsell__price-integer"},n),h().createElement("sup",{className:"jp-recommendations-product-card-upsell__price-fraction"},s))},y=e=>{let{slug:t,cost:n,title:s,description:c,billing_timeframe:u,cost_timeframe:d,currency_code:g,isRecommended:f,features:k,onClick:_,onMount:y,isFetchingDiscount:j,isFetchingOffers:C,discountData:S,introOffers:N,upgradeUrl:x}=e;const{discount:T}=S,A=(0,m.useMemo)((()=>(0,w.h)(S)),[S]),P=(0,m.useMemo)((()=>N.find((e=>{let{product_slug:n}=e;return n===t}))||{}),[t,N]),{original_price:Z,raw_price:M}=P,O=Z||12*n,R=M||O,L=(0,r.Z)(P),I=!L&&A&&T?R*(1-T/100):R,z=O?Math.round((O-I)/O*100):null,U=(0,m.useMemo)((()=>(0,i.LR)(O/12,g)),[O,g]),D=(0,m.useMemo)((()=>(0,i.LR)(I/12,g)),[I,g]),V=new URL(x);L&&V.searchParams.delete("coupon");const F=f&&h().createElement(E.Z,{className:"jp-recommendations-product-card-upsell__header"});return(0,m.useEffect)((()=>{y&&y()}),[y]),h().createElement("div",{className:l()("jp-recommendations-product-card-upsell",{"with-header":!!F})},F,h().createElement("h1",{className:"jp-recommendations-product-card-upsell__heading"},s),h().createElement("p",{className:"jp-recommendations-product-card-upsell__description"},c),h().createElement("ul",{className:"jp-recommendations-product-card-upsell__features jp-recommendations-sidebar-card__features"},k.map((e=>h().createElement("li",{key:e},e)))),!(j||C)&&h().createElement(h().Fragment,null,h().createElement("div",{className:"jp-recommendations-product-card-upsell__price-container"},h().createElement("div",{className:"jp-recommendations-product-card-upsell__price"},A&&h().createElement(b,a()({className:"jp-recommendations-product-card-upsell__raw-price"},U)),h().createElement(b,a()({className:"jp-recommendations-product-card-upsell__final-price"},D)),A&&h().createElement(v.Z,{className:"jp-recommendations-product-card-upsell__discount",discount:z,suffix:"*"})),h().createElement("div",{className:"jp-recommendations-product-card-upsell__billing-time-frame"},`${d}, ${u}`))),h().createElement(p.Z,{className:"jp-recommendations-product-card-upsell__cta-button",primary:!f,rna:!0,href:V.toString(),onClick:_,target:"_blank",rel:"noopener noreferrer"},/* translators: %s: Jetpack product name. */ | |
| 85 | -(0,o.sprintf)(__("Get %s","jetpack"),s)))};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 j=(0,g.$j)((e=>({isFetchingDiscount:(0,k.Zd)(e),isFetchingOffers:(0,f.HW)(e),discountData:(0,k.u)(e),introOffers:(0,f.ni)(e)})))((0,_.Z)(y))},14404:function(e,t,n){"use strict";n.d(t,{Y:function(){return f}});var s=n(94343),a=n(65736),i=n(97506),r=n(5060),o=n(72129),c=n(84069),l=n(92819),p=n(99196),u=n.n(p),d=n(59309),m=n(8722),h=n(33002),g=n(19916);const __=a.__,_x=a._x,f=(0,d.$j)((e=>({activePurchases:(0,h.p)(e),isFetchingSiteData:(0,h._5)(e),isFetchingSuggestions:(0,m.at)(e),nextRoute:(0,m.mI)(e),sitePlan:(0,h.UL)(e),suggestions:(0,m.El)(e)})))((e=>{const{nextRoute:t}=e,n=(e=>{let{activePurchases:t,isFetchingSiteData:n,isFetchingSuggestions:s,sitePlan:a,suggestions:i}=e;if(n||s)return!1;if(!i||!(0,l.isArray)(i))return!1;const r=i.find((e=>e.slug===a.product_slug));if(r)return r;if((0,l.isArray)(t)){const e=i.find((e=>{if(t.find((t=>e.slug===t.product_slug)))return e}));if(e)return e}return!1})(e);if((0,p.useEffect)((()=>{n&&c.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_purchased",{type:n.slug})}),[n]),!n)return u().createElement(o.D,{altText:__("Loading recommendations","jetpack")});const a=u().createElement("div",{className:"jp-recommendations-product-purchased"},u().createElement("ul",{className:"jp-recommendations-product-purchased__features"},n&&n.features.map(((e,t)=>u().createElement("li",{className:"jp-recommendations-product-purchased__feature",key:t},u().createElement(r.Z,{icon:"checkmark"}),e)))),u().createElement(i.Z,{primary:!0,rna:!0,className:"jp-recommendations-product-purchased__next",href:t},_x("Configure your site","Recommendations Product Purchased","jetpack")));return u().createElement(g.X,{progressBar:u().createElement(s.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:.33}),question:__("Your plan has been upgraded!","jetpack"),description:__("You now have access to these benefits:","jetpack"),answer:a,illustration:"assistant-product-purchased",illustrationClassName:"jp-recommendations-product-purchased__illustration"})}))},90068:function(e,t,n){"use strict";n.d(t,{C:function(){return h}});var s=n(65235),a=n.n(s),i=n(42698),r=n(84069),o=n(25162),c=n.n(o),l=n(99196),p=n.n(l),u=n(59309),d=n(8722);const m=e=>{let{answerKey:t,checked:n,info:s,title:o,updateCheckboxAnswer:c}=e;const u=(0,l.useCallback)((()=>c({[t]:!n})),[t,n,c]),d=(0,l.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_site_type_popover_click",{type:t.replace("-","_")})}),[t]);return p().createElement("div",{className:"jp-checkbox-answer__container"},p().createElement("label",{htmlFor:t,className:a()("jp-checkbox-answer__title",{checked:n})},p().createElement("input",{id:t,className:"jp-checkbox-answer__checkbox-input",type:"checkbox",checked:n,onChange:u}),o),p().createElement("div",{className:"jp-checkbox-answer__info"},p().createElement(i.Z,{position:"top right",onClick:d},s)))};m.propTypes={answerKey:c().string.isRequired,info:c().string.isRequired,title:c().string.isRequired};const h=(0,u.$j)(((e,t)=>({checked:(0,d.$q)(e,t.answerKey)})),(e=>({updateCheckboxAnswer:t=>e((0,d.x5)(t))})))(m)},69720:function(e,t,n){"use strict";n.d(t,{Q:function(){return E}});var s=n(94343),a=n(55609),i=n(69307),r=n(65736),o=n(97506),c=n(5060),l=n(84069),p=n(99196),u=n.n(p),d=n(59309),m=n(8722),h=n(39398),g=n(97684),f=n(86095),k=n(28747),v=n(29162),_=n(19916);const __=r.__,E=(0,d.$j)(((e,t)=>({nextRoute:(0,m.mI)(e),...(0,g.gU)(e,t.stepSlug),...(0,g.mp)(e,t.stepSlug),stateStepSlug:(0,m.TO)(e),updatingStep:(0,m.ZL)(e),canShowProductSuggestions:(0,m.sB)(e),discountViewedStep:(0,m.VZ)(e),featureActive:(0,m.dz)(e,t.stepSlug),summaryViewed:(0,m.E3)(e,"summary"),spotlightProduct:(0,m.fo)(e,t.stepSlug),...(0,m.F_)(e)?{stepProgressValue:(0,m.HZ)(e),summaryViewed:!1}:{}})),((e,t)=>({addSelectedRecommendation:t=>e((0,m.Pq)(t)),addSkippedRecommendation:t=>e((0,m.J_)(t)),addViewedRecommendation:t=>e((0,m.Hm)(t)),updateRecommendationsStep:t=>e((0,m.OC)(t)),startFeatureInstall:t=>e((0,m.s2)(t)),endFeatureInstall:t=>e((0,m.Ti)(t)),...(0,g.ZS)(e,t.stepSlug)})))((e=>{const{activateFeature:t,addSelectedRecommendation:n,addSkippedRecommendation:r,addViewedRecommendation:d,startFeatureInstall:m,endFeatureInstall:g,ctaText:E,description:w,descriptionLink:b,descriptionList:y,descriptionSecondary:j,illustration:C,nextRoute:S,progressValue:N,stepProgressValue:x,question:T,stepSlug:A,stateStepSlug:P,updatingStep:Z,updateRecommendationsStep:M,spotlightProduct:O,isNew:R,canShowProductSuggestions:L,discountViewedStep:I,featureActive:z,configureButtonLabel:U,configLink:D,summaryViewed:V}=e;(0,p.useEffect)((()=>{A!==P?M(A):A!==P||Z||(d(A),l.Z.tracks.recordEvent("jetpack_recommendations_recommendation_viewed",{feature:A}))}),[A,P,Z,M,d]);const F=!I||I===A,B=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_learn_more_click",{feature:A})}),[A]),H=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_enable_click",{feature:A}),n(A),m(A),t().finally((()=>{g(A)}))}),[t,n,A,m,g]),q=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_configure_click",{feature:A})}),[A]),W=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_decide_later_click",{feature:A}),r(A)}),[r,A]),J=(0,p.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommended_feature_back_to_summary_click",{feature:A})}),[A]),$=(0,p.useMemo)((()=>D.match(/^https:\/\/jetpack.com\/redirect/)),[D]);let G=null;O?G=u().createElement(k.N,{productSlug:O,stepSlug:A}):F&&L&&(G=u().createElement(f.Z,null));const K=(0,p.useMemo)((()=>x?u().createElement(v.R,x):N?u().createElement(s.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:N/100}):null),[x,N]);return u().createElement(_.X,{progressBar:K,isNew:R,question:T,description:(0,i.createInterpolateElement)(w,{br:u().createElement("br",null),strong:u().createElement("strong",null),ExternalLink:u().createElement(a.ExternalLink,{href:b,onClick:B})}),content:y||j?u().createElement(u().Fragment,null,y&&u().createElement("ul",{className:"jp-recommendations-question__description-list"},y.map(((e,t)=>u().createElement("li",{key:t},e)))),j&&u().createElement("p",{className:"jp-recommendations-question__description"},j)):null,answer:u().createElement("div",{className:"jp-recommendations-question__install-section"},z?u().createElement(u().Fragment,null,u().createElement("div",{className:"jp-recommendations-question__feature-enabled"},u().createElement("div",{className:"jp-recommendations-question__checkmark"},u().createElement(c.Z,{icon:"checkmark-circle",size:24})),u().createElement("span",null,__("Feature Enabled","jetpack"))),u().createElement("div",{className:"jp-recommendations-question__settings-button"},$?u().createElement(a.ExternalLink,{type:"button",className:"dops-button is-rna",href:D,onClick:q},U):u().createElement(o.Z,{rna:!0,href:D,onClick:q},U))):u().createElement(o.Z,{primary:!0,rna:!0,href:S,onClick:H},E),u().createElement("div",{className:"jp-recommendations-question__jump-nav"},u().createElement("a",{href:S,onClick:W},z&&__("Next","jetpack"),!z&&__("Not now","jetpack")),V&&u().createElement(u().Fragment,null,u().createElement("span",{className:"jp-recommendations-question__jump-nav-separator"},"|"),u().createElement("a",{onClick:J,href:"#/recommendations/summary"},__("View Recommendations","jetpack")," ")))),sidebarCard:G,illustration:C||h.lY})}))},59908:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var s=n(82674),a=n.n(s),i=n(84069),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(59309),u=n(8722),d=n(33002),m=n(18821),h=n(17279);const g=e=>{let{product:t,addSelectedRecommendation:n,upsell:s,discountData:r}=e;const o=(0,c.useMemo)((()=>(0,h.h)(r)),[r]),p=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_click",{product_slug:t.slug,discount:o}),n("product-suggestions")}),[t,n,o]),u=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_display",{product_slug:t.slug,discount:o})}),[t,o]);return l().createElement(m.u,a()({},t,{isRecommended:t.slug===s?.product_slug,onClick:p,onMount:u}))};g.propTypes={product:o().object.isRequired};const f=(0,p.$j)((e=>({upsell:(0,u.jn)(e),discountData:(0,d.u)(e)})),(e=>({addSelectedRecommendation:t=>e((0,u.Pq)(t))})))(g)},15376:function(e,t,n){"use strict";n.d(t,{V:function(){return f}});var s=n(65736),a=n(72129),i=n(23609),r=n(99196),o=n.n(r),c=n(59309),l=n(44498),p=n(8722),u=n(16876),d=n(98014),m=n(88842),h=n(17279),g=n(59908);const __=s.__,f=(0,c.$j)((e=>({nextRoute:(0,p.mI)(e),isProductSuggestionsAvailable:(0,p.sB)(e),isFetchingSuggestions:(0,p.at)(e),isFetchingDiscount:(0,u.Zd)(e),isFetchingUpsell:(0,p.b5)(e),suggestions:(0,p.El)(e),discountData:(0,u.u)(e)})))((e=>{let{nextRoute:t,isProductSuggestionsAvailable:n,isFetchingSuggestions:s,isFetchingDiscount:c,isFetchingUpsell:p,suggestions:u,discountData:f}=e;const{expiry_date:k}=f,v=(0,r.useMemo)((()=>(0,h.h)(f)),[f]);return s||p?o().createElement(a.D,{altText:__("Loading recommendations","jetpack")}):n?o().createElement("section",{className:"jp-recommendations-question__main"},o().createElement("header",{className:"jp-recommendations-product-suggestion__header"},o().createElement(d.Z,null)),o().createElement("div",{className:"jp-recommendations-product-suggestion__container"},o().createElement("div",{className:"jp-recommendations-product-suggestion__items"},u.map(((e,t)=>o().createElement("div",{className:"jp-recommendations-product-suggestion__item",key:t},o().createElement(g.A,{product:e}))))),o().createElement("div",{className:"jp-recommendations-product-suggestion__money-back-guarantee"},o().createElement(i.N,{text:__("14-day money-back guarantee","jetpack")}))),!c&&o().createElement("footer",{className:"jp-recommendations-product-suggestion__footer"},o().createElement("span",null,v&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!v&&__("Special introductory pricing, all renewals are at full price.","jetpack")),v&&k&&o().createElement("div",{className:"jp-recommendations-product-suggestion__timer"},o().createElement(m.Z,{timeClassName:"jp-recommendations-product-suggestion__time",label:__("Discount ends in:","jetpack"),expiryDate:k})))):o().createElement(l.l_,{to:t.substring(1)})}))},19916:function(e,t,n){"use strict";n.d(t,{X:function(){return v}});var s=n(80800),a=n(69307),i=n(65736),r=n(65235),o=n.n(r),c=n(25162),l=n.n(c),p=n(99196),u=n.n(p),d=n(59309),m=n(36920),h=n(8722),g=n(16876);const __=i.__,f=e=>{let{isLoading:t,illustration:n,illustrationClassName:a,sidebarCard:i}=e;const r=`${s.hp}recommendations/${n}`;return t?null:i?u().createElement("div",{className:"jp-recommendations-question__sidebar-card"},i):n?u().createElement("div",{className:"jp-recommendations-question__illustration-container"},u().createElement("picture",{className:"jp-recommendations-question__illustration-picture"},u().createElement("source",{type:"image/webp",srcSet:`${r}.webp 1x, ${r}-2x.webp 2x`}),u().createElement("img",{className:o()("jp-recommendations-question__illustration",a),srcSet:`${r}-2x.png 2x`,src:`${r}.png`,alt:""}))):null},k=e=>{const{answer:t,description:n,illustration:s,progressBar:i,question:r,content:c,isNew:l,sidebarCard:p}=e;return u().createElement("div",{className:o()("jp-recommendations-question__main",{"jp-recommendations-question__main--with-sidebar":!!s||!!p})},u().createElement("div",{className:"jp-recommendations-question__content"},(l||i)&&u().createElement("div",{className:"jp-recommendations-question__progress-bar-wrap"},l&&u().createElement("span",{className:"jp-recommendations__new-badge"},__("New","jetpack")),u().createElement("div",{className:"jp-recommendations-question__progress-bar"},i)),u().createElement("h1",{className:"jp-recommendations-question__question"},(0,a.createInterpolateElement)(r,{nbsp:u().createElement("span",null," ")})),n&&u().createElement("p",{className:"jp-recommendations-question__description"},n),c,u().createElement("div",{className:"jp-recommendations-question__answer"},t)),u().createElement("div",{className:"jp-recommendations-question__sidebar"},u().createElement(f,e)))};k.propTypes={answer:l().element.isRequired,description:l().oneOfType([l().string,l().element]).isRequired,illustration:l().string,illustrationClassName:l().string,progressBar:l().element,question:l().oneOfType([l().string,l().element]).isRequired,content:l().element,sidebarCard:l().element,isNew:l().bool,isLoading:l().bool};const v=(0,d.$j)((e=>({isLoading:(0,g.Zd)(e)||(0,h.at)(e)||(0,m.HW)(e)})))(k)},96816:function(e,t,n){"use strict";n.d(t,{t:function(){return v}});var s=n(94343),a=n(55609),i=n(69307),r=n(65736),o=n(97506),c=n(84069),l=n(99196),p=n.n(l),u=n(59309),d=n(28747),m=n(8722),h=n(39398),g=n(97684),f=n(29162),k=n(19916);const __=r.__,v=(0,u.$j)(((e,t)=>({nextRoute:(0,m.mI)(e),...(0,g.gU)(e,t.stepSlug),stateStepSlug:(0,m.TO)(e),updatingStep:(0,m.ZL)(e),summaryViewed:(0,m.E3)(e,"summary"),spotlightProduct:(0,m.fo)(e,t.stepSlug),...(0,m.F_)(e)?{stepProgressValue:(0,m.HZ)(e),progressValue:null,summaryViewed:!1}:{}})),(e=>({addViewedRecommendation:t=>e((0,m.Hm)(t)),updateRecommendationsStep:t=>e((0,m.OC)(t))})))((e=>{const{isNew:t,progressValue:n,stepProgressValue:r,question:u,description:m,descriptionList:g,descriptionSecondary:v,descriptionLink:_,nextRoute:E,illustration:w,ctaText:b,ctaLink:y,hasNoAction:j,skipText:C,stepSlug:S,stateStepSlug:N,updatingStep:x,spotlightProduct:T,updateRecommendationsStep:A,addViewedRecommendation:P,summaryViewed:Z}=e;(0,l.useEffect)((()=>{S!==N?A(S):S!==N||x||(P(S),c.Z.tracks.recordEvent("jetpack_recommendations_recommendation_viewed",{feature:S}))}),[S,N,x,A,P]);const M=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_learn_more_click",{feature:S})}),[S]),O=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_read_click",{feature:S}),window.location.href=E}),[S,E]),R=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_skip_click",{feature:S})}),[S]),L=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommended_resource_back_to_summary_click",{feature:S})}),[S]),I=(0,l.useMemo)((()=>r?p().createElement(f.R,r):n?p().createElement(s.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:n/100}):null),[r,n]);return p().createElement(k.X,{progressBar:I,isNew:t,question:u,description:m?(0,i.createInterpolateElement)(m,{br:p().createElement("br",null),strong:p().createElement("strong",null),ExternalLink:p().createElement(a.ExternalLink,{href:_,onClick:M})}):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"},j?p().createElement(o.Z,{primary:!0,rna:!0,href:E},b):p().createElement(p().Fragment,null,p().createElement(a.ExternalLink,{type:"button",className:"dops-button is-rna is-primary",href:y,onClick:O},b),p().createElement("div",{className:"jp-recommendations-question__jump-nav"},p().createElement("a",{href:E,onClick:R},C||__("Not now","jetpack")),Z&&p().createElement(p().Fragment,null,p().createElement("span",{className:"jp-recommendations-question__jump-nav-separator"},"|"),p().createElement("a",{onClick:L,href:"#/recommendations/summary"},__("View Recommendations","jetpack")," "))))),sidebarCard:T?p().createElement(d.N,{productSlug:T,stepSlug:S}):null,illustration:w||h.lY})}))},97392:function(e,t,n){"use strict";n.d(t,{g:function(){return g}});var s=n(94343),a=n(65736),i=n(97506),r=n(84069),o=n(99196),c=n(59309),l=n(69508),p=n(8722),u=n(39398),d=n(86095),m=n(90068),h=n(19916);const __=a.__,g=(0,c.$j)((e=>({nextRoute:(0,p.mI)(e),siteTitle:(0,l.aW)(e),answers:{personal:(0,p.$q)(e,"site-type-personal"),builder:(0,p.$q)(e,"site-type-agency"),store:(0,p.$q)(e,"site-type-store")},stateStepSlug:(0,p.TO)(e),updatingStep:(0,p.ZL)(e),canShowProductSuggestions:(0,p.sB)(e)})),(e=>({updateRecommendationsStep:t=>e((0,p.OC)(t)),addViewedRecommendation:t=>e((0,p.Hm)(t)),saveRecommendationsData:()=>e((0,p.u8)())})))((e=>{const{answers:t,nextRoute:n,saveRecommendationsData:c,siteTitle:l,stateStepSlug:p,updatingStep:g,addViewedRecommendation:f,updateRecommendationsStep:k,canShowProductSuggestions:v}=e;(0,o.useEffect)((()=>{"site-type-question"!==p?k("site-type-question"):"site-type-question"!==p||g||f("site-type-question")}),[p,g,k,f]);const _=(0,o.useCallback)((()=>{c(),r.Z.tracks.recordEvent("jetpack_recommendations_site_type_answered",t)}),[t,c]),E=React.createElement("div",{className:"jp-recommendations-question__site-type-answer-container"},React.createElement("div",{className:"jp-recommendations-question__site-type-checkboxes"},React.createElement(m.C,{answerKey:"site-type-agency",title:__("I build or manage this site for a client","jetpack"),info:__("Are you an agency or developer that builds or manages sites for clients?","jetpack")}),React.createElement(m.C,{answerKey:"site-type-store",title:__("This is an e-commerce site","jetpack"),info:__("E-commerce sites include stores selling goods, services, or digital downloads.","jetpack")}),React.createElement(m.C,{answerKey:"site-type-personal",title:__("This is a personal site","jetpack"),info:__("You built this site yourself, nice work! Personal sites include things like blogs, resume sites, wedding sites, and hobby sites.","jetpack")})),React.createElement(i.Z,{primary:!0,rna:!0,href:n,onClick:_},__("Continue","jetpack")),React.createElement("div",{className:"jp-recommendations-site-type-question__continue-description"},__("All of Jetpack’s great features await you and we’ll recommend some of our favorites.","jetpack")));return React.createElement(h.X,{progressBar:React.createElement(s.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:.14}),question:/* translators: placeholder is the title of the site */ | |
| 86 | -(0,a.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:E,sidebarCard:v?React.createElement(d.Z,null):null,illustration:u.lY,illustrationClassName:"jp-recommendations-site-type__illustration"})}))},86095:function(e,t,n){"use strict";var s=n(80800),a=n(65736),i=n(97506),r=n(84069),o=n(99196),c=n.n(o),l=n(59309),p=n(36920),u=n(8722),d=n(16876),m=n(23494),h=n(88842),g=n(90351),f=n(17279);const __=a.__;t.Z=(0,l.$j)((e=>({isLoading:(0,d.Zd)(e)||(0,u.at)(e)||(0,p.HW)(e),discountData:(0,d.u)(e),introOffers:(0,p.ni)(e),suggestions:(0,u.El)(e),step:(0,u.TO)(e)})),(e=>({markAsViewed:t=>e((0,u.fy)(t))})))((e=>{let{isLoading:t,discountData:n,introOffers:a,suggestions:l,markAsViewed:p,step:u}=e;const{expiry_date:d}=n,k=(0,o.useMemo)((()=>(0,g.q)(n,a,l)),[n,a,l]),v=(0,o.useMemo)((()=>(0,f.h)(n)),[n]),_=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_upsell_card_cta_click",{discount:v})}),[v]);return(0,o.useEffect)((()=>{p(u)}),[p,u]),(0,o.useEffect)((()=>{t||r.Z.tracks.recordEvent("jetpack_recommendations_upsell_card_display",{discount:v})}),[t,v]),t?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.hp+"recommendations/cloud-icon.svg",alt:""}),v&&c().createElement(m.Z,{discount:k})),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"))),!t&&c().createElement(i.Z,{className:"jp-recommendations-discount-card__button",rna:!0,href:"#/recommendations/product-suggestions",onClick:_},v&&__("View discounted products","jetpack"),!v&&__("View products","jetpack")))),v&&c().createElement("div",{className:"jp-recommendations-discount-card__timer"},c().createElement(h.Z,{timeClassName:"jp-recommendations-discount-card__time",label:__("Discount ends in:","jetpack"),expiryDate:d}))))}))},15356:function(e,t,n){"use strict";n.d(t,{K:function(){return g}});var s=n(80800),a=n(6895),i=n(55609),r=n(69307),o=n(65736),c=n(65235),l=n.n(c),p=n(20408),u=n(84069),d=n(34443),m=n(99196),h=n(95629);const __=o.__,g=e=>{let{slug:t,underside:n=!1}=e;(0,m.useEffect)((()=>{u.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"mobile_app",slug:t})}),[t]);const o=(0,m.useCallback)((()=>{u.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_jpcom",slug:t})}),[t]),c=(0,m.useCallback)((e=>{u.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_badge",store:e,slug:t})}),[t]),g=()=>React.createElement("div",{className:"jp-recommendations-sidebar-mobile__apps-badge"},React.createElement(p.Z,{onBadgeClick:c,storeName:"ios",utm_source:"jetpack-plugin-recommendations"})),f=()=>React.createElement("div",{className:"jp-recommendations-sidebar-mobile__apps-badge"},React.createElement(p.Z,{onBadgeClick:c,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.hp+`/recommendations/mobile-app-qr-code-${t}.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,a.Z)("jetpack-plugin-recommendations-mobile-app-component"),rel:"noopener noreferrer",target:"_blank",onClick:o})}))),v=n?35:25,_=React.createElement("div",{className:"jp-recommendations-sidebar-mobile__header-container"},React.createElement("img",{src:s.hp+"/recommendations/wordpress-icon.svg",width:v,height:v,alt:""}),React.createElement("img",{className:l()("jp-recommendation-sidebar-mobile__jetpack-icon",{underside:n}),src:s.hp+"/recommendations/jetpack-icon.svg",width:v,height:v,alt:""}));return React.createElement(h.y,{className:n?"underside":"",header:_},React.createElement("h2",{className:"jp-recommendation-sidebar-mobile__heading"},(()=>{switch(t){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(t){case"download-app":return __("Never miss an important event with realtime notifications and your activity log just a tap away.","jetpack");case"one-click-restores":return __("Keep track of your site’s activity and restore your site anywhere, any time.","jetpack");case"manage-security":return __("Get instant alerts for serious issues and fix them with a simple tap.","jetpack");default:return __("The Jetpack mobile app gives you everything you need to grow and manage your WordPress site anywhere, anytime.","jetpack")}})()),(()=>{switch((0,d.Z)()){case"ios":return React.createElement(g,null);case"android":return React.createElement(f,null);default:return React.createElement(k,null)}})())}},78787:function(e,t,n){"use strict";n.d(t,{c:function(){return h}});var s=n(80800),a=n(6895),i=n(65736),r=n(97506),o=n(84069),c=n(99196),l=n.n(c),p=n(59309),u=n(69508),d=n(33002),m=n(95629);const __=i.__,h=(0,p.$j)((e=>({hasRealTimeBackups:(0,d.CV)(e,"real-time-backups"),siteRawUrl:(0,u.JR)(e)})))((e=>{const{hasRealTimeBackups:t,siteRawUrl:n}=e;(0,c.useEffect)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"one-click-restores"})}),[]);const p=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"one_click_restores"})}),[]),u=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"recommendations/one_click_restores"})}),[]);let d=__("Daily Backups","jetpack");return t&&(d=__("Real-time Backups","jetpack")),l().createElement(l().Fragment,null,l().createElement(m.y,{illustrationPath:s.hp+"/recommendations/one-click-restores.svg"},l().createElement("div",{className:"jp-recommendations-one-click-restores"},l().createElement("h2",null,__("Enable one-click restores","jetpack")),l().createElement("p",null,(0,i.sprintf)(/* translators: placeholder is the name of a backups plan: Daily Backups or Real-time Backups */ | |
| 87 | -__("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"),d)),l().createElement("p",null,__("Enter your server credentials to enable one-click restores included in your plan.","jetpack")),l().createElement("div",{className:"jp-recommendations-one-click-restores__cta"},l().createElement(r.Z,{rna:!0,href:(0,a.Z)("jetpack-backup-dash-credentials",{site:n}),onClick:p},__("Enable one-click restores","jetpack"))))),l().createElement(m.y,{compact:!0},l().createElement("div",{className:"jp-recommendations-getting-started-compact"},l().createElement("a",{href:s.zh,onClick:u,target:"_blank",rel:"noreferrer"},l().createElement("img",{className:"jp-recommendations-getting-started-compact__thumbnail",src:s.hp+"backup-getting-started-thumbnail.png",srcSet:`${s.hp+"backup-getting-started-thumbnail.png"} 1x, ${s.hp+"backup-getting-started-thumbnail-2x.png"} 2x`,alt:""})),l().createElement("div",null,l().createElement("h2",null,__("Getting started with Jetpack VaultPress Backup","jetpack")),l().createElement("p",null,__("A short video guide on how to back up your website","jetpack"))))))}))},73986:function(e,t,n){"use strict";n.d(t,{q:function(){return d}});var s=n(65736),a=n(97506),i=n(5060),r=n(84069),o=n(99196),c=n.n(o),l=n(71912),p=n(36622),u=n(95629);const __=s.__,d=(0,l.Z)((e=>{const{upgradeUrl:t}=e;(0,o.useEffect)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_no_price"})}),[]);const n=(0,o.useCallback)((()=>{r.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"upsell_no_price"})}),[]),s=[__("Robust security to keep your site safe","jetpack"),__("Speed-enhancing performance tools","jetpack"),__("Increase site growth with marketing","jetpack")];return c().createElement(u.y,{header:c().createElement(p.Z,null)},c().createElement("div",null,c().createElement("h2",null,__("Powerful security, performance, and marketing","jetpack")),c().createElement("ul",{className:"jp-recommendations-sidebar-card__features"},s.map((e=>c().createElement("li",{key:e},e)))),c().createElement("p",null,__("Explore premium Jetpack product bundles or pick and choose exactly what you need.","jetpack")),c().createElement(a.Z,{rna:!0,href:t,onClick:n,target:"blank",rel:"noopener noreferrer"},__("Learn more","jetpack"),c().createElement(i.Z,{icon:"external"}))))}))},28747:function(e,t,n){"use strict";n.d(t,{N:function(){return m}});var s=n(80800),a=n(55609),i=n(84069),r=n(25162),o=n.n(r),c=n(99196),l=n.n(c),p=n(59309),u=n(97684);const d=e=>{const{productCardTitle:t,productCardCtaLink:n,productCardCtaText:r,productCardList:o,productCardIcon:p,productCardDisclaimer:u,stepSlug:d}=e,m=(0,c.useCallback)((()=>{i.Z.tracks.recordEvent("jetpack_recommendations_step_product_card_button_click",{feature:d})}),[d]);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.hp+p,alt:""})),l().createElement("div",{className:"jp-recommendations-discount-card__card-body"},l().createElement("h3",{className:"jp-recommendations-discount-card__heading"},t),o&&l().createElement("ul",{className:"jp-recommendations-discount-card__feature-list"},o.map(((e,t)=>l().createElement("li",{key:`feature-${t}`},e)))),u&&l().createElement("p",{className:"jp-recommendations-discount-card__disclaimer"},u.text," ",l().createElement(a.ExternalLink,{href:u.url},u.link_text)),l().createElement(a.ExternalLink,{type:"button",className:"dops-button is-rna jp-recommendations-discount-card__button",href:n,onClick:m},r)))))};d.propTypes={productSlug:o().string.isRequired};const m=(0,p.$j)(((e,t)=>({...(0,u.r3)(e,t.productSlug),...(0,u.qJ)(e,t.productSlug,t.stepSlug)})))(d)},36622:function(e,t,n){"use strict";var s=n(65736),a=n(65235),i=n.n(a),r=n(5060),o=n(99196),c=n.n(o);const __=s.__;t.Z=e=>{let{className:t}=e;return c().createElement("div",{className:i()("jp-recommendations-recommended-header",t)},c().createElement(r.Z,{size:18,icon:"star"}),__("Recommended premium product","jetpack"))}},24855:function(e,t,n){"use strict";n.d(t,{c:function(){return h}});var s=n(80800),a=n(6895),i=n(65736),r=n(97506),o=n(5060),c=n(84069),l=n(99196),p=n.n(l),u=n(59309),d=n(69508),m=n(95629);const __=i.__,h=(0,u.$j)((e=>({siteRawUrl:(0,d.JR)(e)})))((e=>{const{siteRawUrl:t}=e;(0,l.useEffect)((()=>{c.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"security"})}),[]);const n=(0,l.useCallback)((()=>{c.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"security"})}),[]);return p().createElement(m.y,{illustrationPath:s.hp+"/recommendations/manage-security.svg"},p().createElement("div",null,p().createElement("h2",null,__("Manage your security on Jetpack.com","jetpack")),p().createElement("p",null,__("Did you know you can manage all your backups right from Jetpack.com?","jetpack")),p().createElement("p",null,__("You can also use your included Activity feature to monitor every change that occurs on your site!","jetpack")),p().createElement(r.Z,{rna:!0,href:(0,a.Z)("jetpack-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:n},__("Manage security on Jetpack.com","jetpack"),p().createElement(o.Z,{icon:"external"}))))}))},95629:function(e,t,n){"use strict";n.d(t,{y:function(){return o}});var s=n(65235),a=n.n(s),i=n(99196),r=n.n(i);const o=e=>{const{header:t,children:n,illustrationPath:s,compact:i,className:o}=e;return r().createElement("div",{className:a()("jp-recommendations-sidebar-card",o,{"with-illustration":!!s})},s?r().createElement("div",{className:"jp-recommendations-sidebar-card__illustration-container"},r().createElement("div",{className:"jp-recommendations-sidebar-card__illustration"},r().createElement("img",{src:s,alt:""}))):t,r().createElement("div",{className:a()("jp-recommendations-sidebar-card__content",{"is-compact":i})},n))}},29162:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var s=n(94343),a=n(65736);const __=a.__,i=e=>{let{currentStepIndex:t,totalSteps:n}=e;if(-1===t)return null;const i=t/(n-1)*100;return React.createElement("div",{className:"step-progress-bar"},React.createElement(s.Z,{className:"progress-bar",progressClassName:"progress-bar__progress",progress:i/100}),React.createElement("span",{className:"step-progress-bar__label"},(0,a.sprintf)(/* Translators: %1$s is the current step number, %2$s are total steps */ | |
| 88 | -__("Step %1$s of %2$s","jetpack"),t+1,n)))}},43026:function(e,t,n){"use strict";n.d(t,{E:function(){return j}});var s=n(65736),a=n(65235),i=n.n(a),r=n(72129),o=n(92819),c=n(99196),l=n.n(c),p=n(59309),u=n(69508),d=n(8722),m=n(3230),h=n(61372),g=n(2025),f=n(21404),k=n(91508),v=n(15356),_=n(78787),E=n(73986),w=n(24855),b=n(95766);const __=s.__,y=e=>{const{isFetchingMainData:t,isFetchingSidebarData:n,isFetchingBottomSectionData:a,sidebarCardsSlug:o,siteTitle:p,summaryFeatureSlugs:u,summaryResourceSlugs:d,summaryPrimarySections:m,updateRecommendationsStep:h,addViewedRecommendation:y,upsell:j,isOnboardingActive:C,newRecommendations:S,stateStepSlug:N,updatingStep:x,updateOnboardingData:T}=e;(0,c.useEffect)((()=>{"summary"!==N?h("summary"):"summary"!==N||x||y("summary")}),[N,x,h,y]),(0,c.useEffect)((()=>{C&&T({active:null})}),[T,C]);const A=e=>S.includes(e),P=t?l().createElement(r.D,{altText:__("Loading recommendations","jetpack")}):l().createElement(l().Fragment,null,l().createElement("div",{className:"jp-recommendations-summary__configuration"},l().createElement("h1",null,(0,s.sprintf)(/* translators: %s is the site name */ | |
| 89 | -__("Nice work! Let’s recap what we enabled for %s.","jetpack"),p)),m.map((e=>{let{name:t,slugs:n}=e;const a=`primary-onboarding-${t.toLowerCase().replace(/[\s_-]+/g,"-")}`;return l().createElement("section",{key:t,"aria-labelledby":a},l().createElement("h2",{id:a},(0,s.sprintf)(/* translators: %s is the jetpack plan name */ | |
| 90 | -__("Part of your %s plan","jetpack"),t)),n.map((e=>l().createElement(f.u,{key:e,slug:e}))))})),(u.selected.length>0||u.skipped.length>0)&&l().createElement("section",{"aria-labelledby":"enabled-recommendations"},l().createElement("h2",{id:"enabled-recommendations"},__("Recommendations enabled","jetpack")),l().createElement("div",null,u.selected.length>0?u.selected.map((e=>l().createElement(g.H,{key:e,featureSlug:e,isNew:A(e)}))):l().createElement("p",{className:"jp-recommendations-summary__recommendation-notice"},l().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"))))),u.skipped.length>0&&l().createElement("section",{"aria-labelledby":"skipped-recommendations"},l().createElement("h2",{id:"skipped-recommendations"},__("Recommendations skipped","jetpack")),l().createElement("div",null,u.skipped.map((e=>l().createElement(g.H,{key:e,featureSlug:e,isNew:A(e)}))))),d.length>0&&l().createElement("section",{"aria-labelledby":"resources-summary-title"},l().createElement("h2",{id:"resources-summary-title"},__("Resources","jetpack")),l().createElement("div",null,d.map((e=>l().createElement(k._,{key:e,resourceSlug:e,isNew:A(e)})))))));let Z,M;if(n)Z=l().createElement(r.D,{altText:__("Loading recommendations","jetpack")});else switch(o){case"loading":Z=l().createElement(r.D,{altText:__("Loading recommendations","jetpack")});break;case"upsell":Z=j.hide_upsell?l().createElement(E.q,null):l().createElement(b.Z,null),M=l().createElement(v.K,{slug:o,underside:!0});break;case"one-click-restores":Z=l().createElement(l().Fragment,null,l().createElement(_.c,null),l().createElement(v.K,{slug:o}));break;case"manage-security":Z=l().createElement(l().Fragment,null,l().createElement(w.c,null),l().createElement(v.K,{slug:o}));break;case"download-app":Z=l().createElement(v.K,{slug:o});break;default:Z=l().createElement(v.K,{slug:"unknown"})}return l().createElement("div",{className:"jp-recommendations-summary"},l().createElement("div",{className:"jp-recommendations-summary__main"},l().createElement("div",{className:i()("jp-recommendations-summary__content",{isLoading:t})},P),l().createElement("div",{className:i()("jp-recommendations-summary__sidebar",{isLoading:n})},Z)),M&&l().createElement("div",{className:i()("jp-recommendations-summary__underside",{isLoading:a})},M))};y.defaultProps={newRecommendations:[]};const j=(0,p.$j)((e=>{const t=(0,h.bK)(e),n=(0,m.Gw)(e),s=(0,d.jn)(e);return{isFetchingMainData:(0,o.isEmpty)(n)||(0,o.isEmpty)(t),isFetchingSidebarData:(0,o.isEmpty)(s),isFetchingBottomSectionData:(0,o.isEmpty)(s),sidebarCardsSlug:(0,d.Xi)(e),siteTitle:(0,u.aW)(e),summaryFeatureSlugs:(0,d.CI)(e),summaryResourceSlugs:(0,d.jp)(e),summaryPrimarySections:(0,d.TK)(e),stateStepSlug:(0,d.TO)(e),updatingStep:(0,d.ZL)(e),isOnboardingActive:(0,d.F_)(e),upsell:s}}),(e=>({updateRecommendationsStep:t=>e((0,d.OC)(t)),updateOnboardingData:t=>e((0,d.y5)(t)),addViewedRecommendation:t=>e((0,d.Hm)(t))})))(y)},95766:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(23609),o=n(84069),c=n(99196),l=n.n(c),p=n(59309),u=n(8722),d=n(16876),m=n(18821),h=n(88842),g=n(17279);const __=i.__,f=(0,p.$j)((e=>({upsell:(0,u.jn)(e),discountData:(0,d.u)(e)})))((e=>{let{upsell:t,discountData:n}=e;const{product_slug:s}=t||{},{expiry_date:i}=n,p=(0,c.useMemo)((()=>(0,g.h)(n)),[n]),u=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{product_slug:s,discount:p})}),[s,p]),d=(0,c.useCallback)((()=>{o.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{product_slug:s,discount:p})}),[s,p]);return l().createElement(l().Fragment,null,l().createElement(m.u,a()({},t,{slug:s,isRecommended:!0,onClick:u,onMount:d})),p&&l().createElement("div",{className:"jp-recommendations-summary__discount"},l().createElement("div",{className:"jp-recommendations-summary__timer"},l().createElement(h.Z,{timeClassName:"jp-recommendations-summary__time",label:__("Discount ends in:","jetpack"),expiryDate:i})),l().createElement("a",{className:"jp-recommendations-summary__reco-link",href:"#/recommendations/product-suggestions"},__("See all discounted products","jetpack"))),l().createElement("div",{className:"jp-recommendations-summary__footer"},l().createElement(r.N,{text:__("14-day money-back guarantee","jetpack")}),l().createElement("div",{className:"jp-recommendations-summary__footnote"},p&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!p&&__("Special introductory pricing, all renewals are at full price.","jetpack"))))}));t.Z=f},88842:function(e,t,n){"use strict";var s=n(65736),a=n(99196),i=n.n(a);const __=s.__;t.Z=e=>{let{label:t,timeClassName:n,expiryDate:r}=e;const o=(0,a.useMemo)((()=>new Date(r)),[r]),[c,l]=(0,a.useState)(o-Date.now()),p=(0,a.useRef)(),u=(0,a.useCallback)((()=>{l(o-Date.now())}),[o,l]),d=(0,a.useCallback)((e=>{const t=e/1e3,n=Math.floor(t/86400),a=Math.floor((t-3600*n*24)/3600),i=Math.floor((t-3600*n*24-3600*a)/60),r=Math.floor(t-3600*n*24-3600*a-60*i),o=[];return n>0&& | |
| 91 | -// translators: %d is the number of days, d an abbreviation for days (e.g. 7d). Only translate the latter. | |
| 92 | -o.push((0,s.sprintf)(__("%dd","jetpack"),n)),(n>0||a>0)&& | |
| 93 | -// translators: %d is the number of hours, h an abbreviation for hours (e.g. 23h). Only translate the latter. | |
| 94 | -o.push((0,s.sprintf)(__("%dh","jetpack"),a)),(n>0||a>0||i>0)&& | |
| 95 | -// translators: %d is the number of minutes, m an abbreviation for minutes (e.g. 59m). Only translate the latter. | |
| 96 | -o.push((0,s.sprintf)(__("%dm","jetpack"),i)), | |
| 97 | -// translators: %d is the number of seconds, s an abbreviation for seconds (e.g. 59s). Only translate the latter. | |
| 98 | -o.push((0,s.sprintf)(__("%ds","jetpack"),r)),o.join(" ")}),[]);return(0,a.useEffect)((()=>{const e=setInterval(u,500);return p.current=e,()=>{clearInterval(p.current)}}),[]),c>0?i().createElement(i().Fragment,null,t,i().createElement("span",{className:n},d(c))):__("Discount offer has ended","jetpack")}},90351:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});const s=(e,t,n)=>{if(!e||!t||!n)return;const s=parseInt(e?.discount,10);if(Number.isNaN(s))return;const a=n.map((e=>{let{slug:t}=e;return t})),i=t.filter((e=>{let{product_slug:t}=e;return a.includes(t)})).map((e=>{let{original_price:t,raw_price:n}=e;if(!t)return;const a=(t-n*(1-s/100))/t;return Math.round(100*a)})).filter(Boolean);return i.length?Math.max(...i):void 0}},38356:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var s=n(6895);const a=(e,t,n,a)=>(0,s.Z)("jetpack-recommendations-product-checkout",{site:n,path:e,query:`coupon=${a||""}&redirect_to=${t}admin.php?jp-react-redirect=product-purchased`})},17279:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});const s=e=>{if("object"!=typeof e)return!1;const{discount:t,is_used:n,expiry_date:s}=e;return!!t&&!n&&new Date(s).valueOf()-Date.now()>0}},91256:function(e,t,n){"use strict";var s=n(65736),a=n(47407),i=n(66164),r=n(2353),o=n(93806),c=n(28178),l=n(92819),p=n(25162),u=n.n(p),d=n(99196),m=n.n(d),h=n(59309),g=n(96300),f=n(69508),k=n(50416),v=n(89292);const __=s.__,_=(0,r.u)(class extends d.Component{handleBannerClick=e=>()=>this.props.updateOptions({[e]:!0});render(){if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;const e=["contact-form","enhanced-distribution","json-api","notes"],t=this.props.modules,n=[];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 n.push(m().createElement(E,{key:s,moduleData:t,offlineMode:e,siteConnectionMode:i}));this.props.getOptionValue(t.module)?n.push(m().createElement(E,{key:s,moduleData:t})):n.push(m().createElement(a.ZP,{className:"jp-searchable-banner",key:s,callToAction:__("Activate","jetpack"),description:t.description,href:"javascript:void( 0 )",icon:"cog",onClick:this.handleBannerClick(t.module),title:t.name}))}})),m().createElement("div",null,n)}});_.propTypes={searchTerm:u().string},_.defaultProps={searchTerm:""};class E extends d.Component{render(){const e=this.props.moduleData,t=this.props.offlineMode,n=this.props.siteConnectionMode;return m().createElement(o.Z,{module:e.module,header:e.name,action:e.module,hideButton:!0},m().createElement(c.Z,{disableInOfflineMode:t,disableInSiteConnectionMode:n,module:{module:e.module},support:{link:e.learn_more_button}},e.description),n&&m().createElement(i.Z,{feature:e.module,featureLabel:e.name,text:__("Connect to configure.","jetpack")}))}}t.Z=(0,h.$j)((e=>({modules:(0,k.hU)(e),isModuleFound:t=>(0,v.CX)(e,t),canManageModules:(0,f.pK)(e),isUnavailableInOfflineMode:t=>(0,g.t_)(e,t),isOfflineMode:(0,g.Ex)(e),isUnavailableInSiteConnectionMode:t=>(0,g.IK)(e,t)})))(_)},37753:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(69307),r=n(65736),o=n(30860),c=n(45452),l=n(61775),p=n(5060),u=n(2353),d=n(93806),m=n(28178),h=n(9494),g=n(84069),f=n(59584),k=n(92819),v=n(99196),_=n.n(v),E=n(59309),w=n(17296);const __=r.__,_x=r._x,b=(0,u.u)(class extends v.Component{state={apiKey:this.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}};keyChanged=!1;UNSAFE_componentWillMount(){this.debouncedCheckApiKeyTyped=(0,k.debounce)(this.checkApiKeyTyped,500)}checkApiKeyTyped=e=>{this.props.checkAkismetKey(e.currentTarget.value),this.keyChanged=!0,this.setState({delayKeyCheck:!1})};updateText=e=>{const t=(0,k.assign)({},e);t.currentTarget.value=(0,k.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,k.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}trackOpenCard=()=>{g.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})};render(){const e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText};let t="",n=__("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:_().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,n=__("Your site is protected from spam.","jetpack"),s=__("It looks like your API key has been set globally.","jetpack"),t=_().createElement(c.Z,{text:__("Your Anti-spam key is valid.","jetpack")})):""===this.state.apiKey?(e.value="",n=__("Your site needs an Anti-spam key.","jetpack")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=_().createElement("div",{className:"form-input-validation is-warning"},_().createElement("span",null,_().createElement(p.Z,{size:24,icon:"sync"}),__("Checking key…","jetpack"))),s=!1):!1===this.props.isAkismetKeyValid?(t=_().createElement(c.Z,{isError:!0,text:(0,i.createInterpolateElement)(__("There's a problem with your Anti-spam API key. <a>Learn more</a>.","jetpack"),{a:_().createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})})}),e.isError=!0,n=__("Your site is not protected from spam.","jetpack")):(t=_().createElement(c.Z,{text:__("Your Anti-spam key is valid.","jetpack")}),e.isValid=!0,n=__("Your site is protected from spam.","jetpack"),s=!1),_().createElement(d.Z,a()({},this.props,{header:_x("Anti-spam","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:f.V37}),_().createElement(o.Z,{onOpen:this.trackOpenCard,header:n},_().createElement(m.Z,{support:{text:__("Removes spam from comments and contact forms.","jetpack"),link:"https://akismet.com/jetpack/"}},_().createElement(l.C_,null,_().createElement(l.lX,null,_().createElement("span",{className:"jp-form-label-wide"},__("Your API key","jetpack")),_().createElement(h.Z,e),t),s&&_().createElement("p",{className:"jp-form-setting-explanation"},s)))))}});t.Z=(0,E.$j)((e=>({isAkismetKeyValid:(0,w._2)(e),isCheckingAkismetKey:(0,w.gw)(e)})),(e=>({checkAkismetKey:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,w.Bt)(t))}})))(b)},49529:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(52947),o=n(69307),c=n(65736),l=n(90496),p=n(47407),u=n(85799),d=n(88546),m=n(2353),h=n(93806),g=n(28178),f=n(84069),k=n(59584),v=n(92819),_=n(25162),E=n.n(_),w=n(99196),b=n.n(w),y=n(59309),j=n(17296),C=n(69508),S=n(50416),N=n(69377),x=n(33002);const __=c.__,_x=c._x,_n=c._n;class T extends w.Component{render(){return b().createElement(h.Z,{header:_x("Backups and security scanning","Settings header","jetpack"),hideButton:!0,action:"scan"},b().createElement(g.Z,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,i.Z)("vaultpress-help-get-to-know")}},__("Checking site status…","jetpack")))}}class A extends w.Component{static propTypes={isOfflineMode:E().bool,siteRawUrl:E().string,rewindState:E().string};static defaultProps={isOfflineMode:!1,siteRawUrl:"",rewindState:""};getRewindMessage(){const{siteRawUrl:e,rewindState:t}=this.props;switch(t){case"provisioning":return{title:__("Provisioning","jetpack"),icon:"info",description:__("Backups and Scan are being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:__("Awaiting credentials","jetpack"),iconWp:l.Z,type:"warning",description:__("Enter your SSH, SFTP, or FTP credentials to enable one-click site restores and fixes","jetpack"),url:(0,i.Z)("jetpack-settings-security-credentials",{site:e})};case"active":return{title:__("Active","jetpack"),icon:"checkmark-circle",description:__("Your site is connected to Jetpack Backup and Scan.","jetpack"),url:(0,i.Z)("calypso-activity-log",{site:e})};default:return{title:__("Oops!","jetpack"),icon:"info",description:__("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack"),url:""}}}getCardText=()=>{if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");const{title:e,icon:t,iconWp:n,description:s,type:a,url:i}=this.getRewindMessage();return b().createElement(p.ZP,{title:e,icon:t,iconWp:n,feature:"rewind",description:s,className:`jp-banner__no-border is-jetpack-${a||"info"}`,href:i})};render(){return b().createElement(h.Z,a()({feature:"rewind"},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"rewind",hideButton:!0}),this.getCardText())}}const P=(0,m.u)(class extends w.Component{toggleModule=(e,t)=>{this.props.updateFormStateOptionValue(e,!t)};trackConfigureClick=()=>{f.Z.tracks.recordJetpackClick("configure-scan")};getCardText(){const e=(0,v.get)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,v.get)(this.props.vaultPressData,["data","features","security"],!1);if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");if(e&&t){const e=this.props.hasThreats;return e?b().createElement("div",null,b().createElement("strong",null,(0,c.sprintf)(/* Translators: placeholder is a number (of threats). */ | |
| 99 | -_n("Uh oh, %s threat found.","Uh oh, %s threats found.",e,"jetpack"),(0,r.Z)(e))),b().createElement("br",null),b().createElement("br",null),(0,o.createInterpolateElement)(__("<a>View details</a>","jetpack"),{a:b().createElement("a",{href:(0,i.Z)("vaultpress-dashboard")})}),b().createElement("br",null),(0,o.createInterpolateElement)(__("<a>Contact Support</a>","jetpack"),{a:b().createElement("a",{href:(0,i.Z)("jetpack-support")})})):__("Your site is connected to VaultPress for backups and security scanning.","jetpack")}return e&&!this.props.hasScan?__("Your site is connected to VaultPress for backups.","jetpack"):this.props.isFetchingRewindStatus?__("Checking site status…","jetpack"):__("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack")}render(){if(!this.props.showBackups)return null;const e=(0,v.get)(this.props.vaultPressData,["data","features","security"],!1),t=(0,v.get)(this.props.rewindStatus,["state"],!1),n=!1!==t,s="N/A"!==this.props.vaultPressData&&!1!==(0,v.get)(this.props.vaultPressData,["data"],!1);return n||!this.props.vaultPressActive||s?(0,v.includes)(["provisioning","awaiting_credentials","active"],t)?b().createElement(A,a()({},this.props,{rewindState:t})):b().createElement(h.Z,a()({feature:k.eMt},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0}),b().createElement(d.Z,null),b().createElement(g.Z,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,i.Z)("vaultpress-help-get-to-know")}},this.getCardText()),!this.props.isUnavailableInOfflineMode("backups")&&e&&b().createElement(u.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:(0,i.Z)("vaultpress-dashboard")},__("Configure your Security Scans","jetpack"))):b().createElement(T,null)}});t.Z=(0,y.$j)((e=>({vaultPressData:(0,j.XK)(e),hasScan:(0,x.CV)(e,"scan"),hasThreats:(0,j._R)(e),vaultPressActive:(0,S.mp)(e,"vaultpress"),showBackups:(0,C.xR)(e),isFetchingRewindStatus:(0,N.Li)(e)})))(P)},37914:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(3544),o=n(69270),c=n(92819),l=n(99196),p=n.n(l),u=n(59309),d=n(17296),m=n(96300),h=n(50416),g=n(89292),f=n(3230),k=n(33002),v=n(61372),_=n(37753),E=n(49529),w=n(50385),b=n(9e3),y=n(87006),j=n(26237),C=n(86478);const __=i.__;class S 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,hasConnectedOwner:this.props.hasConnectedOwner},t=this.props.isModuleFound("waf"),n=this.props.isModuleFound("protect"),s=this.props.isModuleFound("sso"),i=this.isAkismetFound(),l="active"===(0,c.get)(this.props.rewindStatus,["state"],!1),u=this.props.isModuleFound("vaultpress")||l,d=this.props.isModuleFound("monitor"),m=this.props.searchTerm;if(!m&&!this.props.active)return null;if(!(s||n||i||u||d))return null;const h=this.props.backupsOnly?p().createElement(w.N,a()({},e,{vaultPressData:this.props.vaultPressData})):p().createElement(E.Z,e);return p().createElement("div",null,p().createElement(o.Z,null),p().createElement("h1",{className:"screen-reader-text"},__("Jetpack Security Settings","jetpack")),p().createElement("h2",{className:"jp-settings__section-title"},m?__("Security","jetpack"):__("Your site is protected by Jetpack. You’ll be notified if anything needs attention.","jetpack",0)),u&&h,d&&p().createElement(b.u,e),i&&p().createElement(p().Fragment,null,p().createElement(_.Z,e),p().createElement(r.Z,null)),t&&p().createElement(C.Z,e),n&&p().createElement(y.C,e),s&&p().createElement(j.y,e))}}t.Z=(0,u.$j)((e=>({backupsOnly:(0,k.CV)(e,"backups")&&!(0,k.CV)(e,"scan"),module:t=>(0,h.rT)(e,t),settings:(0,f.Gw)(e),isOfflineMode:(0,m.Ex)(e),isUnavailableInOfflineMode:t=>(0,m.t_)(e,t),isModuleFound:t=>(0,g.CX)(e,t),isPluginActive:t=>(0,v.TB)(e,t),isPluginInstalled:t=>(0,v.P8)(e,t),vaultPressData:(0,d.XK)(e),hasConnectedOwner:(0,m.it)(e)})))(S)},50385:function(e,t,n){"use strict";n.d(t,{N:function(){return f}});var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(47407),c=n(93806),l=n(28178),p=n(59584),u=n(92819),d=n(25162),m=n.n(d),h=n(99196),g=n.n(h);const __=r.__,_x=r._x;class f extends h.Component{static propTypes={siteRawUrl:m().string,rewindState:m().string};static defaultProps={siteRawUrl:"",rewindState:""};getVaultPressContent=()=>g().createElement(l.Z,{module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,i.Z)("jetpack-support-backup")}},__("Your site is connected to VaultPress for backups.","jetpack"));getRewindMessage(){const{siteRawUrl:e,rewindStatus:t}=this.props;switch((0,u.get)(t,"state",!1)){case"provisioning":return{title:__("Provisioning","jetpack"),icon:"info",description:__("Jetpack Backup is being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:__("Add your server credentials","jetpack"),icon:"notice",description:__("Enter your SSH, SFTP or FTP credentials to enable one-click site restores and faster backups","jetpack"),url:(0,i.Z)("jetpack-settings-security-credentials",{site:e})};case"active":return{title:__("Active","jetpack"),icon:"checkmark-circle",description:__("Your site is connected to Jetpack Backup.","jetpack"),url:(0,i.Z)("calypso-activity-log",{site:e})};default:return{title:__("Oops!","jetpack"),icon:"info",description:__("The Jetpack Backup status could not be retrieved at this time.","jetpack"),url:""}}}getRewindBanner=()=>{const{title:e,icon:t,description:n,url:s}=this.getRewindMessage();return g().createElement(o.ZP,{title:e,icon:t,feature:"rewind",description:n,className:"is-upgrade-premium jp-banner__no-border",href:s})};render(){const{rewindStatus:e,vaultPressData:t}=this.props,n=(0,u.get)(e,"state",!1),s=(0,u.get)(t,["data","features","backups"],!1);return!1!==n||s?g().createElement(c.Z,a()({feature:p.N_2},this.props,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0}),"unavailable"===n?this.getVaultPressContent():this.getRewindBanner()):g().createElement(c.Z,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0,action:p.N_2},g().createElement(l.Z,{module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,i.Z)("jetpack-support-backup")}},__("Checking site status…","jetpack")))}}},9e3:function(e,t,n){"use strict";n.d(t,{u:function(){return f}});var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(85799),c=n(66164),l=n(2353),p=n(5004),u=n(93806),d=n(28178),m=n(84069),h=n(99196),g=n.n(h);const __=r.__,_x=r._x,f=(0,l.u)(class extends h.Component{trackConfigureClick=()=>{m.Z.tracks.recordJetpackClick("configure-monitor")};render(){const e=this.props.hasConnectedOwner,t=this.props.isOfflineMode,n=this.props.getOptionValue("monitor"),s=this.props.isUnavailableInOfflineMode("monitor");return g().createElement(u.Z,a()({},this.props,{hideButton:!0,module:"monitor",header:_x("Downtime monitoring","Settings header","jetpack")}),g().createElement(d.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("monitor"),support:{text:__("Jetpack will continuously monitor your site and alert you the moment downtime is detected.","jetpack"),link:(0,i.Z)("jetpack-support-monitor")}},g().createElement(p.T,{slug:"monitor",disabled:s||!e,activated:n,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack")))),e&&g().createElement(o.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.Z)("calypso-settings-security",{site:this.props.siteRawUrl}),target:"_blank"},__("Configure your notification settings","jetpack")),!e&&!t&&g().createElement(c.Z,{feature:"monitor",featureLabel:__("Downtime Monitoring","jetpack"),text:__("Connect to set up your status alerts.","jetpack")}))}})},87006:function(e,t,n){"use strict";n.d(t,{C:function(){return j}});var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(97506),c=n(30860),l=n(61775),p=n(2353),u=n(5004),d=n(93806),m=n(28178),h=n(65936),g=n(84069),f=n(92819),k=n(99196),v=n.n(k),_=n(59309),E=n(5074),w=n(3230),b=n(22948);const __=r.__,_x=r._x,y=class extends k.Component{componentDidUpdate(e){e.allowListInputState!==this.props.allowListInputState&&this.props.updateFormStateOptionValue("jetpack_waf_ip_allow_list",this.props.allowListInputState)}currentIpIsSafelisted=()=>!!(0,f.includes)(this.props.allowListInputState,this.props.currentIp);updateIPAllowList=e=>{this.currentIpIsSafelisted(),this.props.updateWafIpAllowList(e.target.value)};addToSafelist=()=>{const e=this.props.allowListInputState+(0>=this.props.allowListInputState.length?"":"\n")+this.props.currentIp;this.props.updateWafIpAllowList(e),g.Z.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})};trackOpenCard=()=>{g.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})};render(){const e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect"),n=v().createElement(u.T,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},v().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return v().createElement(d.Z,a()({},this.props,{module:"protect",header:_x("Brute force protection","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("jetpack_waf_ip_allow_list")}),e&&v().createElement(E.Z,null),v().createElement(m.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("protect"),className:"foldable-wrapper"},v().createElement(c.Z,{onOpen:this.trackOpenCard,header:n},v().createElement(m.Z,{hasChild:!0,module:this.props.getModule("protect"),support:{text:__("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:(0,i.Z)("jetpack-support-protect")}},this.props.currentIp&&v().createElement("div",{className:"brute-force__current-ip"},v().createElement("div",{className:"jp-form-label-wide"},(0,r.sprintf)(/* translators: placeholder is an IP address. */ | |
| 100 | -__("Your current IP: %s","jetpack"),this.props.currentIp)),v().createElement(o.Z,{rna:!0,compact:!0,disabled:!e||t||this.currentIpIsSafelisted()||this.props.isSavingAnyOption(["protect","jetpack_waf_ip_allow_list"]),onClick:this.addToSafelist},__("Add to Always Allowed list","jetpack"))),v().createElement(l.lX,null,v().createElement(l.Gj,null,__("Always allowed IP addresses","jetpack")),v().createElement(h.Z,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_waf_ip_allow_list",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateIPAllowList,value:this.props.allowListInputState})),v().createElement("span",{className:"jp-form-setting-explanation"},__('You may mark an IP address (or series of addresses) as "Always allowed", preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100',"jetpack"))))))}},j=(0,_.$j)((e=>{const t=(0,b.EN)(e);return{allowListInputState:null!==t?t:(0,w.$8)(e,"jetpack_waf_ip_allow_list")}}),(e=>({updateWafIpAllowList:t=>e((0,b.uy)(t))})))((0,p.u)(y))},26237:function(e,t,n){"use strict";n.d(t,{y:function(){return f}});var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(65736),c=n(66164),l=n(61775),p=n(2353),u=n(5004),d=n(93806),m=n(28178),h=n(99196),g=n.n(h);const __=o.__,_x=o._x,f=(0,p.u)(class extends h.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)};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");return g().createElement(d.Z,a()({},this.props,{hideButton:!0,module:"sso",header:_x("WordPress.com login","Settings header, noun.","jetpack")}),g().createElement(m.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("sso"),support:{text:__("Allows registered users to log in to your site with their WordPress.com accounts.","jetpack"),link:(0,i.Z)("jetpack-support-sso")}},g().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")),g().createElement(u.T,{slug:"sso",disabled:t||!this.props.hasConnectedOwner,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),g().createElement(l.C_,null,g().createElement(r.Z,{checked:e&&this.props.getOptionValue("jetpack_sso_match_by_email","sso",!1),disabled:!e||t||this.props.isSavingAnyOption(["sso"]),toggling:this.props.isSavingAnyOption(["jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange,label:__("Match accounts using email addresses","jetpack")}),g().createElement(r.Z,{checked:e&&this.props.getOptionValue("jetpack_sso_require_two_step","sso",!1),disabled:!e||t||this.props.isSavingAnyOption(["sso"]),toggling:this.props.isSavingAnyOption(["jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange,label:__("Require accounts to use WordPress.com Two-Step Authentication","jetpack")}))),!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&g().createElement(c.Z,{feature:"sso",featureLabel:__("Secure Sign-On","jetpack"),text:__("Connect to enable WordPress.com Secure Sign-On.","jetpack")}))}})},86478:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(55609),c=n(69307),l=n(65736),p=n(97506),u=n(30860),d=n(61775),m=n(41549),h=n(85733),g=n(2353),f=n(93806),k=n(28178),v=n(59584),_=n(1137),E=n(99196),w=n.n(E),b=n(59309),y=n(33002),j=n(5074),C=n(42698),S=n(5004),N=n(65936),x=n(11834),T=n(98159),A=n(86725);const __=l.__,_x=l._x,P=class extends E.Component{state={automaticRulesEnabled:this.props.settings?.automaticRulesEnabled,manualRulesEnabled:this.props.settings?.manualRulesEnabled,ipBlockList:this.props.settings?.ipBlockList,ipAllowList:this.props.settings?.ipAllowList,shareData:this.props.settings?.shareData};componentDidUpdate=e=>{this.props.settings!==e.settings&&this.setState({...this.state,automaticRulesEnabled:this.props.settings?.automaticRulesEnabled,manualRulesEnabled:this.props.settings?.manualRulesEnabled,ipBlockList:this.props.settings?.ipBlockList,ipAllowList:this.props.settings?.ipAllowList,shareData:this.props.settings?.shareData}),e.allowListInputState!==this.props.allowListInputState&&this.setState({...this.state,ipAllowList:this.props.allowListInputState})};getCustomErrorMessage=e=>{switch(e.code){case"file_system_error":return __("A filesystem error occurred.","jetpack");case"rules_api_error":return __("An error occurred retrieving the latest automatic firewall rules.","jetpack");default:return!1}};onSubmit=()=>{this.props.removeNotice("module-setting-update"),this.props.removeNotice("module-setting-update-success"),this.props.createNotice("is-info",__("Updating settings…","jetpack"),{id:"module-setting-update"}),this.props.updateWafSettings(this.state).then((()=>{this.props.removeNotice("module-setting-update"),this.props.createNotice("is-success",__("Updated Settings.","jetpack"),{id:"module-setting-update-success"})})).catch((e=>{this.props.removeNotice("module-setting-update"),this.props.createNotice("is-error",(0,l.sprintf)(/* translators: placeholder is an error code or an error message. */ | |
| 101 | -__("Error updating settings. %s","jetpack"),this.getCustomErrorMessage(e.response)||e.message||e.code),{id:"module-setting-update"})}))};toggleAutomaticRules=()=>{this.setState({...this.state,automaticRulesEnabled:!this.state.automaticRulesEnabled},this.onSubmit)};toggleManualRules=()=>{this.setState({...this.state,manualRulesEnabled:!this.state.manualRulesEnabled},this.onSubmit)};handleIpBlockListChange=e=>{this.setState({...this.state,ipBlockList:e?.target?.value})};handleIpAllowListChange=e=>{this.props.updateWafIpAllowList(e.target.value)};toggleShareData=()=>{this.setState({...this.state,shareData:!this.state.shareData},this.onSubmit)};render(){const e=this.props.getOptionValue("waf"),t=this.props.isUnavailableInOfflineMode("waf"),n=!e||t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),s=w().createElement("div",{className:"waf__header"},w().createElement("span",null,_x("Firewall","Settings header","jetpack")),w().createElement("a",{href:(0,i.Z)("jetpack-support-waf"),target:"_blank",rel:"noopener noreferrer",className:"waf__header__badge"},_x("NEW","Settings header badge","jetpack"))),m=w().createElement("div",{className:"waf__settings__toggle-setting"},w().createElement(r.Z,{checked:!(!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable)&&this.props.settings?.automaticRulesEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.automaticRulesEnabled!==this.props.settings?.automaticRulesEnabled,disabled:n||!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable,onChange:this.toggleAutomaticRules,label:__("Automatic rules - Protect your site against untrusted traffic sources with automatic security rules","jetpack")})),g=w().createElement("div",{className:"waf__settings__toggle-setting"},w().createElement(r.Z,{checked:this.props.settings?.manualRulesEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.manualRulesEnabled!==this.props.settings?.manualRulesEnabled,disabled:n,onChange:this.toggleManualRules,label:__("Allow / Block list - Block or allow a specific request IP","jetpack")}),this.state.manualRulesEnabled&&w().createElement(w().Fragment,null,w().createElement("div",{className:"waf__settings__ips"},w().createElement(d.lX,null,__("Blocked IP addresses","jetpack")),w().createElement(N.Z,{disabled:n||this.props.isUpdatingWafSettings&&this.state.ipBlockList!==this.props.settings?.ipBlockList,name:"ipBlockList",placeholder:(0,l.sprintf)(/* translators: Placeholder is a list of example IP addresses. */ | |
| 102 | -__("Example: %s","jetpack"),"\n12.12.12.1\n12.12.12.2"),value:this.state.ipBlockList,onChange:this.handleIpBlockListChange}),w().createElement(p.Z,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:n||this.state.ipBlockList===this.props.settings?.ipBlockList||this.props.isUpdatingWafSettings&&this.state.ipBlockList!==this.props.settings?.ipBlockList,onClick:this.onSubmit},__("Save block list","jetpack"))),w().createElement("div",{className:"waf__settings__ips"},w().createElement(d.lX,null,__("Always allowed IP addresses","jetpack")),w().createElement(N.Z,{disabled:n||this.props.isUpdatingWafSettings&&this.state.ipAllowList!==this.props.settings?.ipAllowList,name:"ipAllowList",placeholder:__("Example:","jetpack")+"\n12.12.12.1\n12.12.12.2",value:this.props.allowListInputState,onChange:this.handleIpAllowListChange}),w().createElement(p.Z,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:n||this.state.ipAllowList===this.props.settings?.ipAllowList||this.props.isUpdatingWafSettings&&this.state.ipAllowList!==this.props.settings?.ipAllowList,onClick:this.onSubmit},__("Save allow list","jetpack"))))),_=w().createElement("div",{className:"waf__settings__toggle-setting"},w().createElement(r.Z,{checked:this.props.settings?.shareData,disabled:n,toggling:this.props.isUpdatingWafSettings&&this.state.shareData!==this.props.settings?.shareData,onChange:this.toggleShareData,label:w().createElement("div",{className:"waf__settings__toggle-setting__label"},w().createElement("span",null,__("Share data with Jetpack","jetpack")),w().createElement(C.Z,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover"},(0,c.createInterpolateElement)(__("Allow Jetpack to collect data to improve Firewall protection and rules. <ExternalLink>Learn more</ExternalLink> <hr /> <ExternalLink>Privacy Information</ExternalLink>","jetpack"),{ExternalLink:w().createElement(o.ExternalLink,{href:(0,i.Z)("jetpack-waf-settings-privacy-info")}),hr:w().createElement("hr",null)})))})),E=(0,c.createInterpolateElement)(__("<b>Enhance protection</b> - Learn how to configure the firewall to inspect all requests and run before WordPress initializes","jetpack"),{b:w().createElement("strong",null)}),b=w().createElement(u.Z,{header:E,className:"waf__enhanced-protection"},w().createElement(k.Z,{hasChild:!0},w().createElement("ul",null,w().createElement("li",null,(0,c.createInterpolateElement)((0,l.sprintf)(/* translators: Placeholder is the file path to the Firewall's bootstrap file. */ | |
| 103 | -__("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:w().createElement("code",null)})),w().createElement("li",null,__("Don't forget to undo this action when Firewall is turned off, or when you uninstall Jetpack.","jetpack"))))),y=w().createElement(h.ZP,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:w().createElement(w().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"),w().createElement(C.Z,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__upgrade-popover"},this.props.settings?.automaticRulesAvailable?__("The free version of the firewall does not receive updates to automatic firewall rules.","jetpack",0):__("The free version of the firewall only allows for use of manual rules.","jetpack"))),eventFeature:"scan",plan:(0,v.o2o)(v.eMt),feature:"jetpack_scan",href:this.props.scanUpgradeUrl,rna:!0});return w().createElement(f.Z,a()({},this.props,{header:s,module:"waf",onSubmit:this.onSubmit,hideButton:!0}),e&&w().createElement(j.Z,null),w().createElement(k.Z,{disableInOfflineMode:!0,module:this.props.getModule("waf"),support:{text:this.props.getModule("waf").long_description,link:this.props.getModule("waf").learn_more_button}},w().createElement(S.T,{slug:"waf",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("waf"),toggleModule:this.props.toggleModuleNow},w().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("waf").description)),e&&!this.props.isFetchingWafSettings&&w().createElement(d.C_,{className:"waf__settings"},m,g,_)),e&&this.props.bootstrapPath&&b,!this.props.hasScan&&!this.props.isFetchingSettings&&y)}};t.Z=(0,b.$j)((e=>{const t=(0,y.UL)(e),n=(0,A.EN)(e);return{automaticRulesAvailable:(0,A._0)(e),allowListInputState:null!==n?n:(0,x.$8)(e,"jetpack_waf_ip_allow_list"),hasScan:(0,y.CV)(e,"scan"),isFetchingSettings:(0,A.vd)(e),isUpdatingWafSettings:(0,A.Xn)(e),settings:(0,A.T2)(e),scanUpgradeUrl:(0,_.z)(e,"scan"),sitePlan:t}}),(e=>({updateWafIpAllowList:t=>e((0,T.uy)(t)),updateWafSettings:t=>e((0,T.NY)(t)),createNotice:(t,n,s)=>e((0,m.iI)(t,n,s)),removeNotice:t=>e((0,m.qq)(t))})))((0,g.u)(P))},49517:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(88275),r=n(65736),o=n(70399),c=n(32223),l=n(32466),p=n(62160),u=n(65043),d=n(99196),m=n.n(d),h=n(59309),g=n(44498),f=n(91256),k=n(37914),v=n(78845),_=n(50416),E=n(67889),w=n(51421);const __=r.__;class b extends m().Component{static displayName="SearchableSettings";render(){const{location:e={pathname:""},rewindStatus:t,searchTerm:n,siteAdminUrl:s,siteRawUrl:d,userCanManageModules:h}=this.props,{pathname:g}=e,_={searchTerm:n,rewindStatus:t,userCanManageModules:h};return m().createElement(i.ZP,null,m().createElement("div",{className:"jp-settings-container"},m().createElement("div",{className:"jp-no-results"},n?(0,r.sprintf)(/* translators: placeholder is a searchterm entered in searchform. */ | |
| 104 | -__("No search results found for %s","jetpack"),n):__("Enter a search term to find settings or close search.","jetpack")),m().createElement(k.Z,a()({siteAdminUrl:s,siteRawUrl:d,active:"/security"===g||"/settings"===g&&h},_)),m().createElement(o.Z,a()({siteRawUrl:d,active:"/discussion"===g},_)),m().createElement(l.Z,a()({siteRawUrl:d,active:"/newsletter"===g},_)),m().createElement(c.Z,a()({siteRawUrl:d,active:"/earn"===g},_)),m().createElement(p.Z,a()({active:"/performance"===g},_)),m().createElement(E.Z,a()({siteRawUrl:d,siteAdminUrl:s,active:"/traffic"===g},_)),m().createElement(w.Z,a()({siteAdminUrl:s,active:"/writing"===g||!h&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize")},_)),m().createElement(v.Z,a()({siteAdminUrl:s,active:"/sharing"===g||"/settings"===g&&!h&&this.props.isModuleActivated("publicize")},_)),m().createElement(u.Z,a()({active:"/privacy"===g},_)),m().createElement(f.Z,{searchTerm:n})))}}t.Z=(0,h.$j)((e=>({isModuleActivated:t=>(0,_.mp)(e,t)})))((0,g.EN)(b))},13612:function(e,t,n){"use strict";var s=n(45106),a=n(6895),i=n(81050),r=n(55609),o=n(69307),c=n(65736),l=n(61775);const __=c.__;t.Z=()=>React.createElement(l.C_,null,React.createElement(i.vQ,{shouldRefresh:!0,toggleClass:"jp-settings-sharing__sig-toggle"},React.createElement("div",null,React.createElement("div",null,React.createElement(s.ZP,null,React.createElement("strong",null,__("Automatically convert images for compatibility","jetpack")))),(0,o.createInterpolateElement)(__("Social media platforms require different image file types and sizes. Upload one image and it will be automatically converted to ensure maximum compatibility & quality across all your connected platforms. <link>Learn more about media requirements.</link>","jetpack"),{link:React.createElement(r.ExternalLink,{href:(0,a.Z)("jetpack-social-media-support-information")})}))))},139:function(e,t,n){"use strict";var s=n(45106),a=n(81050),i=n(65736),r=n(61775);const __=i.__;t.Z=()=>React.createElement(r.C_,null,React.createElement(a.K9,{shouldRefresh:!0,toggleClass:"jp-settings-sharing__sig-toggle"},React.createElement("div",null,React.createElement(s.ZP,null,React.createElement("strong",null,__("Enable Social Image Generator","jetpack"))),__("With Social Image Generator enabled you can automatically generate social images for your posts. You can use the button below to choose a default template for new posts.","jetpack")),React.createElement("div",{className:"jp-settings-sharing__template-picker"},React.createElement(a.py,null))))},78845:function(e,t,n){"use strict";var s=n(65736),a=n(69270),i=n(99196),r=n.n(i),o=n(59309),c=n(96300),l=n(69508),p=n(50416),u=n(89292),d=n(3230),m=n(33002),h=n(68994),g=n(2950),f=n(52234);const __=s.__;class k extends i.Component{render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules,activeFeatures:this.props.activeFeatures,hasSocialBasicFeatures:this.props.hasSocialBasicFeatures,hasSocialAdvancedFeatures:this.props.hasSocialAdvancedFeatures,hasSocialImageGenerator:this.props.hasSocialImageGenerator,hasAutoConversion:this.props.hasAutoConversion,isAtomicSite:this.props.isAtomicSite},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),s=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||s)?r().createElement("div",null,r().createElement(a.Z,null),r().createElement("h1",{className:"screen-reader-text"},__("Jetpack Sharing Settings","jetpack")),r().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Sharing","jetpack"):__("Share your content to social media, reaching new audiences and increasing engagement.","jetpack")),t&&r().createElement(g.u,e),n&&r().createElement(f.n,e),s&&r().createElement(h.d,e)):null}}t.Z=(0,o.$j)((e=>({module:t=>(0,p.rT)(e,t),settings:(0,d.Gw)(e),isOfflineMode:(0,c.Ex)(e),isUnavailableInOfflineMode:t=>(0,c.t_)(e,t),isModuleFound:t=>(0,u.CX)(e,t),isLinked:(0,c.BU)(e),connectUrl:(0,c.AM)(e),siteRawUrl:(0,l.JR)(e),siteAdminUrl:(0,l.wW)(e),hasSocialBasicFeatures:(0,m.CV)(e,"social-shares-1000"),activeFeatures:(0,m.$l)(e),hasSocialAdvancedFeatures:(0,m.CV)(e,"social-enhanced-publishing"),hasSocialImageGenerator:(0,m.CV)(e,"social-image-generator"),hasAutoConversion:(0,m.CV)(e,"social-image-auto-convert"),userCanManageModules:(0,l.pK)(e),isAtomicSite:(0,l.Ug)(e)})))(k)},68994:function(e,t,n){"use strict";n.d(t,{d:function(){return m}});var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(2353),c=n(5004),l=n(93806),p=n(28178),u=n(99196),d=n.n(u);const __=r.__,_x=r._x,m=(0,o.u)(class extends u.Component{render(){const e=this.props.isUnavailableInOfflineMode("likes"),t=this.props.getOptionValue("likes");return d().createElement(l.Z,a()({},this.props,{header:_x("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0}),d().createElement(p.Z,{disableInOfflineMode:!0,module:{module:"likes"},support:{text:__("Adds like buttons to your content so that visitors can show their appreciation or enjoyment.","jetpack"),link:(0,i.Z)("jetpack-support-likes")}},d().createElement("p",null,__("The Like button is a way for people on WordPress.com to show their appreciation for your content.","jetpack")),d().createElement(c.T,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},__("Add Like buttons to your posts and pages","jetpack"))))}})},2950:function(e,t,n){"use strict";n.d(t,{u:function(){return _}});var s=n(82674),a=n.n(s),i=n(6895),r=n(69307),o=n(65736),c=n(85799),l=n(66164),p=n(2353),u=n(5004),d=n(93806),m=n(28178),h=n(84069),g=n(99196),f=n.n(g),k=n(13612),v=n(139);const __=o.__,_x=o._x,_=(0,p.u)(class extends g.Component{trackClickConfigure(){h.Z.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}render(){const e=this.props.isUnavailableInOfflineMode("publicize"),t=this.props.isLinked,n=this.props.isOfflineMode,s=this.props.siteRawUrl,o=this.props.siteAdminUrl,p=this.props.getOptionValue("publicize"),h=this.props.hasSocialBasicFeatures,g=this.props.hasSocialAdvancedFeatures,_=this.props.hasSocialImageGenerator,E=this.props.hasAutoConversion,w=this.props.isAtomicSite,b=this.props.activeFeatures,y=this.props.userCanManageModules,j=!w&&b&&b.length>0&&p&&!g,C=p&&!this.props.isSavingAnyOption("publicize"),S=encodeURIComponent(o.replace(/\/$/,""));return y||p?f().createElement(d.Z,a()({},this.props,{header:_x("Jetpack Social connections","Settings header","jetpack"),module:"publicize",hideButton:!0}),y&&f().createElement(m.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"publicize"},support:{text:__("Allows you to automatically share your newest content on social media sites, including Facebook and LinkedIn.","jetpack"),link:(0,i.Z)("jetpack-support-publicize")}},f().createElement("p",null,__("Connect your website to the social media networks you use and share your content across all your social accounts with a single click. When you publish a post, it will appear on all connected accounts.","jetpack")),j&&f().createElement(f().Fragment,null,f().createElement("p",null,h?(0,r.createInterpolateElement)(__("<moreInfo>Upgrade to the Jetpack Social Advanced plan</moreInfo> to get advanced media sharing options.","jetpack"),{moreInfo:f().createElement("a",{href:(0,i.Z)("jetpack-plugin-admin-page-sharings-screen",{site:s,query:"redirect_to="+S})})}):(0,r.createInterpolateElement)(__("<moreInfo>Upgrade to a Jetpack Social plan</moreInfo> to get unlimited shares and advanced media sharing options.","jetpack"),{moreInfo:f().createElement("a",{href:(0,i.Z)("jetpack-plugin-admin-page-sharings-screen",{site:s,query:"redirect_to="+S})})}))),f().createElement(u.T,{slug:"publicize",disabled:e||!this.props.isLinked,activated:p,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},__("Automatically share your posts to social networks","jetpack")),C&&E&&f().createElement(k.Z,null),C&&_&&f().createElement(v.Z,null)),!t&&!n&&f().createElement(l.Z,{feature:"publicize",featureLabel:__("Jetpack Social","jetpack"),text:__("Connect to add your social media accounts.","jetpack")}),p&&(()=>{if(!e)return t&&f().createElement(c.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:(0,i.Z)("calypso-marketing-connections",{site:s})},__("Connect your social media accounts","jetpack"))})()):null}})},52234:function(e,t,n){"use strict";n.d(t,{n:function(){return g}});var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(85799),c=n(2353),l=n(5004),p=n(93806),u=n(28178),d=n(84069),m=n(99196),h=n.n(m);const __=r.__,_x=r._x,g=(0,c.u)(class extends m.Component{trackClickConfigure(){d.Z.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}render(){const e=this.props.isLinked,t=this.props.siteRawUrl,n=this.props.siteAdminUrl,s=this.props.isOfflineMode,r=this.props.getOptionValue("sharedaddy");return h().createElement(p.Z,a()({},this.props,{header:_x("Sharing buttons","Settings header","jetpack"),module:"sharing",hideButton:!0}),h().createElement(u.Z,{disableInOfflineMode:!0,module:{module:"sharedaddy"},support:{text:__("You can customize the sharing buttons and choose which services to display.","jetpack"),link:(0,i.Z)("jetpack-support-sharing")}},h().createElement("p",null,__("Add sharing buttons so visitors can share your posts and pages on social media with a couple of quick clicks.","jetpack")),h().createElement(l.T,{slug:"sharedaddy",activated:r,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},__("Add sharing buttons to your posts and pages","jetpack"))),r&&(()=>s||!e?h().createElement(o.Z,{compact:!0,className:"jp-settings-card__configure-link",href:n+"options-general.php?page=sharing"},__("Configure your sharing buttons","jetpack")):h().createElement(o.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:(0,i.Z)("calypso-marketing-sharing-buttons",{site:t})},__("Configure your sharing buttons","jetpack")))())}})},51975:function(e,t,n){"use strict";n.d(t,{$0n:function(){return pe},$F1:function(){return Bt},$ID:function(){return Q},$d8:function(){return Wt},AAZ:function(){return u},Abu:function(){return He},B9W:function(){return E},BB$:function(){return ie},BC7:function(){return Rt},BG7:function(){return ae},BVO:function(){return l},BX3:function(){return je},CD3:function(){return R},CMU:function(){return Pt},CaH:function(){return kt},CfX:function(){return K},DgS:function(){return Mt},Dze:function(){return Be},EpE:function(){return qe},Ez9:function(){return _t},EzW:function(){return dn},FLi:function(){return Se},FcF:function(){return yt},Few:function(){return Ve},Fmj:function(){return ne},G_D:function(){return ht},Gu5:function(){return M},H5i:function(){return H},HEN:function(){return nt},HOX:function(){return ce},Hyl:function(){return z},I3o:function(){return T},IWc:function(){return d},IZk:function(){return lt},J1y:function(){return o},JAC:function(){return ve},JE6:function(){return ft},Jyr:function(){return Z},K0Z:function(){return bt},KDO:function(){return se},Kth:function(){return $},Lao:function(){return L},Lon:function(){return I},LxH:function(){return pn},M0I:function(){return Ft},Mg3:function(){return Ze},MiX:function(){return X},MoW:function(){return m},N9n:function(){return Dt},NG6:function(){return cn},Nkq:function(){return rt},NsN:function(){return Ne},Oth:function(){return sn},Piu:function(){return re},Ppo:function(){return ge},QD8:function(){return ke},QFx:function(){return ye},QGN:function(){return W},QmL:function(){return Et},R5k:function(){return Kt},R99:function(){return s},RRK:function(){return te},TBz:function(){return S},TIZ:function(){return xe},TRY:function(){return B},Tad:function(){return w},Tip:function(){return Re},U$1:function(){return Gt},U7H:function(){return c},UyH:function(){return i},VB$:function(){return on},VN$:function(){return Ue},VdL:function(){return St},VlO:function(){return ze},WV5:function(){return mn},X0m:function(){return y},XPw:function(){return wt},XUm:function(){return Je},Y5l:function(){return nn},YCI:function(){return le},YDM:function(){return b},YVt:function(){return It},Yk$:function(){return zt},YoP:function(){return xt},_MD:function(){return D},a8A:function(){return V},aNt:function(){return Lt},arb:function(){return jt},arr:function(){return F},asZ:function(){return ee},b6A:function(){return Ht},bGw:function(){return v},c0d:function(){return G},clc:function(){return Xt},czi:function(){return qt},dDV:function(){return h},dSY:function(){return _e},fHq:function(){return Ae},fXf:function(){return ut},feA:function(){return Ut},g9Z:function(){return De},gGy:function(){return un},gYU:function(){return Ce},g_q:function(){return en},gat:function(){return de},hF6:function(){return At},hmP:function(){return r},hzW:function(){return fe},i3n:function(){return it},i7L:function(){return me},ien:function(){return p},ikp:function(){return he},itb:function(){return Zt},jEk:function(){return N},jHC:function(){return be},jbS:function(){return Qe},jtr:function(){return tn},kFt:function(){return x},kK9:function(){return j},kO5:function(){return at},kms:function(){return $t},krc:function(){return an},l94:function(){return Pe},lLu:function(){return Le},lOd:function(){return Yt},lhN:function(){return pt},lje:function(){return g},ltp:function(){return Fe},mLi:function(){return Tt},maF:function(){return U},meS:function(){return Ct},mlz:function(){return Ot},n2G:function(){return P},nDB:function(){return Me},nnP:function(){return Ge},o2S:function(){return f},ogt:function(){return tt},pmE:function(){return Ie},q4m:function(){return we},q7G:function(){return a},qUO:function(){return Ke},qYt:function(){return ot},qdt:function(){return mt},rAK:function(){return C},rQ4:function(){return Te},rYo:function(){return Ee},rwn:function(){return Oe},s6x:function(){return Ye},s9K:function(){return Jt},sG3:function(){return A},sO1:function(){return _},sQG:function(){return J},t6Q:function(){return rn},tUc:function(){return vt},tlb:function(){return Nt},uGk:function(){return et},vrP:function(){return Vt},vyx:function(){return gt},wXx:function(){return dt},w_8:function(){return ue},wvW:function(){return ln},x16:function(){return st},x3k:function(){return Y},xkZ:function(){return O},y$G:function(){return $e},yEZ:function(){return oe},yV3:function(){return q},ybW:function(){return k},ycn:function(){return Qt},z1n:function(){return Xe},zDe:function(){return ct},zOX:function(){return We}});const s="JETPACK_SET_INITIAL_STATE",a="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",u="RESET_CONNECT_USER",d="UNLINK_USER",m="UNLINK_USER_FAIL",h="UNLINK_USER_SUCCESS",g="USER_CONNECTION_DATA_FETCH",f="USER_CONNECTION_DATA_FETCH_FAIL",k="USER_CONNECTION_DATA_FETCH_SUCCESS",v="SITE_RECONNECT",_="SITE_RECONNECT_SUCCESS",E="SITE_RECONNECT_FAIL",w="USER_TRACKING_SETTINGS_FETCH",b="USER_TRACKING_SETTINGS_FETCH_FAIL",y="USER_TRACKING_SETTINGS_FETCH_SUCCESS",j="USER_TRACKING_SETTINGS_UPDATE",C="USER_TRACKING_SETTINGS_UPDATE_FAIL",S="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",N="JETPACK_MODULES_LIST_FETCH",x="JETPACK_MODULES_LIST_FETCH_FAIL",T="JETPACK_MODULES_LIST_RECEIVE",A="JETPACK_MODULE_ACTIVATE",P="JETPACK_MODULE_ACTIVATE_SUCCESS",Z="JETPACK_MODULE_ACTIVATE_FAIL",M="JETPACK_MODULE_DEACTIVATE",O="JETPACK_MODULE_DEACTIVATE_FAIL",R="JETPACK_MODULE_DEACTIVATE_SUCCESS",L="JETPACK_MODULE_UPDATE_OPTIONS",I="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",z="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",U="JETPACK_CONNECTION_STATUS_FETCH",D="JETPACK_CONNECTION_TEST_FETCH",V="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",F="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",B="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",H="DASHBOARD_PROTECT_COUNT_FETCH",q="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",W="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",J="RESET_OPTIONS",$="RESET_OPTIONS_FAIL",G="RESET_OPTIONS_SUCCESS",K="VAULTPRESS_SITE_DATA_FETCH",Y="VAULTPRESS_SITE_DATA_FETCH_FAIL",X="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",Q="AKISMET_DATA_FETCH",ee="AKISMET_DATA_FETCH_FAIL",te="AKISMET_DATA_FETCH_SUCCESS",ne="AKISMET_KEY_CHECK_FETCH",se="AKISMET_KEY_CHECK_FETCH_FAIL",ae="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",ue="STATS_DATA_FETCH_SUCCESS",de="JETPACK_PRODUCTS_FETCH",me="JETPACK_PRODUCTS_FETCH_RECEIVE",he="JETPACK_PRODUCTS_FETCH_FAIL",ge="JETPACK_SITE_PRODUCTS_FETCH",fe="JETPACK_SITE_PRODUCTS_FETCH_FAIL",ke="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",ve="JETPACK_SETTINGS_FETCH",_e="JETPACK_SETTINGS_FETCH_RECEIVE",Ee="JETPACK_SETTINGS_FETCH_FAIL",we="JETPACK_SETTING_UPDATE",be="JETPACK_SETTING_UPDATE_SUCCESS",ye="JETPACK_SETTING_UPDATE_FAIL",je="JETPACK_SETTINGS_UPDATE",Ce="JETPACK_SETTINGS_UPDATE_FAIL",Se="JETPACK_SETTINGS_UPDATE_SUCCESS",Ne="JETPACK_SETTINGS_SET_UNSAVED_FLAG",xe="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",Te="JETPACK_SITE_DATA_FETCH",Ae="JETPACK_SITE_DATA_FETCH_RECEIVE",Pe="JETPACK_SITE_DATA_FETCH_FAIL",Ze="JETPACK_SITE_BENEFITS_FETCH",Me="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",Oe="JETPACK_SITE_BENEFITS_FETCH_FAIL",Re="JETPACK_SITE_DISCOUNT_FETCH",Le="JETPACK_SITE_DISCOUNT_FETCH_RECEIVE",Ie="JETPACK_SITE_DISCOUNT_FETCH_FAIL",ze="JETPACK_SITE_FEATURES_FETCH",Ue="JETPACK_SITE_FEATURES_FETCH_RECEIVE",De="JETPACK_SITE_FEATURES_FETCH_FAIL",Ve="JETPACK_SITE_PLANS_FETCH",Fe="JETPACK_SITE_PLANS_FETCH_RECEIVE",Be="JETPACK_SITE_PLANS_FETCH_FAIL",He="JETPACK_SITE_PURCHASES_FETCH",qe="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",We="JETPACK_SITE_PURCHASES_FETCH_FAIL",Je="JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION",$e="JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION",Ge="JETPACK_RECOMMENDATIONS_DATA_ADD_VIEWED_RECOMMENDATION",Ke="JETPACK_RECOMMENDATIONS_DATA_FETCH",Ye="JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE",Xe="JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL",Qe="JETPACK_RECOMMENDATIONS_DATA_UPDATE",et="JETPACK_RECOMMENDATIONS_DATA_SAVE",tt="JETPACK_RECOMMENDATIONS_DATA_SAVE_SUCCESS",nt="JETPACK_RECOMMENDATIONS_DATA_SAVE_FAIL",st="JETPACK_RECOMMENDATIONS_STEP_UPDATE",at="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",ut="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL",dt="JETPACK_RECOMMENDATIONS_CONDITIONAL_FETCH",mt="JETPACK_RECOMMENDATIONS_CONDITIONAL_FETCH_RECEIVE",ht="JETPACK_RECOMMENDATIONS_CONDITIONAL_FETCH_FAIL",gt="JETPACK_RECOMMENDATIONS_FEATURE_INSTALL_START",ft="JETPACK_RECOMMENDATIONS_FEATURE_INSTALL_END",kt="JETPACK_RECOMMENDATIONS_DATA_ONBOARDING_DATA_UPDATE",vt="JETPACK_ACTION_NOTICES_DISMISS",_t="JETPACK_NOTICES_DISMISS_SUCCESS",Et="JETPACK_PLUGINS_DATA_FETCH",wt="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",bt="JETPACK_PLUGINS_DATA_FETCH_FAIL",yt="JETPACK_SEARCH_TERM",jt="SET_PLAN_DURATION",Ct="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",St="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",Nt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",xt="DEV_CARD_DISPLAY",Tt="DEV_CARD_HIDE",At="MOCK_SWITCH_USER_PERMISSIONS",Pt="MOCK_SWITCH_THREATS",Zt="REWIND_STATUS_FETCH",Mt="REWIND_STATUS_FETCH_RECEIVE",Ot="REWIND_STATUS_FETCH_FAIL",Rt="BACKUP_UNDO_EVENT_FETCH",Lt="BACKUP_UNDO_EVENT_FETCH_FAILURE",It="BACKUP_UNDO_EVENT_FETCH_SUCCESS",zt="MOCK_SWITCH_REWIND_STATE",Ut="SCAN_STATUS_FETCH",Dt="SCAN_STATUS_FETCH_RECEIVE",Vt="SCAN_STATUS_FETCH_FAIL",Ft="MOCK_SWITCH_SCAN_STATE",Bt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",Ht="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",qt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",Wt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",Jt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",$t="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",Gt="JETPACK_LICENSING_ERROR_UPDATE",Kt="JETPACK_LICENSING_USER_LICENSE_COUNTS_UPDATE",Yt="JETPACK_LICENSING_ACTIVATION_NOTICE_DISMISS_UPDATE",Xt="JETPACK_LICENSING_GET_USER_LICENSES_FETCH",Qt="JETPACK_LICENSING_GET_USER_LICENSES_SUCCESS",en="JETPACK_LICENSING_GET_USER_LICENSES_FAILURE",tn="JETPACK_CONNECTION_HAS_SEEN_WC_CONNECTION_MODAL",nn="WAF_SETTINGS_FETCH",sn="WAF_SETTINGS_FETCH_RECEIVE",an="WAF_SETTINGS_FETCH_FAIL",rn="WAF_IP_ALLOW_LIST_UPDATED",on="WAF_SETTINGS_UPDATE",cn="WAF_SETTINGS_UPDATE_SUCCESS",ln="WAF_SETTINGS_UPDATE_FAIL",pn="JETPACK_INTRO_OFFERS_FETCH",un="JETPACK_INTRO_OFFERS_FETCH_RECEIVE",dn="JETPACK_INTRO_OFFERS_FETCH_FAIL",mn="JETPACK_RECOMMENDATIONS_SITE_DISCOUNT_VIEWED"},17865:function(e,t,n){"use strict";n.d(t,{Bt:function(){return p},D3:function(){return i},bB:function(){return l},eR:function(){return o},g4:function(){return r},l7:function(){return c},zx:function(){return u}});var s=n(64743),a=n(51975);const i=e=>t=>{t({type:a.HOX,activeStatsTab:e})},r=e=>t=>(t({type:a.YCI}),s.ZP.fetchStatsData(e).then((e=>{t({type:a.w_8,statsData:e})})).catch((e=>{t({type:a.$0n,error:e})}))),o=()=>e=>(e({type:a.H5i}),s.ZP.getProtectCount().then((t=>{e({type:a.QGN,protectCount:t})})).catch((t=>{e({type:a.yV3,error:t})}))),c=()=>e=>(e({type:a.CfX}),s.ZP.getVaultPressData().then((t=>{e({type:a.MiX,vaultPressData:t})})).catch((t=>{e({type:a.x3k,error:t})}))),l=()=>e=>(e({type:a.$ID}),s.ZP.getAkismetData().then((t=>{e({type:a.RRK,akismetData:t})})).catch((t=>{e({type:a.asZ,error:t})}))),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>{t({type:a.Fmj});return(""===e?s.ZP.checkAkismetKey().then((e=>{t({type:a.BG7,akismet:e})})):s.ZP.checkAkismetKeyTyped(e).then((e=>{t({type:a.BG7,akismet:e})}))).catch((e=>{t({type:a.KDO,error:e})}))}},u=()=>e=>(e({type:a.BC7}),s.ZP.fetchBackupUndoEvent().then((t=>{e({type:a.YVt,payload:t})})).catch((t=>{e({type:a.aNt,error:t})})))},17296:function(e,t,n){"use strict";n.d(t,{Bt:function(){return a.Bt},D3:function(){return a.D3},F2:function(){return s.F2},Fb:function(){return s.Fb},O1:function(){return s.O1},P_:function(){return s.P_},V_:function(){return s.V_},Ve:function(){return s.Ve},XK:function(){return s.XK},Xu:function(){return s.Xu},_2:function(){return s._2},_R:function(){return s._R},b9:function(){return s.b9},bB:function(){return a.bB},bV:function(){return s.bV},eR:function(){return a.eR},fU:function(){return s.fU},g4:function(){return a.g4},gw:function(){return s.gw},l5:function(){return s.l5},l7:function(){return a.l7},vz:function(){return s.vz},xz:function(){return s.xz},yZ:function(){return s.yZ},zx:function(){return a.zx}});var s=n(30569),a=n(17865)},30569:function(e,t,n){"use strict";n.d(t,{F2:function(){return c},Fb:function(){return w},O1:function(){return j},P_:function(){return k},V_:function(){return f},Ve:function(){return y},XK:function(){return v},Xu:function(){return h},_2:function(){return m},_R:function(){return _},b9:function(){return b},bV:function(){return p},fU:function(){return u},gw:function(){return d},l5:function(){return o},sI:function(){return r},vz:function(){return E},xz:function(){return g},yZ:function(){return l}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case i.YCI:return(0,s.assign)({},e,{fetchingStatsData:!0});case i.$ID:return(0,s.assign)({},e,{fetchingAkismetData:!0});case i.Fmj:return(0,s.assign)({},e,{checkingAkismetKey:!0});case i.CfX:return(0,s.assign)({},e,{fetchingVaultPressData:!0});case i.H5i:return(0,s.assign)({},e,{fetchingProtectData:!0});case i.BB$:return(0,s.assign)({},e,{fetchingPluginUpdates:!0});case i.$0n:case i.w_8:return(0,s.assign)({},e,{fetchingStatsData:!1});case i.asZ:case i.RRK:return(0,s.assign)({},e,{fetchingAkismetData:!1});case i.KDO:case i.BG7:return(0,s.assign)({},e,{checkingAkismetKey:!1});case i.yV3:case i.QGN:return(0,s.assign)({},e,{fetchingProtectData:!1});case i.Piu:case i.yEZ:return(0,s.assign)({},e,{fetchingPluginUpdates:!1});case i.x3k:case i.MiX:return(0,s.assign)({},e,{fetchingVaultPressData:!1,hasLoadedVaultPressData:!0});default:return e}},activeStatsTab:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day",t=arguments.length>1?arguments[1]:void 0;return t.type===i.HOX?t.activeStatsTab:e},protectCount:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;return t.type===i.QGN?t.protectCount:e},vaultPressData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.MiX:return t.vaultPressData;case i.CMU:return(0,s.assign)({},"N/A"===e?{}:e,{data:{active:!0,features:{security:!0},security:{notice_count:t.mockCount}}});default:return e}},statsData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.w_8?(0,s.assign)({},e,t.statsData):e},akismetData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;return t.type===i.RRK?t.akismetData:e},akismet:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t=arguments.length>1?arguments[1]:void 0;return t.type===i.BG7?(0,s.assign)({},e,t.akismet):e},pluginUpdates:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;return t.type===i.yEZ?t.pluginUpdates:e},backupUndoEvent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isFetching:!1,loaded:!1,event:{}},{type:t,payload:n}=arguments.length>1?arguments[1]:void 0;switch(t){case i.BC7:return{...e,isFetching:!0,loaded:!1};case i.YVt:{const t=n.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:n.undo_backup_id}}case i.aNt:return{...e,isFetching:!1};default:return e}}});function o(e){return e.jetpack.dashboard.activeStatsTab}function c(e){return!!e.jetpack.dashboard.requests.fetchingStatsData}function l(e){return e.jetpack.dashboard.statsData}function p(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function u(e){return e.jetpack.dashboard.akismetData}function d(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 f(e){return!!e.jetpack.dashboard.requests.hasLoadedVaultPressData}function k(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function v(e){return e.jetpack.dashboard.vaultPressData}function _(e){return(0,s.get)(e.jetpack.dashboard.vaultPressData,"data.security.notice_count",0)}function E(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function w(e){return e.jetpack.pluginsData.items||{}}function b(e){return e.jetpack.dashboard.backupUndoEvent}function y(e){return e.jetpack.dashboard.backupUndoEvent.isFetching}function j(e){return e.jetpack.dashboard.backupUndoEvent.loaded}},95274:function(e,t,n){"use strict";n.d(t,{EP:function(){return u},HD:function(){return m},I7:function(){return o},SG:function(){return c},bL:function(){return d},eW:function(){return l},jb:function(){return p},qJ:function(){return h}});var s=n(64743),a=n(65736),i=n(41549),r=n(51975);const __=a.__,o=()=>e=>s.ZP.fetchSiteConnectionStatus().then((t=>{e({type:r.maF,siteConnected:t})})),c=()=>e=>(e((0,i.iI)("is-info",__("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),s.ZP.fetchSiteConnectionTest().then((t=>{e({type:r._MD,connectionTest:t}),e((0,i.qq)("test-jetpack-connection")),e((0,i.iI)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))})).catch((t=>{e((0,i.qq)("test-jetpack-connection")),e((0,i.iI)("is-error",(0,a.sprintf)(/* translators: placeholder is an error message. */ | |
| 105 | -__("There was an error testing Jetpack. Error: %s","jetpack"),t.message),{id:"test-jetpack-connection"}))}))),l=()=>e=>(e({type:r.q7G}),s.ZP.fetchConnectUrl().then((t=>{e({type:r.hmP,connectUrl:t})})).catch((t=>{e({type:r.UyH,error:t})}))),p=()=>e=>(e({type:r.lje}),s.ZP.fetchUserConnectionData().then((t=>{e({type:r.ybW,userConnectionData:t})})).catch((t=>{e({type:r.o2S,error:t})}))),u=()=>e=>(e({type:r.IWc}),e((0,i.iI)("is-info",__("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),s.ZP.unlinkUser().then((t=>{e({type:r.dDV,userUnlinked:t}),e(l()),e((0,i.qq)("unlink-user")),e((0,i.iI)("is-success",__("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))})).catch((t=>{e({type:r.MoW,error:t}),e((0,i.qq)("unlink-user")),e((0,i.iI)("is-error",(0,a.sprintf)(/* translators: placeholder is the error. */ | |
| 106 | -__("Error unlinking from WordPress.com. Error: %s","jetpack"),t),{id:"unlink-user"}))}))),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n=>{n({type:r.ien,featureLabel:e,from:t})}},m=()=>e=>{e({type:r.AAZ})},h=()=>e=>(e({type:r.jtr}),s.ZP.setHasSeenWCConnectionModal())},96300:function(e,t,n){"use strict";n.d(t,{AM:function(){return s.AM},BU:function(){return s.BU},Dd:function(){return s.Dd},EP:function(){return a.EP},Ex:function(){return s.Ex},Gz:function(){return s.Gz},HD:function(){return a.HD},Hu:function(){return s.Hu},I7:function(){return a.I7},IK:function(){return s.IK},LN:function(){return s.LN},Mq:function(){return s.Mq},O_:function(){return s.O_},QM:function(){return s.QM},SG:function(){return a.SG},Zp:function(){return s.Zp},_8:function(){return s._8},bL:function(){return a.bL},cm:function(){return s.cm},eW:function(){return a.eW},e_:function(){return s.e_},it:function(){return s.it},j8:function(){return s.j8},jZ:function(){return s.jZ},jb:function(){return a.jb},l9:function(){return s.l9},q7:function(){return s.q7},qJ:function(){return a.qJ},rH:function(){return s.rH},tN:function(){return s.tN},t_:function(){return s.t_},xP:function(){return s.xP},zq:function(){return s.zq}});var s=n(13480),a=n(95274)},13480:function(e,t,n){"use strict";n.d(t,{AM:function(){return h},BU:function(){return y},Dd:function(){return b},Ex:function(){return S},Gz:function(){return p},Hu:function(){return m},I6:function(){return c},IK:function(){return A},LN:function(){return P},Mq:function(){return k},O_:function(){return Z},QM:function(){return j},Zp:function(){return l},_8:function(){return w},cm:function(){return N},e_:function(){return f},it:function(){return C},j8:function(){return d},jZ:function(){return v},l9:function(){return x},q7:function(){return u},rH:function(){return M},tN:function(){return g},t_:function(){return T},xP:function(){return E},zq:function(){return _}});var s=n(92819),a=n(835),i=n(51975),r=n(50416);const o={disconnectingSite:!1,connectingUser:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},c=(0,a.UY)({connectUrl:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.R99:return(0,s.get)(t,"initialState.connectUrl",e);case i.hmP:return t.connectUrl;default:return e}},status:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{siteConnected:window.Initial_State.connectionStatus},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.maF:case i.BVO:return(0,s.assign)({},e,{siteConnected:t.siteConnected});case i.dDV:return(0,s.assign)({},e,{siteConnected:{...e.siteConnected,isUserConnected:!1}});case i.ybW:return!0===t.userConnectionData?.currentUser?.isConnected?(0,s.assign)({},e,{siteConnected:{...e.siteConnected,hasConnectedOwner:!0}}):e;default:return e}},user:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.userData||{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.ybW:return(0,s.assign)({},e,t.userConnectionData);case i.dDV:const n=(0,s.assign)({},e.currentUser,{isConnected:!1});return(0,s.assign)({},e,{currentUser:n});case i.hF6:return(0,s.merge)({},e,t.initialState);default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.J1y:return(0,s.assign)({},e,{disconnectingSite:!0});case i.IWc:return(0,s.assign)({},e,{unlinkingUser:!0});case i.ien:return(0,s.assign)({},e,{connectingUser:!0,connectingUserFeatureLabel:t.featureLabel,connectingUserFrom:t.from});case i.AAZ:return(0,s.assign)({},e,{connectingUser:!1});case i.q7G:return(0,s.assign)({},e,{fetchingConnectUrl:!0});case i.lje:return(0,s.assign)({},e,{fetchingUserData:!0});case i.bGw:return(0,s.assign)({},e,{reconnectingSite:!0});case i.U7H:case i.BVO:return(0,s.assign)({},e,{disconnectingSite:!1});case i.MoW:case i.dDV:return(0,s.assign)({},e,{unlinkingUser:!1});case i.UyH:case i.hmP:return(0,s.assign)({},e,{fetchingConnectUrl:!1});case i.o2S:case i.ybW:return(0,s.assign)({},e,{fetchingUserData:!1});case i.B9W:case i.sO1:return(0,s.assign)({},e,{reconnectingSite:!1});default:return e}},hasSeenWCConnectionModal:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.hasSeenWCConnectionModal||!1;return(arguments.length>1?arguments[1]:void 0).type===i.jtr||e}});function l(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&e.jetpack.connection.status.siteConnected}function p(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&(e.jetpack.connection.status.siteConnected.offlineMode.isActive?"offline":e.jetpack.connection.status.siteConnected.isActive)}function u(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&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.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 f(e){return!!e.jetpack.connection.requests.disconnectingSite}function k(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function v(e){return!!e.jetpack.connection.requests.unlinkingUser}function _(e){return!!e.jetpack.connection.requests.connectingUser}function E(e){return e.jetpack.connection.requests.hasOwnProperty("connectingUserFeatureLabel")?e.jetpack.connection.requests.connectingUserFeatureLabel:null}function w(e){return e.jetpack.connection.requests.hasOwnProperty("connectingUserFrom")?e.jetpack.connection.requests.connectingUserFrom:null}function b(e){return!!e.jetpack.connection.requests.fetchingUserData}function y(e){return!!e.jetpack.connection.user.currentUser.isConnected}function j(e){return!!e.jetpack.connection.user.currentUser.isMaster}function C(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","hasConnectedOwner"],!1)}function S(e){return"offline"===p(e)}function N(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","isStaging"],!1)}function x(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","isInIdentityCrisis"],!1)}function T(e,t){return S(e)&&function(e,t){return(0,s.includes)((0,r.HS)(e).concat(["backups","scan"]),t)}(e,t)}function A(e,t){return!C(e)&&function(e,t){return(0,s.includes)((0,r.he)(e),t)}(e,t)}function P(e){return(0,s.get)(e.jetpack.connection.status,["siteConnected","sandboxDomain"],"")}function Z(e){return!!e.jetpack.connection.requests.reconnectingSite}function M(e){return!!e.jetpack.connection.hasSeenWCConnectionModal}},75711:function(e,t,n){"use strict";n.d(t,{Wh:function(){return l},Yw:function(){return _},_G:function(){return o},_s:function(){return w},aX:function(){return E},fb:function(){return p},pH:function(){return b},vN:function(){return c}});var s=n(64743),a=n(65736),i=n(41549),r=n(51975);const __=a.__,o=e=>t=>(t({type:r.sQG}),t((0,i.iI)("is-info",__("Resetting Jetpack options…","jetpack"),{id:"reset-options"})),s.ZP.resetOptions(e).then((()=>{t({type:r.c0d}),t((0,i.qq)("reset-options")),t((0,i.iI)("is-success",__("Options reset.","jetpack"),{id:"reset-options",duration:2e3}))})).catch((e=>{t({type:r.Kth,error:e}),t((0,i.qq)("reset-options")),t((0,i.iI)("is-error",__("Options failed to reset.","jetpack"),{id:"reset-options"}))}))),c=()=>e=>{e({type:r.YoP})},l=()=>e=>{e({type:r.mLi})},p=e=>t=>{t({type:r.fHq,siteData:{plan:{product_slug:e}}})},u={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}}},d={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}}},f={currentUser:{permissions:{view_stats:!1}}},k={currentUser:{isConnected:!0}},v={currentUser:{isConnected:!1,isMaster:!1}},_=e=>{let t={};return n=>{switch(e){case"admin_master":t=u;break;case"admin_secondary":t=d;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=f;break;case"is_linked":t=k;break;case"is_unlinked":t=v}n({type:r.hF6,initialState:t})}},E=e=>t=>{t({type:r.CMU,mockCount:e})},w=e=>t=>{t({type:r.Yk$,rewindState:{state:e}})},b=e=>t=>{t({type:r.M0I,scanState:{state:e}})}},80625:function(e,t,n){"use strict";n.d(t,{Ry:function(){return s.Ry},Wh:function(){return a.Wh},Yw:function(){return a.Yw},_G:function(){return a._G},_s:function(){return a._s},aX:function(){return a.aX},fb:function(){return a.fb},pH:function(){return a.pH},vN:function(){return a.vN}});var s=n(49112),a=n(75711)},49112:function(e,t,n){"use strict";n.d(t,{I6:function(){return i},Ry:function(){return r}});var s=n(835),a=n(51975);const i=(0,s.UY)({display:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case a.YoP:return!0;case a.mLi:return!1;default:return e}}});function r(e){return!!e.jetpack.devCard.display}},8183:function(e,t,n){"use strict";n.d(t,{I6:function(){return r}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({disconnectSurvey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{submitting:!1,submitted:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.meS:return(0,s.assign)({},e,{submitting:!0});case i.VdL:return(0,s.assign)({},e,{submitting:!1,submitted:!0,error:null});case i.tlb:return(0,s.assign)({},e,{submitting:!1,submitted:!1,error:t.error});default:return e}}})},16419:function(e,t,n){"use strict";n.d(t,{K:function(){return a}});var s=n(51975);const a=()=>e=>{e({type:s.R99,initialState:window.Initial_State})}},69508:function(e,t,n){"use strict";n.d(t,{$2:function(){return s.$2},$r:function(){return s.$r},Cq:function(){return s.Cq},Cv:function(){return s.Cv},D6:function(){return s.D6},DV:function(){return s.DV},EZ:function(){return s.EZ},G6:function(){return s.G6},GC:function(){return s.GC},H$:function(){return s.H$},Hy:function(){return s.Hy},IU:function(){return s.IU},JR:function(){return s.JR},KF:function(){return s.KF},KY:function(){return a.K},Mc:function(){return s.Mc},Ms:function(){return s.Ms},PK:function(){return s.PK},Pw:function(){return s.Pw},Q6:function(){return s.Q6},QP:function(){return s.QP},Qq:function(){return s.Qq},TA:function(){return s.TA},Td:function(){return s.Td},UF:function(){return s.UF},Ug:function(){return s.Ug},Uu:function(){return s.Uu},VY:function(){return s.VY},WB:function(){return s.WB},WY:function(){return s.WY},YJ:function(){return s.YJ},Yg:function(){return s.Yg},Z2:function(){return s.Z2},Zb:function(){return s.Zb},_G:function(){return s._G},_W:function(){return s._W},aW:function(){return s.aW},aZ:function(){return s.aZ},as:function(){return s.as},by:function(){return s.by},dc:function(){return s.dc},de:function(){return s.de},hv:function(){return s.hv},ic:function(){return s.ic},ij:function(){return s.ij},jU:function(){return s.jU},je:function(){return s.je},jq:function(){return s.jq},mb:function(){return s.mb},mh:function(){return s.mh},n0:function(){return s.n0},nP:function(){return s.nP},pI:function(){return s.pI},pK:function(){return s.pK},px:function(){return s.px},rd:function(){return s.rd},rf:function(){return s.rf},rp:function(){return s.rp},vL:function(){return s.vL},w1:function(){return s.w1},wB:function(){return s.wB},wW:function(){return s.wW},xR:function(){return s.xR},xz:function(){return s.xz},yB:function(){return s.yB},z8:function(){return s.z8},ze:function(){return s.ze}});var s=n(34761),a=n(16419)},34761:function(e,t,n){"use strict";n.d(t,{$2:function(){return X},$r:function(){return _},Cq:function(){return _e},Cv:function(){return Y},D6:function(){return w},DV:function(){return oe},E3:function(){return l},EZ:function(){return O},G6:function(){return me},GC:function(){return te},H$:function(){return D},Hy:function(){return W},IU:function(){return T},JR:function(){return f},KF:function(){return P},Mc:function(){return N},Ms:function(){return Z},PK:function(){return de},Pw:function(){return $},Q6:function(){return le},QP:function(){return se},Qq:function(){return ce},TA:function(){return ie},Td:function(){return d},UF:function(){return y},Ug:function(){return J},Uu:function(){return m},VY:function(){return z},WB:function(){return S},WY:function(){return ve},YJ:function(){return ne},Yg:function(){return ae},Z2:function(){return q},Zb:function(){return we},_G:function(){return A},_W:function(){return p},aW:function(){return v},aZ:function(){return I},as:function(){return F},by:function(){return pe},dc:function(){return E},de:function(){return H},hv:function(){return B},ic:function(){return C},ij:function(){return ke},jU:function(){return fe},je:function(){return g},jq:function(){return he},mb:function(){return ee},mh:function(){return re},n0:function(){return x},nP:function(){return ge},pI:function(){return L},pK:function(){return b},px:function(){return M},rd:function(){return ue},rf:function(){return K},rp:function(){return j},vL:function(){return G},w1:function(){return u},wB:function(){return V},wW:function(){return k},xR:function(){return Q},xz:function(){return h},yB:function(){return U},z8:function(){return Ee},ze:function(){return R}});var s=n(6895),a=n(92819),i=n(51975),r=n(96300),o=n(85207),c=n(77805);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.R99:return(0,a.assign)({},e,t.initialState);case i.hF6:return(0,a.merge)({},e,{userData:t.initialState});default:return e}};function p(e){return!!e.jetpack.initialState.isDevVersion}function u(e){return(0,a.get)(e.jetpack.initialState,"currentVersion","")}function d(e){return(0,a.get)(e.jetpack.initialState.stats,"roles",{})}function m(e){return(0,a.get)(e.jetpack.initialState.stats,"data")}function h(e){return(0,a.get)(e.jetpack.initialState,"connectedPlugins",{})}function g(e){return(0,a.get)(e.jetpack.initialState,["userData","currentUser","wpcomUser","email"])}function f(e){return(0,a.get)(e.jetpack.initialState,"rawUrl",{})}function k(e){return(0,a.get)(e.jetpack.initialState,"adminUrl",{})}function v(e){return(0,a.get)(e.jetpack.initialState,"siteTitle","")}function _(e){return(0,a.get)(e.jetpack.initialState,["connectionStatus","isPublic"])}function E(e){return!(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function w(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"publish_posts",!1)}function b(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_modules",!1)}function y(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_options",!1)}function j(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function C(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_plugins",!1)}function S(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"disconnect",!1)}function N(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect",!1)}function x(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect_user",!1)}function T(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","login"],"")}function A(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","ID"],"")}function P(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser,["gravatar"])}function Z(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser,["username"])}function M(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser.permissions,"view_stats",!1)}function O(e){return(0,a.get)(e.jetpack.initialState.siteData,["blog_id"])}function R(e){return(0,a.get)(e.jetpack.initialState.siteData,["icon"])}function L(e){return(0,a.get)(e.jetpack.initialState.siteData,["siteVisibleToSearchEngines"],!0)}function I(e){return(0,a.get)(e.jetpack.initialState.siteData,["latestBoostSpeedScores"])}function z(e){return(0,a.get)(e.jetpack.initialState,"WP_API_nonce")}function U(e){return(0,a.get)(e.jetpack.initialState,"WP_API_root")}function D(e){return(0,a.get)(e.jetpack.initialState,"registrationNonce")}function V(e){return(0,a.get)(e.jetpack.initialState,"pluginBaseUrl")}function F(e){return(0,a.get)(e.jetpack.initialState,"purchaseToken")}function B(e){return(0,a.get)(e.jetpack.initialState,"tracksUserData")}function H(e){return(0,a.get)(e.jetpack.initialState,"currentIp")}function q(e){return(0,a.get)(e.jetpack.initialState,"lastPostUrl")}function W(e){return(0,a.get)(e.jetpack.initialState.siteData,"showPromotions",!0)}function J(e){return(0,a.get)(e.jetpack.initialState.siteData,"isAtomicSite",!1)}function $(e){return(0,a.get)(e.jetpack.initialState.siteData,"isWoASite",!1)}function G(e){return(0,a.get)(e.jetpack.initialState.siteData,"isAtomicPlatform",!1)}function K(e){return(0,a.get)(e.jetpack.initialState.themeData,"stylesheet")}function Y(e,t){return(0,a.get)(e.jetpack.initialState.themeData,["support",t],!1)}function X(e){return(0,a.get)(e.jetpack.initialState.themeData,["isBlockTheme"],!1)}function Q(e){return(0,a.get)(e.jetpack.initialState.siteData,"showBackups",!0)}function ee(e){return(0,a.get)(e.jetpack.initialState.siteData,"showRecommendations",!1)}function te(e){return(0,a.get)(e.jetpack.initialState.siteData,"showMyJetpack",!0)}function ne(e){return(0,a.get)(e.jetpack.initialState,"newRecommendations",[])}function se(e){return ne(e).length}function ae(e){return(0,a.get)(e.jetpack.initialState.licensing,"showLicensingUi",!1)}function ie(e){return(0,a.get)(e.jetpack.initialState.siteData,"isMultisite",!1)}function re(e){return(0,a.get)(e.jetpack.initialState.siteData,"dateFormat",!1)}function oe(e){return(0,a.get)(e.jetpack.initialState,"partnerCoupon")}const ce=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const c=function(e){return(0,a.get)(e.jetpack.initialState,"aff","")}(e),l=function(e){return(0,a.get)(e.jetpack.initialState,"partnerSubsidiaryId","")}(e),p=n||function(e){return(0,a.get)(e.jetpack.initialState.userData.currentUser,"id","")}(e),u=F(e),d=function(e){return(0,a.get)(e.jetpack.initialState,"calypsoEnv")}(e);i&&"monthly"===(0,o.b)(e)&&(t+="-monthly");const m={site:f(e)};return c&&(m.aff=c),p&&(m.u=p),l&&(m.subsidiaryId=l),m.query="",(0,r.BU)(e)||(m.query+="unlinked=1&"),u&&(m.query+=`purchasetoken=${u}`),d&&(m.calypso_env=d),(0,s.Z)(t,m)};function le(e){return(0,a.get)(e.jetpack.initialState,"products",{})}function pe(e){const t=(0,a.get)(e.jetpack.initialState,"products",{}),n=(0,c.dt)(e),i={};for(const[e,r]of Object.entries(t))i[e]={title:r.title,slug:r.slug,key:e,description:r.description,features:r.features,disclaimer:r.disclaimer,available:(0,a.get)(n,[r.slug,"available"],!1),currencyCode:(0,a.get)(n,[r.slug,"currency_code"],""),showPromotion:r.show_promotion,promotionPercentage:r.discount_percent,includedInPlans:r.included_in_plans,fullPrice:(0,a.get)(n,[r.slug,"cost"],""),saleCoupon:(0,a.get)(n,[r.slug,"sale_coupon"],void 0),upgradeUrl:(0,s.Z)("jetpack-product-description-checkout",{path:r.slug})};return i}function ue(e){return(0,a.get)(e.jetpack.initialState,"recommendationsStep","")}function de(e){return(0,a.get)(e.jetpack.initialState,["connectionStatus","errors"],[]).filter((e=>e.hasOwnProperty("action")))}function me(e){return!!e.jetpack.initialState.isSafari}function he(e){return!!e.jetpack.initialState.doNotUseConnectionIframe}function ge(e){return!!e.jetpack.initialState.isWooCommerceActive}function fe(e,t){return`https://cloud.jetpack.com/${t}/${f(e)}`}function ke(e){return!!e.jetpack.initialState.isOdysseyStatsEnabled}function ve(e){return!!e.jetpack.initialState.shouldInitializeBlaze}function _e(e){return!!e.jetpack.initialState.isBlazeDashboardEnabled}function Ee(e){return!!e.jetpack.initialState.isSubscriptionModalEnabled}function we(e){return e.jetpack.initialState.gutenbergInitialState}},88762:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.LxH}),s.ZP.fetchIntroOffers().then((t=>{let{data:n}=t;e({type:a.gGy,data:n})})).catch((t=>{e({type:a.EzW,error:t})})))},36920:function(e,t,n){"use strict";n.d(t,{HW:function(){return a.HW},I6:function(){return a.I6},lR:function(){return s.l},ni:function(){return a.ni}});var s=n(88762),a=n(47717)},47717:function(e,t,n){"use strict";n.d(t,{HW:function(){return r},I6:function(){return i},ni:function(){return o}});var s=n(835),a=n(51975);const i=(0,s.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.type===a.gGy?t.data:e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case a.LxH:return{...e,isFetching:!0};case a.gGy:case a.EzW:return{...e,isFetching:!1};default:return e}}});function r(e){return!!e.jetpack.introOffers.requests.isFetching}function o(e){return e.jetpack.introOffers.data}},13232:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});n(64743);var s=n(51975);const a=e=>t=>{t({type:s.tUc,notice:e})}},35613:function(e,t,n){"use strict";n.d(t,{Rv:function(){return s.Rv},Sn:function(){return a.S},XF:function(){return s.XF},gB:function(){return s.gB},gq:function(){return s.gq},jE:function(){return s.jE},pt:function(){return s.pt}});var s=n(67953),a=n(13232)},67953:function(e,t,n){"use strict";n.d(t,{I6:function(){return r},Rv:function(){return p},XF:function(){return u},gB:function(){return c},gq:function(){return o},jE:function(){return d},pt:function(){return l}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({notice:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(arguments.length>1?arguments[1]:void 0).type===i.BVO?"disconnected":e},dismissed:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.dismissedNotices,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.tUc:return(0,s.assign)({},e,{[t.notice]:!0});case i.Ez9:return(0,s.assign)({},e,t.dismissedNotices);case i.c0d:return!1;default:return e}}});function o(e){return e.jetpack.jetpackNotices.notice}function c(e){return(0,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 u(e){return(0,s.get)(e.jetpack.initialState,["jetpackStateNotices","errorDescription"])}function d(e,t){return(0,s.get)(e.jetpack.jetpackNotices.dismissed,[t],!1)}},6816:function(e,t,n){"use strict";n.d(t,{Ng:function(){return r},bT:function(){return o},xw:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.U$1,error:""}),s.ZP.updateLicensingError({error:""})),r=()=>e=>s.ZP.getUserLicensesCounts().then((t=>{e({type:a.R5k,counts:t})})).catch((t=>{e({type:a.U$1,error:t})})),o=()=>(e,t)=>{const n=t().jetpack.licensing.userCounts?.detached;return s.ZP.updateLicensingActivationNoticeDismiss(n).then((t=>{e({type:a.lOd,dismissData:t})})).catch((t=>{e({type:a.U$1,error:t})}))}},59963:function(e,t,n){"use strict";n.d(t,{Ng:function(){return a.Ng},O4:function(){return s.O4},Tk:function(){return s.Tk},bT:function(){return a.bT},xw:function(){return a.xw}});var s=n(32337),a=n(6816)},32337:function(e,t,n){"use strict";n.d(t,{I6:function(){return r},O4:function(){return c},Tk:function(){return o}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({error:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.licensing.error,t=arguments.length>1?arguments[1]:void 0;return t.type===i.U$1?t.error:e},userCounts:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.licensing.userCounts??{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.R5k?(0,s.assign)({},e,t.counts):e},activationNoticeDismiss:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.licensing.activationNoticeDismiss??{last_detached_count:null,last_dismissed_time:null},t=arguments.length>1?arguments[1]:void 0;return t.type===i.lOd?(0,s.assign)({},e,t.dismissData):e},licenses:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.licensing.licenses??{items:[],loading:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.clc:return{...e,loading:!0};case i.ycn:return{...e,...t.data,loading:!1};case i.g_q:return{...e,loading:!1};default:return e}}});function o(e){return(0,s.get)(e.jetpack.licensing,["error"],"")}function c(e){return(0,s.get)(e.jetpack.licensing.userCounts,["detached"],0)}},78654:function(e,t,n){"use strict";n.d(t,{DK:function(){return m},Uq:function(){return h},Z$:function(){return u},d:function(){return d}});var s=n(64743),a=n(65736),i=n(41549),r=n(19567),o=n.n(r),c=n(92819),l=n(51975),p=n(62586);const __=a.__,u=()=>e=>(e({type:l.jEk}),s.ZP.fetchModules().then((t=>(e({type:l.I3o,modules:t}),t))).catch((t=>{e({type:l.kFt,error:t})}))),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(n,r)=>(n({type:l.sG3,module:e}),n((0,i.qq)("module-toggle")),n((0,i.iI)("is-info",(0,a.sprintf)(/* translators: placeholder is a feature name, such as "Image CDN". */ | |
| 107 | -__("Activating %s…","jetpack"),(0,p.rT)(r(),e).name),{id:"module-toggle"})),s.ZP.activateModule(e).then((()=>{n({type:l.n2G,module:e,success:!0}),n((0,i.qq)("module-toggle")),n((0,i.iI)("is-success",(0,a.sprintf)(/* translators: placeholder is a feature name, such as "Image CDN". */ | |
| 108 | -__("%s has been activated.","jetpack"),(0,p.rT)(r(),e).name),{id:"module-toggle",duration:2e3})),t&&window.location.reload()})).catch((t=>{n({type:l.Jyr,module:e,success:!1,error:t}),n((0,i.qq)("module-toggle")),n((0,i.iI)("is-error",(0,a.sprintf)(/* translators: %1$s: feature name, such as "Image CDN". - %2$s: error message. */ | |
| 109 | -__("%1$s failed to activate. %2$s","jetpack"),(0,p.rT)(r(),e).name,t),{id:"module-toggle"}))})))};function m(e,t){if("custom-content-types"!==e)return!1;t||o()("#menu-posts-jetpack-portfolio, #menu-posts-jetpack-testimonial").toggle(),(0,c.forEach)(t,(function(e,t){"jetpack_portfolio"===t&&o()("#menu-posts-jetpack-portfolio, .jp-toggle-portfolio").toggle(),"jetpack_testimonial"===t&&o()("#menu-posts-jetpack-testimonial, .jp-toggle-testimonial").toggle()}))}function h(e){(0,c.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&window.location.reload()}},50416:function(e,t,n){"use strict";n.d(t,{C5:function(){return s.C5},DK:function(){return a.DK},HS:function(){return s.HS},Qy:function(){return s.Qy},R9:function(){return s.R9},Su:function(){return s.Su},Uq:function(){return a.Uq},Xx:function(){return s.Xx},Z$:function(){return a.Z$},ZY:function(){return s.ZY},d:function(){return a.d},hU:function(){return s.hU},he:function(){return s.he},mp:function(){return s.mp},og:function(){return s.og},rT:function(){return s.rT},v1:function(){return s.v1},zc:function(){return s.zc}});var s=n(62586),a=n(78654)},62586:function(e,t,n){"use strict";n.d(t,{C5:function(){return p},HS:function(){return g},I6:function(){return c},Qy:function(){return b},R9:function(){return u},Su:function(){return _},Xx:function(){return m},ZY:function(){return l},hU:function(){return d},he:function(){return f},mp:function(){return E},og:function(){return k},rT:function(){return h},v1:function(){return w},zc:function(){return v}});var s=n(92819),a=n(835),i=n(51975),r=n(61372);const o={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},c=(0,a.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.R99:return(0,s.assign)({},t.initialState.getModules);case i.I3o:return(0,s.assign)({},e,t.modules);case i.n2G:return(0,s.assign)({},e,{[t.module]:(0,s.assign)({},e[t.module],{activated:!0})});case i.CD3:return(0,s.assign)({},e,{[t.module]:(0,s.assign)({},e[t.module],{activated:!1})});case i.Hyl:const n=(0,s.assign)({},e[t.module]);return Object.keys(t.newOptionValues).forEach((e=>{n.options[e].current_value=t.newOptionValues[e]})),(0,s.assign)({},e,{[t.module]:n});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.jEk:return(0,s.assign)({},e,{fetchingModulesList:!0});case i.kFt:case i.I3o:return(0,s.assign)({},e,{fetchingModulesList:!1});case i.sG3:return(0,s.assign)({},e,{activating:(0,s.assign)({},e.activating,{[t.module]:!0})});case i.Jyr:case i.n2G:return(0,s.assign)({},e,{activating:(0,s.assign)({},e.activating,{[t.module]:!1})});case i.Gu5:return(0,s.assign)({},e,{deactivating:(0,s.assign)({},e.deactivating,{[t.module]:!0})});case i.xkZ:case i.CD3:return(0,s.assign)({},e,{deactivating:(0,s.assign)({},e.deactivating,{[t.module]:!1})});case i.Lao:const n=(0,s.assign)({},e.updatingOption);return n[t.module]=(0,s.assign)({},n[t.module]),Object.keys(t.newOptionValues).forEach((e=>{n[t.module][e]=!0})),(0,s.assign)({},e,{updatingOption:(0,s.assign)({},e.updatingOption,n)});case i.Lon:case i.Hyl: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,n){return(0,s.get)(e.jetpack.modules.items,[t,"options",n,"current_value"])}function u(e,t,n){return(0,s.get)(e.jetpack.modules.items,[t,"options",n,"enum_labels"],!1)}function d(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 f(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].requires_user_connection))}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Object.keys(d(e));return 0<(0,s.intersection)(n,t).length}function v(e){return k(e,["carousel","photon","photon-cdn","search","videopress"])}function _(e){return k(e,["protect","sso","vaultpress"])||(0,r.TB)(e,"akismet/akismet.php")}function E(e,t){return!!(0,s.get)(e.jetpack.modules.items,[t,"activated"],!1)}function w(e,t){return(0,s.includes)(Object.keys(e.jetpack.modules.items),t)}function b(e,t){return(0,s.get)(e.jetpack.modules.items,[t,"override"],!1)}},85207:function(e,t,n){"use strict";n.d(t,{I:function(){return i},b:function(){return r}});var s=n(835),a=n(51975);const i=(0,s.UY)({duration:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yearly",t=arguments.length>1?arguments[1]:void 0;return t.type===a.arb?t.duration:e}});function r(e){return e.jetpack.plans.duration}},81886:function(e,t,n){"use strict";n(64743)},84884:function(e,t,n){"use strict";n.d(t,{T0:function(){return s.T0}});var s=n(61679);n(81886)},61679:function(e,t,n){"use strict";n.d(t,{I6:function(){return r},T0:function(){return o}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.i7L?t.products:e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case i.gat:return(0,s.assign)({},e,{isFetchingProducts:!0});case i.i7L:case i.ikp:return(0,s.assign)({},e,{isFetchingProducts:!1});default:return e}}});function o(e){return!!e.jetpack.products.requests.isFetchingProducts}},34975:function(e,t,n){"use strict";n.d(t,{I6:function(){return r},K0:function(){return o}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({connectUrls:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.R99?(0,s.assign)({},t.initialState.externalServicesConnectUrls):e}});function o(e,t){return(0,s.get)(e.jetpack.publicize.connectUrls,t,null)}},93180:function(e,t,n){"use strict";n.d(t,{AP:function(){return k},Hm:function(){return u},J_:function(){return p},OC:function(){return d},Pq:function(){return l},Ti:function(){return _},V2:function(){return i},fy:function(){return h},km:function(){return g},s2:function(){return v},tR:function(){return f},u8:function(){return c},x5:function(){return r},y5:function(){return m}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.qUO}),s.ZP.fetchRecommendationsData().then((t=>{e({type:a.s6x,data:t})})).catch((t=>{e({type:a.z1n,error:t})}))),r=e=>t=>{t({type:a.jbS,data:e})},o=(e,t)=>{const n=t().jetpack.recommendations;return e({type:a.uGk}),s.ZP.saveRecommendationsData(n.data).then((()=>{e({type:a.ogt})})).catch((t=>{e({type:a.HEN,error:t})}))},c=()=>(e,t)=>o(e,t),l=e=>(t,n)=>(t({type:a.XUm,slug:e}),o(t,n)),p=e=>(t,n)=>(t({type:a.y$G,slug:e}),o(t,n)),u=e=>(t,n)=>(t({type:a.nnP,slug:e}),o(t,n)),d=e=>(t,n)=>{t({type:a.x16,step:e});const i=n().jetpack.recommendations;return s.ZP.updateRecommendationsStep(i.step).then((()=>{t({type:a.kO5})})).catch((e=>{t({type:a.i3n,error:e})}))},m=e=>(t,n)=>(t({type:a.CaH,onboardingData:e}),o(t,n)),h=e=>({type:a.WV5,step:e}),g=()=>e=>(e({type:a.Nkq}),s.ZP.fetchRecommendationsProductSuggestions().then((t=>{e({type:a.qYt,productSuggestions:t})})).catch((t=>e({type:a.zDe,error:t})))),f=()=>e=>(e({type:a.IZk}),s.ZP.fetchRecommendationsUpsell().then((t=>{e({type:a.lhN,upsell:t})})).catch((t=>e({type:a.fXf,error:t,upsell:{hide_upsell:!0}})))),k=()=>e=>(e({type:a.wXx}),s.ZP.fetchRecommendationsConditional().then((t=>{e({type:a.qdt,data:t})})).catch((t=>e({type:a.G_D,error:t})))),v=e=>t=>{t({type:a.vyx,feature:e})},_=e=>t=>{t({type:a.JE6,feature:e})}},8722:function(e,t,n){"use strict";n.d(t,{$q:function(){return a.$q},AP:function(){return s.AP},BR:function(){return a.BR},CI:function(){return a.CI},E3:function(){return a.E3},E4:function(){return a.E4},El:function(){return a.El},F_:function(){return a.F_},HZ:function(){return a.HZ},Hm:function(){return s.Hm},I6:function(){return a.I6},J_:function(){return s.J_},OC:function(){return s.OC},Pq:function(){return s.Pq},TK:function(){return a.TK},TO:function(){return a.TO},Ti:function(){return s.Ti},V2:function(){return s.V2},VZ:function(){return a.VZ},WA:function(){return a.WA},WS:function(){return a.WS},Xi:function(){return a.Xi},YU:function(){return a.YU},ZL:function(){return a.ZL},at:function(){return a.at},b5:function(){return a.b5},c1:function(){return a.c1},dU:function(){return a.dU},dz:function(){return a.dz},fo:function(){return a.fo},fy:function(){return s.fy},i8:function(){return a.i8},jn:function(){return a.jn},jp:function(){return a.jp},km:function(){return s.km},mI:function(){return a.mI},s2:function(){return s.s2},sB:function(){return a.sB},tR:function(){return s.tR},u8:function(){return s.u8},x5:function(){return s.x5},y5:function(){return s.y5}});var s=n(93180),a=n(5954)},76385:function(e,t,n){"use strict";n.d(t,{D:function(){return r},I:function(){return a}});var s=n(39398);function a(e){const t=Object.values(s.fq).findIndex((t=>t.includes(e)));return-1===t?null:Object.keys(s.fq)[t]}function i(e){const t=s.rU.indexOf(e);if(-1===t)throw`The onboarding "${e}" is not included in the ONBOARDING_ORDER`;return t}function r(e,t){return i(e)-i(t)}},5954:function(e,t,n){"use strict";n.d(t,{$q:function(){return S},BR:function(){return x},CI:function(){return X},E3:function(){return A},E4:function(){return b},El:function(){return f},F_:function(){return W},HZ:function(){return $},I6:function(){return k},TK:function(){return ee},TO:function(){return J},VZ:function(){return C},WA:function(){return _},WS:function(){return v},Xi:function(){return te},YU:function(){return q},ZL:function(){return j},at:function(){return E},b5:function(){return w},c1:function(){return Z},dU:function(){return L},dz:function(){return M},fo:function(){return I},i8:function(){return y},jn:function(){return K},jp:function(){return Q},mI:function(){return G},sB:function(){return R}});var s=n(59584),a=n(92819),i=n(39398),r=n(835),o=n(51975),c=n(96300),l=n(69508),p=n(69377),u=n(3230),d=n(33002),m=n(61372),h=n(76385);const g=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return(0,a.union)(e,t)},f=e=>(0,a.get)(e.jetpack,["recommendations","productSuggestions"],[]),k=(0,r.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.s6x:case o.jbS:for(const[e,n]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:n,delete s["site-type-business"]}if("site-type-other"===e){const e=s["site-type-personal"];s["site-type-personal"]=void 0!==e?e:n,delete s["site-type-other"]}}return(0,a.assign)({},e,t.data);case o.XUm:{const n=(0,a.mergeWith)({},e,{selectedRecommendations:[t.slug],skippedRecommendations:[],viewedRecommendations:[]},g);return n.skippedRecommendations=(0,a.difference)(e.skippedRecommendations,[t.slug]),n}case o.y$G:{const n=(0,a.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[t.slug],viewedRecommendations:[]},g);return n.selectedRecommendations=(0,a.difference)(e.selectedRecommendations,[t.slug]),n}case o.nnP:return(0,a.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[],viewedRecommendations:[t.slug]},g);case o.CaH:{const{active:n,viewed:s,hasStarted:a,totalSteps:i}=t.onboardingData;return Object.assign({},e,{...void 0!==n?{onboardingActive:n}:{},...void 0!==s?{onboardingViewed:s}:{},...void 0!==a?{onboardingHasStarted:a}:{},...void 0!==i?{onboardingTotalSteps:i}:{}})}default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case o.qUO:return(0,a.assign)({},e,{isFetchingRecommendationsData:!0});case o.s6x:return(0,a.assign)({},e,{isRecommendationsDataLoaded:!0,isFetchingRecommendationsData:!1});case o.z1n:return(0,a.assign)({},e,{isFetchingRecommendationsData:!1});case o.Nkq:return(0,a.assign)({},e,{isFetchingRecommendationsProductSuggestions:!0});case o.qYt:case o.zDe:return(0,a.assign)({},e,{isFetchingRecommendationsProductSuggestions:!1});case o.IZk:return(0,a.assign)({},e,{isFetchingRecommendationsUpsell:!0});case o.lhN:case o.fXf:return(0,a.assign)({},e,{isFetchingRecommendationsUpsell:!1});case o.wXx:return(0,a.assign)({},e,{isFetchingRecommendationsConditional:!0});case o.qdt:return(0,a.assign)({},e,{isRecommendationsConditionalLoaded:!0,isFetchingRecommendationsConditional:!1});case o.G_D:return(0,a.assign)({},e,{isFetchingRecommendationsConditional:!1});case o.x16:return(0,a.assign)({},e,{isUpdatingRecommendationsStep:!0});case o.kO5:case o.i3n:return(0,a.assign)({},e,{isUpdatingRecommendationsStep:!1});default:return e}},step:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===o.x16?t.step:e},upsell:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.lhN:case o.fXf:return t.upsell;default:return e}},productSuggestions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.qYt:case o.zDe:return t.productSuggestions;default:return e}},conditional:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.qdt:case o.G_D:return t.data;default:return e}},siteDiscount:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===o.WV5?{...e,viewed:t.step}:e},installing:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.vyx:return Object.values(i.uw).includes(t.feature)?{...e,[t.feature]:!0}:e;case o.JE6:return Object.values(i.uw).includes(t.feature)?{...e,[t.feature]:!1}:e;default:return e}}}),v=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsData,_=e=>!!e.jetpack.recommendations.requests.isRecommendationsDataLoaded,E=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsProductSuggestions,w=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsUpsell,b=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsConditional,y=e=>!!e.jetpack.recommendations.requests.isRecommendationsConditionalLoaded,j=e=>!!e.jetpack.recommendations.requests.isUpdatingRecommendationsStep,C=e=>e.jetpack.recommendations.siteDiscount.viewed||"",S=(e,t)=>(0,a.get)(e.jetpack,["recommendations","data",t],!1),N={default:{"setup-wizard-completed":"summary","banner-completed":"agency","not-started":"site-type-question","site-type-question":"agency",agency:"woocommerce","product-suggestions":"woocommerce",woocommerce:"monitor",monitor:"related-posts","related-posts":"newsletter",newsletter:"site-accelerator","site-accelerator":"publicize",publicize:"vaultpress-for-woocommerce","vaultpress-for-woocommerce":"vaultpress-backup","vaultpress-backup":"summary",protect:"summary","anti-spam":"summary",videopress:"summary","backup-plan":"summary",boost:"summary",summary:"summary"},onboarding:{[i.WU]:{welcome__complete:"backup-activated","backup-activated":"scan-activated","scan-activated":"antispam-activated","antispam-activated":"videopress-activated","videopress-activated":"search-activated","search-activated":"server-credentials","server-credentials":"summary"},[i.Wn]:{welcome__security:"backup-activated","backup-activated":"scan-activated","scan-activated":"antispam-activated","antispam-activated":"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.dL]:{welcome__starter:"backup-activated","backup-activated":"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.sV]:{welcome__backup:"monitor",monitor:"site-accelerator","site-accelerator":"server-credentials","server-credentials":"summary"},[i.DF]:{welcome__antispam:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.Lw]:{welcome__videopress:"monitor",monitor:"site-accelerator","site-accelerator":"related-posts","related-posts":"summary"},[i.NN]:{welcome__search:"related-posts","related-posts":"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.UP]:{welcome__scan:"monitor",monitor:"site-accelerator","site-accelerator":"summary"},[i.JI]:{welcome__golden_token:"backup-activated","backup-activated":"scan-activated","scan-activated":"server-credentials","server-credentials":"summary"}}},x={"not-started":"#/recommendations/site-type","site-type-question":"#/recommendations/site-type","product-suggestions":"#/recommendations/product-suggestions",agency:"#/recommendations/agency",woocommerce:"#/recommendations/woocommerce",monitor:"#/recommendations/monitor",newsletter:"#/recommendations/newsletter","related-posts":"#/recommendations/related-posts","creative-mail":"#/recommendations/creative-mail","site-accelerator":"#/recommendations/site-accelerator",publicize:"#/recommendations/publicize",protect:"#/recommendations/protect","anti-spam":"#/recommendations/anti-spam",videopress:"#/recommendations/videopress","backup-plan":"#/recommendations/backup-plan",boost:"#/recommendations/boost",summary:"#/recommendations/summary","vaultpress-backup":"#/recommendations/vaultpress-backup","vaultpress-for-woocommerce":"#/recommendations/vaultpress-for-woocommerce",welcome__backup:"#/recommendations/welcome-backup",welcome__complete:"#/recommendations/welcome-complete",welcome__security:"#/recommendations/welcome-security",welcome__starter:"#/recommendations/welcome-starter",welcome__antispam:"#/recommendations/welcome-antispam",welcome__videopress:"#/recommendations/welcome-videopress",welcome__search:"#/recommendations/welcome-search",welcome__scan:"#/recommendations/welcome-scan",welcome__golden_token:"#/recommendations/welcome-golden-token","backup-activated":"#/recommendations/backup-activated","scan-activated":"#/recommendations/scan-activated","antispam-activated":"#/recommendations/antispam-activated","videopress-activated":"#/recommendations/videopress-activated","search-activated":"#/recommendations/search-activated","server-credentials":"#/recommendations/server-credentials"},T=e=>(0,a.get)(e.jetpack,["recommendations","data"]),A=(e,t)=>{const n=T(e);return n.viewedRecommendations&&n.viewedRecommendations.includes(t)},P=(e,t)=>{const n=T(e);return n.skippedRecommendations&&n.skippedRecommendations.includes(t)},Z=(e,t)=>(0,a.get)(e.jetpack,["recommendations","installing"])[t]??!1,M=(e,t)=>{switch(t){case"boost":return!!(0,m.TB)(e,"jetpack-boost/jetpack-boost.php");case"creative-mail":return!!(0,m.TB)(e,"creative-mail-by-constant-contact/creative-mail-plugin.php");case"monitor":return!!(0,u.$8)(e,"monitor");case"newsletter":return!!(0,u.$8)(e,"subscriptions");case"related-posts":return!!(0,u.$8)(e,"related-posts");case"site-accelerator":return!!(0,u.$8)(e,"photon")&&(0,u.$8)(e,"photon-cdn");case"woocommerce":return!!(0,m.TB)(e,"woocommerce/woocommerce.php");case"protect":return!!(0,m.TB)(e,"jetpack-protect/jetpack-protect.php");case"publicize":return!!(0,u.$8)(e,"publicize");case"videopress-activated":case"videopress":return!!(0,m.TB)(e,"videopress/jetpack-videopress.php");case"antispam-activated":return!!(0,m.TB)(e,"akismet/akismet.php");default:throw`Unknown featureSlug in isFeatureActive() in recommendations/reducer.js: ${t}`}},O=e=>"jetpack_free"===(0,d.UL)(e).product_slug&&!(0,d.b2)(e),R=e=>{if(!O(e))return!1;const t=f(e);return(0,a.isArray)(t)&&!(0,a.isEmpty)(t)},L=e=>{const t=q(e);if(t&&t.active){const{totalSteps:n}=t,s=J(e);return n.length-(n.indexOf(s)+1)}return(0,l.QP)(e)},I=(e,t)=>{switch(t){case"publicize":case"protect":if(!(0,d.VL)(e)&&!(0,d.nE)(e))return s.Etl;break;case"backup-plan":if(!(0,d.b7)(e)&&!(0,s.kdX)((0,d.UL)(e)))return s.tVY;break;case"anti-spam":if(!(0,m.TB)(e,"akismet/akismet.php")&&!(0,d.IL)(e)&&!(0,s.O$n)((0,d.UL)(e)))return s.shc;break;case"videopress":if(!(0,d.CV)(e,"videopress-1tb-storage")&&!(0,d.CV)(e,"videopress-unlimited-storage"))return s.v_I}return!1},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,d.UL)(e).product_slug;return"is-free-plan"===(0,s.scx)(n)&&(0,l.nP)(e)===t},U=(e,t)=>{const n=(e=>(0,a.get)(e.jetpack,["recommendations","conditional"]))(e);return Array.isArray(n)&&n.indexOf(t)>-1},D=(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"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__backup":case"welcome__golden_token":return!0;case"product-suggestions":return R(e);case"vaultpress-backup":return z(e);case"vaultpress-for-woocommerce":return z(e,!0);case"agency":return!!S(e,"site-type-agency");case"woocommerce":return!!S(e,"site-type-store")&&!M(e,t);case"monitor":return(0,c.it)(e)&&!M(e,t);case"publicize":case"videopress":case"boost":return U(e,t)&&!M(e,t);case"protect":return U(e,t)&&!(0,m.TB)(e,"jetpack-protect/jetpack-protect.php");case"anti-spam":case"backup-plan":return U(e,t);case"server-credentials":return"awaiting_credentials"===(0,p.of)(e).state;case"antispam-activated":case"videopress-activated":return M(e,t);default:return!M(e,t)}},V=(e,t)=>{const n=(0,a.get)(q(e),"active"),s=(0,a.get)(N,n?`onboarding.${n}`:"default");if(!s)return"summary";let i=s[t]||"summary";for(;!D(e,i);)i=s[i];return i},F=e=>Object.keys((0,a.get)(N,`onboarding.${e}`,{})),B=e=>{const t=(0,l.YJ)(e),n=(0,l.rd)(e),s=q(e);return s&&s.active?s.hasStarted?n:(a=s.active,F(a)[0]):"summary"!==n||A(e,"site-type-question")?t.length>0?t[0]:n:"site-type-question";var a},H=e=>(e=>(0,d.qn)(e).filter((e=>{let{active:t,subscribed_date:n}=e;return"1"===t&&i.f6<Date.parse(n)})))(e).map((e=>{let{product_slug:t}=e;return(0,h.I)(t)})).filter((e=>null!==e)),q=e=>{if((0,d._5)(e)||!_(e))return null;const t=H(e),n={active:S(e,"onboardingActive")||null,viewed:(S(e,"onboardingViewed")||[]).filter((e=>t.includes(e))),totalSteps:S(e,"onboardingTotalSteps")||[],hasStarted:S(e,"onboardingHasStarted")||!1},s=t.filter((e=>!n.viewed.includes(e)));if(s.length>0){const t=s.sort(h.D);return{active:t[0],totalSteps:F(t[0]).filter((t=>D(e,t))),viewed:(0,a.union)(n.viewed,t),hasStarted:!1}}return n},W=e=>{const t=q(e);return null!==t&&null!==t.active},J=e=>{const t=(0,a.get)(e.jetpack,["recommendations","step"],""),n=""!==t?t:B(e);return["setup-wizard-completed","banner-completed"].includes(n)?V(e,n):n},$=e=>{const t=q(e);if(!t||!t.active)return null;const{totalSteps:n}=t,s=J(e);return{currentStepIndex:n.indexOf(s),totalSteps:n.length}},G=e=>{const t=J(e),n=V(e,t);return x[n]},K=e=>(0,a.get)(e.jetpack,["recommendations","upsell"],{}),Y=(e,t)=>{switch(t){case"woocommerce":return!0===S(e,"site-type-store");case"agency":return!0===S(e,"site-type-agency");case"monitor":return(0,c.it)(e);case"boost":case"publicize":case"protect":case"videopress":return U(e,t)||M(e,t);case"anti-spam":case"backup-plan":return U(e,t);default:return!0}},X=e=>{const t=["woocommerce","monitor","related-posts","creative-mail","newsletter","site-accelerator","protect","publicize","videopress","boost"].filter((t=>Y(e,t))),n=[],s=[];for(const a of t)M(e,a)||Z(e,a)?n.push(a):P(e,a)&&s.push(a);return{selected:n,skipped:s}},Q=e=>["agency","anti-spam","backup-plan"].filter((t=>Y(e,t))),ee=e=>{const t=q(e);return t?t.viewed.filter((t=>((e,t)=>{const n=q(e),s=n?n.viewed:[];if(!s.includes(t))return!1;switch(t){case i.WU:return!0;case i.Lw:case i.NN:case i.Wn:return!s.includes(i.WU);case i.sV:case i.DF:case i.UP:return!s.includes(i.WU)&&!s.includes(i.Wn);default:return!0}})(e,t))).sort(h.D).map((e=>i.XE[e])):[]},te=e=>{const t=(0,d.UL)(e),n=(0,p.of)(e).state;return t.product_slug&&n?O(e)?"upsell":"awaiting_credentials"!==n||(0,d.CV)(e,"scan")?["active","provisioning"].includes(n)?"manage-security":"download-app":"one-click-restores":"loading"}},29171:function(e,t,n){"use strict";var s=n(33929),a=n(835),i=n(30569),r=n(13480),o=n(49112),c=n(8183),l=n(34761),p=n(36920),u=n(67953),d=n(32337),m=n(62586),h=n(85207),g=n(61679),f=n(34975),k=n(8722),v=n(5220),_=n(75518),E=n(17647),w=n(11834),b=n(71),y=n(16876),j=n(7628),C=n(11410),S=n(30775),N=n(22948);const x=(0,a.UY)({connection:r.I6,dashboard:i.sI,devCard:o.I6,initialState:l.E3,jetpackNotices:u.I6,modules:m.I6,plans:h.I,pluginsData:b.I6,products:g.I6,publicize:f.I6,recommendations:k.I6,rewind:v.I6,scan:_.I6,search:E.I6,settings:w.I6,siteData:y.I6,siteProducts:j.I6,siteVerify:C.I6,disconnectSurvey:c.I6,trackingSettings:S.I6,licensing:d.I6,waf:N.I6,introOffers:p.I6});t.Z=(0,a.UY)({globalNotices:s.x,jetpack:x})},15641:function(e,t,n){"use strict";var s=n(835),a=n(75385),i=n(29171);t.Z=(0,s.qC)((0,s.md)(a.Z),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(s.MT)(i.Z)},2653:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.itb}),s.ZP.fetchRewindStatus().then((t=>(e({type:a.DgS,status:t}),t))).catch((t=>{e({type:a.mlz,error:t})})))},69377:function(e,t,n){"use strict";n.d(t,{Au:function(){return a.A},Li:function(){return s.Li},of:function(){return s.of}});var s=n(5220),a=n(2653)},5220:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},Li:function(){return c},of:function(){return l}});var s=n(92819),a=n(835),i=n(51975);const r={isFetchingRewindStatus:!1},o=(0,a.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.DgS:return(0,s.assign)({},e,{status:t.status});case i.Yk$:return(0,s.assign)({},e,{status:t.rewindState});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;switch((arguments.length>1?arguments[1]:void 0).type){case i.itb:return(0,s.assign)({},e,{isFetchingRewindStatus:!0});case i.DgS:case i.mlz:return(0,s.assign)({},e,{isFetchingRewindStatus:!1});default:return e}}});function c(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function l(e){return(0,s.get)(e.jetpack.rewind,["data","status"],{})}},34758:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.feA}),s.ZP.fetchScanStatus().then((t=>(e({type:a.N9n,status:t}),t))).catch((t=>{e({type:a.vrP,error:t})})))},15080:function(e,t,n){"use strict";n.d(t,{C8:function(){return s.C8},eR:function(){return a.e},gE:function(){return s.gE}});var s=n(75518),a=n(34758)},75518:function(e,t,n){"use strict";n.d(t,{C8:function(){return l},I6:function(){return o},gE:function(){return c}});var s=n(92819),a=n(835),i=n(51975);const r={isFetchingScanStatus:!1},o=(0,a.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.N9n:return(0,s.assign)({},e,{status:t.status});case i.M0I:return{status:{...e.status,...t.scanState}};default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;switch((arguments.length>1?arguments[1]:void 0).type){case i.feA:return(0,s.assign)({},e,{isFetchingScanStatus:!0});case i.N9n:case i.vrP: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"],{})}},84570:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var s=n(51975);const a=e=>t=>{t({type:s.FcF,term:e})}},89292:function(e,t,n){"use strict";n.d(t,{CX:function(){return s.CX},He:function(){return s.He},eb:function(){return a.e}});var s=n(17647),a=n(84570)},17647:function(e,t,n){"use strict";n.d(t,{CX:function(){return c},He:function(){return o},I6:function(){return r}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({searchTerm:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===i.FcF?t.term:e}});function o(e){return e.jetpack.search.searchTerm}function c(e,t){const n=(0,s.find)((0,s.get)(e.jetpack,["modules","items"],{}),["module",t]);if(void 0===n)return!1;const a=(0,s.get)(e.jetpack,["search","searchTerm"],!1);return!a||[n.module,n.name,n.description,n.learn_more_button,n.long_description,n.search_terms,n.additional_search_queries,n.short_description,n.feature?n.feature.toString():""].join(" ").toLowerCase().indexOf(a.toLowerCase())>-1}},91952:function(e,t,n){"use strict";n.d(t,{VP:function(){return d},_1:function(){return p},a6:function(){return l},wv:function(){return u}});var s=n(64743),a=n(65736),i=n(41549),r=n(92819),o=n(51975),c=n(50416);const __=a.__,l=()=>({type:o.NsN}),p=()=>({type:o.TIZ}),u=()=>e=>(e({type:o.JAC}),s.ZP.fetchSettings().then((t=>(e({type:o.dSY,settings:t}),t))).catch((t=>{e({type:o.rYo,error:t})}))),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{const l={progress:__("Updating settings…","jetpack"),success:__("Updated settings.","jetpack"),error:e=>(0,a.sprintf)(/* translators: placeholder is an error code or an error message. */ | |
| 110 | -__("Error updating settings. %s","jetpack"),e.message||e.code||e.name||e),...t};"object"==typeof e&&(0,r.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&(l.success=__("Updated settings. Refreshing page…","jetpack")),n((0,i.qq)("module-setting-update")),n((0,i.qq)("module-setting-update-success"));const p=["dismiss_empty_stats_card","dismiss_dash_backup_getting_started","dismiss_dash_agencies_learn_more"];return"object"!=typeof e||(0,r.some)(p,(t=>t in e))||n((0,i.iI)("is-info",l.progress,{id:"module-setting-update"})),n({type:o.BX3,updatedOptions:e}),s.ZP.updateSettings(e).then((t=>{n({type:o.FLi,updatedOptions:m(t,e),success:t}),(0,c.DK)(e),(0,c.Uq)(e),n((0,i.qq)("module-setting-update")),n((0,i.qq)("module-setting-update-success")),"object"!=typeof e||(0,r.some)(p,(t=>t in e))||n((0,i.iI)("is-success",l.success,{id:"module-setting-update-success",duration:2e3}))})).catch((t=>{n({type:o.gYU,success:!1,error:t,updatedOptions:e}),n((0,i.qq)("module-setting-update")),n((0,i.iI)("is-error",l.error(t),{id:"module-setting-update"}))}))}};function m(e,t){let n=t;return"regenerate"===(0,r.get)(t,"post_by_email_address")&&(n={post_by_email_address:e.post_by_email_address}),n}},3230:function(e,t,n){"use strict";n.d(t,{$8:function(){return s.$8},Cu:function(){return s.Cu},GD:function(){return s.GD},Gw:function(){return s.Gw},O$:function(){return s.O$},VP:function(){return a.VP},_1:function(){return a._1},a6:function(){return a.a6},g0:function(){return s.g0},p0:function(){return s.p0},qg:function(){return s.qg},wS:function(){return s.wS},wv:function(){return a.wv}});var s=n(11834),a=n(91952)},11834:function(e,t,n){"use strict";n.d(t,{$8:function(){return l},Cu:function(){return p},GD:function(){return m},Gw:function(){return c},I6:function(){return o},O$:function(){return f},g0:function(){return h},p0:function(){return u},qg:function(){return d},wS:function(){return g}});var s=n(92819),a=n(835),i=n(51975);const r={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},o=(0,a.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.R99:return(0,s.assign)({},e,t.initialState.settings);case i.dSY:return(0,s.assign)({},t.settings);case i.jHC:const n=Object.keys(t.updatedOption)[0];return(0,s.assign)({},e,{[n]:t.updatedOption[n]});case i.FLi:return(0,s.assign)({},e,t.updatedOptions);default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.JAC:return(0,s.assign)({},e,{fetchingSettingsList:!0});case i.rYo:case i.dSY:return(0,s.assign)({},e,{fetchingSettingsList:!1});case i.q4m:case i.BX3:return(0,s.merge)({},e,{settingsSent:(0,s.mapValues)(t.updatedOptions,(()=>!0))});case i.QFx:case i.jHC:case i.gYU:case i.FLi: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:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case i.NsN:return!0;case i.TIZ:return!1;default:return e}}});function c(e){return e.jetpack.settings.items}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!(!(arguments.length>3&&void 0!==arguments[3])||arguments[3])||""===n||(0,s.get)(e.jetpack.settings.items,n,!1))return(0,s.get)(e.jetpack.settings.items,t,void 0)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"object"==typeof t?(0,s.some)((0,s.filter)(e.jetpack.settings.requests.settingsSent,((e,n)=>(0,s.includes)(t,n))),(e=>e)):e.jetpack.settings.requests.settingsSent[t]}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.jetpack.settings.requests.updatedSettings[t]}function d(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)}function f(e){return(0,s.get)(e.jetpack.settings.items,"dismiss_dash_agencies_learn_more",!1)}},58324:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.Ppo}),s.ZP.fetchSiteProducts().then((t=>{e({type:a.QD8,siteProducts:t.data})})).catch((t=>{e({type:a.hzW,error:t})})))},77805:function(e,t,n){"use strict";n.d(t,{Ki:function(){return s.Ki},aX:function(){return s.aX},cR:function(){return s.cR},dt:function(){return s.dt},gp:function(){return s.gp},pW:function(){return a.p}});var s=n(7628),a=n(58324)},7628:function(e,t,n){"use strict";n.d(t,{I6:function(){return i},Ki:function(){return l},aX:function(){return r},cR:function(){return p},dt:function(){return o},gp:function(){return c}});var s=n(835),a=n(51975);const i=(0,s.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===a.QD8?t.siteProducts:e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case a.Ppo:return{...e,isFetching:!0};case a.QD8:case a.hzW:return{...e,isFetching:!1};default:return e}}});function r(e){return!!e.jetpack.siteProducts.requests.isFetching}function o(e){return e.jetpack.siteProducts.items}function c(e,t){return e.jetpack.siteProducts.items?.[t]}function l(e,t){const n=c(e,t),s=n?.introductory_offer?.cost_per_interval||n?.cost;return Math.ceil(s/12*100)/100}function p(e,t){const n=c(e,t),s=n?.introductory_offer?.cost_per_interval;return"year"===n?.introductory_offer?.interval_unit&&1===n?.introductory_offer?.interval_count&&s?Math.ceil(s/n?.cost*100):0}},163:function(e,t,n){"use strict";n.d(t,{Z:function(){return c},n:function(){return o}});var s=n(64743),a=n(65736),i=n(41549),r=n(51975);const __=a.__,o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>(t({type:r.$F1}),s.ZP.fetchVerifySiteGoogleStatus(e).then((e=>{if(e.errors&&e.errors.length>0){const n=Object.keys(e.errors)[0],s=e.errors[n];return t({type:r.b6A,error:{code:n,message:s}}),e}return t({type:r.czi,verified:e.verified,token:e.token,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url}),e})).catch((e=>{t({type:r.b6A,error:e.response})})))},c=e=>t=>(t({type:r.$d8}),s.ZP.verifySiteGoogle(e).then((e=>{if(e.errors&&e.errors.length>0){const n=Object.keys(e.errors)[0],s=e.errors[n];return t({type:r.kms,error:{code:n,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.s9K}),e.verified&&t((0,i.iI)("is-success",__("Site is verified","jetpack"),{id:"verify-site-google-verified",duration:2e3})),e})).catch((e=>{t({type:r.kms,error:e.response})})))},47923:function(e,t,n){"use strict";n.d(t,{BH:function(){return s.BH},Zn:function(){return a.Z},_g:function(){return s._g},dO:function(){return s.dO},hr:function(){return s.hr},n:function(){return a.n},nS:function(){return s.nS},nZ:function(){return s.nZ},ou:function(){return s.ou}});var s=n(11410),a=n(163)},11410:function(e,t,n){"use strict";n.d(t,{BH:function(){return c},I6:function(){return r},_g:function(){return d},dO:function(){return m},hr:function(){return l},nS:function(){return p},nZ:function(){return o},ou:function(){return u}});var s=n(92819),a=n(835),i=n(51975);const r=(0,a.UY)({google:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fetching:!1,verifying:!1,verified:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.$F1:return(0,s.assign)({},e,{fetching:!0});case i.b6A:return(0,s.assign)({},e,{fetching:!1,error:t.error});case i.czi: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.$d8:return(0,s.assign)({},e,{verifying:!0});case i.s9K:return(0,s.assign)({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case i.kms: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 u(e){return(0,s.get)(e,"jetpack.siteVerify.google.error",null)}function d(e){return(0,s.get)(e,"jetpack.siteVerify.google.searchConsoleUrl",null)}function m(e){return(0,s.get)(e,"jetpack.siteVerify.google.isOwner",!1)}},87619:function(e,t,n){"use strict";n.d(t,{IO:function(){return r},N$:function(){return o},Z_:function(){return p},ij:function(){return c},lA:function(){return l},tO:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.rQ4}),s.ZP.fetchSiteData().then((t=>(e({type:a.fHq,siteData:t}),t))).catch((t=>{e({type:a.l94,error:t})}))),r=()=>e=>(e({type:a.Mg3}),s.ZP.fetchSiteBenefits().then((t=>{e({type:a.nDB,siteBenefits:t})})).catch((t=>{e({type:a.rwn,error:t})}))),o=()=>e=>(e({type:a.Tip}),s.ZP.fetchSiteDiscount().then((t=>{e({type:a.lLu,siteDiscount:t})})).catch((t=>{e({type:a.pmE,error:t})}))),c=()=>e=>(e({type:a.VlO}),s.ZP.fetchSiteFeatures().then((t=>(e({type:a.VN$,siteFeatures:t}),t))).catch((t=>{e({type:a.g9Z,error:t})}))),l=()=>e=>(e({type:a.Few}),s.ZP.getPlans().then((t=>(e({type:a.ltp,plans:t}),t))).catch((t=>{e({type:a.Dze,error:t})}))),p=()=>e=>(e({type:a.Abu}),s.ZP.fetchSitePurchases().then((t=>(e({type:a.EpE,purchases:t}),t))).catch((t=>{e({type:a.zOX,error:t})})))},33002:function(e,t,n){"use strict";n.d(t,{$l:function(){return s.$l},CV:function(){return s.CV},GR:function(){return s.GR},IL:function(){return s.IL},IO:function(){return a.IO},N$:function(){return a.N$},UL:function(){return s.UL},VH:function(){return s.VH},VL:function(){return s.VL},Vc:function(){return s.Vc},Z_:function(){return a.Z_},Zd:function(){return s.Zd},_5:function(){return s._5},az:function(){return s.az},b2:function(){return s.b2},b7:function(){return s.b7},bl:function(){return s.bl},ij:function(){return a.ij},lA:function(){return a.lA},ms:function(){return s.ms},nE:function(){return s.nE},nl:function(){return s.nl},nq:function(){return s.nq},p:function(){return s.p},qn:function(){return s.qn},tO:function(){return a.tO},u:function(){return s.u}});var s=n(16876),a=n(87619)},20213:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.QmL}),s.ZP.fetchPluginsData().then((t=>(e({type:a.XPw,pluginsData:t}),t))).catch((t=>{e({type:a.K0Z,error:t})})))},61372:function(e,t,n){"use strict";n.d(t,{P8:function(){return s.P8},TB:function(){return s.TB},bK:function(){return s.bK},s4:function(){return a.s},vz:function(){return s.vz}});var s=n(71),a=n(20213)},71:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},P8:function(){return u},TB:function(){return p},bK:function(){return l},vz:function(){return c}});var s=n(92819),a=n(835),i=n(51975);const r={isFetchingPluginsData:!1},o=(0,a.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.XPw?(0,s.assign)({},t.pluginsData):e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;switch((arguments.length>1?arguments[1]:void 0).type){case i.QmL:return(0,s.assign)({},e,{isFetchingPluginsData:!0});case i.K0Z:case i.XPw: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 u(e,t){return!!e.jetpack.pluginsData.items[t]}},16876:function(e,t,n){"use strict";n.d(t,{$l:function(){return E},CV:function(){return w},GR:function(){return h},I6:function(){return l},IL:function(){return N},UL:function(){return g},VH:function(){return f},VL:function(){return S},Vc:function(){return p},Zd:function(){return m},_5:function(){return u},az:function(){return x},b2:function(){return C},b7:function(){return T},bl:function(){return d},ms:function(){return _},nE:function(){return A},nl:function(){return y},nq:function(){return k},p:function(){return j},qn:function(){return b},u:function(){return v}});var s=n(65736),a=n(59584),i=n(92819),r=n(835),o=n(51975);const __=s.__,c={isFetchingSiteData:!1},l=(0,r.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.fHq:return(0,i.assign)({},e,t.siteData);case o.nDB:return(0,i.merge)({},e,{site:{benefits:t.siteBenefits}});case o.lLu:if(t.siteDiscount?.code)return(0,i.merge)({},e,{site:{discount:t.siteDiscount}});case o.arr:return(0,i.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case o.VN$:return(0,i.merge)({},e,{site:{features:t.siteFeatures}});case o.ltp:return(0,i.merge)({},e,{sitePlans:t.plans});case o.EpE:return(0,i.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;switch((arguments.length>1?arguments[1]:void 0).type){case o.rQ4:return(0,i.assign)({},e,{isFetchingSiteData:!0});case o.Mg3:return(0,i.assign)({},e,{isFetchingSiteBenefits:!0});case o.Tip:return(0,i.assign)({},e,{isFetchingSiteDiscount:!0});case o.a8A:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!0});case o.VlO:return(0,i.assign)({},e,{isFetchingSiteFeatures:!0});case o.Few:return(0,i.assign)({},e,{isFetchingSitePlans:!0});case o.Abu:return(0,i.assign)({},e,{isFetchingSitePurchases:!0});case o.l94:case o.fHq:return(0,i.assign)({},e,{isFetchingSiteData:!1});case o.rwn:case o.nDB:return(0,i.assign)({},e,{isFetchingSiteBenefits:!1});case o.pmE:case o.lLu:return(0,i.assign)({},e,{isFetchingSiteDiscount:!1});case o.TRY:case o.arr:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case o.g9Z:case o.VN$:return(0,i.assign)({},e,{isFetchingSiteFeatures:!1});case o.Dze:case o.ltp:return(0,i.assign)({},e,{isFetchingSitePlans:!1});case o.zOX:case o.EpE:return(0,i.assign)({},e,{isFetchingSitePurchases:!1});default:return e}},errors:function(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(s.type===o.l94){switch(s.error.name){case"ApiError":e="reconnect",t=__("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":e="support",t=__("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:e=null,t=__("There seems to be a problem with your website.","jetpack")}return(0,i.assign)({},n,{message:s.error.hasOwnProperty("response")?s.error.response.message:t,action:e,code:s.error.hasOwnProperty("response")?s.error.response.code:"fetch_site_data_fail_other",data:s.error.hasOwnProperty("response")?s.error.response.data:{}})}return n}});function p(e){return[(0,i.get)(e.jetpack.siteData,["errors"],[])]}function u(e){return!!(e.jetpack.siteData.requests.isFetchingSiteData||e.jetpack.siteData.requests.isFetchingSiteFeatures||e.jetpack.siteData.requests.isFetchingSitePlans||e.jetpack.siteData.requests.isFetchingSitePurchases)}function d(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 f(e){return(0,i.get)(e.jetpack.siteData,["data","options","videopress_storage_used"],null)}function k(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){return(0,i.get)(e.jetpack.siteData,["data","site","features","available"],{})}function E(e){return(0,i.get)(e.jetpack.siteData,["data","site","features","active"],[])}function w(e,t){const n=E(e);return n&&n.indexOf(t)>=0}function b(e){return(0,i.get)(e.jetpack.siteData,["data","sitePurchases"],[])}function y(e){return b(e).filter((e=>"1"===e.active))}function j(e){return y(e).filter((e=>(0,a.yy5)(e.product_slug)))}function C(e){return j(e).length>0}function S(e){return!!function(e){return(0,i.find)(y(e),(e=>(0,a.DMv)(e.product_slug)))}(e)||"is-complete-plan"===(0,a.scx)(g(e).product_slug)}function N(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,a.ECB)(e.product_slug)))}(e)}function x(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,a.Mvu)(e.product_slug)))}(e)}function T(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,a.MC3)(e.product_slug)))}(e)}function A(e){return!!function(e){return(0,i.find)(j(e),(e=>(0,a.SsR)(e.product_slug)))}(e)}},97639:function(e,t,n){"use strict";n.d(t,{$:function(){return o},X:function(){return c}});var s=n(64743),a=n(65736),i=n(41549),r=n(51975);const __=a.__,o=()=>e=>(e({type:r.Tad}),s.ZP.fetchUserTrackingSettings().then((t=>(e({type:r.X0m,settings:t}),t))).catch((t=>{e({type:r.YDM,error:t})}))),c=e=>t=>{const n={progress:__("Updating privacy settings…","jetpack"),success:__("Updated privacy settings.","jetpack"),error:e=>(0,a.sprintf)(/* translators: placeholder is an error message. */ | |
| 111 | -__("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)};return t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:r.kK9,updatedSettings:e}),s.ZP.updateUserTrackingSettings(e).then((s=>{t({type:r.TBz,updatedSettings:e,success:s}),t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))})).catch((s=>{t({type:r.rAK,updatedSettings:e,success:!1,error:s}),t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-error",n.error(s),{id:"tracking-settings-update"}))}))}},30775:function(e,t,n){"use strict";n.d(t,{AO:function(){return c},Ak:function(){return p},I6:function(){return o},ab:function(){return l}});var s=n(92819),a=n(835),i=n(51975);const r={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},o=(0,a.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.X0m:return(0,s.assign)({},e,t.settings);case i.TBz:return(0,s.assign)({},e,t.updatedSettings);default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;switch((arguments.length>1?arguments[1]:void 0).type){case i.Tad:return(0,s.assign)({},e,{fetchingTrackingSettings:!0});case i.YDM:case i.X0m:return(0,s.assign)({},e,{fetchingTrackingSettings:!1});case i.kK9:return(0,s.assign)({},e,{updatingTrackingSettings:!0});case i.rAK:case i.TBz: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}},98159:function(e,t,n){"use strict";n.d(t,{Iv:function(){return i},NY:function(){return o},uy:function(){return r}});var s=n(64743),a=n(51975);const i=()=>e=>(e({type:a.Y5l}),s.ZP.fetchWafSettings().then((t=>(e({type:a.Oth,settings:t}),t))).catch((t=>{e({type:a.krc,error:t})}))),r=e=>t=>{t({type:a.t6Q,allowList:e})},o=e=>t=>(t({type:a.VB$}),s.ZP.updateWafSettings({jetpack_waf_automatic_rules:e.automaticRulesEnabled,jetpack_waf_ip_list:e.manualRulesEnabled,jetpack_waf_ip_allow_list:e.ipAllowList,jetpack_waf_ip_block_list:e.ipBlockList,jetpack_waf_share_data:e.shareData}).then((e=>(t({type:a.NG6,settings:e}),e))).catch((e=>{throw t({type:a.wvW,error:e}),e})))},22948:function(e,t,n){"use strict";n.d(t,{EN:function(){return s.EN},I6:function(){return s.I6},Iv:function(){return a.Iv},uy:function(){return a.uy},vd:function(){return s.vd}});var s=n(86725),a=n(98159)},86725:function(e,t,n){"use strict";n.d(t,{EN:function(){return d},I6:function(){return o},T2:function(){return p},Xn:function(){return l},_0:function(){return u},vd:function(){return c}});var s=n(92819),a=n(835),i=n(51975);const r={isFetchingWafSettings:!1,isUpdatingWafSettings:!1},o=(0,a.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Oth:case i.NG6: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),manualRulesEnabled:Boolean(t.settings?.jetpack_waf_ip_list),ipAllowList:t.settings?.jetpack_waf_ip_allow_list||"",allowListInputState:void 0===e.allowListInputState?t.settings?.jetpack_waf_ip_allow_list:e.allowListInputState,ipBlockList:t.settings?.jetpack_waf_ip_block_list||"",shareData:Boolean(t.settings?.jetpack_waf_share_data)});case i.t6Q:return(0,s.assign)({},e,{allowListInputState:t.allowList});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;switch((arguments.length>1?arguments[1]:void 0).type){case i.Y5l:return(0,s.assign)({},e,{isFetchingWafSettings:!0});case i.Oth:case i.krc:return(0,s.assign)({},e,{isFetchingWafSettings:!1});case i.VB$:return(0,s.assign)({},e,{isUpdatingWafSettings:!0});case i.NG6:case i.wvW: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 u(e){return(0,s.get)(e.jetpack.waf,["data","automaticRulesAvailable"],!1)}function d(e){return(0,s.get)(e.jetpack.waf,["data","allowListInputState"],null)}},81253:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(65736),c=n(85799),l=n(66164),p=n(2353),u=n(5004),d=n(93806),m=n(28178),h=n(84069),g=n(99196),f=n.n(g),k=n(59309),v=n(69508),_=n(50416);const __=o.__,E=()=>{h.Z.tracks.recordJetpackClick("blaze-dashboard")};t.Z=(0,p.u)((0,k.$j)(((e,t)=>({blazeActive:t.getOptionValue("blaze"),blazeDashboardEnabled:(0,v.Cq)(e),blazeModule:(0,_.rT)(e,"blaze"),blazeAvailable:(0,v.WY)(e),isWoASite:(0,v.Pw)(e)})))((function(e){const{blazeActive:t,blazeAvailable:n,blazeModule:{description:s},blazeDashboardEnabled:o,hasConnectedOwner:p,isOfflineMode:h,isSavingAnyOption:g,isUnavailableInOfflineMode:k,isWoASite:v,siteAdminUrl:_,toggleModuleNow:w}=e;if(v)return null;const b=k("blaze");return f().createElement(d.Z,a()({},e,{header:__("Blaze","jetpack"),module:"blaze",hideButton:!0}),f().createElement(m.Z,{module:{module:"blaze"},disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{text:s,link:(0,i.Z)("jetpack-support-blaze")}},n?f().createElement(u.T,{slug:"blaze",activated:t,disabled:b||!p,toggling:g("blaze"),toggleModule:w},__("Attract high-quality traffic to your site using Blaze.","jetpack")):f().createElement(r.Z,{disabled:!0,label:__("Blaze is not available on your site.","jetpack")})),n&&t&&p&&!h&&f().createElement(c.Z,a()({compact:!0,className:"jp-settings-card__configure-link",href:o?_+"tools.php?page=advertising":(0,i.Z)("jetpack-blaze"),onClick:E},o?{}:{target:"_blank",rel:"noopener noreferrer"}),__("Manage your campaigns and view your earnings in the Blaze dashboard","jetpack")),n&&!p&&!h&&f().createElement(l.Z,{feature:"blaze",featureLabel:__("Blaze","jetpack"),text:__("Connect to set up campaigns and promote your content.","jetpack")}))})))},55248:function(e,t,n){"use strict";n.d(t,{W:function(){return f}});var s=n(82674),a=n.n(s),i=n(6895),r=n(69307),o=n(65736),c=n(85799),l=n(2353),p=n(93806),u=n(28178),d=n(84069),m=n(59584),h=n(99196),g=n.n(h);const __=o.__,_x=o._x,f=(0,l.u)(class extends h.Component{trackConfigureClick(){d.Z.tracks.recordJetpackClick("configure-ga")}render(){return g().createElement(p.Z,a()({},this.props,{header:_x("Google Analytics","Settings header","jetpack"),feature:m.r2Z,hideButton:!0}),g().createElement(u.Z,{disableInOfflineMode:!0,module:{module:"google-analytics"},support:{text:__("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions.","jetpack"),link:(0,i.Z)("jetpack-support-google-analytics")}},(0,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:(0,i.Z)("calypso-stats-day",{site:this.props.siteRawUrl})})})),!this.props.isUnavailableInOfflineMode("google-analytics")&&g().createElement(c.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl,target:"_blank"},__("Configure your Google Analytics settings","jetpack")))}})},67889:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(69270),c=n(99196),l=n.n(c),p=n(59309),u=n(96300),d=n(69508),m=n(50416),h=n(89292),g=n(3230),f=n(81253),k=n(55248),v=n(42552),_=n(4531),E=n(71659),w=n(35847),b=n(46077),y=n(75262);const __=r.__;class j 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},t=this.props.isModuleFound("seo-tools"),n=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"),u=this.props.isModuleFound("google-analytics"),d=this.props.isModuleFound("blaze");return(this.props.searchTerm||this.props.active)&&(t||n||s||r||c||p||u||d)?l().createElement("div",null,l().createElement(o.Z,null),l().createElement("h1",{className:"screen-reader-text"},__("Jetpack Traffic Settings","jetpack")),l().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Traffic","jetpack"):__("Maximize your site’s visibility in search engines and view traffic patterns in real time.","jetpack")),r&&l().createElement(v.Z,e),t&&l().createElement(_.ZP,a()({},e,{configureUrl:(0,i.Z)("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"seo"})})),n&&l().createElement(w.V,e),u&&l().createElement(k.W,a()({},e,{configureUrl:(0,i.Z)("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"analytics"})})),d&&l().createElement(f.Z,e),s&&l().createElement(E.Z,e),p&&l().createElement(b.Z,e),c&&l().createElement(y.W,e)):null}}t.Z=(0,p.$j)((e=>({module:t=>(0,m.rT)(e,t),settings:(0,g.Gw)(e),isBlockThemeActive:(0,d.$2)(e),isOfflineMode:(0,u.Ex)(e),isUnavailableInOfflineMode:t=>(0,u.t_)(e,t),isModuleFound:t=>(0,h.CX)(e,t),isSiteConnected:(0,u.q7)(e),lastPostUrl:(0,d.Z2)(e),getModuleOverride:t=>(0,m.Qy)(e,t),hasConnectedOwner:(0,u.it)(e)})))(j)},42552:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(69307),c=n(65736),l=n(85799),p=n(61775),u=n(2353),d=n(5004),m=n(93806),h=n(28178),g=n(84069),f=n(99196),k=n.n(f);const __=c.__,_x=c._x;class v extends k().Component{state={show_headline:this.props.getOptionValue("show_headline","related-posts"),show_thumbnails:this.props.getOptionValue("show_thumbnails","related-posts")};updateOptions=e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("related-posts",e))};handleShowHeadlineToggleChange=()=>{this.updateOptions("show_headline")};handleShowThumbnailsToggleChange=()=>{this.updateOptions("show_thumbnails")};trackConfigureClick=()=>{g.Z.tracks.recordJetpackClick("configure-related-posts")};renderConfigureLink(){const{isBlockThemeActive:e,lastPostUrl:t,siteAdminUrl:n}=this.props;return e?k().createElement(l.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.Z)("jetpack-support-related-posts",{anchor:"adding-related-posts-block-theme"}),target:"_blank",rel:"noopener noreferrer"},__("Add a Related Posts Block to your site’s template in the site editor","jetpack")):k().createElement(l.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:n+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(n+"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 k().createElement(m.Z,a()({},this.props,{hideButton:!0,module:"related-posts"}),k().createElement(h.Z,{hasChild:!0,disableInOfflineMode:!0,module:this.props.getModule("related-posts"),support:{text:__("The feature helps visitors find more of your content by displaying related posts at the bottom of each post.","jetpack"),link:(0,i.Z)("jetpack-support-related-posts")}},k().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:k().createElement("a",{href:(0,i.Z)("jetpack-support-related-posts"),target:"_blank",rel:"noopener noreferrer"})})),k().createElement(d.T,{slug:"related-posts",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},k().createElement("span",{className:"jp-form-toggle-explanation"},__("Show related content after posts","jetpack"))),k().createElement(p.C_,null,k().createElement(r.Z,{checked:this.props.getOptionValue("show_headline","related-posts"),disabled:!e||t||this.props.isSavingAnyOption(["related-posts"]),toggling:this.props.isSavingAnyOption(["show_headline"]),onChange:this.handleShowHeadlineToggleChange,label:__("Highlight related content with a heading","jetpack")}),k().createElement(r.Z,{checked:this.props.getOptionValue("show_thumbnails","related-posts"),disabled:!e||t||this.props.isSavingAnyOption(["related-posts"]),toggling:this.props.isSavingAnyOption(["show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange,label:__("Show a thumbnail image where available","jetpack")}),e&&k().createElement("div",null,k().createElement(p.lX,{className:"jp-form-label-wide"},_x("Preview","A header for a preview area in the configuration screen.","jetpack")),k().createElement(l.Z,{className:"jp-related-posts-preview"},this.state.show_headline&&k().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)=>k().createElement("div",{key:`preview_${t}`,className:"jp-related-posts-preview__item"},this.state.show_thumbnails&&k().createElement("img",{src:`https://jetpackme.files.wordpress.com/2019/03/${e.url}`,alt:e.text}),k().createElement("h4",{className:"jp-related-posts-preview__post-title"},k().createElement("a",{href:"#/traffic"},e.text)),k().createElement("p",{className:"jp-related-posts-preview__post-context"},e.context)))))))),!this.props.isUnavailableInOfflineMode("related-posts")&&e&&this.renderConfigureLink())}}const _=(0,u.u)(v)},4531:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(17915),o=n(7558),c=n(43503),l=n(65736),p=n(65235),u=n.n(p),d=n(97506),m=n(30860),h=n(61775),g=n(2353),f=n(5004),k=n(71668),v=n(93806),_=n(28178),E=n(99196),w=n.n(E),b=n(59309),y=n(92659),j=n(61372),C=n(84427);const __=l.__,_x=l._x,_n=l._n,S=[{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"}],N=(0,g.u)(class extends E.Component{constants={frontPageMetaMaxLength:300,frontPageMetaSuggestedLength:159,moduleOptionsArray:["advanced_seo_front_page_description","advanced_seo_title_formats"],siteIconPreviewSize:512};SocialPreviewGoogle=e=>w().createElement(r.X,{siteTitle:e.title,title:e.title,url:e.url,description:e.frontPageMetaDescription});SocialPreviewFacebook=e=>w().createElement(o.g,{title:e.title,url:e.url,type:"website",imageMode:"landscape",description:e.frontPageMetaDescription,image:e.image});SocialPreviewTwitter=e=>w().createElement(c.m,{title:e.title,url:e.url,description:e.frontPageMetaDescription,image:e.image});updateCustomSeoTitleInputState=e=>{this.props.updateFormStateOptionValue("advanced_seo_title_formats",e)};saveButton=e=>{const t=this.props.isSavingAnyOption(this.constants.moduleOptionsArray);return w().createElement(d.Z,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:t||!e.isDirty()},t?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0))};render(){const e=this.props.isOfflineMode,t=this.props.getModule("seo-tools"),n=this.props.getOptionValue(t.module),s=this.props.getOptionValue("advanced_seo_title_formats"),r=this.props.getOptionValue("advanced_seo_front_page_description"),o={title:this.props.siteData.name||"",tagline:this.props.siteData.description||"",url:this.props.siteData.URL||"",frontPageMetaDescription:r||(this.props.siteData.description||""),image:this.props.siteData.icon?.img?`${this.props.siteData.icon.img}?s=${this.constants.siteIconPreviewSize}`:""},c=S.reduce(((e,t)=>((0,j.TB)(this.props.state,t.slug)&&e.push(t),e)),[]),p=c.length>0,d=u()({"jp-seo-front-page-description-count":!0,"jp-seo-front-page-description-count-max":r.length>=this.constants.frontPageMetaMaxLength,"jp-seo-front-page-description-count-warn":r.length>this.constants.frontPageMetaSuggestedLength&&r.length<this.constants.frontPageMetaMaxLength});return w().createElement(v.Z,a()({},this.props,{header:_x("Search engine optimization","Settings header","jetpack"),feature:"seo-tools-jetpack",module:t.module,saveDisabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray),hideButton:p}),w().createElement(_.Z,{disableInOfflineMode:!0,module:{module:"seo-tools"},support:{text:__("Allows you to optimize your site and its content for better results in search engines.","jetpack"),link:(0,i.Z)("jetpack-support-seo-tools")}},p&&w().createElement(k.Z,{showDismiss:!1},(0,l.sprintf)(/* translators: %s is the name of conflicting SEO plugin */ | |
| 112 | -__("Your SEO settings are managed by the following plugin: %s","jetpack"),c[0].name)),w().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")),w().createElement(f.T,{slug:"seo-tools",activated:n,toggling:this.props.isSavingAnyOption(t.module),disabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray)||p,toggleModule:this.props.toggleModuleNow},__("Customize your SEO settings","jetpack"))),n&&!e&&!(0,j.vz)(this.props.state)&&!p&&w().createElement(w().Fragment,null,w().createElement(m.Z,{header:__("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card"},w().createElement(_.Z,null,w().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")),w().createElement(C.ZP,{customSeoTitles:s,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:o}),w().createElement("div",{className:"jp-seo-custom-titles-save-button"},this.saveButton(this.props)))),w().createElement(m.Z,{header:__("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card"},w().createElement(_.Z,null,w().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")),w().createElement(h.lX,{htmlFor:"jp-seo-front-page-description"},w().createElement("span",{className:"jp-form-label-wide"},__("Front Page Meta Description","jetpack"))),w().createElement("div",{className:"jp-seo-front-page-description-container"},w().createElement(h.B1,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:r,onChange:this.props.onOptionChange}),w().createElement("div",{className:d},(0,l.sprintf)(/* translators: placeholder is number of characters */ | |
| 113 | -_n("%d character","%d characters",r.length,"jetpack"),r.length),r.length>=this.constants.frontPageMetaMaxLength&&" - "+__("Maximum characters reached.","jetpack"))),w().createElement("div",{className:"jp-seo-front-page-description-save-button"},this.saveButton(this.props)))),w().createElement(m.Z,{header:__("Expand to preview how the SEO settings will look for your homepage on Google, Facebook, and Twitter.","jetpack"),clickableHeader:!0,className:"jp-seo-social-previews"},w().createElement("div",{className:"jp-seo-social-previews-container"},w().createElement(y.Z,{icon:"google",size:24}),w().createElement("span",{className:"jp-seo-social-previews-label"},__("Google search","jetpack"))),this.SocialPreviewGoogle(o),w().createElement("hr",null),w().createElement("div",{className:"jp-seo-social-previews-container"},w().createElement(y.Z,{icon:"facebook",size:24}),w().createElement("span",{className:"jp-seo-social-previews-label"},__("Facebook","jetpack"))),this.SocialPreviewFacebook(o),w().createElement("hr",null),w().createElement("div",{className:"jp-seo-social-previews-container"},w().createElement(y.Z,{icon:"x",size:24}),w().createElement("span",{className:"jp-seo-social-previews-label"},__("X","jetpack"))),this.SocialPreviewTwitter(o))))}});t.ZP=(0,b.$j)((e=>({siteData:e.jetpack.siteData.data,state:e})))(N)},84427:function(e,t,n){"use strict";var s=n(65736),a=n(97506),i=n(61775),r=n(9494),o=n(99196),c=n.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=e=>{let{pageType:t,customSeoTitleInputRef:n,handleCustomSeoTitleInput:s,token:i}=e;const r=(0,o.useCallback)((()=>{const e=n.current;e.focus();const a=`[${i}]`,r=e.refs.textField.selectionStart,o=e.props.value.substring(0,r),c=e.props.value.substring(r,e.props.value.length);s(t,o+a+c)}),[t,n,s,i]);return c().createElement(a.Z,{rna:!0,className:"jp-seo-custom-titles-input-button",compact:!0,onClick:r},l.insertableTokens[i])},u=e=>{let{pageType:t,customSeoTitleInputRef:n,handleCustomSeoTitleInput:a,value:u,siteData:d}=e;return c().createElement("div",{className:`jp-seo-custom-titles-input-container-${t.name}`},c().createElement("div",{className:"jp-seo-custom-titles-input-controls"},c().createElement(i.lX,{className:"jp-seo-custom-titles-input-label",htmlFor:`jp-seo-custom-titles-input-${t.name}`},c().createElement("span",{className:"jp-form-label"},t.label)),c().createElement("div",null,((e,t,n)=>l.tokensAvailablePerPageType[e.name].map((s=>"archives"===e.name&&"date"===s?null:c().createElement(p,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:n,token:s,key:s}))))(t,n,a))),c().createElement(r.Z,{id:`jp-seo-custom-titles-input-${t.name}`,className:"jp-seo-custom-titles-input",value:u,onChange:(0,o.useCallback)((e=>a(t,e.target.value)),[a,t]),ref:n}),c().createElement("div",{className:"jp-seo-custom-titles-input-preview"},((e,t,n)=>(l.tokensAvailablePerPageType[e.name].forEach((e=>{switch(e){case"site_name":t=t.replace(/\[site_name\]/g,n.title);break;case"tagline":t=t.replace(/\[tagline\]/g,n.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 */ | |
| 114 | -__("Preview: %s","jetpack"),t)))(t,u,d)))};t.ZP=e=>{const[t]=(0,o.useState)({front_page:c().createRef(),posts:c().createRef(),pages:c().createRef(),groups:c().createRef(),archives:c().createRef()}),n=l.pageTypes.reduce(((t,n)=>{var s;return t[n.name]=(s=e.customSeoTitles[n.name],Array.isArray(s)?s.reduce(((e,t)=>e+("token"===t.type?`[${t.value}]`:t.value)),""):""),t}),{}),s=e.updateCustomSeoTitleInputState,a=(0,o.useCallback)(((e,t)=>{n[e.name]=t;const a=Object.keys(n).reduce(((e,t)=>(e[t]=((e,t)=>e.split(/(\[(?:site_name|tagline|post_title|page_title|group_title|date|archive_title)\])/).filter((e=>{if(e)return e})).map((e=>{let n=null;return Object.keys(l.insertableTokens).map((t=>{e===`[${t}]`&&(n=t)})),n&&l.tokensAvailablePerPageType[t].includes(n)?{type:"token",value:n}:{type:"string",value:e}})))(n[t],t),e)),{});s(a)}),[n,s]);return c().createElement("div",{className:"jp-seo-custom-titles"},l.pageTypes.map((s=>c().createElement(u,{pageType:s,value:n[s.name],handleCustomSeoTitleInput:a,customSeoTitleInputRef:t[s.name],siteData:e.siteData,key:s.name}))))}},71659:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(2353),c=n(5004),l=n(93806),p=n(28178),u=n(99196),d=n.n(u),m=n(59309),h=n(50416);const __=r.__,_x=r._x;class g extends u.Component{render(){const{isSiteConnected:e}=this.props;return d().createElement(l.Z,a()({},this.props,{header:_x("WP.me Shortlinks","Settings header","jetpack"),module:"shortlinks",hideButton:!0}),d().createElement(p.Z,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:(0,i.Z)("jetpack-support-shortlinks")},disableInOfflineMode:!0},d().createElement(c.T,{slug:"shortlinks",disabled:!e,activated:this.props.shortlinksActive,toggling:this.props.isSavingAnyOption("shortlinks"),toggleModule:this.props.toggleModuleNow},__("Generate shortened URLs for simpler sharing.","jetpack"))))}}t.Z=(0,o.u)((0,m.$j)(((e,t)=>({shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:(0,h.rT)(e,"shortlinks")})))(g))},35847:function(e,t,n){"use strict";n.d(t,{V:function(){return T}});var s=n(82674),a=n.n(s),i=n(80800),r=n(6895),o=n(48229),c=n(69307),l=n(65736),p=n(65235),u=n.n(p),d=n(97506),m=n(85799),h=n(30860),g=n(61775),f=n(39224),k=n(2353),v=n(71668),_=n(52099),E=n(93806),w=n(28178),b=n(84069),y=n(92819),j=n(99196),C=n.n(j),S=n(59309),N=n(69508);const __=l.__,_x=l._x;class x extends C().Component{constructor(e){super(e);const t=e.getOptionValue("count_roles","stats"),n=e.getOptionValue("roles","stats");this.state={count_roles:t,roles:n,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)(n,"editor",!1),roles_author:(0,y.includes)(n,"author",!1),roles_contributor:(0,y.includes)(n,"contributor",!1),roles_subscriber:(0,y.includes)(n,"subscriber",!1),wpcom_reader_views_enabled:e.getOptionValue("wpcom_reader_views_enabled")},n&&(this.addCustomCountRolesState(t),this.addCustomRolesState(n))}updateOptions=(e,t)=>{let n=this.props.getOptionValue(t,"stats"),s=!1;this.state[`${t}_${e}`]?(0,y.includes)(n,e)&&(n=(0,y.filter)(n,(t=>t!==e))):(0,y.includes)(n,e)||(n.push(e),s=!0),this.setState({[`${t}_${e}`]:!this.state[`${t}_${e}`]},(()=>{this.props.updateOptions({[t]:n})})),b.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:s?"on":"off"})};activateStats=()=>{this.props.updateOptions({stats:!0})};trackOpenCard=()=>{b.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})};handleRoleToggleChange=(e,t)=>()=>this.updateOptions(e,t);addCustomCountRolesState(e){e.forEach((t=>{["administrator","editor","author","subscriber","contributor"].includes(e)||(this.state[`count_roles_${t}`]=(0,y.includes)(e,t,!1))}))}addCustomRolesState(e){e.forEach((t=>{["administrator","editor","author","subscriber","contributor"].includes(t)||(this.state[`roles_${t}`]=(0,y.includes)(e,t,!1))}))}handleStatsOptionToggle(e){return()=>this.props.updateFormStateModuleOption("stats",e)}handleOptionToggle=e=>()=>{const t=!this.props.getOptionValue(e);this.setState({[e]:!this.state[e]},(()=>{this.props.updateOptions({[e]:t})})),b.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:e,toggled:t?"on":"off"})};render(){const e=this.props.getModule("stats"),t=this.props.getOptionValue("stats"),n=this.props.isUnavailableInOfflineMode("stats"),s=this.props.getSiteRoles(),l=t&&!n&&!this.props.getOptionValue("enable_odyssey_stats");return"inactive"===this.props.getModuleOverride("stats")?C().createElement(f.Z,{moduleName:e.name}):t?C().createElement(E.Z,a()({},this.props,{header:_x("Jetpack Stats","Settings header","jetpack"),hideButton:!0,module:"site-stats"}),C().createElement(h.Z,{onOpen:this.trackOpenCard,header:__("Expand to update settings for how visits are counted and manage who can view this information.","jetpack"),clickableHeader:!0,className:u()("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":n})},C().createElement(w.Z,{disableInOfflineMode:!0,module:e,support:{text:__("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:(0,r.Z)("jetpack-support-wordpress-com-stats")}},!this.props.isWoASite&&C().createElement(C().Fragment,null,l&&C().createElement(v.Z,{className:"jp-stats-odyssey-disabled-notice",showDismiss:!1,status:"is-error",text:__("Not into the new stats? Tell us why so we can make stats better for you.","jetpack")},C().createElement(_.Z,{href:i.x8,external:!0},__("Take a Quick Survey","jetpack"))),C().createElement(g.C_,{className:"jp-stats-odyssey-toggle"},C().createElement(o.Z,{checked:!!this.props.getOptionValue("enable_odyssey_stats"),disabled:!t||n||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption(["enable_odyssey_stats"]),onChange:this.handleStatsOptionToggle("enable_odyssey_stats"),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(g.C_,null,C().createElement(o.Z,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!t||n||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(g.C_,null,C().createElement(g.Gj,null,__("Count logged in page views from","jetpack")),Object.keys(s).map((e=>C().createElement(o.Z,{checked:this.state[`count_roles_${e}`],disabled:!t||n||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(g.C_,null,C().createElement(g.Gj,null,__("Allow Jetpack Stats to be viewed by","jetpack")),C().createElement(o.Z,{checked:!0,disabled:!0,label:s.administrator.name}),Object.keys(s).map((e=>"administrator"!==e?C().createElement(o.Z,{checked:this.state[`roles_${e}`],disabled:!t||n||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(g.C_,null,C().createElement(g.Gj,null,__("WordPress.com Reader","jetpack")),C().createElement(o.Z,{checked:this.state.wpcom_reader_views_enabled,disabled:!t||n,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(m.Z,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},C().createElement("div",{className:"jp-at-a-glance__stats-inactive"},C().createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},C().createElement("img",{src:i.hp+"stats.svg",width:"60",height:"60",alt:__("Line chart overlaid on a bar chart","jetpack"),className:"jp-at-a-glance__stats-icon"})),C().createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,c.createInterpolateElement)(__("<Button>Activate Jetpack Stats</Button> to see page views, likes, followers, subscribers, and more! <a>Learn More</a>","jetpack"),{Button:C().createElement(d.Z,{rna:!0,className:"jp-link-button",onClick:this.activateStats}),a:C().createElement("a",{href:(0,r.Z)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})),!this.props.isOfflineMode&&C().createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},C().createElement(d.Z,{rna:!0,onClick:this.activateStats,primary:!0},__("Activate Jetpack Stats","jetpack")))))}}const T=(0,S.$j)((e=>({isWoASite:(0,N.Pw)(e)})))((0,k.u)(x))},46077:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(55609),o=n(69307),c=n(65736),l=n(65235),p=n.n(l),u=n(64104),d=n(2353),m=n(5004),h=n(93806),g=n(28178),f=n(84069),k=n(92819),v=n(99196),_=n.n(v),E=n(59309),w=n(69508);const __=c.__,_x=c._x;class b extends _().Component{renderSitemapRow=(e,t)=>_().createElement("span",{className:"jp-sitemap-row"},_().createElement(u.Z,{value:e,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack")}),_().createElement(r.ExternalLink,{onClick:()=>f.Z.tracks.recordJetpackClick(t),rel:"noopener noreferrer",href:e}));render(){const e=this.props.getModule("sitemaps"),t=(0,k.get)(e,["extra","sitemap_url"],""),n=(0,k.get)(e,["extra","news_sitemap_url"],""),s=p()({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return _().createElement(h.Z,a()({},this.props,{module:"sitemaps",hideButton:!0}),_().createElement(g.Z,{hasChild:!0,module:{module:"sitemaps"},support:{link:(0,i.Z)("jetpack-support-sitemaps")}},_().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")),_().createElement(m.T,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},__("Generate XML sitemaps","jetpack")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&_().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(n,"sitemap-news-url-link")):_().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:_().createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})}))))}}t.Z=(0,E.$j)((e=>({isSiteVisibleToSearchEngines:(0,w.pI)(e),siteAdminUrl:(0,w.wW)(e)})))((0,d.u)(b))},75262:function(e,t,n){"use strict";n.d(t,{W:function(){return w}});var s=n(82674),a=n.n(s),i=n(6895),r=n(55609),o=n(69307),c=n(65736),l=n(61775),p=n(85733),u=n(2353),d=n(5004),m=n(93806),h=n(28178),g=n(9494),f=n(92819),k=n(99196),v=n.n(k),_=n(19528);const __=c.__;class E extends v().Component{static serviceIds={google:"google-site-verification",bing:"msvalidate.01",pinterest:"p:domain_verify",yandex:"yandex-verification",facebook:"facebook-domain-verification"};getMetaTag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?/^[a-z0-9_-]+$/i.test(t)?(0,f.includes)(t,"<meta")?t:`<meta name="${(0,f.get)(E.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.ZP,{title:e.name,icon:"cog",description:(0,c.sprintf)(/* translators: placeholder is a feature name. */ | |
| 115 | -__("%s has been disabled by a site administrator.","jetpack"),e.name)});const t=!!this.props.getOptionValue(e.module);return v().createElement(m.Z,a()({},this.props,{module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"])}),v().createElement(h.Z,{module:e,support:{text:__("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:(0,i.Z)("jetpack-support-site-verification-tools")}},v().createElement(d.T,{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. */ | |
| 116 | -__("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.Z)("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.C_,null,v().createElement(_.Z,a()({value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234")},this.props,{disabled:this.props.isUpdating("google")||!t})),v().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_bing"},v().createElement("span",null,__("Bing:","jetpack")),v().createElement(g.Z,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})),v().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_pinterest"},v().createElement("span",null,__("Pinterest:","jetpack")),v().createElement(g.Z,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})),v().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_yandex"},v().createElement("span",null,__("Yandex:","jetpack")),v().createElement(g.Z,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})),v().createElement(l.lX,{className:"jp-form-input-with-prefix",key:"verification_service_facebook"},v().createElement("span",null,__("Facebook:","jetpack")),v().createElement(g.Z,{name:"facebook",value:this.getSiteVerificationValue("facebook"),placeholder:this.getMetaTag("facebook","1234"),className:"code",disabled:this.props.isUpdating("facebook")||!t,onChange:this.props.onOptionChange})))))}}const w=(0,u.u)(E)},19528:function(e,t,n){"use strict";var s=n(55609),a=n(69307),i=n(65736),r=n(97506),o=n(61775),c=n(41549),l=n(5060),p=n(9494),u=n(84069),d=n(23962),m=n(25162),h=n.n(m),g=n(99196),f=n.n(g),k=n(59309),v=n(69508),_=n(34975),E=n(33002),w=n(47923);const __=i.__;class b extends f().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;u.Z.tracks.recordEvent("jetpack_site_verification_google_verify_error",{error_message:e}),this.props.createNotice("is-error",(0,i.sprintf)(/* translators: placeholder is an error message. */ | |
| 117 | -__("Site failed to verify: %s","jetpack"),e),{id:"verify-site-google-error",duration:5e3})}else this.props.isSiteVerifiedWithGoogle&&u.Z.tracks.recordEvent("jetpack_site_verification_google_verify_success")}))}))}handleClickAutoVerify=()=>{this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||(u.Z.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),(0,d.Z)(this.props.googleSiteVerificationConnectUrl,(e=>{e&&this.checkAndVerifySite(e)})))};handleClickSetManually=e=>{u.Z.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickEdit=e=>{u.Z.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickCancel=e=>{u.Z.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:this.props.isOwner}),this.props.resetFormStateOption("google"),this.toggleVerifyMethod(e)};quickSave=e=>{u.Z.tracks.recordEvent("jetpack_site_verification_google_manual_verify_save",{is_owner:this.props.isOwner,is_empty:!this.props.value}),this.props.onSubmit(e)};toggleVerifyMethod=()=>{this.setState({inputVisible:!this.state.inputVisible})};handleOnTextInputKeyPress=e=>{"Enter"===e.key&&this.quickSave()};render(){const e=this.props.googleSiteVerificationError&&"forbidden"===this.props.googleSiteVerificationError.code;if(this.state.inputVisible||e||!this.props.isCurrentUserLinked)return f().createElement("div",null,f().createElement(o.lX,{className:"jp-form-input-with-prefix",key:"verification_service_google"},f().createElement("span",null,__("Google","jetpack")),f().createElement(p.Z,{name:"google",value:this.props.value,placeholder:this.props.placeholder,className:"code",disabled:this.props.disabled,onChange:this.props.onOptionChange,onKeyPress:this.handleOnTextInputKeyPress}),this.state.inputVisible&&f().createElement("div",{className:"jp-form-site-verification-buttons"},f().createElement(r.Z,{primary:!0,rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave},__("Save","jetpack")),f().createElement(r.Z,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel},__("Cancel","jetpack")))));if(this.props.isSiteVerifiedWithGoogle)return f().createElement("div",null,f().createElement("div",{className:"jp-form-input-with-prefix",key:"verification_service_google"},f().createElement("span",null,__("Google","jetpack")),f().createElement("div",{className:"jp-form-site-verification-verified"},f().createElement(l.Z,{icon:"checkmark-circle",size:20})," ",f().createElement("span",null,__("Your site is verified with Google","jetpack"))),f().createElement(r.Z,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit},__("Edit","jetpack"))),this.props.isOwner&&f().createElement("div",{className:"jp-form-input-with-prefix-bottom-message"},f().createElement("div",{className:"jp-form-setting-explanation"},f().createElement("p",null,(0,a.createInterpolateElement)(__("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:f().createElement(s.ExternalLink,{rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",(0,a.createInterpolateElement)(/* translators: placeholders are links to Google support documents. */ | |
| 118 | -__("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:f().createElement(s.ExternalLink,{rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:f().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 f().createElement("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",key:"verification_service_google"},f().createElement("span",null,__("Google:","jetpack")),f().createElement("div",{className:"jp-form-google-label-unverified-actions"},(0,a.createInterpolateElement)(__("<button1>Auto verify with Google</button1><span>or</span><button2>Manually verify with Google</button2>","jetpack"),{button1:f().createElement(r.Z,{primary:!0,rna:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:f().createElement("span",{className:"jp-form-google-separator"}),button2:f().createElement(r.Z,{rna:!0,type:"button",disabled:t,onClick:this.handleClickSetManually})})))}}t.Z=(0,k.$j)((e=>({fetchingSiteData:(0,E._5)(e),googleSiteVerificationConnectUrl:(0,_.K0)(e,"google_site_verification"),googleSearchConsoleUrl:(0,w._g)(e),fetchingGoogleSiteVerify:(0,w.nZ)(e),isConnectedToGoogle:(0,w.hr)(e),isSiteVerifiedWithGoogle:(0,w.nS)(e),isVerifyingGoogleSite:(0,w.BH)(e),userCanManageOptions:(0,v.UF)(e),googleSiteVerificationError:(0,w.ou)(e),isOwner:(0,w.dO)(e)})),{checkVerifyStatusGoogle:w.n,createNotice:c.iI,removeNotice:c.qq,verifySiteGoogle:w.Zn})(b)},3915:function(e,t,n){"use strict";function s(e){return t=>{13!==t.which&&32!==t.which||e(t)}}n.d(t,{Z:function(){return s}})},32633:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(65736),c=n(15773),l=n(61775),p=n(2353),u=n(5004),d=n(93806),m=n(28178),h=n(99196),g=n.n(h),f=n(59309),k=n(50416),v=n(89292);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"),n=this.props.isModuleFound("markdown"),s=this.props.isModuleFound("shortcodes"),o=this.props.isModuleFound("blocks");if(!(e||t||n||s||o))return null;const p=this.props.module("markdown"),h=this.props.module("latex"),f=this.props.module("copy-post"),k=this.props.module("shortcodes"),v=this.props.module("blocks"),_=g().createElement(m.Z,{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.Z)("jetpack-support-copy-post")}},g().createElement(l.C_,null,g().createElement(u.T,{slug:"copy-post",activated:!!this.props.getOptionValue("copy-post"),toggling:this.props.isSavingAnyOption("copy-post"),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},f.description)))),E=g().createElement(m.Z,{module:p,support:{text:__("Use Markdown syntax to compose content with links, lists, and other styles. This setting enables Markdown in the Classic Editor as well as within a Classic Editor block.","jetpack"),link:(0,i.Z)("jetpack-support-markdown")}},g().createElement(l.C_,null,g().createElement(u.T,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},g().createElement("span",{className:"jp-form-toggle-explanation"},p.description)))),w=g().createElement(m.Z,{module:h,support:{text:__("LaTeX is a powerful markup language for writing complex mathematical equations and formulas.","jetpack"),link:(0,i.Z)("jetpack-support-beautiful-math-with-latex")}},g().createElement(l.C_,null,g().createElement(u.T,{slug:"latex",activated:!!this.props.getOptionValue("latex"),toggling:this.props.isSavingAnyOption(["latex"]),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},h.description)))),b=g().createElement(m.Z,{module:k,support:{text:k.description,link:(0,i.Z)("jetpack-support-shortcode-embeds")}},g().createElement(l.C_,null,g().createElement(u.T,{slug:"shortcodes",activated:!!this.props.getOptionValue("shortcodes"),toggling:this.props.isSavingAnyOption(["shortcodes"]),toggleModule:this.props.toggleModuleNow},g().createElement("span",{className:"jp-form-toggle-explanation"},__("Compose using shortcodes to embed media from popular sites","jetpack"))))),y=g().createElement(g().Fragment,null,g().createElement(m.Z,{module:v,support:{text:__("Jetpack includes some blocks which can help you create your pages exactly the way you want them.","jetpack"),link:(0,i.Z)("jetpack-support-blocks")}},g().createElement(l.C_,null,g().createElement(r.Z,{checked:!this.props.getOptionValue("jetpack_blocks_disabled"),toggling:this.props.isSavingAnyOption(["jetpack_blocks_disabled"]),onChange:this.toggleBlocks,label:g().createElement(g().Fragment,null,g().createElement("span",{className:"jp-form-toggle-explanation"},__("Jetpack Blocks give you the power to deliver quality content that hooks website visitors without needing to hire a developer or learn a single line of code.","jetpack")),!this.props.getOptionValue("jetpack_blocks_disabled")&&g().createElement("span",{className:"jp-form-setting-explanation"},__("Caution: if there are Jetpack blocks used in existing posts or pages, disabling this setting will cause those blocks to stop working.","jetpack")))}))),g().createElement(c.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php`},__("Discover Jetpack tools in the block editor","jetpack")));return g().createElement(d.Z,a()({},this.props,{header:_x("Composing","Settings header","jetpack"),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),e&&_,n&&E,t&&w,s&&b,o&&y)}}t.Z=(0,f.$j)((e=>({module:t=>(0,k.rT)(e,t),isModuleFound:t=>(0,v.CX)(e,t)})))((0,p.u)(_))},44312:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(48229),o=n(69307),c=n(65736),l=n(15773),p=n(2353),u=n(93806),d=n(28178),m=n(99196),h=n.n(m),g=n(59309),f=n(50416),k=n(89292);const __=c.__;class v extends h().Component{state={testimonial:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:this.props.getOptionValue("jetpack_portfolio","custom-content-types")};updateCPTs=e=>{const t="testimonial"===e?!(!this.state.testimonial||this.state.portfolio):!(!this.state.portfolio||this.state.testimonial);this.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),this.setState({[e]:!this.state[e]})};linkIfActiveCPT=e=>this.props.getSettingCurrentValue(`jetpack_${e}`,"custom-content-types")?h().createElement("a",{href:`${this.props.siteAdminUrl}edit.php?post_type=jetpack-${e}`}):h().createElement("span",null);handleTestimonialToggleChange=()=>{this.updateCPTs("testimonial")};handlePortfolioToggleChange=()=>{this.updateCPTs("portfolio")};render(){if(!this.props.isModuleFound("custom-content-types"))return null;const e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&__("This feature has been disabled by a site administrator.","jetpack");return h().createElement(u.Z,a()({},this.props,{module:"custom-content-types",hideButton:!0}),h().createElement(d.Z,{hasChild:!0,module:e,support:{link:(0,i.Z)("jetpack-support-custom-content-types")}},h().createElement("p",null,(0,o.createInterpolateElement)(__("Add <testimonialLink>testimonials</testimonialLink> to your website to attract new customers. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")})),h().createElement(r.Z,{checked:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),disabled:t,toggling:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:this.handleTestimonialToggleChange,disabledReason:n,label:__("Testimonials","jetpack"),help:h().createElement("span",{className:"jp-form-setting-explanation jp-form-shortcode-setting-explanation"},__("Testimonials shortcode: [testimonials]","jetpack"))})),this.props.testimonialActive&&h().createElement(l.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-testimonial`},__("Add a testimonial","jetpack")),h().createElement(d.Z,{hasChild:!0,module:e,support:{link:(0,i.Z)("jetpack-support-custom-content-types")}},h().createElement("p",null,(0,o.createInterpolateElement)(__("Use <portfolioLink>portfolios</portfolioLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")})),h().createElement(r.Z,{checked:this.props.getOptionValue("jetpack_portfolio","custom-content-types"),disabled:t,toggling:this.props.isSavingAnyOption("jetpack_portfolio"),onChange:this.handlePortfolioToggleChange,disabledReason:n,label:__("Portfolios","jetpack"),help:h().createElement("span",{className:"jp-form-setting-explanation jp-form-shortcode-setting-explanation"},__("Portfolios shortcode: [portfolio]","jetpack"))})),this.props.portfolioActive&&h().createElement(l.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-portfolio`},__("Add a portfolio item","jetpack")))}}t.Z=(0,p.u)((0,g.$j)(((e,t)=>({module:t=>(0,f.rT)(e,t),isModuleFound:t=>(0,k.CX)(e,t),getModuleOverride:t=>(0,f.Qy)(e,t),portfolioActive:t.getSettingCurrentValue("jetpack_portfolio","custom-content-types"),testimonialActive:t.getSettingCurrentValue("jetpack_testimonial","custom-content-types")})))(v))},34358:function(e,t,n){"use strict";var s=n(6895),a=n(55609),i=n(69307),r=n(65736),o=n(97506),c=n(61775),l=n(2353),p=n(5004),u=n(28178),d=n(84069),m=n(99196),h=n.n(m),g=n(59309),f=n(69508),k=n(50416);const __=r.__,v=()=>{d.Z.tracks.recordJetpackClick({target:"visit-global-styles",feature:"custom-css",extra:"not-supported-link"})},_=()=>{d.Z.tracks.recordJetpackClick({target:"visit-customizer",feature:"custom-css",extra:"not-supported-link"})};t.Z=(0,l.u)((0,g.$j)(((e,t)=>({customCssActive:t.getOptionValue("custom-css"),customCssModule:(0,k.rT)(e,"custom-css"),isBlockThemeActive:(0,f.$2)(e),siteAdminUrl:(0,f.wW)(e)})))((function(e){const{customCssActive:t,customCssModule:{name:n,description:r,module:l},isBlockThemeActive:d,isSavingAnyOption:m,siteAdminUrl:g,toggleModuleNow:f}=e;return h().createElement(u.Z,{module:{module:l},support:d?{}:{text:r,link:(0,s.Z)("jetpack-support-custom-css")}},h().createElement(c.Gj,{className:"jp-form-label-wide"},n),d&&h().createElement("div",{className:"jp-custom-css-site-editor"},h().createElement("div",{className:"jp-custom-css-site-editor__text"},(0,i.createInterpolateElement)(__("Your site has a block theme that allows you to apply custom CSS from the Site Editor. <a>Learn more.</a>","jetpack"),{a:h().createElement(a.ExternalLink,{href:"https://wordpress.org/documentation/article/styles-overview/#applying-custom-css",title:__("Customize every aspect of your site with the Site Editor.","jetpack")})})),!t&&h().createElement("div",{className:"jp-custom-css-site-editor__button"},h().createElement(o.Z,{rna:!0,onClick:v,href:`${g}site-editor.php?path=%2Fwp_global_styles&canvas=edit`,primary:!0},__("Use Site Editor","jetpack")))),!d&&h().createElement("div",null,(0,i.createInterpolateElement)(__("Additional CSS can be added from the Customizer. Enable the enhanced Custom CSS feature below to add additional features. <a>Access the Customizer here.</a>","jetpack"),{a:h().createElement("a",{onClick:_,href:`${g}customize.php?autofocus%5Bsection%5D=custom_css`,title:__("Edit and add CSS directly on your site from the Customizer.","jetpack")})})),d&&!t?null:h().createElement(p.T,{className:"jp-custom-css__module-toggle",slug:"custom-css",activated:!!t,toggling:m(["custom-css"]),disabled:m(["custom-css"]),toggleModule:f},h().createElement("span",{className:"jp-form-toggle-explanation"},__("Enhance CSS customization panel","jetpack"))))})))},51421:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(65736),r=n(85799),o=n(69270),c=n(99196),l=n.n(c),p=n(59309),u=n(96300),d=n(69508),m=n(50416),h=n(89292),g=n(3230),f=n(32633),k=n(44312),v=n(56720),_=n(99414),E=n(43756),w=n(89544),b=n(11138);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},t=["carousel","copy-post","custom-css","latex","masterbar","markdown","shortcodes","custom-content-types","post-by-email","infinite-scroll","widgets","widget-visibility","blocks"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;const n=this.props.userCanManageModules||this.props.userCanEditPosts,s=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return l().createElement("div",null,l().createElement(o.Z,null),l().createElement("h1",{className:"screen-reader-text"},__("Jetpack Writing Settings","jetpack")),l().createElement("h2",{className:"jp-settings__section-title"},this.props.searchTerm?__("Writing","jetpack"):__("Compose content the way you want to and streamline your publishing experience.","jetpack")),this.props.isModuleFound("carousel")&&l().createElement(b.Z,e),n&&l().createElement(f.Z,a()({},e,{userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("custom-content-types")&&l().createElement(k.Z,e),l().createElement(E.Z,e),l().createElement(w.Z,e),this.props.isModuleFound("post-by-email")&&s&&l().createElement(_.Z,a()({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&l().createElement(v.S,a()({connectUrl:this.props.connectUrl},e)),!n&&!s&&l().createElement(r.Z,null,__("Writing tools available to you will be shown here when an administrator enables them.","jetpack")))}}t.Z=(0,p.$j)((e=>({module:t=>(0,m.rT)(e,t),settings:(0,g.Gw)(e),masterbarIsAlwaysActive:(0,d.Ug)(e),isOfflineMode:(0,u.Ex)(e),isUnavailableInOfflineMode:t=>(0,u.t_)(e,t),userCanEditPosts:(0,d.rp)(e),isModuleActivated:t=>(0,m.mp)(e,t),isLinked:(0,u.BU)(e),userCanManageModules:(0,d.pK)(e),isModuleFound:t=>(0,h.CX)(e,t),connectUrl:(0,u.AM)(e),getModuleOverride:t=>(0,m.Qy)(e,t)})))(y)},56720:function(e,t,n){"use strict";n.d(t,{S:function(){return h}});var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(66164),c=n(2353),l=n(5004),p=n(93806),u=n(28178),d=n(99196),m=n.n(d);const __=r.__,_x=r._x,h=(0,c.u)(class extends d.Component{render(){const e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInOfflineMode("masterbar"),n=this.props.isLinked;return m().createElement(p.Z,a()({},this.props,{header:_x("WordPress.com toolbar","Settings header","jetpack"),module:"masterbar",hideButton:!0}),m().createElement(u.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"masterbar"},support:{text:__("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader.","jetpack"),link:(0,i.Z)("jetpack-support-masterbar")}},m().createElement("p",null,__("The WordPress.com toolbar replaces the default WordPress admin toolbar. It offers one-click access to notifications, your WordPress.com profile and your other Jetpack and WordPress.com websites. You can also catch up on the sites you follow in the Reader.","jetpack")),m().createElement(l.T,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},__("Enable the WordPress.com toolbar","jetpack"))),!this.props.isUnavailableInOfflineMode("masterbar")&&!this.props.isLinked&&m().createElement(o.Z,{feature:"masterbar",featureLabel:__("WordPress.com Toolbar","jetpack"),text:__("Connect to enable the WordPress.com toolbar.","jetpack")}))}})},99414:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(97506),c=n(64104),l=n(66164),p=n(61775),u=n(2353),d=n(5004),m=n(93806),h=n(28178),g=n(84069),f=n(99196),k=n.n(f),v=n(59309),_=n(50416),E=n(89292);const __=r.__,_x=r._x;class w extends k().Component{regeneratePostByEmailAddress=e=>{g.Z.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),this.props.regeneratePostByEmailAddress()};address=()=>{const e=this.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e};render(){if(!this.props.isModuleFound("post-by-email"))return null;const e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInOfflineMode("post-by-email")||!this.props.isLinked,s=this.address();return k().createElement(m.Z,a()({},this.props,{module:"post-by-email",hideButton:!0}),k().createElement(h.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:e,support:{text:__("Allows you to publish new posts by sending an email to a special address.","jetpack"),link:(0,i.Z)("jetpack-support-post-by-email")}},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.T,{slug:"post-by-email",compact:!0,disabled:n,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(p.C_,null,k().createElement(p.lX,null,k().createElement(p.Gj,null,__("Send your new posts to this email address:","jetpack")),k().createElement(c.Z,{value:s,disabled:!t||n,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack"),rna:!0})),k().createElement(o.Z,{rna:!0,compact:!0,disabled:!t||n,onClick:this.regeneratePostByEmailAddress},s?__("Regenerate address","jetpack"):__("Create address","jetpack",0)))),!this.props.isUnavailableInOfflineMode("post-by-email")&&!this.props.isLinked&&k().createElement(l.Z,{feature:"post-by-email",featureLabel:__("Post by Email","jetpack"),text:__("Connect to enable publishing via email.","jetpack")}))}}t.Z=(0,v.$j)((e=>({module:t=>(0,_.rT)(e,t),isModuleFound:t=>(0,E.CX)(e,t)})))((0,u.u)(w))},43756:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(61775),c=n(39224),l=n(2353),p=n(93806),u=n(28178),d=n(84069),m=n(99196),h=n.n(m),g=n(59309),f=n(69508),k=n(50416),v=n(89292),_=n(34358);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=()=>{d.Z.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})};state={infinite_mode:this.getInfiniteMode()};handleInfiniteScrollModeChange=e=>()=>this.updateInfiniteMode(e);render(){const e=this.props.isModuleFound("infinite-scroll"),t=this.props.isModuleFound("custom-css");if(!e&&!t)return null;const n=this.props.getModule("infinite-scroll"),s="inactive"===this.props.getModuleOverride("infinite-scroll");return h().createElement(p.Z,a()({},this.props,{header:__("Theme enhancements","jetpack"),hideButton:!e||!this.props.isInfiniteScrollSupported,module:"theme-enhancements"}),s&&h().createElement(c.Z,{moduleName:n.name,compact:!0}),e&&!s&&h().createElement(u.Z,{hasChild:!0,module:{module:n.module},key:`theme_enhancement_${n.module}`,support:{text:__("Loads the next posts automatically when the reader approaches the bottom of the page.","jetpack"),link:(0,i.Z)("jetpack-support-infinite-scroll")}},h().createElement(o.Gj,{className:"jp-form-label-wide"},n.name),h().createElement("p",null,__("Create a smooth, uninterrupted reading experience by loading more content as visitors scroll to the bottom of your archive pages.","jetpack")),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:__("Load more posts using the default theme behavior","jetpack")},{key:"infinite_button",label:__("Load more posts in page with a button","jetpack")},{key:"infinite_scroll",label:__("Load more posts as the reader scrolls down","jetpack")}].map((e=>h().createElement(o.lX,{key:`${n.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([n.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:n.learn_more_button+"#theme",title:__("Learn more about adding support for Infinite Scroll to your theme.","jetpack")},__("Learn more","jetpack")))),t&&h().createElement(_.Z,null))}}t.Z=(0,g.$j)((e=>({module:t=>(0,k.rT)(e,t),isInfiniteScrollSupported:(0,f.Cv)(e,"infinite-scroll"),isModuleFound:t=>(0,v.CX)(e,t)})))((0,l.u)(E))},89544:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(6895),r=n(65736),o=n(2353),c=n(5004),l=n(93806),p=n(28178),u=n(99196),d=n.n(u),m=n(59309),h=n(50416),g=n(89292);const __=r.__,_x=r._x;class f extends u.Component{render(){const e=this.props.isModuleFound("widgets"),t=this.props.isModuleFound("widget-visibility");return e||t?d().createElement(l.Z,a()({},this.props,{header:_x("Widgets","Settings header","jetpack"),module:"widgets",hideButton:!0}),e&&d().createElement(p.Z,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:(0,i.Z)("jetpack-support-extra-sidebar-widgets")}},d().createElement(c.T,{slug:"widgets",activated:this.props.widgetsActive,toggling:this.props.isSavingAnyOption("widgets"),toggleModule:this.props.toggleModuleNow},__("Make extra widgets available for use on your site including subscription forms and more","jetpack"))),t&&d().createElement(p.Z,{module:{module:"widget-visibility"},support:{text:__("Widget visibility lets you decide which widgets appear on which pages, so you can finely tailor widget content.","jetpack"),link:(0,i.Z)("jetpack-support-widget-visibility")}},d().createElement(c.T,{slug:"widget-visibility",activated:this.props.widgetVisibilityActive,toggling:this.props.isSavingAnyOption("widget-visibility"),toggleModule:this.props.toggleModuleNow},__("Enable widget visibility controls to display widgets only on particular posts or pages","jetpack")))):null}}t.Z=(0,o.u)((0,m.$j)(((e,t)=>({widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:(0,h.rT)(e,"widgets"),isModuleFound:t=>(0,g.CX)(e,t)})))(f))},11138:function(e,t,n){"use strict";var s=n(82674),a=n.n(s),i=n(48229),r=n(6895),o=n(65736),c=n(61775),l=n(2353),p=n(5004),u=n(93806),d=n(28178),m=n(99196),h=n.n(m),g=n(59309),f=n(50416),k=n(89292);const __=o.__;t.Z=(0,g.$j)((e=>({module:t=>(0,f.rT)(e,t),isModuleFound:t=>(0,k.CX)(e,t)})))((0,l.u)((function(e){const t=e.isModuleFound("carousel");if(!t)return null;const n=e.getOptionValue("carousel_display_comments","carousel"),s=e.getOptionValue("carousel_display_exif","carousel"),o=e.getOptionValue("carousel"),l=(t,n,s,a)=>h().createElement(i.Z,{checked:t,disabled:!o||e.isSavingAnyOption(["carousel"]),toggling:e.isSavingAnyOption([n]),onChange:s,label:a});return h().createElement(u.Z,a()({},e,{module:"media",header:__("Media","jetpack"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color")}),h().createElement(d.Z,{hasChild:!0,module:{module:"carousel"},support:{link:(0,r.Z)("jetpack-support-carousel")}},h().createElement("p",null,__("Create full-screen carousel slideshows for the images in your posts and pages. Carousel galleries are mobile-friendly and encourage site visitors to interact with your photos.","jetpack")),h().createElement(p.T,{slug:"carousel",activated:o,toggling:e.isSavingAnyOption("carousel"),toggleModule:e.toggleModuleNow},h().createElement("span",{className:"jp-form-toggle-explanation"},__("Display images in a full-screen carousel gallery","jetpack"))),h().createElement(c.C_,null,l(s,"carousel_display_exif",(()=>{e.updateFormStateModuleOption("carousel","carousel_display_exif")}),__("Show photo Exif metadata in carousel (when available)","jetpack")),l(n,"carousel_display_comments",(()=>{e.updateFormStateModuleOption("carousel","carousel_display_comments")}),__("Show comments area in carousel","jetpack")),h().createElement(c.C_,null,h().createElement("p",{className:"jp-form-setting-explanation"},__("Exif data shows viewers additional technical details of a photo, like its focal length, aperture, and ISO.","jetpack"))),h().createElement(c.lX,null,h().createElement(c.Gj,{className:"jp-form-label-wide"},__("Carousel color scheme","jetpack")),h().createElement(c.ih,a()({name:"carousel_background_color",value:e.getOptionValue("carousel_background_color"),disabled:!o||e.isSavingAnyOption(["carousel","carousel_background_color"])},e,{validValues:e.validValues("carousel_background_color","carousel"),rna:!0}))))))})))},43317:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});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 a(e){return s[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},25607:function(e,t,n){"use strict";n.d(t,{LR:function(){return r},ZP:function(){return i}});var s=n(43317),a=n(5375);function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,s.X)(t);if(!i||isNaN(e))return null;const{decimal:r,grouping:o,precision:c,symbol:l}={...i,...n},p=e<0?"-":"";let u=(0,a.Z)(Math.abs(e),c,r,o);return n.stripZeros&&(u=function(e,t){const n=new RegExp(`\\${t}0+$`);return e.replace(n,"")}(u,r)),`${p}${l}${u}`}function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(0,s.X)(t);if(!i||isNaN(e))return null;const{decimal:r,grouping:o,precision:c,symbol:l}={...i,...n},p=e<0?"-":"",u=Math.abs(e),d=Math.floor(u);return{sign:p,symbol:l,integer:(0,a.Z)(u,c,r,o).split(r)[0],fraction:c>0?(0,a.Z)(u-d,c,r,o).slice(1):""}}},5375:function(e,t,n){"use strict";function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";const a=(e+"").replace(/[^0-9+\-Ee.]/g,""),i=isFinite(+a)?+a:0,r=isFinite(+t)?Math.abs(t):0,o=(r?function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).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(n)}n.d(t,{Z:function(){return s}})},7211:function(e,t,n){"use strict";var s,a=n(53184);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,a.EventEmitter.prototype),s.emitChange=function(){this.emit("change")},s.off=s.removeListener,i.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},i.prototype.getScreenCenterSpecs=function(e,t){const n=void 0!==window.screenTop?window.screenTop:window.screenY,s=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+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},t.Z=i},37580:function(e,t,n){"use strict";n.d(t,{FT:function(){return s},HX:function(){return a},Mf:function(){return i}});const s="article",a="landscape",i="portrait"},52208:function(e,t,n){"use strict";var s=n(30275),a=n(21987),i=n(90626);t.Z=e=>{let t,{text:n,url:r,forceUrlDisplay:o}=e;return(o||(0,a.ge)(n,"a"))&&(t=(0,s.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:r,rel:"nofollow noopener noreferrer",target:"_blank",children:r})),(0,s.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,s.jsx)("span",{children:(0,a.u_)(n,{platform:"facebook",maxChars:i.qA})}),t]})}},90626:function(e,t,n){"use strict";n.d(t,{jN:function(){return r},qA:function(){return a},wB:function(){return o},wy:function(){return i}});var s=n(21987);const a=440,i=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),r=e=>(0,s.SL)((0,s.hs)(110),(0,s.KB)(110))((0,s.ju)(e))||"",o=e=>(0,s.SL)((0,s.hs)(200),(0,s.KB)(200))((0,s.ju)(e))||""},53251:function(e,t,n){"use strict";var s=n(65736),a=n(99196),i=n(37580);const __=s.__;t.Z=e=>{let{mode:t}=e;const[n,s]=(0,a.useState)(t),[r,o]=(0,a.useState)(!0),c=(0,a.useCallback)((e=>{let{target:t}=e;if(!n){const e=t;s(e.naturalWidth>e.naturalHeight?i.HX:i.Mf)}o(!1)}),[n]),l=(0,a.useCallback)((()=>o(!1)),[]);return[n,r,{alt:__("Facebook Preview Thumbnail","jetpack"),onLoad:c,onError:l}]}},26767:function(e,t,n){"use strict";n.d(t,{F:function(){return l}});var s=n(30275),a=n(37580),i=n(52208),r=n(53251),o=n(3451),c=n(69133);const l=e=>{let{url:t,customImage:n,user:l,customText:p,imageMode:u}=e;const[d,m,h]=(0,r.Z)({mode:u}),g="is-"+(d===a.Mf?"portrait":"landscape");return(0,s.jsxs)("div",{className:"facebook-preview__post",children:[(0,s.jsx)(c.Z,{user:void 0}),(0,s.jsx)("div",{className:"facebook-preview__content",children:(0,s.jsxs)("div",{className:`facebook-preview__window ${g} ${n&&m?"is-loading":""}`,children:[(0,s.jsx)("div",{className:`facebook-preview__custom-image ${g}`,children:(0,s.jsx)("img",{src:n,...h})}),(0,s.jsx)(c.Z,{user:l,timeElapsed:!0,hideOptions:!0}),p&&(0,s.jsx)(i.Z,{text:p,url:t,forceUrlDisplay:!0})]})}),(0,s.jsx)(o.Z,{})]})}},7558:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var s=n(30275),a=n(65736),i=n(37580),r=n(52208),o=n(90626),c=n(53251),l=n(3451),p=n(69133),u=n(69094);n(59961);const __=a.__,d=e=>{let{url:t,title:n,description:a,image:d,user:m,customText:h,type:g,imageMode:f,compactDescription:k}=e;const[v,_,E]=(0,c.Z)({mode:f}),w=g===i.FT,b="is-"+(w&&!d||v===i.Mf?"portrait":"landscape");return(0,s.jsxs)("div",{className:"facebook-preview__post",children:[(0,s.jsx)(p.Z,{user:m}),(0,s.jsxs)("div",{className:"facebook-preview__content",children:[h&&(0,s.jsx)(r.Z,{text:h,url:t}),(0,s.jsxs)("div",{className:`facebook-preview__body ${b} ${d&&_?"is-loading":""}`,children:[(d||w)&&(0,s.jsx)("div",{className:`facebook-preview__image ${d?"":"is-empty"} ${b}`,children:d&&(0,s.jsx)("img",{src:d,...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.wy)(t)}),(0,s.jsx)("div",{className:"facebook-preview__title",children:(0,o.jN)(n)||(0,o.wy)(t)}),(0,s.jsxs)("div",{className:"facebook-preview__description "+(k?"is-compact":""),children:[a&&(0,o.wB)(a),w&&!a&& | |
| 2 | +(()=>{var e,t,n={81760(e,t,n){var s=n(22347);e.exports=function(e){var t=null,n=s(e);if(3===e.nodeType){var r=n.createRange();r.selectNodeContents(e),e=r}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var o=n.createElement("span");o.appendChild(n.createTextNode("")),e.insertNode(o),t=o.getBoundingClientRect();var i=o.parentNode;i.removeChild(o),i.normalize()}return t}},39612(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return _}});var s=n(279),r=n.n(s),o=n(370),i=n.n(o),a=n(817),c=n.n(a);function l(e){try{return document.execCommand(e)}catch(e){return!1}}var d=function(e){var t=c()(e);return l("cut"),t},p=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var s=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(s,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var s=c()(n);return l("copy"),n.remove(),s},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=p(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=p(e.value,t):(n=c()(e),l("copy")),n};function h(e){return h="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(e)}var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,s=e.container,r=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==h(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?u(o,{container:s}):r?"cut"===n?d(r):u(r,{container:s}):void 0};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function m(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,s,r,o=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s=this,!(r=n)||"object"!==f(r)&&"function"!=typeof r?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(s):r}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(o,e);var t,n,s,r=w(o);function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return t=o,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",s=g({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(s?"success":"error",{action:n,text:s,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],s=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return u(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}],n&&m(t.prototype,n),s&&m(t,s),o}(r()),_=k},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var s=n(828);function r(e,t,n,s,r){var i=o.apply(this,arguments);return e.addEventListener(n,i,r),{destroy:function(){e.removeEventListener(n,i,r)}}}function o(e,t,n,r){return function(n){n.delegateTarget=s(n.target,t),n.delegateTarget&&r.call(e,n)}}e.exports=function(e,t,n,s,o){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,s,o)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var s=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(s.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(s.string(e))return function(e,t,n){return r(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var s=window.getSelection(),r=document.createRange();r.selectNodeContents(e),s.removeAllRanges(),s.addRange(r),t=s.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var s=this.e||(this.e={});return(s[e]||(s[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var s=this;function r(){s.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),s=0,r=n.length;s<r;s++)n[s].fn.apply(n[s].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),s=n[e],r=[];if(s&&t)for(var o=0,i=s.length;o<i;o++)s[o].fn!==t&&s[o].fn._!==t&&r.push(s[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},43172(e,t){"use strict";t.qg=function(e,t){const n=new a,s=e.length;if(s<2)return n;const r=t?.decode||d;let o=0;do{const t=e.indexOf("=",o);if(-1===t)break;const i=e.indexOf(";",o),a=-1===i?s:i;if(t>a){o=e.lastIndexOf(";",t-1)+1;continue}const d=c(e,o,t),p=l(e,t,d),u=e.slice(d,p);if(void 0===n[u]){let s=c(e,t+1,a),o=l(e,a,s);const i=r(e.slice(s,o));n[u]=i}o=a+1}while(o<s);return n},t.lK=function(e,t,a){const c=a?.encode||encodeURIComponent;if(!n.test(e))throw new TypeError(`argument name is invalid: ${e}`);const l=c(t);if(!s.test(l))throw new TypeError(`argument val is invalid: ${t}`);let d=e+"="+l;if(!a)return d;if(void 0!==a.maxAge){if(!Number.isInteger(a.maxAge))throw new TypeError(`option maxAge is invalid: ${a.maxAge}`);d+="; Max-Age="+a.maxAge}if(a.domain){if(!r.test(a.domain))throw new TypeError(`option domain is invalid: ${a.domain}`);d+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw new TypeError(`option path is invalid: ${a.path}`);d+="; Path="+a.path}if(a.expires){if(!function(e){return"[object Date]"===i.call(e)}(a.expires)||!Number.isFinite(a.expires.valueOf()))throw new TypeError(`option expires is invalid: ${a.expires}`);d+="; Expires="+a.expires.toUTCString()}a.httpOnly&&(d+="; HttpOnly");a.secure&&(d+="; Secure");a.partitioned&&(d+="; Partitioned");if(a.priority){switch("string"==typeof a.priority?a.priority.toLowerCase():void 0){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${a.priority}`)}}if(a.sameSite){switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"none":d+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${a.sameSite}`)}}return d};const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,s=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function c(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function l(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function d(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},2467(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,s=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,s){function r(n){e.removeListener(t,o),s(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&f(e,"error",t,n)}(e,r,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var i=10;function a(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?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,s){var r,o,i,l;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),i=o[t]),void 0===i)i=o[t]=n,++e._eventsCount;else if("function"==typeof i?i=o[t]=s?[n,i]:[i,n]:s?i.unshift(n):i.push(n),(r=c(e))>0&&i.length>r&&!i.warned){i.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=i.length,l=d,console&&console.warn&&console.warn(l)}return e}function d(){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 p(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=d.bind(s);return r.listener=n,s.wrapFn=r,r}function u(e,t,n){var s=e._events;if(void 0===s)return[];var r=s[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):g(r,r.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),s=0;s<t;++s)n[s]=e[s];return n}function f(e,t,n,s){if("function"==typeof e.on)s.once?e.once(t,n):e.on(t,n);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 r(o){s.once&&e.removeEventListener(t,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),o.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},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(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},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)s(c,this,t);else{var l=c.length,d=g(c,l);for(n=0;n<l;++n)s(d[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,s,r,o,i;if(a(t),void 0===(s=this._events))return this;if(void 0===(n=s[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){i=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(s[e]=n[0]),void 0!==s.removeListener&&this.emit("removeListener",e,i||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,s;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(s=0;s<o.length;++s)"removeListener"!==(r=o[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[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},o.prototype.listeners=function(e){return u(this,e,!0)},o.prototype.rawListeners=function(e){return u(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},22347(e){e.exports=function e(n){if(t(n))return n;if(t(n.ownerDocument))return n.ownerDocument;if(t(n.document))return n.document;if(n.parentNode)return e(n.parentNode);if(n.commonAncestorContainer)return e(n.commonAncestorContainer);if(n.startContainer)return e(n.startContainer);if(n.anchorNode)return e(n.anchorNode)};function t(e){return e&&9===e.nodeType}},90969(e,t,n){"use strict";n.d(t,{A:()=>s});const s={"admin-page":"sexr0jUxC1jVixdKiDnC",background:"vKQ11sLeAM45M04P1ccj","without-bottom-border":"zWDcRnnZPA743KzSQdUg","admin-page-header":"iWGAhN9gOB48g0jEO1OQ","admin-page-footer":"N7JAnsuu_FtPrtDg8bVw","sandbox-domain-badge":"JOYmuxQjG4FArIIUxJfA"}},23510(e,t,n){"use strict";n.d(t,{A:()=>s});const s={"global-notices":"jT9Kt2ZTvxPKDQ1pa7sN"}},65250(){},56727(e,t,n){"use strict";n.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"}},64824(e,t,n){"use strict";n.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"}},8706(e,t,n){"use strict";n.d(t,{A:()=>s});const s={global:"_fUXxnSp5pagKBp9gSN7"}},13371(){},12948(){},97498(){},18703(){},85708(){},97880(){},3223(){},19073(){},46571(e,t,n){"use strict";n.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"}},88046(){},26544(){},27246(){},39376(){},69281(){},80294(){},51823(){},72140(){},25097(){},88124(){},32471(){},12725(){},58648(){},30689(){},3168(){},31515(){},67524(){},18441(){},48024(){},86142(){},97400(){},70254(){},66122(){},68226(){},76623(){},92804(){},61091(e,t,n){"use strict";n.d(t,{A:()=>s});const s={status:"M6nZxM0zPfsyXOkLc3La","is-active":"ft2Q82T61ngYxtA1V6y7",indicator:"VZhtRpcxHsnuAjaEuY1s","is-inactive":"ksJccZmEr9fLnmULkUIz","is-error":"tkfH3I3YK4P1_EtGngmu","is-action":"T7NsJ5bjL2D9cX2N65x9","is-initializing":"Pm8JXWg2MyJskwFthMie"}},24016(){},44997(e){var t=1e3,n=60*t,s=60*n,r=24*s,o=7*r,i=365.25*r;function a(e,t,n,s){var r=t>=1.5*n;return Math.round(e/n)+" "+s+(r?"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 a=/^(-?(?:\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(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*i;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*r;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*n;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 o=Math.abs(e);if(o>=r)return a(e,o,r,"day");if(o>=s)return a(e,o,s,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=r)return Math.round(e/r)+"d";if(o>=s)return Math.round(e/s)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=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))}},15762(e,t,n){"use strict";var s=n(53761);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==s){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={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:o,resetWarningCache:r};return n.PropTypes=n,n}},28120(e,t,n){e.exports=n(15762)()},53761(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},90372(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(10067);const r=n.n(s)()("dops:analytics");let o,i;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const a={initialize:function(e,t,n){a.setUser(e,t),a.setSuperProps(n),a.identifyUser()},setGoogleAnalyticsEnabled:function(e,t=null){this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){i={ID:e,username:t}},setSuperProps:function(e){o=e},assignSuperProps:function(e){o=Object.assign(o||{},e)},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);r("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),r('Built stat "%s" in group "%s"',t,e);return n}(e,t);a.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){a.tracks.recordPageView(e),a.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,s,r,o,i){a.ga.recordPurchase(e,t,n,s,r,o,i)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(!t.blog_id&&"object"==typeof window.jpTracksContext&&window.jpTracksContext.blog_id&&(t.blog_id=window.jpTracksContext.blog_id),o&&(r("- Super Props: %o",o),t=Object.assign(t,o)),r('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):r('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};a.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){a.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){r("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};a.ga.initialized||(i&&(e={userId:"u-"+i.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),a.ga.initialized=!0)},recordPageView:function(e,t){a.ga.initialize(),r("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,n,s){a.ga.initialize();let o="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(o+=" [Option Label: "+n+"]"),void 0!==s&&(o+=" [Option Value: "+s+"]"),r(o),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,s)},recordPurchase:function(e,t,n,s,r,o,i){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:s,currency:i}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:r,quantity:o}),window.ga("ecommerce:send")}},identifyUser:function(){i&&window._tkq.push(["identifyUser",i.ID,i.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}},c=a},5932(e,t,n){"use strict";n.d(t,{Ay:()=>p});var s=n(56439),r=n(93832);function o(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const i=o("JsonParseError"),a=o("JsonParseAfterRedirectError"),c=o("Api404Error"),l=o("Api404AfterRedirectError"),d=o("FetchNetworkError");const p=new function(e,t){let n=e,o=e,i={"X-WP-Nonce":t},a={credentials:"same-origin",headers:i},c={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",s=n.length?n.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){o=e},setApiNonce(e){i={"X-WP-Nonce":e},a={credentials:"same-origin",headers:i},c={method:"post",credentials:"same-origin",headers:Object.assign({},i,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,r)=>{const o={};return(0,s.jetpackConfigHas)("consumer_slug")&&(o.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(o.redirect_uri=t),r&&(o.from=r),g(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(o)}).then(u).then(h)},fetchAuthorizationUrl:e=>p((0,r.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),a).then(u).then(h),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,a).then(h),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,a).then(h),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,a).then(u).then(h),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,a).then(h),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,a).then(u).then(h),updateUserTrackingSettings:e=>g(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(u).then(h),disconnectSite:()=>g(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(u).then(h),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,a).then(u).then(h),unlinkUser:(e=!1,t={})=>{const s={linked:!1,force:!!e};return t.disconnectAllUsers&&(s["disconnect-all-users"]=!0),g(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify(s)}).then(u).then(h)},reconnect:()=>g(`${n}jetpack/v4/connection/reconnect`,c).then(u).then(h),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,a).then(u).then(h),fetchModules:()=>p(`${n}jetpack/v4/module/all`,a).then(u).then(h),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,a).then(u).then(h),activateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(u).then(h),deactivateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>g(`${n}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(u).then(h),updateSettings:e=>g(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(u).then(h),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,a).then(u).then(h),resetOptions:e=>g(`${n}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(u).then(h),activateVaultPress:()=>g(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(u).then(h),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,a).then(u).then(h),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),g(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(s)}).then(u).then(h)},activateAkismet:()=>g(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(u).then(h),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,a).then(u).then(h),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,a).then(u).then(h),checkAkismetKeyTyped:e=>g(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(u).then(h),getFeatureTypeStatus:e=>p(`${n}jetpack/v4/feature/${e}`,a).then(u).then(h),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),a).then(u).then(h).then(m),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,a).then(u).then(h),getPlans:()=>p(`${n}jetpack/v4/plans`,a).then(u).then(h),fetchSettings:()=>p(`${n}jetpack/v4/settings`,a).then(u).then(h),updateSetting:e=>g(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(u).then(h),fetchSiteData:()=>p(`${n}jetpack/v4/site`,a).then(u).then(h).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,a).then(u).then(h).then(e=>JSON.parse(e.data)),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,a).then(u).then(h).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,a).then(u).then(h).then(e=>JSON.parse(e.data)),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,a).then(u).then(h),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,a).then(u).then(h).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,a).then(u).then(h).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>g(`${n}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(u).then(h),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,a).then(u).then(h),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,a).then(u).then(h),verifySiteGoogle:e=>g(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(u).then(h),submitSurvey:e=>g(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(u).then(h),saveSetupQuestionnaire:e=>g(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(u).then(h),updateLicensingError:e=>g(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(u).then(h),updateLicenseKey:e=>g(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(u).then(h),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,a).then(u).then(h),getUserLicenses:()=>p(`${n}jetpack/v4/licensing/user/licenses`,a).then(u).then(h),updateLicensingActivationNoticeDismiss:e=>g(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(u).then(h),confirmIDCSafeMode:()=>g(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(u),startIDCFresh:e=>g(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(u).then(h),migrateIDC:()=>g(`${n}jetpack/v4/identity-crisis/migrate`,c).then(u),attachLicenses:e=>g(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(u).then(h),fetchSearchPlanInfo:()=>p(`${o}jetpack/v4/search/plan`,a).then(u).then(h),fetchSearchSettings:()=>p(`${o}jetpack/v4/search/settings`,a).then(u).then(h),updateSearchSettings:e=>g(`${o}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(u).then(h),fetchSearchStats:()=>p(`${o}jetpack/v4/search/stats`,a).then(u).then(h),fetchWafSettings:()=>p(`${n}jetpack/v4/waf`,a).then(u).then(h),updateWafSettings:e=>g(`${n}jetpack/v4/waf`,c,{body:JSON.stringify(e)}).then(u).then(h),fetchWordAdsSettings:()=>p(`${n}jetpack/v4/wordads/settings`,a).then(u).then(h),updateWordAdsSettings:e=>g(`${n}jetpack/v4/wordads/settings`,c,{body:JSON.stringify(e)}),fetchSearchPricing:()=>p(`${o}jetpack/v4/search/pricing`,a).then(u).then(h),fetchMigrationStatus:()=>p(`${n}jetpack/v4/migration/status`,a).then(u).then(h),fetchBackupUndoEvent:()=>p(`${n}jetpack/v4/site/backup/undo-event`,a).then(u).then(h),fetchBackupPreflightStatus:()=>p(`${n}jetpack/v4/site/backup/preflight`,a).then(u).then(h)};function p(e,t){return fetch(l(e),t)}function g(e,t,n){return fetch(e,Object.assign({},t,n)).catch(f)}function m(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,d)};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=>g(e)).then(t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n})}function h(e){return e.json().catch(t=>g(t,e.redirected,e.url))}function g(e,t,n){throw t?new a(n):new i}function f(){throw new d}},42947(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(5932),r=n(40077),o=n(27723),i=n(13022),a=n(51609),c=n(38250),l=n(67142),d=n(28509),p=n(75918),u=n(90969),h=n(10790);const __=o.__,g=({children:e,className:t,showHeader:n=!0,showFooter:g=!0,showBackground:f=!0,sandboxedDomain:m="",apiRoot:v="",apiNonce:w="",optionalMenuItems:b,header:y,title:k,subTitle:_,logo:x,actions:j,breadcrumbs:C,tabs:S,showBottomBorder:A=!0,unwrapped:E=!1})=>{(0,a.useEffect)(()=>{s.Ay.setApiRoot(v),s.Ay.setApiNonce(w)},[v,w]);const M=(0,i.A)(u.A["admin-page"],"jp-admin-page",t,{[u.A.background]:f,[u.A["without-bottom-border"]]:S||!A}),N=(0,a.useCallback)(async()=>{try{const e=await s.Ay.fetchSiteConnectionTest();window.alert(e.message)}catch(e){window.alert((0,o.sprintf)(/* translators: %s: an error message. */ | |
| 3 | +__("There was an error testing Jetpack. Error: %s","jetpack"),e.message))}},[]);return n&&(k||C)?(0,h.jsx)("div",{className:M,children:(0,h.jsxs)(r.A,{className:"jp-admin-page__page",visual:x||(0,h.jsx)(l.A,{showText:!1,height:20}),breadcrumbs:C,title:k,subTitle:_,actions:j,showSidebarToggle:!1,children:[S,E?e:(0,h.jsx)(p.A,{fluid:!0,horizontalSpacing:0,children:(0,h.jsx)(d.A,{children:e})}),g&&(0,h.jsx)(c.A,{menu:b})]})}):(0,h.jsxs)("div",{className:M,children:[n&&(0,h.jsx)(p.A,{horizontalSpacing:5,children:(0,h.jsxs)(d.A,{className:(0,i.A)(u.A["admin-page-header"],"jp-admin-page-header"),children:[y||(0,h.jsx)(l.A,{}),m&&(0,h.jsx)("code",{className:u.A["sandbox-domain-badge"],onClick:N,onKeyDown:N,role:"button",tabIndex:0,title:`Sandboxing via ${m}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,h.jsx)(p.A,{fluid:!0,horizontalSpacing:0,children:(0,h.jsx)(d.A,{children:e})}),g&&(0,h.jsx)(c.A,{menu:b})]})}},48907(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(27723),r=n(13022),o=n(10790);const __=s.__,i=({title:e=__("An Automattic Airline","jetpack"),height:t=7,className:n,...s})=>(0,o.jsxs)("svg",{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",n),...s,children:[(0,o.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"})]})},59244(e,t,n){"use strict";n.d(t,{D:()=>a});var s=n(56427),r=n(23510),o=n(63406),i=n(10790);function a({maxVisibleNotices:e=3}){const{getNotices:t,removeNotice:n}=(0,o.I)(),a=t().filter(({type:e})=>"snackbar"===e).slice(-e);return(0,i.jsx)(s.SnackbarList,{notices:a,className:r.A["global-notices"],onRemove:n})}},63406(e,t,n){"use strict";n.d(t,{I:()=>o});var s=n(47143),r=n(692);function o(){const e=(0,s.useDispatch)(r.store),t=(0,s.useSelect)(e=>e(r.store).getNotices(),[]);return{...e,createNotice:(t,n,s)=>e.createNotice(t,n,{type:"snackbar",...s}),createErrorNotice:(t,n)=>e.createErrorNotice(t,{type:"snackbar",...n}),createInfoNotice:(t,n)=>e.createInfoNotice(t,{type:"snackbar",...n}),createSuccessNotice:(t,n)=>e.createSuccessNotice(t,{type:"snackbar",...n}),createWarningNotice:(t,n)=>e.createWarningNotice(t,{type:"snackbar",...n}),getNotices:()=>t}}},38250(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(97999),r=n(27723),o=n(21220),i=n(39968),a=n(79654),c=n(13022),l=n(3924),d=n(48907),p=(n(65250),n(67142)),u=n(10790);const __=r.__,h=({className:e,menu:t,...n})=>{let r=[];if(!0===(0,s.getScriptData)()?.myJetpack?.isAvailable&&!(0,s.isWpcomPlatformSite)()&&!window?.JetpackNetworkAdminData){const e=(0,s.getScriptData)()?.myJetpack?.productsSection;r=[{label:e?.label??__("Products","jetpack"),href:(0,s.getAdminUrl)(`admin.php?page=my-jetpack#/${e?.slug??"products"}`)},{label:__("Help","jetpack"),href:(0,s.getAdminUrl)("admin.php?page=my-jetpack#/help")},...r]}return t&&(r=[...r,...t]),(0,u.jsxs)(o.B,{render:(0,u.jsx)("footer",{}),className:(0,c.A)("jetpack-footer",e),"aria-label":__("Jetpack","jetpack"),role:"contentinfo",direction:"row",justify:"flex-start",align:"center",wrap:"wrap",gap:"xl",...n,children:[(0,u.jsxs)(o.B,{className:"jetpack-footer__logo",direction:"row",gap:"sm",align:"center",children:[(0,u.jsx)(p.A,{showText:!1,height:16,"aria-hidden":"true"}),(0,u.jsx)(i.E,{variant:"body-md",children:"Jetpack"})]}),(0,u.jsx)(o.B,{render:(0,u.jsx)("ul",{}),direction:"row",gap:"lg",wrap:"wrap",children:r.map(e=>(0,u.jsx)("li",{children:(0,u.jsx)(i.E,{variant:"body-md",className:"jetpack-footer__menu-item",render:e.href?(0,u.jsx)(a.N,{href:e.href,title:e.title||"",onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0}):(0,u.jsx)(a.N,{render:(0,u.jsx)("span",{}),tabIndex:0,title:e.title||"",onClick:e.onClick||void 0,onKeyDown:e.onKeyDown||void 0,role:"button"}),children:e.label})},e.label))}),(0,u.jsx)("a",{className:"jetpack-footer__a8c",href:(0,l.A)("a8c-about"),rel:"noopener noreferrer",target:"_blank",children:(0,u.jsx)(d.A,{height:8})})]})}},67142(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(27723),r=n(13022),o=n(10790);const __=s.__,i=({logoColor:e="#069e08",showText:t=!0,className:n,height:s=32,title:i,...a})=>{const c=t?"0 0 118 32":"0 0 32 32",l=i??__("Jetpack Logo","jetpack");return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:c,className:(0,r.A)("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title",height:s,...a,role:"img",children:[(0,o.jsx)("title",{id:"jetpack-logo-title",children:l}),(0,o.jsx)("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&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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"}),(0,o.jsx)("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,n){"use strict";n.d(t,{A:()=>l});var s=n(13022),r=n(51609),o=n(56727);const i=Number(o.A.smcols),a=Number(o.A.mdcols),c=Number(o.A.lgcols),l=e=>{const{children:t,tagName:n="div",className:l}=e,d=Math.min(i,"number"==typeof e.sm?e.sm:i),p=Math.min(i,"object"==typeof e.sm?e.sm.start:0),u=Math.min(i,"object"==typeof e.sm?e.sm.end:0),h=Math.min(a,"number"==typeof e.md?e.md:a),g=Math.min(a,"object"==typeof e.md?e.md.start:0),f=Math.min(a,"object"==typeof e.md?e.md.end:0),m=Math.min(c,"number"==typeof e.lg?e.lg:c),v=Math.min(c,"object"==typeof e.lg?e.lg.start:0),w=Math.min(c,"object"==typeof e.lg?e.lg.end:0),b=(0,s.A)(l,{[o.A[`col-sm-${d}`]]:!(p&&u),[o.A[`col-sm-${p}-start`]]:p>0,[o.A[`col-sm-${u}-end`]]:u>0,[o.A[`col-md-${h}`]]:!(g&&f),[o.A[`col-md-${g}-start`]]:g>0,[o.A[`col-md-${f}-end`]]:f>0,[o.A[`col-lg-${m}`]]:!(v&&w),[o.A[`col-lg-${v}-start`]]:v>0,[o.A[`col-lg-${w}-end`]]:w>0});return(0,r.createElement)(n,{className:b},t)}},75918(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(13022),r=n(51609),o=n(64824);const i=({children:e,fluid:t=!1,tagName:n="div",className:i,horizontalGap:a=1,horizontalSpacing:c=1},l)=>{const d=(0,r.useMemo)(()=>{const e=`calc( var(--horizontal-spacing) * ${c} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${a} )`}},[a,c]),p=(0,s.A)(i,o.A.container,{[o.A.fluid]:t});return(0,r.createElement)(n,{className:p,style:d,ref:l},e)},a=(0,r.forwardRef)(i)},50723(e,t,n){"use strict";n.d(t,{Ay:()=>u});var s=n(51609),r=n(8706),o=n(10790);const i={"--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)"},a={"--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"},d={},p=(e,t,n)=>{const s={...i,...a,...c,...l};for(const t in s)e.style.setProperty(t,s[t]);n&&e.classList.add(r.A.global),t&&(d[t]={provided:!0,root:e})},u=({children:e=null,targetDom:t,id:n,withGlobalStyles:r=!0})=>{const i=(0,s.useRef)(),a=d?.[n]?.provided;return(0,s.useLayoutEffect)(()=>{if(!a)return t?p(t,n,r):void(i?.current&&p(i.current,n,r))},[t,i,a,n,r]),t?(0,o.jsx)(o.Fragment,{children:e}):(0,o.jsx)("div",{ref:i,children:e})}},3924(e,t,n){"use strict";function s(e,t={}){const n={};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}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),s&&(n.calypso_env=s);return"https://jetpack.com/redirect/?"+Object.keys(n).map(e=>e+"="+n[e]).join("&")}n.d(t,{A:()=>s})},56439(e,t,n){let s={};try{s=n(74277)}catch{globalThis.jetpackConfig?s=globalThis.jetpackConfig:(console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0})}const r=e=>Object.hasOwn(s,e);e.exports={jetpackConfigHas:r,jetpackConfigGet:e=>{if(!r(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]}}},63673(e,t,n){"use strict";n.d(t,{$:()=>r,M:()=>s});n(38443);const s="en",r="USD"},11452(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(63673),r=n(49980),o=n(91167);const i=function(){let e,t,n;const i=()=>{const t="undefined"!=typeof window?window.wp?.date?.getSettings?.()?.l10n?.locale:void 0,n="undefined"!=typeof window?window?.navigator?.language:void 0;return(e??(t||n)??s.M).split("_")[0]};return{setLocale:t=>{e=t},setGeoLocation:e=>{t=e},setCurrencyOverrides:e=>{n=e},formatNumber:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:s={}}={})=>{try{return(0,o.j)({browserSafeLocale:i(),decimals:t,forceLatin:n,numberFormatOptions:s}).format(e)}catch{return String(e)}},formatNumberCompact:(e,{decimals:t=0,forceLatin:n=!0,numberFormatOptions:s={}}={})=>{try{return(0,o.c)({browserSafeLocale:i(),decimals:t,forceLatin:n,numberFormatOptions:s}).format(e)}catch{return String(e)}},formatCurrency:(e,s,{stripZeros:o=!1,isSmallestUnit:a=!1,signForPositive:c=!1,forceLatin:l=!0}={})=>(0,r.u)({number:e,currency:s,browserSafeLocale:i(),stripZeros:o,isSmallestUnit:a,signForPositive:c,geoLocation:t,forceLatin:l,currencyOverrides:n}),getCurrencyObject:(e,s,{stripZeros:o=!1,isSmallestUnit:a=!1,signForPositive:c=!1,forceLatin:l=!0}={})=>(0,r.v)({number:e,currency:s,browserSafeLocale:i(),stripZeros:o,isSmallestUnit:a,signForPositive:c,geoLocation:t,forceLatin:l,currencyOverrides:n})}}},3328(e,t,n){"use strict";n.d(t,{J:()=>c});var s=n(10067),r=n.n(s),o=n(63673);const i=r()("number-formatters:get-cached-formatter"),a=new Map;function c({locale:e,fallbackLocale:t=o.M,options:n,retries:s=1}){const r=JSON.stringify([e,n]);try{return a.get(r)??a.set(r,new Intl.NumberFormat(e,n)).get(r)}catch(r){if(i(`Intl.NumberFormat was called with a non-existent locale "${e}"; falling back to ${t}`),s)return c({locale:t,options:n,retries:s-1});throw r}}},54268(e,t,n){"use strict";n.d(t,{ZV:()=>a});const s=(0,n(11452).A)(),{setLocale:r,setGeoLocation:o,setCurrencyOverrides:i,formatNumber:a,formatNumberCompact:c,formatCurrency:l,getCurrencyObject:d}=s},76673(e,t,n){"use strict";n.d(t,{a:()=>s});const s={AED:{symbol:"د.إ."},AFN:{symbol:"؋"},ALL:{symbol:"Lek"},AMD:{symbol:"֏"},ANG:{symbol:"ƒ"},AOA:{symbol:"Kz"},ARS:{symbol:"$"},AUD:{symbol:"A$"},AWG:{symbol:"ƒ"},AZN:{symbol:"₼"},BAM:{symbol:"КМ"},BBD:{symbol:"Bds$"},BDT:{symbol:"৳"},BGN:{symbol:"лв."},BHD:{symbol:"د.ب."},BIF:{symbol:"FBu"},BMD:{symbol:"$"},BND:{symbol:"$"},BOB:{symbol:"Bs"},BRL:{symbol:"R$"},BSD:{symbol:"$"},BTC:{symbol:"Ƀ"},BTN:{symbol:"Nu."},BWP:{symbol:"P"},BYR:{symbol:"р."},BZD:{symbol:"BZ$"},CAD:{symbol:"C$"},CDF:{symbol:"FC"},CHF:{symbol:"CHF"},CLP:{symbol:"$"},CNY:{symbol:"¥"},COP:{symbol:"$"},CRC:{symbol:"₡"},CUC:{symbol:"CUC"},CUP:{symbol:"$MN"},CVE:{symbol:"$"},CZK:{symbol:"Kč"},DJF:{symbol:"Fdj"},DKK:{symbol:"kr."},DOP:{symbol:"RD$"},DZD:{symbol:"د.ج."},EGP:{symbol:"ج.م."},ERN:{symbol:"Nfk"},ETB:{symbol:"ETB"},EUR:{symbol:"€"},FJD:{symbol:"FJ$"},FKP:{symbol:"£"},GBP:{symbol:"£"},GEL:{symbol:"Lari"},GHS:{symbol:"₵"},GIP:{symbol:"£"},GMD:{symbol:"D"},GNF:{symbol:"FG"},GTQ:{symbol:"Q"},GYD:{symbol:"G$"},HKD:{symbol:"HK$"},HNL:{symbol:"L."},HRK:{symbol:"kn"},HTG:{symbol:"G"},HUF:{symbol:"Ft"},IDR:{symbol:"Rp"},ILS:{symbol:"₪"},INR:{symbol:"₹"},IQD:{symbol:"د.ع."},IRR:{symbol:"﷼"},ISK:{symbol:"kr."},JMD:{symbol:"J$"},JOD:{symbol:"د.ا."},JPY:{symbol:"¥"},KES:{symbol:"S"},KGS:{symbol:"сом"},KHR:{symbol:"៛"},KMF:{symbol:"CF"},KPW:{symbol:"₩"},KRW:{symbol:"₩"},KWD:{symbol:"د.ك."},KYD:{symbol:"$"},KZT:{symbol:"₸"},LAK:{symbol:"₭"},LBP:{symbol:"ل.ل."},LKR:{symbol:"₨"},LRD:{symbol:"L$"},LSL:{symbol:"M"},LYD:{symbol:"د.ل."},MAD:{symbol:"د.م."},MDL:{symbol:"lei"},MGA:{symbol:"Ar"},MKD:{symbol:"ден."},MMK:{symbol:"K"},MNT:{symbol:"₮"},MOP:{symbol:"MOP$"},MRO:{symbol:"UM"},MTL:{symbol:"₤"},MUR:{symbol:"₨"},MVR:{symbol:"MVR"},MWK:{symbol:"MK"},MXN:{symbol:"MX$"},MYR:{symbol:"RM"},MZN:{symbol:"MT"},NAD:{symbol:"N$"},NGN:{symbol:"₦"},NIO:{symbol:"C$"},NOK:{symbol:"kr"},NPR:{symbol:"₨"},NZD:{symbol:"NZ$"},OMR:{symbol:"﷼"},PAB:{symbol:"B/."},PEN:{symbol:"S/."},PGK:{symbol:"K"},PHP:{symbol:"₱"},PKR:{symbol:"₨"},PLN:{symbol:"zł"},PYG:{symbol:"₲"},QAR:{symbol:"﷼"},RON:{symbol:"lei"},RSD:{symbol:"Дин."},RUB:{symbol:"₽"},RWF:{symbol:"RWF"},SAR:{symbol:"﷼"},SBD:{symbol:"S$"},SCR:{symbol:"₨"},SDD:{symbol:"LSd"},SDG:{symbol:"£"},SEK:{symbol:"kr"},SGD:{symbol:"S$"},SHP:{symbol:"£"},SLL:{symbol:"Le"},SOS:{symbol:"S"},SRD:{symbol:"$"},STD:{symbol:"Db"},SVC:{symbol:"₡"},SYP:{symbol:"£"},SZL:{symbol:"E"},THB:{symbol:"฿"},TJS:{symbol:"TJS"},TMT:{symbol:"m"},TND:{symbol:"د.ت."},TOP:{symbol:"T$"},TRY:{symbol:"TL"},TTD:{symbol:"TT$"},TVD:{symbol:"$T"},TWD:{symbol:"NT$"},TZS:{symbol:"TSh"},UAH:{symbol:"₴"},UGX:{symbol:"USh"},USD:{},UYU:{symbol:"$U"},UZS:{symbol:"сўм"},VEB:{symbol:"Bs."},VEF:{symbol:"Bs. F."},VND:{symbol:"₫"},VUV:{symbol:"VT"},WST:{symbol:"WS$"},XAF:{symbol:"F"},XCD:{symbol:"$"},XOF:{symbol:"F"},XPF:{symbol:"F"},YER:{symbol:"﷼"},ZAR:{symbol:"R"},ZMW:{symbol:"ZK"},WON:{symbol:"₩"}}},49980(e,t,n){"use strict";n.d(t,{u:()=>m,v:()=>v});var s=n(10067),r=n.n(s),o=n(63673),i=n(3328),a=n(76673);const c=r()("number-formatters:number-format-currency");function l(e,t,n){if("USD"===e&&t&&""!==t&&"US"!==t)return{symbol:"US$",...n?.USD};const s=a.a[e],r=n?.[e];return s||r?{...s,...r}:void 0}function d(e,t,n){return l(e,t,n)?e:(c(`getValidCurrency was called with a non-existent currency "${e}"; falling back to ${o.$}`),o.$)}function p({number:e,currency:t,browserSafeLocale:n,forceLatin:s=!0,stripZeros:r,signForPositive:o}){const a=`${n}${s?"-u-nu-latn":""}`,c={style:"currency",currency:t,...r&&Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0},...o&&{signDisplay:"exceptZero"}};return(0,i.J)({locale:a,options:c})}const u={IDR:2,HUF:2};function h(e,t,n){return p({number:0,currency:t,browserSafeLocale:e,forceLatin:n}).resolvedOptions().maximumFractionDigits}function g(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function f(e,t,n,s,r){if(isNaN(e))return c("formatCurrency was called with NaN"),0;if(s){Number.isInteger(e)||c("formatCurrency was called with isSmallestUnit and a float which will be rounded",e);const s=10**function(e,t,n){const s=n?.[e]?.decimal;return"number"==typeof s?s:u[e]??t}(n,t,r);return g(Math.round(e)/s,t)}return g(e,t)}const m=({number:e,browserSafeLocale:t,currency:n,stripZeros:s,isSmallestUnit:r,signForPositive:o,geoLocation:i,forceLatin:a,currencyOverrides:c})=>{const u=d(n,i,c),g=l(u,i,c),m=h(t,u,a);if(r&&void 0===m)throw new Error(`Could not determine currency precision for ${u} in ${t}`);const v=f(e,m??0,u,r,c);return p({number:v,currency:u,browserSafeLocale:t,forceLatin:a,stripZeros:s,signForPositive:o}).formatToParts(v).reduce((e,t)=>"currency"===t.type&&g?.symbol?e+g.symbol:e+t.value,"")},v=({number:e,browserSafeLocale:t,currency:n,stripZeros:s,isSmallestUnit:r,signForPositive:o,geoLocation:i,forceLatin:a,currencyOverrides:c})=>{const u=d(n,i,c),g=l(u,i,c),m=f(e,h(t,u,a)??0,u,r,c),v=p({number:m,currency:u,browserSafeLocale:t,forceLatin:a,stripZeros:s,signForPositive:o}).formatToParts(m);let w="",b="$",y="before",k=!1,_=!1,x="",j="";v.forEach(e=>{switch(e.type){case"currency":return b=g?.symbol??e.value,void(k&&(y="after"));case"group":case"integer":return x+=e.value,void(k=!0);case"decimal":case"fraction":return j+=e.value,k=!0,void(_=!0);case"minusSign":return void(w="-");case"plusSign":w="+"}});const C=!Number.isInteger(m)&&_;return{sign:w,symbol:b,symbolPosition:y,integer:x,fraction:j,hasNonZeroFraction:C,floatValue:m}}},91167(e,t,n){"use strict";n.d(t,{c:()=>o,j:()=>r});var s=n(3328);const r=({browserSafeLocale:e,decimals:t=0,forceLatin:n=!0,numberFormatOptions:r={}})=>{const o=`${e}${n?"-u-nu-latn":""}`,i={minimumFractionDigits:t,maximumFractionDigits:t,...r};return(0,s.J)({locale:o,options:i})},o=({numberFormatOptions:e={},...t})=>r({...t,numberFormatOptions:{notation:"compact",maximumFractionDigits:1,...e}})},85985(e,t,n){"use strict";n.d(t,{GE:()=>s.A});var s=n(54815);n(41409),n(82034),n(65595),n(53265),n(73489),n(89581),n(58406),n(76923),n(30335),n(87687),n(9061),n(25929),n(5765)},5765(e,t,n){"use strict";n(98490)},82308(e,t,n){"use strict";n.d(t,{k:()=>a});var s=n(47143),r=n(24416),o=n(51609),i=n(10790);const a=(0,o.forwardRef)(({supportLink:e,supportPostId:t,children:n,onClick:o,style:a},c)=>{const l=(0,s.useDispatch)("automattic/help-center"),d=l?.setShowSupportDoc;return d?(0,i.jsx)("a",{href:e,onClick:n=>{n.preventDefault(),o?.(),d(e,t)},style:a,ref:c,children:n}):(0,i.jsx)(r.N,{openInNewTab:!0,href:e,onClick:o,style:a,ref:c,children:n})})},30335(e,t,n){"use strict";n(86087)},54815(e,t,n){"use strict";n.d(t,{A:()=>r});var s=n(97999);function r(){return window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:(0,s.getScriptData)()?.site?.suffix??null}},73489(e,t,n){"use strict";var s=n(90372);n(86087);const{tracks:r}=s.A,{recordEvent:o}=r},89581(e,t,n){"use strict";n(47143),n(86087)},76923(e,t,n){"use strict";n(87687),n(47143),n(86087)},58406(e,t,n){"use strict";n(86087)},25929(e,t,n){"use strict";n(47143),n(52619),n(53265),n(89581)},9520(e,t,n){"use strict";n(97999);var s=n(10067),r=n.n(s);window,r()("shared-extension-utils:connection")},9061(e,t,n){"use strict";n(9520)},53265(e,t,n){"use strict";n(97999);var s=n(27723);n(93832),n(54815);const __=s.__;__("Upgrade your plan to use video covers","jetpack"),__("Upgrade your plan to upload audio","jetpack")},82034(e,t,n){"use strict";n(92279)},41409(e,t,n){"use strict";n(97999)},65595(e,t,n){"use strict";n(29491),n(13371),n(10790)},84705(e,t,n){"use strict";n.d(t,{d6:()=>s.d});var s=n(58992);n(91135)},91135(e,t,n){"use strict";n.d(t,{$:()=>r});var s=n(10790);const r=[{name:"amazon",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:"apple-podcasts",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M20.999 7.986a26 26 0 0 0-.008-.543 8 8 0 0 0-.104-1.182 4 4 0 0 0-.37-1.125 3.8 3.8 0 0 0-1.653-1.652c-.36-.183-.728-.3-1.124-.37a8 8 0 0 0-1.182-.104 25 25 0 0 0-.544-.008q-.322-.003-.645-.002H8.631l-.645.001q-.271.002-.543.008c-.395.011-.793.034-1.183.104a4 4 0 0 0-1.124.37 3.78 3.78 0 0 0-1.652 1.653c-.183.36-.3.728-.37 1.125-.07.39-.094.787-.105 1.181a25 25 0 0 0-.008.544L3 8.63v6.739l.001.645q.002.27.008.543c.011.394.034.792.104 1.182.071.396.188.764.37 1.124a3.78 3.78 0 0 0 1.653 1.652c.36.183.728.3 1.124.37.39.07.788.094 1.183.105q.27.006.543.008L8.63 21h6.739l.645-.001q.27-.001.543-.008a8 8 0 0 0 1.182-.104 4 4 0 0 0 1.124-.37 3.8 3.8 0 0 0 1.652-1.653c.184-.36.3-.728.371-1.124.07-.39.093-.788.104-1.182q.007-.271.008-.543l.001-.646V8.631zm-7.62 6.943a29 29 0 0 1-.231 1.861c-.076.488-.137.75-.193.939-.091.305-.43.572-.96.572-.531 0-.87-.267-.961-.572a7 7 0 0 1-.194-.939 29 29 0 0 1-.23-1.861c-.045-.53-.069-.86-.027-1.245a.76.76 0 0 1 .219-.473c.247-.261.68-.428 1.192-.428s.946.167 1.193.428a.76.76 0 0 1 .219.473c.041.385.018.716-.027 1.245m-3.53-1.279a.24.24 0 0 1 .076.188c-.012.215-.008.425.006.661a.076.076 0 0 1-.118.068 3.87 3.87 0 0 1-1.695-3.253 3.89 3.89 0 0 1 3.723-3.822 3.874 3.874 0 0 1 2.335 7.075.076.076 0 0 1-.118-.068c.014-.236.019-.446.007-.66a.24.24 0 0 1 .075-.189c.61-.572.991-1.385.991-2.285a3.14 3.14 0 0 0-3.26-3.133 3.145 3.145 0 0 0-3.012 3.049c-.025.933.361 1.779.99 2.369m3.492-2.758a1.347 1.347 0 1 1-2.693 0 1.347 1.347 0 0 1 2.693 0m.569 5.932a.077.077 0 0 1-.103-.084q.045-.298.084-.593a.2.2 0 0 1 .117-.156 5.05 5.05 0 0 0 3.033-4.626 5.05 5.05 0 0 0-5.088-5.046c-2.741.022-4.979 2.256-5.005 4.996A5.05 5.05 0 0 0 9.98 15.99a.2.2 0 0 1 .118.157q.039.295.083.593a.077.077 0 0 1-.102.084 5.795 5.795 0 0 1-3.872-5.533c.04-3.149 2.62-5.703 5.77-5.712a5.793 5.793 0 0 1 5.805 5.786c0 2.519-1.62 4.667-3.872 5.459"})})})},{name:"behance",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 743 743",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("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"}),(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("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"}),(0,s.jsx)("circle",{cx:"13.089",cy:"10.905",r:"1.383"}),(0,s.jsx)("circle",{cx:"16.349",cy:"7.644",r:"1.383"}),(0,s.jsx)("circle",{cx:"19.61",cy:"4.383",r:"1.383"})]})})},{name:"line",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",strokeMiterlimit:"10",viewBox:"0 0 130 130",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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-casts",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2.223a7.777 7.777 0 1 0 0 15.555v-1.945A5.833 5.833 0 1 1 17.833 12h1.944A7.777 7.777 0 0 0 12 4.223m0 3.11a4.667 4.667 0 0 0 0 9.334V14.97A2.97 2.97 0 1 1 14.97 12h1.697A4.667 4.667 0 0 0 12 7.333"})})})},{name:"polldaddy",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10H3.448a.6.6 0 0 1-.424-1.024L4.93 19.07A9.97 9.97 0 0 1 2 12C2 6.477 6.477 2 12 2m3.656 2.666c-.804 0-1.475.57-1.632 1.33a2.69 2.69 0 0 0-2.4 2.672v.008c-1.466.062-2.804.479-3.866 1.137a2.335 2.335 0 1 0-2.418 3.963c.077 2.711 3.031 4.892 6.665 4.892s6.59-2.183 6.664-4.896a2.336 2.336 0 0 0-1.001-4.445c-.535 0-1.028.18-1.422.484-1.072-.664-2.425-1.08-3.905-1.136v-.007c0-.992.737-1.815 1.693-1.95l.038.134a1.668 1.668 0 0 0 3.25-.52c0-.92-.746-1.666-1.666-1.666M12.005 14.99c.811 0 1.588.04 2.307.112.123.013.201.14.154.254a2.667 2.667 0 0 1-4.922 0 .185.185 0 0 1 .152-.254 23 23 0 0 1 2.309-.112m-3.086-3.344c.654 0 1.154.687 1.115 1.534-.039.846-.527 1.155-1.181 1.155-.655 0-1.228-.345-1.189-1.191.04-.847.601-1.497 1.255-1.498m6.172 0c.654 0 1.216.65 1.255 1.498.039.846-.535 1.191-1.189 1.191-.653 0-1.142-.308-1.181-1.155s.46-1.533 1.115-1.533"})})})},{name:"share",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:"sms",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:"M18.18 20.103V14.78h1.767v7.09H4v-7.09h1.767v5.323z"}),(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192 192",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsxs)("g",{children:[(0,s.jsx)("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"}),(0,s.jsx)("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"}),(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2M5.963 8.482c-.78 0-1.176.363-1.176 1.034 0 .67.418 1.055 1.176 1.055h.847v4.012c0 1.132.759 1.803 1.869 1.803.89 0 1.605-.44 2.143-1.45l1.199-2.244v1.903c0 1.12.725 1.79 1.846 1.79.88 0 1.528-.384 2.154-1.45l2.76-4.66c.604-1.023.175-1.792-1.154-1.793-.715 0-1.177.232-1.595 1.012l-1.901 3.572V9.89c0-.946-.451-1.407-1.286-1.408-.66 0-1.187.286-1.594 1.078l-1.792 3.506V9.923c0-1.011-.418-1.44-1.429-1.44z"})})})},{name:"wordpress",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M9 9h6v6H9zM3 9h6V3H3zm12 0h6V3h-6zm0 12h6v-6h-6zM3 21h6v-6H3z"})})})},{name:"youtube",svg:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)("g",{children:(0,s.jsx)("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,n){"use strict";n.d(t,{d:()=>c});var s=n(28120),r=n.n(s),o=n(51609),i=n(91135),a=n(10790);class c 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:n,className:s,...r}=this.props,c=["social-logo","social-logo-"+n,s].filter(Boolean).join(" "),l=i.$.find(e=>e.name===n);if(!l)return(0,a.jsx)("svg",{height:e,width:e,...r});return(0,o.cloneElement)(l.svg,{className:c,height:e,width:e,onClick:t,...r})}}},50513(e,t,n){"use strict";n.d(t,{_:()=>i});var s=n(51609),r=n(10790);function o(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 340 340",width:"36",height:"36","aria-hidden":"true",...e,children:(0,r.jsx)("path",{fill:"#DDD",d:"m169,.5a169,169 0 1,0 2,0zm0,86a76,76 0 1 1-2,0zM57,287q27-35 67-35h92q40,0 67,35a164,164 0 0,1-226,0"})})}function i({src:e,alt:t="",className:n,fallback:i=(0,r.jsx)(o,{className:n})}){const[a,c]=(0,s.useState)(""),l=(0,s.useCallback)(e=>{c(e.target.src)},[]);return!!e&&a!==e?(0,r.jsx)("img",{src:e,alt:t,onError:l,className:n}):i}},33853(e,t,n){"use strict";n.d(t,{Kq:()=>s,_I:()=>r,q8:()=>o});const s="article",r="landscape",o="portrait"},30759(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(76223),r=n(28469),o=n(68457),i=n(10790);const a=({text:e,url:t,forceUrlDisplay:n})=>{let a;return((0,s.ti)(e,"a")||n&&!!t&&!e.includes(t))&&(a=(0,i.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:t,rel:"nofollow noopener noreferrer",target:"_blank",children:t})),(0,i.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,i.jsx)("span",{children:(0,i.jsx)(r.MW,{text:e,children:e=>(0,s.x5)(e,{platform:"facebook",maxChars:o.zl})})}),a]})}},68457(e,t,n){"use strict";n.d(t,{B2:()=>i,t2:()=>o,zl:()=>r});var s=n(76223);const r=63206,o=e=>(0,s.RA)((0,s.f5)(110),(0,s.ZT)(110))((0,s.$J)(e))||"",i=e=>(0,s.RA)((0,s.f5)(200),(0,s.ZT)(200))((0,s.$J)(e))||""},87446(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(27723),r=n(51609),o=n(33853);const __=s.__,i=({mode:e})=>{const[t,n]=(0,r.useState)(e),[s,i]=(0,r.useState)(!0),a=(0,r.useCallback)(({target:e})=>{if(!t){const t=e;n(t.naturalWidth>t.naturalHeight?o._I:o.q8)}i(!1)},[t]),c=(0,r.useCallback)(()=>i(!1),[]);return[t,s,{alt:__("Facebook Preview Thumbnail","jetpack"),onLoad:a,onError:c}]}},66901(e,t,n){"use strict";n.d(t,{l:()=>g});var s=n(27723),r=n(33853),o=n(76223),i=n(2909),a=n(30759),c=n(68457),l=n(87446),d=n(44381),p=n(24795),u=n(98714),h=(n(85708),n(10790));const __=s.__,g=({url:e,title:t,description:n,image:s,imageFocalPoint:g,user:f,customText:m,type:v,imageMode:w,compactDescription:b})=>{const[y,k,_]=(0,l.A)({mode:w}),x=v===r.Kq,j="is-"+(x&&!s||y===r.q8?"portrait":"landscape");return(0,h.jsxs)("div",{className:"facebook-preview__post",children:[(0,h.jsx)(p.A,{user:f}),(0,h.jsxs)("div",{className:"facebook-preview__content",children:[m&&(0,h.jsx)(a.A,{text:m,url:e}),(0,h.jsxs)("div",{className:`facebook-preview__body ${j} ${s&&k?"is-loading":""}`,children:[(s||x)&&(0,h.jsx)("div",{className:`facebook-preview__image ${s?"":"is-empty"} ${j}`,children:s&&(0,h.jsx)(i.Q,{src:s,focalPoint:g,..._})}),(0,h.jsx)("div",{className:"facebook-preview__text",children:(0,h.jsxs)("div",{className:"facebook-preview__text-wrapper",children:[(0,h.jsx)("div",{className:"facebook-preview__url",children:(0,o.GA)(e)}),(0,h.jsx)("div",{className:"facebook-preview__title",children:(0,c.t2)(t)||(0,o.GA)(e)}),(0,h.jsxs)("div",{className:"facebook-preview__description "+(b?"is-compact":""),children:[n&&(0,c.B2)(n),x&&!n&& | |
| 119 | 4 | // translators: Default description for a Facebook post |
| 120 | -__("Visit the post for more.","jetpack")]}),(0,s.jsx)("div",{className:"facebook-preview__info",children:(0,s.jsx)(u.Z,{name:"info"})})]})})]})]}),(0,s.jsx)(l.Z,{})]})}},34245:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var s=n(30275),a=n(37580),i=n(52208),r=n(53251),o=n(3451),c=n(69133);n(59961);const l=e=>{let{url:t,user:n,customText:l,media:p,imageMode:u}=e;const[d]=(0,r.Z)({mode:u}),m="is-"+(d===a.Mf?"portrait":"landscape");return(0,s.jsxs)("div",{className:"facebook-preview__post",children:[(0,s.jsx)(c.Z,{user:n}),(0,s.jsxs)("div",{className:"facebook-preview__content",children:[l&&(0,s.jsx)(i.Z,{text:l,url:t,forceUrlDisplay:!0}),(0,s.jsx)("div",{className:"facebook-preview__body",children:p?(0,s.jsx)("div",{className:`facebook-preview__media ${m}`,children:p.map(((e,t)=>(0,s.jsx)("div",{className:`facebook-preview__media-item ${m}`,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.Z,{})]})}},3451:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(69094);n(1488);const __=a.__;t.Z=()=>(0,s.jsx)("ul",{className:"facebook-preview__post-actions",children:[{icon:"like", | |
| 5 | +__("Visit the post for more.","jetpack")]}),(0,h.jsx)("div",{className:"facebook-preview__info",children:(0,h.jsx)(u.A,{name:"info"})})]})})]})]}),(0,h.jsx)(d.A,{})]})}},44381(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(27723),r=n(98714),o=(n(12948),n(10790));const __=s.__,i=()=>(0,o.jsx)("ul",{className:"facebook-preview__post-actions",children:[{icon:"like", | |
| 121 | 6 | // translators: Facebook "Like" action |
| 122 | 7 | label:__("Like","jetpack")},{icon:"comment", |
| 123 | 8 | // translators: Facebook "Comment" action |
| 124 | 9 | label:__("Comment","jetpack")},{icon:"share", |
| 125 | 10 | // translators: Facebook "Share" action |
| 126 | -label:__("Share","jetpack")}].map((e=>{let{icon:t,label:n}=e;return(0,s.jsxs)("li",{children:[(0,s.jsx)(i.Z,{name:t}),(0,s.jsx)("span",{children:n})]},t)}))})},69133:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(99196),r=n(69094);n(56878);const __=a.__,_x=a._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";t.Z=e=>{let{user:t,timeElapsed:n,hideOptions:a}=e;const[c,l]=(0,i.useState)(t?.avatarUrl||o),p=(0,i.useCallback)((()=>{c!==o&&l(o)}),[c]);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:c,alt:"",onError:p}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"facebook-preview__post-header-name",children:t?.displayName|| | |
| 11 | +label:__("Share","jetpack")}].map(({icon:e,label:t})=>(0,o.jsxs)("li",{children:[(0,o.jsx)(r.A,{name:e}),(0,o.jsx)("span",{children:t})]},e))})},24795(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(27723),r=n(50513),o=n(98714),i=(n(97498),n(10790));const __=s.__,_x=s._x,a=({user:e,timeElapsed:t,hideOptions:n})=>(0,i.jsxs)("div",{className:"facebook-preview__post-header",children:[(0,i.jsxs)("div",{className:"facebook-preview__post-header-content",children:[(0,i.jsx)(r._,{className:"facebook-preview__post-header-avatar",src:e?.avatarUrl}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"facebook-preview__post-header-name",children:e?.displayName|| | |
| 127 | 12 | // translators: name of a fictional Facebook User |
| 128 | -__("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:n?__( | |
| 13 | +__("Anonymous User","jetpack")}),(0,i.jsxs)("div",{className:"facebook-preview__post-header-share",children:[(0,i.jsx)("span",{className:"facebook-preview__post-header-time",children:t?__( | |
| 129 | 14 | // translators: short version of `1 hour` |
| 130 | 15 | "1h","jetpack"):_x( |
| 131 | 16 | // translators: temporal indication of when a post was published |
| 132 | -"Just now","","jetpack")}),(0,s.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,s.jsx)(r.Z,{name:"public"})]})]})]}),!a&&(0,s.jsx)("div",{className:"facebook-preview__post-header-more"})]})}},69094:function(e,t,n){"use strict";var s=n(30275);n(40888);t.Z=e=>{let{name:t}=e;return(0,s.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${t}`})}},13477:function(e,t,n){"use strict";n.d(t,{S:function(){return p}});var s=n(30275),a=n(55609),i=n(65736),r=n(10263),o=n(7558),c=n(26767),l=n(34245);const __=i.__,p=e=>{let{headingLevel:t,hideLinkPreview:n,hidePostPreview:i,...p}=e;const u=!!p.media?.length,d=!!p.customImage;return(0,s.jsxs)("div",{className:"social-preview facebook-preview",children:[!i&&(0,s.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 133 | -// translators: refers to a social post on Facebook | |
| 134 | -__("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")}),u?(0,s.jsx)(l.C,{...p}):(0,s.jsx)(o.g,{...p})]}),!n&&(0,s.jsxs)("section",{className:"social-preview__section facebook-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 135 | -// translators: refers to a link to a Facebook post | |
| 136 | -__("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)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),d?(0,s.jsx)(c.F,{...p}):(0,s.jsx)(o.g,{...p,compactDescription:!0,customText:"",user:void 0})]})]})}},17915:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var s=n(30275),a=n(21987);n(73443);const i=160,r=e=>{const t=e.startsWith("https://")?"https://":"http://",n=t+e.replace(t,"").split("/").join(" › ");return(0,a.SL)((0,a.hs)(68),(0,a.KB)(68))(n)},o=(0,a.SL)((0,a.hs)(63),(0,a.I$)(23,73),(0,a.KB)(63)),c=(0,a.SL)((0,a.hs)(i),(0,a.I$)(80,170),(0,a.KB)(i)),l=e=>{let{description:t="",siteTitle:n,title:i="",url:l=""}=e;const p=(0,a.wy)(l);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=${p}`,alt:""}),(0,s.jsxs)("div",{className:"search-preview__site",children:[(0,s.jsx)("div",{className:"search-preview__site--title",children:n||p}),(0,s.jsx)("div",{className:"search-preview__url",children:r(l)})]})]}),(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(i)}),(0,s.jsx)("div",{className:"search-preview__description",children:c((0,a.ju)(t))})]})})}},21987:function(e,t,n){"use strict";n.d(t,{I$:function(){return c},KB:function(){return l},SL:function(){return p},YW:function(){return h},ge:function(){return d},hs:function(){return o},ju:function(){return u},u_:function(){return f},vB:function(){return m},wy:function(){return r}});var s=n(30275),a=n(69307),i=n(65736);const r=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),o=e=>t=>t.length<=e&&t,c=(e,t)=>n=>{const s=n.slice(0,t),a=s.lastIndexOf(" ");return a>e&&a<t&&s.slice(0,a).concat("…")},l=e=>t=>t.slice(0,e).concat("…"),p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.find((t=>!1!==t(e)))?.(e)},u=function(e){const t=new RegExp(`(<([^${(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).join("")}>]+)>)`,"gi");return e?e.replace(t,""):""},d=(e,t)=>new RegExp(`<${t}[^>]*>`,"gi").test(e),m=new Intl.DateTimeFormat("en-GB",{day:"numeric",month:"short"}).format,h=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format,g={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"};function f(e,t){const{platform:n,maxChars:r,maxLines:o,hyperlinkHashtags:c=!0,hyperlinkUrls:l="instagram"!==n}=t;let p=u(e);if(p=p.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),r&&p.length>r&&(p=p.substring(0,r)),o){const e=p.split("\n");e.length>o&&(p=e.slice(0,o).join("\n"))}const d={};if(l){(p.match(/(https?:\/\/\S+)/g)||[]).forEach(((e,t)=>{d[`Link${t}`]=(0,s.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank",children:e}),p=p.replace(e,`<Link${t} />`)}))}if(c&&g[n]){const e=p.matchAll(/(^|\s)#(\w+)/g),a=g[n];[...e].forEach(((e,n)=>{let[r,o,c]=e;const l=(0,i.sprintf)(a,c,t.hashtagDomain);d[`Hashtag${n}`]=(0,s.jsx)("a",{href:l,rel:"noopener noreferrer",target:"_blank",children:`#${c}`}),p=p.replace(r,`${o}<Hashtag${n} />`)}))}return p=p.replace(/\n/g,"<br />"),d.br=(0,s.jsx)("br",{}),(0,a.createInterpolateElement)(p,d)}},81683:function(e,t,n){"use strict";n.d(t,{A:function(){return s},P:function(){return a}});const s=120,a=2},68280:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var s=n(30275);const a=()=>(0,s.jsx)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("polygon",{fill:"none",points:"20 21 12 13.44 4 21 4 3 20 3 20 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})},68536:function(e,t,n){"use strict";n.d(t,{s:function(){return a}});var s=n(30275);const a=()=>(0,s.jsx)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{d:"M20.656 17.008a9.993 9.993 0 1 0-3.59 3.615L22 22Z",fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2"})})},32854:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var s=n(30275);const a=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 340 340",width:"340",height:"340",children:(0,s.jsx)("path",{fill:"#DDD",d:"m169,.5a169,169 0 1,0 2,0zm0,86a76,76 0 1 1-2,0zM57,287q27-35 67-35h92q40,0 67,35a164,164 0 0,1-226,0"})})},15082:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var s=n(30275);const a=()=>(0,s.jsx)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{d:"M16.792 3.904A4.989 4.989 0 0 1 21.5 9.122c0 3.072-2.652 4.959-5.197 7.222-2.512 2.243-3.865 3.469-4.303 3.752-.477-.309-2.143-1.823-4.303-3.752C5.141 14.072 2.5 12.167 2.5 9.122a4.989 4.989 0 0 1 4.708-5.218 4.21 4.21 0 0 1 3.675 1.941c.84 1.175.98 1.763 1.12 1.763s.278-.588 1.11-1.766a4.17 4.17 0 0 1 3.679-1.938m0-2a6.04 6.04 0 0 0-4.797 2.127 6.052 6.052 0 0 0-4.787-2.127A6.985 6.985 0 0 0 .5 9.122c0 3.61 2.55 5.827 5.015 7.97.283.246.569.494.853.747l1.027.918a44.998 44.998 0 0 0 3.518 3.018 2 2 0 0 0 2.174 0 45.263 45.263 0 0 0 3.626-3.115l.922-.824c.293-.26.59-.519.885-.774 2.334-2.025 4.98-4.32 4.98-7.94a6.985 6.985 0 0 0-6.708-7.218Z"})})},59215:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var s=n(30275);const a=()=>(0,s.jsxs)("svg",{width:"17",height:"5",viewBox:"0 0 17 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M2.11865 3.5C2.67094 3.5 3.11865 3.05228 3.11865 2.5C3.11865 1.94772 2.67094 1.5 2.11865 1.5C1.56637 1.5 1.11865 1.94772 1.11865 2.5C1.11865 3.05228 1.56637 3.5 2.11865 3.5Z",fill:"black",stroke:"black",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M8.55933 3.5C9.11161 3.5 9.55933 3.05228 9.55933 2.5C9.55933 1.94772 9.11161 1.5 8.55933 1.5C8.00704 1.5 7.55933 1.94772 7.55933 2.5C7.55933 3.05228 8.00704 3.5 8.55933 3.5Z",fill:"black",stroke:"black",strokeWidth:"2"}),(0,s.jsx)("path",{d:"M15 3.5C15.5523 3.5 16 3.05228 16 2.5C16 1.94772 15.5523 1.5 15 1.5C14.4477 1.5 14 1.94772 14 2.5C14 3.05228 14.4477 3.5 15 3.5Z",fill:"black",stroke:"black",strokeWidth:"2"})]})},46353:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var s=n(30275);const a=()=>(0,s.jsxs)("svg",{color:"rgb(38, 38, 38)",fill:"rgb(38, 38, 38)",height:"24",role:"img",viewBox:"0 0 24 24",width:"24",children:[(0,s.jsx)("line",{fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2",x1:"22",x2:"9.218",y1:"3",y2:"10.083"}),(0,s.jsx)("polygon",{fill:"none",points:"11.698 20.334 22 3.001 2 3.001 9.218 10.084 11.698 20.334",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"2"})]})},18131:function(e,t,n){"use strict";n.d(t,{R:function(){return m}});var s=n(30275),a=n(65736),i=n(21987),r=n(81683),o=n(68280),c=n(68536),l=n(32854),p=n(15082),u=n(59215),d=n(46353);n(78296);const __=a.__;function m(e){let{image:t,media:n,name:a,profileImage:m,caption:h}=e;const g=a||"username",f=n?.[0];return(0,s.jsx)("div",{className:"instagram-preview__wrapper",children:(0,s.jsxs)("section",{className:"instagram-preview__container",children:[(0,s.jsxs)("div",{className:"instagram-preview__header",children:[(0,s.jsx)("div",{className:"instagram-preview__header--avatar",children:m?(0,s.jsx)("img",{src:m,alt:""}):(0,s.jsx)(l.q,{})}),(0,s.jsxs)("div",{className:"instagram-preview__header--profile",children:[(0,s.jsx)("div",{className:"instagram-preview__header--profile-name",children:g}),(0,s.jsx)("div",{className:"instagram-preview__header--profile-menu",children:(0,s.jsx)(u.v,{})})]})]}),(0,s.jsx)("div",{className:"instagram-preview__media",children:f?(0,s.jsx)("div",{className:"instagram-preview__media-item",children:f.type.startsWith("video/")?(0,s.jsx)("video",{controls:!1,className:"instagram-preview__media--video",children:(0,s.jsx)("source",{src:f.url,type:f.type})}):(0,s.jsx)("img",{className:"instagram-preview__media--image",src:t,alt:""})}):(0,s.jsx)("img",{className:"instagram-preview__media--image",src:t,alt:""})}),(0,s.jsxs)("div",{className:"instagram-preview__content",children:[(0,s.jsxs)("section",{className:"instagram-preview__content--actions",children:[(0,s.jsxs)("div",{className:"instagram-preview__content--actions-primary",children:[(0,s.jsx)(p.X,{}),(0,s.jsx)(c.s,{}),(0,s.jsx)(d.m,{})]}),(0,s.jsx)("div",{className:"instagram-preview__content--actions-secondary",children:(0,s.jsx)(o.r,{})})]}),(0,s.jsxs)("div",{className:"instagram-preview__content--body",children:[(0,s.jsx)("div",{className:"instagram-preview__content--name",children:g})," ",h?(0,s.jsx)("div",{className:"instagram-preview__content--text",children:(0,i.u_)(h,{platform:"instagram",maxChars:r.A,maxLines:r.P})}):null]}),(0,s.jsx)("div",{className:"instagram-preview__content--footer",children:(0,s.jsx)("span",{children:__("View one comment","jetpack")})})]})]})})}},4049:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var s=n(30275),a=n(65736),i=n(10263),r=n(18131);const __=a.__,o=e=>{let{headingLevel:t,hidePostPreview:n,...a}=e;return(0,s.jsx)("div",{className:"social-preview instagram-preview",children:!n&&(0,s.jsxs)("section",{className:"social-preview__section instagram-preview__section",children:[(0,s.jsx)(i.Z,{level:t,children: | |
| 137 | -// translators: refers to a social post on Instagram | |
| 138 | -__("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Instagram:","jetpack")}),(0,s.jsx)(r.R,{...a})]})})}},24687:function(e,t,n){"use strict";n.d(t,{A:function(){return s},P:function(){return a}});const s=212,a=3},52493:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var s=n(30275);const a=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",width:"128",height:"128",children:[(0,s.jsx)("path",{fill:"#e7e2dc",d:"M0 0h128v128H0z"}),(0,s.jsx)("path",{d:"M88.41 84.67a32 32 0 10-48.82 0 66.13 66.13 0 0148.82 0z",fill:"#788fa5"}),(0,s.jsx)("path",{d:"M88.41 84.67a32 32 0 01-48.82 0A66.79 66.79 0 000 128h128a66.79 66.79 0 00-39.59-43.33z",fill:"#9db3c8"}),(0,s.jsx)("path",{d:"M64 96a31.93 31.93 0 0024.41-11.33 66.13 66.13 0 00-48.82 0A31.93 31.93 0 0064 96z",fill:"#56687a"})]})},23736:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var s=n(30275),a=n(98170);function i(e){return(0,s.jsx)(a.w,{name:"",profileImage:"",...e,description:"",media:void 0})}},98170:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var s=n(30275),a=n(65736),i=n(21987),r=n(24687),o=n(52493);n(44046);const __=a.__;function c(e){let{articleReadTime:t=5,image:n,jobTitle:c,name:l,profileImage:p,description:u,media:d,title:m,url:h}=e;const g=!!d?.length;return(0,s.jsx)("div",{className:"linkedin-preview__wrapper",children:(0,s.jsxs)("section",{className:"linkedin-preview__container "+(g?"has-media":""),children:[(0,s.jsxs)("div",{className:"linkedin-preview__header",children:[(0,s.jsx)("div",{className:"linkedin-preview__header--avatar",children:p?(0,s.jsx)("img",{src:p,alt:""}):(0,s.jsx)(o.q,{})}),(0,s.jsxs)("div",{className:"linkedin-preview__header--profile",children:[(0,s.jsxs)("div",{className:"linkedin-preview__header--profile-info",children:[(0,s.jsx)("div",{className:"linkedin-preview__header--profile-name",children:l||__("Account Name","jetpack")}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("div",{className:"linkedin-preview__header--profile-actor",children: | |
| 139 | -// translators: refers to the actor level of the post being shared, e.g. "1st", "2nd", "3rd", etc. | |
| 140 | -__("1st","jetpack")})]}),c?(0,s.jsx)("div",{className:"linkedin-preview__header--profile-title",children:c}):null,(0,s.jsxs)("div",{className:"linkedin-preview__header--profile-meta",children:[(0,s.jsx)("span",{children: | |
| 141 | -// translators: refers to the time since the post was published, e.g. "1h" | |
| 142 | -__("1h","jetpack")}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",focusable:"false",children:(0,s.jsx)("path",{d:"M8 1a7 7 0 107 7 7 7 0 00-7-7zM3 8a5 5 0 011-3l.55.55A1.5 1.5 0 015 6.62v1.07a.75.75 0 00.22.53l.56.56a.75.75 0 00.53.22H7v.69a.75.75 0 00.22.53l.56.56a.75.75 0 01.22.53V13a5 5 0 01-5-5zm6.24 4.83l2-2.46a.75.75 0 00.09-.8l-.58-1.16A.76.76 0 0010 8H7v-.19a.51.51 0 01.28-.45l.38-.19a.74.74 0 01.68 0L9 7.5l.38-.7a1 1 0 00.12-.48v-.85a.78.78 0 01.21-.53l1.07-1.09a5 5 0 01-1.54 9z"})})]})]})]}),(0,s.jsxs)("div",{className:"linkedin-preview__content",children:[u?(0,s.jsx)("div",{className:"linkedin-preview__caption",children:(0,i.u_)(u,{platform:"linkedin",maxChars:r.A,maxLines:r.P})}):null,g?(0,s.jsx)("div",{className:"linkedin-preview__media",children:d.map(((e,t)=>(0,s.jsx)("div",{className:"linkedin-preview__media-item",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})},`linkedin-preview__media-item-${t}`)))}):(0,s.jsxs)("article",{children:[n?(0,s.jsx)("img",{className:"linkedin-preview__image",src:n,alt:""}):null,h?(0,s.jsxs)("div",{className:"linkedin-preview__description",children:[(0,s.jsx)("h2",{className:"linkedin-preview__description--title",children:m}),(0,s.jsxs)("div",{className:"linkedin-preview__description--meta",children:[(0,s.jsx)("span",{className:"linkedin-preview__description--url",children:(0,i.wy)(h)}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("span",{children:(0,a.sprintf)( | |
| 143 | -// translators: %d is the number of minutes it takes to read the article | |
| 144 | -__("%d min read","jetpack"),t)})]})]}):null]})]})]})})}},93453:function(e,t,n){"use strict";n.d(t,{S:function(){return l}});var s=n(30275),a=n(55609),i=n(65736),r=n(10263),o=n(23736),c=n(98170);const __=i.__,l=e=>{let{headingLevel:t,hideLinkPreview:n,hidePostPreview:i,...l}=e;return(0,s.jsxs)("div",{className:"social-preview linkedin-preview",children:[!i&&(0,s.jsxs)("section",{className:"social-preview__section linkedin-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 145 | -// translators: refers to a social post on LinkedIn | |
| 146 | -__("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on LinkedIn:","jetpack")}),(0,s.jsx)(c.w,{...l})]}),!n&&(0,s.jsxs)("section",{className:"social-preview__section linkedin-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 147 | -// translators: refers to a link to a LinkedIn post | |
| 148 | -__("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 LinkedIn.","jetpack")," ",(0,s.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,s.jsx)(o.u,{...l,name:"",profileImage:""})]})]})}},64011:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});const s="mastodon.social"},82335:function(e,t,n){"use strict";n.d(t,{Eu:function(){return o},WV:function(){return c},eP:function(){return l},tZ:function(){return r}});var s=n(21987),a=n(64011);const i=/^@([^@]*)@([^@]*)$/i,r=e=>(0,s.SL)((0,s.hs)(200),(0,s.KB)(200))((0,s.ju)(e))||"",o=(e,t)=>{const{instance:n,offset:a}=t;return(0,s.u_)(e,{platform:"mastodon",maxChars:470-a,hashtagDomain:n})},c=e=>(0,s.SL)((0,s.hs)(30),(0,s.KB)(30))((0,s.ju)(e))||"",l=e=>{const t=e.match(i);return{username:t?.[1]||"",instance:t?.[2]||a.q}}},16534:function(e,t,n){"use strict";n.d(t,{W:function(){return c}});var s=n(30275),a=n(93397),i=n(3440),r=n(37951),o=n(52664);n(46154);const c=e=>{const{user:t}=e;return(0,s.jsxs)("div",{className:"mastodon-preview__post",children:[(0,s.jsx)(o.Z,{user:t}),(0,s.jsx)(i.Z,{...e}),(0,s.jsx)(r.Z,{...e}),(0,s.jsx)(a.Z,{})]})}},67686:function(e,t,n){"use strict";n.d(t,{h:function(){return c}});var s=n(30275),a=n(65736),i=n(93397),r=n(3440),o=n(52664);n(46154);const __=a.__,c=e=>{const{user:t,customImage:n,image:a}=e,c=n||a;return(0,s.jsxs)("div",{className:"mastodon-preview__post",children:[(0,s.jsx)(o.Z,{user:t}),(0,s.jsx)(r.Z,{...e,children:c&&(0,s.jsx)("img",{className:"mastodon-preview__img",src:c,alt:__("Mastodon preview thumbnail","jetpack")})}),(0,s.jsx)(i.Z,{})]})}},93397:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(34525);n(85043);const __=a.__;t.Z=()=>(0,s.jsx)("div",{className:"mastodon-preview__post-actions",children:(0,s.jsx)("ul",{children:[{icon:"reply", | |
| 149 | -// translators: "Reply" action on a Mastodon post | |
| 150 | -label:__("Reply","jetpack"),text:0},{icon:"boost", | |
| 151 | -// translators: "Boost" action on a Mastodon post | |
| 152 | -label:__("Boost","jetpack")},{icon:"like", | |
| 153 | -// translators: "Favourite" action on a Mastodon post | |
| 154 | -label:__("Favourite","jetpack")},{icon:"bookmark", | |
| 155 | -// translators: "Bookmark" action on a Mastodon post | |
| 156 | -label:__("Bookmark","jetpack")},{icon:"more", | |
| 157 | -// translators: "More" menu on a Mastodon post | |
| 158 | -label:__("More","jetpack")}].map((e=>{let{icon:t,label:n,text:a}=e;return(0,s.jsxs)("li",{"aria-label":n,children:[(0,s.jsx)("span",{className:"mastodon-preview__post-icon-wrapper",children:(0,s.jsx)(i.Z,{name:t})}),("number"==typeof a||a)&&(0,s.jsx)("span",{className:"mastodon-preview__post-icon-text",children:a})]},t)}))})})},3440:function(e,t,n){"use strict";var s=n(30275),a=n(21987),i=n(82335);n(15184);t.Z=e=>{const{title:t,description:n,customText:r,url:o,user:c,children:l}=e,p={instance:c?.address?(0,i.eP)(c.address).instance:"",offset:0};let u;if(r)u=(0,s.jsx)("p",{children:(0,i.Eu)(r,p)});else if(n){const e=(0,a.ju)(t);p.offset=e.length,u=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:e}),(0,s.jsx)("p",{children:(0,i.Eu)(n,p)})]})}else u=(0,s.jsx)("p",{children:(0,i.Eu)(t,p)});return(0,s.jsxs)("div",{className:"mastodon-preview__body",children:[u,(0,s.jsx)("a",{href:o,target:"_blank",rel:"noreferrer noopener",children:(0,i.WV)(o.replace(/^https?:\/\//,""))}),l]})}},37951:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(21987),r=n(82335);n(9170);const __=a.__;t.Z=e=>{let{siteName:t,title:n,url:a,image:o,customImage:c}=e;return(0,s.jsxs)("div",{className:"mastodon-preview__card",children:[(0,s.jsx)("div",{className:"mastodon-preview__card-img",children:(o||c)&&(0,s.jsx)("img",{src:o||c,alt:__("Mastodon preview thumbnail","jetpack")})}),(0,s.jsxs)("div",{className:"mastodon-preview__card-text",children:[(0,s.jsx)("span",{className:"mastodon-preview__card-title",children:(0,r.tZ)(n)}),(0,s.jsx)("span",{className:"mastodon-preview__card-site",children:t||(0,i.wy)(a)})]})]})}},52664:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(64011),r=n(34525);n(32295);const __=a.__;t.Z=e=>{let{user:t}=e;const{displayName:n,address:a,avatarUrl:o}=t||{};return(0,s.jsxs)("div",{className:"mastodon-preview__post-header",children:[(0,s.jsxs)("div",{className:"mastodon-preview__post-header-user",children:[o&&(0,s.jsx)("img",{className:"mastodon-preview__post-avatar",src:o,alt:""}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mastodon-preview__post-header-displayname",children:n|| | |
| 159 | -// translators: username of a fictional Mastodon User | |
| 160 | -__("anonymous-user","jetpack")}),(0,s.jsx)("div",{className:"mastodon-preview__post-header-username",children:a?.replace(`@${i.q}`,"")})]})]}),(0,s.jsxs)("div",{className:"mastodon-preview__post-header-audience",children:[(0,s.jsx)(r.Z,{name:"globe"}), | |
| 161 | -// translators: time elapsed since post was published (1 hour) | |
| 162 | -__("1h","jetpack")]})]})}},34525:function(e,t,n){"use strict";var s=n(30275);n(61154);t.Z=e=>{let{name:t}=e;return(0,s.jsx)("i",{className:`mastodon-preview__post-icon mastodon-preview__post-icon-${t}`})}},60312:function(e,t,n){"use strict";n.d(t,{I:function(){return l}});var s=n(30275),a=n(55609),i=n(65736),r=n(10263),o=n(16534),c=n(67686);const __=i.__,l=e=>{let{headingLevel:t,hidePostPreview:n,hideLinkPreview:i,...l}=e;return(0,s.jsxs)("div",{className:"social-preview mastodon-preview",children:[!n&&(0,s.jsxs)("section",{className:"social-preview__section mastodon-preview__section",children:[(0,s.jsx)(r.O,{level:t,children: | |
| 163 | -// translators: refers to a social post on Mastodon | |
| 164 | -__("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Mastodon:","jetpack")}),(0,s.jsx)(c.h,{...l})]}),!i&&(0,s.jsxs)("section",{className:"social-preview__section mastodon-preview__section",children:[(0,s.jsx)(r.O,{level:t,children: | |
| 165 | -// translators: refers to a link to a Mastodon post | |
| 166 | -__("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 Mastodon.","jetpack")," ",(0,s.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,s.jsx)(o.W,{...l,user:void 0})]})]})}},41678:function(e,t,n){"use strict";n.d(t,{A:function(){return s},P:function(){return a}});const s=160,a=2},38664:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var s=n(30275),a=n(65736),i=n(45551),r=n(7254),o=n(5812);const __=a.__;function c(){return(0,s.jsxs)("div",{className:"nextdoor-preview__footer--actions",children:[(0,s.jsxs)("div",{className:"nextdoor-preview__footer--actions-item",children:[(0,s.jsx)(r.l,{}),(0,s.jsx)("span",{children:__("Like","jetpack")})]}),(0,s.jsxs)("div",{className:"nextdoor-preview__footer--actions-item",children:[(0,s.jsx)(i.q,{}),(0,s.jsx)("span",{children:__("Comment","jetpack")})]}),(0,s.jsxs)("div",{className:"nextdoor-preview__footer--actions-item",children:[(0,s.jsx)(o.a,{}),(0,s.jsx)("span",{children:__("Share","jetpack")})]})]})}},98248:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var s=n(30275);function a(){return(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"#dfe1e4",fillRule:"evenodd",d:"M7.127 13.876a.732.732 0 1 0 1.035 1.035l4.75-4.749a.732.732 0 0 0 0-1.035L8.123 4.34A.732.732 0 0 0 7.09 5.375l4.27 4.27-4.232 4.23Z"})})}},45551:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var s=n(30275);function a(){return(0,s.jsx)("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 10.031C2 5.596 5.574 2 10 2h4c4.427 0 8 3.596 8 8.031 0 4.435-3.573 8.031-8 8.031h-1.52a17.033 17.033 0 0 1-1.377 1.467c-.991.938-2.456 2.079-4.086 2.437a1.403 1.403 0 0 1-1.458-.565 1.55 1.55 0 0 1-.195-1.394c.28-.823.395-1.734.434-2.464.014-.257.018-.485.018-.672A8.017 8.017 0 0 1 2 10.031Zm5.798 6.178a7.02 7.02 0 0 1 .016.418c.005.252.004.606-.019 1.023-.03.573-.103 1.285-.266 2.024.775-.377 1.54-.974 2.202-1.598a15.066 15.066 0 0 0 1.448-1.586l.017-.022.003-.004a1 1 0 0 1 .801-.402h2c3.314 0 6-2.692 6-6.03C20 6.691 17.314 4 14 4h-4c-3.314 0-6 2.692-6 6.031 0 2.336 1.32 4.36 3.258 5.359.308.159.515.474.54.82Z",clipRule:"evenodd"})})}},63209:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var s=n(30275);const a=()=>(0,s.jsx)("div",{className:"nextdoor-preview__default-avatar",children:"A"})},75742:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var s=n(30275);function a(){return(0,s.jsx)("div",{className:"nextdoor-preview__default-image",children:(0,s.jsxs)("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",color:"#055c00",children:[(0,s.jsx)("path",{fill:"currentColor",d:"M13.207 5.207c1.51-1.51 4.076-1.51 5.586 0 1.51 1.51 1.51 4.076 0 5.586l-2.1 2.1c-1.51 1.51-4.077 1.51-5.586 0a1 1 0 1 0-1.414 1.414c2.29 2.29 6.123 2.29 8.414 0l2.1-2.1c2.29-2.29 2.29-6.124 0-8.414s-6.124-2.29-8.414 0l-.7.7a1 1 0 0 0 1.414 1.414l.7-.7Z"}),(0,s.jsx)("path",{fill:"currentColor",d:"M7.307 11.107c1.51-1.51 4.076-1.51 5.586 0a1 1 0 0 0 1.414-1.414c-2.29-2.29-6.124-2.29-8.414 0l-2.1 2.1c-2.29 2.29-2.29 6.123 0 8.414 2.29 2.29 6.124 2.29 8.414 0l.7-.7a1 1 0 0 0-1.414-1.414l-.7.7c-1.51 1.51-4.076 1.51-5.586 0-1.51-1.51-1.51-4.076 0-5.586l2.1-2.1Z"})]})})}},91127:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var s=n(30275);function a(){return(0,s.jsx)("svg",{width:"14",height:"14",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm9.495-7.643c.286-.335.46-.357.505-.357.045 0 .219.022.505.357.282.33.581.868.852 1.619.464 1.283.79 3.034.872 5.024H9.771c.082-1.99.408-3.741.871-5.024.272-.751.571-1.289.854-1.62ZM7.77 11c.084-2.181.439-4.171.992-5.704.093-.255.192-.502.298-.738A8.009 8.009 0 0 0 4.062 11h3.707Zm-3.707 2h3.707c.084 2.181.439 4.171.992 5.704.093.255.192.502.298.738A8.009 8.009 0 0 1 4.062 13Zm15.876-2a8.009 8.009 0 0 0-4.997-6.442c.106.236.205.483.298.738.553 1.533.908 3.523.992 5.704h3.707Zm-3.707 2h3.707a8.009 8.009 0 0 1-4.997 6.442c.106-.236.205-.483.298-.738.553-1.533.908-3.523.992-5.704Zm-2.002 0c-.082 1.99-.408 3.741-.871 5.024-.272.751-.571 1.289-.854 1.62-.285.334-.46.356-.504.356-.045 0-.219-.022-.505-.357-.282-.33-.581-.868-.852-1.619-.464-1.283-.79-3.034-.872-5.024h4.458Z",clipRule:"evenodd"})})}},7254:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var s=n(30275);function a(){return(0,s.jsx)("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.275 8.752a1.5 1.5 0 0 1-2.55 0C9.75 7.18 8.719 5.617 6.565 6.074 5.248 6.352 4 7.433 4 9.644c0 2.153 1.348 4.592 4.259 7.236A28.475 28.475 0 0 0 12 19.74a28.475 28.475 0 0 0 3.741-2.86C18.651 14.236 20 11.797 20 9.643c0-2.21-1.25-3.29-2.564-3.57-2.155-.456-3.187 1.106-4.16 2.68Zm-2.581-3.48C7.634 2.58 2 4.217 2 9.643c0 2.996 1.85 5.934 4.914 8.717 1.478 1.343 3.1 2.585 4.839 3.575a.5.5 0 0 0 .494 0c1.739-.99 3.361-2.232 4.84-3.575C20.148 15.577 22 12.64 22 9.643c0-5.426-5.634-7.062-8.694-4.371A5.287 5.287 0 0 0 12 7.04a5.287 5.287 0 0 0-1.306-1.77Z",clipRule:"evenodd"})})}},5812:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var s=n(30275);function a(){return(0,s.jsx)("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,s.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.617 2.076a1 1 0 0 1 1.09.217l9 9a1 1 0 0 1 0 1.414l-9 9A1 1 0 0 1 11 21v-4.436c-2.849.366-5.261 2.271-6.384 4.837a1 1 0 0 1-1.856-.06C2.338 20.182 2 18.86 2 17.5a9.959 9.959 0 0 1 9-9.951V3a1 1 0 0 1 .617-.924ZM13 5.414V8.5a1 1 0 0 1-1 1c-4.448 0-8 3.552-8 8 0 .31.023.625.066.94C5.905 16.067 8.776 14.5 12 14.5a1 1 0 0 1 1 1v3.086L19.586 12 13 5.414Z",clipRule:"evenodd"})})}},33684:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var s=n(30275),a=n(87591);function i(e){return(0,s.jsx)(a.M,{name:"",profileImage:"",...e,description:"",media:void 0})}},87591:function(e,t,n){"use strict";n.d(t,{M:function(){return h}});var s=n(30275),a=n(65736),i=n(65235),r=n.n(i),o=n(21987),c=n(41678),l=n(38664),p=n(98248),u=n(63209),d=n(75742),m=n(91127);n(18145);const __=a.__;function h(e){let{image:t,name:n,profileImage:a,description:i,neighborhood:h,media:g,title:f,url:k}=e;const v=!!g?.length;return(0,s.jsx)("div",{className:"nextdoor-preview__wrapper",children:(0,s.jsx)("section",{className:"nextdoor-preview__container "+(v?"has-media":""),children:(0,s.jsxs)("div",{className:"nextdoor-preview__content",children:[(0,s.jsxs)("div",{className:"nextdoor-preview__header",children:[(0,s.jsx)("div",{className:"nextdoor-preview__header--avatar",children:a?(0,s.jsx)("img",{src:a,alt:""}):(0,s.jsx)(u.q,{})}),(0,s.jsxs)("div",{className:"nextdoor-preview__header--details",children:[(0,s.jsx)("div",{className:"nextdoor-preview__header--name",children:n||__("Account Name","jetpack")}),(0,s.jsxs)("div",{className:"nextdoor-preview__header--meta",children:[(0,s.jsx)("span",{children:h||__("Neighborhood","jetpack")}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)("span",{children:(0,o.vB)(Date.now())}),(0,s.jsx)("span",{children:"•"}),(0,s.jsx)(m.n,{})]})]})]}),(0,s.jsxs)("div",{className:"nextdoor-preview__body",children:[i?(0,s.jsx)("div",{className:"nextdoor-preview__caption",children:(0,o.u_)(i,{platform:"nextdoor",maxChars:c.A,maxLines:c.P})}):null,v?(0,s.jsx)("div",{className:"nextdoor-preview__media",children:g.map(((e,t)=>(0,s.jsx)("div",{className:"nextdoor-preview__media-item",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})},`nextdoor-preview__media-item-${t}`)))}):null,(0,s.jsxs)("article",{className:r()("nextdoor-preview__card",{"small-preview":!t||v}),children:[t?(0,s.jsx)("img",{className:"nextdoor-preview__image",src:t,alt:""}):(0,s.jsx)(d.Q,{}),k?(0,s.jsxs)("div",{className:"nextdoor-preview__description",children:[(0,s.jsx)("h2",{className:"nextdoor-preview__description--title",children:f}),(0,s.jsx)("span",{className:"nextdoor-preview__description--url",children:(0,o.wy)(k)})]}):null,v?(0,s.jsx)("div",{className:"nextdoor-preview__card--chevron-wrapper",children:(0,s.jsx)(p.D,{})}):null]})]}),(0,s.jsx)("div",{className:"nextdoor-preview__footer",children:(0,s.jsx)(l.p,{})})]})})})}},93122:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var s=n(30275),a=n(55609),i=n(65736),r=n(10263),o=n(33684),c=n(87591);const __=i.__,l=e=>{let{headingLevel:t,hideLinkPreview:n,hidePostPreview:i,...l}=e;return(0,s.jsxs)("div",{className:"social-preview nextdoor-preview",children:[!i&&(0,s.jsxs)("section",{className:"social-preview__section nextdoor-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 167 | -// translators: refers to a social post on Nextdoor | |
| 168 | -__("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Nextdoor:","jetpack")}),(0,s.jsx)(c.M,{...l})]}),!n&&(0,s.jsxs)("section",{className:"social-preview__section nextdoor-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 169 | -// translators: refers to a link to a Nextdoor post | |
| 170 | -__("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 Nextdoor.","jetpack")," ",(0,s.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,s.jsx)(o.t,{...l,name:"",profileImage:""})]})]})}},10263:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var s=n(30275);const a=[2,3,4,5,6],i=e=>{let{className:t,level:n,children:i}=e;const r=`h${n&&a.includes(n)?n:3}`;return(0,s.jsx)(r,{className:`social-preview__section-heading ${t??""}`,children:i})};t.Z=i},80748:function(e,t,n){"use strict";n.d(t,{G:function(){return i},M:function(){return a}});var s=n(21987);const a=e=>(0,s.SL)((0,s.hs)(1e3),(0,s.KB)(1e3))((0,s.ju)(e))||"",i=e=>(0,s.SL)((0,s.hs)(400),(0,s.KB)(400))((0,s.ju)(e))||""},96492:function(e,t,n){"use strict";n.d(t,{H:function(){return l}});var s=n(30275),a=n(65736),i=n(21987),r=n(80748),o=n(91100),c=n(5536);n(5609);const __=a.__,l=e=>{let{title:t,description:n,image:a,user:l,url:p}=e;const u=l?.avatarUrl;return(0,s.jsxs)("div",{className:"tumblr-preview__post",children:[u&&(0,s.jsx)("img",{className:"tumblr-preview__avatar",src:u,alt:""}),(0,s.jsxs)("div",{className:"tumblr-preview__card",children:[(0,s.jsx)(c.Z,{user:l}),(0,s.jsxs)("div",{className:"tumblr-preview__window",children:[a&&(0,s.jsxs)("div",{className:"tumblr-preview__window-top",children:[(0,s.jsx)("div",{className:"tumblr-preview__overlay",children:(0,s.jsx)("div",{className:"tumblr-preview__title",children:(0,r.M)(t)})}),(0,s.jsx)("img",{className:"tumblr-preview__image",src:a,alt:__("Tumblr preview thumbnail","jetpack")})]}),(0,s.jsxs)("div",{className:"tumblr-preview__window-bottom "+(a?"":"is-full"),children:[!a&&(0,s.jsx)("div",{className:"tumblr-preview__title",children:(0,r.M)(t)}),n&&a&&(0,s.jsx)("div",{className:"tumblr-preview__description",children:(0,r.G)(n)}),p&&(0,s.jsx)("div",{className:"tumblr-preview__site-name",children:(0,i.wy)(p)})]})]}),(0,s.jsx)(o.Z,{})]})]})}},97450:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var s=n(30275),a=n(65736),i=n(80748),r=n(91100),o=n(5536);n(5609);const __=a.__,c=e=>{let{title:t,description:n,image:a,user:c,url:l,customText:p,media:u}=e;const d=c?.avatarUrl,m=u?.[0];return(0,s.jsxs)("div",{className:"tumblr-preview__post",children:[d&&(0,s.jsx)("img",{className:"tumblr-preview__avatar",src:d,alt:""}),(0,s.jsxs)("div",{className:"tumblr-preview__card",children:[(0,s.jsx)(o.Z,{user:c}),(0,s.jsxs)("div",{className:"tumblr-preview__body",children:[(0,s.jsx)("div",{className:"tumblr-preview__title",children:(0,i.M)(t)}),p&&(0,s.jsx)("div",{className:"tumblr-preview__custom-text",children:p}),n&&(0,s.jsx)("div",{className:"tumblr-preview__description",children:(0,i.G)(n)}),m?(0,s.jsx)("div",{className:"tumblr-preview__media-item",children:m.type.startsWith("video/")?(0,s.jsx)("video",{controls:!0,className:"tumblr-preview__media--video",children:(0,s.jsx)("source",{src:m.url,type:m.type})}):(0,s.jsx)("img",{className:"tumblr-preview__image",src:a,alt:""})}):a&&(0,s.jsx)("img",{className:"tumblr-preview__image",src:a,alt:__("Tumblr preview thumbnail","jetpack")}),(0,s.jsx)("a",{className:"tumblr-preview__url",href:l,target:"_blank",rel:"noreferrer",children:__("View On WordPress","jetpack")})]}),(0,s.jsx)(r.Z,{})]})]})}},91100:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(22313);n(91680);const __=a.__;t.Z=()=>(0,s.jsxs)("div",{className:"tumblr-preview__post-actions",children:[(0,s.jsxs)("div",{className:"tumblr-preview__post-manage-actions",children:[(0,s.jsxs)("div",{className:"tumblr-preview__post-actions-blaze",children:[(0,s.jsx)(i.Z,{name:"blaze"})," Blaze"]}),(0,s.jsx)("ul",{children:[{icon:"delete", | |
| 171 | -// translators: "Delete" action on a Tumblr post | |
| 172 | -label:__("Delete","jetpack")},{icon:"edit", | |
| 173 | -// translators: "Edit" action on a Tumblr post | |
| 174 | -label:__("Edit","jetpack")}].map((e=>{let{icon:t,label:n}=e;return(0,s.jsx)("li",{"aria-label":n,children:(0,s.jsx)(i.Z,{name:t})},t)}))})]}),(0,s.jsxs)("div",{className:"tumblr-preview__post-social-actions",children:[(0,s.jsx)("div",{children: | |
| 175 | -// translators: count of notes on a Tumblr post | |
| 176 | -__("0 notes","jetpack")}),(0,s.jsx)("ul",{children:[{icon:"share", | |
| 177 | -// translators: "Share" action on a Tumblr post | |
| 178 | -label:__("Share","jetpack")},{icon:"reply", | |
| 179 | -// translators: "Reply" action on a Tumblr post | |
| 180 | -label:__("Reply","jetpack")},{icon:"reblog", | |
| 181 | -// translators: "Reblog" action on a Tumblr post | |
| 182 | -label:__("Reblog","jetpack")},{icon:"like", | |
| 183 | -// translators: "Like" action on a Tumblr post | |
| 184 | -label:__("Like","jetpack")}].map((e=>{let{icon:t,label:n}=e;return(0,s.jsx)("li",{"aria-label":n,children:(0,s.jsx)(i.Z,{name:t})},t)}))})]})]})},5536:function(e,t,n){"use strict";var s=n(30275),a=n(65736),i=n(22313);n(49304);const __=a.__;t.Z=e=>{let{user:t}=e;return(0,s.jsxs)("div",{className:"tumblr-preview__post-header",children:[(0,s.jsx)("div",{className:"tumblr-preview__post-header-username",children:t?.displayName|| | |
| 185 | -// translators: username of a fictional Tumblr User | |
| 186 | -__("anonymous-user","jetpack")}),(0,s.jsx)(i.Z,{name:"ellipsis"})]})}},22313:function(e,t,n){"use strict";var s=n(30275);n(27212);t.Z=e=>{let t,{name:n}=e;switch(n){case"blaze":t=(0,s.jsx)("svg",{viewBox:"0 0 25 22",children:(0,s.jsx)("path",{d:"m7.5059-0.24414c-0.79843 0.057223-1.2169 0.88587-1.1635 1.6128-0.2266 2.0449-1.4898 3.8696-3.1975 4.9778-3.0182 2.414-4.2201 6.8066-2.8033 10.411 0.92417 2.4679 2.9589 4.5674 5.4768 5.3928 0.95914 0.16102 1.7233-0.94358 1.3074-1.8059-0.11578-0.51062-0.17482-0.96516-0.17845-1.487 1.0413 1.5607 2.5484 2.8986 4.341 3.4975 1.0396-0.0154 1.98-0.64458 2.8516-1.1608 3.3821-2.1786 4.9604-6.7097 3.6597-10.518-0.49144-1.4599-1.2948-2.8935-2.5028-3.8698-0.7512-0.45498-1.661 0.09677-1.9202 0.86038-0.12274 0.16822-0.70352 1.1955-0.6191 0.61976 0.25488-3.4397-1.6789-7.0066-4.8123-8.4958-0.14322-0.037843-0.292-0.049464-0.43945-0.035156zm1.0586 3.5605c1.8947 2.0016 2.2326 5.1984 0.89062 7.5879-0.38498 0.96148 0.71762 2.0063 1.6567 1.5681 1.4159-0.4624 2.6998-1.3259 3.6577-2.4665 1.6442 2.5888 1.1465 6.2819-1.0629 8.3379-0.62378 0.60782-1.3666 1.0945-2.1754 1.4179-1.9543-0.989-3.3534-3.0966-3.5625-5.3125-0.25636-1.0253-1.81-1.2013-2.2852-0.25781-0.75058 1.3054-1.1846 2.7948-1.2305 4.3008-2.2396-1.9852-2.8468-5.4435-1.4609-8.0527 0.58926-1.239 1.651-2.13 2.724-2.9329 1.2958-1.1271 2.2791-2.62 2.7682-4.2683l0.071578 0.069832z"})});break;case"delete":t=(0,s.jsxs)("svg",{viewBox:"0 0 14 17",children:[(0,s.jsx)("path",{d:"M12 5v9c.1.7-.3 1-1 1H3c-.5 0-.9-.3-1-1V5c0-.6-.4-1-1-1-.5 0-1 .4-1 1v9.5C0 16.1 1.4 17 3 17h8c1.8 0 3-.8 3-2.5V5c0-.6-.5-1-1-1-.6 0-1 .5-1 1z"}),(0,s.jsx)("path",{d:"M4 12s0 1 1 1 1-1 1-1V5c0-.5-.4-1-1-1-.5 0-1 .5-1 1v7zm4 0s0 1 1 1 1-1 1-1V5c0-.5-.4-1-1-1-.5 0-1 .5-1 1v7zm5-10c.5 0 1-.4 1-1 0-.5-.4-.9-1-1H1C.5.1 0 .5 0 1c0 .6.6 1 1.1 1H13z"})]});break;case"edit":t=(0,s.jsx)("svg",{viewBox:"0 0 17.6 17.6",children:(0,s.jsx)("path",{d:"M5.3 13.8l-2.1.7.7-2.1L10.3 6l1.4 1.4-6.4 6.4zm6.4-9.3l-1.4-1.4-1.4 1.4-6.7 6.7-.2.5-2 5.9 3.8-1.3 2.1-.7.4-.1.3-.3 7.8-7.8c.1 0-2.7-2.9-2.7-2.9zm5.6-1.4L14.5.3c-.4-.4-1-.4-1.4 0l-1.4 1.4L15.9 6l1.4-1.4c.4-.5.4-1.1 0-1.5"})});break;case"share":t=(0,s.jsx)("svg",{viewBox:"0 0 24 24",children:(0,s.jsx)("path",{d:"M12.6173 1.07612C12.991 0.921338 13.4211 1.00689 13.7071 1.29289L22.7071 10.2929C23.0832 10.669 23.0991 11.2736 22.7433 11.669L13.7433 21.669C13.4663 21.9767 13.0283 22.082 12.6417 21.9336C12.2552 21.7853 12 21.414 12 21V16H11.5C7.31775 16 3.92896 18.2486 2.95256 21.3044C2.80256 21.7738 2.33292 22.064 1.84598 21.9881C1.35904 21.9122 1 21.4928 1 21V18.5C1 12.3162 5.88069 7.27245 12 7.01067V2C12 1.59554 12.2436 1.2309 12.6173 1.07612ZM14 4.41421V8C14 8.55228 13.5523 9 13 9H12.5C7.64534 9 3.64117 12.6414 3.06988 17.3419C5.09636 15.2366 8.18218 14 11.5 14H13C13.5523 14 14 14.4477 14 15V18.394L20.622 11.0362L14 4.41421Z"})});break;case"reply":t=(0,s.jsx)("svg",{viewBox:"0 0 17 17",children:(0,s.jsx)("path",{d:"M8.7 0C4.1 0 .4 3.7.4 8.3c0 1.2.2 2.3.7 3.4-.2.6-.4 1.5-.7 2.5L0 15.8c-.2.7.5 1.4 1.2 1.2l1.6-.4 2.4-.7c1.1.5 2.2.7 3.4.7 4.6 0 8.3-3.7 8.3-8.3C17 3.7 13.3 0 8.7 0zM15 8.3c0 3.5-2.8 6.3-6.4 6.3-1.2 0-2.3-.3-3.2-.9l-3.2.9.9-3.2c-.5-.9-.9-2-.9-3.2.1-3.4 3-6.2 6.5-6.2S15 4.8 15 8.3z"})});break;case"reblog":t=(0,s.jsx)("svg",{viewBox:"0 0 17 18.1",children:(0,s.jsx)("path",{d:"M12.8.2c-.4-.4-.8-.2-.8.4v2H2c-2 0-2 2-2 2v5s0 1 1 1 1-1 1-1v-4c0-1 .5-1 1-1h9v2c0 .6.3.7.8.4L17 3.6 12.8.2zM4.2 17.9c.5.4.8.2.8-.3v-2h10c2 0 2-2 2-2v-5s0-1-1-1-1 1-1 1v4c0 1-.5 1-1 1H5v-2c0-.6-.3-.7-.8-.4L0 14.6l4.2 3.3z"})});break;case"like":t=(0,s.jsx)("svg",{viewBox:"0 0 20 18",children:(0,s.jsx)("path",{d:"M14.658 0c-1.625 0-3.21.767-4.463 2.156-.06.064-.127.138-.197.225-.074-.085-.137-.159-.196-.225C8.547.766 6.966 0 5.35 0 4.215 0 3.114.387 2.162 1.117c-2.773 2.13-2.611 5.89-1.017 8.5 2.158 3.535 6.556 7.18 7.416 7.875A2.3 2.3 0 0 0 9.998 18c.519 0 1.028-.18 1.436-.508.859-.695 5.257-4.34 7.416-7.875 1.595-2.616 1.765-6.376-1-8.5C16.895.387 15.792 0 14.657 0h.001zm0 2.124c.645 0 1.298.208 1.916.683 1.903 1.461 1.457 4.099.484 5.695-1.973 3.23-6.16 6.7-6.94 7.331a.191.191 0 0 1-.241 0c-.779-.631-4.966-4.101-6.94-7.332-.972-1.595-1.4-4.233.5-5.694.619-.475 1.27-.683 1.911-.683 1.064 0 2.095.574 2.898 1.461.495.549 1.658 2.082 1.753 2.203.095-.12 1.259-1.654 1.752-2.203.8-.887 1.842-1.461 2.908-1.461h-.001z"})});break;case"ellipsis":t=(0,s.jsx)("svg",{viewBox:"0 0 17.5 3.9",children:(0,s.jsx)("path",{d:"M17.5 1.9c0 1.1-.9 1.9-1.9 1.9-1.1 0-1.9-.9-1.9-1.9S14.5 0 15.6 0c1 0 1.9.9 1.9 1.9m-6.8 0c0 1.1-.9 1.9-1.9 1.9-1.1.1-2-.8-2-1.9 0-1 .9-1.9 2-1.9s1.9.9 1.9 1.9m-6.8 0c0 1.1-.9 2-2 2-1 0-1.9-.9-1.9-2S.9 0 1.9 0c1.1 0 2 .9 2 1.9"})})}return(0,s.jsx)("span",{className:`tumblr-preview__post-icon tumblr-preview__post-icon-${n}`,children:t})}},1044:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var s=n(30275),a=n(55609),i=n(65736),r=n(10263),o=n(96492),c=n(97450);const __=i.__,l=e=>{let{headingLevel:t,hideLinkPreview:n,hidePostPreview:i,...l}=e;return(0,s.jsxs)("div",{className:"social-preview tumblr-preview",children:[!i&&(0,s.jsxs)("section",{className:"social-preview__section tumblr-preview__section",children:[(0,s.jsx)(r.O,{level:t,children: | |
| 187 | -// translators: refers to a social post on Tumblr | |
| 188 | -__("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on Tumblr:","jetpack")}),(0,s.jsx)(c.x,{...l})]}),!n&&(0,s.jsxs)("section",{className:"social-preview__section tumblr-preview__section",children:[(0,s.jsx)(r.O,{level:t,children: | |
| 189 | -// translators: refers to a link on Tumblr | |
| 190 | -__("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 Tumblr.","jetpack")," ",(0,s.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,s.jsx)(o.H,{...l,user:void 0})]})]})}},5894:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var s=n(30275),a=n(65235),i=n.n(a),r=n(21987);const o=(0,r.SL)((0,r.hs)(200),(0,r.KB)(200)),c=e=>{let{description:t,image:n,title:a,cardType:c,url:l}=e;const p=i()(`twitter-preview__card-${c}`,{"twitter-preview__card-has-image":!!n});return(0,s.jsx)("div",{className:"twitter-preview__card",children:(0,s.jsxs)("div",{className:p,children:[n&&(0,s.jsx)("img",{className:"twitter-preview__card-image",src:n,alt:""}),(0,s.jsxs)("div",{className:"twitter-preview__card-body",children:[(0,s.jsx)("div",{className:"twitter-preview__card-url",children:(0,r.wy)(l||"")}),(0,s.jsx)("div",{className:"twitter-preview__card-title",children:a}),(0,s.jsx)("div",{className:"twitter-preview__card-description",children:o((0,r.ju)(t))})]})]})})}},66370:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var s=n(30275);const a=()=>(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"})})})]})},78678:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var s=n(30275),a=n(65736),i=n(21987);const __=a.__,r=e=>{let{name:t,screenName:n,date:a}=e;return(0,s.jsxs)("div",{className:"twitter-preview__header",children:[(0,s.jsx)("span",{className:"twitter-preview__name",children:t||__("Account Name","jetpack")}),(0,s.jsx)("span",{className:"twitter-preview__screen-name",children:n||"@account"}),(0,s.jsx)("span",{children:"·"}),(0,s.jsx)("span",{className:"twitter-preview__date",children:(0,i.YW)(a||Date.now())})]})}},42029:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var s=n(30275);const a=()=>(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"})]})]})},43503:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var s=n(30275),a=n(20445);const i=e=>(0,s.jsx)(a.g,{...e,text:"",media:void 0})},51075:function(e,t,n){"use strict";n.d(t,{p:function(){return o}});var s=n(30275),a=n(65235),i=n.n(a),r=n(99196);const o=e=>{let{media:t}=e;const n=t.filter((e=>e.type.startsWith("image/")||e.type.startsWith("video/"))).filter(((e,t,n)=>0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type))).slice(0,4);if(0===n.length)return null;const a=n[0].type.startsWith("video/"),o=i()(["twitter-preview__media","twitter-preview__media-children-"+n.length]);return(0,s.jsx)("div",{className:o,children:n.map(((e,t)=>(0,s.jsx)(r.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}`)))})}},20445:function(e,t,n){"use strict";n.d(t,{g:function(){return u}});var s=n(30275),a=n(5894),i=n(66370),r=n(78678),o=n(51075),c=n(15850),l=n(94615),p=n(98969);n(58449);const u=e=>{let{date:t,description:n,image:u,media:d,name:m,profileImage:h,screenName:g,showThreadConnector:f,text:k,title:v,tweet:_,cardType:E,url:w}=e;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.Y,{profileImage:h,showThreadConnector:f}),(0,s.jsxs)("div",{className:"twitter-preview__main",children:[(0,s.jsx)(r.h,{name:m,screenName:g,date:t}),(0,s.jsxs)("div",{className:"twitter-preview__content",children:[k?(0,s.jsx)(p.x,{text:k,url:w||"",retainUrl:b}):null,b?(0,s.jsx)(o.p,{media:d}):null,_?(0,s.jsx)(c.P,{tweet:_}):null,!b&&v&&w&&(0,s.jsx)(a.Z,{description:n||"",image:u,title:v,cardType:E||"",url:w})]}),(0,s.jsx)(i.$,{})]})]})})}},10167:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var s=n(30275),a=n(55609),i=n(65736),r=n(10263),o=n(43503),c=n(20445);const __=i.__,l=e=>{let{headingLevel:t,hideLinkPreview:n,hidePostPreview:i,tweets:l}=e;return l?.length?(0,s.jsxs)("div",{className:"social-preview twitter-preview",children:[!i&&(0,s.jsxs)("section",{className:"social-preview__section twitter-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 191 | -// translators: refers to a social post on Twitter | |
| 192 | -__("Your post","jetpack")}),(0,s.jsx)("p",{className:"social-preview__section-desc",children:__("This is what your social post will look like on X:","jetpack")}),l.map(((e,t)=>{const n=t+1===l.length;return(0,s.jsx)(c.g,{...e,showThreadConnector:!n},`twitter-preview__tweet-${t}`)}))]}),!n&&(0,s.jsxs)("section",{className:"social-preview__section twitter-preview__section",children:[(0,s.jsx)(r.Z,{level:t,children: | |
| 193 | -// translators: refers to a link to a Twitter post | |
| 194 | -__("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 X.","jetpack")," ",(0,s.jsx)(a.ExternalLink,{href:"https://jetpack.com/support/jetpack-social-image-generator",children:__("Learn more about links","jetpack")})]}),(0,s.jsx)(o.m,{...l[0],name:"",profileImage:"",screenName:""})]})]}):null}},15850:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var s=n(30275),a=n(55609);const i=e=>{let{tweet:t}=e;return t?(0,s.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,s.jsx)(a.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${t}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet"}),(0,s.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null}},94615:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var s=n(30275),a=n(65736),i=n(42029);const __=a.__,r=e=>{let{profileImage:t,showThreadConnector:n}=e;return(0,s.jsxs)("div",{className:"twitter-preview__sidebar",children:[(0,s.jsx)("div",{className:"twitter-preview__profile-image",children:t?(0,s.jsx)("img",{alt:__("Twitter profile image","jetpack"),src:t}):(0,s.jsx)(i.q,{})}),n&&(0,s.jsx)("div",{className:"twitter-preview__connector"})]})}},98969:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var s=n(30275),a=n(21987);const i=e=>{let{text:t,url:n,retainUrl:i}=e;if(!t)return null;const r=n&&!i&&t.endsWith(n)?t.substring(0,t.lastIndexOf(n)):t;return(0,s.jsx)("div",{className:"twitter-preview__text",children:(0,a.u_)(r,{platform:"twitter"})})}},2816:function(e,t,n){"use strict";n.d(t,{bQ:function(){return u},tq:function(){return p}});var s=769,a="<480px",i="undefined"==typeof window||!window.matchMedia;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?i?{matches:s>t&&s<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?i?{matches:s>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(i?{matches:s<=n}:window.matchMedia("(max-width: ".concat(n,"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(a)}function u(){return i?s:window.innerWidth}},51128:function(e,t,n){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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(a=s))})),t.splice(a,0,n)},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=n(62942)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},62942:function(e,t,n){e.exports=function(e){function t(e){let n,a,i,r=null;function o(){for(var e=arguments.length,s=new Array(e),a=0;a<e;a++)s[a]=arguments[a];if(!o.enabled)return;const i=o,r=Number(new Date),c=r-(n||r);i.diff=c,i.prev=n,i.curr=r,n=r,s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");let l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";l++;const a=t.formatters[n];if("function"==typeof a){const t=s[l];e=a.call(i,t),s.splice(l,1),l--}return e})),t.formatArgs.call(i,s);(i.log||t.log).apply(i,s)}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:(a!==t.namespaces&&(a=t.namespaces,i=t.enabled(e)),i),set:e=>{r=e}}),"function"==typeof t.init&&t.init(o),o}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function a(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(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").split(/[\s,]+/),a=s.length;for(n=0;n<a;n++)s[n]&&("-"===(e=s[n].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 n,s;for(n=0,s=t.skips.length;n<s;n++)if(t.skips[n].test(e))return!1;for(n=0,s=t.names.length;n<s;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(73171),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},51260:function(e,t){"use strict";function n(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}t.Z=function e(t,s){if(t===s)return!0;if(null==t||null==s)return!1;if(Array.isArray(t))return Array.isArray(s)&&t.length===s.length&&t.every((function(t,n){return e(t,s[n])}));if("object"==typeof t||"object"==typeof s){var a=n(t),i=n(s);return a!==t||i!==s?e(a,i):Object.keys(Object.assign({},t,s)).every((function(n){return e(t[n],s[n])}))}return!1}},62042:function(e,t,n){"use strict";e.exports=n.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},90724:function(e,t,n){"use strict";e.exports=n.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},88702:function(e,t,n){"use strict";e.exports=n.p+"images/jetpack-license-activation-with-lock-7b01c1a4cf56de799cd7.png"},21160:function(e,t,n){"use strict";e.exports=n.p+"images/jetpack-license-activation-with-success-cad524ede4e793cc0ece.png"},77551:function(e,t,n){"use strict";e.exports=n.p+"images/background-a4fe3c05764cdec7ea9d.svg"},54066:function(e,t,n){"use strict";e.exports=n.p+"images/illustration-7b66a81232a93b203b4f.svg"},30253:function(e,t,n){"use strict";e.exports=n.p+"images/dois-66b3f018328e8f585646.jpg"},91948:function(e,t,n){"use strict";e.exports=n.p+"images/edge-e1adff73f2dc1c1dc64e.jpg"},5353:function(e,t,n){"use strict";e.exports=n.p+"images/fullscreen-21ca1ee2bafcb1c8eb55.jpg"},27956:function(e,t,n){"use strict";e.exports=n.p+"images/highway-205f94656e2fcc4aeb86.jpg"},97436:function(e,t,n){"use strict";e.exports=n.p+"images/people-c8df8440a2897e6d0eba.svg"},80118:function(e,t,n){"use strict";e.exports=n.p+"images/shield-with-check-67191b0849d39acf52fa.svg"},92787:function(e){"use strict";if(void 0==={consumer_slug:"jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack"}},99196:function(e){"use strict";e.exports=window.React},91850:function(e){"use strict";e.exports=window.ReactDOM},19567:function(e){"use strict";e.exports=window.jQuery},92819:function(e){"use strict";e.exports=window.lodash},86989:function(e){"use strict";e.exports=window.wp.apiFetch},52175:function(e){"use strict";e.exports=window.wp.blockEditor},55609:function(e){"use strict";e.exports=window.wp.components},94333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},69771:function(e){"use strict";e.exports=window.wp.date},72067:function(e){"use strict";e.exports=window.wp.editPost},12238:function(e){"use strict";e.exports=window.wp.editor},69307:function(e){"use strict";e.exports=window.wp.element},22629:function(e){"use strict";e.exports=window.wp.htmlEntities},65736:function(e){"use strict";e.exports=window.wp.i18n},53961:function(e){"use strict";e.exports=window.wp.notices},98817:function(e){"use strict";e.exports=window.wp.plugins},70444:function(e){"use strict";e.exports=window.wp.primitives},96483:function(e){"use strict";e.exports=window.wp.url},39369:function(){},82674:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},80255:function(e,t,n){"use strict";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},s.apply(this,arguments)}n.d(t,{Z:function(){return s}})},41806:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var s=n(80205);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,s.Z)(e,t)}},37921:function(e,t,n){"use strict";function s(e,t){if(null==e)return{};var n,s,a={},i=Object.keys(e);for(s=0;s<i.length;s++)n=i[s],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:function(){return s}})},80205:function(e,t,n){"use strict";function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n.d(t,{Z:function(){return s}})},48288:function(e,t,n){"use strict";var s=n(69307),a=n(65736),i=n(25162),r=n(99196),o=n(69430);const __=a.__,c=e=>{const{productId:t,siteRawUrl:n}=e,a=`https://cloud.jetpack.com/landing/${n}`,i=(0,o.F)(t),c={jetpack_anti_spam:{title:__("Jetpack Anti-spam is active!","jetpack"),text:__("We'll take care of everything from here. Now you can enjoy a spam-free site!","jetpack")},jetpack_backup:{title:__("Jetpack Backup is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your backups and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:r.createElement("a",{href:a})})},jetpack_complete:{title:__("Jetpack Complete is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:r.createElement("a",{href:a})})},jetpack_scan:{title:__("Jetpack Scan is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your security scans on <a>cloud.jetpack.com</a>.","jetpack"),{a:r.createElement("a",{href:a})})},jetpack_search:{title:__("Jetpack Search is active!","jetpack"),text:__("Next, we'll help you customize the Search experience for your visitors.","jetpack")},jetpack_security:{title:__("Jetpack Security is active!","jetpack"),text:(0,s.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:r.createElement("a",{href:a})})},jetpack_videopress:{title:__("Jetpack VideoPress is active!","jetpack"),text:__("Experience high-quality, ad-free video built specifically for WordPress.","jetpack")},default:{title:__("Your product is active!","jetpack"),text:__("You're all set!","jetpack")}};return r.createElement("div",{className:"jp-license-activation-screen-success-info--product-details"},r.createElement("h1",null,c[i].title," ",String.fromCodePoint(127881)),r.createElement("p",null,c[i].text))};c.propTypes={dashboardUrl:i.string,productId:i.number},t.Z=c},69430:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});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]};function a(e){return Object.keys(s).find((t=>s[t].includes(e)))||"default"}},9864:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var s=n(6895),a=n(99196);function i(e,t,n,i,r){(0,a.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:n.isRegistered?"yes":"no"})}),[r,i,n,e]);return(0,a.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:n.isRegistered?"yes":"no"}),window.location.href=(0,s.Z)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:t,query:`coupon=${e.coupon_code}`})}),[r,i,n,e,t])}},94262:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var s=!0,a="Invariant failed";function i(e,t){if(!e){if(s)throw new Error(a);var n="function"==typeof t?t():t,i=n?"".concat(a,": ").concat(n):a;throw new Error(i)}}}},t={};function n(s){var a=t[s];if(void 0!==a)return a.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");s.length&&(e=s[s.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var s={};!function(){"use strict";n.d(s,{getRouteName:function(){return d}});var e=n(69307),t=n(65736),a=n(31493),i=(n(92819),n(31215)),r=n(99196),o=n.n(r),c=n(59309),l=n(27453),p=n(44498),u=n(15641);const _x=t._x;function d(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,a.Z)(),function(){const t=document.getElementById("jp-plugin-container");if(null===t)return;const n=o().createElement("div",null,o().createElement(c.zt,{store:u.Z},o().createElement(l.UT,null,o().createElement(p.rs,null,o().createElement(p.AW,{path:"/dashboard"},o().createElement(i.Z,{routeName:d("/dashboard")})),o().createElement(p.AW,{path:"/reconnect"},o().createElement(i.Z,{routeName:d("/reconnect")})),o().createElement(p.AW,{path:"/setup"},o().createElement(i.Z,{routeName:d("/setup")})),o().createElement(p.AW,{path:"/my-plan"},o().createElement(i.Z,{routeName:d("/my-plan")})),o().createElement(p.AW,{path:"/plans"},o().createElement(i.Z,{routeName:d("/plans")})),o().createElement(p.AW,{path:"/recommendations"},o().createElement(i.Z,{routeName:d("/recommendations")})),o().createElement(p.AW,{path:"/plans-prompt"},o().createElement(i.Z,{routeName:d("/plans-prompt")})),o().createElement(p.AW,{path:"/settings"},o().createElement(i.Z,{routeName:d("/settings")})),o().createElement(p.AW,{path:"/discussion"},o().createElement(i.Z,{routeName:d("/discussion")})),o().createElement(p.AW,{path:"/earn"},o().createElement(i.Z,{routeName:d("/earn")})),o().createElement(p.AW,{path:"/newsletter"},o().createElement(i.Z,{routeName:d("/newsletter")})),o().createElement(p.AW,{path:"/security"},o().createElement(i.Z,{routeName:d("/security")})),o().createElement(p.AW,{path:"/performance"},o().createElement(i.Z,{routeName:d("/performance")})),o().createElement(p.AW,{path:"/traffic"},o().createElement(i.Z,{routeName:d("/traffic")})),o().createElement(p.AW,{path:"/writing"},o().createElement(i.Z,{routeName:d("/writing")})),o().createElement(p.AW,{path:"/sharing"},o().createElement(i.Z,{routeName:d("/sharing")})),o().createElement(p.AW,{path:"/license/activation"},o().createElement(i.Z,{routeName:d("/license/activation")})),o().createElement(p.AW,{path:"/wpbody-content",component:i.Z}),o().createElement(p.AW,{path:"/wp-toolbar",component:i.Z}),o().createElement(p.AW,{path:"/privacy",component:i.Z}),o().createElement(p.AW,{path:"/*"},o().createElement(i.Z,{routeName:d("/*")}))))));e.createRoot(t).render(n)}()}(),window.getRouteName=s.getRouteName}(); | |
| 17 | +"Just now","","jetpack")}),(0,i.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,i.jsx)(o.A,{name:"public"})]})]})]}),!n&&(0,i.jsx)("div",{className:"facebook-preview__post-header-more"})]})},98714(e,t,n){"use strict";n.d(t,{A:()=>r});n(18703);var s=n(10790);const r=({name:e})=>(0,s.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${e}`})},54560(e,t,n){"use strict";n.d(t,{m:()=>d});var s=n(76223),r=n(92917),o=(n(97880),n(10790));const i=160,a=e=>{const t=e.startsWith("https://")?"https://":"http://",n=t+e.replace(t,"").split("/").join(" › ");return(0,s.RA)((0,s.f5)(68),(0,s.ZT)(68))(n)},c=(0,s.RA)((0,s.f5)(63),(0,s.y5)(23,73),(0,s.ZT)(63)),l=(0,s.RA)((0,s.f5)(i),(0,s.y5)(80,170),(0,s.ZT)(i)),d=({description:e="",siteIcon:t,siteTitle:n,title:i="",url:d=""})=>{const p=(0,s.GA)(d);return(0,o.jsx)("div",{className:"search-preview",children:(0,o.jsxs)("div",{className:"search-preview__display",children:[(0,o.jsxs)("div",{className:"search-preview__header",children:[(0,o.jsxs)("div",{className:"search-preview__branding",children:[(0,o.jsx)(r.F,{className:"search-preview__icon",src:t}),(0,o.jsxs)("div",{className:"search-preview__site",children:[(0,o.jsx)("div",{className:"search-preview__site--title",children:n||p}),(0,o.jsx)("div",{className:"search-preview__url",children:a(d)})]})]}),(0,o.jsx)("div",{className:"search-preview__menu",children:(0,o.jsx)("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.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,o.jsx)("div",{className:"search-preview__title",children:c(i)}),(0,o.jsx)("div",{className:"search-preview__description",children:l((0,s.$J)(e))})]})})}},76223(e,t,n){"use strict";n.d(t,{$J:()=>u,GA:()=>i,RA:()=>p,ZT:()=>d,f5:()=>c,hV:()=>g,ti:()=>h,x5:()=>m,y5:()=>l});var s=n(86087),r=n(27723),o=n(10790);const i=e=>{const t=e.replace(/^[^/]+:\/\//,""),n=t.indexOf("/");return-1===n?t:t.substring(0,n)},a=e=>Array.from(e).length,c=e=>t=>a(t)<=e&&t,l=(e,t)=>n=>{const s=n.slice(0,t),r=s.lastIndexOf(" ");return r>e&&r<t&&s.slice(0,r).concat("…")},d=e=>t=>{return(n=t,s=0,r=e,Array.from(n).slice(s,r).join("")).concat("…");var n,s,r},p=(...e)=>t=>e.find(e=>!1!==e(t))?.(t),u=(e,t=[])=>{const n=new RegExp(`(<([^${t.join("")}>]+)>)`,"gi");return e?e.replace(n,""):""},h=(e,t)=>new RegExp(`<${t}[^>]*>`,"gi").test(e),g=(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);new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format;const f={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",tumblr:"https://www.tumblr.com/tagged/%1$s",bluesky:"https://bsky.app/hashtag/%1$s"};function m(e,t){const{platform:n,maxChars:i,maxLines:c,hyperlinkHashtags:l=!0,hyperlinkUrls:p="instagram"!==n,hyperlinks:h}=t;let g=u(e);if(g=g.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),i&&a(g)>i&&(g=d(i)(g)),c){const e=g.split("\n");e.length>c&&(g=e.slice(0,c).join("\n"))}const m={},v=[],w=(e,t)=>v.some(n=>e<n.end&&n.start<t);if(p){[...g.matchAll(/https?:\/\/\S+/g)].forEach((e,t)=>{const n=e[0],s=e.index??0;m[`Link${t}`]=(0,o.jsx)("a",{href:n,rel:"noopener noreferrer",target:"_blank",children:n}),v.push({start:s,end:s+n.length,value:`<Link${t} />`})})}if(l&&f[n]){const e=[...g.matchAll(/(^|\s)#(\w+)/g)],s=f[n];e.forEach((e,n)=>{const[,i,a]=e,c=(e.index??0)+i.length,l=c+a.length+1;if(w(c,l))return;const d=(0,r.sprintf)(s,a,t.hashtagDomain);m[`Hashtag${n}`]=(0,o.jsx)("a",{href:d,rel:"noopener noreferrer",target:"_blank",children:`#${a}`}),v.push({start:c,end:l,value:`<Hashtag${n} />`})})}h?.length&&h.forEach(({text:e,href:t,occurrence:n=0},s)=>{if(!e)return;const r=((e,t,n)=>{let s=e.indexOf(t);for(;-1!==s&&n>0;)n--,s=e.indexOf(t,s+1);return s})(g,e,n);if(-1===r)return;const i=r+e.length;if(w(r,i))return;const a=`Hyperlink${s}`;m[a]=(0,o.jsx)("a",{href:t,rel:"noopener noreferrer",target:"_blank"}),v.push({start:r,end:i,value:`<${a}>${e}</${a}>`})}),v.sort((e,t)=>t.start-e.start);for(const{start:e,end:t,value:n}of v)g=g.slice(0,e)+n+g.slice(t);return g=g.replace(/\n/g,"<br />"),m.br=(0,o.jsx)("br",{}),(0,s.createInterpolateElement)(g,m)}},83476(e,t,n){"use strict";n.d(t,{f:()=>r});var s=n(10790);function r(e){return(0,s.jsx)("svg",{focusable:"false","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14",...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"})})}},28469(e,t,n){"use strict";n.d(t,{MW:()=>c});var s=n(56427),r=n(27723),o=n(51609),i=n(76223),a=(n(3223),n(10790));const __=r.__;function c(e){const{text:t,children:n}=e,[r,c]=(0,o.useReducer)(e=>!e,!1),l=(0,i.$J)(t);if(function(e){return Array.from(e).length}(l)<=400)return(0,a.jsx)(a.Fragment,{children:n(t)});if(r)return(0,a.jsxs)(a.Fragment,{children:[n(t)," ",(0,a.jsx)(s.Button,{variant:"link",className:"social-previews__expand-toggle",onClick:c,children:__("See less","jetpack")})]});const d=function(e,t){const n=Array.from(e);if(n.length<=t)return e;const s=n.slice(0,t).join(""),r=s.lastIndexOf(" "),o=r>t-80?r:s.length;return s.slice(0,o)}(l,400);return(0,a.jsxs)(a.Fragment,{children:[n(d),"… ",(0,a.jsx)(s.Button,{variant:"link",className:"social-previews__expand-toggle",onClick:c,children:__("See more","jetpack")})]})}},2909(e,t,n){"use strict";n.d(t,{Q:()=>i});var s=n(51609),r=n(10790);const o=(e,t)=>{return t>=1?e:(n=(e-t/2)/(1-t),Math.min(Math.max(n,0),1));var n},i=({focalPoint:e,style:t,onLoad:n,...i})=>{const a=(0,s.useRef)(null),[c,l]=(0,s.useState)(null),d=(0,s.useCallback)(()=>{const e=a.current;if(!e)return;const{naturalWidth:t,naturalHeight:n,clientWidth:s,clientHeight:r}=e;t&&n&&s&&r&&l({image:t/n,box:s/r})},[]);(0,s.useEffect)(()=>{d();const e=a.current;if(!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(d);return t.observe(e),()=>t.disconnect()},[d]);const p=(0,s.useCallback)(e=>{d(),n?.(e)},[d,n]),u=e&&c?((e,t,n)=>t<n?{x:e.x,y:o(e.y,t/n)}:t>n?{x:o(e.x,n/t),y:e.y}:e)(e,c.image,c.box):e,h=u?{objectPosition:`${100*u.x}% ${100*u.y}%`}:void 0;return(0,r.jsx)("img",{...i,ref:a,onLoad:p,style:h||t?{...t,...h}:void 0})}},92917(e,t,n){"use strict";n.d(t,{F:()=>a});var s=n(51609),r=n(83476),o=n(10790);function i({className:e}){return(0,o.jsx)("span",{className:e,"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:"#e8eaed",color:"#5f6368",borderRadius:"50%"},children:(0,o.jsx)(r.f,{style:{width:"60%",height:"60%"}})})}function a({src:e,alt:t="",className:n,fallback:r=(0,o.jsx)(i,{className:n})}){const[a,c]=(0,s.useState)(""),l=(0,s.useCallback)(e=>{c(e.target.src)},[]);return e&&a!==e?(0,o.jsx)("img",{src:e,alt:t,onError:l,className:n}):r}},58513(e,t,n){"use strict";n.d(t,{Z:()=>c});var s=n(13022),r=n(76223),o=n(2909),i=n(10790);const a=(0,r.RA)((0,r.f5)(280),(0,r.ZT)(280)),c=({description:e,image:t,imageFocalPoint:n,title:c,cardType:l,url:d})=>{const p=(0,s.A)(`twitter-preview__card-${l}`,{"twitter-preview__card-has-image":!!t});return(0,i.jsx)("div",{className:"twitter-preview__card",children:(0,i.jsxs)("div",{className:p,children:[t&&(0,i.jsx)(o.Q,{className:"twitter-preview__card-image",src:t,alt:"",focalPoint:n}),(0,i.jsxs)("div",{className:"twitter-preview__card-body",children:[(0,i.jsx)("div",{className:"twitter-preview__card-url",children:(0,r.GA)(d||"")}),(0,i.jsx)("div",{className:"twitter-preview__card-title",children:c}),(0,i.jsx)("div",{className:"twitter-preview__card-description",children:a((0,r.$J)(e))})]})]})})}},32250(e,t,n){"use strict";n.d(t,{w:()=>r});var s=n(10790);const r=()=>(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"})})})]})},55664(e,t,n){"use strict";n.d(t,{Y:()=>i});var s=n(27723),r=n(76223),o=n(10790);const __=s.__,i=({name:e,screenName:t,date:n})=>(0,o.jsxs)("div",{className:"twitter-preview__header",children:[(0,o.jsx)("span",{className:"twitter-preview__name",children:e||__("Account Name","jetpack")}),(0,o.jsx)("span",{className:"twitter-preview__screen-name",children:t||"@account"}),(0,o.jsx)("span",{children:"·"}),(0,o.jsx)("span",{className:"twitter-preview__date",children:(0,r.hV)(n||Date.now())})]})},34900(e,t,n){"use strict";n.d(t,{E:()=>o});var s=n(18470),r=n(10790);const o=e=>(0,r.jsx)(s.O,{...e,text:"",media:void 0})},55971(e,t,n){"use strict";n.d(t,{$:()=>i});var s=n(13022),r=n(51609),o=n(10790);const i=({media:e})=>{const t=e.filter(e=>e.type.startsWith("image/")||e.type.startsWith("video/")).filter((e,t,n)=>0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type)).slice(0,4);if(0===t.length)return null;const n=t[0].type.startsWith("video/"),i=(0,s.A)(["twitter-preview__media","twitter-preview__media-children-"+t.length]);return(0,o.jsx)("div",{className:i,children:t.map((e,t)=>(0,o.jsx)(r.Fragment,{children:n?(0,o.jsx)("video",{controls:!0,children:(0,o.jsx)("source",{src:e.url,type:e.type})}):(0,o.jsx)("img",{alt:e.alt||"",src:e.url})},`twitter-preview__media-item-${t}`))})}},18470(e,t,n){"use strict";n.d(t,{O:()=>p});var s=n(58513),r=n(32250),o=n(55664),i=n(55971),a=n(68535),c=n(17915),l=n(11974),d=(n(19073),n(10790));const p=({date:e,description:t,image:n,imageFocalPoint:p,media:u,name:h,profileImage:g,screenName:f,showThreadConnector:m,text:v,title:w,tweetUrl:b,cardType:y,url:k})=>{const _=!!u?.length;return(0,d.jsx)("div",{className:"twitter-preview__wrapper",children:(0,d.jsxs)("div",{className:"twitter-preview__container",children:[(0,d.jsx)(c.B,{profileImage:g,showThreadConnector:m}),(0,d.jsxs)("div",{className:"twitter-preview__main",children:[(0,d.jsx)(o.Y,{name:h,screenName:f,date:e}),(0,d.jsxs)("div",{className:"twitter-preview__content",children:[v?(0,d.jsx)(l.E,{text:v}):null,_?(0,d.jsx)(i.$,{media:u}):null,b?(0,d.jsx)(a.g,{tweetUrl:b}):null,!_&&k&&(0,d.jsx)(s.Z,{description:t||"",image:n,imageFocalPoint:p,title:w||"",cardType:y||"",url:k})]}),(0,d.jsx)(r.w,{})]})]})})}},68535(e,t,n){"use strict";n.d(t,{g:()=>o});var s=n(56427),r=n(10790);const o=({tweetUrl:e})=>e?(0,r.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,r.jsx)(s.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${e}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet"}),(0,r.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null},17915(e,t,n){"use strict";n.d(t,{B:()=>o});var s=n(50513),r=n(10790);const o=({profileImage:e,showThreadConnector:t})=>(0,r.jsxs)("div",{className:"twitter-preview__sidebar",children:[(0,r.jsx)("div",{className:"twitter-preview__profile-image",children:(0,r.jsx)(s._,{src:e})}),t&&(0,r.jsx)("div",{className:"twitter-preview__connector"})]})},11974(e,t,n){"use strict";n.d(t,{E:()=>o});var s=n(76223),r=n(10790);const o=({text:e})=>e?(0,r.jsx)("div",{className:"twitter-preview__text",children:(0,s.x5)(e,{platform:"twitter"})}):null},89358(e,t,n){"use strict";n.d(t,{u:()=>r});var s=n(97999);function r(e){const t=window.myJetpackInitialState,n=t?.assetsUrl??(0,s.getScriptData)()?.myJetpack?.assetsUrl;if(n)return`${n.replace(/\/$/,"")}/${e}`}},94900(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(3924),r=n(39384),o=n(56427),i=n(27723),a=n(13109),c=n(1866),l=n(89358),d=n(46571),p=n(10790);const __=i.__,u=(0,l.u)("components/connection-screen/connect.webp"),h=e=>{const{title:t}=e;return(0,p.jsx)(r.ConnectScreen,{buttonLabel:__("Connect your user account","jetpack"),loadingLabel:__("Connecting your account…","jetpack"),images:u?[u]:[],from:"my-jetpack",...e,title:t||__("Unlock all the amazing features of Jetpack by connecting now","jetpack"),children:(0,p.jsxs)("ul",{role:"list",children:[(0,p.jsx)("li",{children:__("Receive instant downtime alerts","jetpack")}),(0,p.jsx)("li",{children:__("Automatically share your content on social media","jetpack")}),(0,p.jsx)("li",{children:__("Let your subscribers know when you post","jetpack")}),(0,p.jsx)("li",{children:__("Receive notifications about new likes and comments","jetpack")}),(0,p.jsx)("li",{children:__("Let visitors share your content on social media","jetpack")}),(0,p.jsx)("li",{children:__("Create better content with powerful AI tools","jetpack")}),(0,p.jsxs)("li",{children:[__("And more!","jetpack")," ",(0,p.jsxs)("a",{href:(0,s.A)("jetpack-features"),target:"_blank",className:d.A["all-features"],rel:"noreferrer",children:[__("See all Jetpack features","jetpack"),(0,p.jsx)(a.A,{icon:c.A}),(0,p.jsx)(o.VisuallyHidden,{as:"span",children:/* translators: accessibility text */ | |
| 18 | +__("(opens in a new tab)","jetpack")})]})]})]})})}},77699(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(20428),r=n.n(s),o=n(51609),i=n(10790);class a extends o.Component{adminNoticesRef=(0,o.createRef)();componentDidMount(){const e=r()(this.adminNoticesRef.current),t=r()(".vp-deactivated");t.length>0&&t.each(function(){const t=r()(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 r()("<strong />",{html:this.innerHTML})}),t.find("p").replaceWith(function(){return r()("<div/>",{html:this.innerHTML})}),t.prependTo(e).css("display","flex")});const n=r()(".vp-notice");n.length>0&&n.each(function(){const t=r()(this);if(0===t.find(".dops-notice__icon").length){const e=t.hasClass("vp-registered"),n=e?"is-success":"is-error";t.addClass("dops-notice vp-notice-jp "+n),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 r()("<strong />",{html:this.innerHTML})}),t.find("p").replaceWith(function(){return r()("<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=r()(".woocommerce-message");s.length>0&&s.each(function(){const t=r()(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 n=t.find(".dops-notice__text");n.find("p").replaceWith(function(){return r()("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})}),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)}),this.adminNoticesRef.current.closest("#jp-plugin-container[data-wp-build]")&&r()("#wpbody-content").find(".jetpack-message, #jetpack-ssl-warning").prependTo(e);const o=r()(".notice");o.length>0&&o.each(function(){r()(this).hide()}),e.length>0&&r()(".dops-notice__dismiss").on("click",function(){r()(this).parent().closest("div").hide()})}render(){return(0,i.jsx)("div",{id:"jp-admin-notices",ref:this.adminNoticesRef,"aria-live":"polite"})}}const c=a},36336(e,t,n){"use strict";n.d(t,{Ay:()=>k,Ng:()=>y,lZ:()=>b});var s=n(13109),r=n(13022),o=n(28120),i=n.n(o),a=n(51609),c=n(71766),l=n(70386),d=n(26592),p=n(31497),u=n(76122),h=n(53835),g=n(6838),f=n(34679),m=n(2065),v=(n(88046),n(10790));const w=()=>{};class b extends a.Component{static propTypes={callToAction:i().string,className:i().string,currentVersion:i().string.isRequired,description:i().node,eventFeature:i().string,eventProps:i().object,feature:i().string,href:i().string,icon:i().string,iconAlt:i().string,iconSrc:i().string,iconRaw:i().string,iconWp:i().any,list:i().arrayOf(i().string),onClick:i().func,path:i().string,plan:i().string,siteSlug:i().string,title:i().node.isRequired,isCurrentUserLinked:i().bool,isConnectionOwner:i().bool,noIcon:i().bool,rna:i().bool};static defaultProps={onClick:w,eventProps:{},rna:!1,noIcon:!1};getHref(){const{href:e,feature:t,siteSlug:n}=this.props;return!e&&n?t?`/plans/${n}?feature=${t}`:`/plans/${n}`:e}handleClick=()=>{this.props.onClick();const{eventFeature:e,path:t,currentVersion:n,eventProps:s}=this.props;if(e||t){const r=e?{feature:e}:{},o=t?{path:t}:{},i={target:"banner",type:"upgrade",current_version:n,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no",...r,...o,...s};h.A.tracks.recordJetpackClick(i)}};getIcon(){const{icon:e,iconAlt:t,iconSrc:n,iconRaw:r,iconWp:o,plan:i}=this.props;return r?(0,v.jsx)("div",{className:"dops-banner__icon-plan",children:(0,v.jsx)("img",{src:r,alt:t})}):!i||e&&n?o?(0,v.jsx)("div",{className:"dops-banner__icon-wp",children:(0,v.jsx)(s.A,{icon:o})}):(0,v.jsxs)("div",{className:"dops-banner__icons",children:[(0,v.jsxs)("div",{className:"dops-banner__icon",children:[e&&(0,v.jsx)(p.A,{icon:e||"info-outline",size:18}),n&&(0,v.jsx)("img",{className:"dops-banner__icon-circle-svg",src:n,alt:t})]}),(0,v.jsxs)("div",{className:"dops-banner__icon-circle",children:[e&&(0,v.jsx)(p.A,{icon:e||"info-outline",size:18}),n&&(0,v.jsx)("img",{className:"dops-banner__icon-circle-svg",src:n,alt:t})]})]}):(0,v.jsx)("div",{className:"dops-banner__icon-plan",children:(0,v.jsx)(u.A,{plan:i})})}getContent(){const{callToAction:e,description:t,list:n,title:s,rna:r}=this.props;return(0,v.jsxs)("div",{className:"dops-banner__content",children:[(0,v.jsxs)("div",{className:"dops-banner__info",children:[(0,v.jsx)("div",{className:"dops-banner__title",children:s}),t&&(0,v.jsx)("div",{className:"dops-banner__description",children:t}),n?.length>0&&(0,v.jsx)("ul",{className:"dops-banner__list",children:n.map((e,t)=>(0,v.jsxs)("li",{children:[(0,v.jsx)(p.A,{icon:"checkmark",size:18}),e]},t))})]}),e&&(0,v.jsx)("div",{className:"dops-banner__action",children:(0,v.jsx)(l.A,{rna:r,compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0,children:e})})]})}render(){const{callToAction:e,className:t,plan:n,noIcon:s}=this.props,o=(0,g.IPX)(n),i=(0,g.nt$)(n),a=(0,g._qL)(n),c=(0,r.A)("dops-banner",t,{"has-call-to-action":e},{"is-upgrade-personal":i&&"is-personal-plan"===o},{"is-upgrade-premium":i&&"is-premium-plan"===o},{"is-upgrade-business":i&&"is-business-plan"===o},{"is-product":a},{"is-plan":!a},{"is-bundle":!a&&(0,g.L$c)(n)});return(0,v.jsxs)(d.A,{className:c,href:e?null:this.getHref(),target:e||!this.getHref()?null:"_blank",onClick:e?w:this.handleClick,children:[!s&&this.getIcon(),this.getContent()]})}}function y(e){return(0,c.Ng)(e=>({currentVersion:(0,m.Mj)(e),isCurrentUserLinked:(0,f._U)(e),isConnectionOwner:(0,f.uQ)(e)}))(e)}const k=y(b)},70386(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(31497),c=(n(26544),n(10790));const l=()=>{};class d extends i.Component{static displayName="Button";static propTypes={disabled:o().bool,compact:o().bool,primary:o().bool,scary:o().bool,type:o().string,href:o().string,onClick:o().func,borderless:o().bool,rna:o().bool,className:o().string,isExternalLink:o().bool};static defaultProps={disabled:!1,type:"button",onClick:l,borderless:!1,isExternalLink:!1};domNode=null;render(){const e=this.props.href?"a":"button",t="a"===e,{primary:n,compact:r,scary:o,borderless:l,rna:d,className:p,isExternalLink:u,...h}=this.props,g=(0,s.A)({"dops-button":!0,"is-compact":r,"is-primary":n,"is-scary":o,"is-borderless":l,"is-rna":d});return h.className=(0,s.A)(p,g),h.ref=e=>{this.domNode=e},t&&u&&(h.target="_blank"),(0,i.createElement)(e,h,(0,c.jsxs)(c.Fragment,{children:[this.props.children,t&&u&&(0,c.jsx)(a.A,{className:"dops-card__link-indicator",icon:"external"})]}))}}},23443(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(13022),r=n(51609),o=n(26592),i=n(10790);class a extends r.Component{static displayName="CompactCard";render(){const e=Object.assign({},this.props,{className:(0,s.A)(this.props.className,"is-compact")});return(0,i.jsx)(o.A,{...e,children:this.props.children})}}},26592(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(31497),c=(n(27246),n(10790));class l extends i.Component{static propTypes={title:o().any,vertical:o().any,style:o().object,className:o().string,device:o().oneOf(["desktop","tablet","phone"])};static defaultProps={vertical:null};render(){return(0,c.jsx)("div",{className:(0,s.A)("dops-card-section",this.props.className),style:this.props.style,children:this.props.title?this._renderWithTitle():this.props.children})}_renderWithTitle=()=>{const e="dops-card-section-orient-"+(this.props.vertical?"vertical":"horizontal");return(0,c.jsxs)("div",{className:e,children:[(0,c.jsx)("h4",{className:"dops-card-section-label",children:this.props.title}),(0,c.jsx)("div",{className:"dops-card-section-content",children:this.props.children})]})}}class d extends i.Component{render(){return(0,c.jsx)("div",{className:"dops-card-footer",children:this.props.children})}}class p extends i.Component{static propTypes={meta:o().any,icon:o().string,iconLabel:o().any,iconColor:o().string,style:o().object,className:o().string,href:o().string,onClick:o().func,title:o().string,tagName:o().string,target:o().string,compact:o().bool,children:o().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 n,r;return this.props.href?n=this.props.target&&(0,c.jsx)(a.A,{className:"dops-card__link-indicator",icon:"external"}):t.push("href","target"),this.props.title&&(r=(0,c.jsxs)("h2",{className:"dops-card-title",children:[this.props.title,this.props.meta&&(0,c.jsx)("span",{className:"dops-card-meta",children:this.props.meta}),(this.props.icon||this.props.iconLabel)&&this._renderIcon()]})),(0,i.createElement)(this.props.href?"a":this.props.tagName,{...Object.fromEntries(Object.entries(this.props).filter(([e])=>!t.includes(e))),className:e},r,this.props.children,n)}_renderIcon=()=>(0,c.jsxs)("span",{className:"dops-card-icon",style:{color:this.props.iconColor},children:[this.props.icon&&(0,c.jsx)(a.A,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel]})}p.Section=l,p.Footer=d;const u=p},47982(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(34484),c=n(78888),l=(n(39376),n(10790));class d extends i.Component{static displayName="ClipboardButtonInput";static propTypes={value:o().string,disabled:o().bool,className:o().string,copied:o().string,copy:o().string,prompt:o().string,rna:o().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{className:e,copied:t,copy:n,isError:r,isValid:o,prompt:i,selectOnFocus:d,rna:p,...u}=this.props;return(0,l.jsxs)("span",{className:(0,s.A)("dops-clipboard-button-input",e),children:[(0,l.jsx)(c.A,{...u,type:"text",selectOnFocus:!0,readOnly:!0}),(0,l.jsx)(a.A,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:i,compact:!0,rna:p,children:this.state.isCopied?t:n})]})}}},43345(e,t,n){"use strict";n.d(t,{A:()=>C});var s=n(3924),r=n(39384),o=n(97999),i=n(86087),a=n(27723),c=n(57273),l=n(28120),d=n.n(l),p=n(51609),u=n(71766),h=n(70386),g=n(2822),f=n(3983),m=n(53835),v=n(34679),w=n(2065),b=n(82656),y=n(752),k=n(17949),_=n(18547),x=(n(69281),n(10790));const __=a.__;class j extends p.Component{static displayName="ConnectButton";static propTypes={connectUser:d().bool,from:d().string,asLink:d().bool,asBanner:d().bool,connectLegend:d().string,connectInPlace:d().bool,customConnect:d().func,rna:d().bool,compact:d().bool,isConnectionOwner:d().bool};static defaultProps={connectUser:!1,from:"",asLink:!1,connectInPlace:!0,rna:!1,compact:!1,isConnectionOwner:!1};constructor(e){super(e),this.state={showModal:!1,showOwnerDisconnectDialog:!1}}handleOpenModal=e=>{e&&e.preventDefault(),m.A.tracks.recordJetpackClick("manage_site_connection"),this.toggleVisibility()};handleUserDisconnectClick=()=>{this.props.isConnectionOwner?this.setState({showOwnerDisconnectDialog:!0}):this.props.unlinkUser()};handleDisconnected=()=>{window.location.reload()};toggleVisibility=()=>{this.setState({showModal:!this.state.showModal})};loadConnectionScreen=e=>{e&&e.preventDefault(),this.props.isAuthorizing||this.props.fetchingConnectUrl||(m.A.tracks.recordJetpackClick("link_account_in_place"),this.props.customConnect?this.props.customConnect():this.props.doConnectUser(null,this.props.from))};renderDisconnectStepComponent=()=>this.props.siteBenefits?(0,x.jsx)(k.A,{siteBenefits:this.props.siteBenefits}):null;renderUserButton=()=>{if(this.props.isLinked)return(0,x.jsxs)("div",{children:[(0,x.jsx)("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:(0,y.A)(this.handleUserDisconnectClick),onClick:this.handleUserDisconnectClick,disabled:this.props.isUnlinking,children:this.props.connectLegend||__("Disconnect your WordPress.com account","jetpack")}),this.props.isConnectionOwner&&this.state.showOwnerDisconnectDialog&&(0,x.jsx)(_.A,{isOpen:this.state.showOwnerDisconnectDialog,onClose:this.handleOwnerDialogClose,apiRoot:this.props.apiRoot,apiNonce:this.props.apiNonce,onDisconnected:this.handleDisconnected,onUnlinked:this.handleDisconnected})]});if(this.props.asBanner)return(0,x.jsx)(f.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"},isPromotion:!1});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},n=this.props.connectLegend||__("Connect your WordPress.com account","jetpack");return this.props.asLink?(0,x.jsx)("a",{...t,children:n}):(0,x.jsx)(h.A,{rna:this.props.rna,compact:this.props.compact,...t,children:n})};renderContent=()=>{if(this.props.connectUser)return this.renderUserButton();if(this.props.isSiteConnected){const e={title:__("Your site is connected to WordPress.com.","jetpack"),noIcon:!0,eventFeature:"manage-site-connection",path:"dashboard",eventProps:{type:"manage"},isPromotion:!1};return(0,o.isWoASite)()||(e.callToAction=this.props.connectLegend||__("Manage","jetpack"),e.onClick=this.handleOpenModal),(0,x.jsx)(f.Ay,{...e})}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},n=this.props.connectLegend||__("Set up Jetpack","jetpack");return this.props.asLink?(0,x.jsx)("a",{...t,children:n}):(0,x.jsx)(h.A,{...t,children:n})};handleOwnerDialogClose=()=>{this.setState({showOwnerDisconnectDialog:!1})};render(){return(0,x.jsxs)("div",{children:[(0,x.jsx)(g.A,{}),!this.props.isSiteConnected&&(0,x.jsx)("p",{className:"jp-banner__tos-blurb",children:(0,i.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:(0,x.jsx)(c.N,{openInNewTab:!0,href:(0,s.A)("wpcom-tos")}),shareDetailsLink:(0,x.jsx)(c.N,{openInNewTab:!0,href:(0,s.A)("jetpack-support-what-data-does-jetpack-sync")})})}),this.renderContent(),!this.state.showOwnerDisconnectDialog&&(0,x.jsx)(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 C=(0,u.Ng)(e=>({siteRawUrl:(0,w.XG)(e),isSiteConnected:(0,v.i$)(e),isDisconnecting:(0,v.mz)(e),fetchingConnectUrl:(0,v.s6)(e),connectUrl:(0,v.Qp)(e),isLinked:(0,v._U)(e),isUnlinking:(0,v.Vg)(e),isAuthorizing:(0,v.Cq)(e),isSafari:(0,w.nr)(e),doNotUseConnectionIframe:(0,w.IJ)(e),apiNonce:(0,w.Co)(e),apiRoot:(0,w.O3)(e),connectedPlugins:(0,w.ZL)(e),siteBenefits:(0,b.Up)(e),pluginUrl:(0,w.K$)(e),userWpComLogin:(0,w.Dd)(e),userWpComId:(0,w.nZ)(e),connectedSiteId:(0,w.V2)(e),isConnectionOwner:(0,v.uQ)(e)}),e=>({fetchConnectUrl:()=>e((0,v.mo)()),fetchSiteConnectionStatus:()=>e((0,v.ks)()),unlinkUser:()=>e((0,v.Pb)()),doConnectUser:(t,n)=>e((0,v.k0)(t,n))}))(j)},43100(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(27723),r=n(28120),o=n.n(r),i=n(51609),a=n(71766),c=n(26592),l=n(43345),d=n(53835),p=n(34679),u=(n(80294),n(10790));const __=s.__,h=e=>{const{feature:t,featureLabel:n,text:r,doConnectUser:o}=e,a="unlinked-user-connect",p=(0,i.useCallback)(()=>{d.A.tracks.recordJetpackClick({target:"connection-bar-click",feature:t,is_user_wpcom_connected:"no",is_connection_owner:"no"}),o(n,a)},[o,t,n,a]);return(0,u.jsxs)(c.A,{compact:!0,className:"jp-connect-user-bar__card",children:[(0,u.jsx)("span",{children:(0,s.sprintf)(/* translators: %s: text adding extra instructions on what to do next. */ | |
| 19 | +__("This feature is provided by the WordPress.com cloud. %s","jetpack"),r)}),(0,u.jsx)(l.A,{connectUser:!0,from:a,connectLegend:__("Connect your WordPress.com account","jetpack"),customConnect:p,rna:!0,compact:!0})]})};h.propTypes={text:o().string.isRequired,feature:o().string,featureLabel:o().string};const g=(0,a.Ng)(null,e=>({doConnectUser:(t,n)=>e((0,p.k0)(t,n))}))(h)},94197(e,t,n){"use strict";n.d(t,{A:()=>m});var s=n(27723),r=n(88050),o=n(42472),i=n(61868),a=n(61475),c=n(64905),l=n(28120),d=n.n(l),p=n(51609),u=n(71766),h=n(34679),g=n(10790);const __=s.__;class f extends p.Component{static propTypes={title:d().string.isRequired,description:d().node,from:d().string};handleClick=()=>{this.props.doConnectUser(null,this.props.from)};render(){const{description:e,title:t}=this.props;return(0,g.jsxs)(r.b,{intent:"info",children:[(0,g.jsx)(o.h,{children:t}),(0,g.jsx)(i.V,{children:e}),(0,g.jsx)(a.E,{children:(0,g.jsx)(c.r,{onClick:this.handleClick,children:__("Connect your WordPress.com account","jetpack")})})]})}}const m=(0,u.Ng)(e=>e,e=>({doConnectUser:(t,n)=>e((0,h.k0)(t,n))}))(f)},68339(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(28120),r=n.n(s),o=n(51609),i=(n(51823),n(10790));const a=class extends o.PureComponent{static displayName="Count";static propTypes={count:r().number.isRequired};render(){return(0,i.jsx)("span",{className:"dops-count",children:this.numberFormat(this.props.count)})}};n.dn(a)},17659(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(51609),r=n(71766),o=n(16278),i=n(32819);class a extends s.Component{UNSAFE_componentWillMount(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}render(){return null}}a.defaultProps={checkAkismetKey:()=>{}};const c=(0,r.Ng)(e=>({checkAkismetKey:(0,i.EI)(),isCheckingAkismetKey:(0,i.OY)(e)}),e=>(0,o.zH)({checkAkismetKey:i.EI},e))(a)},26468(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(28120),r=n.n(s),o=n(51609),i=n(71766),a=n(34679),c=n(89336);class l extends o.Component{static propTypes={isFetchingRewindStatus:r().bool,isOfflineMode:r().bool};static defaultProps={isFetchingRewindStatus:!1,isOfflineMode:!1};UNSAFE_componentWillMount(){this.props.isFetchingRewindStatus||this.props.isOfflineMode||this.props.fetchRewind()}render(){return null}}const d=(0,i.Ng)(e=>({isFetchingRewindStatus:(0,c.wp)(e),isOfflineMode:(0,a.hN)(e)}),e=>({fetchRewind:()=>e((0,c.mF)())}))(l)},2822(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(51609),r=n(71766),o=n(82656);class i extends s.Component{static defaultProps={isFetchingSiteBenefitsData:!1};componentDidMount(){this.props.isFetchingSiteBenefits||this.props.fetchSiteBenefits()}render(){return null}}const a=(0,r.Ng)(e=>({isFetchingSiteBenefits:(0,o.OX)(e)}),e=>({fetchSiteBenefits:()=>e((0,o.Eb)())}))(i)},37866(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(51609),r=n(71766),o=n(77423);class i extends s.Component{UNSAFE_componentWillMount(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}render(){return null}}const a=(0,r.Ng)(e=>({isFetchingPluginsData:(0,o.rC)(e)}),e=>({fetchPluginsData:()=>e((0,o.bR)())}))(i)},63109(e,t,n){"use strict";n.d(t,{A:()=>p});var s=n(66087),r=n(28120),o=n.n(r),i=n(51609),a=n(71766),c=n(34679),l=n(82656);class d extends i.Component{static propTypes={isFetchingSiteData:o().bool,isOfflineMode:o().bool,sitePlan:o().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 p=(0,a.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)())}))(d)},64610(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(51609),r=n(71766),o=n(16278),i=n(32819),a=n(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,r.Ng)(e=>({fetchVaultPressData:(0,i.WU)(),fetchingVaultPressData:(0,i.en)(e),isModuleActivated:t=>(0,a.Yp)(e,t),hasLoadedVaultPressData:(0,i.Pf)(e)}),e=>(0,o.zH)({fetchVaultPressData:i.WU},e))(c)},96337(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(28120),r=n.n(s),o=n(51609),i=n(71766),a=n(34679),c=n(74215);class l extends o.Component{static propTypes={isFetchingWafSettings:r().bool,isOfflineMode:r().bool};static defaultProps={isFetchingWafSettings:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingWafSettings||this.props.isOfflineMode||this.props.fetchWafSettings()}render(){return null}}const d=(0,i.Ng)(e=>({isFetchingWafSettings:(0,c._e)(e),isOfflineMode:(0,a.hN)(e)}),e=>({fetchWafSettings:()=>e((0,c.Mg)())}))(l)},27338(e,t,n){"use strict";n.d(t,{A:()=>w});var s=n(13022),r=n(51609),o=n(71766),i=n(26592),a=n(6838),c=n(32819),l=n(34679),d=n(69531),p=n(2065),u=n(89336),h=n(76358),g=n(82656),f=n(752),m=n(10790);class v extends r.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(0,m.jsxs)("div",{children:[(0,m.jsx)("hr",{}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"view_stats",children:[(0,m.jsx)("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"hide_stats",children:[(0,m.jsx)("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!this.props.canViewStats,onChange:this.onPermissionsChange}),"Cannot view stats"]})})]})]})};showIsLinkedToggle=()=>(0,m.jsxs)("div",{children:[(0,m.jsx)("hr",{}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"is_linked",children:[(0,m.jsx)("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"is_unlinked",children:[(0,m.jsx)("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,a.IPX)(this.props.sitePlan.product_slug),n=this.props.rewindStatus?.state??!1,r=this.props.scanStatus?.state??!1;return(0,m.jsxs)(i.A,{compact:!0,className:e,children:[(0,m.jsx)("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,f.A)(this.props.disableDevCard),onClick:this.props.disableDevCard,children:"x"}),(0,m.jsx)("div",{className:"jp-dev-card__heading",children:"Dev Tools"}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_free",children:[(0,m.jsx)("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_personal",children:[(0,m.jsx)("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_premium",children:[(0,m.jsx)("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_business",children:[(0,m.jsx)("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_starter",children:[(0,m.jsx)("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)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_security_t1",children:[(0,m.jsx)("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)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_security_t2",children:[(0,m.jsx)("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)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_complete",children:[(0,m.jsx)("input",{type:"radio",id:"jetpack_complete",value:"jetpack_complete",name:"jetpack_complete",checked:"is-complete-plan"===t,onChange:this.onPlanChange}),"Complete"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_backup_t0",children:[(0,m.jsx)("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)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_backup_t1",children:[(0,m.jsx)("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)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_backup_t2",children:[(0,m.jsx)("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)"]})}),(0,m.jsx)("li",{className:"jp-dev-card__deprecated-plans-list-header",children:"— DEPRECATED —"}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_security_daily",children:[(0,m.jsx)("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"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_security_realtime",children:[(0,m.jsx)("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"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_backup_daily",children:[(0,m.jsx)("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"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"jetpack_backup_realtime",children:[(0,m.jsx)("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"]})})]}),(0,m.jsx)("hr",{}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"admin_master",children:[(0,m.jsx)("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (master)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"admin_secondary",children:[(0,m.jsx)("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (secondary)"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"editor",children:[(0,m.jsx)("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"subscriber",children:[(0,m.jsx)("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"]})})]}),(0,m.jsx)("hr",{}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"nothreats",children:[(0,m.jsx)("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"threats",children:[(0,m.jsx)("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"]})})]}),(0,m.jsx)("hr",{}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("strong",{children:"Backup"}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"rewindUnavailable",children:[(0,m.jsx)("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"rewindProvisioning",children:[(0,m.jsx)("input",{type:"radio",id:"rewindProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===n,onChange:this.onRewindStatusChange}),"Provisioning"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"rewindAwatingCreds",children:[(0,m.jsx)("input",{type:"radio",id:"rewindAwatingCreds",value:"awaiting_credentials",name:"awaiting_credentials",checked:"awaiting_credentials"===n,onChange:this.onRewindStatusChange}),"Awaiting credentials"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"rewindActive",children:[(0,m.jsx)("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"]})})]}),(0,m.jsxs)("ul",{children:[(0,m.jsx)("strong",{children:"Scan"}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"scanUnavailable",children:[(0,m.jsx)("input",{type:"radio",id:"scanUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===r,onChange:this.onScanStatusChange}),"Unavailable"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"scanProvisioning",children:[(0,m.jsx)("input",{type:"radio",id:"scanProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===r,onChange:this.onScanStatusChange}),"Provisioning"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"scanIdle",children:[(0,m.jsx)("input",{type:"radio",id:"scanIdle",value:"idle",name:"idle",checked:"idle"===r,onChange:this.onScanStatusChange}),"Idle"]})}),(0,m.jsx)("li",{children:(0,m.jsxs)("label",{htmlFor:"scanScanning",children:[(0,m.jsx)("input",{type:"radio",id:"scanScanning",value:"scanning",name:"scanning",checked:"scanning"===r,onChange:this.onScanStatusChange}),"Scanning"]})})]}),this.maybeShowStatsToggle(),this.showIsLinkedToggle()]})}}const w=(0,o.Ng)(e=>({isDevVersion:(0,p.gF)(e),sitePlan:(0,g.X6)(e),canDisplayDevCard:(0,d.M4)(e),isUserLinked:(0,l._U)(e),canViewStats:(0,p.WC)(e),isConnectionOwner:(0,l.uQ)(e),isAdmin:(0,p.xQ)(e),canEditPosts:(0,p.jM)(e),getVaultPressScanThreatCount:()=>(0,c.mK)(e),rewindStatus:(0,u.Qi)(e),scanStatus:(0,h.W4)(e)}),e=>({switchPlanPreview:t=>e((0,d.IM)(t)),switchUserPermissions:t=>e((0,d.jF)(t)),switchThreats:t=>e((0,d.oS)(parseInt(t))),disableDevCard:()=>e((0,d.ug)()),switchRewindState:t=>e((0,d.JF)(t)),switchScanState:t=>e((0,d.TH)(t))}))(v)},97058(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(26592),c=n(23443),l=n(31497),d=n(752),p=(n(72140),n(10790));const u=()=>{};class h extends i.Component{static propTypes={actionButton:o().element,actionButtonExpanded:o().element,cardKey:o().string,compact:o().bool,disabled:o().bool,expandedSummary:o().oneOfType([o().string,o().element]),expanded:o().bool,icon:o().string,onClick:o().func,onClose:o().func,onOpen:o().func,summary:o().oneOfType([o().string,o().element]),clickableHeader:o().bool,clickableHeaderText:o().bool};static defaultProps={onOpen:u,onClose:u,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(0,p.jsx)("button",{className:"dops-foldable-card__action",onClick:e,children:this.getActionButton()});if(this.props.children){const t=24;return(0,p.jsxs)("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e,children:[(0,p.jsx)("span",{className:"screen-reader-text",children:"More"}),(0,p.jsx)(l.A,{icon:this.props.icon,size:t})]})}};renderContent=()=>(0,p.jsx)("div",{className:"dops-foldable-card__content",children:this.props.children});renderHeader=()=>{const e=this.props.summary?(0,p.jsxs)("span",{className:"dops-foldable-card__summary",children:[this.props.summary," "]}):null,t=this.props.expandedSummary?(0,p.jsxs)("span",{className:"dops-foldable-card__summary_expanded",children:[this.props.expandedSummary," "]}):null,n=this.props.header?(0,p.jsx)("div",{className:"dops-foldable-card__header-text",children:this.props.header}):null,r=this.props.subheader?(0,p.jsx)("div",{className:"dops-foldable-card__subheader",children:this.props.subheader}):null,o={role:"button",tabIndex:0,onClick:this.getClickAction(),onKeyDown:(0,d.A)(this.getClickAction())},i=(0,s.A)("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),a=(0,s.A)("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return(0,p.jsxs)("div",{className:i,...this.props.clickableHeader?o:{},children:[(0,p.jsx)("span",{className:"dops-foldable-card__main",children:(0,p.jsxs)("div",{className:a,...this.props.clickableHeaderText?o:{},children:[n,r]})}),(0,p.jsxs)("span",{className:"dops-foldable-card__secondary",children:[e,t,this.renderActionButton()]})]})};render(){const e=this.props.compact?c.A:a.A,t=(0,s.A)("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return(0,p.jsxs)(e,{className:t,children:[this.renderHeader(),this.state.expanded&&this.renderContent()]})}}const g=h},77279(e,t,n){"use strict";n.d(t,{A:()=>b});var s=n(3924),r=n(38250),o=n(50723),i=n(97999),a=n(27723),c=n(13022),l=n(51609),d=n(71766),p=n(27338),u=n(53835),h=n(34679),g=n(69531),f=n(2065),m=n(752),v=n(10790);const __=a.__,_x=a._x;class w extends l.Component{static displayName="Footer";resetOnClick=()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&this.props.resetOptions()};trackVersionClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"version"})};trackModulesClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"modules"})};trackDebugClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"debug"})};render(){const e=(0,c.A)(this.props.className,"jp-footer"),t=this.props.currentVersion,n=[];return(0,i.isJetpackSelfHostedSite)()&&n.push({label:(0,a.sprintf)(/* Translators: %s: a version number. */ | |
| 20 | +__("Version %s","jetpack"),t),href:(0,s.A)("jetpack"),target:"_blank",onClick:this.trackVersionClick}),this.props.siteConnectionStatus&&this.props.userCanManageOptions&&n.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&&n.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&&n.push({label:_x("Reset Options (dev only)","Navigation item.","jetpack"),role:"button",onKeyDown:(0,m.A)(this.resetOnClick),onClick:this.resetOnClick}),this.props.isDevVersion&&n.push({label:_x("Dev Tools","Navigation item.","jetpack"),role:"button",onKeyDown:(0,m.A)(this.props.enableDevCard),onClick:this.props.enableDevCard}),(0,v.jsx)(o.Ay,{children:(0,v.jsxs)("div",{className:(0,c.A)("jp-footer",e),children:[(0,v.jsx)("div",{className:"jp-footer__container",children:(0,v.jsx)(r.A,{menu:n})}),this.props.isDevVersion&&this.props.displayDevCard&&(0,v.jsx)(p.A,{})]})})}}const b=(0,d.Ng)(e=>({currentVersion:(0,f.Mj)(e),displayDevCard:(0,g.M4)(e),isDevVersion:(0,f.gF)(e),isInIdentityCrisis:(0,h.T$)(e),siteConnectionStatus:(0,h.i$)(e),userCanManageOptions:(0,f.hN)(e)}),e=>({resetOptions:()=>e((0,g.yB)("options")),enableDevCard:()=>e((0,g.$K)())}))(w)},94025(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(31497),c=(n(25097),n(10790));class l extends i.Component{static displayName="FormInputValidation";static propTypes={isError:o().bool,isWarning:o().bool,text:o().node,icon:o().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(0,c.jsx)("div",{className:e,children:(0,c.jsxs)("span",{children:[(0,c.jsx)(a.A,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text]})})}}},34484(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(39612),r=n.n(s),o=n(13022),i=n(28120),a=n.n(i),c=n(51609),l=n(70386),d=n(10790);const p=()=>{};class u extends c.Component{static displayName="ClipboardButton";static propTypes={className:a().string,text:a().string,prompt:a().string,onCopy:a().func,rna:a().bool};static defaultProps={onCopy:p,rna:!1};buttonRef=(0,c.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(0,d.jsx)(l.A,{rna:this.props.rna,ref:this.buttonRef,...Object.fromEntries(Object.entries(this.props).filter(([e])=>!Object.hasOwn(this.constructor.propTypes,e))),className:e})}}},62413(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(13022),r=n(51609),o=n(38970),i=n(10790);class a extends r.Component{static displayName="CompactFormToggle";render(){return(0,i.jsx)(o.A,{...this.props,className:(0,s.A)(this.props.className,"is-compact"),children:this.props.children})}}},38970(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(61933),c=(n(88124),n(10790));class l extends i.Component{static propTypes={onChange:o().func,onKeyDown:o().func,checked:o().bool,disabled:o().bool,id:o().string,className:o().string,toggling:o().bool,"aria-label":o().string,children:o().node,disabledReason:o().node};static defaultProps={checked:!1,disabled:!1,onKeyDown:()=>{},onChange:()=>{},disabledPopoverPosition:"bottom",disabledReason:""};toggleSwitchRef=(0,i.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=()=>(0,c.jsx)(a.A,{isVisible:this.state.showPopover,context:this.toggleSwitchRef.current,position:this.props.disabledPopoverPosition,onClose:this._onPopoverClose,className:"dops-info-popover__tooltip",children: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(0,c.jsxs)("span",{children:[(0,c.jsx)("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),(0,c.jsxs)("label",{className:"form-toggle__label",htmlFor:e,children:[(0,c.jsx)("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}),(0,c.jsx)("span",{className:"form-toggle__label-content",onClick:this.onLabelClick,children:this.props.children})]}),this.renderPopover()]})}}},11895(e,t,n){"use strict";n.d(t,{FX:()=>u,dV:()=>c,hg:()=>p,kK:()=>d,lR:()=>l});n(27723);var s=n(13022),r=n(66087),o=n(51609),i=(n(70386),n(98872)),a=n(10790);const c=e=>(0,a.jsx)("fieldset",{...e,className:(0,s.A)(e.className,"jp-form-fieldset"),children:e.children});class l extends o.Component{static displayName="FormLabel";render(){const{className:e,htmlFor:t,...n}=this.props;return(0,a.jsx)("label",{...n,htmlFor:t,className:(0,s.A)(e,"jp-form-label"),children:this.props.children})}}class d extends o.Component{static displayName="FormLegend";render(){return(0,a.jsx)("legend",{...this.props,className:(0,s.A)(this.props.className,"jp-form-legend"),children:this.props.children})}}class p extends o.Component{static displayName="FormTextarea";render(){return(0,a.jsx)("textarea",{...this.props,className:(0,s.A)(this.props.className,"jp-form-textarea"),children:this.props.children})}}class u extends o.Component{handleOnSelect=e=>{this.props.onOptionChange({target:{type:"select",name:this.props.name,value:e.value}})};render(){const e=[];return(0,r.forOwn)(this.props.validValues,(t,n)=>{e.push({label:t,value:n})}),(0,a.jsx)(i.A,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value,rna:this.props.rna})}}},10967(e,t,n){"use strict";n.d(t,{A:()=>v});var s=n(10067),r=n.n(s),o=n(28120),i=n.n(o),a=n(51609),c=n(71766),l=n(16278),d=n(11346),p=n(44089),u=n(84202),h=n(5546),g=(n(32471),n(10790));const f=r()("calypso:notices");class m extends a.Component{static displayName="NoticesList";static propTypes={id:i().string,notices:i().oneOfType([i().object,i().array])};static defaultProps={id:"overlay-notices",notices:Object.freeze([])};UNSAFE_componentWillMount(){f("Mounting Global Notices React component.")}removeNotice=e=>{e&&u.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(0,g.jsx)(d.A,{status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss,children:e.button&&(0,g.jsx)(p.A,{href:e.href,onClick:e.onClick,children:e.button})},"notice-old-"+t)},this);return e=e.concat(this.props.storeNotices.map(function(e){return(0,g.jsx)(d.A,{status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text},e.instanceId)},this)),e.length?(0,g.jsx)("div",{id:this.props.id,className:"global-notices",children:e}):null}}const v=(0,c.Ng)(e=>({storeNotices:e.globalNotices}),e=>(0,l.zH)({removeNotice:h.fj},e))(m)},67961(e,t,n){"use strict";n.d(t,{I:()=>r,c:()=>s});const s="NEW_NOTICE",r="REMOVE_NOTICE"},5546(e,t,n){"use strict";n.d(t,{Fc:()=>i,fj:()=>o});var s=n(66087),r=n(67961);function o(e){return{noticeId:e,type:r.I}}function i(e,t,n={}){const o={noticeId:n.id||(0,s.uniqueId)(),instanceId:(0,s.uniqueId)("notice-instance-"),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:r.c,notice:o}}i.bind(null,"is-success"),i.bind(null,"is-error"),i.bind(null,"is-info"),i.bind(null,"is-warning")},73161(e,t,n){"use strict";n.d(t,{x:()=>o});var s=n(16278),r=n(67961);function o(e=[],t){switch(t.type){case r.c:return[t.notice,...e];case r.I:return e.filter(e=>e.noticeId!==t.noticeId)}return e}(0,s.HY)({globalNotices:o})},31497(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=(n(12725),n(10790));class c extends i.PureComponent{static displayName="Gridicon";static defaultProps={className:"",size:24};static propTypes={icon:o().string.isRequired,size:o().number,onClick:o().func,className:o().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),n=this.needsOffsetX(e,this.props.size),r=this.needsOffsetY(e,this.props.size),o=(0,s.A)("gridicon",e,this.props.className,{"needs-offset":t,"needs-offset-x":n,"needs-offset-y":r});let i;switch(e){default:i=(0,a.jsx)("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})})});break;case"gridicons-align-image-center":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})})});break;case"gridicons-align-image-left":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})})});break;case"gridicons-align-image-none":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})})});break;case"gridicons-align-image-right":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})})});break;case"gridicons-align-justify":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})})});break;case"gridicons-align-left":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})})});break;case"gridicons-align-right":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})})});break;case"gridicons-arrow-down":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})})});break;case"gridicons-arrow-up":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})})});break;case"gridicons-aside":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})})});break;case"gridicons-briefcase":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})})});break;case"gridicons-chevron-left":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})})});break;case"gridicons-chevron-right":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})})});break;case"gridicons-chevron-up":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})})});break;case"gridicons-clear-formatting":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M7 10l5 5 5-5"})})});break;case"gridicons-ellipsis":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})})});break;case"gridicons-flip-horizontal":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})})});break;case"gridicons-heart-outline":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("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"}),(0,a.jsx)("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})]})});break;case"gridicons-house":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})})});break;case"gridicons-image-multiple":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})})});break;case"gridicons-italic":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})})});break;case"gridicons-menus":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M6 11h12v2H6z"})})});break;case"gridicons-minus":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M3 11h18v2H3z"})})});break;case"gridicons-my-sites-horizon":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})})});break;case"gridicons-plus":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})})});break;case"gridicons-popout":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})})});break;case"gridicons-print":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})})});break;case"gridicons-speaker":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})})});break;case"gridicons-stats":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)("g",{children:(0,a.jsx)("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":i=(0,a.jsx)("svg",{className:o,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("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"}),(0,a.jsx)("g",{children:(0,a.jsx)("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 i}}const l=c},63242(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(31497),c=n(61933),l=n(53835),d=(n(58648),n(10790));const p=()=>{},u=class extends i.Component{static displayName="InfoPopover";static propTypes={id:o().string,position:o().string,className:o().string,rootClassName:o().string,gaEventCategory:o().string,popoverName:o().string,onClick:o().func,ignoreContext:o().shape({getDOMNode:o().function})};static defaultProps={position:"bottom",onClick:p};infoPopoverRef=(0,i.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(0,d.jsxs)("button",{ref:this.infoPopoverRef,className:e,onClick:this._onClick,children:[(0,d.jsx)(a.A,{icon:"info-outline",size:18}),this.props.screenReaderText?(0,d.jsx)("span",{className:"screen-reader-text",children:this.props.screenReaderText}):"",(0,d.jsx)(c.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,children: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 n=this.state.showPopover?" Opened":" Closed";l.A.ga.recordEvent(e,"InfoPopover: "+t+n)}}};n.dn(u)},3983(e,t,n){"use strict";n.d(t,{Ay:()=>u,Ng:()=>p,xz:()=>d});var s=n(28120),r=n.n(s),o=n(71766),i=n(36336),a=n(2065),c=n(10790);const l=()=>{};class d extends i.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,isPromotion:r().bool};static defaultProps={onClick:l,trackBannerDisplay:l,plan:"",rna:!1,noIcon:!1,isPromotion:!0};componentDidMount(){!this.props.hidePromotionBanner&&this.props.arePromotionsActive&&this.props.trackBannerDisplay()}render(){return this.props.isPromotion&&this.props.hidePromotionBanner?null:!this.props.isPromotion||this.props.arePromotionsActive?(0,c.jsx)(i.lZ,{...this.props}):null}}function p(e){return(0,o.Ng)((e,t)=>{const n=(0,a.Ir)(e);return{arePromotionsActive:(0,a.Xr)(e),userCanPurchasePlan:n,hidePromotionBanner:!!t.plan&&!n}})((0,i.Ng)(e))}const u=p(d)},17949(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(3924),r=n(39384),o=n(86087),i=n(27723),a=n(57273),c=n(28120),l=n.n(c),d=n(51609),p=(n(30689),n(10790));const __=i.__,u=e=>{const{siteBenefits:t,context:n="disconnect"}=e;return(0,p.jsxs)(d.Fragment,{children:[t.length>0&&(0,p.jsxs)(d.Fragment,{children:[(0,p.jsx)("div",{className:"jp-connection__disconnect-dialog__step-copy",children:(0,p.jsx)("p",{className:"jp-connection__disconnect-dialog__large-text",children:"disconnect"===n?__("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)})}),(0,p.jsx)("div",{className:"jp-connection__disconnect-card__group",children:t.map(({value:e,description:t,title:n},s)=>(0,p.jsx)(r.DisconnectCard,{title:n,value:e,description:t},s))})]}),t.length<=2&&(0,p.jsxs)("div",{className:"jetpack-benefits__general-benefits-section",children:[(0,p.jsx)("p",{className:"jp-connection__disconnect-dialog__large-text",children:__("Jetpack has many powerful tools that can help you achieve your goals","jetpack")}),(0,p.jsxs)("ul",{className:"jetpack-benefits__general-benefits-list",children:[(0,p.jsx)("li",{children:(0,o.createInterpolateElement)(__("Speed up your site and provide mobile-ready images with <Link>our CDN</Link>","jetpack"),{Link:(0,p.jsx)(a.N,{openInNewTab:!0,href:(0,s.A)("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})})},"reason-cdn"),(0,p.jsx)("li",{children:(0,o.createInterpolateElement)(__("Block <Link>brute force attacks</Link> and get immediate notifications if your site is down","jetpack"),{Link:(0,p.jsx)(a.N,{openInNewTab:!0,href:(0,s.A)("jetpack-features-brute-force"),rel:"noopener noreferrer",target:"_blank"})})},"reason-brute-force"),(0,p.jsx)("li",{children:(0,o.createInterpolateElement)(__("Grow your traffic with automated social <Link>publishing and sharing</Link>","jetpack"),{Link:(0,p.jsx)(a.N,{openInNewTab:!0,href:(0,s.A)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})})},"reason-social")]})]})]})};u.propTypes={siteBenefits:l().array,context:l().oneOf(["disconnect","deactivate"])};const h=u},64249(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(27723),r=n(57273),o=n(28120),i=n.n(o),a=n(11346),c=n(10790);const __=s.__,l=({dismissNotice:e,message:t,link:n,linkText:s,title:o})=>(0,c.jsxs)(a.A,{status:"is-warning",title:o,dismissText:__("Dismiss","jetpack"),onDismissClick:e,children:[(0,c.jsx)("div",{children:t}),n&&(0,c.jsx)(r.N,{openInNewTab:!0,href:n,children:s})]});l.propTypes={dismissNotice:i().func.isRequired,message:i().string.isRequired,link:i().string,linkText:i().string,title:i().string};const d=l},13724(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(51609),r=n(71766),o=n(16278),i=n(71607);class a extends s.Component{static displayName="DismissableNotices";dismissJetpackActionNotice=()=>{this.props.dismissJetpackActionNotice(this.props.jetpackNotices)};renderNotices=()=>{this.props.jetpackNotices;return!1};render(){return this.renderNotices()||null}}const c=(0,r.Ng)(e=>({jetpackNotices:(0,i.C8)(e),isDismissed:t=>(0,i.i$)(e,t)}),e=>(0,o.zH)({dismissJetpackActionNotice:i.Ll},e))(a)},19327(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(27723),r=n(28120),o=n.n(r),i=n(51609),a=n(11346),c=n(30791),l=n(10790);const __=s.__;class d extends i.Component{static defaultProps={text:__("Connection Error, please reconnect.","jetpack"),display:!0};static propTypes={text:o().string.isRequired,errorCode:o().string,errorData:o().object,action:o().string,display:o().bool};render(){return(0,l.jsx)(a.A,{showDismiss:!1,text:this.props.text,status:"is-error",display:this.props.display,children:(0,l.jsx)(c.A,{errorCode:this.props.errorCode,errorData:this.props.errorData,action:this.props.action,children:__("Restore Connection","jetpack")})})}}},91808(e,t,n){"use strict";n.d(t,{Ay:()=>O});var s=n(3924),r=n(86087),o=n(27723),i=n(98839),a=n(28120),c=n.n(a),l=n(51609),d=n(71766),p=n(55155),u=n(84705),h=n(94197),g=n(10967),f=n(11346),m=n(44089),v=n(69546),w=n(34679),b=n(2065),y=n(7237),k=n(82656),_=n(64249),x=n(13724),j=n(78857),C=n(25679),S=n(76847),A=n(10790);const __=o.__;class E extends l.Component{static displayName="DevVersionNotice";render(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&(0,A.jsx)(f.A,{showDismiss:!1,text:__("You are currently running a development version of Jetpack.","jetpack"),children:(0,A.jsx)(m.A,{href:v.Ns,external:!0,children:__("Submit Beta feedback","jetpack")})})}}E.propTypes={isDevVersion:c().bool.isRequired,userIsSubscriber:c().bool.isRequired};class M extends l.Component{static displayName="OfflineModeNotice";render(){if("offline"===this.props.siteConnectionStatus){const e=this.props.siteOfflineMode,t=[];e.filter&&t.push(__("The jetpack_offline_mode filter is active","jetpack")),e.constant&&t.push((0,o.sprintf)(/* translators: %s: a PHP constant, such as WP_LOCAL_DEV. */ | |
| 21 | +__("The %s constant is defined","jetpack"),"JETPACK_DEV_DEBUG")),e.wpLocalConstant&&t.push((0,o.sprintf)(/* translators: %s: a PHP constant, such as WP_LOCAL_DEV. */ | |
| 22 | +__("The %s constant is defined","jetpack"),"WP_LOCAL_DEV")),e.url&&t.push(__("Your site URL is a known local development environment URL","jetpack")),e.option&&t.push(__("The jetpack_offline_mode option is active","jetpack"));const n=(0,r.createInterpolateElement)(/* translators: reasons is an unordered list of reasons why a site may be in Offline mode. */ | |
| 23 | +__("Currently in <a>Offline Mode</a> (some features are disabled) because: <reasons/>","jetpack"),{a:(0,A.jsx)("a",{href:(0,s.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:(0,A.jsx)("ul",{children:t.map((e,t)=>(0,A.jsx)("li",{children:e},t))})});return(0,A.jsx)(f.A,{showDismiss:!1,status:"is-info",text:n,children:(0,A.jsx)(m.A,{href:(0,s.A)("jetpack-support-development-mode"),children:__("Learn More","jetpack")})})}return!1}}M.propTypes={siteConnectionStatus:c().oneOfType([c().string,c().bool]).isRequired,siteOfflineMode:c().oneOfType([c().bool,c().object]).isRequired};class N extends l.Component{static displayName="UserUnlinked";render(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&(0,A.jsx)("div",{className:"jp-unlinked-notice",children:(0,A.jsx)(h.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:(0,A.jsx)(u.d6,{icon:"wordpress",size:24}),className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0})})}}N.propTypes={connectUrl:c().string.isRequired,siteConnected:c().bool.isRequired};class T extends l.Component{static displayName="JetpackNotices";dismissNotice=e=>{document.cookie=`jetpack_deprecate_dismissed[${e}]=1; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/; Secure; SameSite=None`};render(){const e=this.props.siteDataErrors.filter(e=>Object.hasOwn(e,"action")),t=this.props.location.pathname.startsWith("/connect-user");return(0,A.jsxs)(i.B,{direction:"column",gap:"xl","aria-live":"polite",children:[(0,A.jsx)(g.A,{}),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&(this.props.connectionErrors.length>0||e.length>0)&&(0,A.jsx)(j.A,{errors:this.props.connectionErrors.concat(e),display:!this.props.isReconnectingSite}),(0,A.jsx)(S.A,{}),(0,A.jsx)(E,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),(0,A.jsx)(M,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),(0,A.jsx)(C.A,{location:this.props.location}),(0,A.jsx)(x.A,{}),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&!t&&(0,A.jsx)(N,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&(0,A.jsx)(f.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&&(0,A.jsx)(f.A,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}),window.noticeInfo&&Object.entries(window.noticeInfo).map(([e,{title:t,message:n,link:r}])=>(0,A.jsx)(_.A,{noticeKey:e,dismissNotice:()=>this.dismissNotice(e),title:t,message:n,link:(0,s.A)(r.url),linkText:r.label},e))]})}}const O=(0,d.Ng)(e=>({connectUrl:(0,w.Qp)(e),siteConnectionStatus:(0,w.i$)(e),userCanConnectSite:(0,b.Hz)(e),userCanConnectAccount:(0,b.Lv)(e),userIsSubscriber:(0,b.EV)(e),isConnectionOwner:(0,w.uQ)(e),isLinked:(0,w._U)(e),isDevVersion:(0,b.gF)(e),siteOfflineMode:(0,w.KK)(e),isInIdentityCrisis:(0,w.T$)(e),connectionErrors:(0,b.wz)(e),siteDataErrors:(0,k.F3)(e),isReconnectingSite:(0,w.Vs)(e),licensingError:(0,y.fZ)(e),hasConnectedOwner:(0,w.BG)(e)}),e=>({clearLicensingError:()=>e((0,y.A5)())}))(e=>(0,A.jsx)(T,{...e,location:(0,p.zy)()}))},78857(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(27723),r=n(98839),o=n(28120),i=n.n(o),a=n(51609),c=n(11346),l=n(44089),d=n(69546),p=n(19327),u=n(10790);const __=s.__;class h extends a.Component{static propTypes={errors:i().array.isRequired,display:i().bool};static defaultProps={display:!0};getAction(e,t,n,s,r){switch(e){case"reconnect":return(0,u.jsx)(p.A,{text:t,errorCode:n,errorData:s,action:e,display:this.props.display});case"support":return(0,u.jsx)(c.A,{text:t,status:"is-error",showDismiss:!1,display:this.props.display,children:(0,u.jsx)(l.A,{href:r,external:!0,children:__("Contact support","jetpack")})});case"none":return(0,u.jsx)(c.A,{text:t,status:"is-error",showDismiss:!1,display:this.props.display});default:if(s.action_url&&s.action_label){const e=[(0,u.jsx)(l.A,{href:s.action_url,children:s.action_label},"primary")];return s.secondary_action_url&&s.secondary_action_label&&e.push((0,u.jsx)(l.A,{href:s.secondary_action_url,children:s.secondary_action_label},"secondary")),(0,u.jsx)(c.A,{text:t,status:"is-error",showDismiss:!1,display:this.props.display,children:e})}return(0,u.jsx)(p.A,{text:t,errorCode:n,errorData:s,action:"reconnect",display:this.props.display})}}renderOne(e){const t=this.props.isDevVersion?d.Ns:d.Iu,n=this.getAction(e.action,e.message,e.code,Object.hasOwn(e,"data")?e.data:{},t);return null===n?null:(0,u.jsx)(a.Fragment,{children:n},e.action)}render(){const e={},t=this.props.errors.filter(e=>Object.hasOwn(e,"action"));for(const n of t)Object.hasOwn(e,n.action)||(e[n.action]=n);return(0,u.jsx)(r.B,{direction:"column",gap:"xl",children:Object.values(e).map(e=>this.renderOne(e))})}}},30791(e,t,n){"use strict";n.d(t,{A:()=>m});var s=n(39384),r=n(27723),o=n(28120),i=n.n(o),a=n(51609),c=n(71766),l=n(5546),d=n(44089),p=n(53835),u=n(44254),h=n(34679),g=n(10790);const __=r.__,f=e=>{const{restoreConnection:t}=(0,s.useRestoreConnection)(),n=(0,a.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]),r=(0,a.useCallback)(()=>(e.beforeReconnectSite(),t(!1).then(t=>{"in_progress"===t.status&&e.initiateUserConnection(t.authorizeUrl)}).catch(t=>e.reconnectFailed(t))),[e,t]),o=(0,a.useCallback)(()=>{e.isReconnectingSite||(p.A.tracks.recordEvent("jetpack_termination_error_notice_click",n()),r())},[e.isReconnectingSite,n,r]);return(0,a.useEffect)(()=>{p.A.tracks.recordEvent("jetpack_termination_error_notice_view",n())},[n]),(0,g.jsx)(d.A,{onClick:o,children:e.children})};f.propTypes={errorCode:i().string,errorData:i().object,action:i().string};const m=(0,c.Ng)(e=>({isReconnectingSite:(0,h.Vs)(e)}),e=>({beforeReconnectSite:()=>{e({type:u._c}),e((0,l.Fc)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:u.c3}),e({type:u.gb,connectUrl:t}),e((0,h.k0)())},reconnectFailed:t=>{e({type:u.jz,error:t}),e((0,l.fj)("reconnect-jetpack")),e((0,l.Fc)("is-error",(0,r.sprintf)(/* translators: %s: the error. */ | |
| 24 | +__("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}}))(f)},25679(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(27723),r=n(71766),o=n(55155),i=n(11346),a=n(82656),c=n(10790);const __=s.__;const l=(0,r.Ng)(e=>({activeSitePurchases:(0,a.Ec)(e)}))(function({activeSitePurchases:e}){const{pathname:t}=(0,o.zy)();if("/plans"!==t)return null;if(e.length<=1)return null;const n=e.map(({product_slug:e,...t})=>({...t,product_slug:e.replace("_monthly","")})),r=n.find(({product_slug:e})=>e.includes("backup"));if(!r)return null;const a=n.find(({product_slug:e})=>"jetpack_personal"===e||"jetpack_premium"===e||"jetpack_business"===e);if(!a)return null;if("jetpack_backup_realtime"===r.product_slug&&"jetpack_business"!==a.product_slug)return null;let l=__("daily backups","jetpack");return"jetpack_business"===a.product_slug&&(l=__("real-time backups","jetpack")),(0,c.jsx)(i.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". */ | |
| 25 | +__("Your %2$s Plan includes %1$s. Looks like you also purchased the %3$s product. Consider removing %3$s.","jetpack"),l,a.product_name,r.product_name)})})},76847(e,t,n){"use strict";n.d(t,{A:()=>m});var s=n(3924),r=n(97999),o=n(86087),i=n(27723),a=n(57273),c=n(51609),l=n(71766),d=n(11346),p=n(44089),u=n(2065),h=n(71607),g=n(10790);const __=i.__;class f extends c.Component{static displayName="JetpackStateNotices";state={showNotice:!0};dismissJetpackStateNotice=()=>{this.setState({showNotice:!1})};getGenericErrorMessage=e=>(0,o.createInterpolateElement)((0,i.sprintf)(/* translators: %s: an error code. */ | |
| 26 | +__("<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:(0,g.jsx)("strong",{})});getErrorFromKey=e=>{const t=this.props.jetpackStateNoticesErrorDescription||!1;let n;switch(e){case"cheatin":n=__("Cheatin' uh?","jetpack");break;case"access_denied":n=(0,o.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:(0,g.jsx)("a",{href:(0,s.A)("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:(0,g.jsx)("p",{})});break;case"wrong_state":n=__("You need to stay logged in to your WordPress blog while you authorize Jetpack.","jetpack");break;case"invalid_client":n=__("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.","jetpack");break;case"invalid_grant":n=__('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.',"jetpack");break;case"site_inaccessible":case"site_requires_authorization":n=(0,i.sprintf)(/* translators: %s: an error code and message. */ | |
| 27 | +__("Your website needs to be publicly accessible to use Jetpack: %s","jetpack"),e);break;case"connection_disabled":n=(0,o.createInterpolateElement)(__("This site can't be connected to WordPress.com because it violates our <a>Terms of Service</a>.","jetpack"),{a:(0,g.jsx)(a.N,{openInNewTab:!0,href:(0,s.A)("wpcom-tos")})});break;case"not_public":n=(0,o.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:(0,g.jsx)("strong",{})});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=__("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":n=(0,i.sprintf)(/* translators: %s: an error code and message. */ | |
| 28 | +__("Jetpack could not contact WordPress.com: %s. This usually means something is incorrectly configured on your web host.","jetpack"),e);break;default:n=this.getGenericErrorMessage(e)}return t?(0,g.jsxs)("div",{children:[n,(0,g.jsx)("br",{}),t]}):(0,g.jsx)("div",{children:n})};getMessageFromKey=e=>{let t,n="",a="is-info";switch(e){case"modules_activated":(0,r.isJetpackSelfHostedSite)()&&(n=(0,o.createInterpolateElement)((0,i.sprintf)(/* translators: %s: a version number, like 8.8. */ | |
| 29 | +__("Welcome to <s>Jetpack %s</s>!","jetpack"),this.props.currentVersion),{s:(0,g.jsx)("strong",{})}));break;case"already_authorized":n=__("Your Jetpack is already connected.","jetpack"),a="is-success";break;case"authorized":n=__("You're fueled up and ready to go, Jetpack is now active.","jetpack"),a="is-success";break;case"linked":n=__("You're fueled up and ready to go.","jetpack"),a="is-success";break;case"protect_misconfigured_ip":n=__("Your server is misconfigured, which means that Jetpack Brute Force Protection is unable to effectively protect your site.","jetpack"),a="is-info",t=(0,g.jsx)(p.A,{href:(0,s.A)("jetpack-support-security-troubleshooting-protect"),children:__("Learn More","jetpack")});break;case"reconnection_completed":n=(0,o.createInterpolateElement)(__("Jetpack successfully reconnected! You can check your Jetpack Connection health by visiting the <a>Site Health tool</a>.","jetpack"),{a:(0,g.jsx)("a",{href:this.props.siteAdminUrl+"site-health.php"})}),a="is-success";break;default:n=e}return[n,a,t]};renderContent=()=>{let e,t="is-info",n="";const s=this.props.jetpackStateNoticesErrorCode,r=this.props.jetpackStateNoticesMessageCode;if(s||r){if(s&&(n=this.getErrorFromKey(s),"access_denied"!==s&&(t="is-error")),r){const s=this.getMessageFromKey(r);n=s[0],t=s[1],e=s[2]}if(""!==n)return(0,g.jsx)(d.A,{status:t,onDismissClick:this.dismissJetpackStateNotice,text:n,children:e})}};render(){return this.state.showNotice?this.renderContent()??null:null}}const m=(0,l.Ng)(e=>({currentVersion:(0,u.Mj)(e),jetpackStateNoticesErrorCode:(0,h.sT)(e),jetpackStateNoticesMessageCode:(0,h.Fc)(e),jetpackStateNoticesErrorDescription:(0,h.nV)(e),siteAdminUrl:(0,u.eu)(e)}))(f)},4443(e,t,n){"use strict";n.d(t,{A:()=>p});var s=n(67142),r=n(27723),o=n(51609),i=n(71766),a=n(53835),c=n(34679),l=n(10790);const __=r.__;class d extends o.Component{trackLogoClick=()=>{a.A.tracks.recordJetpackClick({target:"masthead",path:"logo"})};testConnection=()=>this.props.testConnection();getTitle(){const{pathname:e=""}=this.props.location||{};return["/settings","/security","/performance","/writing","/sharing","/discussion","/earn","/newsletter","/reader","/traffic","/privacy"].includes(e)?__("Settings","jetpack"):__("Jetpack","jetpack")}render(){const{sandboxDomain:e,siteConnectionStatus:t}=this.props,n="offline"===t?(0,l.jsx)("code",{children:"Offline Mode"}):"",r=e?(0,l.jsx)("code",{id:"sandbox-domain-badge",onClick:this.testConnection,onKeyDown:this.testConnection,role:"button",tabIndex:0,title:`Sandboxing via ${e}. Click to test connection.`,children:"API Sandboxed"}):"";return(0,l.jsx)("header",{className:"jp-masthead",children:(0,l.jsx)("div",{className:"jp-masthead__inside-container",children:(0,l.jsxs)("div",{className:"jp-masthead__title-container",children:[(0,l.jsx)("a",{onClick:this.trackLogoClick,className:"jp-masthead__logo-link",href:"#/settings",children:(0,l.jsx)(s.A,{showText:!1,height:20})}),(0,l.jsx)("h2",{className:"jp-masthead__title",children:this.getTitle()}),n,r]})})})}}const p=(0,i.Ng)(e=>({sandboxDomain:(0,c.os)(e),siteConnectionStatus:(0,c.i$)(e)}),e=>({testConnection:()=>e((0,c.Mb)())}))(d)},45078(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(3924),r=n(86087),o=n(27723),i=n(13022),a=n(28120),c=n.n(a),l=n(3983),d=(n(3168),n(10790));const __=o.__;class p extends l.xz{static propTypes={moduleName:c().string.isRequired};render(){if(!this.props.moduleName)return null;const e=(0,i.A)("module-overridden-banner",{"is-compact":this.props.compact});return(0,d.jsx)(l.xz,{className:e,title:this.props.moduleName,icon:"cog",description:(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %s: a feature name. */ | |
| 30 | +__("%s has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),this.props.moduleName),{link:(0,d.jsx)("a",{href:(0,s.A)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}const u=(0,l.Ng)(p)},53600(e,t,n){"use strict";n.d(t,{Z:()=>l});var s=n(27723),r=n(71766),o=n(34679),i=n(2065),a=n(26508),c=n(30138);const __=s.__;function l(e){return(0,r.Ng)((e,t)=>({validValues:(n,s="")=>("string"==typeof t?.module?.module&&(s=t.module.module),(0,a.W7)(e,s,n)),getOptionCurrentValue:(t,n)=>(0,a.Kb)(e,t,n),getSettingCurrentValue:(t,n="",s=!0)=>(0,c.PL)(e,t,n,s),getSiteRoles:()=>(0,i.PH)(e),isUpdating:t=>(0,c.Ny)(e,t),adminEmailAddress:(0,i.q1)(e),currentIp:(0,i.n9)(e),siteAdminUrl:(0,i.eu)(e),isCurrentUserLinked:(0,o._U)(e)}),e=>({updateOptions:(t,n={})=>e((0,c.Xx)(t,n)),regeneratePostByEmailAddress:()=>{const t={progress:__("Updating Post by Email address…","jetpack"),success:__("Regenerated Post by Email address.","jetpack"),error:e=>(0,s.sprintf)(/* translators: %s: an error message. */ | |
| 31 | +__("Error regenerating Post by Email address. %s","jetpack"),e)};return e((0,c.Xx)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:()=>e((0,c.ic)()),clearUnsavedSettingsFlag:()=>e((0,c.jo)()),refreshSettings:()=>e((0,c.Uc)())}))(e)}},63344(e,t,n){"use strict";n.d(t,{t:()=>a});var s=n(51609),r=n(53600),o=n(53835),i=n(10790);function a(e){class t extends s.Component{state={options:{}};onOptionChange=e=>{const t=e.target.name;let n;n="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,this.updateFormStateOptionValue(t,n)};updateFormStateOptionValue=(e,t=void 0)=>{"string"==typeof e&&(e={[e]:t});const n={...this.state.options,...e};return this.setState({options:n}),!0};resetFormStateOption=e=>{const{[e]:t,...n}=this.state.options;return this.setState({options:n}),!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,n=!1)=>{this.trackSettingsToggle(e,t,!this.getOptionValue(t)),this.getOptionValue(e)?n?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=Object.fromEntries(Object.entries(this.state.options).map(([e,t])=>[e.replace(/-/,"_"),t]));this.trackFormSubmission(e),this.setState({options:{}})}).then(()=>{this.props.refreshSettings(),this.props.clearUnsavedSettingsFlag()})};getOptionValue=(e,t="",n=!0)=>this.state.options?.[e]??this.props.getSettingCurrentValue(e,t,n);shouldSaveButtonBeDisabled=()=>this.isSavingAnyOption()||!this.isDirty();isDirty=()=>!!Object.keys(this.state.options).length;isSavingAnyOption=(e="")=>this.props.isUpdating(e);trackFormSubmission=e=>{o.A.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)};trackSettingsToggle=(e,t,n)=>{o.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})};render(){return(0,i.jsx)(e,{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,r.Z)(t)}},60619(e,t,n){"use strict";n.d(t,{j:()=>f});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(28120),c=n.n(a),l=n(51609),d=n(71766),p=n(53835),u=n(26508),h=n(10790);const __=i.__;class g extends l.Component{static displayName="ModuleToggle";static propTypes={toggleModule:c().func,activated:c().bool,disabled:c().bool,className:c().string,compact:c().bool,id:c().string,overrideCondition:c().string,trackToggle:c().bool};static defaultProps={activated:!1,disabled:!1,overrideCondition:"",trackToggle:!0};toggleModule=()=>(this.props.trackToggle&&this.trackModuleToggle(this.props.slug,this.props.activated),this.props.toggleModule(this.props.slug,this.props.activated));trackModuleToggle=(e,t)=>{"stats"!==e&&p.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:(0,h.jsx)("a",{href:(0,s.A)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}})};switch(e){case"active":return(0,o.createInterpolateElement)(__("This feature has been enabled by a site administrator. <link>Learn more</link>.","jetpack"),t);case"inactive":return(0,o.createInterpolateElement)(__("This feature has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),t);default:return(0,o.createInterpolateElement)(__("This feature is being managed by a site administrator. <link>Learn more</link>.","jetpack"),t)}};render(){return(0,h.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.activated,className:this.props.className,disabled:this.props.disabled||this.isDisabledByOverride(),onChange:this.toggleModule,help:this.getDisabledReason(),label:this.props.children})}}const f=(0,d.Ng)(e=>({getModuleOverride:t=>(0,u.d1)(e,t)}))(g)},38473(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(28120),r=n.n(s),o=n(51609),i=n(71766),a=n(77496),c=n(34679),l=n(2065),d=n(10790);class p 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"/settings":case"/writing":case"/sharing":case"/performance":this.props.isSubscriber||(t=(0,d.jsx)(a.A,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,userCanManageModules:this.props.userCanManageModules}));break;default:this.props.navigate("/settings",{replace:!0})}return window.wpNavMenuClassChange(),(0,d.jsx)("div",{children:t})};render(){return this.renderMainContent(this.props.location.pathname)}}p.propTypes={isSubscriber:r().bool.isRequired,siteConnectionStatus:r().any.isRequired};const u=(0,i.Ng)(e=>({siteConnectionStatus:(0,c.i$)(e),isSubscriber:(0,l.EV)(e),userCanManageModules:(0,l.Ir)(e)}))(p)},11346(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(88050),r=n(42472),o=n(61868),i=n(61475),a=n(75372),c=n(13022),l=n(28120),d=n.n(l),p=n(51609),u=n(10790);const h=()=>{};class g extends p.Component{static displayName="SimpleNotice";static defaultProps={duration:0,status:null,showDismiss:!0,className:"",onDismissClick:h,display:!0};static propTypes={status:d().string,showDismiss:d().bool,isCompact:d().bool,duration:d().number,text:d().oneOfType([d().oneOfType([d().string,d().node]),d().arrayOf(d().oneOfType([d().string,d().node]))]),title:d().oneOfType([d().string,d().node]),onDismissClick:d().func,dismissText:d().string,className:d().string,display:d().bool};dismissTimeout=null;componentDidMount(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}componentWillUnmount(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}getIntent=()=>{switch(this.props.status){case"is-info":return"info";case"is-success":return"success";case"is-error":return"error";case"is-warning":return"warning";default:return"neutral"}};clearText=e=>"string"==typeof e?e.replace(/(<([^>]+)>)/gi,""):e;render(){const{children:e,className:t,isCompact:n,onDismissClick:l,showDismiss:d=!n,text:p,title:h,dismissText:g,display:f}=this.props,m=p?this.clearText(p):e,v=p?e:null;return(0,u.jsxs)(s.b,{intent:this.getIntent(),className:(0,c.A)("jp-notice",t,{"is-hidden":!f}),spokenMessage:null,children:[h?(0,u.jsx)(r.h,{children:h}):null,(m||0===m)&&(0,u.jsx)(o.V,{render:(0,u.jsx)("div",{}),children:m}),v?(0,u.jsx)(i.E,{children:v}):null,d&&(0,u.jsx)(a.U,{label:g,onClick:l})]})}}},44089(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(38665),r=n(64905),o=n(28120),i=n.n(o),a=n(51609),c=n(10790);class l extends a.Component{static displayName="NoticeAction";static propTypes={href:i().string,onClick:i().func,external:i().bool};static defaultProps={external:!1};render(){const{children:e,href:t,onClick:n,external:o}=this.props;return t?(0,c.jsx)(s.t,{href:t,onClick:n,openInNewTab:o,children:e}):(0,c.jsx)(r.r,{onClick:n,children:e})}}},18547(e,t,n){"use strict";n.d(t,{A:()=>y});var s=n(90372),r=n(5932),o=n(3924),i=n(56427),a=n(86087),c=n(27723),l=n(13109),d=n(48329),p=n(1866),u=n(57273),h=n(13022),g=n(28120),f=n.n(g),m=n(51609),v=(n(31515),n(10790));const __=c.__,w=({title:e,onClick:t=()=>null,isExternal:n=!1,link:s="#",action:r,disabled:o=!1})=>{const i=(0,m.useCallback)(e=>e.preventDefault(),[]);return(0,v.jsx)("div",{className:"jp-owner-disconnect-dialog__action-card card"+(o?" disabled":""),children:(0,v.jsx)("div",{className:"jp-owner-disconnect-dialog__action-card__card-content",children:(0,v.jsxs)("a",{href:s,className:(0,h.A)("jp-owner-disconnect-dialog__action-card__card-headline",r),onClick:o?i:t,target:n?"_blank":"_self",rel:"noopener noreferrer",children:[e,(0,v.jsx)(l.A,{icon:n?p.A:d.A,className:"jp-owner-disconnect-dialog__action-card__icon"})]})})})},b=({isOpen:e,onClose:t,apiRoot:n,apiNonce:c,onDisconnected:l})=>{const[d,p]=(0,m.useState)(!1),[h,g]=(0,m.useState)(""),f=__("Disconnecting…","jetpack"),b=__("Disconnect","jetpack");(0,m.useEffect)(()=>{r.Ay.setApiRoot(n),r.Ay.setApiNonce(c)},[n,c]);const y=(0,m.useCallback)(()=>{t()},[t]),k=(0,m.useCallback)(()=>{s.A.tracks.recordEvent("jetpack_manage_connection_dialog_owner_disconnect_click"),p(!0),g(""),r.Ay.unlinkUser(!0,{disconnectAllUsers:!0}).then(()=>{s.A.tracks.recordEvent("jetpack_manage_connection_dialog_owner_disconnect_success"),l&&l()}).catch(()=>{s.A.tracks.recordEvent("jetpack_manage_connection_dialog_owner_disconnect_error"),g(__("There was a problem disconnecting your account. Please try again.","jetpack")),p(!1)})},[l]);return(0,v.jsxs)(i.Modal,{title:"",contentLabel:__("Disconnect Owner Account","jetpack"),aria:{labelledby:"jp-owner-disconnect-dialog__heading"},onRequestClose:y,className:"jp-owner-disconnect-dialog",isOpen:e,children:[(0,v.jsxs)("div",{className:"jp-owner-disconnect-dialog__content",children:[(0,v.jsx)("h1",{id:"jp-owner-disconnect-dialog__heading",children:__("Disconnect Owner Account","jetpack")}),(0,v.jsx)("p",{className:"jp-owner-disconnect-dialog__large-text",children:__("Disconnecting the owner account will remove the Jetpack connection for all users on this site. The site will remain connected.","jetpack")}),(0,v.jsx)(w,{title:__("Transfer ownership to another admin","jetpack"),link:(0,o.A)("calypso-settings-manage-connection"),isExternal:!0,action:"transfer"}),(0,v.jsx)(w,{title:__("View other connected accounts","jetpack"),link:"users.php",action:"check-users"})]}),(0,v.jsxs)("div",{className:"jp-owner-disconnect-dialog__actions",children:[(0,v.jsxs)("div",{className:"jp-row",children:[(0,v.jsx)("div",{className:"lg-col-span-8 md-col-span-9 sm-col-span-4",children:(0,v.jsx)("p",{children:(0,a.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <connectionInfoLink>Jetpack connection</connectionInfoLink> or <supportLink>contact Jetpack support</supportLink>","jetpack"),{strong:(0,v.jsx)("strong",{}),connectionInfoLink:(0,v.jsx)(u.N,{openInNewTab:!0,href:(0,o.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-owner-disconnect-dialog__link"}),supportLink:(0,v.jsx)(u.N,{openInNewTab:!0,href:(0,o.A)("jetpack-support"),className:"jp-owner-disconnect-dialog__link"})})})}),(0,v.jsxs)("div",{className:"jp-owner-disconnect-dialog__button-wrap lg-col-span-4 md-col-span-7 sm-col-span-4",children:[(0,v.jsx)(i.Button,{variant:"primary",onClick:y,className:"jp-owner-disconnect-dialog__btn-dismiss",children:__("Stay Connected","jetpack")}),(0,v.jsx)(i.Button,{variant:"primary",onClick:k,className:"jp-owner-disconnect-dialog__btn-disconnect",isDestructive:!0,disabled:d,children:d?f:b})]})]}),h&&(0,v.jsx)("p",{className:"jp-owner-disconnect-dialog__error",children:h})]})]})};b.propTypes={isOpen:f().bool,onClose:f().func,apiRoot:f().string.isRequired,apiNonce:f().string.isRequired,onDisconnected:f().func};const y=b},76122(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(28120),r=n.n(s),o=n(51609),i=n(69546),a=n(6838),c=(n(67524),n(10790));const l={[a.T7f]:"plans/wpcom-free.svg",[a.JZ7]:"plans/wpcom-personal.svg",[a.bQ]:"plans/wpcom-personal.svg",[a.EX]:"plans/wpcom-personal.svg",[a.Zcg]:"plans/wpcom-personal.svg",[a.Ek$]:"plans/wpcom-personal.svg",[a.GiA]:"plans/wpcom-premium.svg",[a.ADq]:"plans/wpcom-premium.svg",[a.nMg]:"plans/wpcom-premium.svg",[a.Olc]:"plans/wpcom-premium.svg",[a.xYC]:"plans/wpcom-business.svg",[a.vt4]:"plans/wpcom-business.svg",[a.CRr]:"plans/wpcom-business.svg",[a.ZLW]:"plans/wpcom-business.svg",[a.WpT]:"plans/wpcom-business.svg",[a.Mk2]:"plans/wpcom-business.svg",[a.W$W]:"plans/wpcom-business.svg",[a.dji]:"plans/wpcom-business.svg",[a.DHZ]:"plans/wpcom-ecommerce.svg",[a.xie]:"plans/wpcom-ecommerce.svg",[a.mRQ]:"plans/wpcom-ecommerce.svg",[a.raG]:"plans/wpcom-ecommerce.svg",[a.cwL]:"plans/wpcom-ecommerce.svg",[a.sBM]:"plans/wpcom-ecommerce.svg",[a.dHS]:"plans/wpcom-ecommerce.svg",[a.JGt]:"plans/wpcom-ecommerce.svg",[a.pmS]:"plans/wpcom-ecommerce.svg",[a.CJy]:"plans/wpcom-ecommerce.svg",[a.qZE]:"products/product-jetpack-search.svg",[a.Qbh]:"products/product-jetpack-search.svg",[a.mFu]:"products/product-jetpack-backup.svg",[a.nFH]:"products/product-jetpack-backup.svg",[a.X4A]:"products/product-jetpack-backup.svg",[a.Jht]:"products/product-jetpack-backup.svg",[a.kUc]:"products/product-jetpack-backup.svg",[a.YRH]:"products/product-jetpack-backup.svg",[a.ZFV]:"products/product-jetpack-backup.svg",[a.ebL]:"products/product-jetpack-scan.svg",[a.FQO]:"products/product-jetpack-scan.svg",[a.tX$]:"products/product-jetpack-scan.svg",[a.Vno]:"products/product-jetpack-anti-spam.svg",[a.GGh]:"products/product-jetpack-anti-spam.svg",[a.uX5]:"products/product-jetpack-anti-spam.svg",[a.VZ5]:"products/product-jetpack-search.svg",[a.KOn]:"products/product-jetpack-search.svg",[a.DCG]:"products/product-jetpack-search.svg",[a.Is_]:"products/product-jetpack-search.svg",[a.MMo]:"plans/jetpack.svg",[a.Y1g]:"plans/jetpack.svg",[a.EsA]:"plans/jetpack.svg",[a.Ryn]:"plans/jetpack.svg",[a.BfZ]:"plans/jetpack.svg",[a.kU]:"plans/jetpack.svg",[a.YhD]:"plans/jetpack.svg",[a.t9C]:"plans/jetpack.svg",[a.$bO]:"plans/jetpack.svg",[a.ncG]:"plans/jetpack.svg",[a.b2e]:"plans/jetpack.svg",[a.eJ8]:"plans/jetpack.svg",[a.asM]:"plans/jetpack.svg",[a.Xoz]:"plans/jetpack.svg",[a._4K]:"plans/jetpack.svg",[a.pz9]:"plans/jetpack.svg",[a.rD9]:"plans/jetpack.svg",[a.Pp2]:"products/product-jetpack-videopress.svg",[a.Wn7]:"products/product-jetpack-videopress.svg",[a.ovn]:"products/product-jetpack-videopress.svg",[a.pcB]:"products/product-jetpack-social.svg",[a.om_]:"products/product-jetpack-social.svg",[a.Qpw]:"products/product-jetpack-social.svg",[a.FaP]:"products/product-jetpack-social.svg",[a.suP]:"products/product-jetpack-social.svg",[a.m6F]:"products/product-jetpack-social.svg",[a.YQy]:"products/product-jetpack-social.svg",[a.bDd]:"products/product-jetpack-social.svg",[a.HA9]:"products/product-jetpack-social.svg",[a.vS9]:"plans/jetpack-golden-token.svg",[a.Hsn]:"plans/jetpack.svg",[a.V$p]:"plans/jetpack.svg",[a.oQp]:"plans/jetpack.svg",[a.COP]:"plans/jetpack.svg",[a.uRO]:"plans/jetpack.svg",[a.vRX]:"plans/jetpack.svg",[a.Gyc]:"products/product-jetpack-backup.svg",[a.UIR]:"products/product-jetpack-backup.svg",[a.SDZ]:"products/product-jetpack-backup.svg",[a.wBS]:"products/product-jetpack-backup.svg",[a.I5k]:"plans/jetpack.svg",[a.ufm]:"plans/jetpack.svg",[a.sG7]:"plans/jetpack.svg",[a.UBB]:"plans/jetpack.svg",[a.Y1M]:"products/product-jetpack-boost.svg",[a.LQP]:"products/product-jetpack-boost.svg",[a.JuJ]:"products/product-jetpack-boost.svg",[a.E$T]:"products/product-jetpack-ai.svg",[a.xSu]:"products/product-jetpack-ai.svg",[a.d6V]:"products/product-jetpack-ai.svg",[a.eMf]:"products/product-jetpack-stats.svg",[a.djT]:"products/product-jetpack-stats.svg",[a.zx5]:"products/product-jetpack-stats.svg",[a.IiY]:"products/product-jetpack-stats.svg",[a.c3q]:"products/product-jetpack-stats.svg",[a.EiB]:"products/product-jetpack-stats.svg",[a.DGp]:"products/product-jetpack-crm.svg"};class d extends o.Component{render(){const{className:e,alt:t,plan:n}=this.props,s=i.d0+"plans/jetpack.svg",r=l[n]?i.d0+l[n]:s;return(0,c.jsx)("img",{className:e,src:r,width:32,height:32,alt:t||""})}}d.propTypes={classNames:r().string,alt:r().string,plan:r().oneOf([a.T7f,a.JZ7,a.bQ,a.EX,a.Zcg,a.Ek$,a.GiA,a.ADq,a.nMg,a.Olc,a.xYC,a.vt4,a.CRr,a.ZLW,a.DHZ,a.xie,a.mRQ,a.raG,a.CJy,a.qZE,a.Qbh,a.mFu,a.nFH,a.Jht,a.X4A,a.kUc,a.YRH,a.ZFV,a.ebL,a.FQO,a.tX$,a.Vno,a.GGh,a.uX5,a.VZ5,a.KOn,a.DCG,a.Is_,a.MMo,a.Y1g,a.EsA,a.Ryn,a.BfZ,a.kU,a.YhD,a.t9C,a.$bO,a.ncG,a.b2e,a.eJ8,a.asM,a.Xoz,a._4K,a.pz9,a.rD9,a.Pp2,a.Wn7,a.ovn,a.pcB,a.om_,a.Qpw,a.FaP,a.suP,a.m6F,a.YQy,a.bDd,a.HA9,a.vS9,a.Hsn,a.V$p,a.oQp,a.COP,a.uRO,a.vRX,a.Gyc,a.UIR,a.SDZ,a.wBS,a.I5k,a.ufm,a.sG7,a.UBB,a.Pp2,a.Wn7,a.ovn,a.eMf,a.djT,a.zx5,a.IiY,a.c3q,a.EiB,a.xSu,a.LQP,a.DGp]).isRequired}},61933(e,t,n){"use strict";n.d(t,{A:()=>w});var s=n(86087),r=n(13022),o=n(10067),i=n.n(o),a=n(66087),c=n(28120),l=n.n(c),d=n(51609),p=n(61747),u=n(82279),h=(n(18441),n(10790));const g=()=>{},f=i()("calypso:popover"),m=new Set;class v extends d.Component{static propTypes={autoPosition:l().bool,className:l().string,closeOnEsc:l().bool,id:l().string,ignoreContext:l().shape({getDOMNode:l().func}),position:l().string,rootClassName:l().string,showDelay:l().number,onClose:l().func.isRequired,onShow:l().func};static defaultProps={autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:g};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,u.jQ)()}isDOMNode(e){return e instanceof HTMLElement}componentDidUpdate(e){const{context:t,isVisible:n}=this.props;return t!==e.context&&(!t||this.isDOMNode(t)?this.domContextRef.current=t:this.debug("Expected a DOM node for props.context",t)),n!==e.isVisible&&(n?this.show():this.hide()),this.domContainerRef.current&&this.domContextRef.current&&n&&n!==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,u.Yc)(),m.delete(this.id),f("current popover instances: ",m.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 n;!this.props.ignoreContext||this.isDOMNode(this.props.ignoreContext)?n=this.props.ignoreContext:this.debug("Expected a DOM node for props.context",this.props.ignoreContext),t=!(!n||!n.contains)&&(t&&!n.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:n}=this.props;if(!e.current||!t.current)return this.debug("[WARN] no DOM elements to work"),null;let s=n;this.debug("position: %o",n),this.props.autoPosition&&(s=(0,u.Mf)(n,e.current,t.current),this.debug("suggested position: %o",s));const r=Object.assign({},(0,u.B3)((0,u.cY)(s,e.current,t.current),e.current),{positionClass:this.getPositionClass(s)});return this.debug("updating reposition: ",r),r}debug(e,...t){f(`[%s] ${e}`,this.id,...t)}setPopoverId(e){this.id=e||(0,a.uniqueId)("pop__"),m.add(this.id),this.debug("creating ..."),f("current popover instances: ",m.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,r.A)("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),(0,h.jsx)(p.A,{className:this.props.rootClassName,children:(0,h.jsxs)("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior,children:[(0,h.jsx)("div",{className:"dops-popover__arrow"}),(0,h.jsx)("div",{className:"dops-popover__inner",children:this.props.children})]})})}}const w=v},82279(e,t,n){"use strict";n.d(t,{B3:()=>v,Mf:()=>f,Yc:()=>g,cY:()=>m,jQ:()=>h});var s=n(81760),r=n.n(s),o=n(10067);const i=n.n(o)()("calypso:popover:util");function a(){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,i("viewport: %o",e),e}const c={top:"bottom",bottom:"top",left:"right",right:"left"},l={top:"right",left:"top",bottom:"left",right:"bottom"};let d=a();function p(){d=a()}let u=!1;const h=()=>{if(u)return i("window events already bound");u=!0,i("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",p,!0),window.addEventListener("scroll",p,!0)},g=()=>{if(!u)return i("window events are not bound");u=!1,i("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",p,!0),window.removeEventListener("scroll",p,!0)},f=(e,t,n)=>{const s=r()(n),o=t.clientHeight,i=t.clientWidth,a={top:s.top-o,bottom:d.height-s.bottom-o,left:s.left-i,right:d.width-s.right-i},p=e.split(/\s+/),[u]=p;let[,h]=p;const g=function(e,t){const n=[e,c[e],l[e],c[l[e]]];let s,r=-1/0;for(let o=0,i=n.length;o<i;o++){const i=n[o],a=t[i];if(a>0)return i;a>r&&(r=a,s=e)}return s}(u,a);return h!==g&&h!==c[g]||(h=null),function(e,t,n,s,r,o){const i=t?[e+" "+t,e,e+" "+c[t]]:[e,e+" "+l[e],e+" "+c[l[e]]];let a,p=0;const u=r*o;for(let e=0,t=i.length;e<t;e++){const t=i[e],c=m(t,n,s),l=c.left+r,h=c.top+o,g=Math.min(c.top<d.top?h-d.top:d.bottom-c.top,o),f=Math.min(c.left<d.left?l-d.left:d.right-c.left,r)*g;if(f===u)return t;f>p&&(p=f,a=t)}return a}(g,h,t,n,i,o)||e};function m(e,t,n){const s=r()(t);if(!s)throw new Error("could not get bounding client rect of Tip element");const o=s.width,i=s.height,a=r()(n);if(!a)throw new Error("could not get bounding client rect of `target`");const c=a.width,l=a.height,d=function(e,t){const n=t.body||t.getElementsByTagName("body")[0],s=t.documentElement||n.parentNode,r=s.clientTop||n.clientTop||0,o=s.clientLeft||n.clientLeft||0,i=window.pageYOffset||s.scrollTop,a=window.pageXOffset||s.scrollLeft;return{top:e.top+i-r,left:e.left+a-o}}(a,document);if(!d)throw new Error("could not determine page offset of `target`");let p;switch(e){case"top":p={top:d.top-i,left:d.left+c/2-o/2};break;case"bottom":p={top:d.top+l,left:d.left+c/2-o/2};break;case"right":p={top:d.top+l/2-i/2,left:d.left+c};break;case"left":p={top:d.top+l/2-i/2,left:d.left-o};break;case"top left":p={top:d.top-i,left:d.left+c/2-o+15};break;case"top right":p={top:d.top-i,left:d.left+c/2-15};break;case"bottom left":p={top:d.top+l,left:d.left+c/2-o+15};break;case"bottom right":p={top:d.top+l,left:d.left+c/2-15};break;case"left top":p={top:d.top+l/2-i,left:d.left-o};break;case"left bottom":p={top:d.top+l/2,left:d.left-o};break;case"right top":p={top:d.top+l/2-i,left:d.left+c};break;case"right bottom":p={top:d.top+l/2,left:d.left+c};break;default:throw new Error(`invalid position "${e}"`)}return p}const v=function(e,t){const n=r()(t).width;return e.left=Math.max(0,Math.min(e.left,d.width-n)),e}},61747(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(86087),r=n(28120),o=n.n(r),i=n(51609),a=n(71766),c=n(10790);class l extends i.Component{static displayName="RootChild";static propTypes={children:o().node};static contextType=a.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)?(0,c.jsx)("div",{...this.props,children:this.props.children}):this.props.children,this.context.store&&(e=(0,c.jsx)(a.Kq,{store:this.context.store,children:e})),this.containerRoot.render(e)};render(){return null}}},14602(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(27723),r=n(10790);const __=s.__,o=({onClick:e})=>(0,r.jsx)("button",{className:"dops-search__clear-btn",onClick:e,"aria-label":__("Clear search","jetpack"),children:__("Clear","jetpack")})},23685(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(31497),r=n(10790);const o=({instanceId:e,closeSearch:t,closeListener:n})=>(0,r.jsx)("div",{role:"button",className:"dops-search__icon-navigation",onClick:t,tabIndex:"0",onKeyDown:n,"aria-controls":"dops-search-component-"+e,"aria-label":"Close Search",children:(0,r.jsx)(s.A,{icon:"cross",className:"dops-search__close-icon"})})},78434(e,t,n){"use strict";n.d(t,{A:()=>v});var s=n(40180),r=n(13022),o=n(66087),i=n(28120),a=n.n(i),c=n(51609),l=n(31497),d=n(53835),p=n(14602),u=n(23685),h=(n(48024),n(10790));const g=()=>{};function f(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}class m extends c.Component{static displayName="Search";static instances=0;static propTypes={additionalClasses:a().string,initialValue:a().string,placeholder:a().string,pinned:a().bool,delaySearch:a().bool,delayTimeout:a().number,onSearch:a().func.isRequired,onSearchChange:a().func,onSearchOpen:a().func,analyticsGroup:a().string,overlayStyling:a().func,autoFocus:a().bool,disabled:a().bool,onKeyDown:a().func,onClick:a().func,disableAutocorrect:a().bool,onBlur:a().func,searching:a().bool,isOpen:a().bool,dir:a().oneOf(["ltr","rtl"]),fitsContainer:a().bool,maxLength:a().number,hideClose:a().bool};static defaultProps={pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:g,onSearchOpen:g,onKeyDown:g,onClick:g,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1};overlayRef=(0,c.createRef)();searchInputRef=(0,c.createRef)();openIconRef=(0,c.createRef)();state={keyword:this.props.initialValue||"",isOpen:!!this.props.isOpen,hasFocus:!1};UNSAFE_componentWillMount(){this.setState({instanceId:++m.instances}),this.closeListener=f.bind(this,"closeSearch"),this.openListener=f.bind(this,"openSearch")}UNSAFE_componentWillReceiveProps(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,o.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,o.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(),n=window.getComputedStyle(e,void 0),s=parseFloat(n.paddingLeft),r=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+s-r.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}),d.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(),d.A.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search"))};clearSearch=()=>{this.clear(),this.focus()};keyUp=e=>{"Enter"===e.key&&(0,s.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…",n=this.props.pinned&&!this.state.isOpen,s=this.state.isOpen||!this.props.pinned||this.props.initialValue,o=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},i=(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}),a=(0,r.A)("dops-search__input-fade",this.props.dir),c=(0,r.A)("dops-search__input",this.props.dir),d=!this.props.hideClose&&(this.state.keyword||this.state.isOpen),g=d&&e;return(0,h.jsxs)("div",{dir:this.props.dir||null,className:i,role:"search",children:[(0,h.jsx)("div",{role:"button",className:"dops-search__icon-navigation",ref:this.openIconRef,onClick:n?this.openSearch:this.focus,tabIndex:n?"0":null,onKeyDown:n?this.openListener:null,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Open Search",children:(0,h.jsx)(l.A,{icon:"search",className:"dops-search__open-icon"})}),(0,h.jsxs)("div",{className:a,children:[(0,h.jsx)("input",{type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:c,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,...o}),this.props.overlayStyling&&this.renderStylingDiv()]}),g&&(0,h.jsx)(p.A,{onClick:this.clearSearch}),d&&(0,h.jsx)(u.A,{closeSearch:this.closeSearch,closeListener:this.closeListener,instanceId:this.state.instanceId})]})}renderStylingDiv=()=>(0,h.jsx)("div",{className:"dops-search__text-overlay",ref:this.overlayRef,children:this.props.overlayStyling(this.state.keyword)})}const v=m},98872(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(68339),c=n(69763),l=n(26546),d=n(95665),p=(n(86142),n(10790));const u=()=>{};class h extends i.Component{itemRefs={};dropdownContainerRef=(0,i.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:++h.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=e.options.find(e=>!e.isLabel);return t&&t.value}dropdownOptions(){let e=0;const t=this;return this.props.children?i.Children.map(this.props.children,function(n,s){if(!n)return null;t.itemRefs["item-"+e]=n.type===c.A?(0,i.createRef)():void 0;const r=(0,i.cloneElement)(n,{ref:t.itemRefs["item-"+e],key:"item-"+s,onClick:function(e){t.dropdownContainerRef.current.focus(),"function"==typeof n.props.onClick&&n.props.onClick(e)}});return n.type===c.A&&e++,r},this):this.props.options.map(function(n,s){if(!n)return(0,p.jsx)(d.A,{},"dropdown-separator-"+this.state.instanceId+"-"+s);if(n.isLabel)return(0,p.jsx)(l.A,{children:n.label},"dropdown-label-"+this.state.instanceId+"-"+s);t.itemRefs["item-"+e]=(0,i.createRef)();const r=(0,p.jsx)(c.A,{ref:t.itemRefs["item-"+e],selected:this.state.selected===n.value,onClick:this.onSelectItem(n),path:n.path,children:n.label},"dropdown-item-"+this.state.instanceId+"-"+n.value);return e++,r},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),n=this.props.selectedText?this.props.selectedText:this.props.options.find(e=>e.value===this.state.selected)?.label;return(0,p.jsx)("div",{style:this.props.style,className:t,children:(0,p.jsxs)("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,children:[(0,p.jsx)("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header",children:(0,p.jsxs)("span",{className:"dops-select-dropdown__header-text",children:[n,"number"==typeof this.props.selectedCount&&(0,p.jsx)(a.A,{count:this.props.selectedCount})]})}),(0,p.jsx)("ul",{id:"select-submenu-"+this.state.instanceId,className:"dops-select-dropdown__options",children: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,n;if(!this.state.isOpen)return;this.props.options.length?(t=this.props.options.filter(e=>e&&!e.isLabel).map(e=>e.value),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=i.Children.toArray(this.props.children).filter(e=>e.type===c.A),n="number"==typeof this.focused?this.focused:t.findIndex(e=>e.props.selected));const s=n+("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()}}h.defaultProps={options:[],onSelect:u,onToggle:u,disabled:!1,style:{},rna:!1},h.propTypes={selectedText:o().string,selectedCount:o().number,initialSelected:o().string,className:o().string,style:o().object,onSelect:o().func,onToggle:o().func,focusSibling:o().func,tabIndex:o().number,disabled:o().bool,options:o().arrayOf(o().shape({value:o().string.isRequired,label:o().string.isRequired,path:o().string})),rna:o().bool},h.instances=0;const g=h},69763(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(13022),r=n(28120),o=n.n(r),i=n(51609),a=n(68339),c=n(10790);class l extends i.Component{static propTypes={children:o().node.isRequired,path:o().string,selected:o().bool,onClick:o().func,count:o().number};static defaultProps={selected:!1};itemLinkRef=(0,i.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(0,c.jsx)("li",{className:"dops-select-dropdown__option",children:(0,c.jsx)("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,children:(0,c.jsxs)("span",{className:"dops-select-dropdown__item-text",children:[this.props.children,"number"==typeof this.props.count&&(0,c.jsx)(a.A,{count:this.props.count})]})})})}}const d=l},26546(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(51609),r=n(10790);const o=e=>e.stopPropagation();class i extends s.Component{render(){return(0,r.jsx)("li",{role:"menuitem",onClick:o,className:"dops-select-dropdown__label",children:(0,r.jsx)("label",{children:this.props.children})})}}const a=i},95665(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(51609),r=n(10790);class o extends s.Component{render(){return(0,r.jsx)("li",{className:"dops-select-dropdown__separator"})}}const i=o},55109(e,t,n){"use strict";n.d(t,{A:()=>p});var s=n(42947),r=n(27723),o=n(71766),i=n(27338),a=n(69531),c=n(2065),l=n(752),d=n(10790);const __=r.__;const p=(0,o.Ng)(e=>({apiRoot:(0,c.O3)(e),apiNonce:(0,c.Co)(e),currentVersion:(0,c.Mj)(e),isDevVersion:(0,c.gF)(e),displayDevCard:(0,a.M4)(e),canManageOptions:(0,c.hN)(e),siteAdminUrl:(0,c.eu)(e)}),e=>({doResetOptions:()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&e((0,a.yB)("options"))},doEnableDevCard:()=>{e((0,a.$K)())}}))(e=>{const{apiRoot:t,apiNonce:n,isDevVersion:r,displayDevCard:o,tabs:a,children:c}=e,p=function(e){const{isDevVersion:t,canManageOptions:n}=e,s=[];return t&&n&&s.push({label:"Reset options (devs)",role:"button",onKeyDown:(0,l.A)(e.doResetOptions),onClick:e.doResetOptions}),t&&s.push({label:"Tools (devs)",role:"button",onKeyDown:(0,l.A)(e.doEnableDevCard),onClick:e.doEnableDevCard}),s}(e);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(s.A,{className:"jp-settings-admin-page",title:__("Settings","jetpack"),apiRoot:t,apiNonce:n,showBackground:!0,tabs:a,optionalMenuItems:p,children:c}),r&&o&&(0,d.jsx)(i.A,{})]})})},8332(e,t,n){"use strict";n.d(t,{A:()=>S});var s=n(39384),r=n(85985),o=n(56427),i=n(27723),a=n(93832),c=n(28120),l=n.n(c),d=n(71766),p=n(70386),u=n(3983),h=n(45078),g=n(53835),f=n(6838),m=n(72747),v=n(83101),w=n(32819),b=n(34679),y=n(2065),k=n(26508),_=n(82656),x=n(10790);const __=i.__,_x=i._x,j=e=>{const t={action:"",saveDisabled:!1,isDisabled:!1,...e},n=e=>()=>(e=>{g.A.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})})(e),r=e=>()=>{(e=>{g.A.tracks.recordJetpackClick({target:"connect-banner",feature:e,type:"connect"})})(e),window.location.href=(0,s.getUserConnectionUrl)()},i=!!t.module&&t.getModule(t.module),a=t.vaultPressData,c=a?.data?.features?.backups??!1,l=a?.data?.features?.security??!1;if(!t.userCanManageModules&&!["post-by-email","publicize"].includes(t.module))return(0,x.jsx)("span",{});const d=t.isDisabled,w=t.saveDisabled,b=!!t.feature&&t.feature;let y=t.header?t.header:"";""===y&&i&&(y=i.name);const k=()=>{switch(b){case f.d2k:return"inactive"===t.getModuleOverride("videopress");case f.Xd8:return"inactive"===t.getModuleOverride("wordads");case f.ZrU:return"inactive"===t.getModuleOverride("google-analytics");case f.JvE:return"inactive"===t.getModuleOverride("search");default:return!1}},_=(()=>{if(t.fetchingSiteData)return!0;switch(b){case f.FxV:if(!t.hasScan&&!l)return!1;break;case f.Xd8:if(!t.hasWordAds)return!1;break;case f.ZrU:if(!t.hasGoogleAnalytics)return!1;break;case f.pt9:if(!t.hasAntispam&&!t.isAkismetKeyValid&&!t.isCheckingAkismetKey)return!1;break;case f.W5X:if(!t.hasAdvancedSeo)return!1}return!0})()&&t.children,j=!t.fetchingSiteData&&!k()&&!t.inOfflineMode&&(()=>{const e=()=>_x("Upgrade","A caption for a button to upgrade an existing paid feature to a higher tier.","jetpack"),s=()=>_x("Connect","A caption for a button to connect a user account to access paid features.","jetpack");switch(b){case f.d2k:return t.hasConnectedOwner||t.hasVideoPress?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.d2k),feature:b,onClick:r(b),rna:!0});case f.Xd8:return t.hasWordAds?"":t.hasConnectedOwner?(0,x.jsx)(u.Ay,{title:(0,x.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Generate income with high-quality ads.","jetpack")}),callToAction:e(),plan:(0,f.EP8)(f.Xd8),feature:b,onClick:n(b),href:t.adsUpgradeUrl,rna:!0}):(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to upgrade and generate income with high-quality ads.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.Xd8),feature:b,onClick:r(b),rna:!0});case f.FxV:return c||t.hasScan&&t.hasBackups||t.multisite?"":t.hasScan&&!t.hasBackups?t.hasConnectedOwner?(0,x.jsx)(u.Ay,{title:__("Save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,f.EP8)(f.gvR),callToAction:e(),feature:b,onClick:n(b),href:t.securityUpgradeUrl,rna:!0}):(0,x.jsx)(u.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,f.EP8)(f.gvR),callToAction:s(),feature:b,onClick:r(b),rna:!0}):t.hasConnectedOwner?(0,x.jsx)(u.Ay,{callToAction:e(),title:__("Automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,f.EP8)(f.FxV),feature:b,onClick:n(b),href:t.scanUpgradeUrl,rna:!0}):(0,x.jsx)(u.Ay,{callToAction:s(),title:__("Connect your WordPress.com account to upgrade for automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,f.EP8)(f.FxV),feature:b,onClick:r(b),rna:!0});case f.XkN:return t.hasConnectedOwner||t.inOfflineMode?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to set up your status alerts.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.XkN),feature:b,onClick:r(b),rna:!0});case f.Z4D:return t.hasConnectedOwner||t.inOfflineMode?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to enable Secure Sign-On","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.Z4D),feature:b,onClick:r(b),rna:!0});case f.X8r:return t.hasConnectedOwner||t.isUnavailableInOfflineMode("post-by-email")?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to enable publishing via email.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.X8r),feature:b,onClick:r(b),rna:!0});case f.Y6$:return t.hasConnectedOwner||t.inOfflineMode?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to add your social media accounts.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.Y6$),feature:b,onClick:r(b),rna:!0});case f.FpR:return t.blazeAvailable.can_init||t.inOfflineMode?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to set up campaigns and promote your content.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.FpR),feature:b,onClick:r(b),rna:!0});case f.zwM:return(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to discover tools to earn money with your site.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.zwM),feature:b,onClick:r(b),rna:!0});case f.ZrU:return t.hasGoogleAnalytics?"":t.hasConnectedOwner?(0,x.jsx)(u.Ay,{callToAction:e(),title:__("Connect your site to Google Analytics.","jetpack"),plan:(0,f.EP8)(f.ZrU),feature:b,onClick:n(b),href:t.gaUpgradeUrl,rna:!0}):(0,x.jsx)(u.Ay,{callToAction:s(),title:__("Connect your WordPress.com account to upgrade and connect your site to Google Analytics.","jetpack"),plan:(0,f.EP8)(f.ZrU),feature:b,onClick:r(b),rna:!0});case f.JvE:return t.hasInstantSearch?"":(0,x.jsx)(u.Ay,{callToAction:(0,v.$)()?__("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,f.EP8)(f.JvE),feature:b,onClick:n(b),href:t.searchUpgradeUrl,rna:!0});case f.pt9:return t.isCheckingAkismetKey||t.isAkismetKeyValid||t.hasAntispam?"":(0,x.jsx)(u.Ay,{callToAction:e(),title:__("Automatically clear spam from comments and forms.","jetpack"),plan:(0,f.EP8)(f.pt9),feature:b,href:t.spamUpgradeUrl,rna:!0});case f.jc4:return t.hasSimplePayments?"":t.hasConnectedOwner?(0,x.jsx)(u.Ay,{callToAction:e(),title:__("Start accepting PayPal payments for physical products, digital goods, or donations.","jetpack"),plan:(0,f.EP8)(f.jc4),feature:b,href:t.simplePaymentsUpgradeUrl,rna:!0}):(0,x.jsx)(u.Ay,{callToAction:s(),title:__("Connect your WordPress.com account to upgrade and access PayPal features in your editor.","jetpack"),plan:(0,f.EP8)(f.jc4),feature:b,onClick:r(b),rna:!0});case f.KCE:return t.hasConnectedOwner?"":(0,x.jsx)(u.Ay,{title:__("Connect your WordPress.com account to enable and set up your newsletter.","jetpack"),callToAction:s(),plan:(0,f.EP8)(f.KCE),feature:b,onClick:r(b),rna:!0});case f.W5X:return t.hasAdvancedSeo||t.inOfflineMode||!t.hasConnectedOwner?"":(0,x.jsx)(u.Ay,{title:__("Optimize your site for search engines with advanced SEO tools and preview how your content will look on Google, Facebook, and Twitter.","jetpack"),callToAction:e(),plan:(0,f.EP8)(f.W5X),feature:b,onClick:n(b),href:t.seoUpgradeUrl,rna:!0});default:return""}})();if(!_&&!j)return null;let C="";return t.feature?C=`jp-settings-${t.feature}`:t.module&&(C=`jp-settings-${t.module}`),(()=>{if(!k())return!1;if(b!==f.ZrU)return null;const e=t.getModule("google-analytics");return(0,x.jsx)(h.A,{moduleName:e.name})})()||(0,x.jsx)(o.Card,{className:"jp-form-settings-card",children:(0,x.jsxs)("form",{...C?{id:C}:null,onSubmit:d||w?void 0:t.onSubmit,children:[(0,x.jsxs)(o.CardHeader,{className:"jp-form-settings-card__header",children:[(0,x.jsx)("span",{className:"jp-form-settings-card__header-label",children:y}),(0,x.jsxs)("div",{className:"jp-form-settings-card__header-actions",children:[!t.hideButton&&(0,x.jsx)(p.A,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:d||w||!t.isDirty(),children:w?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0)}),t.action&&(0,x.jsx)(m.A,{proFeature:t.action,siteAdminUrl:t.siteAdminUrl,isCompact:!1})]})]}),(0,x.jsxs)(o.CardBody,{size:"none",children:[_,j]})]})})};j.propTypes={action:l().string,saveDisabled:l().bool,isDisabled:l().bool};const C=e=>{const t=(0,r.GE)(),n=(0,a.addQueryArgs)((0,y.eu)(e)+"admin.php?page=jetpack-settings#/traffic",{feature:"seo"});return(0,a.addQueryArgs)(`https://wordpress.com/checkout/${t}/${f.xYC}`,{redirect_to:n})},S=(0,d.Ng)(e=>({fetchingSiteData:(0,_.Kb)(e),siteAdminUrl:(0,y.eu)(e),userCanManageModules:(0,y.Ir)(e),isAkismetKeyValid:(0,w.Ee)(e),isCheckingAkismetKey:(0,w.OY)(e),vaultPressData:(0,w.Cc)(e),getModuleOverride:t=>(0,k.d1)(e,t),getModule:t=>(0,k.f_)(e,t),adsUpgradeUrl:(0,y.Q4)(e,"jetpack-creator-cta"),securityUpgradeUrl:(0,v.F)(e,"security"),scanUpgradeUrl:(0,v.F)(e,"scan"),gaUpgradeUrl:(0,y.Q4)(e,"settings-ga"),searchUpgradeUrl:(0,v.F)(e,"search"),simplePaymentsUpgradeUrl:(0,y.Q4)(e,"jetpack-creator-cta"),spamUpgradeUrl:(0,v.F)(e,"akismet"),seoUpgradeUrl:C(e),multisite:(0,y.xs)(e),inOfflineMode:(0,b.hN)(e),hasConnectedOwner:(0,b.BG)(e),hasAdvancedSeo:(0,_.IT)(e,"advanced-seo"),hasAntispam:(0,_.IT)(e,"antispam"),hasBackups:(0,_.IT)(e,"backups"),hasGoogleAnalytics:(0,_.IT)(e,"google-analytics"),hasInstantSearch:(0,_.IT)(e,"instant-search"),hasScan:(0,_.IT)(e,"scan"),hasSimplePayments:(0,_.IT)(e,"simple-payments"),hasVideoPress:(0,_.IT)(e,"videopress"),hasWordAds:(0,_.IT)(e,"wordads"),isUnavailableInOfflineMode:t=>(0,b.Em)(e,t),blazeAvailable:(0,y.G4)(e)}))(j)},19579(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(13022),r=n(28120),o=n.n(r),i=n(71766),a=n(87139),c=n(34679),l=n(2065),d=n(26508),p=n(10790);const u=()=>{},h=e=>{const t={support:{text:"",link:""},module:{},disableInOfflineMode:!1,disableInSiteConnectionMode:!1,isOfflineMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInOfflineMode:u,className:"",...e},n=t.module;if(n.module&&!t.userCanManageModules&&!["post-by-email","publicize"].includes(n.module))return(0,p.jsx)("span",{});const r=t.disableInOfflineMode&&t.isUnavailableInOfflineMode(n.module),o=t.disableInSiteConnectionMode&&t.isUnavailableInSiteConnectionMode(n.module);let i=r||o;return"post-by-email"!==n.module||t.isLinked||(i=!0),(0,p.jsxs)("div",{className:(0,s.A)("jp-form-settings-group",t.className,{"jp-form-has-child":t.hasChild,"jp-form-settings-disable":r||o}),children:[i&&(0,p.jsx)("div",{className:"jp-form-block-fade"}),t.support.link&&(0,p.jsx)(a.A,{module:n,...t.support}),t.children]})};h.propTypes={support:o().object,module:o().object,disableInOfflineMode:o().bool,disableInSiteConnectionMode:o().bool,isOfflineMode:o().bool,isSitePublic:o().bool,userCanManageModules:o().bool,isLinked:o().bool,isUnavailableInOfflineMode:o().func,className:o().string};const g=(0,i.Ng)(e=>({isOfflineMode:(0,c.hN)(e),isSitePublic:(0,l.$q)(e),userCanManageModules:(0,l.Ir)(e),userCanEditPosts:(0,l.jM)(e),isLinked:(0,c._U)(e),isModuleActivated:t=>(0,d.Yp)(e,t),isUnavailableInOfflineMode:t=>(0,c.Em)(e,t),isUnavailableInSiteConnectionMode:t=>(0,c.g)(e,t)}))(h)},89674(e,t,n){"use strict";n.d(t,{A:()=>y});var s=n(97999),r=n(27723),o=n(80210),i=n(21258),a=n(60799),c=n(51609),l=n(71766),d=n(55155),p=n(37866),u=n(78434),h=n(53835),g=n(2065),f=n(26508),m=n(12623),v=(n(97400),n(10790));const __=r.__,_x=r._x,w={"/security":_x("Security","Navigation item.","jetpack"),"/performance":_x("Performance","Navigation item.","jetpack"),"/writing":_x("Writing","Navigation item.","jetpack"),"/sharing":_x("Sharing","Navigation item.","jetpack"),"/discussion":_x("Discussion","Navigation item.","jetpack"),"/traffic":_x("Traffic","Navigation item.","jetpack"),"/reader":_x("Reader","Navigation item.","jetpack"),"/earn":_x("Monetize","Navigation item.","jetpack")},b={"/settings":"/security"},y=(0,l.Ng)(e=>({userCanManageModules:(0,g.Ir)(e),isSubscriber:(0,g.EV)(e),isWoASite:(0,s.isWoASite)(e),userCanPublishPosts:(0,g.n6)(e),hasSecurityFeature:(0,f.j9)(e),hasPerformanceFeature:(0,f.ZH)(e),hasModules:t=>(0,f._J)(e,t),isModuleActive:t=>(0,f.Yp)(e,t),searchTerm:(0,m.nh)(e)}),e=>({searchForTerm:t=>e((0,m.F5)(t))}))(e=>{const{userCanManageModules:t,isSubscriber:n,isWoASite:s,userCanPublishPosts:r,hasSecurityFeature:l,hasPerformanceFeature:g,hasModules:f,isModuleActive:m,searchTerm:y,searchForTerm:k}=e,_=(0,d.zy)(),x=(0,d.Zp)(),j=b[_.pathname]||_.pathname,C=(0,c.useCallback)(e=>{var t;t=e.slice(1),h.A.tracks.recordJetpackClick({target:"nav_item",path:t}),x(e)},[x]),S=(0,c.useCallback)(e=>{const t=window.location.href.split("#")[1].split("?");k(e);const n="#"+t[0]+(e?"?term="+encodeURIComponent(e):"");window.location.href=n},[k]),A=(0,c.useMemo)(()=>new URLSearchParams(_.search).get("term")||"",[_.search]);(0,c.useEffect)(()=>{k(A)},[A,k]);const E=[];return t?(l&&E.push("/security"),g&&E.push("/performance"),(f(["markdown","post-by-email","infinite-scroll","copy-post"])||window.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.active)&&E.push("/writing"),f(["publicize","sharedaddy","likes"])&&E.push("/sharing"),f(["comments","gravatar-hovercards","markdown"])&&E.push("/discussion"),f(["seo-tools","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&E.push("/traffic"),f(["wpcom-reader"])&&!s&&E.push("/reader"),f(["wordads"])&&E.push("/earn")):n||(m("post-by-email")&&r&&f(["post-by-email"])&&E.push("/writing"),m("publicize")&&r&&f(["publicize"])&&E.push("/sharing")),0===E.length?null:(0,v.jsxs)("div",{className:"jp-settings-nav",children:[(0,v.jsx)(p.A,{}),(0,v.jsx)(o.b,{value:j,onValueChange:C,className:"jp-settings-nav__tabs-root",children:(0,v.jsx)(i.B,{className:"jp-settings-nav__tabs","aria-label":__("Jetpack settings sections","jetpack"),children:E.map(e=>(0,v.jsx)(a.o,{value:e,className:"jp-settings-nav__tab",children:w[e]},e))})}),t&&(0,v.jsx)(u.A,{pinned:!0,fitsContainer:!0,placeholder:__("Search for a Jetpack feature.","jetpack"),delaySearch:!0,delayTimeout:500,onSearch:S,isOpen:!!y,initialValue:y||A})]})})},87139(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(97999),r=n(82308),o=n(27723),i=n(57273),a=n(28120),c=n.n(a),l=n(51609),d=n(63242),p=n(53835),u=(n(70254),n(10790));const __=o.__;class h extends l.Component{static propTypes={module:c().object,text:c().string,link:c().string,privacyLink:c().string,wpcomLink:c().string,wpcomPostId:c().number};static defaultProps={module:void 0,text:"",link:"",privacyLink:"",wpcomLink:"",wpcomPostId:void 0};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(){p.A.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}trackLearnMoreClick(){p.A.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}trackPrivacyInfoClick(){p.A.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}render(){const{text:e,link:t,wpcomLink:n,wpcomPostId:o}=this.props;let{privacyLink:a}=this.props;const c=!!n&&(0,s.isWpcomPlatformSite)();return!a&&t&&(a=t+"#privacy"),(0,u.jsx)("div",{className:"jp-support-info",children:(0,u.jsxs)(d.A,{position:"left",onClick:this.trackInfoClick,screenReaderText:__("Learn more","jetpack"),children:[e+" ",(t||c)&&(0,u.jsx)("div",{className:"jp-support-info__learn-more",children:c?(0,u.jsx)(r.k,{supportLink:n,supportPostId:o,onClick:this.trackLearnMoreClick,children:__("Learn more","jetpack")}):(0,u.jsx)(i.N,{openInNewTab:!0,href:t,onClick:this.trackLearnMoreClick,rel:"noopener noreferrer",children:__("Learn more","jetpack")})}),!c&&(0,u.jsx)("span",{className:"jp-support-info__privacy",children:(0,u.jsx)(i.N,{openInNewTab:!0,href:a,onClick:this.trackPrivacyInfoClick,rel:"noopener noreferrer",children:__("Privacy information","jetpack")})})]})})}}},13300(e,t,n){"use strict";n.d(t,{Ay:()=>d,RP:()=>p,wr:()=>u});var s=n(97999),r=n(82308),o=n(47143),i=n(57273),a=n(28120),c=n.n(a),l=n(10790);function d({href:e,wpcomLink:t,wpcomPostId:n,children:o,...a}){return t&&(0,s.isWpcomPlatformSite)()?(0,l.jsx)(r.k,{supportLink:t,supportPostId:n,...a,children:o}):(0,l.jsx)(i.N,{openInNewTab:!0,href:e,rel:"noopener noreferrer",...a,children:o})}function p(e,t){return t&&(0,s.isWpcomPlatformSite)()?t:e}function u(e,t,n){if(!t||!(0,s.isWpcomPlatformSite)())return;const r=(0,o.dispatch)("automattic/help-center")?.setShowSupportDoc;r&&(e.preventDefault(),r(t,n))}d.propTypes={href:c().string,wpcomLink:c().string,wpcomPostId:c().number,children:c().node}},78888(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(13022),r=n(51609),o=(n(66122),n(10790));class i extends r.Component{static displayName="TextInput";static defaultProps={isError:!1,isValid:!1,selectOnFocus:!1,type:"text"};textFieldRef=(0,r.createRef)();focus=()=>{this.textFieldRef.current.focus()};render(){const{className:e,selectOnFocus:t,isError:n,isValid:r,...i}=this.props,a=(0,s.A)(e,{"dops-text-input":!0,"is-error":n,"is-valid":r});return(0,o.jsx)("input",{...i,ref:this.textFieldRef,className:a,onClick:t?this.selectOnFocus:null})}selectOnFocus=e=>{e.target.select()}}},26224(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(13022),r=n(51609),o=(n(68226),n(10790));class i extends r.Component{static displayName="Textarea";render(){return(0,o.jsx)("textarea",{...this.props,className:(0,s.A)(this.props.className,"dops-textarea"),children:this.props.children})}}},63922(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(28120),r=n.n(s),o=n(51609),i=n(71766),a=n(12623);class c extends o.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:r().object,searchTerm:r().string};const l=(0,i.Ng)(e=>({searchTerm:(0,a.nh)(e)}))(c)},4924(e,t,n){"use strict";n.d(t,{A:()=>r});const s={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};const r=function(e){if(e in s)return s[e];throw new Error("config key `"+e+"` does not exist")}},69546(e,t,n){"use strict";n.d(t,{Iu:()=>o,Ns:()=>i,d0:()=>r});var s=n(3924);const r=window.Initial_State.pluginBaseUrl+"/images/",o=(0,s.A)("jetpack-contact-support"),i=(0,s.A)("jetpack-contact-support-beta-group");(0,s.A)("jetpack-stats-2023-opt-out-survey")},71801(e,t,n){"use strict";n.d(t,{H:()=>m});var s=n(3924),r=n(56427),o=n(27723),i=n(51609),a=n(11895),c=n(63344),l=n(60619),d=n(8332),p=n(19579),u=n(87139),h=n(78888),g=(n(76623),n(10790));const __=o.__;class f extends i.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"),n=this.props.isModuleFound("markdown"),o=this.props.isModuleFound("comment-likes");if(!(e||t||n||o))return null;const{isUnavailableInOfflineMode:i,getOptionValue:c}=this.props,f=this.props.getModule("comments"),m=this.props.getOptionValue("comments"),v=this.props.isUnavailableInOfflineMode("comments"),w=this.props.getModule("gravatar-hovercards"),b=this.props.getModule("markdown"),y=i("comment-likes"),k=c("comment-likes");return(0,g.jsxs)(d.A,{...this.props,header:__("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"]),children:[e&&(0,g.jsxs)(p.A,{hasChild:!0,disableInOfflineMode:!0,module:f,support:{text:__("Replaces the standard WordPress comment form with a new comment system that includes social media login options.","jetpack"),link:(0,s.A)("jetpack-support-comments"),wpcomLink:"https://wordpress.com/support/comments/"},children:[(0,g.jsx)(l.j,{slug:"comments",compact:!0,disabled:v||this.props.isSavingAnyOption("comments"),activated:this.props.getOptionValue("comments"),toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:f.description})}),(0,g.jsxs)(a.dV,{children:[(0,g.jsxs)(a.lR,{children:[(0,g.jsx)("span",{className:"jp-form-label-wide",children:__("Comment form introduction","jetpack")}),(0,g.jsx)(h.A,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!m||v||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})]}),(0,g.jsx)("span",{className:"jp-form-setting-explanation",children:__("A few catchy words to motivate your visitors to comment.","jetpack")}),(0,g.jsxs)(a.lR,{children:[(0,g.jsx)("span",{className:"jp-form-label-wide",children:__("Color scheme","jetpack")}),(0,g.jsx)(a.FX,{name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!m||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||n||o)&&(0,g.jsxs)(p.A,{children:[t&&(0,g.jsxs)("div",{className:"jp-toggle-set",children:[(0,g.jsx)(a.dV,{children:(0,g.jsx)(l.j,{slug:"gravatar-hovercards",compact:!0,disabled:this.props.isSavingAnyOption("gravatar-hovercards"),activated:this.props.getOptionValue("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:w.description})})}),(0,g.jsx)(u.A,{text:__("Show Gravatar hovercards alongside comments.","jetpack"),link:w.learn_more_button,privacyLink:w.learn_more_button+"#privacy",wpcomLink:"https://wordpress.com/support/gravatars/"})]}),n&&(0,g.jsxs)("div",{className:"jp-toggle-set",children:[(0,g.jsx)(a.dV,{children:(0,g.jsx)(r.ToggleControl,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown"])||"inactive"===this.props.getModuleOverride("markdown"),onChange:this.handleMarkdownCommentsToggle,label:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable Markdown use for comments.","jetpack")}),__nextHasNoMarginBottom:!0})}),(0,g.jsx)(u.A,{text:__("Allow readers to use markdown in comments.","jetpack"),link:b.learn_more_button,privacyLink:b.learn_more_button+"#privacy",wpcomLink:"https://wordpress.com/support/wordpress-editor/blocks/markdown-block/"})]}),o&&(0,g.jsxs)("div",{className:"jp-toggle-set",children:[(0,g.jsx)(a.dV,{children:(0,g.jsx)(l.j,{slug:"comment-likes",compact:!0,disabled:y||this.props.isSavingAnyOption("comment-likes"),activated:k,toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable comment Likes.","jetpack")})})}),(0,g.jsx)(u.A,{text:__("Allow readers to like individual comments.","jetpack"),link:(0,s.A)("jetpack-support-comment-likes"),privacyLink:(0,s.A)("jetpack-support-comment-likes",{anchor:"privacy"}),wpcomLink:"https://wordpress.com/support/comment-likes/"})]})]})]})}}const m=(0,c.t)(f)},58011(e,t,n){"use strict";n.d(t,{A:()=>f});var s=n(27723),r=n(51609),o=n(71766),i=n(63109),a=n(34679),c=n(2065),l=n(26508),d=n(12623),p=n(30138),u=n(71801),h=n(10790);const __=s.__;class g extends r.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,siteAdminUrl:this.props.siteAdminUrl};if(!this.props.searchTerm&&!this.props.active)return null;const t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),s=this.props.isModuleFound("gravatar-hovercards"),r=this.props.isModuleFound("comment-likes");return t||n||s||r?(0,h.jsxs)("div",{children:[(0,h.jsx)(i.A,{}),(0,h.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Discussion Settings","jetpack")}),(0,h.jsx)("h2",{className:"jp-settings__section-title",children:this.props.searchTerm?__("Discussion","jetpack"):__("Manage advanced comment settings.","jetpack")}),(0,h.jsx)(u.H,{...e,isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})]}):null}}const f=(0,o.Ng)(e=>({module:t=>(0,l.f_)(e,t),settings:(0,p.mt)(e),isOfflineMode:(0,a.hN)(e),isUnavailableInOfflineMode:t=>(0,a.Em)(e,t),isModuleFound:t=>(0,d.jQ)(e,t),connectUrl:(0,a.Qp)(e),isLinked:(0,a._U)(e),getModuleOverride:t=>(0,l.d1)(e,t),isOdysseyStatsEnabled:(0,c.jh)(e),siteAdminUrl:(0,c.eu)(e)}))(g)},70695(e,t,n){"use strict";n.d(t,{V:()=>k});var s=n(3924),r=n(97999),o=n(56427),i=n(86087),a=n(27723),c=n(57273),l=n(51609),d=n(26592),p=n(11895),u=n(63344),h=n(60619),g=n(8332),f=n(19579),m=n(78888),v=n(26224),w=n(53835),b=n(6838),y=n(10790);const __=a.__,_x=a._x,k=(0,u.t)(class extends l.Component{updateOptions=e=>{this.props.updateFormStateModuleOption("wordads",e)};trackConfigureClick=()=>{w.A.tracks.recordJetpackClick("view-earnings")};trackConfigureWidgetClick=()=>{w.A.tracks.recordJetpackClick("place_ad_widget")};handleChange=e=>()=>this.updateOptions(e);renderAdsTxtSection(){const{getOptionValue:e,isUnavailableInOfflineMode:t}=this.props,n=e("wordads_custom_adstxt_enabled","wordads"),r=e("wordads_custom_adstxt","wordads"),a=e("wordads"),c=t("wordads");return(0,y.jsxs)(f.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/",wpcomLink:"https://wordpress.com/support/manage-your-ads-txt-file/"},children:[(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:n,disabled:!a||c||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt_enabled"]),onChange:this.handleChange("wordads_custom_adstxt_enabled"),label:__("Customize your ads.txt file","jetpack")}),n&&(0,y.jsxs)(p.dV,{children:[(0,y.jsx)("br",{}),(0,y.jsxs)("p",{children:[a&&(0,i.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:(0,y.jsx)("a",{href:"/ads.txt",target:"_blank",rel:"noopener noreferrer"}),link2:(0,y.jsx)("a",{href:(0,s.A)("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}),!a&&__("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.","jetpack")]}),(0,y.jsx)(v.A,{name:"wordads_custom_adstxt",value:r,disabled:!a||c||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt"]),onChange:this.props.onOptionChange})]})]})}render(){const e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInOfflineMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),a=this.props.getOptionValue("wordads_second_belowpost","wordads"),l=this.props.getOptionValue("wordads_inline_enabled","wordads"),u=this.props.getOptionValue("wordads_display_front_page","wordads"),v=this.props.getOptionValue("wordads_display_post","wordads"),w=this.props.getOptionValue("wordads_display_page","wordads"),k=this.props.getOptionValue("wordads_display_archive","wordads"),_=this.props.getOptionValue("wordads_ccpa_enabled","wordads"),x=this.props.getOptionValue("wordads_ccpa_privacy_policy_url","wordads"),j=this.props.getOptionValue("wordads_cmp_enabled","wordads"),C=-1!==this.props.siteRawUrl.indexOf("::");return(0,y.jsxs)(g.A,{...this.props,header:_x("Ads","Ads header","jetpack"),feature:b.Xd8,saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"]),children:[(0,y.jsxs)(f.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,s.A)("jetpack-support-ads"),wpcomLink:"https://wordpress.com/support/wordads-and-earn/"},children:[(0,y.jsxs)("p",{children:[__("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"),(0,y.jsx)("br",{}),(0,y.jsx)("small",{className:"jp-form-setting-explanation",children:(0,i.createInterpolateElement)(__("By activating ads, you agree to the Automattic Ads <link>Terms of Service</link>.","jetpack"),{link:(0,y.jsx)(c.N,{openInNewTab:!0,href:(0,s.A)("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})})})]}),(0,y.jsx)(h.j,{slug:"wordads",disabled:t||this.props.isSavingAnyOption("wordads"),activated:e,toggleModule:this.props.toggleModuleNow,children:(0,y.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable ads and display an ad below each post","jetpack")})}),(0,y.jsxs)(p.dV,{children:[(0,y.jsx)(p.kK,{children:__("Display ads below posts on","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:u,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page"),label:__("Front page","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:v,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post"),label:__("Posts","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:w,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page"),label:__("Pages","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:k,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive"),label:__("Archives","jetpack")})]}),(0,y.jsxs)(p.dV,{children:[(0,y.jsx)(p.kK,{children:__("Additional ad placements","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad"),label:__("Top of each page","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost"),label:__("Second ad below post","jetpack")}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:l,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_inline_enabled"]),onChange:this.handleChange("wordads_inline_enabled"),label:__("Inline within post content","jetpack")})]})]}),(0,y.jsxs)(f.A,{hasChild:!0,support:{text:__("Enables a targeted advertising opt-out link in US states where this is legally required.","jetpack"),link:(0,r.isWoASite)()?(0,s.A)("wpcom-support-us-privacy"):(0,s.A)("jetpack-support-ads")},children:[(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:_,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_ccpa_enabled"]),onChange:this.handleChange("wordads_ccpa_enabled"),label:__("Enable targeted advertising to site visitors in all US states.","jetpack")}),_&&(0,y.jsxs)(p.dV,{children:[(0,y.jsx)("p",{children:(0,y.jsx)("small",{className:"jp-form-setting-explanation",children:__("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")})}),(0,y.jsxs)("p",{children:[(0,y.jsx)(p.kK,{children:__("Do Not Sell Link","jetpack")}),(0,i.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:(0,y.jsx)("code",{}),widgetLink:(0,y.jsx)("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}),(0,y.jsx)("span",{className:"jp-form-setting-explanation",children:__("Failure to add this link will result in non-compliance with privacy laws in some US states.","jetpack")})]})]}),_&&(0,y.jsxs)(p.dV,{children:[(0,y.jsx)(p.kK,{children:__("Privacy Policy URL","jetpack")}),(0,y.jsx)(m.A,{name:"wordads_ccpa_privacy_policy_url",placeholder:"https://",value:x,disabled:!e||t||!_||this.props.isSavingAnyOption(["wordads","wordads_ccpa_privacy_policy_url"]),onChange:this.props.onOptionChange}),(0,y.jsx)("span",{className:"jp-form-setting-explanation",children:__("Adds a link to your privacy policy to the notice popup triggered by the do not sell link (optional).","jetpack")})]})]}),(0,y.jsx)(f.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,s.A)("jetpack-support-ads"),wpcomLink:"https://wordpress.com/support/wordads-and-earn/configure-ad-settings/#consent-management"},children:(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:j,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_cmp_enabled"]),onChange:this.handleChange("wordads_cmp_enabled"),label:__("Enable GDPR Consent Banner","jetpack")})}),!C&&this.renderAdsTxtSection(),!t&&e&&(0,y.jsx)(d.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl,children:__("View your earnings","jetpack")})]})}})},89537(e,t,n){"use strict";n.d(t,{A:()=>k});var s=n(3924),r=n(86087),o=n(27723),i=n(71766),a=n(26592),c=n(63109),l=n(8332),d=n(19579),p=n(13300),u=n(53835),h=n(6838),g=n(34679),f=n(2065),m=n(26508),v=n(12623),w=n(70695),b=n(10790);const __=o.__;function y(e){const{buttonText:t,featureConstant:n="",featureName:s,infoLink:o,infoDescription:i,supportLink:c,wpcomSupportLink:h,wpcomInfoLink:g,title:f}=e,m=(0,r.useCallback)(e=>{u.A.tracks.recordJetpackClick({target:`visit-${s}`,feature:"earn"}),(0,p.wr)(e,g)},[s,g]);return(0,b.jsxs)(l.A,{...e,header:f,hideButton:!0,module:"earn",feature:n||void 0,children:[(0,b.jsx)(d.A,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{link:c,wpcomLink:h},children:i}),(0,b.jsx)(a.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:m,href:(0,p.RP)(o,g),target:"_blank",children:t})]})}const k=(0,i.Ng)(e=>({hasConnectedOwner:(0,g.BG)(e),module:t=>(0,m.f_)(e,t),isOffline:(0,g.hN)(e),isModuleFound:t=>(0,v.jQ)(e,t),isUnavailableInOfflineMode:t=>(0,g.Em)(e,t),blogID:(0,f.V2)(e)}))(function(e){const{active:t,hasConnectedOwner:n,isModuleFound:r,isOffline:o,searchTerm:i,siteRawUrl:a,blogID:p,feature:u}=e;if(!i&&!t)return null;const g=r("wordads"),f=r("earn");return g||f?(0,b.jsxs)("div",{children:[(0,b.jsx)(c.A,{}),(0,b.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Earn Settings","jetpack")}),(0,b.jsx)("h2",{className:"jp-settings__section-title",children:i?__("Earn","jetpack"):__("Explore tools to earn money with your site.","jetpack",0)}),g&&(0,b.jsx)(w.V,{...e,configureUrl:(0,s.A)("calypso-stats-ads-day",{site:p??a})}),f&&(o?(0,b.jsxs)(d.A,{children:[(0,b.jsx)("div",{className:"jp-form-block-fade"}),__("Unavailable in Offline Mode.","jetpack")]}):n?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(y,{...e,featureName:"payments",title:__("Collect payments","jetpack"),supportLink:(0,s.A)("jetpack-support-jetpack-blocks-payments-block"),wpcomSupportLink:"https://wordpress.com/support/wordpress-editor/blocks/payments/",infoLink:(0,s.A)("wpcom-earn-payments",{site:p??a}),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")}),(0,b.jsx)(y,{...e,featureName:"donations",title:__("Accept donations and tips","jetpack"),supportLink:(0,s.A)("jetpack-support-jetpack-blocks-donations-block"),wpcomSupportLink:"https://wordpress.com/support/wordpress-editor/blocks/donations/",infoLink:(0,s.A)("wpcom-earn-payments",{site:p??a}),infoDescription:__("Accept one-time and recurring donations by enabling the Donations Form block.","jetpack"),buttonText:__("Enable donations form","jetpack")}),(0,b.jsx)(y,{...e,featureName:"paypal",title:__("Collect PayPal payments","jetpack"),supportLink:(0,s.A)("jetpack-support-pay-with-paypal"),wpcomSupportLink:"https://wordpress.com/support/wordpress-editor/blocks/pay-with-paypal/",infoLink:(0,s.A)("jetpack-support-pay-with-paypal"),wpcomInfoLink:"https://wordpress.com/support/wordpress-editor/blocks/pay-with-paypal/",infoDescription:__("Accept credit card payments via PayPal for physical products, services, donations, or support of your creative work.","jetpack"),buttonText:__("Learn how to get started","jetpack"),featureConstant:h.jc4})]}):(0,b.jsx)(l.A,{...e,hideButton:!0,module:"earn",header:__("Collect payments","jetpack"),feature:u}))]}):null})},31994(e,t,n){"use strict";n.d(t,{A:()=>o});const s=[9,32,37,38,39,40];let r=!1;const o=function(){document.addEventListener("keydown",function(e){r||-1!==s.indexOf(e.keyCode)&&(r=!0,document.documentElement.classList.add("dops-accessible-focus"))}),document.addEventListener("mouseup",function(){r&&(r=!1,document.documentElement.classList.remove("dops-accessible-focus"))})}},53835(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(90372),r=n(4924);s.A.setMcAnalyticsEnabled((0,r.A)("mc_analytics_enabled")),s.A.setGoogleAnalyticsEnabled((0,r.A)("google_analytics_enabled"),(0,r.A)("google_analytics_key"));const o=s.A},6838(e,t,n){"use strict";n.d(t,{$bO:()=>G,ADq:()=>y,BfZ:()=>R,CJy:()=>ke,COP:()=>Le,CRr:()=>o,DCG:()=>q,DGp:()=>kt,DHZ:()=>d,E$T:()=>ae,EP8:()=>Pt,EX:()=>C,EiB:()=>Ze,Ek$:()=>A,EsA:()=>P,FQO:()=>he,FaP:()=>Ce,FpR:()=>Mt,FxV:()=>ht,GGh:()=>me,GiA:()=>b,Gyc:()=>De,HA9:()=>Ne,Hsn:()=>Re,I5k:()=>Be,IPX:()=>Lt,IiY:()=>Ge,Is_:()=>K,JGt:()=>v,JZ7:()=>x,Jht:()=>U,JuJ:()=>ie,JvE:()=>wt,KCE:()=>jt,KOn:()=>W,L$c:()=>Rt,LQP:()=>oe,MMo:()=>N,Mk2:()=>c,Olc:()=>_,Pp2:()=>we,Qbh:()=>pe,Qpw:()=>je,Ryn:()=>T,SDZ:()=>Ue,SyV:()=>bt,T7f:()=>M,UBB:()=>We,UIR:()=>Fe,V$p:()=>ze,VZ5:()=>$,Vno:()=>fe,W$W:()=>E,W5X:()=>dt,Wn7:()=>be,WpT:()=>a,X4A:()=>F,X8r:()=>At,Xd8:()=>mt,XkN:()=>Ct,Xoz:()=>ee,Y1M:()=>re,Y1g:()=>z,Y6$:()=>Et,YQy:()=>Ee,YRH:()=>B,YhD:()=>I,Z4D:()=>St,ZFV:()=>H,ZLW:()=>i,Zcg:()=>S,ZrU:()=>vt,_4K:()=>te,_qL:()=>zt,asM:()=>Q,b2e:()=>Z,bDd:()=>Me,bQ:()=>j,c3q:()=>Ye,cwL:()=>g,d2k:()=>gt,d6V:()=>le,dHS:()=>m,djT:()=>Ke,dji:()=>l,eJ8:()=>X,eMf:()=>qe,ebL:()=>ue,gvR:()=>ut,jc4:()=>xt,kU:()=>O,kUc:()=>V,m6F:()=>Ae,mFu:()=>L,mRQ:()=>u,nFH:()=>D,nMg:()=>k,ncG:()=>Y,nt$:()=>It,oQp:()=>Oe,om_:()=>xe,ovn:()=>ye,pcB:()=>_e,pmS:()=>w,pt9:()=>pt,pz9:()=>ne,qZE:()=>de,rD9:()=>se,raG:()=>h,sBM:()=>f,sG7:()=>$e,suP:()=>Se,t9C:()=>J,tX$:()=>ge,uRO:()=>Pe,uX5:()=>ve,ufm:()=>He,vRX:()=>Ie,vS9:()=>Te,vt4:()=>r,wBS:()=>Ve,xSu:()=>ce,xYC:()=>s,xie:()=>p,zwM:()=>Nt,zx5:()=>Je});const s="business-bundle",r="business-bundle-2y",o="business-bundle-3y",i="business-bundle-monthly",a="wp_bundle_hosting_trial_monthly",c="wp_bundle_migration_trial_monthly",l="wp_com_hundred_year_bundle_centennially",d="ecommerce-bundle",p="ecommerce-bundle-2y",u="ecommerce-bundle-3y",h="ecommerce-bundle-monthly",g="wooexpress-small-bundle-yearly",f="wooexpress-small-bundle-monthly",m="wooexpress-medium-bundle-yearly",v="wooexpress-medium-bundle-monthly",w="ecommerce-trial-bundle-monthly",b="value_bundle",y="value_bundle-2y",k="value_bundle-3y",_="value_bundle-monthly",x="personal-bundle",j="personal-bundle-2y",C="personal-bundle-3y",S="personal-bundle-monthly",A="starter-plan",E="pro-plan",M="free_plan",N="jetpack_free",T="jetpack_premium",O="jetpack_business",z="jetpack_personal",R="jetpack_premium_monthly",I="jetpack_business_monthly",P="jetpack_personal_monthly",L="jetpack_backup_t0_yearly",D="jetpack_backup_t0_monthly",F="jetpack_backup_t1_bi_yearly",U="jetpack_backup_t1_yearly",V="jetpack_backup_t1_monthly",B="jetpack_backup_t2_yearly",H="jetpack_backup_t2_monthly",$="jetpack_search_bi_yearly",W="jetpack_search",q="jetpack_search_free",K="jetpack_search_monthly",J="jetpack_starter_yearly",G="jetpack_starter_monthly",Y="jetpack_security_t1_bi_yearly",Z="jetpack_security_t1_yearly",X="jetpack_security_t1_monthly",Q="jetpack_security_t2_yearly",ee="jetpack_security_t2_monthly",te="jetpack_complete_bi_yearly",ne="jetpack_complete",se="jetpack_complete_monthly",re="jetpack_boost_bi_yearly",oe="jetpack_boost_yearly",ie="jetpack_boost_monthly",ae="jetpack_ai_monthly",ce="jetpack_ai_yearly",le="jetpack_ai_bi_yearly",de="wpcom_search",pe="wpcom_search_monthly",ue="jetpack_scan_bi_yearly",he="jetpack_scan",ge="jetpack_scan_monthly",fe="jetpack_anti_spam_bi_yearly",me="jetpack_anti_spam",ve="jetpack_anti_spam_monthly",we="jetpack_videopress_bi_yearly",be="jetpack_videopress",ye="jetpack_videopress_monthly",ke="vip",_e="jetpack_social_basic_bi_yearly",xe="jetpack_social_basic_yearly",je="jetpack_social_basic_monthly",Ce="jetpack_social_advanced_bi_yearly",Se="jetpack_social_advanced_yearly",Ae="jetpack_social_advanced_monthly",Ee="jetpack_social_v1_bi_yearly",Me="jetpack_social_v1_yearly",Ne="jetpack_social_v1_monthly",Te="jetpack_golden_token_lifetime",Oe="jetpack_creator_monthly",ze="jetpack_creator_yearly",Re="jetpack_creator_bi_yearly",Ie="jetpack_growth_monthly",Pe="jetpack_growth_yearly",Le="jetpack_growth_bi_yearly",De="jetpack_backup_daily",Fe="jetpack_backup_daily_monthly",Ue="jetpack_backup_realtime",Ve="jetpack_backup_realtime_monthly",Be="jetpack_security_daily",He="jetpack_security_daily_monthly",$e="jetpack_security_realtime",We="jetpack_security_realtime_monthly",qe="jetpack_stats_bi_yearly",Ke="jetpack_stats",Je="jetpack_stats_monthly",Ge="jetpack_stats_yearly",Ye="jetpack_stats_pwyw_yearly",Ze="jetpack_stats_free_yearly",Xe=[T,O,z,R,I,P],Qe=[J,G,Y,Z,X,Q,ee,Te,Be,He,$e,We],et=[L,D,F,U,V,B,H,De,Fe,Ue,Ve],tt=[$,W,K,q,de,pe],nt=[ue,he,ge],st=[fe,me,ve],rt=[we,be,ye],ot=[...[_e,xe,je],...[Ce,Se,Ae],...[Ee,Me,Ne]],it=[re,oe,ie],at=[le,ce,ae],ct=[qe,Ke,Je,Ge,Ye,Ze],lt=[Oe,ze,Re],dt="advanced-seo",pt="spam-akismet-plus",ut="site-backups-jetpack",ht="security-scanning-jetpack",gt="video-hosting-jetpack",ft="priority-support-jetpack",mt="wordads-jetpack",vt="google-analytics-jetpack",wt="search-jetpack",bt="videopress-jetpack",yt="ai-jetpack",kt="crm-jetpack",_t="boost-jetpack",xt="simple-payments-jetpack",jt="newsletter-jetpack",Ct="downtime-monitoring-jetpack",St="sso-jetpack",At="post-by-email-jetpack",Et="social-jetpack",Mt="blaze-jetpack",Nt="earn-jetpack",Tt="account-protection-jetpack",Ot={[Ct]:Z,[vt]:Z,[yt]:ce,[_t]:oe,[Mt]:N,[Nt]:N,[Et]:Me,[At]:N,[ft]:Z,[wt]:W,[ht]:he,[xt]:Z,[ut]:U,[pt]:me,[St]:Z,[gt]:Z,[bt]:be,[jt]:ze,[mt]:Z,[Tt]:N,[dt]:Z};function zt(e){return function(e){return et.includes(e)}(e)||function(e){return tt.includes(e)}(e)||function(e){return nt.includes(e)}(e)||function(e){return st.includes(e)}(e)||function(e){return rt.includes(e)}(e)||function(e){return ot.includes(e)}(e)||function(e){return it.includes(e)}(e)||function(e){return at.includes(e)}(e)||function(e){return ct.includes(e)}(e)||function(e){return lt.includes(e)}(e)}function Rt(e){return Qe.includes(e)}function It(e){return Xe.includes(e)}function Pt(e){return Ot[e]}function Lt(e){switch(e){case N:case M:return"is-free-plan";case x:case j:case C:case S:case A:case z:case P:return"is-personal-plan";case b:case y:case k:case _:case T:case R:return"is-premium-plan";case s:case r:case o:case i:case O:case I:case d:case p:case u:case h:case E:case a:case c:case l:case g:case f:case m:case v:case w:return"is-business-plan";case J:case G:return"is-jetpack-starter-plan";case Y:case Z:case X:return"is-security-t1-plan";case Q:case ee:return"is-security-t2-plan";case te:case ne:case se:case ke:return"is-complete-plan";case L:case D:return"is-backup-t0-plan";case F:case U:case V:return"is-backup-t1-plan";case B:case H:return"is-backup-t2-plan";case $:case W:case K:case de:case pe:return"is-search-plan";case q:return"is-free-search-plan";case ue:case he:case ge:return"is-scan-plan";case fe:case me:case ve:return"is-anti-spam-plan";case we:case be:case ye:return"is-videopress-plan";case Te:return"is-jetpack-golden-token-plan";case Re:case ze:case Oe:return"is-jetpack-creator-plan";case Le:case Pe:case Ie:return"is-jetpack-growth-plan";case Be:case He:return"is-daily-security-plan";case $e:case We:return"is-realtime-security-plan";case De:case Fe:return"is-daily-backup-plan";case Ue:case Ve:return"is-realtime-backup-plan";case _e:case xe:case je:return"is-jetpack-social-basic-plan";case Ce:case Se:case Ae:return"is-jetpack-social-advanced-plan";case Ee:case Me:case Ne:return"is-jetpack-social-v1-plan";case re:case oe:case ie:return"is-jetpack-boost-plan";case le:case ae:case ce:return"is-jetpack-ai-plan";case qe:case Ke:case Je:case Ge:case Ye:return"is-jetpack-stats-plan";case Ze:return"is-free-jetpack-stats-plan";default:return""}}},70531(e,t,n){"use strict";n.d(t,{A:()=>r});var s=n(51119);const r=(e,t)=>{const n=new s.A;let r;n.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+n.getScreenCenterSpecs(780,700)),n.once("close",()=>{let e=null;r&&r.keyring_id&&(e=Number(r.keyring_id)),t(e)}),n.on("message",e=>r=e)}},17973(e,t,n){"use strict";n.d(t,{A:()=>O});var s=n(5932),r=n(3924),o=n(39384),i=n(94900),a=n(47143),c=n(27723),l=n(20428),d=n.n(l),p=n(51609),u=n(71766),h=n(55155),g=n(77699),f=n(77279),m=n(91808),v=n(4443),w=n(38473),b=n(55109),y=n(89674),k=n(63922),_=n(53835),x=n(77496),j=n(34679),C=n(2065),S=n(89336),A=n(12623),E=n(30138),M=n(10790);const __=c.__,N=["/settings","/security","/performance","/writing","/sharing","/discussion","/earn","/reader","/traffic","/privacy"];class T extends p.Component{UNSAFE_componentWillMount(){this.props.setInitialState(),s.Ay.setApiRoot(this.props.apiRoot),s.Ay.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&_.A.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}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&&_.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&&_.A.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){const e=d()("#toplevel_page_jetpack").find("ul.wp-submenu li");e.find('a[href$="page=jetpack-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)}renderMainContent=e=>{if(this.isUserConnectScreen()&&(this.props.userCanManageModules||this.props.hasConnectedOwner)){const e=new URLSearchParams(location.search.split("?")[1]);return(0,M.jsx)(i.A,{title:this.props.connectingUserFeatureLabel&&(0,c.sprintf)(/* translators: %s: a feature label (e.g. SEO, Notifications) */ | |
| 32 | +__("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:"",autoTrigger:this.shouldAutoTriggerConnection()})}if(!this.props.userCanManageModules)return!!this.props.siteConnectionStatus&&(0,M.jsx)("div",{"aria-live":"assertive",children:(0,M.jsx)(w.A,{...this.props})});if(this.isMainConnectScreen()){const e=new URLSearchParams(location.search.split("?")[1]);return(0,M.jsxs)(o.ConnectScreen,{apiNonce:this.props.apiNonce,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"),children:[(0,M.jsx)("p",{children:__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack")}),(0,M.jsxs)("ul",{role:"list",children:[(0,M.jsx)("li",{children:__("Speed up your site with optimized images","jetpack")}),(0,M.jsx)("li",{children:__("Protect your site against bot attacks","jetpack")}),(0,M.jsx)("li",{children:__("Get notifications if your site goes offline","jetpack")}),(0,M.jsx)("li",{children:__("Enhance your site with dozens of other features","jetpack")})]})]})}let t;switch(e){case"/plans":case"/plans-prompt":window.location.href=(0,r.A)("jetpack-plans",{site:this.props.siteRawUrl});break;case"/newsletter":window.location.href=`${this.props.siteAdminUrl}admin.php?page=jetpack-newsletter`;break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/earn":case"/reader":case"/traffic":case"/privacy":t=(0,M.jsx)(x.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;default:this.props.navigate("/settings",{replace:!0})}return window.wpNavMenuClassChange(),(0,M.jsx)("div",{"aria-live":"assertive",className:""+(this.shouldBlurMainContent()?"blur":""),children:t})};shouldBlurMainContent(){return this.props.isReconnectingSite}isMainConnectScreen(){return!1===this.props.siteConnectionStatus&&this.props.userCanConnectSite}isUserConnectScreen(){return"/connect-user"===this.props.location.pathname||"/connect-user-setup"===this.props.location.pathname}shouldConnectUser(){return this.props.isConnectingUser}connectUser(){this.props.resetConnectUser(),this.props.navigate("/connect-user",{replace:!0})}shouldAutoTriggerConnection(){return this.props.location.pathname.startsWith("/setup")||this.props.location.pathname.startsWith("/connect-user-setup")}isSettingsRoute(){return N.includes(this.props.location.pathname)}render(){const e=["jp-lower"],t=this.isMainConnectScreen()||this.isUserConnectScreen();this.isMainConnectScreen()&&e.push("jp-main-connect-screen"),this.isUserConnectScreen()&&e.push("jp-user-connect-screen");const n=this.props.location.pathname;return this.isSettingsRoute()?(0,M.jsxs)("div",{children:[(0,M.jsx)(b.A,{tabs:(0,M.jsx)(y.A,{}),children:(0,M.jsxs)("div",{className:e.join(" "),children:[(0,M.jsx)(g.A,{}),(0,M.jsx)(m.Ay,{}),this.shouldConnectUser()&&this.connectUser(),this.renderMainContent(n)]})}),(0,M.jsx)(k.A,{analytics:_.A})]}):(0,M.jsxs)("div",{children:[!t&&(0,M.jsx)("div",{className:"jp-top",children:(0,M.jsx)(v.A,{location:this.props.location})}),(0,M.jsxs)("div",{className:e.join(" "),children:[(0,M.jsx)(g.A,{}),(0,M.jsx)(m.Ay,{}),this.shouldConnectUser()&&this.connectUser(),this.renderMainContent(n)]}),!t&&(0,M.jsx)(f.A,{siteAdminUrl:this.props.siteAdminUrl}),(0,M.jsx)(k.A,{analytics:_.A})]})}}const O=(0,u.Ng)(e=>({isOfflineMode:(0,j.hN)(e),connectionStatus:(0,j.HF)(e),siteConnectionStatus:(0,j.i$)(e),isLinked:(0,j._U)(e),isConnectingUser:(0,j.Cq)(e),hasConnectedOwner:(0,j.BG)(e),siteRawUrl:(0,C.XG)(e),blogID:(0,C.V2)(e),siteAdminUrl:(0,C.eu)(e),searchTerm:(0,A.nh)(e),apiRoot:(0,C.O3)(e),apiNonce:(0,C.Co)(e),tracksUserData:(0,C.io)(e),areThereUnsavedSettings:(0,E.eu)(e),userCanManageModules:(0,C.Ir)(e),userCanConnectSite:(0,C.Hz)(e),isSiteConnected:(0,j.lY)(e),isReconnectingSite:(0,j.Vs)(e),rewindStatus:(0,S.Qi)(e),currentVersion:(0,C.Mj)(e),pluginBaseUrl:(0,C.K$)(e),connectingUserFeatureLabel:(0,j.Kx)(e),connectingUserFrom:(0,j.m1)(e),isSubscriber:(0,C.EV)(e)}),e=>({setInitialState:()=>e((0,C.m$)()),clearUnsavedSettingsFlag:()=>e((0,E.jo)()),resetConnectUser:()=>e((0,j.h_)())}))((0,a.withDispatch)(e=>({setConnectionStatus:t=>{e(o.CONNECTION_STORE_ID).setConnectionStatus(t)}}))(e=>(0,M.jsx)(T,{...e,location:(0,h.zy)(),navigate:(0,h.Zp)()})));window.wpNavMenuClassChange=function(){const e=d()("body");e.on("click",'a[href$="#/settings"]',function(){window.scrollTo(0,0)}),e.on("click",".jetpack-js-stop-propagation",function(e){e.stopPropagation()})}},51686(e,t,n){"use strict";n.d(t,{A:()=>r}),n.dn(r);var s=n(2467);function r(e){Object.assign(e,s.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},73842(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(27723),r=n(71766),o=n(70386),i=n(26592),a=n(12623),c=n(10790);const __=s.__;const l=(0,r.Ng)(e=>({isSubscriptionsModuleFound:(0,a.jQ)(e,"subscriptions")}))(function({searchTerm:e,isSubscriptionsModuleFound:t,siteAdminUrl:n}){return e&&t?(0,c.jsxs)("div",{children:[(0,c.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Newsletter Settings","jetpack")}),(0,c.jsx)("h2",{className:"jp-settings__section-title",children:__("Newsletter","jetpack")}),(0,c.jsxs)(i.A,{children:[(0,c.jsx)("p",{children:__("Newsletter Settings have moved to a new location. Access it via Jetpack → Newsletter.","jetpack")}),(0,c.jsx)(o.A,{href:`${n}admin.php?page=jetpack-newsletter`,primary:!0,rna:!0,children:__("Go to Newsletter Settings","jetpack")})]})]}):null})},84202(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(10067),r=n.n(s),o=n(51686);n(92804);const i=r()("calypso:notices");i("initializing notices");const a={containerNames:{}};(0,o.A)(a);let c=[];const l={new:function(e,t,n){const s=t.overlay?"overlay-notices":"notices";a.containerNames[s]=s,i("creating notice",e,t,n),a[s]=[];const r={type:t.type||"message",status:n,text:e,duration:t.duration,container:s,button:t.button,href:t.href,onClick:e=>{if("function"==typeof t.onClick){const n=l.removeNotice.bind(l,r);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?c.push(r):a[s].push(r),a.emit("change"),r},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:a,removeNotice:function(e){if(!e.container)return;const t=a[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),a.emit("change"))},clearNoticesOnNavigation:function(e,t){i("clearNoticesOnNavigation");let n,s,r=!1;const o=function(e){return e.persistent};for(s in a.containerNames)n=a[s].length,a[s]=a[s].filter(o),n!==a[s].length&&(r=!0);c.length&&(c.forEach(function(e){a[e.container]=[],a[e.container].push(e)}),c=[]),r&&a.emit("change"),t()},clearNotices:function(e){a[e]=[],a.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}},d=l},79223(e,t,n){"use strict";n.d(t,{A:()=>f});var s=n(27723),r=n(51609),o=n(71766),i=n(63109),a=n(34679),c=n(26508),l=n(12623),d=n(65779),p=n(17467),u=n(37276),h=n(10790);const __=s.__;class g extends r.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)?(0,h.jsxs)("div",{children:[(0,h.jsx)(i.A,{}),(0,h.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Performance Settings","jetpack")}),(0,h.jsx)("h2",{className:"jp-settings__section-title",children:this.props.searchTerm?__("Performance","jetpack"):__("Load pages faster, optimize images, and speed up your visitors’ experience.","jetpack")}),(0,h.jsx)(p.A,{...e}),(0,h.jsx)(u.A,{...e}),(0,h.jsx)(d.A,{...e})]}):null}}const f=(0,o.Ng)(e=>({module:t=>(0,c.f_)(e,t),isUnavailableInOfflineMode:t=>(0,a.Em)(e,t),isModuleFound:t=>(0,l.jQ)(e,t),getModuleOverride:t=>(0,c.d1)(e,t),hasConnectedOwner:(0,a.BG)(e)}))(g)},65779(e,t,n){"use strict";n.d(t,{A:()=>x});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(51609),c=n(71766),l=n(11895),d=n(3983),p=n(63344),u=n(60619),h=n(8332),g=n(19579),f=n(6838),m=n(83101),v=n(34679),w=n(26508),b=n(12623),y=n(82656),k=n(10790);const __=i.__,_x=i._x;class _ extends a.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:n,hasVideoPressFeature:a,hasVideoPressUnlimitedStorage:c,isFetching:p,isOffline:m,upgradeUrl:v,videoPressStorageUsed:w}=this.props,b=a&&!c&&null!==w,y=a||null===w||0!==w?__("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"),_=(0,k.jsxs)(g.A,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:(0,s.A)("jetpack-support-videopress"),wpcomLink:"https://wordpress.com/support/videopress/"},children:[(0,k.jsx)(l.kK,{className:"jp-form-label-wide",children:__("VideoPress","jetpack")}),(0,k.jsxs)("p",{children:[" ",__("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")," "]}),b&&(0,k.jsxs)("div",{className:"media__videopress-storage",children:[(0,k.jsx)(r.ProgressBar,{value:Math.min(w/1e6*100,100)}),(0,k.jsx)("span",{children:(0,o.createInterpolateElement)((0,i.sprintf)(/* translators: %d is a number (disk space used) */ | |
| 33 | +__("Using <strong>%dGB</strong> of 1TB","jetpack"),Math.round(w/1024)),{strong:(0,k.jsx)("strong",{})})})]}),n&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(u.j,{slug:"videopress",disabled:this.props.isUnavailableInOfflineMode("videopress")||this.props.isSavingAnyOption("videopress"),activated:this.props.getOptionValue("videopress"),toggleModule:this.props.toggleModuleNow,children:(0,k.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable VideoPress","jetpack")})}),(0,k.jsx)(l.dV,{children:(0,k.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,id:"videopress-site-privacy",disabled:!this.props.getOptionValue("videopress")||this.props.isSavingAnyOption("videopress_private_enabled_for_site"),checked:this.props.getOptionValue("videopress_private_enabled_for_site"),onChange:this.togglePrivacySetting,label:(0,k.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Video Privacy: Restrict views to members of this site","jetpack")})})})]})]}),x="inactive"===this.props.getModuleOverride("videopress"),j=e&&!a&&n&&!m&&!p;return(0,k.jsxs)(h.A,{...this.props,header:__("Media","jetpack"),feature:!x&&f.d2k,hideButton:!0,children:[e&&_,j&&(0,k.jsx)(d.Ay,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:y,eventFeature:"videopress",icon:"video",plan:(0,f.EP8)(f.SyV),feature:"jetpack_videopress",href:v,rna:!0})]})}}const x=(0,c.Ng)(e=>({module:t=>(0,w.f_)(e,t),isModuleFound:t=>(0,b.jQ)(e,t),sitePlan:(0,y.X6)(e),hasVideoPressFeature:(0,y.IT)(e,"videopress-1tb-storage")||(0,y.IT)(e,"videopress-unlimited-storage")||(0,y.IT)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,y.IT)(e,"videopress-unlimited-storage"),hasConnectedOwner:(0,v.BG)(e),isOffline:(0,v.hN)(e),isFetching:(0,y.SN)(e),getModuleOverride:t=>(0,w.d1)(e,t),upgradeUrl:(0,m.F)(e,"videopress"),videoPressStorageUsed:(0,y.$U)(e)}))((0,p.t)(_))},17467(e,t,n){"use strict";n.d(t,{A:()=>m});var s=n(3924),r=n(27723),o=n(71766),i=n(26592),a=n(63344),c=n(8332),l=n(19579),d=n(6838),p=n(34679),u=n(10790);const __=r.__,h=__("Jetpack Search helps your visitors instantly find the right content. Choose how Search appears on your site — as an embedded results page, an overlay, or in place of your theme’s default search.","jetpack"),g=__("Manage Search settings","jetpack"),f=__("Search supports many customizations.","jetpack");const m=(0,o.Ng)(e=>({inOfflineMode:(0,p.hN)(e)}))((0,a.t)(function(e){return(0,u.jsxs)(c.A,{...e,module:"search",feature:d.JvE,hideButton:!0,children:[(0,u.jsx)(l.A,{disableInOfflineMode:!0,module:{module:"search"},support:{text:f,link:(0,s.A)("jetpack-support-search")},children:(0,u.jsx)("p",{children:e.inOfflineMode?__("Unavailable in Offline Mode","jetpack"):h})}),!e.inOfflineMode&&(0,u.jsx)(i.A,{compact:!0,className:"jp-settings-card__configure-link",href:"admin.php?page=jetpack-search#/settings",children:g})]})}))},37276(e,t,n){"use strict";n.d(t,{A:()=>b});var s=n(3924),r=n(56427),o=n(27723),i=n(51609),a=n(71766),c=n(11895),l=n(63344),d=n(60619),p=n(8332),u=n(19579),h=n(53835),g=n(34679),f=n(26508),m=n(12623),v=n(10790);const __=o.__,w=(0,l.t)(class extends i.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 n=e||t,s=this.props.getModuleOverride("photon-cdn");let r=this.props.getModuleOverride("photon");if(this.props.isOfflineMode&&(r="inactive"),!0===n){const n={progress:__("Disabling site accelerator…","jetpack"),success:__("Site accelerator is no longer speeding up your site!","jetpack"),error:e=>(0,o.sprintf)(/* translators: %s: an error code. */ | |
| 34 | +__("Error disabling site accelerator. %s","jetpack"),e)};let i={};!1==!e&&"active"!==r&&(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,n)}else{const n={progress:__("Enabling Site accelerator…","jetpack"),success:__("Site accelerator is now speeding up your site!","jetpack"),error:e=>(0,o.sprintf)(/* translators: %s: an error code. */ | |
| 35 | +__("Error enabling Site accelerator. %s","jetpack"),e)};let i={};!1===e&&"inactive"!==r&&(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,n)}!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 n=this.props.getOptionValue("photon")||this.props.getOptionValue("photon-cdn"),o=this.props.getModuleOverride("photon-cdn");let i=this.props.getModuleOverride("photon");this.props.isOfflineMode&&(i="inactive");const a=e&&t&&("inactive"!==i||"inactive"!==o),l=(e||t)&&("inactive"!==i||"inactive"!==o);let h;return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?h=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?h=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(h=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(h=!0)):h=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),(0,v.jsx)(p.A,{...this.props,header:__("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed",children:(e||t)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(u.A,{hasChild:!0,support:{link:(0,s.A)("jetpack-support-site-accelerator"),wpcomLink:"https://wordpress.com/support/site-accelerator-cdn/"},children:[(0,v.jsx)("p",{children:__("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")}),l&&(0,v.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:n,onChange:this.handleSiteAcceleratorChange,disabled:!a||h,label:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable site accelerator","jetpack")})}),(0,v.jsxs)(c.dV,{children:[e&&(0,v.jsx)(d.j,{slug:"photon",disabled:this.props.isUnavailableInOfflineMode("photon")||this.props.isSavingAnyOption("photon"),activated:this.props.getOptionValue("photon"),toggleModule:this.toggleModule,children:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Speed up image load times","jetpack")})}),t&&(0,v.jsx)(d.j,{slug:"photon-cdn",disabled:this.props.isSavingAnyOption("photon-cdn"),activated:this.props.getOptionValue("photon-cdn"),toggleModule:this.toggleModule,children:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Speed up static file load times","jetpack")})})]})]})})})}}),b=(0,a.Ng)(e=>({module:t=>(0,f.f_)(e,t),isModuleFound:t=>(0,m.jQ)(e,t),isOfflineMode:(0,g.hN)(e),getModuleOverride:t=>(0,f.d1)(e,t)}))(w)},91521(e,t,n){"use strict";n.d(t,{A:()=>j});var s=n(3924),r=n(86087),o=n(27723),i=n(57273),a=n(28120),c=n.n(a),l=n(51609),d=n(71766),p=n(62413),u=n(63344),h=n(8332),g=n(19579),f=n(53835),m=n(30138),v=n(83177),w=n(51142),b=n(10790);const __=o.__,_x=o._x,y=()=>f.A.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"}),k=()=>f.A.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"}),_=()=>f.A.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"});class x extends l.Component{static displayName="PrivacySettings";static propTypes={searchTerm:c().string,active:c().bool,toggleTracking:c().func,getOptionValue:c().func,isSavingAnyOption:c().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()&&(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Privacy Settings","jetpack")}),(0,b.jsx)(h.A,{...this.props,header:_x("Privacy Settings","Settings header","jetpack"),hideButton:!0,children:(0,b.jsxs)(g.A,{hasChild:!0,children:[(0,b.jsx)("p",{children:__("We are committed to your privacy and security.","jetpack")}),(0,b.jsx)("p",{children:(0,b.jsx)(p.A,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings",children:(0,r.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:(0,b.jsx)(i.N,{openInNewTab:!0,href:(0,s.A)("a8c-cookies"),onClick:k,rel:"noopener noreferrer"})})})}),(0,b.jsx)("p",{children:(0,r.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:(0,b.jsx)(i.N,{openInNewTab:!0,href:(0,s.A)("a8c-privacy"),onClick:y,rel:"noopener noreferrer"})})}),(0,b.jsx)("p",{children:(0,r.createInterpolateElement)(__("We use other tracking tools, including some from third parties. <cookiePolicyLink>Read about these</cookiePolicyLink> and how to control them.","jetpack"),{cookiePolicyLink:(0,b.jsx)(i.N,{openInNewTab:!0,href:(0,s.A)("a8c-cookies"),onClick:k,rel:"noopener noreferrer"})})}),(0,b.jsx)("p",{children:(0,r.createInterpolateElement)(__("For more information on how specific Jetpack features use data and track activity, please refer to our <privacyCenterLink>Privacy Center</privacyCenterLink>.","jetpack"),{privacyCenterLink:(0,b.jsx)(i.N,{openInNewTab:!0,href:(0,s.A)("jetpack-support-privacy"),onClick:_,rel:"noopener noreferrer"})})})]})})]}):null}}const j=(0,d.Ng)(e=>({settings:(0,m.mt)(e),trackingSettings:(0,w.h5)(e),isUpdatingTrackingSettings:(0,w.vu)(e),isFetchingTrackingSettings:(0,w.h)(e)}),e=>({setTrackingSettings:t=>{f.A.tracks.setOptOut(t),e((0,v.Y)({tracks_opt_out:t}))},fetchTrackingSettings:()=>e((0,v.X)())}))((0,u.t)(x))},72747(e,t,n){"use strict";n.d(t,{A:()=>M});var s=n(3924),r=n(27723),o=n(17587),i=n(13022),a=n(28120),c=n.n(a),l=n(51609),d=n(71766),p=n(70386),u=n(17659),h=n(37866),g=n(64610),f=n(53835),m=n(32819),v=n(34679),w=n(2065),b=n(89336),y=n(76358),k=n(82656),_=n(77423),x=n(61091),j=n(10790);const __=r.__,_n=r._n,_x=r._x,C=({status:e,label:t})=>(0,j.jsxs)(o.E,{variant:"body-sm",className:(0,i.A)(x.A.status,x.A[`is-${e}`]),children:[(0,j.jsx)("span",{className:x.A.indicator}),(0,j.jsx)("span",{children:t})]}),S={active:__("Active","jetpack"),error:__("Error","jetpack"),action:__("Action needed","jetpack"),inactive:__("Inactive","jetpack"),initializing:__("Setting up","jetpack")},A=(e,t)=>()=>((e,t)=>f.A.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t}))(e,t);class E extends l.Component{static propTypes={isCompact:c().bool,proFeature:c().string,rewindStatus:c().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 n="",r=!1,o=!1,i="";switch(e){case"threats":n="error",o=_x("Threats detected","A caption for a small button to fix security issues.","jetpack"),i=(0,s.A)("vaultpress-dashboard");break;case"secure":n="active",r=_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(0,j.jsx)(C,{status:e.status,label:S[e.status]})}case"active":return(0,j.jsx)(C,{status:"active",label:S.active})}const a=(0,j.jsxs)(j.Fragment,{children:[r,o&&(0,j.jsx)("a",{onClick:A(e,t),href:i,children:o})]});return(0,j.jsx)(C,{status:n,label:a})};getSetUpButton=e=>(0,j.jsx)(p.A,{onClick:A("set_up",e),compact:!0,primary:!0,href:(0,s.A)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:`only=${e}`}),children:_x("Set up","Caption for a button to set up a feature.","jetpack")});render(){const{purchasedVaultPressBackups:e,purchasedVaultPressScan:t,scanStatus:n}=this.props,s=this.props.sitePlan,r=this.props.getVaultPressData();let o="";"scan"!==this.props.proFeature&&"backups"!==this.props.proFeature&&"vaultpress"!==this.props.proFeature||(o="vaultpress/vaultpress.php"),"akismet"===this.props.proFeature&&(o="akismet/akismet.php");const i=/jetpack_free*/.test(s.product_slug),a=r?.data?.features?.backups??!1,c=r?.data?.features?.security??!1;return(0,j.jsxs)("div",{children:[(0,j.jsx)(h.A,{}),(0,j.jsx)(u.A,{}),(0,j.jsx)(g.A,{}),!this.props.isOfflineMode&&((l,d,p)=>{switch(l){case"rewind":return this.getProActions("rewind_connected","rewind");case"backups":if(i&&!a&&this.props.isCompact)return"";break;case"scan":if(this.props.fetchingSiteData||this.props.isFetchingVaultPressData)return"";if("N/A"!==r)return t?c?this.getProActions(0===this.props.getScanThreats()?"secure":"threats","scan"):this.getSetUpButton("scan"):!e||a||this.props.isCompact?"":this.getSetUpButton("backups");if(n&&"unavailable"!==n.state)return Array.isArray(n.threats)&&n.threats.length>0?(0,j.jsx)(C,{status:"error",label:_n("Threat","Threats",n.threats.length,"jetpack")}):n.credentials?0===n.credentials.length?(0,j.jsx)(C,{status:"action",label:S.action}):this.getProActions("secure","scan"):"";break;case"search":return"";case"akismet":if(i&&(!d||!p))return"";if(!this.props.isAkismetKeyValid&&!this.props.fetchingAkismetData&&d&&p&&!i)return this.getSetUpButton(l)}return s.product_slug&&o&&!i?d&&p?this.getProActions("active"):this.getSetUpButton(l):""})(this.props.proFeature,this.props.pluginActive(o),this.props.pluginInstalled(o))]})}}const M=(0,d.Ng)(e=>{const t=(0,k.X6)(e);return{siteRawUrl:(0,w.XG)(e),siteAdminUrl:(0,w.eu)(e),getScanThreats:()=>(0,m.mK)(e),getVaultPressData:()=>(0,m.Cc)(e),getAkismetData:()=>(0,m.PU)(e),isFetchingVaultPressData:(0,m.en)(e),sitePlan:t,fetchingPluginsData:(0,_.rC)(e),pluginActive:t=>(0,_.gT)(e,t),pluginInstalled:t=>(0,_.O8)(e,t),isOfflineMode:(0,v.hN)(e),fetchingSiteData:(0,k.Kb)(e),isAkismetKeyValid:(0,m.Ee)(e),fetchingAkismetData:(0,m.Ri)(e),rewindStatus:(0,b.Qi)(e),scanStatus:(0,y.W4)(e),purchasedVaultPressBackups:(0,k.IT)(e,"vaultpress-backups"),purchasedVaultPressScan:(0,k.IT)(e,"vaultpress-security-scanning")}})(E)},64793(e,t,n){"use strict";n.d(t,{h:()=>s});const s=[`/add-${"akismet"}`,`/add-${"backup"}`,`/add-${"scan"}`,`/add-${"search"}`,`/add-${"security"}`,`/add-${"social"}`,`/add-${"videopress"}`,`/add-${"jetpack-ai"}`]},83101(e,t,n){"use strict";n.d(t,{$:()=>i,F:()=>a});var s=n(3924),r=n(2065),o=n(64793);const i=()=>URLSearchParams&&!!new URLSearchParams(window.location?.search).get("new_pricing_202208"),a=(e,t)=>{const n=(0,r.eu)(e);if("search"===t)return`${n}admin.php?page=jetpack-search`;if(!(0,r.WS)(e))return(0,s.A)("jetpack-plans",{site:(0,r.XG)(e)});const i=`${n}admin.php?page=my-jetpack`;return o.h.includes(`/add-${t}`)?`${i}#/add-${t}`:i}},28742(e,t,n){"use strict";n.d(t,{A:()=>y});var s=n(3924),r=n(97999),o=n(27723),i=n(93832),a=n(51609),c=n(71766),l=n(26592),d=n(63109),p=n(63344),u=n(60619),h=n(11346),g=n(8332),f=n(19579),m=n(53835),v=n(26508),w=n(12623),b=(n(24016),n(10790));const __=o.__;const y=(0,p.t)((0,c.Ng)((e,t)=>{const n="wpcom-reader";return{moduleName:n,isReaderModuleActive:t.getOptionValue(n),readerModule:(0,v.f_)(e,n),isModuleFound:t=>(0,w.jQ)(e,t)}})(function(e){const{active:t,isModuleFound:n,searchTerm:o,blogID:c,isSavingAnyOption:p,isReaderModuleActive:v,readerModule:w,updateOptions:y,getOptionValue:k,refreshSettings:_,moduleName:x}=e,j=(0,a.useCallback)(e=>{const t=k(e);m.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:e,toggled:t?"off":"on"}),y({[e]:!t}).then(()=>{t||_()})},[k,y,_]),C=(0,a.useCallback)(()=>{m.A.tracks.recordJetpackClick("open-reader-from-admin-bar")},[]);if(!o&&!t)return null;if(!n(x))return null;const S=(0,r.isWoASite)(),A=S&&(0,b.jsx)(h.A,{status:"is-info",showDismiss:!1,text:__("This feature is automatically managed for you on WordPress.com sites.","jetpack")}),E=(0,b.jsxs)(f.A,{hasChild:!0,module:w,support:{text:__("Quickly access the WordPress.com Reader from your site’s admin bar.","jetpack"),link:(0,s.A)("jetpack-support-reader")},children:[(0,b.jsx)("h3",{className:"jp-form-label-wide",children:__("Follow sites and discover new content from the WordPress.com and Jetpack network.","jetpack")}),(0,b.jsxs)("ul",{role:"list",className:"jp-reader-discover__list",children:[(0,b.jsx)("li",{children:__("Follow blogs you like","jetpack")}),(0,b.jsx)("li",{children:__("Discover posts by topic","jetpack")}),(0,b.jsx)("li",{children:__("Reach new readers","jetpack")})]}),(0,b.jsx)(u.j,{slug:x,activated:v,toggleModule:j,disabled:S||p(x),children:(0,b.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Add a link to the Reader in the top navigation bar","jetpack")})})]}),M=(0,i.addQueryArgs)("https://wordpress.com/reader/",c?{origin_site_id:c}:{}),N=(0,b.jsx)(l.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:C,href:M,target:"_blank",rel:"noopener noreferrer",children:__("Visit the Reader","jetpack")});return(0,b.jsxs)("div",{children:[(0,b.jsx)(d.A,{}),(0,b.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Reader Settings","jetpack")}),(0,b.jsx)("h2",{className:"jp-settings__section-title",children:o?__("Reader","jetpack"):__("Discover and follow your favorite sites with the WordPress.com Reader.","jetpack",0)}),(0,b.jsxs)(g.A,{...e,header:__("Reader Visibility","jetpack"),hideButton:!0,module:x,children:[A&&(0,b.jsx)("div",{className:"jp-settings-card__notice",children:A}),E,N]})]})}))},15775(e,t,n){"use strict";n.d(t,{A:()=>w});var s=n(27723),r=n(51609),o=n(71766),i=n(36336),a=n(43100),c=n(63344),l=n(8332),d=n(19579),p=n(34679),u=n(2065),h=n(26508),g=n(12623),f=n(10790);const __=s.__,m=(0,c.t)(class extends r.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,n=[];for(const[s,r]of Object.entries(t))if(this.props.isModuleFound(s)&&e.includes(s)){const e=this.props.isOfflineMode&&this.props.isUnavailableInOfflineMode(r.module),t=!this.props.hasConnectedOwner&&this.props.isUnavailableInSiteConnectionMode(r.module);if(e||t){n.push((0,f.jsx)(v,{moduleData:r,offlineMode:e,siteConnectionMode:t},s));continue}this.props.getOptionValue(r.module)?n.push((0,f.jsx)(v,{moduleData:r},s)):n.push((0,f.jsx)(i.Ay,{className:"jp-searchable-banner",callToAction:__("Activate","jetpack"),description:r.description,href:"#",icon:"cog",onClick:this.handleBannerClick(r.module),title:r.name},s))}return(0,f.jsx)("div",{children:n})}});class v extends r.Component{render(){const e=this.props.moduleData,t=this.props.offlineMode,n=this.props.siteConnectionMode;return(0,f.jsxs)(l.A,{module:e.module,header:e.name,action:e.module,hideButton:!0,children:[(0,f.jsx)(d.A,{disableInOfflineMode:t,disableInSiteConnectionMode:n,module:{module:e.module},support:{link:e.learn_more_button},children:e.description}),n&&(0,f.jsx)(a.A,{feature:e.module,featureLabel:e.name,text:__("Connect to configure.","jetpack")})]})}}const w=(0,o.Ng)(e=>({modules:(0,h.eI)(e),isModuleFound:t=>(0,g.jQ)(e,t),canManageModules:(0,u.Ir)(e),isUnavailableInOfflineMode:t=>(0,p.Em)(e,t),isOfflineMode:(0,p.hN)(e),isUnavailableInSiteConnectionMode:t=>(0,p.g)(e,t)}))(m)},19926(e,t,n){"use strict";n.d(t,{H:()=>v});var s=n(3924),r=n(27723),o=n(51609),i=n(71766),a=n(63344),c=n(60619),l=n(8332),d=n(19579),p=n(12623),u=n(11346),h=n(44089),g=n(10790);const __=r.__,_x=r._x,f="account-protection",m=class extends o.Component{render(){const{isSupported:e,isActive:t,unavailableInOfflineMode:n}=this.props,r=this.props.getModule(f);return(0,g.jsxs)(l.A,{...this.props,module:f,header:_x("Account protection","Settings header","jetpack"),hideButton:!0,children:[!e&&(0,g.jsx)("div",{className:"jp-settings-card__notice",children:(0,g.jsx)(u.A,{status:"is-info",showDismiss:!1,text:__("This feature has been disabled by your site administrator or hosting provider.","jetpack"),children:(0,g.jsx)(h.A,{external:!0,href:(0,s.A)("jetpack-account-protection",{anchor:"unsupported-environments"}),children:__("Learn more","jetpack")})})}),e&&!t&&(0,g.jsx)("div",{className:"jp-settings-card__notice",children:(0,g.jsx)(u.A,{showDismiss:!1,status:"is-info",text:__("Jetpack recommends enabling this feature to enhance account security.","jetpack"),children:(0,g.jsx)(h.A,{external:!0,href:(0,s.A)("jetpack-account-protection-risks"),children:__("Learn about the risks","jetpack")})})}),(0,g.jsx)(d.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:r,support:{text:r.long_description,link:r.learn_more_button},children:(0,g.jsx)(c.j,{slug:"account-protection",compact:!0,disabled:!e||n||this.props.isSavingAnyOption(f),activated:t,toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Protect your site with advanced password detection and profile management protection.","jetpack")})})})]})}},v=(0,a.t)((0,i.Ng)((e,t)=>({isSupported:(0,p.jQ)(e,f),isActive:(0,p.jQ)(e,f)&&t.getOptionValue(f),unavailableInOfflineMode:t.isUnavailableInOfflineMode(e,f)}))(m))},20790(e,t,n){"use strict";n.d(t,{A:()=>b});var s=n(56427),r=n(27723),o=n(51609),i=n(71766),a=n(70386),c=n(11895),l=n(5546),d=n(63344),p=n(8332),u=n(19579),h=n(96337),g=n(26224),f=n(72868),m=n(80911),v=n(10790);const __=r.__,_x=r._x,w=class extends o.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",duration:2e3})}).catch(e=>{this.props.removeNotice("module-setting-update"),this.props.createNotice("is-error",(0,r.sprintf)(/* translators: %s: an error code or an error message. */ | |
| 36 | +__("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=()=>!!this.state.ipAllowList?.includes(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"),n=e&&t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),o=(0,v.jsx)("div",{className:"waf__header",children:(0,v.jsx)("span",{children:_x("Always allowed IP addresses","Settings header","jetpack")})});return(0,v.jsxs)(p.A,{...this.props,header:o,module:"waf",onSubmit:this.onSubmit,hideButton:!0,children:[(0,v.jsx)(h.A,{}),(0,v.jsx)(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},children:(0,v.jsx)(c.dV,{children:(0,v.jsxs)("div",{className:"waf__settings__toggle-setting",children:[(0,v.jsx)(s.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.settings?.ipAllowListEnabled,disabled:n,onChange:this.toggleIpAllowList,label:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Prevent Jetpack's security features from blocking specific IP addresses.","jetpack")})}),(this.state.ipAllowListEnabled||!!this.state.ipAllowList)&&(0,v.jsx)(g.A,{className:"waf__settings__ips",disabled:n||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&&(0,v.jsxs)("div",{className:"waf__settings__ips__button-container",children:[this.props.currentIp&&(0,v.jsxs)("div",{className:"current-ip",children:[(0,v.jsx)("div",{className:"jp-form-label-wide",children:(0,r.sprintf)(/* translators: %s: an IP address. */ | |
| 37 | +__("Your current IP: %s","jetpack"),this.props.currentIp)}),(0,v.jsx)(a.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,children:__("Add to Allow List","jetpack")})]}),(0,v.jsx)(a.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,children:__("Save allow list","jetpack")})]})]})})})]})}},b=(0,i.Ng)(e=>({isFetchingSettings:(0,m._e)(e),isUpdatingWafSettings:(0,m.EK)(e),settings:(0,m.IE)(e)}),e=>({updateWafSettings:t=>e((0,f.J)(t)),createNotice:(t,n,s)=>e((0,l.Fc)(t,n,s)),removeNotice:t=>e((0,l.fj)(t))}))((0,d.t)(w))},93498(e,t,n){"use strict";n.d(t,{A:()=>k});var s=n(86087),r=n(27723),o=n(66087),i=n(51609),a=n(71766),c=n(97058),l=n(94025),d=n(11895),p=n(31497),u=n(63344),h=n(8332),g=n(19579),f=n(78888),m=n(53835),v=n(6838),w=n(32819),b=n(10790);const __=r.__,_x=r._x,y=(0,u.t)(class extends i.Component{state={apiKey:this.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}};keyChanged=!1;UNSAFE_componentWillMount(){this.debouncedCheckApiKeyTyped=(0,o.debounce)(this.checkApiKeyTyped,500)}checkApiKeyTyped=e=>{this.props.checkAkismetKey(e.currentTarget.value),this.keyChanged=!0,this.setState({delayKeyCheck:!1})};updateText=e=>{const t=Object.assign({},e);t.currentTarget.value=String(t.currentTarget.value).trim(),this.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},this.debouncedCheckApiKeyTyped(t))};componentDidUpdate(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,o.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}trackOpenCard=()=>{m.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="",n=__("Checking your spam protection…","jetpack"),r=(0,s.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:(0,b.jsx)("a",{href:"https://akismet.com/wordpress/"})});return null===this.props.isAkismetKeyValid?(e.value=__("Fetching key…","jetpack"),e.disabled=!0,r=!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,n=__("Your site is protected from spam.","jetpack"),r=__("It looks like your API key has been set globally.","jetpack"),t=(0,b.jsx)(l.A,{text:__("Your Anti-spam key is valid.","jetpack")})):""===this.state.apiKey?(e.value="",n=__("Your site needs an Anti-spam key.","jetpack")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=(0,b.jsx)("div",{className:"form-input-validation is-warning",children:(0,b.jsxs)("span",{children:[(0,b.jsx)(p.A,{size:24,icon:"sync"}),__("Checking key…","jetpack")]})}),r=!1):!1===this.props.isAkismetKeyValid?(t=(0,b.jsx)(l.A,{isError:!0,text:(0,s.createInterpolateElement)(__("There's a problem with your Anti-spam API key. <a>Learn more</a>.","jetpack"),{a:(0,b.jsx)("a",{href:"https://docs.akismet.com/getting-started/api-key/"})})}),e.isError=!0,n=__("Your site is not protected from spam.","jetpack")):(t=(0,b.jsx)(l.A,{text:__("Your Anti-spam key is valid.","jetpack")}),e.isValid=!0,n=__("Your site is protected from spam.","jetpack"),r=!1),(0,b.jsx)(h.A,{...this.props,header:_x("Anti-spam","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:v.pt9,children:(0,b.jsx)(c.A,{onOpen:this.trackOpenCard,header:n,children:(0,b.jsx)(g.A,{support:{text:__("Removes spam from comments and contact forms.","jetpack"),link:"https://akismet.com/support/getting-started/activate/",privacyLink:"https://akismet.com/privacy/",wpcomLink:"https://wordpress.com/support/protect-from-spam/"},children:(0,b.jsxs)(d.dV,{children:[(0,b.jsxs)(d.lR,{children:[(0,b.jsx)("span",{className:"jp-form-label-wide",children:__("Your API key","jetpack")}),(0,b.jsx)(f.A,{...e}),t]}),r&&(0,b.jsx)("p",{className:"jp-form-setting-explanation",children:r})]})})})})}}),k=(0,a.Ng)(e=>({isAkismetKeyValid:(0,w.Ee)(e),isCheckingAkismetKey:(0,w.OY)(e)}),e=>({checkAkismetKey:(t="")=>e((0,w.EI)(t))}))(y)},55252(e,t,n){"use strict";n.d(t,{A:()=>M});var s=n(3924),r=n(54268),o=n(86087),i=n(27723),a=n(28847),c=n(28120),l=n.n(c),d=n(51609),p=n(71766),u=n(36336),h=n(26592),g=n(26468),f=n(63344),m=n(8332),v=n(19579),w=n(53835),b=n(6838),y=n(32819),k=n(2065),_=n(26508),x=n(89336),j=n(82656),C=n(10790);const __=i.__,_x=i._x,_n=i._n;class S extends d.Component{render(){return(0,C.jsx)(m.A,{header:_x("Backups and security scanning","Settings header","jetpack"),hideButton:!0,action:"scan",children:(0,C.jsx)(v.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,s.A)("vaultpress-help-get-to-know")},children:__("Checking site status…","jetpack")})})}}class A extends d.Component{static propTypes={isOfflineMode:l().bool,siteRawUrl:l().string,rewindState:l().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:a.A,type:"warning",description:__("Enter your SSH, SFTP, or FTP credentials to enable one-click site restores and fixes","jetpack"),url:(0,s.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,s.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:n,description:s,type:r,url:o}=this.getRewindMessage();return(0,C.jsx)(u.Ay,{title:e,icon:t,iconWp:n,feature:"rewind",description:s,className:`jp-banner__no-border is-jetpack-${r||"info"}`,href:o})};render(){return(0,C.jsx)(m.A,{feature:"rewind",...this.props,header:_x("Backups and security scanning","Settings header","jetpack"),action:"rewind",hideButton:!0,children:this.getCardText()})}}const E=(0,f.t)(class extends d.Component{toggleModule=(e,t)=>{this.props.updateFormStateOptionValue(e,!t)};trackConfigureClick=()=>{w.A.tracks.recordJetpackClick("configure-scan")};getCardText(){if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");const e=this.props.vaultPressData?.data?.features?.backups??!1,t=this.props.vaultPressData?.data?.features?.security??!1;if(e&&t){const e=this.props.hasThreats;return e?(0,C.jsxs)("div",{children:[(0,C.jsx)("strong",{children:(0,i.sprintf)(/* Translators: %s: the number of threats. */ | |
| 38 | +_n("Uh oh, %s threat found.","Uh oh, %s threats found.",e,"jetpack"),(0,r.ZV)(e))}),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,o.createInterpolateElement)(__("<a>View details</a>","jetpack"),{a:(0,C.jsx)("a",{href:(0,s.A)("vaultpress-dashboard")})}),(0,C.jsx)("br",{}),(0,o.createInterpolateElement)(__("<a>Contact Support</a>","jetpack"),{a:(0,C.jsx)("a",{href:(0,s.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||!this.props.showScan)return null;const e=this.props.vaultPressData?.data?.features?.security??!1,t=this.props.rewindStatus?.state??!1,n=!1!==t,r="N/A"!==this.props.vaultPressData&&!1!==(this.props.vaultPressData?.data??!1);return n||!this.props.vaultPressActive||r?["provisioning","awaiting_credentials","active"].includes(t)?(0,C.jsx)(A,{...this.props,rewindState:t}):(0,C.jsxs)(m.A,{feature:b.FxV,...this.props,header:_x("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0,children:[(0,C.jsx)(g.A,{}),(0,C.jsx)(v.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,s.A)("vaultpress-help-get-to-know")},children:this.getCardText()}),!this.props.isUnavailableInOfflineMode("backups")&&e&&(0,C.jsx)(h.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:(0,s.A)("vaultpress-dashboard"),children:__("Configure your Security Scans","jetpack")})]}):(0,C.jsx)(S,{})}}),M=(0,p.Ng)(e=>({vaultPressData:(0,y.Cc)(e),hasScan:(0,j.IT)(e,"scan"),hasThreats:(0,y.mK)(e),vaultPressActive:(0,_.Yp)(e,"vaultpress"),showBackups:(0,k.Fp)(e),showScan:(0,k.$Z)(e),isFetchingRewindStatus:(0,x.wp)(e)}))(E)},90813(e,t,n){"use strict";n.d(t,{A:()=>A});var s=n(27723),r=n(51609),o=n(71766),i=n(17659),a=n(63109),c=n(32819),l=n(34679),d=n(2065),p=n(26508),u=n(12623),h=n(30138),g=n(82656),f=n(77423),m=n(19926),v=n(20790),w=n(93498),b=n(55252),y=n(95208),k=n(53607),_=n(41048),x=n(47628),j=n(83663),C=n(10790);const __=s.__;class S extends r.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 n=this.props.isModuleFound("protect"),s=this.props.isModuleFound("account-protection"),r=this.props.isModuleFound("sso"),o=this.isAkismetFound(),c=!t&&"active"===this.props.rewindStatus?.state,l=this.props.isModuleFound("vaultpress")||c,d=this.props.isModuleFound("monitor");if(!(r||n||s||o||l||d))return null;const p=this.props.isModuleFound("waf"),u=this.props.backupsOnly?(0,C.jsx)(y.D,{...e,vaultPressData:this.props.vaultPressData}):(0,C.jsx)(b.A,{...e});return(0,C.jsxs)("div",{children:[(0,C.jsx)(a.A,{}),(0,C.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Security Settings","jetpack")}),(0,C.jsx)("h2",{className:"jp-settings__section-title",children:t?__("Security","jetpack"):__("Your site is protected by Jetpack. You’ll be notified if anything needs attention.","jetpack",0)}),l&&u,d&&(0,C.jsx)(k.V,{...e}),o&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(w.A,{...e}),(0,C.jsx)(i.A,{})]}),s&&(0,C.jsx)(m.H,{isModuleFound:this.props.isModuleFound,...e}),p&&(0,C.jsx)(j.A,{...e}),n&&(0,C.jsx)(_.E,{...e}),(p||n)&&(0,C.jsx)(v.A,{...e}),r&&(0,C.jsx)(x.O,{...e})]})}}const A=(0,o.Ng)(e=>({backupsOnly:(0,g.IT)(e,"backups")&&!(0,g.IT)(e,"scan"),module:t=>(0,p.f_)(e,t),settings:(0,h.mt)(e),isOfflineMode:(0,l.hN)(e),isUnavailableInOfflineMode:t=>(0,l.Em)(e,t),isModuleFound:t=>(0,u.jQ)(e,t),isPluginActive:t=>(0,f.gT)(e,t),isPluginInstalled:t=>(0,f.O8)(e,t),vaultPressData:(0,c.Cc)(e),hasConnectedOwner:(0,l.BG)(e),blogID:(0,d.V2)(e)}))(S)},95208(e,t,n){"use strict";n.d(t,{D:()=>h});var s=n(3924),r=n(27723),o=n(28120),i=n.n(o),a=n(51609),c=n(36336),l=n(8332),d=n(19579),p=n(6838),u=n(10790);const __=r.__,_x=r._x;class h extends a.Component{static propTypes={siteRawUrl:i().string,rewindState:i().string};static defaultProps={siteRawUrl:"",rewindState:""};getVaultPressContent=()=>(0,u.jsx)(d.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,s.A)("jetpack-support-backup")},children:__("Your site is connected to VaultPress for backups.","jetpack")});getRewindMessage(){const{siteRawUrl:e,rewindStatus:t}=this.props;switch(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,s.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,s.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:n,url:s}=this.getRewindMessage();return(0,u.jsx)(c.Ay,{title:e,icon:t,feature:"rewind",description:n,className:"is-upgrade-premium jp-banner__no-border",href:s})};render(){const{rewindStatus:e,vaultPressData:t}=this.props,n=e?.state??!1;return!1!==n||(t?.data?.features?.backups??!1)?(0,u.jsx)(l.A,{feature:p.gvR,...this.props,header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0,children:"unavailable"===n?this.getVaultPressContent():this.getRewindBanner()}):(0,u.jsx)(l.A,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0,action:p.gvR,children:(0,u.jsx)(d.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,s.A)("jetpack-support-backup")},children:__("Checking site status…","jetpack")})})}}},53607(e,t,n){"use strict";n.d(t,{V:()=>f});var s=n(3924),r=n(86087),o=n(27723),i=n(57273),a=n(51609),c=n(63344),l=n(60619),d=n(8332),p=n(19579),u=n(53835),h=n(6838),g=n(10790);const __=o.__,_x=o._x,f=(0,c.t)(class extends a.Component{trackConfigureClick=()=>{u.A.tracks.recordJetpackClick("configure-monitor-email")};render(){const e=this.props.hasConnectedOwner,t=this.props.getOptionValue("monitor"),n=this.props.isUnavailableInOfflineMode("monitor");return(0,g.jsx)(d.A,{...this.props,hideButton:!0,module:"monitor",header:_x("Downtime monitoring","Settings header","jetpack"),feature:h.XkN,children:(0,g.jsx)(p.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,s.A)("jetpack-support-monitor"),wpcomLink:"https://wordpress.com/support/downtime-monitoring/"},children:(0,g.jsx)(l.j,{slug:"monitor",disabled:n||!e||this.props.isSavingAnyOption("monitor"),activated:t,toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:(0,r.createInterpolateElement)(__("Get alerts if your site goes offline. Alerts are sent to your <a>WordPress.com account</a> email address.","jetpack"),{a:(0,g.jsx)(i.N,{openInNewTab:!0,href:"https://wordpress.com/me/account",onClick:this.trackConfigureClick})})})})})})}})},41048(e,t,n){"use strict";n.d(t,{E:()=>u});var s=n(3924),r=n(27723),o=n(51609),i=n(63344),a=n(60619),c=n(8332),l=n(19579),d=n(10790);const __=r.__,_x=r._x,p=class extends o.Component{render(){const e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect");return(0,d.jsx)(c.A,{...this.props,module:"protect",header:_x("Brute force protection","Settings header","jetpack"),hideButton:!0,children:(0,d.jsx)(l.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,s.A)("jetpack-support-protect"),wpcomLink:"https://wordpress.com/support/brute-force-attack-protection/"},children:(0,d.jsx)(a.j,{slug:"protect",compact:!0,disabled:t||this.props.isSavingAnyOption("protect"),activated:e,toggleModule:this.props.toggleModuleNow,children:(0,d.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.getModule("protect").description})})})})}},u=(0,i.t)(p)},47628(e,t,n){"use strict";n.d(t,{O:()=>_});var s=n(3924),r=n(39384),o=n(56427),i=n(86087),a=n(27723),c=n(51489),l=n(57273),d=n(43172),p=n(51609),u=n(75795),h=n.n(u),g=n(11895),f=n(63344),m=n(60619),v=n(8332),w=n(19579),b=n(6838),y=n(10790);const __=a.__,_x=a._x,k=()=>{const{userConnectionData:e}=(0,r.useConnection)(),t=e?.currentUser?.wpcomUser?.ID,n=`https://wordpressdotcom.survey.fm/disable-sso-survey?initiated-from=jetpack&user-id=${t}`,[s,i]=(0,p.useState)("dismissed"===d.qg(document.cookie)?.sso_disable),a=()=>{var e,t;e="dismissed",t=31536e3,document.cookie=d.lK("sso_disable",e,{path:"/",maxAge:t}),i(!0)};return s?null:(0,y.jsxs)("div",{className:"modal-survey-notice",children:[(0,y.jsx)(o.Button,{className:"modal-survey-notice__backdrop",onClick:a}),(0,y.jsxs)("div",{className:"modal-survey-notice__popup",children:[(0,y.jsxs)("div",{className:"modal-survey-notice__popup-head",children:[(0,y.jsx)("div",{className:"modal-survey-notice__popup-head-title",children:__("SSO Survey","jetpack")}),(0,y.jsx)(o.Button,{onClick:a,className:"modal-survey-notice__popup-head-close",icon:c.A,iconSize:16,label:__("Close","jetpack")})]}),(0,y.jsxs)("div",{className:"modal-survey-notice__popup-content",children:[(0,y.jsx)("div",{className:"modal-survey-notice__popup-content-title",children:__("Hi there!","jetpack")}),(0,y.jsx)("div",{className:"modal-survey-notice__popup-content-description",children:__("Spare a moment? We'd love to hear why you want to disable SSO in a quick survey.","jetpack")}),(0,y.jsxs)("div",{className:"modal-survey-notice__popup-content-buttons",children:[(0,y.jsx)(o.Button,{className:"modal-survey-notice__popup-content-buttons-cancel",onClick:a,children:__("Remind later","jetpack")}),(0,y.jsx)(o.Button,{className:"modal-survey-notice__popup-content-buttons-ok",href:n,target:"_blank",rel:"noopener noreferrer",onClick:a,children:__("Take survey","jetpack")})]})]})]})]})},_=(0,f.t)(class extends p.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"),n=!!this.props.getModule("sso")?.options?.jetpack_sso_require_two_step?.default;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.A,{...this.props,hideButton:!0,module:"sso",header:_x("WordPress.com login","Settings header, noun.","jetpack"),feature:b.Z4D,children:(0,y.jsxs)(w.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,s.A)("jetpack-support-sso"),wpcomLink:"https://wordpress.com/support/wordpress-com-secure-sign-on-sso/"},children:[(0,y.jsx)("p",{children:__("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")}),(0,y.jsx)(m.j,{slug:"sso",disabled:t||!this.props.hasConnectedOwner||this.props.isSavingAnyOption("sso"),activated:e,toggleModule:t=>{e&&this.setState({showSSODisableModal:!0}),this.props.toggleModuleNow(t)},children:(0,y.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.getModule("sso").description})}),(0,y.jsxs)(g.dV,{children:[(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e&&this.props.getOptionValue("jetpack_sso_match_by_email","sso",!1),disabled:!e||t||this.props.isSavingAnyOption(["sso"]),onChange:this.handleMatchByEmailToggleChange,label:(0,y.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Match accounts using email addresses","jetpack")})}),(0,y.jsx)(o.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e&&this.props.getOptionValue("jetpack_sso_require_two_step","sso",!1)||n,disabled:!e||t||n||this.props.isSavingAnyOption(["sso"]),onChange:this.handleTwoStepToggleChange,label:(0,y.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Require accounts to use WordPress.com Two-Step Authentication","jetpack")}),help:n?(0,i.createInterpolateElement)(__("Two-Step Authentication is enforced because the <code>jetpack_sso_require_two_step</code> filter is active. <link>Learn more</link>.","jetpack"),{link:(0,y.jsx)(l.N,{openInNewTab:!0,href:(0,s.A)("jetpack-support-force-2fa")}),code:(0,y.jsx)("code",{})}):null})]})]})}),this.state.showSSODisableModal&&h().createPortal((0,y.jsx)(k,{}),document.body)]})}})},83663(e,t,n){"use strict";n.d(t,{A:()=>I});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(17587),c=n(57273),l=n(51609),d=n(71766),p=n(70386),u=n(97058),h=n(11895),g=n(5546),f=n(3983),m=n(63344),v=n(8332),w=n(19579),b=n(6838),y=n(83101),k=n(82656),_=n(26592),x=n(96337),j=n(63242),C=n(60619),S=n(76122),A=n(26224),E=n(2065),M=n(77423),N=n(72868),T=n(80911),O=n(10790);const __=i.__,_x=i._x,z=["protect/jetpack-protect.php","jetpack-protect/jetpack-protect.php","jetpack-protect-dev/jetpack-protect.php"],R=class extends l.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",duration:2e3})}).catch(e=>{this.props.removeNotice("module-setting-update"),this.props.createNotice("is-error",(0,i.sprintf)(/* translators: %s: an error code or an error message. */ | |
| 39 | +__("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"),n=!e||t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),l=(0,O.jsxs)("div",{className:"waf__header",children:[(0,O.jsx)("span",{children:_x("Firewall","Settings header","jetpack")}),this.props.settings?.standaloneMode&&(0,O.jsxs)(a.E,{variant:"body-sm",className:"waf__standalone__mode",children:[(0,O.jsx)("span",{className:"waf__standalone__mode__indicator"}),(0,O.jsx)("span",{children:__("Standalone mode","jetpack")})]})]}),d=(0,O.jsx)("div",{className:"waf__settings__toggle-setting",children:(0,O.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!(!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable)&&this.props.settings?.automaticRulesEnabled,disabled:n||!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable,onChange:this.toggleAutomaticRules,label:(0,O.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Automatic rules - Protect your site against untrusted traffic sources with automatic security rules","jetpack")})})}),g=(0,O.jsx)("div",{className:"waf__settings__toggle-setting",children:(0,O.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.settings?.shareData,disabled:n,onChange:this.toggleShareData,label:(0,O.jsxs)("div",{className:"waf__settings__toggle-setting__label",children:[(0,O.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Share basic data with Jetpack","jetpack")}),(0,O.jsx)(j.A,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover",children:(0,o.createInterpolateElement)(__("Allow Jetpack to collect basic data from blocked requests to improve firewall protection and accuracy. <Link>Learn more</Link> <hr /> <Link>Privacy Information</Link>","jetpack"),{Link:(0,O.jsx)(c.N,{openInNewTab:!0,href:(0,s.A)("jetpack-waf-settings-privacy-info")}),hr:(0,O.jsx)("hr",{})})})]})})}),m=(0,O.jsx)("div",{className:"waf__settings__toggle-setting",children:(0,O.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.settings?.shareDebugData,disabled:n,onChange:this.toggleShareDebugData,label:(0,O.jsxs)("div",{className:"waf__settings__toggle-setting__label",children:[(0,O.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Share detailed data with Jetpack","jetpack")}),(0,O.jsx)(j.A,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover",children:(0,o.createInterpolateElement)(__("Allow Jetpack to collect detailed data from blocked requests to enhance firewall protection and accuracy. <Link>Learn more</Link> <hr /> <Link>Privacy Information</Link>","jetpack"),{Link:(0,O.jsx)(c.N,{openInNewTab:!0,href:(0,s.A)("jetpack-waf-settings-privacy-info")}),hr:(0,O.jsx)("hr",{})})})]})})}),y=(0,o.createInterpolateElement)(__("<b>Enhance protection</b> - Learn how to configure the firewall to inspect all requests and run before WordPress initializes","jetpack"),{b:(0,O.jsx)("strong",{})}),k=(0,O.jsx)(u.A,{header:y,className:"waf__enhanced-protection",children:(0,O.jsx)(w.A,{hasChild:!0,children:(0,O.jsxs)("ul",{children:[(0,O.jsx)("li",{children:(0,o.createInterpolateElement)((0,i.sprintf)(/* translators: %s: the file path to the Firewall's bootstrap file. */ | |
| 40 | +__("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:(0,O.jsx)("code",{})})}),(0,O.jsx)("li",{children:__("Don't forget to undo this action when Firewall is turned off, or when you uninstall Jetpack.","jetpack")})]})})}),E=(0,O.jsx)(f.Ay,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:(0,O.jsxs)(O.Fragment,{children:[this.props.settings?.automaticRulesAvailable?__("Upgrade to keep your site secure with up-to-date firewall rules","jetpack",0):__("Upgrade to enable automatic rules","jetpack"),(0,O.jsx)(j.A,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__upgrade-popover",children: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,b.EP8)(b.FxV),feature:"jetpack_scan",href:this.props.scanUpgradeUrl,rna:!0}),M=(0,O.jsxs)("div",{className:"waf__settings__toggle-setting",children:[(0,O.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.settings?.ipBlockListEnabled,disabled:n,onChange:this.toggleIpBlockList,label:(0,O.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Manual rules - Block specific IP addresses from accessing your site","jetpack")})}),(this.state.ipBlockListEnabled||!!this.state.ipBlockList)&&(0,O.jsxs)("div",{className:"waf__settings__ips",children:[(0,O.jsx)(A.A,{disabled:n||this.props.isUpdatingWafSettings||!this.props.settings?.ipBlockListEnabled,name:"ipBlockList",placeholder:(0,i.sprintf)(/* translators: %s: a list of example IP addresses. */ | |
| 41 | +__("Example: %s","jetpack"),"\n12.12.12.1\n12.12.12.2"),value:this.state.ipBlockList,onChange:this.handleIpBlockListChange}),this.state.ipBlockListEnabled&&(0,O.jsx)(p.A,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:n||this.state.ipBlockList===this.props.settings?.ipBlockList||this.props.isUpdatingWafSettings&&this.state.ipBlockList!==this.props.settings?.ipBlockList,onClick:this.onSubmit,children:__("Save block list","jetpack")})]})]});return this.props.isProtectActive?(0,O.jsx)(v.A,{...this.props,header:l,module:"waf",hideButton:!0,children:(0,O.jsxs)(_.A,{className:"dops-banner has-call-to-action",children:[(0,O.jsx)("div",{className:"dops-banner__icon-plan",children:(0,O.jsx)(S.A,{plan:b.FQO})}),(0,O.jsxs)("div",{className:"dops-banner__content",children:[(0,O.jsx)("div",{className:"dops-banner__info",children:(0,O.jsx)("div",{className:"dops-banner__title",children:__("Firewall settings have been moved to the Jetpack Protect plugin.","jetpack")})}),(0,O.jsx)("div",{className:"dops-banner__action",children:(0,O.jsx)(p.A,{rna:!0,compact:!0,href:this.props.protectAdminUrl,primary:!0,children:__("View Firewall Settings","jetpack")})})]})]})}):(0,O.jsxs)(v.A,{...this.props,header:l,module:"waf",onSubmit:this.onSubmit,hideButton:!0,children:[e&&(0,O.jsx)(x.A,{}),(0,O.jsxs)(w.A,{disableInOfflineMode:!0,module:this.props.getModule("waf"),support:{text:this.props.getModule("waf").long_description,link:this.props.getModule("waf").learn_more_button},children:[(0,O.jsx)(C.j,{slug:"waf",disabled:t||this.props.isSavingAnyOption("waf"),activated:e,toggleModule:this.props.toggleModuleNow,children:(0,O.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.getModule("waf").description})}),e&&!this.props.isFetchingWafSettings&&(0,O.jsxs)(h.dV,{className:"waf__settings",children:[d,M,g,m]})]}),e&&this.props.bootstrapPath&&k,!this.props.hasScan&&!this.props.isFetchingSettings&&E]})}},I=(0,d.Ng)(e=>{const t=(0,k.X6)(e);return{automaticRulesAvailable:(0,T.mY)(e),hasScan:(0,k.IT)(e,"scan"),protectAdminUrl:`${(0,E.eu)(e)}admin.php?page=jetpack-protect#/firewall`,isProtectActive:z.some(t=>(0,M.gT)(e,t)),getProtectUrl:`${(0,E.eu)(e)}admin.php?page=my-jetpack#/add-protect`,isFetchingSettings:(0,T._e)(e),isUpdatingWafSettings:(0,T.EK)(e),settings:(0,T.IE)(e),scanUpgradeUrl:(0,y.F)(e,"scan"),sitePlan:t}},e=>({updateWafSettings:t=>e((0,N.J)(t)),createNotice:(t,n,s)=>e((0,g.Fc)(t,n,s)),removeNotice:t=>e((0,g.fj)(t))}))((0,m.t)(R))},23608(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(71766),r=n(55155),o=n(31994),i=n(17973),a=n(64572),c=n(10790);function l(){return(0,c.jsx)("div",{children:(0,c.jsx)(s.Kq,{store:a.A,children:(0,c.jsx)(r.I9,{children:(0,c.jsx)(r.BV,{children:(0,c.jsx)(r.qh,{path:"/*",element:(0,c.jsx)(i.A,{})})})})})})}(0,o.A)()},77496(e,t,n){"use strict";n.d(t,{A:()=>O});var s=n(59244),r=n(50723),o=n(27723),i=n(20907),a=n(98839),c=n(2193),l=n(60029),d=n(34638),p=n(12237),u=n(97293),h=n(51609),g=n(71766),f=n(55155),m=n(58011),v=n(89537),w=n(73842),b=n(79223),y=n(91521),k=n(28742),_=n(15775),x=n(90813),j=n(8965),C=n(26508),S=n(12623),A=n(68062),E=n(10225),M=n(6838),N=n(10790);const __=o.__;class T extends h.Component{static displayName="SearchableSettings";render(){const{location:e={pathname:""},rewindStatus:t,searchTerm:n,siteAdminUrl:h,siteRawUrl:g,blogID:f,userCanManageModules:C,hasAnyMatchingModule:S}=this.props,{pathname:T}=e,O={searchTerm:n,rewindStatus:t,userCanManageModules:C},z=!!n&&!S;return(0,N.jsxs)(r.Ay,{children:[(0,N.jsxs)("div",{className:"jp-settings-container",children:[z&&(0,N.jsx)(a.B,{justify:"center",className:"jp-settings__empty-search-results",children:(0,N.jsxs)(c.b,{children:[(0,N.jsx)(l.b,{children:(0,N.jsx)(d.I,{icon:i.A})}),(0,N.jsx)(p.h,{children:__("No matching settings","jetpack")}),(0,N.jsx)(u.V,{children:(0,o.sprintf)(/* translators: %s: a search term entered in search form. */ | |
| 42 | +__("No search results found for %s","jetpack"),n)})]})}),(0,N.jsx)(x.A,{siteAdminUrl:h,siteRawUrl:g,active:"/security"===T||"/settings"===T&&C,...O}),(0,N.jsx)(m.A,{siteRawUrl:g,active:"/discussion"===T,...O}),(0,N.jsx)(k.A,{active:"/reader"===T,blogID:f,...O}),(0,N.jsx)(v.A,{siteRawUrl:g,active:"/earn"===T,feature:M.zwM,...O}),(0,N.jsx)(b.A,{active:"/performance"===T,...O}),(0,N.jsx)(A.A,{siteRawUrl:g,siteAdminUrl:h,active:"/traffic"===T,...O}),(0,N.jsx)(E.A,{siteAdminUrl:h,active:"/writing"===T||!C&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize"),...O}),(0,N.jsx)(j.A,{siteAdminUrl:h,active:"/sharing"===T||"/settings"===T&&!C&&this.props.isModuleActivated("publicize"),...O}),(0,N.jsx)(y.A,{active:"/privacy"===T,...O}),(0,N.jsx)(w.A,{siteAdminUrl:h,searchTerm:n}),(0,N.jsx)(_.A,{searchTerm:n})]}),(0,N.jsx)(s.D,{})]})}}const O=(0,g.Ng)(e=>({isModuleActivated:t=>(0,C.Yp)(e,t),hasAnyMatchingModule:(0,S.a2)(e)}))(e=>(0,N.jsx)(T,{...e,location:(0,f.zy)()}))},8965(e,t,n){"use strict";n.d(t,{A:()=>w});var s=n(27723),r=n(51609),o=n(71766),i=n(63109),a=n(34679),c=n(2065),l=n(26508),d=n(12623),p=n(30138),u=n(82656),h=n(62505),g=n(88258),f=n(37900),m=n(10790);const __=s.__;class v extends r.Component{render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,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,hasSharingBlock:this.props.hasSharingBlock,hasLikeBlock:this.props.hasLikeBlock,isBlockTheme:this.props.isBlockTheme,themeStylesheet:this.props.themeStylesheet};if(!this.props.searchTerm&&!this.props.active)return null;const t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),s=this.props.isModuleFound("likes");return t||n||s?(0,m.jsxs)("div",{children:[(0,m.jsx)(i.A,{}),(0,m.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Sharing Settings","jetpack")}),(0,m.jsx)("h2",{className:"jp-settings__section-title",children:this.props.searchTerm?__("Sharing","jetpack"):__("Share your content to social media, reaching new audiences and increasing engagement.","jetpack")}),t&&(0,m.jsx)(g.E,{...e}),n&&(0,m.jsx)(f.R,{...e}),s&&(0,m.jsx)(h.P,{...e})]}):null}}const w=(0,o.Ng)(e=>({module:t=>(0,l.f_)(e,t),settings:(0,p.mt)(e),isOfflineMode:(0,a.hN)(e),isUnavailableInOfflineMode:t=>(0,a.Em)(e,t),isModuleFound:t=>(0,d.jQ)(e,t),isLinked:(0,a._U)(e),connectUrl:(0,a.Qp)(e),siteRawUrl:(0,c.XG)(e),blogID:(0,c.V2)(e),siteAdminUrl:(0,c.eu)(e),activeFeatures:(0,u.mH)(e),userCanManageModules:(0,c.Ir)(e),hasSharingBlock:(0,c.Jx)(e),hasLikeBlock:(0,c.W1)(e),isBlockTheme:(0,c.JQ)(e),themeStylesheet:(0,c.bc)(e)}))(v)},62505(e,t,n){"use strict";n.d(t,{P:()=>g});var s=n(3924),r=n(97999),o=n(27723),i=n(51609),a=n(70386),c=n(63344),l=n(60619),d=n(8332),p=n(19579),u=n(53835),h=n(10790);const __=o.__,_x=o._x,g=(0,c.t)(class extends i.Component{trackClickConfigure(){u.A.tracks.recordJetpackClick({target:"configure-like-block",page:"sharing",platform:(0,r.isWpcomPlatformSite)()?"wpcom":"jetpack"})}switchToLikeBlock=()=>{u.A.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"likes",toggled:"off"}),this.props.updateOptions({likes:!1},{progress:__("Deactivating legacy Like buttons…","jetpack"),success:__("Like buttons have been deactivated.","jetpack")})};render(){const e=this.props.isUnavailableInOfflineMode("likes"),t=this.props.siteAdminUrl,n=this.props.hasLikeBlock,r=this.props.isBlockTheme,o=this.props.getOptionValue("likes"),i=r&&n,c=t&&this.props.themeStylesheet?`${t}site-editor.php?p=%2Fwp_template%2F${encodeURIComponent(this.props.themeStylesheet)}%2F%2Fsingle&canvas=edit`:"",u=i&&c,g=o&&"active"===this.props.getModule?.("likes")?.override;let f=__("The Like button is a way for people on WordPress.com to show their appreciation for your content.","jetpack");u&&(f=o?__("Legacy Like buttons cannot be customized on block themes.","jetpack"):_x("Add the Like block to your theme’s template.","Like block migration instruction","jetpack"));return(0,h.jsx)(d.A,{...this.props,header:_x("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0,children:(0,h.jsxs)(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:i?(0,s.A)("jetpack-support-like-block"):(0,s.A)("jetpack-support-likes"),wpcomLink:"https://wordpress.com/support/likes/"},children:[(0,h.jsx)("p",{children:f}),(()=>{const t=(0,h.jsx)(l.j,{slug:"likes",disabled:g||e||this.props.isSavingAnyOption("likes"),activated:o,toggleModule:this.props.toggleModuleNow,children:(0,h.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Add Like buttons to your posts and pages","jetpack")})});if(!u)return t;if(g)return t;if(o){const e=this.props.isSavingAnyOption("likes");return(0,h.jsx)(a.A,{rna:!0,compact:!0,disabled:e,onClick:this.switchToLikeBlock,children:e?_x("Switching…","Button caption","jetpack"):__("Switch to the Like block","jetpack")})}return(0,h.jsx)(a.A,{rna:!0,compact:!0,href:c,onClick:this.trackClickConfigure,children:__("Open Site Editor","jetpack")})})()]})})}})},88258(e,t,n){"use strict";n.d(t,{E:()=>f});var s=n(3924),r=n(97999),o=n(27723),i=n(51609),a=n(26592),c=n(63344),l=n(60619),d=n(8332),p=n(19579),u=n(53835),h=n(6838),g=n(10790);const __=o.__,_x=o._x,f=(0,c.t)(class extends i.Component{trackClickConfigure(){u.A.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}render(){const e=this.props.getOptionValue("publicize"),t=this.props.userCanManageModules;if(!t&&!e)return null;const n=this.props.isLinked,o=this.props.isOfflineMode;return(0,g.jsxs)(d.A,{...this.props,header:_x("Jetpack Social","Settings header","jetpack"),module:"publicize",hideButton:!0,feature:h.Y6$,isDisabled:o||!n,children:[(0,g.jsxs)(p.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,s.A)("jetpack-support-publicize"),wpcomLink:"https://wordpress.com/support/post-automatically-to-social-media/"},children:[(0,g.jsx)("p",{children:__("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")}),(0,g.jsx)(l.j,{slug:"publicize",disabled:o||!n||!t||this.props.isSavingAnyOption("publicize"),activated:e,toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Automatically share your posts to social networks","jetpack")})})]}),e&&(0,g.jsx)(a.A,{compact:!0,onClick:this.trackClickConfigure,href:(0,r.getAdminUrl)("admin.php?page=jetpack-social"),children:__("Connect accounts and configure Social sharing","jetpack")})]})}})},37900(e,t,n){"use strict";n.d(t,{R:()=>f});var s=n(3924),r=n(97999),o=n(27723),i=n(51609),a=n(70386),c=n(26592),l=n(63344),d=n(60619),p=n(8332),u=n(19579),h=n(53835),g=n(10790);const __=o.__,_x=o._x,f=(0,l.t)(class extends i.Component{trackClickConfigure(){h.A.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing",platform:(0,r.isWpcomPlatformSite)()?"wpcom":"jetpack"})}switchToSharingBlock=()=>{h.A.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"sharedaddy",toggled:"off"}),this.props.updateOptions({sharedaddy:!1},{progress:__("Deactivating legacy sharing…","jetpack"),success:__("Sharing has been deactivated.","jetpack")})};render(){const e=this.props.siteAdminUrl,t=this.props.hasSharingBlock,n=this.props.isBlockTheme,r=this.props.getOptionValue("sharedaddy"),o=n&&t,i=e&&this.props.themeStylesheet?`${e}site-editor.php?p=%2Fwp_template%2F${encodeURIComponent(this.props.themeStylesheet)}%2F%2Fsingle&canvas=edit`:"",l=o&&i,h=r&&"active"===this.props.getModule?.("sharedaddy")?.override;let f=__("Add sharing buttons so visitors can share your posts and pages on social media with a couple of quick clicks.","jetpack");l&&(f=r?__("Legacy sharing buttons cannot be customized on block themes.","jetpack"):_x("Add the Sharing Buttons block to your theme’s template.","Sharing block migration instruction","jetpack"));const m=(0,s.A)("jetpack-support-sharing");return(0,g.jsxs)(p.A,{...this.props,header:_x("Sharing buttons","Settings header","jetpack"),module:"sharing",hideButton:!0,children:[(0,g.jsxs)(u.A,{disableInOfflineMode:!0,module:{module:"sharedaddy"},support:{text:__("You can customize the sharing buttons and choose which services to display.","jetpack"),link:o?(0,s.A)("jetpack-support-sharing-block"):m,wpcomLink:"https://wordpress.com/support/sharing/"},children:[(0,g.jsx)("p",{children:f}),(()=>{const e=(0,g.jsx)(d.j,{slug:"sharedaddy",disabled:h||this.props.isSavingAnyOption("sharedaddy"),activated:r,toggleModule:this.props.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Add sharing buttons to your posts and pages","jetpack")})});if(!l)return e;if(h)return e;if(r){const e=this.props.isSavingAnyOption("sharedaddy");return(0,g.jsx)(a.A,{rna:!0,compact:!0,disabled:e,onClick:this.switchToSharingBlock,children:e?_x("Switching…","Button caption","jetpack"):__("Switch to Sharing Buttons block","jetpack")})}return(0,g.jsx)(a.A,{rna:!0,compact:!0,href:i,onClick:this.trackClickConfigure,children:__("Open Site Editor","jetpack")})})()]}),r&&!l&&(()=>(0,g.jsx)(c.A,{compact:!0,className:"jp-settings-card__configure-link",href:`${e}options-general.php?page=sharing`,onClick:this.trackClickConfigure,children:__("Configure your sharing buttons","jetpack")}))()]})}})},44254(e,t,n){"use strict";n.d(t,{$X:()=>wt,$n:()=>G,Ad:()=>r,BI:()=>Ve,BK:()=>ce,BX:()=>Ae,Cj:()=>H,Cv:()=>be,Cy:()=>$,Dv:()=>yt,EM:()=>J,Eq:()=>N,Fd:()=>O,G2:()=>L,G7:()=>ue,Gl:()=>j,Gv:()=>Te,H1:()=>St,H2:()=>me,H_:()=>st,Hv:()=>Et,I9:()=>ze,J2:()=>te,JH:()=>xt,K8:()=>gt,Kt:()=>Xe,Kx:()=>se,LK:()=>A,LW:()=>bt,Lg:()=>f,Lv:()=>qe,Mc:()=>R,N8:()=>le,NY:()=>xe,Nv:()=>a,OH:()=>_,OO:()=>b,Ob:()=>Ct,PK:()=>D,PP:()=>at,Po:()=>Re,Q9:()=>ct,Qg:()=>ie,Qu:()=>_e,R1:()=>B,RR:()=>v,RW:()=>We,S6:()=>m,SO:()=>u,SW:()=>He,Sj:()=>pt,Sm:()=>c,TV:()=>ke,U7:()=>Le,Us:()=>Ee,Ve:()=>re,Vf:()=>ye,WH:()=>Je,Wk:()=>fe,Wz:()=>Mt,X2:()=>s,X9:()=>Se,XS:()=>ot,Xw:()=>he,YC:()=>we,ZC:()=>ft,ZZ:()=>Pe,Zo:()=>kt,Zw:()=>ae,_D:()=>ge,_c:()=>w,_i:()=>Be,aU:()=>Qe,ac:()=>U,bh:()=>o,bp:()=>ut,c3:()=>g,c8:()=>Ne,cB:()=>Ge,dM:()=>z,e9:()=>Ze,eb:()=>rt,ez:()=>_t,fl:()=>pe,fn:()=>k,gO:()=>Ue,gb:()=>i,h8:()=>mt,iS:()=>je,j1:()=>dt,j7:()=>At,jA:()=>Fe,jp:()=>Me,jx:()=>Q,jz:()=>y,kc:()=>X,ko:()=>tt,lV:()=>C,le:()=>ne,mX:()=>F,ms:()=>Ke,n9:()=>W,nz:()=>oe,oO:()=>ee,oo:()=>M,pA:()=>Ie,pc:()=>De,q0:()=>h,r8:()=>lt,rL:()=>d,rN:()=>ve,s2:()=>T,s5:()=>de,s8:()=>Oe,sK:()=>it,sW:()=>S,sp:()=>E,ti:()=>I,uR:()=>ht,uV:()=>Y,vI:()=>Z,vZ:()=>K,vl:()=>x,wb:()=>q,xQ:()=>Ye,xf:()=>P,xl:()=>et,xq:()=>p,y9:()=>nt,ym:()=>jt,yn:()=>vt,yx:()=>$e,z0:()=>l,z9:()=>V,zs:()=>Ce});const s="JETPACK_SET_INITIAL_STATE",r="CONNECT_URL_FETCH",o="CONNECT_URL_FETCH_FAIL",i="CONNECT_URL_FETCH_SUCCESS",a="DISCONNECT_SITE",c="DISCONNECT_SITE_FAIL",l="DISCONNECT_SITE_SUCCESS",d="CONNECT_USER",p="RESET_CONNECT_USER",u="UNLINK_USER",h="UNLINK_USER_FAIL",g="UNLINK_USER_SUCCESS",f="USER_CONNECTION_DATA_FETCH",m="USER_CONNECTION_DATA_FETCH_FAIL",v="USER_CONNECTION_DATA_FETCH_SUCCESS",w="SITE_RECONNECT",b="SITE_RECONNECT_SUCCESS",y="SITE_RECONNECT_FAIL",k="USER_TRACKING_SETTINGS_FETCH",_="USER_TRACKING_SETTINGS_FETCH_FAIL",x="USER_TRACKING_SETTINGS_FETCH_SUCCESS",j="USER_TRACKING_SETTINGS_UPDATE",C="USER_TRACKING_SETTINGS_UPDATE_FAIL",S="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",A="JETPACK_MODULES_LIST_FETCH",E="JETPACK_MODULES_LIST_FETCH_FAIL",M="JETPACK_MODULES_LIST_RECEIVE",N="JETPACK_MODULE_ACTIVATE",T="JETPACK_MODULE_ACTIVATE_SUCCESS",O="JETPACK_MODULE_ACTIVATE_FAIL",z="JETPACK_MODULE_DEACTIVATE",R="JETPACK_MODULE_DEACTIVATE_FAIL",I="JETPACK_MODULE_DEACTIVATE_SUCCESS",P="JETPACK_MODULE_UPDATE_OPTIONS",L="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",D="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",F="JETPACK_CONNECTION_STATUS_FETCH",U="JETPACK_CONNECTION_TEST_FETCH",V="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",B="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",H="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",$="DASHBOARD_PROTECT_COUNT_FETCH",W="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",q="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",K="RESET_OPTIONS",J="RESET_OPTIONS_FAIL",G="RESET_OPTIONS_SUCCESS",Y="VAULTPRESS_SITE_DATA_FETCH",Z="VAULTPRESS_SITE_DATA_FETCH_FAIL",X="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",Q="AKISMET_DATA_FETCH",ee="AKISMET_DATA_FETCH_FAIL",te="AKISMET_DATA_FETCH_SUCCESS",ne="CUSTOM_FEATURE_ACTIVE_FETCH",se="CUSTOM_FEATURE_ACTIVE_FETCH_FAIL",re="CUSTOM_FEATURE_ACTIVE_FETCH_FAIL",oe="AKISMET_KEY_CHECK_FETCH",ie="AKISMET_KEY_CHECK_FETCH_FAIL",ae="AKISMET_KEY_CHECK_FETCH_SUCCESS",ce="PLUGIN_UPDATES_FETCH",le="PLUGIN_UPDATES_FETCH_FAIL",de="PLUGIN_UPDATES_FETCH_SUCCESS",pe="STATS_SWITCH_TAB",ue="STATS_DATA_FETCH",he="STATS_DATA_FETCH_FAIL",ge="STATS_DATA_FETCH_SUCCESS",fe="JETPACK_SETTINGS_FETCH",me="JETPACK_SETTINGS_FETCH_RECEIVE",ve="JETPACK_SETTINGS_FETCH_FAIL",we="JETPACK_SETTING_UPDATE",be="JETPACK_SETTING_UPDATE_SUCCESS",ye="JETPACK_SETTING_UPDATE_FAIL",ke="JETPACK_SETTINGS_UPDATE",_e="JETPACK_SETTINGS_UPDATE_FAIL",xe="JETPACK_SETTINGS_UPDATE_SUCCESS",je="JETPACK_SETTINGS_SET_UNSAVED_FLAG",Ce="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",Se="JETPACK_SITE_DATA_FETCH",Ae="JETPACK_SITE_DATA_FETCH_RECEIVE",Ee="JETPACK_SITE_DATA_FETCH_FAIL",Me="JETPACK_SITE_BENEFITS_FETCH",Ne="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",Te="JETPACK_SITE_BENEFITS_FETCH_FAIL",Oe="JETPACK_SITE_FEATURES_FETCH",ze="JETPACK_SITE_FEATURES_FETCH_RECEIVE",Re="JETPACK_SITE_FEATURES_FETCH_FAIL",Ie="JETPACK_SITE_PLANS_FETCH",Pe="JETPACK_SITE_PLANS_FETCH_RECEIVE",Le="JETPACK_SITE_PLANS_FETCH_FAIL",De="JETPACK_SITE_PURCHASES_FETCH",Fe="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",Ue="JETPACK_SITE_PURCHASES_FETCH_FAIL",Ve="JETPACK_ACTION_NOTICES_DISMISS",Be="JETPACK_NOTICES_DISMISS_SUCCESS",He="JETPACK_PLUGINS_DATA_FETCH",$e="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",We="JETPACK_PLUGINS_DATA_FETCH_FAIL",qe="JETPACK_SEARCH_TERM",Ke="SET_PLAN_DURATION",Je="DEV_CARD_DISPLAY",Ge="DEV_CARD_HIDE",Ye="MOCK_SWITCH_USER_PERMISSIONS",Ze="MOCK_SWITCH_THREATS",Xe="REWIND_STATUS_FETCH",Qe="REWIND_STATUS_FETCH_RECEIVE",et="REWIND_STATUS_FETCH_FAIL",tt="BACKUP_PREFLIGHT_TESTS_FETCH",nt="BACKUP_PREFLIGHT_TESTS_FETCH_SUCCESS",st="BACKUP_PREFLIGHT_TESTS_FETCH_FAILURE",rt="BACKUP_UNDO_EVENT_FETCH",ot="BACKUP_UNDO_EVENT_FETCH_FAILURE",it="BACKUP_UNDO_EVENT_FETCH_SUCCESS",at="MOCK_SWITCH_REWIND_STATE",ct="SCAN_STATUS_FETCH",lt="SCAN_STATUS_FETCH_RECEIVE",dt="SCAN_STATUS_FETCH_FAIL",pt="MOCK_SWITCH_SCAN_STATE",ut="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",ht="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",gt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",ft="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",mt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",vt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",wt="JETPACK_LICENSING_ERROR_UPDATE",bt="JETPACK_LICENSING_USER_LICENSE_COUNTS_UPDATE",yt="JETPACK_LICENSING_ACTIVATION_NOTICE_DISMISS_UPDATE",kt="JETPACK_LICENSING_GET_USER_LICENSES_FETCH",_t="JETPACK_LICENSING_GET_USER_LICENSES_SUCCESS",xt="JETPACK_LICENSING_GET_USER_LICENSES_FAILURE",jt="WAF_SETTINGS_FETCH",Ct="WAF_SETTINGS_FETCH_RECEIVE",St="WAF_SETTINGS_FETCH_FAIL",At="WAF_SETTINGS_UPDATE",Et="WAF_SETTINGS_UPDATE_SUCCESS",Mt="WAF_SETTINGS_UPDATE_FAIL"},7504(e,t,n){"use strict";n.d(t,{EI:()=>i,WU:()=>o});var s=n(5932),r=n(44254);const o=()=>e=>(e({type:r.uV}),s.Ay.getVaultPressData().then(t=>{e({type:r.kc,vaultPressData:t})}).catch(t=>{e({type:r.vI,error:t})})),i=(e="")=>t=>{t({type:r.nz});return(""===e?s.Ay.checkAkismetKey().then(e=>{t({type:r.Zw,akismet:e})}):s.Ay.checkAkismetKeyTyped(e).then(e=>{t({type:r.Zw,akismet:e})})).catch(e=>{t({type:r.Qg,error:e})})}},32819(e,t,n){"use strict";n.d(t,{Cc:()=>s.Cc,EI:()=>r.EI,Ee:()=>s.Ee,OY:()=>s.OY,PU:()=>s.PU,Pf:()=>s.Pf,Ri:()=>s.Ri,WU:()=>r.WU,en:()=>s.en,mK:()=>s.mK});var s=n(15299),r=n(7504)},15299(e,t,n){"use strict";n.d(t,{Cc:()=>u,Ee:()=>l,OY:()=>c,PU:()=>a,Pf:()=>d,Ri:()=>i,en:()=>p,mK:()=>h,ze:()=>o});var s=n(16278),r=n(44254);const o=(0,s.HY)({requests:(e={},t)=>{switch(t.type){case r.G7:return Object.assign({},e,{fetchingStatsData:!0});case r.jx:return Object.assign({},e,{fetchingAkismetData:!0});case r.nz:return Object.assign({},e,{checkingAkismetKey:!0});case r.uV:return Object.assign({},e,{fetchingVaultPressData:!0});case r.Cy:return Object.assign({},e,{fetchingProtectData:!0});case r.BK:return Object.assign({},e,{fetchingPluginUpdates:!0});case r.Xw:case r._D:return Object.assign({},e,{fetchingStatsData:!1});case r.oO:case r.J2:return Object.assign({},e,{fetchingAkismetData:!1});case r.Qg:case r.Zw:return Object.assign({},e,{checkingAkismetKey:!1});case r.n9:case r.wb:return Object.assign({},e,{fetchingProtectData:!1});case r.N8:case r.s5:return Object.assign({},e,{fetchingPluginUpdates:!1});case r.vI:case r.kc:return Object.assign({},e,{fetchingVaultPressData:!1,hasLoadedVaultPressData:!0});default:return e}},activeStatsTab:(e="day",t)=>t.type===r.fl?t.activeStatsTab:e,protectCount:(e="N/A",t)=>t.type===r.wb?t.protectCount:e,vaultPressData:(e="N/A",t)=>{switch(t.type){case r.kc:return t.vaultPressData;case r.e9:return Object.assign({},"N/A"===e?{}:e,{data:{active:!0,features:{security:!0},security:{notice_count:t.mockCount}}});default:return e}},statsData:(e={},t)=>t.type===r._D?Object.assign({},e,t.statsData):e,akismetData:(e="N/A",t)=>t.type===r.J2?t.akismetData:e,akismet:(e={validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t)=>t.type===r.Zw?Object.assign({},e,t.akismet):e,pluginUpdates:(e="N/A",t)=>t.type===r.s5?t.pluginUpdates:e,backupUndoEvent:(e={isFetching:!1,loaded:!1,event:{}},{type:t,payload:n})=>{switch(t){case r.eb:return{...e,isFetching:!0,loaded:!1};case r.sK:{const t=n.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??"",isMcpAgent:t.actor?.is_mcp_agent??!1,mcpClient:t.actor?.mcp_client??t.actor?.mcp_client_name??"",activityDate:t.published??"",activityId:t.activity_id,activityName:t.name,activityTitle:t.summary,activityDescription:t.content?.text??"",undoBackupId:n.undo_backup_id}}case r.XS:return{...e,isFetching:!1};default:return e}}});function i(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function a(e){return e.jetpack.dashboard.akismetData}function c(e){return!!e.jetpack.dashboard.requests.checkingAkismetKey}function l(e){return e.jetpack.dashboard?.akismet?.validKey??!1}function d(e){return!!e.jetpack.dashboard.requests.hasLoadedVaultPressData}function p(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function u(e){return e.jetpack.dashboard.vaultPressData}function h(e){return e.jetpack.dashboard.vaultPressData?.data?.security?.notice_count??0}},60820(e,t,n){"use strict";n.d(t,{Mb:()=>c,Pb:()=>d,h_:()=>u,k0:()=>p,ks:()=>a,mo:()=>l});var s=n(5932),r=n(27723),o=n(5546),i=n(44254);const __=r.__,a=()=>e=>s.Ay.fetchSiteConnectionStatus().then(t=>{e({type:i.mX,siteConnected:t})}),c=()=>e=>(e((0,o.Fc)("is-info",__("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),s.Ay.fetchSiteConnectionTest().then(t=>{e({type:i.ac,connectionTest:t}),e((0,o.fj)("test-jetpack-connection")),e((0,o.Fc)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))}).catch(t=>{e((0,o.fj)("test-jetpack-connection")),e((0,o.Fc)("is-error",(0,r.sprintf)(/* translators: %s: an error message. */ | |
| 43 | +__("There was an error testing Jetpack. Error: %s","jetpack"),t.message),{id:"test-jetpack-connection"}))})),l=()=>e=>(e({type:i.Ad}),s.Ay.fetchConnectUrl().then(t=>{e({type:i.gb,connectUrl:t})}).catch(t=>{e({type:i.bh,error:t})})),d=()=>e=>(e({type:i.SO}),e((0,o.Fc)("is-info",__("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),s.Ay.unlinkUser().then(t=>{e({type:i.c3,userUnlinked:t}),e(l()),e((0,o.fj)("unlink-user")),e((0,o.Fc)("is-success",__("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))}).catch(t=>{e({type:i.q0,error:t}),e((0,o.fj)("unlink-user")),e((0,o.Fc)("is-error",(0,r.sprintf)(/* translators: %s: the error. */ | |
| 44 | +__("Error unlinking from WordPress.com. Error: %s","jetpack"),t),{id:"unlink-user"}))})),p=(e=null,t=null)=>n=>{n({type:i.rL,featureLabel:e,from:t})},u=()=>e=>{e({type:i.xq})}},34679(e,t,n){"use strict";n.d(t,{BG:()=>s.BG,Cq:()=>s.Cq,Em:()=>s.Em,HF:()=>s.HF,KK:()=>s.KK,Kx:()=>s.Kx,Mb:()=>r.Mb,Pb:()=>r.Pb,Qp:()=>s.Qp,T$:()=>s.T$,Vg:()=>s.Vg,Vs:()=>s.Vs,_U:()=>s._U,g:()=>s.g,hN:()=>s.hN,h_:()=>r.h_,i$:()=>s.i$,k0:()=>r.k0,ks:()=>r.ks,lY:()=>s.lY,m1:()=>s.m1,mo:()=>r.mo,mz:()=>s.mz,os:()=>s.os,s6:()=>s.s6,uQ:()=>s.uQ});var s=n(19519),r=n(60820)},19519(e,t,n){"use strict";n.d(t,{BG:()=>_,Cq:()=>v,Em:()=>C,Ff:()=>c,HF:()=>l,KK:()=>u,Kx:()=>w,Qp:()=>h,T$:()=>j,Vg:()=>m,Vs:()=>E,_U:()=>y,g:()=>S,hN:()=>x,i$:()=>d,lY:()=>p,m1:()=>b,mz:()=>g,os:()=>A,s6:()=>f,uQ:()=>k});var s=n(66087),r=n(16278),o=n(44254),i=n(26508);const a={disconnectingSite:!1,connectingUser:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},c=(0,r.HY)({connectUrl:(e="",t)=>{switch(t.type){case o.X2:return t?.initialState?.connectUrl??e;case o.gb:return t.connectUrl;default:return e}},status:(e={siteConnected:window.Initial_State.connectionStatus},t)=>{switch(t.type){case o.mX:case o.z0:return Object.assign({},e,{siteConnected:t.siteConnected});case o.c3:return Object.assign({},e,{siteConnected:{...e.siteConnected,isUserConnected:!1}});case o.RR:return!0===t.userConnectionData?.currentUser?.isConnected?Object.assign({},e,{siteConnected:{...e.siteConnected,hasConnectedOwner:!0}}):e;default:return e}},user:(e=window.Initial_State.userData||{},t)=>{switch(t.type){case o.RR:return Object.assign({},e,t.userConnectionData);case o.c3:{const t=Object.assign({},e.currentUser,{isConnected:!1});return Object.assign({},e,{currentUser:t})}case o.xQ:return(0,s.merge)({},e,t.initialState);default:return e}},requests:(e=a,t)=>{switch(t.type){case o.Nv:return Object.assign({},e,{disconnectingSite:!0});case o.SO:return Object.assign({},e,{unlinkingUser:!0});case o.rL:return Object.assign({},e,{connectingUser:!0,connectingUserFeatureLabel:t.featureLabel,connectingUserFrom:t.from});case o.xq:return Object.assign({},e,{connectingUser:!1});case o.Ad:return Object.assign({},e,{fetchingConnectUrl:!0});case o.Lg:return Object.assign({},e,{fetchingUserData:!0});case o._c:return Object.assign({},e,{reconnectingSite:!0});case o.Sm:case o.z0:return Object.assign({},e,{disconnectingSite:!1});case o.q0:case o.c3:return Object.assign({},e,{unlinkingUser:!1});case o.bh:case o.gb:return Object.assign({},e,{fetchingConnectUrl:!1});case o.S6:case o.RR:return Object.assign({},e,{fetchingUserData:!1});case o.jz:case o.OO:return Object.assign({},e,{reconnectingSite:!1});default:return e}}});function l(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&e.jetpack.connection.status.siteConnected}function d(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&(e.jetpack.connection.status.siteConnected.offlineMode.isActive?"offline":e.jetpack.connection.status.siteConnected.isActive)}function p(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!!e.jetpack.connection.status?.siteConnected?.offlineMode?.isActive&&e.jetpack.connection.status.siteConnected.offlineMode}function h(e){return e.jetpack.connection.connectUrl}function g(e){return!!e.jetpack.connection.requests.disconnectingSite}function f(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function m(e){return!!e.jetpack.connection.requests.unlinkingUser}function v(e){return!!e.jetpack.connection.requests.connectingUser}function w(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.user.currentUser.isConnected}function k(e){return!!e.jetpack.connection.user.currentUser.isMaster}function _(e){return e.jetpack.connection.status?.siteConnected?.hasConnectedOwner??!1}function x(e){return"offline"===d(e)}function j(e){return e.jetpack.connection.status?.siteConnected?.isInIdentityCrisis??!1}function C(e,t){return x(e)&&function(e,t){return(0,i.GG)(e).concat(["backups","scan"]).includes(t)}(e,t)}function S(e,t){return!_(e)&&function(e,t){return(0,i.Z1)(e).includes(t)}(e,t)}function A(e){return e.jetpack.connection.status?.siteConnected?.sandboxDomain??""}function E(e){return!!e.jetpack.connection.requests.reconnectingSite}},66904(e,t,n){"use strict";n.d(t,{$K:()=>c,IM:()=>d,JF:()=>k,TH:()=>_,jF:()=>b,oS:()=>y,ug:()=>l,yB:()=>a});var s=n(5932),r=n(27723),o=n(5546),i=n(44254);const __=r.__,a=e=>t=>(t({type:i.vZ}),t((0,o.Fc)("is-info",__("Resetting Jetpack options…","jetpack"),{id:"reset-options"})),s.Ay.resetOptions(e).then(()=>{t({type:i.$n}),t((0,o.fj)("reset-options")),t((0,o.Fc)("is-success",__("Options reset.","jetpack"),{id:"reset-options",duration:2e3}))}).catch(e=>{t({type:i.EM,error:e}),t((0,o.fj)("reset-options")),t((0,o.Fc)("is-error",__("Options failed to reset.","jetpack"),{id:"reset-options"}))})),c=()=>e=>{e({type:i.WH})},l=()=>e=>{e({type:i.cB})},d=e=>t=>{t({type:i.BX,siteData:{plan:{product_slug:e}}})},p={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}}},h={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},g={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},f={currentUser:{permissions:{view_stats:!0}}},m={currentUser:{permissions:{view_stats:!1}}},v={currentUser:{isConnected:!0}},w={currentUser:{isConnected:!1,isMaster:!1}},b=e=>{let t={};return n=>{switch(e){case"admin_master":t=p;break;case"admin_secondary":t=u;break;case"editor":case"contributor":case"author":t=h;break;case"subscriber":t=g;break;case"view_stats":t=f;break;case"hide_stats":t=m;break;case"is_linked":t=v;break;case"is_unlinked":t=w}n({type:i.xQ,initialState:t})}},y=e=>t=>{t({type:i.e9,mockCount:e})},k=e=>t=>{t({type:i.PP,rewindState:{state:e}})},_=e=>t=>{t({type:i.Sj,scanState:{state:e}})}},69531(e,t,n){"use strict";n.d(t,{$K:()=>r.$K,IM:()=>r.IM,JF:()=>r.JF,M4:()=>s.M4,TH:()=>r.TH,jF:()=>r.jF,oS:()=>r.oS,ug:()=>r.ug,yB:()=>r.yB});var s=n(11067),r=n(66904)},11067(e,t,n){"use strict";n.d(t,{Ff:()=>o,M4:()=>i});var s=n(16278),r=n(44254);const o=(0,s.HY)({display:(e=!1,t)=>{switch(t.type){case r.WH:return!0;case r.cB:return!1;default:return e}}});function i(e){return!!e.jetpack.devCard.display}},11233(e,t,n){"use strict";n.d(t,{l:()=>o});var s=n(5932),r=n(44254);const o=e=>t=>(t({type:r.le}),s.Ay.getFeatureTypeStatus(e).then(e=>(t({type:r.Ve,feature_data:e}),e)).catch(e=>{t({type:r.Kx,error:e})}))},57794(e,t,n){"use strict";n.d(t,{ly:()=>s.l});n(95118);var s=n(11233)},95118(e,t,n){"use strict";n.d(t,{F:()=>o});var s=n(16278),r=n(44254);const o=(0,s.HY)({items:(e={fetchingCustomContentTypeStatus:!1},t)=>{switch(t.type){case r.le:return Object.assign({},e,{fetchingCustomContentTypeStatus:!0});case r.Ve:return{...e,featureData:{...e.featureCheck,...t.feature_data}};case r.Kx:return{...e,fetchingCustomContentTypeStatus:!1,error:t.error};default:return e}}})},70514(e,t,n){"use strict";n.d(t,{m:()=>r});var s=n(44254);const r=()=>e=>{e({type:s.X2,initialState:window.Initial_State})}},2065(e,t,n){"use strict";n.d(t,{$Z:()=>s.$Z,$q:()=>s.$q,AI:()=>s.AI,Co:()=>s.Co,Dd:()=>s.Dd,EV:()=>s.EV,Fp:()=>s.Fp,G4:()=>s.G4,GY:()=>s.GY,Gn:()=>s.Gn,Hz:()=>s.Hz,IJ:()=>s.IJ,Ir:()=>s.Ir,JQ:()=>s.JQ,Jx:()=>s.Jx,K$:()=>s.K$,Kz:()=>s.Kz,Lv:()=>s.Lv,Mj:()=>s.Mj,O3:()=>s.O3,PH:()=>s.PH,Q4:()=>s.Q4,V2:()=>s.V2,W1:()=>s.W1,WC:()=>s.WC,WS:()=>s.WS,XG:()=>s.XG,Xr:()=>s.Xr,ZE:()=>s.ZE,ZL:()=>s.ZL,bc:()=>s.bc,eu:()=>s.eu,f8:()=>s.f8,gF:()=>s.gF,hN:()=>s.hN,io:()=>s.io,jM:()=>s.jM,jh:()=>s.jh,m$:()=>r.m,n6:()=>s.n6,n9:()=>s.n9,nZ:()=>s.nZ,nr:()=>s.nr,oF:()=>s.oF,pi:()=>s.pi,pq:()=>s.pq,q1:()=>s.q1,wz:()=>s.wz,xQ:()=>s.xQ,xs:()=>s.xs});var s=n(69089),r=n(70514)},69089(e,t,n){"use strict";n.d(t,{$Z:()=>H,$q:()=>m,AI:()=>N,Co:()=>O,Dd:()=>C,EV:()=>v,Fp:()=>B,G4:()=>Z,GY:()=>ne,Gn:()=>L,Hz:()=>x,IJ:()=>G,Ir:()=>b,JQ:()=>V,Jx:()=>Q,K$:()=>R,Kz:()=>X,Lv:()=>j,Mj:()=>d,O3:()=>z,PH:()=>p,Q4:()=>q,V2:()=>E,W1:()=>ee,WC:()=>A,WS:()=>$,XG:()=>g,Xr:()=>D,ZE:()=>M,ZL:()=>u,bc:()=>F,eu:()=>f,f8:()=>U,gF:()=>l,hN:()=>y,io:()=>I,jM:()=>k,jh:()=>Y,n6:()=>w,n9:()=>P,nZ:()=>S,nr:()=>J,oF:()=>T,pi:()=>te,pq:()=>se,q1:()=>h,ue:()=>c,wz:()=>K,xQ:()=>_,xs:()=>W});var s=n(3924),r=n(66087),o=n(44254),i=n(34679),a=n(52173);const c=(e=window.Initial_State,t)=>{switch(t.type){case o.X2:return Object.assign({},e,t.initialState);case o.xQ:return(0,r.merge)({},e,{userData:t.initialState});default:return e}};function l(e){return!!e.jetpack.initialState.isDevVersion}function d(e){return e.jetpack.initialState?.currentVersion??""}function p(e){return e.jetpack.initialState.stats?.roles??{}}function u(e){return e.jetpack.initialState?.connectedPlugins??{}}function h(e){return e.jetpack.initialState?.userData?.currentUser?.wpcomUser?.email}function g(e){return e.jetpack.initialState?.rawUrl??{}}function f(e){return e.jetpack.initialState?.adminUrl??{}}function m(e){return e.jetpack.initialState?.connectionStatus?.isPublic}function v(e){return!e.jetpack.initialState.userData.currentUser.permissions?.edit_posts}function w(e){return e.jetpack.initialState.userData.currentUser.permissions?.publish_posts??!1}function b(e){return e.jetpack.initialState.userData.currentUser.permissions?.manage_modules??!1}function y(e){return e.jetpack.initialState.userData.currentUser.permissions?.manage_options??!1}function k(e){return e.jetpack.initialState.userData.currentUser.permissions?.edit_posts??!1}function _(e){return e.jetpack.initialState.userData.currentUser.permissions?.disconnect??!1}function x(e){return e.jetpack.initialState.userData.currentUser.permissions?.connect??!1}function j(e){return e.jetpack.initialState.userData.currentUser.permissions?.connect_user??!1}function C(e){return e.jetpack.initialState.userData.currentUser?.wpcomUser?.login??""}function S(e){return e.jetpack.initialState.userData.currentUser?.wpcomUser?.ID??""}function A(e){return e.jetpack.initialState.userData.currentUser.permissions?.view_stats??!1}function E(e){return e.jetpack.initialState.siteData?.blog_id}function M(e){return e.jetpack.initialState.siteData?.icon}function N(e){return e.jetpack.initialState.siteData?.representativeImage}function T(e){return e.jetpack.initialState.siteData?.siteVisibleToSearchEngines??!0}function O(e){return e.jetpack.initialState?.WP_API_nonce}function z(e){return e.jetpack.initialState?.WP_API_root}function R(e){return e.jetpack.initialState?.pluginBaseUrl}function I(e){return e.jetpack.initialState?.tracksUserData}function P(e){return e.jetpack.initialState?.currentIp}function L(e){return e.jetpack.initialState?.lastPostUrl}function D(e){return e.jetpack.initialState.siteData?.showPromotions??!0}function F(e){return e.jetpack.initialState.themeData?.stylesheet}function U(e,t){return e.jetpack.initialState.themeData?.support?.[t]??!1}function V(e){return e.jetpack.initialState.themeData?.isBlockTheme??!1}function B(e){return e.jetpack.initialState.siteData?.showBackups??!0}function H(e){return e.jetpack.initialState.siteData?.showScan??!0}function $(e){return e.jetpack.initialState.siteData?.showMyJetpack??!0}function W(e){return e.jetpack.initialState.siteData?.isMultisite??!1}const q=(e,t,n="",r=!1)=>{const o=function(e){return e.jetpack.initialState?.aff??""}(e),c=function(e){return e.jetpack.initialState?.partnerSubsidiaryId??""}(e),l=n||function(e){return e.jetpack.initialState.userData.currentUser?.id??""}(e),d=function(e){return e.jetpack.initialState?.purchaseToken}(e),p=function(e){return e.jetpack.initialState?.calypsoEnv}(e),u=E(e);r&&"monthly"===(0,a.e)(e)&&(t+="-monthly");const h={site:u??g(e)};return o&&(h.aff=o),l&&(h.u=l),c&&(h.subsidiaryId=c),h.query="",(0,i._U)(e)||(h.query+="unlinked=1&"),d&&(h.query+=`purchasetoken=${d}`),p&&(h.calypso_env=p),(0,s.A)(t,h)};function K(e){return(e.jetpack.initialState?.connectionStatus?.errors??[]).filter(e=>Object.hasOwn(e,"action"))}function J(e){return!!e.jetpack.initialState.isSafari}function G(e){return!!e.jetpack.initialState.doNotUseConnectionIframe}function Y(e){return!!e.jetpack.initialState.isOdysseyStatsEnabled}function Z(e){return e.jetpack.initialState.shouldInitializeBlaze}function X(e){return!!e.jetpack.initialState.isBlazeDashboardEnabled}function Q(e){return!!e.jetpack.initialState.siteData.isSharingBlockAvailable}function ee(e){return!!e.jetpack.initialState.siteData.isLikeBlockAvailable}function te(e){return"ai_seo_enhancer_enabled"in e.jetpack.initialState.getModules["seo-tools"].options}function ne(e){return e.jetpack.initialState.isAiEnabled??!0}function se(e){return e.jetpack.initialState.isAiSeoEnabled??!0}},17588(e,t,n){"use strict";n.d(t,{L:()=>r});n(5932);var s=n(44254);const r=e=>t=>{t({type:s.BI,notice:e})}},71607(e,t,n){"use strict";n.d(t,{C8:()=>s.C8,Fc:()=>s.Fc,Ll:()=>r.L,i$:()=>s.i$,nV:()=>s.nV,sT:()=>s.sT});var s=n(76287),r=n(17588)},76287(e,t,n){"use strict";n.d(t,{C8:()=>i,Fc:()=>c,Ff:()=>o,i$:()=>d,nV:()=>l,sT:()=>a});var s=n(16278),r=n(44254);const o=(0,s.HY)({notice:(e=!1,t)=>t.type===r.z0?"disconnected":e,dismissed:(e=window.Initial_State.dismissedNotices,t)=>{switch(t.type){case r.BI:return Object.assign({},e,{[t.notice]:!0});case r._i:return Object.assign({},e,t.dismissedNotices);case r.$n:return!1;default:return e}}});function i(e){return e.jetpack.jetpackNotices.notice}function a(e){return e.jetpack.initialState?.jetpackStateNotices?.errorCode}function c(e){return e.jetpack.initialState?.jetpackStateNotices?.messageCode}function l(e){return e.jetpack.initialState?.jetpackStateNotices?.errorDescription}function d(e,t){return e.jetpack.jetpackNotices.dismissed?.[t]??!1}},31094(e,t,n){"use strict";n.d(t,{A5:()=>o});var s=n(5932),r=n(44254);const o=()=>e=>(e({type:r.$X,error:""}),s.Ay.updateLicensingError({error:""}))},7237(e,t,n){"use strict";n.d(t,{A5:()=>r.A5,fZ:()=>s.fZ});var s=n(60077),r=n(31094)},60077(e,t,n){"use strict";n.d(t,{Ff:()=>o,fZ:()=>i});var s=n(16278),r=n(44254);const o=(0,s.HY)({error:(e=window.Initial_State.licensing.error,t)=>t.type===r.$X?t.error:e,userCounts:(e=window.Initial_State.licensing.userCounts??{},t)=>t.type===r.LW?Object.assign({},e,t.counts):e,activationNoticeDismiss:(e=window.Initial_State.licensing.activationNoticeDismiss??{last_detached_count:null,last_dismissed_time:null},t)=>t.type===r.Dv?Object.assign({},e,t.dismissData):e,licenses:(e=window.Initial_State.licensing.licenses??{items:[],loading:!1},t)=>{switch(t.type){case r.Zo:return{...e,loading:!0};case r.ez:return{...e,...t.data,loading:!1};case r.JH:return{...e,loading:!1};default:return e}}});function i(e){return e.jetpack.licensing?.error??""}},31415(e,t,n){"use strict";n.d(t,{Ls:()=>s,mh:()=>r});n(5932),n(27723),n(5546),n(23096);const s=["jetpack_testimonial","jetpack_portfolio","wpcom-reader"];function r(e){s.some(t=>t in e)&&window.location.reload()}},26508(e,t,n){"use strict";n.d(t,{GG:()=>s.GG,Kb:()=>s.Kb,Ls:()=>r.Ls,VV:()=>r.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_,j9:()=>s.j9});var s=n(23096),r=n(31415)},23096(e,t,n){"use strict";n.d(t,{Ff:()=>c,GG:()=>h,Kb:()=>l,W7:()=>d,Yp:()=>w,Z1:()=>g,ZH:()=>m,_J:()=>f,d1:()=>b,eI:()=>p,f_:()=>u,j9:()=>v});var s=n(66087),r=n(16278),o=n(44254),i=n(77423);const a={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},c=(0,r.HY)({items:(e={},t)=>{switch(t.type){case o.X2:return Object.assign({},t.initialState.getModules);case o.oo:return Object.assign({},e,t.modules);case o.s2:return Object.assign({},e,{[t.module]:Object.assign({},e[t.module],{activated:!0})});case o.ti:return Object.assign({},e,{[t.module]:Object.assign({},e[t.module],{activated:!1})});case o.PK:{const n=Object.assign({},e[t.module]);return Object.keys(t.newOptionValues).forEach(e=>{n.options[e].current_value=t.newOptionValues[e]}),Object.assign({},e,{[t.module]:n})}default:return e}},requests:(e=a,t)=>{switch(t.type){case o.LK:return Object.assign({},e,{fetchingModulesList:!0});case o.sp:case o.oo:return Object.assign({},e,{fetchingModulesList:!1});case o.Eq:return Object.assign({},e,{activating:Object.assign({},e.activating,{[t.module]:!0})});case o.Fd:case o.s2:return Object.assign({},e,{activating:Object.assign({},e.activating,{[t.module]:!1})});case o.dM:return Object.assign({},e,{deactivating:Object.assign({},e.deactivating,{[t.module]:!0})});case o.Mc:case o.ti:return Object.assign({},e,{deactivating:Object.assign({},e.deactivating,{[t.module]:!1})});case o.xf:{const n=Object.assign({},e.updatingOption);return n[t.module]=Object.assign({},n[t.module]),Object.keys(t.newOptionValues).forEach(e=>{n[t.module][e]=!0}),Object.assign({},e,{updatingOption:Object.assign({},e.updatingOption,n)})}case o.G2:case o.PK:{const n=Object.assign({},e.updatingOption);return n[t.module]=Object.assign({},n[t.module]),Object.keys(t.newOptionValues).forEach(e=>{n[t.module][e]=!1}),Object.assign({},e,{updatingOption:Object.assign({},e.updatingOption,n)})}default:return e}}});function l(e,t,n){return e.jetpack.modules.items?.[t]?.options?.[n]?.current_value}function d(e,t,n){return e.jetpack.modules.items?.[t]?.options?.[n]?.enum_labels??!1}function p(e){return e.jetpack.modules.items}function u(e,t){return e.jetpack.modules.items?.[t]??{}}function h(e){return Object.keys(e.jetpack.modules.items).filter(t=>e.jetpack.modules.items[t].requires_connection)}function g(e){return Object.keys(e.jetpack.modules.items).filter(t=>e.jetpack.modules.items[t].requires_user_connection)}function f(e,t=[]){const n=Object.keys(p(e));return 0<(0,s.intersection)(n,t).length}function m(e){return f(e,["carousel","photon","photon-cdn","search","videopress"])}function v(e){return f(e,["protect","sso","vaultpress"])||(0,i.gT)(e,"akismet/akismet.php")}function w(e,t){return!!e.jetpack.modules.items?.[t]?.activated}function b(e,t){return e.jetpack.modules.items?.[t]?.override??!1}},52173(e,t,n){"use strict";n.d(t,{F:()=>o,e:()=>i});var s=n(16278),r=n(44254);const o=(0,s.HY)({duration:(e="yearly",t)=>t.type===r.ms?t.duration:e});function i(e){return e.jetpack.plans.duration}},66596(e,t,n){"use strict";n.d(t,{Ff:()=>o,mq:()=>i});var s=n(16278),r=n(44254);const o=(0,s.HY)({connectUrls:(e={},t)=>t.type===r.X2?Object.assign({},t.initialState.externalServicesConnectUrls):e});function i(e,t){return e.jetpack.publicize.connectUrls?.[t]??null}},91134(e,t,n){"use strict";n.d(t,{A:()=>C});var s=n(16278),r=n(73161),o=n(15299),i=n(19519),a=n(11067),c=n(95118),l=n(69089),d=n(76287),p=n(60077),u=n(23096),h=n(52173),g=n(66596),f=n(28988),m=n(81626),v=n(87239),w=n(57526),b=n(71143),y=n(19892),k=n(23258),_=n(51142),x=n(74215);const j=(0,s.HY)({connection:i.Ff,dashboard:o.ze,devCard:a.Ff,initialState:l.ue,jetpackNotices:d.Ff,modules:u.Ff,plans:h.F,pluginsData:b.Ff,publicize:g.Ff,rewind:f.Ff,scan:m.Ff,search:v.Ff,settings:w.Ff,siteData:y.Ff,siteVerify:k.Ff,featureCheck:c.F,trackingSettings:_.Ff,licensing:p.Ff,waf:x.Ff}),C=(0,s.HY)({globalNotices:r.x,jetpack:j})},64572(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(16278),r=n(12996),o=n(91134);const i=(0,s.Zz)((0,s.Tw)(r.P),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(s.y$)(o.A)},99155(e,t,n){"use strict";n.d(t,{m:()=>o});var s=n(5932),r=n(44254);const o=()=>e=>(e({type:r.Kt}),s.Ay.fetchRewindStatus().then(t=>(e({type:r.aU,status:t}),t)).catch(t=>{e({type:r.xl,error:t})}))},89336(e,t,n){"use strict";n.d(t,{Qi:()=>s.Qi,mF:()=>r.m,wp:()=>s.wp});var s=n(28988),r=n(99155)},32897(e,t,n){"use strict";n.d(t,{i:()=>s});const s={SUCCESS:"success",IN_PROGRESS:"in-progress",PENDING:"pending",FAILED:"failed"}},37640(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(44254),r=n(32897),o=n(21205);const i={error:null,featureEnabled:!1,hasLoaded:!1,isFetching:!1,overallStatus:r.i.PENDING,tests:[]},a=(e=i,t)=>{switch(t.type){case s.ko:return{...e,isFetching:!0,hasLoaded:!1};case s.H_:return{...e,isFetching:!1,hasLoaded:!0,error:t.error};case s.y9:return{...e,isFetching:!1,hasLoaded:!0,featureEnabled:t.featureEnabled,...t.tests&&Array.isArray(t.tests)?{overallStatus:(0,o.Y)(t.tests)}:{}};default:return e}}},21205(e,t,n){"use strict";n.d(t,{Y:()=>r});var s=n(32897);const r=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,n){"use strict";n.d(t,{Ff:()=>a,Qi:()=>l,wp:()=>c});var s=n(16278),r=n(44254),o=n(37640);const i={isFetchingRewindStatus:!1},a=(0,s.HY)({data:(e={},t)=>{switch(t.type){case r.aU:return Object.assign({},e,{status:t.status});case r.PP:return Object.assign({},e,{status:t.rewindState});default:return e}},requests:(e=i,t)=>{switch(t.type){case r.Kt:return Object.assign({},e,{isFetchingRewindStatus:!0});case r.aU:case r.xl:return Object.assign({},e,{isFetchingRewindStatus:!1});default:return e}},preflight:o.A});function c(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function l(e){return e.jetpack.rewind?.data?.status??{}}},55685(e,t,n){"use strict";n(5932)},76358(e,t,n){"use strict";n.d(t,{W4:()=>s.W4});var s=n(81626);n(55685)},81626(e,t,n){"use strict";n.d(t,{Ff:()=>i,W4:()=>a});var s=n(16278),r=n(44254);const o={isFetchingScanStatus:!1},i=(0,s.HY)({data:(e={},t)=>{switch(t.type){case r.r8:return Object.assign({},e,{status:t.status});case r.Sj:return{status:{...e.status,...t.scanState}};default:return e}},requests:(e=o,t)=>{switch(t.type){case r.Q9:return Object.assign({},e,{isFetchingScanStatus:!0});case r.r8:case r.j1:return Object.assign({},e,{isFetchingScanStatus:!1});default:return e}}});function a(e){return e.jetpack.scan?.data?.status??{}}},39628(e,t,n){"use strict";n.d(t,{F:()=>r});var s=n(44254);const r=e=>t=>{t({type:s.Lv,term:e})}},12623(e,t,n){"use strict";n.d(t,{F5:()=>r.F,a2:()=>s.a2,jQ:()=>s.jQ,nh:()=>s.nh});var s=n(87239),r=n(39628)},87239(e,t,n){"use strict";n.d(t,{Ff:()=>o,a2:()=>c,jQ:()=>a,nh:()=>i});var s=n(16278),r=n(44254);const o=(0,s.HY)({searchTerm:(e="",t)=>t.type===r.Lv?t.term:e});function i(e){return e.jetpack.search.searchTerm}function a(e,t){const n=Object.values(e.jetpack?.modules?.items??{}).find(e=>e?.module===t);if(void 0===n)return!1;const s=e.jetpack?.search?.searchTerm??!1;return!s||[n.module,n.name,n.description,n.learn_more_button,n.long_description,n.search_terms,n.additional_search_queries,n.short_description,n.feature?n.feature.toString():""].join(" ").toLowerCase().indexOf(s.toLowerCase())>-1}function c(e){if(!i(e))return!1;const t=e.jetpack?.modules?.items??{};return Object.values(t).some(t=>t?.module&&a(e,t.module))}},99577(e,t,n){"use strict";n.d(t,{Uc:()=>d,Xx:()=>p,ic:()=>c,jo:()=>l});var s=n(5932),r=n(27723),o=n(5546),i=n(44254),a=n(26508);const __=r.__,c=()=>({type:i.iS}),l=()=>({type:i.zs}),d=()=>e=>(e({type:i.Wk}),s.Ay.fetchSettings().then(t=>(e({type:i.H2,settings:t}),t)).catch(t=>{e({type:i.rN,error:t})})),p=(e,t={})=>n=>{const c={progress:__("Updating settings…","jetpack"),success:__("Updated settings.","jetpack"),error:e=>(0,r.sprintf)(/* translators: %s: an error code or an error message. */ | |
| 45 | +__("Error updating settings. %s","jetpack"),e.message||e.code||e.name||e),...t};"object"==typeof e&&a.Ls.some(t=>t in e)&&(c.success=__("Updated settings. Refreshing page…","jetpack")),n((0,o.fj)("module-setting-update")),n((0,o.fj)("module-setting-update-success"));const l=["dismiss_empty_stats_card","dismiss_dash_backup_getting_started","dismiss_dash_agencies_learn_more"];return"object"!=typeof e||l.some(t=>t in e)||n((0,o.Fc)("is-info",c.progress,{id:"module-setting-update"})),n({type:i.TV,updatedOptions:e}),s.Ay.updateSettings(e).then(t=>{n({type:i.NY,updatedOptions:u(t,e),success:t}),(0,a.VV)(e),n((0,o.fj)("module-setting-update")),n((0,o.fj)("module-setting-update-success")),"object"!=typeof e||l.some(t=>t in e)||n((0,o.Fc)("is-success",c.success,{id:"module-setting-update-success",duration:2e3}))}).catch(t=>{n({type:i.Qu,success:!1,error:t,updatedOptions:e}),n((0,o.fj)("module-setting-update")),n((0,o.Fc)("is-error",c.error(t),{id:"module-setting-update"}))})};function u(e,t){let n=t;return"regenerate"===t?.post_by_email_address&&(n={post_by_email_address:e.post_by_email_address}),n}},30138(e,t,n){"use strict";n.d(t,{Ny:()=>s.Ny,PL:()=>s.PL,Uc:()=>r.Uc,Xx:()=>r.Xx,eu:()=>s.eu,ic:()=>r.ic,jo:()=>r.jo,mt:()=>s.mt});var s=n(57526),r=n(99577)},57526(e,t,n){"use strict";n.d(t,{Ff:()=>a,Ny:()=>d,PL:()=>l,eu:()=>p,mt:()=>c});var s=n(66087),r=n(16278),o=n(44254);const i={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},a=(0,r.HY)({items:(e={},t)=>{switch(t.type){case o.X2:return Object.assign({},e,t.initialState.settings);case o.H2:return Object.assign({},t.settings);case o.Cv:{const n=Object.keys(t.updatedOption)[0];return Object.assign({},e,{[n]:t.updatedOption[n]})}case o.NY:return Object.assign({},e,t.updatedOptions);default:return e}},requests:(e=i,t)=>{switch(t.type){case o.Wk:return Object.assign({},e,{fetchingSettingsList:!0});case o.rN:case o.H2:return Object.assign({},e,{fetchingSettingsList:!1});case o.YC:case o.TV:return(0,s.merge)({},e,{settingsSent:(0,s.mapValues)(t.updatedOptions,()=>!0)});case o.Vf:case o.Cv:case o.Qu:case o.NY: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 o.iS:return!0;case o.zs:return!1;default:return e}}});function c(e){return e.jetpack.settings.items}function l(e,t,n="",s=!0){if(!s||""===n||e.jetpack.settings.items?.[n])return e.jetpack.settings.items?.[t]}function d(e,t=""){return Array.isArray(t)?Object.entries(e.jetpack.settings.requests.settingsSent).some(([e,n])=>n&&t.includes(e)):e.jetpack.settings.requests.settingsSent[t]}function p(e){return e.jetpack.settings?.unsavedSettingsFlag??!1}},97317(e,t,n){"use strict";n.d(t,{I:()=>c,T:()=>a});var s=n(5932),r=n(27723),o=n(5546),i=n(44254);const __=r.__,a=(e=null)=>t=>(t({type:i.bp}),s.Ay.fetchVerifySiteGoogleStatus(e).then(e=>{if(e.errors&&e.errors.length>0){const n=Object.keys(e.errors)[0],s=e.errors[n];return t({type:i.uR,error:{code:n,message:s}}),e}return t({type:i.K8,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:i.uR,error:e.response})})),c=e=>t=>(t({type:i.ZC}),s.Ay.verifySiteGoogle(e).then(e=>{if(e.errors&&e.errors.length>0){const n=Object.keys(e.errors)[0],s=e.errors[n];return t({type:i.yn,error:{code:n,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:i.h8}),e.verified&&t((0,o.Fc)("is-success",__("Site is verified","jetpack"),{id:"verify-site-google-verified",duration:2e3})),e}).catch(e=>{t({type:i.yn,error:e.response})}))},70342(e,t,n){"use strict";n.d(t,{ID:()=>r.I,Iz:()=>s.Iz,L9:()=>s.L9,TI:()=>r.T,aB:()=>s.aB,ib:()=>s.ib,v1:()=>s.v1,wr:()=>s.wr,yF:()=>s.yF});var s=n(23258),r=n(97317)},23258(e,t,n){"use strict";n.d(t,{Ff:()=>o,Iz:()=>a,L9:()=>l,aB:()=>p,ib:()=>d,v1:()=>u,wr:()=>i,yF:()=>c});var s=n(16278),r=n(44254);const o=(0,s.HY)({google:(e={fetching:!1,verifying:!1,verified:!1},t)=>{switch(t.type){case r.bp:return Object.assign({},e,{fetching:!0});case r.uR:return Object.assign({},e,{fetching:!1,error:t.error});case r.K8:return Object.assign({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});case r.ZC:return Object.assign({},e,{verifying:!0});case r.h8:return Object.assign({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case r.yn:return Object.assign({},e,{verifying:!1,verified:!1,error:t.error});default:return e}}});function i(e){return e?.jetpack?.siteVerify?.google?.fetching??!1}function a(e){return e?.jetpack?.siteVerify?.google?.verifying??!1}function c(e){return!i(e)&&"no_token_for_user"!==e?.jetpack?.siteVerify?.google?.error?.code}function l(e){return e?.jetpack?.siteVerify?.google?.verified??!1}function d(e){return e?.jetpack?.siteVerify?.google?.error??null}function p(e){return e?.jetpack?.siteVerify?.google?.searchConsoleUrl??null}function u(e){return e?.jetpack?.siteVerify?.google?.isOwner??!1}},24667(e,t,n){"use strict";n.d(t,{Eb:()=>i,Rt:()=>a,aW:()=>o,iV:()=>c,w3:()=>l});var s=n(5932),r=n(44254);const o=()=>e=>(e({type:r.X9}),s.Ay.fetchSiteData().then(t=>(e({type:r.BX,siteData:t}),t)).catch(t=>{e({type:r.Us,error:t})})),i=()=>e=>(e({type:r.jp}),s.Ay.fetchSiteBenefits().then(t=>{e({type:r.c8,siteBenefits:t})}).catch(t=>{e({type:r.Gv,error:t})})),a=()=>e=>(e({type:r.s8}),s.Ay.fetchSiteFeatures().then(t=>(e({type:r.I9,siteFeatures:t}),t)).catch(t=>{e({type:r.Po,error:t})})),c=()=>e=>(e({type:r.pA}),s.Ay.getPlans().then(t=>(e({type:r.ZZ,plans:t}),t)).catch(t=>{e({type:r.U7,error:t})})),l=()=>e=>(e({type:r.pc}),s.Ay.fetchSitePurchases().then(t=>(e({type:r.jA,purchases:t}),t)).catch(t=>{e({type:r.gO,error:t})}))},82656(e,t,n){"use strict";n.d(t,{$U:()=>s.$U,Eb:()=>r.Eb,Ec:()=>s.Ec,F3:()=>s.F3,IT:()=>s.IT,Kb:()=>s.Kb,OX:()=>s.OX,Rt:()=>r.Rt,SN:()=>s.SN,Up:()=>s.Up,X6:()=>s.X6,aW:()=>r.aW,dr:()=>s.dr,iV:()=>r.iV,mH:()=>s.mH,w3:()=>r.w3});var s=n(19892),r=n(24667)},74668(e,t,n){"use strict";n.d(t,{b:()=>o});var s=n(5932),r=n(44254);const o=()=>e=>(e({type:r.SW}),s.Ay.fetchPluginsData().then(t=>(e({type:r.yx,pluginsData:t}),t)).catch(t=>{e({type:r.RW,error:t})}))},77423(e,t,n){"use strict";n.d(t,{O8:()=>s.O8,bR:()=>r.b,gT:()=>s.gT,rC:()=>s.rC});var s=n(71143),r=n(74668)},71143(e,t,n){"use strict";n.d(t,{Ff:()=>i,O8:()=>l,gT:()=>c,rC:()=>a});var s=n(16278),r=n(44254);const o={isFetchingPluginsData:!1,hasFetchedPluginsData:!1},i=(0,s.HY)({items:(e={},t)=>t.type===r.yx?Object.assign({},t.pluginsData):e,requests:(e=o,t)=>{switch(t.type){case r.SW:return Object.assign({},e,{isFetchingPluginsData:!0});case r.RW:case r.yx:return Object.assign({},e,{isFetchingPluginsData:!1,hasFetchedPluginsData:!0});default:return e}}});function a(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function c(e,t){return e.jetpack.pluginsData.items[t]&&e.jetpack.pluginsData.items[t].active}function l(e,t){return!!e.jetpack.pluginsData.items[t]}},19892(e,t,n){"use strict";n.d(t,{$U:()=>g,Ec:()=>b,F3:()=>l,Ff:()=>c,IT:()=>v,Kb:()=>d,OX:()=>p,SN:()=>u,Up:()=>f,X6:()=>h,dr:()=>w,mH:()=>m});var s=n(27723),r=n(66087),o=n(16278),i=(n(6838),n(44254));const __=s.__,a={isFetchingSiteData:!1},c=(0,o.HY)({data:(e={},t)=>{switch(t.type){case i.BX:return Object.assign({},e,t.siteData);case i.c8:return(0,r.merge)({},e,{site:{benefits:t.siteBenefits}});case i.R1:return(0,r.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case i.I9:return(0,r.merge)({},e,{site:{features:t.siteFeatures}});case i.ZZ:return(0,r.merge)({},e,{sitePlans:t.plans});case i.jA:return(0,r.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:(e=a,t)=>{switch(t.type){case i.X9:return Object.assign({},e,{isFetchingSiteData:!0});case i.jp:return Object.assign({},e,{isFetchingSiteBenefits:!0});case i.z9:return Object.assign({},e,{isFetchingConnectedPlugins:!0});case i.s8:return Object.assign({},e,{isFetchingSiteFeatures:!0});case i.pA:return Object.assign({},e,{isFetchingSitePlans:!0});case i.pc:return Object.assign({},e,{isFetchingSitePurchases:!0});case i.Us:case i.BX:return Object.assign({},e,{isFetchingSiteData:!1});case i.Gv:case i.c8:return Object.assign({},e,{isFetchingSiteBenefits:!1});case i.Cj:case i.R1:return Object.assign({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case i.Po:case i.I9:return Object.assign({},e,{isFetchingSiteFeatures:!1});case i.U7:case i.ZZ:return Object.assign({},e,{isFetchingSitePlans:!1});case i.gO:case i.jA:return Object.assign({},e,{isFetchingSitePurchases:!1});default:return e}},errors:(e={},t)=>{let n,s;if(t.type===i.Us){switch(t.error.name){case"ApiError":n="reconnect",s=__("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":n="support",s=__("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:n=null,s=__("There seems to be a problem with your website.","jetpack")}return Object.assign({},e,{message:Object.hasOwn(t.error,"response")?t.error.response.message:s,action:n,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 l(e){return[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 p(e){return!!e.jetpack.siteData.requests.isFetchingSiteBenefits}function u(e){return!!e.jetpack.siteData.requests.isFetchingSitePurchases}function h(e){return e.jetpack.siteData?.data?.plan??{}}function g(e){return e.jetpack.siteData?.data?.options?.videopress_storage_used??null}function f(e){return e.jetpack.siteData?.data?.site?.benefits??null}function m(e){return e.jetpack.siteData?.data?.site?.features?.active??[]}function v(e,t){const n=m(e);return n&&n.indexOf(t)>=0}function w(e){return"wp-admin"===e.jetpack.siteData?.data?.options?.wpcom_admin_interface}function b(e){return function(e){return e.jetpack.siteData?.data?.sitePurchases??[]}(e).filter(e=>"active"===e.subscription_status)}},83177(e,t,n){"use strict";n.d(t,{X:()=>a,Y:()=>c});var s=n(5932),r=n(27723),o=n(5546),i=n(44254);const __=r.__,a=()=>e=>(e({type:i.fn}),s.Ay.fetchUserTrackingSettings().then(t=>(e({type:i.vl,settings:t}),t)).catch(t=>{e({type:i.OH,error:t})})),c=e=>t=>{const n={progress:__("Updating privacy settings…","jetpack"),success:__("Updated privacy settings.","jetpack"),error:e=>(0,r.sprintf)(/* translators: %s: an error message. */ | |
| 46 | +__("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)};return t((0,o.fj)("tracking-settings-update")),t((0,o.fj)("tracking-settings-update-success")),t((0,o.Fc)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:i.Gl,updatedSettings:e}),s.Ay.updateUserTrackingSettings(e).then(s=>{t({type:i.sW,updatedSettings:e,success:s}),t((0,o.fj)("tracking-settings-update")),t((0,o.fj)("tracking-settings-update-success")),t((0,o.Fc)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))}).catch(s=>{t({type:i.lV,updatedSettings:e,success:!1,error:s}),t((0,o.fj)("tracking-settings-update")),t((0,o.fj)("tracking-settings-update-success")),t((0,o.Fc)("is-error",n.error(s),{id:"tracking-settings-update"}))})}},51142(e,t,n){"use strict";n.d(t,{Ff:()=>i,h:()=>c,h5:()=>a,vu:()=>l});var s=n(16278),r=n(44254);const o={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},i=(0,s.HY)({items:(e={},t)=>{switch(t.type){case r.vl:return Object.assign({},e,t.settings);case r.sW:return Object.assign({},e,t.updatedSettings);default:return e}},requests:(e=o,t)=>{switch(t.type){case r.fn:return Object.assign({},e,{fetchingTrackingSettings:!0});case r.OH:case r.vl:return Object.assign({},e,{fetchingTrackingSettings:!1});case r.Gl:return Object.assign({},e,{updatingTrackingSettings:!0});case r.lV:case r.sW:return Object.assign({},e,{updatingTrackingSettings:!1});default:return e}}});function a(e){return e.jetpack.trackingSettings.items}function c(e){return e.jetpack.trackingSettings.requests.fetchingTrackingSettings}function l(e){return e.jetpack.trackingSettings.requests.updatingTrackingSettings}},72868(e,t,n){"use strict";n.d(t,{J:()=>i,M:()=>o});var s=n(5932),r=n(44254);const o=()=>e=>(e({type:r.ym}),s.Ay.fetchWafSettings().then(t=>(e({type:r.Ob,settings:t}),t)).catch(t=>{e({type:r.H1,error:t})})),i=e=>t=>(t({type:r.j7}),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:r.Hv,settings:e}),e)).catch(e=>{throw t({type:r.Wz,error:e}),e}))},74215(e,t,n){"use strict";n.d(t,{Ff:()=>s.Ff,Mg:()=>r.M,_e:()=>s._e});var s=n(80911),r=n(72868)},80911(e,t,n){"use strict";n.d(t,{EK:()=>c,Ff:()=>i,IE:()=>l,_e:()=>a,mY:()=>d});var s=n(16278),r=n(44254);const o={isFetchingWafSettings:!1,isUpdatingWafSettings:!1},i=(0,s.HY)({data:(e={},t)=>{switch(t.type){case r.Ob:case r.Hv:return Object.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=o,t)=>{switch(t.type){case r.ym:return Object.assign({},e,{isFetchingWafSettings:!0});case r.Ob:case r.H1:return Object.assign({},e,{isFetchingWafSettings:!1});case r.j7:return Object.assign({},e,{isUpdatingWafSettings:!0});case r.Hv:case r.Wz:return Object.assign({},e,{isUpdatingWafSettings:!1});default:return e}}});function a(e){return!!e.jetpack.waf.requests.isFetchingWafSettings}function c(e){return!!e.jetpack.waf.requests.isUpdatingWafSettings}function l(e){return e.jetpack.waf?.data??{}}function d(e){return e.jetpack.waf?.data?.automaticRulesAvailable??!1}},79930(e,t,n){"use strict";n.d(t,{A:()=>x});var s=n(3924),r=n(97999),o=n(1455),i=n.n(o),a=n(56427),c=n(27723),l=n(51609),d=n(71766),p=n(26592),u=n(63344),h=n(60619),g=n(8332),f=n(19579),m=n(53835),v=n(2065),w=n(26508),b=n(6838),y=n(10790);const __=c.__,k=()=>{m.A.tracks.recordJetpackClick("blaze-dashboard")},_={alignSelf:"center",borderRadius:"8px",height:"auto",margin:"auto",maxHeight:"calc(100% - 32px)",maxWidth:"512px",width:"calc(100% - 32px)"};const x=(0,u.t)((0,d.Ng)((e,t)=>({blazeActive:t.getOptionValue("blaze"),blazeDashboardEnabled:(0,v.Kz)(e),blazeModule:(0,w.f_)(e,"blaze"),blazeAvailable:(0,v.G4)(e)}))(function(e){const{blazeActive:t,blazeAvailable:n,blazeModule:{description:o},blazeDashboardEnabled:c,hasConnectedOwner:d,isOfflineMode:u,isSavingAnyOption:v,isUnavailableInOfflineMode:w,siteAdminUrl:x,toggleModuleNow:j}=e,[C,S]=(0,l.useState)(!1),[A,E]=(0,l.useState)(!1),{can_init:M,reason:N}=n,T=()=>c?x+"admin.php?page=advertising":(0,s.A)("jetpack-blaze"),O=()=>c?{}:{target:"_blank",rel:"noopener noreferrer"},z=(0,l.useCallback)(()=>{S(!1)},[]),R=(0,l.useCallback)(()=>{S(!1),k()},[]),I=(0,l.useCallback)((e,t)=>{((e,t)=>{m.A.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})})(e,t),j(e)},[j]),P=(0,l.useCallback)(()=>{S(!1),I("blaze",!0)},[I]),L=(0,l.useCallback)(async(e,t)=>{if(!A)if(t){E(!0);try{const n=await i()({path:"/jetpack/v4/blaze/active-campaigns"});if("none"===n?.status)return void I(e,t)}catch{}finally{E(!1)}S(!0)}else I(e,t)},[A,I]);if((0,r.isWoASite)())return null;const D=w("blaze");return(0,y.jsxs)(g.A,{...e,header:__("Blaze","jetpack"),module:"blaze",hideButton:!0,feature:b.FpR,children:[(0,y.jsx)(f.A,{module:{module:"blaze"},disableInOfflineMode:!0,disableInSiteConnectionMode:!0,support:{text:o,link:(0,s.A)("jetpack-support-blaze")},children:M||"user_not_connected"!==N?M?(0,y.jsx)(h.j,{slug:"blaze",activated:t,disabled:D||!d||v("blaze")||A,trackToggle:!1,toggleModule:L,children:(0,y.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Attract high-quality traffic to your site using Blaze.","jetpack")})}):(0,y.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:__("Blaze is not available on your site.","jetpack")}):(0,y.jsx)(a.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:__("Attract high-quality traffic to your site using Blaze.","jetpack")})}),M&&t&&!u&&(0,y.jsx)(p.A,{compact:!0,className:"jp-settings-card__configure-link",href:T(),onClick:k,...O(),children:__("Manage your campaigns and view your earnings in the Blaze dashboard","jetpack")}),C&&(0,y.jsx)(a.Modal,{title:__("Active Blaze campaigns are still running","jetpack"),onRequestClose:z,className:"jp-blaze-disable-warning-modal",size:"medium",style:_,children:(0,y.jsxs)(a.__experimentalVStack,{spacing:"4",children:[(0,y.jsx)(a.__experimentalText,{as:"p",children:__("Disabling this setting only hides the Blaze interface. Your campaigns will continue to serve ads, and you will continue to be charged. To stop your campaigns, open campaign management.","jetpack")}),(0,y.jsxs)(a.__experimentalHStack,{justify:"start",spacing:"3",wrap:!0,children:[(0,y.jsx)(a.Button,{variant:"primary",onClick:z,children:__("Keep Blaze enabled","jetpack")}),(0,y.jsx)(a.Button,{variant:"secondary",href:T(),onClick:R,...O(),children:__("Manage campaigns","jetpack")}),(0,y.jsx)(a.Button,{variant:"tertiary",isDestructive:!0,onClick:P,children:__("Disable anyway","jetpack")})]})]})})]})}))},11342(e,t,n){"use strict";n.d(t,{a:()=>b});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(57273),c=n(51609),l=n(11895),d=n(63344),p=n(8332),u=n(19579),h=n(13300),g=n(78888),f=n(53835),m=n(6838),v=n(10790);const __=i.__,_x=i._x,w="jetpack_wga",b=(0,d.t)(class extends c.Component{trackConfigureClick(){f.A.tracks.recordJetpackClick("configure-ga")}getOptionValue=e=>this.props.getOptionValue(w)[e];updateOption=(e,t)=>{const n=this.props.getOptionValue(w);this.props.updateFormStateOptionValue(w,{...n,[e]:t})};onOptionChange=e=>t=>{this.updateOption(e,t.target.value)};onToggleChange=e=>t=>{this.updateOption(e,t)};isSaving=()=>this.props.isSavingAnyOption(w);isActive=()=>this.getOptionValue("is_active");toggleActive=()=>{this.updateOption("is_active",!this.isActive());const e=this.props.getOptionValue(w);this.props.updateOptions({jetpack_wga:{...e,is_active:!e.is_active}})};showForm=()=>this.props.getSettingCurrentValue(w).is_active;render(){return(0,v.jsxs)(p.A,{...this.props,header:_x("Google Analytics","Settings header","jetpack"),feature:m.ZrU,saveDisabled:this.isSaving(),children:[(0,v.jsx)(u.A,{disableInOfflineMode:!0,support:{text:__("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions.","jetpack"),link:(0,s.A)("wpcom-support-google-analytics"),wpcomLink:"https://wordpress.com/support/google-analytics/"},children:(0,o.createInterpolateElement)(__("Google Analytics is a free service that complements <a>Jetpack Stats</a> with different insights into your traffic. Jetpack Stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.","jetpack"),{a:(0,v.jsx)("a",{href:this.props.siteUsesWpAdminInterface?this.props.siteAdminUrl+"admin.php?page=jetpack#/stats":(0,s.A)("calypso-stats-day",{site:this.props.siteRawUrl})})})}),!this.props.isUnavailableInOfflineMode("google-analytics")&&(0,v.jsxs)(u.A,{hasChild:!0,children:[(0,v.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.isActive(),disabled:this.isSaving(),onChange:this.toggleActive,label:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable Google Analytics","jetpack")})}),this.showForm()&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(l.dV,{children:[(0,v.jsx)(l.lR,{className:"jp-form-label-wide",htmlFor:"code",children:__("Google Analytics Measurement ID","jetpack")}),(0,v.jsx)(g.A,{id:"code",pattern:"(UA-\\d+-\\d+)|(G-[A-Z0-9]+)",placeholder:"G-XXXXXXX",value:this.getOptionValue("code"),onChange:this.onOptionChange("code"),disabled:this.isSaving()}),(0,v.jsx)("span",{className:"jp-form-setting-explanation",children:(0,o.createInterpolateElement)(__("<link>Learn more</link> to find your Measurement ID.","jetpack"),{link:(0,v.jsx)(h.Ay,{href:(0,s.A)("wpcom-support-google-analytics",{anchor:"step-2-get-your-measurement-id"}),wpcomLink:"https://wordpress.com/support/google-analytics/#get-your-measurement-id"})})})]}),(0,v.jsx)(l.dV,{children:(0,v.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.getOptionValue("anonymize_ip"),onChange:this.onToggleChange("anonymize_ip"),disabled:this.isSaving(),label:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Anonymize IP addresses","jetpack")}),help:(0,v.jsx)("span",{className:"jp-form-setting-explanation jp-form-search-setting-explanation",children:(0,o.createInterpolateElement)(__("Enabling this option is mandatory in certain countries due to national privacy laws. <link>Learn more</link>","jetpack"),{link:(0,v.jsx)(a.N,{openInNewTab:!0,href:(0,s.A)("wpcom-support-google-analytics-anonymize-ip")})})})})})]})]})]})}})},68062(e,t,n){"use strict";n.d(t,{A:()=>A});var s=n(3924),r=n(97999),o=n(27723),i=n(51609),a=n(71766),c=n(70386),l=n(63109),d=n(11346),p=n(34679),u=n(2065),h=n(26508),g=n(12623),f=n(30138),m=n(82656),v=n(79930),w=n(11342),b=n(91237),y=n(58749),k=n(34465),_=n(82559),x=n(89708),j=n(13396),C=n(10790);const __=o.__;class S extends i.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"),n=this.props.isModuleFound("canonical-urls"),o=this.props.isModuleFound("stats"),i=this.props.isModuleFound("shortlinks"),a=this.props.isModuleFound("related-posts"),p=this.props.isModuleFound("verification-tools"),u=this.props.isModuleFound("sitemaps"),h=(0,r.isWoASite)(),g=this.props.isModuleFound("blaze"),f=!0===(0,r.getScriptData)()?.seo?.surface_visible,m=t||n||u||p;return t||n||o||i||a||p||u||h||g?(0,C.jsxs)("div",{children:[(0,C.jsx)(l.A,{}),(0,C.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Traffic Settings","jetpack")}),(0,C.jsx)("h2",{className:"jp-settings__section-title",children:this.props.searchTerm?__("Traffic","jetpack"):__("Maximize your site’s visibility in search engines and view traffic patterns in real time.","jetpack")}),a&&(0,C.jsx)(b.F,{...e}),!f&&(t||n)&&(0,C.jsx)(y.Ay,{...e,configureUrl:(0,s.A)("calypso-marketing-traffic",{site:this.props.blogID??this.props.siteRawUrl,anchor:"seo"})}),f&&m&&(0,C.jsx)(d.A,{status:"is-info",showDismiss:!1,className:"jp-seo-moved-banner",title:__("Jetpack SEO has its own dashboard","jetpack"),children:(0,C.jsxs)("div",{className:"jp-seo-moved-banner__content",children:[(0,C.jsx)("p",{children:__("Manage your search engine optimization settings from the redesigned SEO dashboard.","jetpack")}),(0,C.jsx)(c.A,{primary:!0,rna:!0,compact:!0,href:`${this.props.siteAdminUrl}admin.php?page=jetpack-seo`,children:__("Open the SEO dashboard","jetpack")})]})}),o&&(0,C.jsx)(_.H,{...e}),h&&(0,C.jsx)(w.a,{...e,site:this.props.blogID??this.props.siteRawUrl}),g&&(0,C.jsx)(v.A,{...e}),i&&(0,C.jsx)(k.A,{...e}),!f&&u&&(0,C.jsx)(x.A,{...e}),!f&&p&&(0,C.jsx)(j.m,{...e})]}):null}}const A=(0,a.Ng)(e=>({module:t=>(0,h.f_)(e,t),settings:(0,f.mt)(e),isBlockThemeActive:(0,u.JQ)(e),isOfflineMode:(0,p.hN)(e),isUnavailableInOfflineMode:t=>(0,p.Em)(e,t),isModuleFound:t=>(0,g.jQ)(e,t),isSiteConnected:(0,p.lY)(e),lastPostUrl:(0,u.Gn)(e),getModuleOverride:t=>(0,h.d1)(e,t),hasConnectedOwner:(0,p.BG)(e),blogID:(0,u.V2)(e),siteUsesWpAdminInterface:(0,m.dr)(e)}))(S)},91237(e,t,n){"use strict";n.d(t,{F:()=>b});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(51609),c=n(26592),l=n(11895),d=n(63344),p=n(60619),u=n(8332),h=n(19579),g=n(13300),f=n(53835),m=n(10790);const __=i.__,_x=i._x,v="https://wordpress.com/support/related-posts/";class w extends a.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=()=>{f.A.tracks.recordJetpackClick("configure-related-posts")};handleBlockThemeSupportClick=e=>{this.trackConfigureClick(),(0,g.wr)(e,v)};renderConfigureLink(){const{isBlockThemeActive:e,lastPostUrl:t,siteAdminUrl:n}=this.props;return e?(0,m.jsx)(c.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.handleBlockThemeSupportClick,href:(0,g.RP)((0,s.A)("jetpack-support-related-posts",{anchor:"adding-related-posts-block-theme"}),v),target:"_blank",rel:"noopener noreferrer",children:__("Add a Related Posts Block to your site’s template in the site editor","jetpack")}):(0,m.jsx)(c.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:n+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(n+"admin.php?page=jetpack-settings#/traffic")+"&url="+encodeURIComponent(t),children:__("Configure related posts in the Customizer","jetpack")})}render(){const e=this.props.getOptionValue("related-posts"),t=this.props.isUnavailableInOfflineMode("related-posts");return(0,m.jsxs)(u.A,{...this.props,hideButton:!0,module:"related-posts",children:[(0,m.jsxs)(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,s.A)("jetpack-support-related-posts"),wpcomLink:"https://wordpress.com/support/related-posts/"},children:[(0,m.jsx)("p",{children:(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:(0,m.jsx)(g.Ay,{href:(0,s.A)("jetpack-support-related-posts"),wpcomLink:"https://wordpress.com/support/related-posts/"})})}),(0,m.jsx)(p.j,{slug:"related-posts",disabled:t||this.props.isSavingAnyOption("related-posts"),activated:e,toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Show related content after posts","jetpack")})}),(0,m.jsxs)(l.dV,{children:[(0,m.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.getOptionValue("show_headline","related-posts"),disabled:!e||t||this.props.isSavingAnyOption(["related-posts"]),onChange:this.handleShowHeadlineToggleChange,label:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Highlight related content with a heading","jetpack")})}),(0,m.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.props.getOptionValue("show_thumbnails","related-posts"),disabled:!e||t||this.props.isSavingAnyOption(["related-posts"]),onChange:this.handleShowThumbnailsToggleChange,label:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Show a thumbnail image where available","jetpack")})}),e&&(0,m.jsxs)("div",{children:[(0,m.jsx)(l.lR,{className:"jp-form-label-wide",children:_x("Preview","A header for a preview area in the configuration screen.","jetpack")}),(0,m.jsxs)(c.A,{className:"jp-related-posts-preview",children:[this.state.show_headline&&(0,m.jsx)("div",{className:"jp-related-posts-preview__title",children:__("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)=>(0,m.jsxs)("div",{className:"jp-related-posts-preview__item",children:[this.state.show_thumbnails&&(0,m.jsx)("img",{src:`https://jetpackme.files.wordpress.com/2019/03/${e.url}`,alt:e.text}),(0,m.jsx)("h4",{className:"jp-related-posts-preview__post-title",children:(0,m.jsx)("a",{href:"#/traffic",children:e.text})}),(0,m.jsx)("p",{className:"jp-related-posts-preview__post-context",children:e.context})]},`preview_${t}`))]})]})]})]}),!this.props.isUnavailableInOfflineMode("related-posts")&&e&&this.renderConfigureLink()]})}}const b=(0,d.t)(w)},58749(e,t,n){"use strict";n.d(t,{Ay:()=>z});var s=n(3924),r=n(97999),o=n(54560),i=n(34900),a=n(66901),c=n(1455),l=n.n(c),d=n(56427),p=n(27723),u=n(13022),h=n(51609),g=n(71766),f=n(84705),m=n(70386),v=n(97058),w=n(11895),b=n(63344),y=n(60619),k=n(11346),_=n(8332),x=n(19579),j=n(53835),C=n(6838),S=n(2065),A=n(82656),E=n(77423),M=n(57707),N=n(10790);const __=p.__,_x=p._x,_n=p._n,T=[{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:"Rank Math",slug:"seo-by-rank-math/rank-math.php"},{name:"SEOKEY",slug:"seo-key/seo-key.php"},{name:"SEOKEY Pro",slug:"seo-key-pro/seo-key.php"},{name:"Slim SEO",slug:"slim-seo/slim-seo.php"},{name:"The SEO Framework",slug:"autodescription/autodescription.php"}],O=(0,b.t)(class extends h.Component{constants={frontPageMetaMaxLength:300,frontPageMetaSuggestedLength:159,moduleOptionsArray:["advanced_seo_front_page_description","advanced_seo_title_formats","ai_seo_enhancer_enabled"],siteIconPreviewSize:512};state={optInInProgress:!1,optInError:!1};handleSeoOptIn=()=>{j.A.tracks.recordEvent("jetpack_wpa_seo_optin_banner_click",{surface:"traffic_settings"}),this.setState({optInInProgress:!0,optInError:!1}),l()({path:"/jetpack/v4/seo/opt-in",method:"POST"}).then(e=>{e?.redirect?window.location.href=e.redirect:this.setState({optInInProgress:!1,optInError:!0})}).catch(()=>{this.setState({optInInProgress:!1,optInError:!0})})};toggleSeoEnhancer=()=>{const e=this.props.getOptionValue("ai_seo_enhancer_enabled");j.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"seo-tools",setting:"ai_seo_enhancer_enabled",toggled:e?"off":"on"}),this.props.updateOptions({ai_seo_enhancer_enabled:!e})};SocialPreviewGoogle=e=>(0,N.jsx)(o.m,{siteIcon:e.siteIcon,siteTitle:e.title,title:e.title,url:e.url,description:e.frontPageMetaDescription});SocialPreviewFacebook=e=>(0,N.jsx)(a.l,{title:e.title,url:e.url,type:"website",imageMode:"landscape",description:e.frontPageMetaDescription,image:this.props.siteRepresentativeImage});SocialPreviewTwitter=e=>(0,N.jsx)(i.E,{title:e.title,url:e.url,description:e.frontPageMetaDescription,image:this.props.siteRepresentativeImage});updateCustomSeoTitleInputState=e=>{this.props.updateFormStateOptionValue("advanced_seo_title_formats",e)};seoOptInBanner=()=>{if(!(0,r.getScriptData)()?.seo?.optin_available)return null;const e=this.state.optInInProgress?_x("Switching…","Button caption","jetpack"):_x("Use the new experience","Button caption","jetpack",0);return(0,N.jsx)(k.A,{status:"is-info",showDismiss:!1,className:"jp-seo-optin-banner",title:__("SEO has a new home","jetpack"),children:(0,N.jsxs)("div",{className:"jp-seo-optin-banner__content",children:[(0,N.jsx)("p",{children:__("Manage all of your search engine optimization from the redesigned Jetpack SEO dashboard.","jetpack")}),this.state.optInError&&(0,N.jsx)("p",{className:"jp-seo-optin-banner__error",children:__("Something went wrong while switching to the new experience. Please try again.","jetpack")}),(0,N.jsx)(m.A,{primary:!0,rna:!0,compact:!0,onClick:this.handleSeoOptIn,disabled:this.state.optInInProgress,children:e})]})})};saveButton=e=>{const t=this.props.isSavingAnyOption(this.constants.moduleOptionsArray);return(0,N.jsx)(m.A,{primary:!0,rna:!0,compact:!0,type:"submit",disabled:t||!e.isDirty(),children:t?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0)})};render(){const e=this.props.getModule("seo-tools"),t=!!e.module,n=this.props.getOptionValue(e.module),r=this.props.getOptionValue("advanced_seo_title_formats"),o=this.props.getOptionValue("advanced_seo_front_page_description"),i={title:this.props.siteData.name||"",tagline:this.props.siteData.description||"",url:this.props.siteData.URL||"",siteIcon:this.props.siteIcon||"",frontPageMetaDescription:o||(this.props.siteData.description||"")},a=T.reduce((e,t)=>((0,E.gT)(this.props.state,t.slug)&&e.push(t),e),[]),c=a.length>0,l=this.seoOptInBanner(),h=(0,u.A)({"jp-seo-front-page-description-count":!0,"jp-seo-front-page-description-count-max":o.length>=this.constants.frontPageMetaMaxLength,"jp-seo-front-page-description-count-warn":o.length>this.constants.frontPageMetaSuggestedLength&&o.length<this.constants.frontPageMetaMaxLength}),{feature:g,...m}=this.props;return(0,N.jsxs)(_.A,{...m,header:_x("Search engine optimization","Settings header","jetpack"),feature:C.W5X,module:e.module,saveDisabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray),hideButton:c||!t,children:[l&&(0,N.jsx)("div",{className:"jp-settings-card__notice",children:l}),t&&c&&(0,N.jsx)("div",{className:"jp-settings-card__notice",children:(0,N.jsx)(k.A,{showDismiss:!1,children:(0,p.sprintf)(/* translators: %s is the name of conflicting SEO plugin */ | |
| 47 | +__("Your SEO settings are managed by the following plugin: %s","jetpack"),a[0].name)})}),t&&(0,N.jsxs)(x.A,{hasChild:!0,disableInOfflineMode:!0,module:e,support:{text:__("Allows you to optimize your site and its content for better results in search engines.","jetpack"),link:(0,s.A)("jetpack-support-seo-tools"),wpcomLink:"https://wordpress.com/support/seo/seo-tools/"},children:[(0,N.jsx)("p",{children:__("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")}),(0,N.jsx)(y.j,{slug:"seo-tools",activated:n,disabled:this.props.isSavingAnyOption([e.module,...this.constants.moduleOptionsArray])||c,toggleModule:this.props.toggleModuleNow,children:(0,N.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Customize your SEO settings","jetpack")})}),this.props.seoEnhancerAvailable&&this.props.hasSeoEnhancer&&(0,N.jsxs)(w.dV,{children:[(0,N.jsx)(d.ToggleControl,{__nextHasNoMarginBottom:!0,id:"seo-enhancer",disabled:!this.props.getOptionValue("seo-tools")||!this.props.hasSeoEnhancer||!this.props.aiSeoEnabled,checked:this.props.hasSeoEnhancer&&this.props.getOptionValue("ai_seo_enhancer_enabled"),onChange:this.toggleSeoEnhancer,label:(0,N.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Automatically generate SEO title, SEO description, and image alt text for new posts","jetpack")})}),this.props.getOptionValue("seo-tools")&&!this.props.aiSeoEnabled&&(0,N.jsx)("span",{className:"jp-form-setting-explanation",children:this.props.aiEnabled?__("AI SEO is turned off for this site, so nothing is generated. Your choice is saved and applies again when AI SEO is turned back on.","jetpack"):__("Jetpack AI is turned off for this site, so nothing is generated. Your choice is saved and applies again when Jetpack AI is turned back on.","jetpack")})]})]}),(0,N.jsxs)(x.A,{module:{module:"canonical-urls"},support:{text:__("Adds canonical URL tags to archive pages to prevent duplicate content in search engines.","jetpack"),link:(0,s.A)("jetpack-support-canonical-urls"),wpcomLink:"https://wordpress.com/support/seo/seo-tools/#add-canonical-urls-to-archive-pages"},children:[(0,N.jsx)(y.j,{slug:"canonical-urls",activated:this.props.getOptionValue("canonical-urls"),disabled:this.props.isSavingAnyOption(["canonical-urls",...this.constants.moduleOptionsArray])||c,toggleModule:this.props.toggleModuleNow,children:(0,N.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Add canonical URLs to archive pages","jetpack")})}),(0,N.jsx)("p",{className:"jp-form-setting-explanation",children:__('Adds a rel="canonical" link to archive pages, helping search engines identify the preferred URL and avoid indexing duplicate content.',"jetpack")})]}),n&&!(0,E.rC)(this.props.state)&&!c&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(v.A,{header:__("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card",children:(0,N.jsxs)(x.A,{children:[(0,N.jsx)("p",{children:__("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")}),(0,N.jsx)(M.Ay,{customSeoTitles:r,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:i}),(0,N.jsx)("div",{className:"jp-seo-custom-titles-save-button",children:this.saveButton(this.props)})]})}),(0,N.jsx)(v.A,{header:__("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card",children:(0,N.jsxs)(x.A,{children:[(0,N.jsx)("p",{style:{clear:"both"},children:__("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")}),(0,N.jsx)(w.lR,{htmlFor:"jp-seo-front-page-description",children:(0,N.jsx)("span",{className:"jp-form-label-wide",children:__("Front Page Meta Description","jetpack")})}),(0,N.jsxs)("div",{className:"jp-seo-front-page-description-container",children:[(0,N.jsx)(w.hg,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:o,onChange:this.props.onOptionChange}),(0,N.jsxs)("div",{className:h,children:[(0,p.sprintf)(/* translators: %d: the number of characters */ | |
| 48 | +_n("%d character","%d characters",o.length,"jetpack"),o.length),o.length>=this.constants.frontPageMetaMaxLength&&" - "+__("Maximum characters reached.","jetpack")]})]}),(0,N.jsx)("div",{className:"jp-seo-front-page-description-save-button",children:this.saveButton(this.props)})]})}),(0,N.jsxs)(v.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",children:[(0,N.jsxs)("div",{className:"jp-seo-social-previews-container",children:[(0,N.jsx)(f.d6,{icon:"google",size:24}),(0,N.jsx)("span",{className:"jp-seo-social-previews-label",children:__("Google search","jetpack")})]}),this.SocialPreviewGoogle(i),(0,N.jsx)("hr",{}),(0,N.jsxs)("div",{className:"jp-seo-social-previews-container",children:[(0,N.jsx)(f.d6,{icon:"facebook",size:24}),(0,N.jsx)("span",{className:"jp-seo-social-previews-label",children:__("Facebook","jetpack")})]}),this.SocialPreviewFacebook(i),(0,N.jsx)("hr",{}),(0,N.jsxs)("div",{className:"jp-seo-social-previews-container",children:[(0,N.jsx)(f.d6,{icon:"x",size:24}),(0,N.jsx)("span",{className:"jp-seo-social-previews-label",children:__("X","jetpack")})]}),this.SocialPreviewTwitter(i)]})]})]})}}),z=(0,g.Ng)(e=>({siteData:e.jetpack.siteData.data,siteIcon:(0,S.ZE)(e),siteRepresentativeImage:(0,S.AI)(e),seoEnhancerAvailable:(0,S.pi)(e),state:e,hasSeoEnhancer:(0,A.IT)(e,"ai-seo-enhancer"),aiEnabled:(0,S.GY)(e),aiSeoEnabled:(0,S.pq)(e)}))(O)},57707(e,t,n){"use strict";n.d(t,{Ay:()=>g});var s=n(27723),r=n(51609),o=n(70386),i=n(11895),a=n(78888),c=n(10790);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"]}},d=(e,t,n)=>(l.tokensAvailablePerPageType[e.name].forEach(e=>{switch(e){case"site_name":t=t.replace(/\[site_name\]/g,n.title);break;case"tagline":t=t.replace(/\[tagline\]/g,n.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 */ | |
| 49 | +__("Preview: %s","jetpack"),t)),p=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:n,token:s})=>{const i=(0,r.useCallback)(()=>{const r=t.current;r.focus();const o=`[${s}]`,i=r.textFieldRef.current.selectionStart,a=r.props.value.substring(0,i),c=r.props.value.substring(i,r.props.value.length);n(e,a+o+c)},[e,t,n,s]);return(0,c.jsx)(o.A,{rna:!0,className:"jp-seo-custom-titles-input-button",compact:!0,onClick:i,children:l.insertableTokens[s]})},u=(e,t,n)=>l.tokensAvailablePerPageType[e.name].map(s=>"archives"===e.name&&"date"===s?null:(0,c.jsx)(p,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:n,token:s},s)),h=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:n,value:s,siteData:o})=>(0,c.jsxs)("div",{className:`jp-seo-custom-titles-input-container-${e.name}`,children:[(0,c.jsxs)("div",{className:"jp-seo-custom-titles-input-controls",children:[(0,c.jsx)(i.lR,{className:"jp-seo-custom-titles-input-label",htmlFor:`jp-seo-custom-titles-input-${e.name}`,children:(0,c.jsx)("span",{className:"jp-form-label",children:e.label})}),(0,c.jsx)("div",{children:u(e,t,n)})]}),(0,c.jsx)(a.A,{id:`jp-seo-custom-titles-input-${e.name}`,className:"jp-seo-custom-titles-input",value:s,onChange:(0,r.useCallback)(t=>n(e,t.target.value),[n,e]),ref:t}),(0,c.jsx)("div",{className:"jp-seo-custom-titles-input-preview",children:d(e,s,o)})]}),g=e=>{const[t]=(0,r.useState)({front_page:(0,r.createRef)(),posts:(0,r.createRef)(),pages:(0,r.createRef)(),groups:(0,r.createRef)(),archives:(0,r.createRef)()}),n=l.pageTypes.reduce((t,n)=>{var s;return t[n.name]=(s=e.customSeoTitles[n.name],Array.isArray(s)?s.reduce((e,t)=>e+("token"===t.type?`[${t.value}]`:t.value),""):""),t},{}),s=e.updateCustomSeoTitleInputState,o=(0,r.useCallback)((e,t)=>{n[e.name]=t;const r=Object.keys(n).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 n=null;for(const t of Object.keys(l.insertableTokens))e===`[${t}]`&&(n=t);return n&&l.tokensAvailablePerPageType[t].includes(n)?{type:"token",value:n}:{type:"string",value:e}}))(n[t],t),e),{});s(r)},[n,s]);return(0,c.jsx)("div",{className:"jp-seo-custom-titles",children:l.pageTypes.map(s=>(0,c.jsx)(h,{pageType:s,value:n[s.name],handleCustomSeoTitleInput:o,customSeoTitleInputRef:t[s.name],siteData:e.siteData},s.name))})}},34465(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(3924),r=n(27723),o=n(51609),i=n(71766),a=n(63344),c=n(60619),l=n(8332),d=n(19579),p=n(26508),u=n(10790);const __=r.__,_x=r._x;class h extends o.Component{render(){const{isSiteConnected:e}=this.props;return(0,u.jsx)(l.A,{...this.props,header:_x("WP.me Shortlinks","Settings header","jetpack"),module:"shortlinks",hideButton:!0,children:(0,u.jsx)(d.A,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:(0,s.A)("jetpack-support-shortlinks"),wpcomLink:"https://wordpress.com/support/shortlinks/"},disableInOfflineMode:!0,children:(0,u.jsx)(c.j,{slug:"shortlinks",disabled:!e||this.props.isSavingAnyOption("shortlinks"),activated:this.props.shortlinksActive,toggleModule:this.props.toggleModuleNow,children:(0,u.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Generate shortened URLs for simpler sharing.","jetpack")})})})})}}const g=(0,a.t)((0,i.Ng)((e,t)=>({shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:(0,p.f_)(e,"shortlinks")}))(h))},82559(e,t,n){"use strict";n.d(t,{H:()=>C});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(13022),c=n(51609),l=n(71766),d=n(70386),p=n(26592),u=n(97058),h=n(11895),g=n(45078),f=n(63344),m=n(8332),v=n(19579),w=n(13300),b=n(69546),y=n(53835),k=n(2065),_=n(10790);const __=i.__,_x=i._x,x=__("Choose who can view your Stats, which views are counted, and more.","jetpack");class j extends c.Component{constructor(e){super(e);const t=e.getOptionValue("count_roles","stats"),n=e.getOptionValue("roles","stats");this.state={count_roles:t,roles:n,count_roles_administrator:!!t?.includes("administrator"),count_roles_editor:!!t?.includes("editor"),count_roles_author:!!t?.includes("author"),count_roles_contributor:!!t?.includes("contributor"),count_roles_subscriber:!!t?.includes("subscriber"),roles_administrator:!0,roles_editor:!!n?.includes("editor"),roles_author:!!n?.includes("author"),roles_contributor:!!n?.includes("contributor"),roles_subscriber:!!n?.includes("subscriber"),wpcom_reader_views_enabled:e.getOptionValue("wpcom_reader_views_enabled")};const s=["administrator","editor","author","contributor","subscriber"];n?.length>0&&n.forEach(e=>{s.includes(e)||(this.state[`roles_${e}`]=!0)}),t?.length>0&&t.forEach(e=>{s.includes(e)||(this.state[`count_roles_${e}`]=!0)})}updateOptions=(e,t)=>{let n=this.props.getOptionValue(t,"stats"),s=!1;this.state[`${t}_${e}`]?n.includes(e)&&(n=n.filter(t=>t!==e)):n.includes(e)||(n.push(e),s=!0),this.setState({[`${t}_${e}`]:!this.state[`${t}_${e}`]},()=>{this.props.updateOptions({[t]:n})}),y.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:s?"on":"off"})};activateStats=()=>{this.props.updateOptions({stats:!0})};trackOpenCard=()=>{y.A.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})};handleRoleToggleChange=(e,t)=>()=>this.updateOptions(e,t);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})}),y.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"),n=this.props.isUnavailableInOfflineMode("stats"),i=this.props.getSiteRoles();if("inactive"===this.props.getModuleOverride("stats"))return(0,_.jsx)(g.A,{moduleName:e.name});if(!t)return(0,_.jsx)(p.A,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":""),children:(0,_.jsxs)("div",{className:"jp-at-a-glance__stats-inactive",children:[(0,_.jsx)("div",{className:"jp-at-a-glance__stats-inactive-icon",children:(0,_.jsx)("img",{src:b.d0+"stats.svg",width:"60",height:"60",alt:__("Line chart overlaid on a bar chart","jetpack"),className:"jp-at-a-glance__stats-icon"})}),(0,_.jsx)("div",{className:"jp-at-a-glance__stats-inactive-text",children:this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,o.createInterpolateElement)(__("Activate Jetpack Stats to see page views, likes, followers, subscribers, and more! <a>Learn More</a>","jetpack"),{a:(0,_.jsx)(w.Ay,{href:(0,s.A)("jetpack-support-wordpress-com-stats"),wpcomLink:"https://wordpress.com/support/stats/"})})}),!this.props.isOfflineMode&&(0,_.jsx)("div",{className:"jp-at-a-glance__stats-inactive-button",children:(0,_.jsx)(d.A,{rna:!0,onClick:this.activateStats,primary:!0,children:__("Activate Jetpack Stats","jetpack")})})]})});const c={text:__("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:(0,s.A)("jetpack-support-wordpress-com-stats"),wpcomLink:"https://wordpress.com/support/stats/"};return this.props.isOdysseyStatsEnabled?(0,_.jsxs)(m.A,{...this.props,header:_x("Jetpack Stats","Settings header","jetpack"),hideButton:!0,module:"site-stats",children:[(0,_.jsx)(v.A,{disableInOfflineMode:!0,module:e,support:c,children:(0,_.jsx)("p",{children:n?__("Unavailable in Offline Mode","jetpack"):x})}),!n&&(0,_.jsx)(p.A,{compact:!0,className:"jp-settings-card__configure-link",href:"admin.php?page=stats#!/stats/settings",children:__("Manage Stats settings","jetpack")})]}):(0,_.jsx)(m.A,{...this.props,header:_x("Jetpack Stats","Settings header","jetpack"),hideButton:!0,module:"site-stats",children:(0,_.jsx)(u.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,a.A)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":n}),children:(0,_.jsxs)(v.A,{disableInOfflineMode:!0,module:e,support:c,children:[(0,_.jsx)(h.dV,{className:"jp-stats-form-fieldset",children:(0,_.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!!this.props.getOptionValue("admin_bar"),disabled:!t||n||this.props.isSavingAnyOption(["stats"]),onChange:this.handleStatsOptionToggle("admin_bar"),label:__("Include a small chart in your admin bar with a 48-hour traffic snapshot","jetpack")})}),(0,_.jsxs)(h.dV,{className:"jp-stats-form-fieldset",children:[(0,_.jsx)(h.kK,{children:__("Count logged in page views from","jetpack")}),Object.keys(i).map(e=>(0,_.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.state[`count_roles_${e}`],disabled:!t||n||this.props.isSavingAnyOption(["stats"]),onChange:this.handleRoleToggleChange(e,"count_roles"),label:i[e].name},`count_roles-${e}`))]}),(0,_.jsxs)(h.dV,{className:"jp-stats-form-fieldset",children:[(0,_.jsx)(h.kK,{children:__("Allow Jetpack Stats to be viewed by","jetpack")}),(0,_.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!0,disabled:!0,label:i.administrator.name}),Object.keys(i).map(e=>"administrator"!==e?(0,_.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.state[`roles_${e}`],disabled:!t||n||this.props.isSavingAnyOption(["stats"]),onChange:this.handleRoleToggleChange(e,"roles"),label:i[e].name},`roles-${e}`):null)]}),(0,_.jsxs)(h.dV,{className:"jp-stats-form-fieldset",children:[(0,_.jsx)(h.kK,{children:__("WordPress.com Reader","jetpack")}),(0,_.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:this.state.wpcom_reader_views_enabled,disabled:!t||n,onChange:this.handleOptionToggle("wpcom_reader_views_enabled"),label:__("Show post views for this site.","jetpack")})]})]})})})}}const C=(0,l.Ng)(e=>({isOdysseyStatsEnabled:(0,k.jh)(e)}))((0,f.t)(j))},89708(e,t,n){"use strict";n.d(t,{A:()=>b});var s=n(3924),r=n(86087),o=n(27723),i=n(57273),a=n(13022),c=n(51609),l=n(71766),d=n(47982),p=n(63344),u=n(60619),h=n(8332),g=n(19579),f=n(53835),m=n(2065),v=n(10790);const __=o.__,_x=o._x;class w extends c.Component{renderSitemapRow=(e,t)=>(0,v.jsxs)("span",{className:"jp-sitemap-row",children:[(0,v.jsx)(d.A,{value:e,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack")}),(0,v.jsx)(i.N,{openInNewTab:!0,onClick:()=>f.A.tracks.recordJetpackClick(t),rel:"noopener noreferrer",href:e})]});render(){const e=this.props.getModule("sitemaps"),t=e?.extra?.sitemap_url??"",n=e?.extra?.news_sitemap_url??"",o=(0,a.A)({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return(0,v.jsx)(h.A,{...this.props,module:"sitemaps",hideButton:!0,children:(0,v.jsxs)(g.A,{hasChild:!0,module:{module:"sitemaps"},support:{link:(0,s.A)("jetpack-support-sitemaps"),wpcomLink:"https://wordpress.com/support/sitemaps/"},children:[(0,v.jsx)("p",{children:__("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")}),(0,v.jsx)(u.j,{slug:"sitemaps",compact:!0,disabled:this.props.isSavingAnyOption("sitemaps"),activated:this.props.getOptionValue("sitemaps"),toggleModule:this.props.toggleModuleNow,children:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Generate XML sitemaps","jetpack")})}),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&(0,v.jsxs)("p",{className:"jp-form-setting-explanation",children:[__("Good news: Jetpack is sending your sitemap automatically to all major search engines for indexing.","jetpack"),this.renderSitemapRow(t,"sitemap-url-link"),this.renderSitemapRow(n,"sitemap-news-url-link")]}):(0,v.jsx)("p",{className:o,children:(0,r.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:(0,v.jsx)("a",{href:this.props.siteAdminUrl+"options-reading.php"})})})]})})}}const b=(0,l.Ng)(e=>({isSiteVisibleToSearchEngines:(0,m.oF)(e),siteAdminUrl:(0,m.eu)(e)}))((0,p.t)(w))},13396(e,t,n){"use strict";n.d(t,{m:()=>b});var s=n(3924),r=n(86087),o=n(27723),i=n(57273),a=n(51609),c=n(11895),l=n(3983),d=n(63344),p=n(60619),u=n(8332),h=n(19579),g=n(13300),f=n(78888),m=n(34644),v=n(10790);const __=o.__;class w extends a.Component{static serviceIds={google:"google-site-verification",bing:"msvalidate.01",pinterest:"p:domain_verify",yandex:"yandex-verification",facebook:"facebook-domain-verification"};getMetaTag(e="",t=""){if(!t)return"";if(!/^(?!.*[<>"'])[!-~]+$/.test(t))return t;if(t.includes("<meta"))return t;const n=t.replace(/&(?!(?:#\d+|#x[\da-f]+|[a-z][\da-z]*);)/gi,"&");return`<meta name="${w.serviceIds?.[e]??""}" content="${n}" />`}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(0,v.jsx)(l.Ay,{title:e.name,icon:"cog",description:(0,o.sprintf)(/* translators: %s: the feature name. */ | |
| 50 | +__("%s has been disabled by a site administrator.","jetpack"),e.name)});const t=!!this.props.getOptionValue(e.module);return(0,v.jsx)(u.A,{...this.props,module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"]),children:(0,v.jsxs)(h.A,{module:e,support:{text:__("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:(0,s.A)("jetpack-support-site-verification-tools"),wpcomLink:"https://wordpress.com/support/site-verification-services/"},children:[(0,v.jsx)(p.j,{slug:e.module,activated:t,disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow,children:(0,v.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Verify site ownership with third party services","jetpack")})}),(0,v.jsx)("p",{children:(0,r.createInterpolateElement)(/* translators: placeholders are links to external sites. */ | |
| 51 | +__("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:(0,v.jsx)("strong",{}),support:(0,v.jsx)(g.Ay,{href:(0,s.A)("jetpack-support-site-verification-tools"),wpcomLink:"https://wordpress.com/support/site-verification-services/"}),google:(0,v.jsx)(i.N,{openInNewTab:!0,rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:(0,v.jsx)(i.N,{openInNewTab:!0,rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:(0,v.jsx)(i.N,{openInNewTab:!0,rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:(0,v.jsx)(i.N,{openInNewTab:!0,rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"}),facebook:(0,v.jsx)(i.N,{openInNewTab:!0,rel:"noopener noreferrer",href:"https://business.facebook.com/settings/"})})}),(0,v.jsxs)(c.dV,{children:[(0,v.jsx)(m.A,{value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234"),...this.props,disabled:this.props.isUpdating("google")||!t}),(0,v.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,v.jsx)("span",{children:__("Bing:","jetpack")}),(0,v.jsx)(f.A,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})]},"verification_service_bing"),(0,v.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,v.jsx)("span",{children:__("Pinterest:","jetpack")}),(0,v.jsx)(f.A,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})]},"verification_service_pinterest"),(0,v.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,v.jsx)("span",{children:__("Yandex:","jetpack")}),(0,v.jsx)(f.A,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})]},"verification_service_yandex"),(0,v.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,v.jsx)("span",{children:__("Facebook:","jetpack")}),(0,v.jsx)(f.A,{name:"facebook",value:this.getSiteVerificationValue("facebook"),placeholder:this.getMetaTag("facebook","1234"),className:"code",disabled:this.props.isUpdating("facebook")||!t,onChange:this.props.onOptionChange})]},"verification_service_facebook")]})]})})}}const b=(0,d.t)(w)},34644(e,t,n){"use strict";n.d(t,{A:()=>x});var s=n(86087),r=n(27723),o=n(57273),i=n(28120),a=n.n(i),c=n(51609),l=n(71766),d=n(70386),p=n(11895),u=n(5546),h=n(31497),g=n(78888),f=n(53835),m=n(70531),v=n(2065),w=n(66596),b=n(82656),y=n(70342),k=n(10790);const __=r.__;class _ extends c.Component{static propTypes={disabled:a().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;f.A.tracks.recordEvent("jetpack_site_verification_google_verify_error",{error_message:e}),this.props.createNotice("is-error",(0,r.sprintf)(/* translators: %s: an error message. */ | |
| 52 | +__("Site failed to verify: %s","jetpack"),e),{id:"verify-site-google-error",duration:5e3})}else this.props.isSiteVerifiedWithGoogle&&f.A.tracks.recordEvent("jetpack_site_verification_google_verify_success")})})}handleClickAutoVerify=()=>{this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||(f.A.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),(0,m.A)(this.props.googleSiteVerificationConnectUrl,e=>{e&&this.checkAndVerifySite(e)}))};handleClickSetManually=e=>{f.A.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickEdit=e=>{f.A.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickCancel=e=>{f.A.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:this.props.isOwner}),this.props.resetFormStateOption("google"),this.toggleVerifyMethod(e)};quickSave=e=>{f.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(0,k.jsx)("div",{children:(0,k.jsxs)(p.lR,{className:"jp-form-input-with-prefix",children:[(0,k.jsx)("span",{children:__("Google","jetpack")}),(0,k.jsx)(g.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&&(0,k.jsxs)("div",{className:"jp-form-site-verification-buttons",children:[(0,k.jsx)(d.A,{primary:!0,rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave,children:__("Save","jetpack")}),(0,k.jsx)(d.A,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel,children:__("Cancel","jetpack")})]})]},"verification_service_google")});if(this.props.isSiteVerifiedWithGoogle)return(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{className:"jp-form-input-with-prefix",children:[(0,k.jsx)("span",{children:__("Google","jetpack")}),(0,k.jsxs)("div",{className:"jp-form-site-verification-verified",children:[(0,k.jsx)(h.A,{icon:"checkmark-circle",size:20})," ",(0,k.jsx)("span",{children:__("Your site is verified with Google","jetpack")})]}),(0,k.jsx)(d.A,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit,children:__("Edit","jetpack")})]},"verification_service_google"),this.props.isOwner&&(0,k.jsx)("div",{className:"jp-form-input-with-prefix-bottom-message",children:(0,k.jsx)("div",{className:"jp-form-setting-explanation",children:(0,k.jsxs)("p",{children:[(0,s.createInterpolateElement)(__("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:(0,k.jsx)(o.N,{openInNewTab:!0,rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",(0,s.createInterpolateElement)(/* translators: placeholders are links to Google support documents. */ | |
| 53 | +__("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:(0,k.jsx)(o.N,{openInNewTab:!0,rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:(0,k.jsx)(o.N,{openInNewTab:!0,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(0,k.jsxs)("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",children:[(0,k.jsx)("span",{children:__("Google:","jetpack")}),(0,k.jsx)("div",{className:"jp-form-google-label-unverified-actions",children:(0,s.createInterpolateElement)(__("<button1>Auto verify with Google</button1><span>or</span><button2>Manually verify with Google</button2>","jetpack"),{button1:(0,k.jsx)(d.A,{primary:!0,rna:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:(0,k.jsx)("span",{className:"jp-form-google-separator"}),button2:(0,k.jsx)(d.A,{rna:!0,type:"button",disabled:t,onClick:this.handleClickSetManually})})})]},"verification_service_google")}}const x=(0,l.Ng)(e=>({fetchingSiteData:(0,b.Kb)(e),googleSiteVerificationConnectUrl:(0,w.mq)(e,"google_site_verification"),googleSearchConsoleUrl:(0,y.aB)(e),fetchingGoogleSiteVerify:(0,y.wr)(e),isConnectedToGoogle:(0,y.yF)(e),isSiteVerifiedWithGoogle:(0,y.L9)(e),isVerifyingGoogleSite:(0,y.Iz)(e),userCanManageOptions:(0,v.hN)(e),googleSiteVerificationError:(0,y.ib)(e),isOwner:(0,y.v1)(e)}),{checkVerifyStatusGoogle:y.TI,createNotice:u.Fc,removeNotice:u.fj,verifySiteGoogle:y.ID})(_)},752(e,t,n){"use strict";function s(e){return t=>{13!==t.which&&32!==t.which||e(t)}}n.d(t,{A:()=>s}),n.dn(s)},30940(e,t,n){"use strict";n.d(t,{A:()=>w});var s=n(3924),r=n(27723),o=n(51609),i=n(71766),a=n(23443),c=n(11895),l=n(63344),d=n(60619),p=n(8332),u=n(19579),h=n(2065),g=n(26508),f=n(12623),m=n(10790);const __=r.__,_x=r._x;class v extends o.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"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("shortcodes"),o=this.props.isModuleFound("blocks"),i=this.props.isMyJetpackReachable;if(!(e||t||n||r||o))return null;const l=this.props.module("markdown"),h=this.props.module("latex"),g=this.props.module("copy-post"),f=this.props.module("shortcodes"),v=this.props.module("blocks"),w=(0,m.jsx)(u.A,{module:g,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,s.A)("jetpack-support-copy-post"),wpcomLink:"https://wordpress.com/support/copy-a-post-or-page/"},children:(0,m.jsx)(c.dV,{children:(0,m.jsx)(d.j,{slug:"copy-post",disabled:this.props.isSavingAnyOption("copy-post"),activated:!!this.props.getOptionValue("copy-post"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:g.description})})})}),b=(0,m.jsx)(u.A,{module:l,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,s.A)("jetpack-support-markdown"),wpcomLink:"https://wordpress.com/support/wordpress-editor/blocks/markdown-block/"},children:(0,m.jsx)(c.dV,{children:(0,m.jsx)(d.j,{slug:"markdown",disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggleModule:this.updateFormStateByMarkdown,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:l.description})})})}),y=(0,m.jsx)(u.A,{module:h,support:{text:__("LaTeX is a powerful markup language for writing complex mathematical equations and formulas.","jetpack"),link:(0,s.A)("jetpack-support-beautiful-math-with-latex"),wpcomLink:"https://wordpress.com/support/latex/"},children:(0,m.jsx)(c.dV,{children:(0,m.jsx)(d.j,{slug:"latex",disabled:this.props.isSavingAnyOption(["latex"]),activated:!!this.props.getOptionValue("latex"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:h.description})})})}),k=(0,m.jsx)(u.A,{module:f,support:{text:f.description,link:(0,s.A)("jetpack-support-shortcode-embeds"),wpcomLink:"https://wordpress.com/support/wordpress-editor/blocks/shortcode-block/"},children:(0,m.jsx)(c.dV,{children:(0,m.jsx)(d.j,{slug:"shortcodes",disabled:this.props.isSavingAnyOption(["shortcodes"]),activated:!!this.props.getOptionValue("shortcodes"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Compose using shortcodes to embed media from popular sites","jetpack")})})})}),_=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(u.A,{module:v,support:{text:__("Jetpack includes some blocks which can help you create your pages exactly the way you want them.","jetpack"),link:(0,s.A)("jetpack-support-blocks")},children:(0,m.jsx)(c.dV,{children:(0,m.jsxs)(d.j,{slug:"blocks",disabled:this.props.isSavingAnyOption(["blocks"]),activated:!!this.props.getOptionValue("blocks"),toggleModule:this.props.toggleModuleNow,children:[(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("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")&&(0,m.jsx)("span",{className:"jp-form-setting-explanation",children:__("Caution: if there are Jetpack blocks used in existing posts or pages, disabling this setting will cause those blocks to stop working.","jetpack")})]})})}),(0,m.jsx)(a.A,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php`,children:__("Discover Jetpack tools in the block editor","jetpack")})]}),x=(0,m.jsx)(a.A,{className:"jp-settings-card__configure-link",children:(0,m.jsx)("a",{href:`${this.props.siteAdminUrl}admin.php?page=my-jetpack#/jetpack-ai`,children:__("Learn more about all Jetpack AI features","jetpack")})});return(0,m.jsxs)(p.A,{...this.props,header:_x("Composing","Settings header","jetpack"),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases"),children:[e&&w,n&&b,t&&y,r&&k,o&&_,i&&!this.props.getOptionValue("jetpack_blocks_disabled")&&x]})}}const w=(0,i.Ng)(e=>({module:t=>(0,g.f_)(e,t),isModuleFound:t=>(0,f.jQ)(e,t),isMyJetpackReachable:(0,h.WS)(e)}))((0,l.t)(v))},58288(e,t,n){"use strict";n.d(t,{A:()=>v});var s=n(3924),r=n(56427),o=n(86087),i=n(27723),a=n(51609),c=n(71766),l=n(23443),d=n(63344),p=n(8332),u=n(19579),h=n(26508),g=n(30138),f=n(10790);const __=i.__;class m extends a.Component{state={testimonial:this.props.getOptionValue("jetpack_testimonial")||!1,portfolio:this.props.getOptionValue("jetpack_portfolio")||!1};updateCPTs=e=>{const t="testimonial"===e?!this.state.testimonial:!this.state.portfolio;"portfolio"===e?this.props.updateSettings({jetpack_portfolio:t}):this.props.updateSettings({jetpack_testimonial:t}),this.setState({[e]:!this.state[e]})};linkIfActiveCPT=e=>this.props.getSettingCurrentValue(`jetpack_${e}`)?(0,f.jsx)("a",{href:`${this.props.siteAdminUrl}edit.php?post_type=jetpack-${e}`}):(0,f.jsx)("span",{});handleTestimonialToggleChange=()=>{this.updateCPTs("testimonial")};handlePortfolioToggleChange=()=>{this.updateCPTs("portfolio")};render(){if(!this.props.customContentTypeIsActive)return null;const e=this.props.customContentTypeIsOverridden,t="undefined"!=typeof jetpack_portfolio_theme_supports&&jetpack_portfolio_theme_supports,n=t?(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")}),i=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.should_show_testimonials&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.should_show_testimonials,a=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.should_show_portfolios&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.should_show_portfolios,c="undefined"!=typeof jetpack_testimonial_theme_supports&&jetpack_testimonial_theme_supports,d=c?(0,o.createInterpolateElement)(__("Use <testimonialLink>testimonials</testimonialLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site. This feature is enabled by default in your theme settings.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")}):(0,o.createInterpolateElement)(__("Use <testimonialLink>testimonials</testimonialLink> on your site to showcase your best work. 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")});return(0,f.jsxs)(p.A,{...this.props,module:"custom-content-types",header:"Custom content types",hideButton:!0,children:[i&&(0,f.jsxs)(u.A,{hasChild:!0,module:{module:"custom-content-types"},support:{link:(0,s.A)("jetpack-support-custom-content-types"),wpcomLink:"https://wordpress.com/support/testimonials/"},children:[(0,f.jsxs)("p",{children:[" ",d," "]}),(0,f.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!!this.props.getOptionValue("jetpack_testimonial")&&this.props.getOptionValue("jetpack_testimonial"),disabled:e||c,onChange:this.handleTestimonialToggleChange,label:(0,f.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Testimonials","jetpack")}),help:(0,f.jsx)("span",{className:"jp-form-setting-explanation jp-form-shortcode-setting-explanation",children:__("Testimonials shortcode: [testimonials]","jetpack")})})]}),this.props.getOptionValue("jetpack_testimonial")&&(0,f.jsx)(l.A,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-testimonial`,children:__("Add a testimonial","jetpack")}),a&&(0,f.jsxs)(u.A,{hasChild:!0,module:{module:"custom-content-types"},support:{link:(0,s.A)("jetpack-support-custom-content-types"),wpcomLink:"https://wordpress.com/support/portfolios/"},children:[(0,f.jsx)("p",{children:n}),(0,f.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!!this.props.getOptionValue("jetpack_portfolio")&&this.props.getOptionValue("jetpack_portfolio"),disabled:e||t,onChange:this.handlePortfolioToggleChange,label:(0,f.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Portfolios","jetpack")}),help:(0,f.jsx)("span",{className:"jp-form-setting-explanation jp-form-shortcode-setting-explanation",children:__("Portfolios shortcode: [portfolio]","jetpack")})})]}),this.props.getOptionValue("jetpack_portfolio")&&(0,f.jsx)(l.A,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-portfolio`,children:__("Add a portfolio item","jetpack")})]})}}const v=(0,d.t)((0,c.Ng)(e=>({module:t=>(0,h.f_)(e,t)}),e=>({updateSettings:t=>e((0,g.Xx)(t))}))(m))},10225(e,t,n){"use strict";n.d(t,{A:()=>_});var s=n(27723),r=n(51609),o=n(71766),i=n(26592),a=n(63109),c=n(34679),l=n(57794),d=n(2065),p=n(26508),u=n(12623),h=n(30138),g=n(30940),f=n(58288),m=n(51390),v=n(17336),w=n(81858),b=n(8190),y=n(10790);const __=s.__;class k extends r.Component{static displayName="WritingSettings";constructor(e){super(e);const t=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.active&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.active,n=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.over_ride&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.over_ride;this.state={customContentTypeIsActive:t,customContentTypeIsOverridden:n,customContentKeywords:[]},this.initializeCustomContentTypes()}initializeCustomContentTypes(){this.props.getActiveFeatureDetails().then(e=>{e&&void 0!==e["custom-content-types"].active?this.setState({customContentTypeIsActive:e["custom-content-types"].active,customContentTypeIsOverridden:e["custom-content-types"].over_ride,customContentKeywords:[...e["custom-content-types"].additional_search_queries.split(",").map(e=>e.trim().toLowerCase()),...e["custom-content-types"].description.toLowerCase().split(" ").map(e=>e.trim())]}):this.setState({customContentTypeIsActive:!1})}).catch(e=>{console.error("Error fetching custom content type status:",e),this.setState({customContentTypeIsActive:!1})})}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,customContentTypeIsActive:this.state.customContentTypeIsActive||!1,customContentTypeIsOverridden:this.state.customContentTypeIsOverridden||!1};if(!this.props.searchTerm&&!this.props.active)return null;if(!["carousel","copy-post","latex","markdown","shortcodes","post-by-email","infinite-scroll","widgets","widget-visibility","blocks"].some(this.props.isModuleFound)&&!this.state.customContentTypeIsActive)return null;const t=this.state.customContentTypeIsActive&&""===this.props.searchTerm||this.state.customContentTypeIsActive&&this.state.customContentKeywords.includes(this.props.searchTerm?.toLowerCase()),n=this.props.userCanManageModules||this.props.userCanEditPosts,s=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return(0,y.jsxs)("div",{children:[(0,y.jsx)(a.A,{}),(0,y.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Writing Settings","jetpack")}),(0,y.jsx)("h2",{className:"jp-settings__section-title",children:this.props.searchTerm?__("Writing","jetpack"):__("Compose content the way you want to and streamline your publishing experience.","jetpack")}),this.props.isModuleFound("carousel")&&(0,y.jsx)(b.A,{...e}),n&&(0,y.jsx)(g.A,{...e,userCanManageModules:this.props.userCanManageModules}),t&&(0,y.jsx)(f.A,{...e}),(0,y.jsx)(v.A,{...e}),(0,y.jsx)(w.A,{...e}),this.props.isModuleFound("post-by-email")&&s&&(0,y.jsx)(m.A,{...e,connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules}),!n&&!s&&(0,y.jsx)(i.A,{children:__("Writing tools available to you will be shown here when an administrator enables them.","jetpack")})]})}}const _=(0,o.Ng)(e=>({module:t=>(0,p.f_)(e,t),settings:(0,h.mt)(e),isOfflineMode:(0,c.hN)(e),isUnavailableInOfflineMode:t=>(0,c.Em)(e,t),userCanEditPosts:(0,d.jM)(e),isModuleActivated:t=>(0,p.Yp)(e,t),isLinked:(0,c._U)(e),userCanManageModules:(0,d.Ir)(e),isModuleFound:t=>(0,u.jQ)(e,t),connectUrl:(0,c.Qp)(e),getModuleOverride:t=>(0,p.d1)(e,t)}),e=>({getActiveFeatureDetails:()=>e((0,l.ly)("custom-content-types"))}))(k)},51390(e,t,n){"use strict";n.d(t,{A:()=>y});var s=n(3924),r=n(27723),o=n(51609),i=n(71766),a=n(70386),c=n(47982),l=n(11895),d=n(63344),p=n(60619),u=n(8332),h=n(19579),g=n(53835),f=n(26508),m=n(12623),v=n(6838),w=n(10790);const __=r.__,_x=r._x;class b extends o.Component{regeneratePostByEmailAddress=e=>{g.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"),n=this.props.isUnavailableInOfflineMode("post-by-email")||!this.props.isLinked,r=this.address();return(0,w.jsx)(u.A,{...this.props,module:"post-by-email",hideButton:!0,feature:v.X8r,children:(0,w.jsxs)(h.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,s.A)("jetpack-support-post-by-email"),wpcomLink:"https://wordpress.com/support/post-by-email/"},children:[(0,w.jsx)("p",{children:__("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?(0,w.jsx)(p.j,{slug:"post-by-email",compact:!0,disabled:n||this.props.isSavingAnyOption("post-by-email"),activated:t,toggleModule:this.props.toggleModuleNow,children:(0,w.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.module("post-by-email").description})}):(0,w.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.module("post-by-email").description}),(0,w.jsxs)(l.dV,{children:[(0,w.jsxs)(l.lR,{children:[(0,w.jsx)(l.kK,{children:__("Send your new posts to this email address:","jetpack")}),(0,w.jsx)(c.A,{value:r,disabled:!t||n,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack"),rna:!0})]}),(0,w.jsx)(a.A,{rna:!0,compact:!0,disabled:!t||n,onClick:this.regeneratePostByEmailAddress,children:r?__("Regenerate address","jetpack"):__("Create address","jetpack",0)})]})]})})}}const y=(0,i.Ng)(e=>({module:t=>(0,f.f_)(e,t),isModuleFound:t=>(0,m.jQ)(e,t)}))((0,d.t)(b))},17336(e,t,n){"use strict";n.d(t,{A:()=>w});var s=n(3924),r=n(27723),o=n(51609),i=n(71766),a=n(11895),c=n(45078),l=n(63344),d=n(8332),p=n(19579),u=n(53835),h=n(2065),g=n(26508),f=n(12623),m=n(10790);const __=r.__;class v extends o.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"),n="inactive"===this.props.getModuleOverride("infinite-scroll");return(0,m.jsxs)(d.A,{...this.props,header:__("Theme enhancements","jetpack"),hideButton:!e||!this.props.isInfiniteScrollSupported,module:"theme-enhancements",children:[n&&(0,m.jsx)(c.A,{moduleName:t.name,compact:!0}),e&&!n&&(0,m.jsxs)(p.A,{hasChild:!0,module:{module:t.module},support:{text:__("Loads the next posts automatically when the reader approaches the bottom of the page.","jetpack"),link:(0,s.A)("jetpack-support-infinite-scroll"),wpcomLink:"https://wordpress.com/support/infinite-scroll/"},children:[(0,m.jsx)(a.kK,{className:"jp-form-label-wide",children:t.name}),(0,m.jsx)("p",{children:__("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=>(0,m.jsxs)(a.lR,{children:[(0,m.jsx)("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)}),(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:e.label})]},`${t.module}_${e.key}`)):(0,m.jsxs)("span",{children:[__("Theme support required.","jetpack")+" ",(0,m.jsx)("a",{onClick:this.trackLearnMoreIS,href:t.learn_more_button+"#theme",title:__("Learn more about adding support for Infinite Scroll to your theme.","jetpack"),children:__("Learn more","jetpack")})]})]},`theme_enhancement_${t.module}`)]})}}const w=(0,i.Ng)(e=>({module:t=>(0,g.f_)(e,t),isInfiniteScrollSupported:(0,h.f8)(e,"infinite-scroll"),isModuleFound:t=>(0,f.jQ)(e,t)}))((0,l.t)(v))},81858(e,t,n){"use strict";n.d(t,{A:()=>f});var s=n(3924),r=n(27723),o=n(51609),i=n(71766),a=n(63344),c=n(60619),l=n(8332),d=n(19579),p=n(26508),u=n(12623),h=n(10790);const __=r.__,_x=r._x;class g extends o.Component{render(){const e=this.props.isModuleFound("widgets"),t=this.props.isModuleFound("widget-visibility");return e||t?(0,h.jsxs)(l.A,{...this.props,header:_x("Widgets","Settings header","jetpack"),module:"widgets",hideButton:!0,children:[e&&(0,h.jsx)(d.A,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:(0,s.A)("jetpack-support-extra-sidebar-widgets"),wpcomLink:"https://wordpress.com/support/widgets/"},children:(0,h.jsx)(c.j,{slug:"widgets",disabled:this.props.isSavingAnyOption("widgets"),activated:this.props.widgetsActive,toggleModule:this.props.toggleModuleNow,children:(0,h.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Make extra widgets available for use on your site including subscription forms and more","jetpack")})})}),t&&(0,h.jsx)(d.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,s.A)("jetpack-support-widget-visibility"),wpcomLink:"https://wordpress.com/support/widgets/"},children:(0,h.jsx)(c.j,{slug:"widget-visibility",disabled:this.props.isSavingAnyOption("widget-visibility"),activated:this.props.widgetVisibilityActive,toggleModule:this.props.toggleModuleNow,children:(0,h.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable widget visibility controls to display widgets only on particular posts or pages","jetpack")})})})]}):null}}const f=(0,a.t)((0,i.Ng)((e,t)=>({widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:(0,p.f_)(e,"widgets"),isModuleFound:t=>(0,u.jQ)(e,t)}))(g))},8190(e,t,n){"use strict";n.d(t,{A:()=>f});var s=n(3924),r=n(56427),o=n(27723),i=n(71766),a=n(11895),c=n(63344),l=n(60619),d=n(8332),p=n(19579),u=n(26508),h=n(12623),g=n(10790);const __=o.__;const f=(0,i.Ng)(e=>({module:t=>(0,u.f_)(e,t),isModuleFound:t=>(0,h.jQ)(e,t)}))((0,c.t)(function(e){const t=e.isModuleFound("carousel");if(!t)return null;const n=e.getOptionValue("carousel_display_comments","carousel"),o=e.getOptionValue("carousel_display_exif","carousel"),i=e.getOptionValue("carousel"),c=(t,n,s,o)=>(0,g.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:t,disabled:!i||e.isSavingAnyOption(["carousel"]),onChange:s,label:o});return(0,g.jsx)(d.A,{...e,module:"media",header:__("Media","jetpack"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color"),children:(0,g.jsxs)(p.A,{hasChild:!0,module:{module:"carousel"},support:{link:(0,s.A)("jetpack-support-carousel")},children:[(0,g.jsx)("p",{children:__("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")}),(0,g.jsx)(l.j,{slug:"carousel",disabled:e.isSavingAnyOption("carousel"),activated:i,toggleModule:e.toggleModuleNow,children:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Display images in a full-screen carousel gallery","jetpack")})}),(0,g.jsxs)(a.dV,{children:[c(o,0,()=>{e.updateFormStateModuleOption("carousel","carousel_display_exif")},(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Show photo Exif metadata in carousel (when available)","jetpack")})),c(n,0,()=>{e.updateFormStateModuleOption("carousel","carousel_display_comments")},(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Show comments area in carousel","jetpack")})),(0,g.jsx)(a.dV,{children:(0,g.jsx)("p",{className:"jp-form-setting-explanation",children:__("Exif data shows viewers additional technical details of a photo, like its focal length, aperture, and ISO.","jetpack")})}),(0,g.jsxs)(a.lR,{children:[(0,g.jsx)(a.kK,{className:"jp-form-label-wide",children:__("Carousel color scheme","jetpack")}),(0,g.jsx)(a.FX,{name:"carousel_background_color",value:e.getOptionValue("carousel_background_color"),disabled:!i||e.isSavingAnyOption(["carousel","carousel_background_color"]),...e,validValues:e.validValues("carousel_background_color","carousel"),rna:!0})]})]})]})})}))},51119(e,t,n){"use strict";n.d(t,{A:()=>i});var s,r=n(2467);function o(){this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=e=>{e.source===this.windowInstance&&this.emit("message",e.data)}}s=o.prototype,Object.assign(s,r.EventEmitter.prototype),s.emitChange=function(){this.emit("change")},s.off=s.removeListener,o.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},o.prototype.getScreenCenterSpecs=function(e,t){const n=void 0!==window.screenTop?window.screenTop:window.screenY,s=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(s+window.innerWidth/2-e/2)].join()},o.prototype.isOpen=function(e){let t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},o.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))},o.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t};const i=o},40180(e,t,n){"use strict";n.d(t,{Fr:()=>d});n(51609);const s=769,r="<480px",o="undefined"==typeof window||!window.matchMedia;function i(e){return{addListener:()=>{},removeListener:()=>{},...e}}const a={"<480px":{max:480},"<660px":{max:660},"<782px":{max:782},"<800px":{max:800},"<960px":{max:960},"<1040px":{max:1040},"<1180px":{max:1180},"<1280px":{max:1280},"<1400px":{max:1400},">480px":{min:480},">660px":{min:660},">=782px":{min:781},">782px":{min:782},">800px":{min:800},">=960px":{min:959},">960px":{min:960},">1040px":{min:1040},">1280px":{min:1280},">1400px":{min:1400},"480px-660px":{min:480,max:660},"660px-960px":{min:660,max:960},"480px-960px":{min:480,max:960}};function c(e){if(a.hasOwnProperty(e))return function(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?o?i({matches:s>t&&s<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?o?i({matches:s>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(o?i({matches:s<=n}):window.matchMedia(`(max-width: ${n}px)`))}(a[e]);try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(e){}}function l(e){const t=c(e);return t?t.matches:void 0}function d(){return l(r)}},10067(e,t,n){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 n="color: "+this.color;t.splice(1,0,n,"color: inherit");let s=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(s++,"%c"===e&&(r=s))}),t.splice(r,0,n)},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")||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;let e;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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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=n(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,n){e.exports=function(e){function t(e){let n,r,o,i=null;function a(...e){if(!a.enabled)return;const s=a,r=Number(new Date),o=r-(n||r);s.diff=o,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";i++;const o=t.formatters[r];if("function"==typeof o){const t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n}),t.formatArgs.call(s,e);(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function s(e,n){const s=t(this.namespace+(void 0===n?":":n)+e);return s.log=this.log,s}function r(e,t){let n=0,s=0,r=-1,o=0;for(;n<e.length;)if(s<t.length&&(t[s]===e[n]||"*"===t[s]))"*"===t[s]?(r=s,o=n,s++):(n++,s++);else{if(-1===r)return!1;s=r+1,o++,n=o}for(;s<t.length&&"*"===t[s];)s++;return s===t.length}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,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=n(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(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},61937(e,t,n){"use strict";var s=n(51609);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=s.useState,i=s.useEffect,a=s.useLayoutEffect,c=s.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=o({inst:{value:n,getSnapshot:t}}),r=s[0].inst,d=s[1];return a(function(){r.value=n,r.getSnapshot=t,l(r)&&d({inst:r})},[e,n,t]),i(function(){return l(r)&&d({inst:r}),e(function(){l(r)&&d({inst:r})})},[e]),c(n),n};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:d},49838(e,t,n){"use strict";var s=n(51609),r=n(22484);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=s.useRef,c=s.useEffect,l=s.useMemo,d=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,s,r){var p=a(null);if(null===p.current){var u={hasValue:!1,value:null};p.current=u}else u=p.current;p=l(function(){function e(e){if(!c){if(c=!0,i=e,e=s(e),void 0!==r&&u.hasValue){var t=u.value;if(r(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=s(e);return void 0!==r&&r(t,n)?(i=e,t):(i=e,a=n)}var i,a,c=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,s,r]);var h=i(e,p[0],p[1]);return c(function(){u.hasValue=!0,u.value=h},[h]),d(h),h}},21964(e,t,n){"use strict";var s=n(51609);var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=s.useSyncExternalStore,i=s.useRef,a=s.useEffect,c=s.useMemo,l=s.useDebugValue},22484(e,t,n){"use strict";e.exports=n(61937)},32566(e,t,n){"use strict";e.exports=n(49838)},16934(e,t,n){"use strict";n(21964)},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},87687(e){"use strict";e.exports=window.JetpackSharedStores},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},20195(e){"use strict";e.exports=window.wp.a11y},1455(e){"use strict";e.exports=window.wp.apiFetch},56427(e){"use strict";e.exports=window.wp.components},29491(e){"use strict";e.exports=window.wp.compose},47143(e){"use strict";e.exports=window.wp.data},38443(e){"use strict";e.exports=window.wp.date},64040(e){"use strict";e.exports=window.wp.deprecated},98490(e){"use strict";e.exports=window.wp.domReady},86087(e){"use strict";e.exports=window.wp.element},52619(e){"use strict";e.exports=window.wp.hooks},27723(e){"use strict";e.exports=window.wp.i18n},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},48816(e,t,n){"use strict";n.d(t,{$:()=>i});var s=n(51609),r=n(18762),o=n(15688);const i=s.forwardRef(function(e,t){const{render:n,className:s,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:c=!0,style:l,...d}=e,{getButtonProps:p,buttonRef:u}=(0,r.s)({disabled:i,focusableWhenDisabled:a,native:c}),h={disabled:i};return(0,o.o)("button",e,{state:h,ref:[t,u],props:[d,p]})})},87759(e,t,n){"use strict";n.d(t,{F:()=>i});var s=n(51609),r=n(98596),o=n(10790);const i=function(e){const{direction:t="ltr"}=e,n=s.useMemo(()=>({direction:t}),[t]);return(0,o.jsx)(r.l.Provider,{value:n,children:e.children})}},7406(e,t,n){"use strict";n.d(t,{c:()=>d});var s=n(51609),r=n(63405),o=n(12002),i=n(98414),a=n(15351),c=n(64789);n(10790);const l=s.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new r.E,currentIdRef:{current:null},currentContextRef:{current:null}});function d(e,t={open:!1}){const{open:n}=t,r="rootStore"in e?e.rootStore:e,d=r.useState("floatingId"),p=s.useContext(l),{currentIdRef:u,delayRef:h,timeoutMs:g,initialDelayRef:f,currentContextRef:m,hasProvider:v,timeout:w}=p,[b,y]=s.useState(!1),k=s.useRef(n);return(0,o.g)(()=>{k.current=n},[n]),(0,o.g)(()=>{function e(){m.current?.setIsInstantPhase(!1),u.current=null,m.current=null,h.current=f.current,w.clear()}if(u.current&&!n&&u.current===d){if(y(!1),g){const t=d;return w.start(g,()=>{r.select("open")||u.current&&u.current!==t||e()}),()=>{(k.current||u.current!==t)&&w.clear()}}e()}},[n,d,u,h,g,f,m,w,r]),(0,o.g)(()=>{if(!n)return;const e=m.current,t=u.current;w.clear(),m.current={onOpenChange:r.setOpen,setIsInstantPhase:y},u.current=d,h.current={open:0,close:(0,i.uf)(f.current,"close")},null!==t&&t!==d?(y(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,(0,a.d)(c.dv))):(y(!1),e?.setIsInstantPhase(!1))},[n,d,r,u,h,f,m,w]),(0,o.g)(()=>()=>{if(u.current===d){if(m.current=null,!k.current)return;u.current=null,function(e,t){e.current=t.current}(h,f),w.clear()}},[m,u,h,d,f,w]),s.useMemo(()=>({activeIdRef:u,hasProvider:v,delayRef:h,isInstantPhase:b}),[u,v,h,b])}},11706(e,t,n){"use strict";n.d(t,{CK:()=>g});var s=n(51609),r=n(75795),o=n(81289),i=n(38583),a=n(12002),c=n(19288),l=n(12570),d=n(50415),p=n(15688);n(10790);const u=s.createContext(null);const h=(0,d.F)("portal");function g(e={}){const{ref:t,container:n,componentProps:d=l.t0,elementProps:g}=e,f=(0,i.B)(),m=s.useContext(u),v=m?.portalNode,[w,b]=s.useState(null),[y,k]=s.useState(null),_=(0,c.K)(e=>{null!==e&&k(e)}),x=s.useRef(null);(0,a.g)(()=>{if(null===n)return void(x.current&&(x.current=null,k(null),b(null)));const e=(n&&((0,o.Ll)(n)?n:n.current))??v??document.body;null!=e?x.current!==e&&(x.current=e,k(null),b(e)):x.current&&(x.current=null,k(null),b(null))},[n,v]);const j=(0,p.o)("div",d,{ref:[t,_],props:[{id:f,[h]:""},g]}),C=w&&j?r.createPortal(j,w):null;return{node:y,nodeId:s.isValidElement(j)?j.props.id:void 0,subtree:C}}},33367(e,t,n){"use strict";n.d(t,{K:()=>a});var s=n(25489),r=n(16703),o=n(26559);const i={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId};class a extends s.H{constructor(e){const{syncOnly:t,nested:n,onOpenChange:s,triggerElements:o,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:s,dataRef:{current:{}},events:(0,r.d)(),nested:n,triggerElements:o},i),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,o.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);const n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},88536(e,t,n){"use strict";n.d(t,{R1:()=>i,cq:()=>a});var s=n(51609);n(10790);const r=s.createContext(null);const o=s.createContext(null);const i=()=>s.useContext(r)?.id||null,a=e=>{const t=s.useContext(o);return e??t}},47018(e,t,n){"use strict";n.d(t,{j:()=>d});var s=n(51609),r=n(7584),o=n(19288),i=n(81289),a=n(90865),c=n(26559);function l(e){return null!=e&&null!=e.clientX}function d(e,t={}){const{enabled:n=!0,axis:d="both"}=t,p="rootStore"in e?e.rootStore:e,u=p.useState("open"),h=p.useState("floatingElement"),g=p.useState("domReferenceElement"),f=p.context.dataRef,m=s.useRef(!1),v=s.useRef(null),[w,b]=s.useState(),[y,k]=s.useState([]),_=(0,o.K)(e=>{p.set("positionReference",e)}),x=(0,o.K)((e,t,n)=>{m.current||f.current.openEvent&&!l(f.current.openEvent)||p.set("positionReference",function(e,t){let n=null,s=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){const o=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i="x"===t.axis||"both"===t.axis,a="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&"touch"!==t.pointerType;let l=o.width,d=o.height,p=o.x,u=o.y;return null==n&&t.x&&i&&(n=o.x-t.x),null==s&&t.y&&a&&(s=o.y-t.y),p-=n||0,u-=s||0,l=0,d=0,!r||c?(l="y"===t.axis?o.width:0,d="x"===t.axis?o.height:0,p=i&&null!=t.x?t.x:p,u=a&&null!=t.y?t.y:u):r&&!c&&(d="x"===t.axis?o.height:d,l="y"===t.axis?o.width:l),r=!0,{width:l,height:d,x:p,y:u,top:u,right:p+l,bottom:u+d,left:p}}}}(n??g,{x:e,y:t,axis:d,dataRef:f,pointerType:w}))}),j=(0,o.K)(e=>{u?v.current||(x(e.clientX,e.clientY,e.currentTarget),k([])):x(e.clientX,e.clientY,e.currentTarget)}),C=(0,c.Go)(w)?h:u;s.useEffect(()=>{if(!n)return void _(g);if(!C)return;function e(){v.current?.(),v.current=null}const t=(0,i.zk)(h);return!f.current.openEvent||l(f.current.openEvent)?v.current=(0,r.q)(t,"mousemove",function(t){const n=(0,a.EW)(t);(0,a.gR)(h,n)?e():x(t.clientX,t.clientY)}):_(g),e},[C,n,h,f,g,p,x,_,y]),s.useEffect(()=>()=>{p.set("positionReference",null)},[p]),s.useEffect(()=>{n&&!h&&(m.current=!1)},[n,h]),s.useEffect(()=>{!n&&u&&(m.current=!0)},[n,u]);const S=s.useMemo(()=>{function e(e){b(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:j,onMouseEnter:j}},[j]);return s.useMemo(()=>n?{reference:S,trigger:S}:{},[n,S])}},94891(e,t,n){"use strict";n.d(t,{s:()=>y});var s=n(51609),r=n(7584),o=n(31238),i=n(12240),a=n(19288),c=n(63405),l=n(81289),d=n(55087),p=n(88536),u=n(15351),h=n(64789),g=n(50415),f=n(59879),m=n(90865),v=n(26559),w=n(40612);function b(){return!1}function y(e,t={}){const{enabled:n=!0,escapeKey:y=!0,outsidePress:k=!0,outsidePressEvent:_="sloppy",referencePress:x=b,bubbles:j,externalTree:C}=t,S="rootStore"in e?e.rootStore:e,A=S.useState("open"),E=S.useState("floatingElement"),{dataRef:M,events:N}=S.context,T=(0,p.cq)(C),O=(0,a.K)("function"==typeof k?k:()=>!1),z="function"==typeof k?O:k,R=!1!==z,I=(0,a.K)(()=>_),{escapeKey:P,outsidePress:L}={escapeKey:"boolean"==typeof(D=j)?D:D?.escapeKey??!1,outsidePress:"boolean"==typeof D?D:D?.outsidePress??!0};var D;const F=s.useRef(!1),U=s.useRef(!1),V=s.useRef(!1),B=s.useRef(!1),H=s.useRef(!1),$=s.useRef(""),W=s.useRef(null),q=(0,c.Z)(),K=(0,c.Z)(),J=(0,a.K)(()=>{K.clear(),M.current.insideReactTree=!1}),G=(0,a.K)(e=>{const t=M.current.floatingContext?.nodeId;return(T?(0,w.CM)(T.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),Y=(0,a.K)(e=>(0,f.F2)(e,S.select("floatingElement"))||(0,f.F2)(e,S.select("domReferenceElement"))),Z=(0,a.K)(e=>{x()&&S.setOpen(!1,(0,u.d)(h.Ui,e.nativeEvent))}),X=(0,a.K)(e=>{if(!A||!n||!y||"Escape"!==e.key)return;if(H.current)return;if(!P&&G("__escapeKeyBubbles"))return;const t=(0,v.O_)(e)?e.nativeEvent:e,s=(0,u.d)(h.jv,t);S.setOpen(!1,s),s.isCanceled||e.preventDefault(),P||s.isPropagationAllowed||e.stopPropagation()}),Q=(0,a.K)(()=>{M.current.insideReactTree=!0,K.start(0,J)}),ee=(0,a.K)(e=>{if(!A||!n||0!==e.button)return;const t=(0,m.EW)(e.nativeEvent);(0,m.gR)(S.select("floatingElement"),t)&&(F.current||(F.current=!0,U.current=!1))}),te=(0,a.K)(e=>{A&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&F.current&&(U.current=!0)});s.useEffect(()=>{function e(e){e.open||(B.current=!1)}return N.on("openchange",e),()=>{N.off("openchange",e)}},[N]),s.useEffect(()=>{if(!A||!n)return A||(B.current=!1),J;M.current.__escapeKeyBubbles=P,M.current.__outsidePressBubbles=L;const e=new c.E,t=new c.E,s=(0,i.R)(E);function a(){V.current=!0,t.start(0,()=>{V.current=!1})}function p(){F.current=!1,U.current=!1}function b(){const e=$.current,t="pen"!==e&&e?e:"mouse",n=I(),s="function"==typeof n?n():n;return"string"==typeof s?s:s[t]}function k(e){const t=M.current.floatingContext?.nodeId,n=T&&(0,w.CM)(T.nodesRef.current,t).some(t=>(0,f.F2)(e,t.context?.elements.floating));return Y(e)||n}function _(e){if(function(e){const t=b();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e))return"click"===e.type||Y(e)||(t.clear(),V.current=!1),void J();if(M.current.insideReactTree)return void J();const n=(0,m.EW)(e),s=`[${(0,g.F)("inert")}]`,r=(0,l.vq)(n)?n.getRootNode():null,o=Array.from(((0,l.Ng)(r)?r:(0,i.R)(S.select("floatingElement"))).querySelectorAll(s)),a=S.context.triggerElements;if(n&&(a.hasElement(n)||a.hasMatchingElement(e=>(0,m.gR)(e,n))))return;let c=(0,l.vq)(n)?n:null;for(;c&&!(0,l.eu)(c);){const e=(0,l.$4)(c);if((0,l.eu)(e)||!(0,l.vq)(e))break;c=e}if(!o.length||!(0,l.vq)(n)||(0,f.tZ)(n)||(0,m.gR)(n,S.select("floatingElement"))||!o.every(e=>!(0,m.gR)(c,e))){if((0,l.sb)(n)&&!("touches"in e)){const t=(0,l.eu)(n),s=(0,l.L9)(n),r=/auto|scroll/,o=t||r.test(s.overflowX),i=t||r.test(s.overflowY),a=o&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=i&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,d="rtl"===s.direction,p=c&&(d?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),u=a&&e.offsetY>n.clientHeight;if(p||u)return}if(!k(e)){if("intentional"===b()){if(0!==e.detail&&!(0,v.YF)(e)&&!B.current)return;if(V.current)return t.clear(),void(V.current=!1)}("function"!=typeof z||z(e))&&(G("__outsidePressBubbles")||(S.setOpen(!1,(0,u.d)(h.Np,e)),J()))}}}function x(e){if("sloppy"!==b()||!S.select("open")||!n||Y(e))return;const t=e.touches[0];t&&(W.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},q.start(1e3,()=>{W.current&&(W.current.dismissOnTouchEnd=!1,W.current.dismissOnMouseDown=!1)}))}function j(e,t){const n=(0,m.EW)(e);if(!n)return;const s=(0,r.q)(n,e.type,()=>{t(e),s()})}function C(e){q.clear(),"pointerdown"===e.type&&(0===e.button&&(B.current=!0),$.current=e.pointerType),"mousedown"===e.type&&W.current&&!W.current.dismissOnMouseDown||j(e,e=>{"pointerdown"===e.type?function(e){"sloppy"===b()&&"touch"!==e.pointerType&&S.select("open")&&n&&!Y(e)&&_(e)}(e):_(e)})}function N(e){if("pointercancel"===e.type&&(B.current=!1),!F.current)return;const n=U.current;p(),"intentional"===b()&&("pointercancel"!==e.type?k(e)||(n?a():("function"!=typeof z||z(e))&&(t.clear(),V.current=!0,J())):n&&a())}function O(e){if("sloppy"!==b()||!W.current||Y(e))return;const t=e.touches[0];if(!t)return;const n=Math.abs(t.clientX-W.current.startX),s=Math.abs(t.clientY-W.current.startY),r=Math.sqrt(n*n+s*s);r>5&&(W.current.dismissOnTouchEnd=!0),r>10&&(_(e),q.clear(),W.current=null)}function D(e){"sloppy"===b()&&W.current&&!Y(e)&&(W.current.dismissOnTouchEnd&&_(e),q.clear(),W.current=null)}const K=(0,o.g)(y&&(0,o.g)((0,r.q)(s,"keydown",X),(0,r.q)(s,"compositionstart",function(){e.clear(),H.current=!0}),(0,r.q)(s,"compositionend",function(){e.start(d.Fp?5:0,()=>{H.current=!1})})),R&&(0,o.g)((0,r.q)(s,"click",C,!0),(0,r.q)(s,"pointerdown",C,!0),(0,r.q)(s,"pointerup",N,!0),(0,r.q)(s,"pointercancel",N,!0),(0,r.q)(s,"mousedown",C,!0),(0,r.q)(s,"mouseup",N,!0),(0,r.q)(s,"touchstart",function(e){$.current="touch",j(e,x)},{capture:!0,passive:!0}),(0,r.q)(s,"touchmove",function(e){j(e,O)},{capture:!0,passive:!0}),(0,r.q)(s,"touchend",function(e){j(e,D)},{capture:!0,passive:!0})));return()=>{K(),e.clear(),t.clear(),p(),V.current=!1,J()}},[M,E,y,R,z,A,n,P,L,X,J,I,G,Y,T,S,q]);const ne=s.useMemo(()=>({onKeyDown:X,onPointerDown:Z,onClick:Z}),[X,Z]),se=s.useMemo(()=>({onKeyDown:X,onPointerDown:te,onMouseDown:te,onClickCapture:Q,onMouseDownCapture(e){Q(),ee(e)},onPointerDownCapture(e){Q(),ee(e)},onMouseUpCapture:Q,onTouchEndCapture:Q,onTouchMoveCapture:Q}),[X,Q,ee,te]);return s.useMemo(()=>n?{reference:ne,floating:se,trigger:ne}:{},[n,ne,se])}},87515(e,t,n){"use strict";n.d(t,{r:()=>c});var s=n(51609),r=n(12002),o=n(10469),i=n(81289),a=n(88536);function c(e){return l(e,e.rootContext)}function l(e,t){const{nodeId:n,externalTree:c}=e,l=t.useState("referenceElement"),d=t.useState("floatingElement"),p=t.useState("domReferenceElement"),u=t.useState("open"),h=t.useState("floatingId"),[g,f]=s.useState(null),[m,v]=s.useState(void 0),[w,b]=s.useState(void 0),y=s.useRef(null),k=(0,a.cq)(c),_=s.useMemo(()=>({reference:l,floating:d,domReference:p}),[l,d,p]),x=(0,o.we)({...e,elements:{..._,...g&&{reference:g}}}),j=(0,i.vq)(m)?m:null,C=void 0===w?t.state.floatingElement:w;t.useSyncedValue("referenceElement",m??null),t.useSyncedValue("domReferenceElement",void 0===m?p:j),t.useSyncedValue("floatingElement",C);const S=s.useCallback(e=>{const t=(0,i.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),x.refs.setReference(t)},[x.refs]),A=s.useCallback(e=>{((0,i.vq)(e)||null===e)&&(y.current=e,v(e)),((0,i.vq)(x.refs.reference.current)||null===x.refs.reference.current||null!==e&&!(0,i.vq)(e))&&x.refs.setReference(e)},[x.refs,v]),E=s.useCallback(e=>{b(e),x.refs.setFloating(e)},[x.refs]),M=s.useMemo(()=>({...x.refs,setReference:A,setFloating:E,setPositionReference:S,domReference:y}),[x.refs,A,E,S]),N=s.useMemo(()=>({...x.elements,domReference:p}),[x.elements,p]),T=s.useMemo(()=>({...x,dataRef:t.context.dataRef,open:u,onOpenChange:t.setOpen,events:t.context.events,floatingId:h,refs:M,elements:N,nodeId:n,rootStore:t}),[x,M,N,n,t,u,h]);return(0,r.g)(()=>{p&&(y.current=p)},[p]),(0,r.g)(()=>{t.context.dataRef.current.floatingContext=T;const e=k?.nodesRef.current.find(e=>e.id===n);e&&(e.context=T)}),s.useMemo(()=>({...x,context:T,refs:M,elements:N,rootStore:t}),[x,M,N,T,t])}},755(e,t,n){"use strict";n.d(t,{i:()=>v});var s=n(51609),r=n(7584),o=n(94563),i=n(55087),a=n(31238),c=n(12240),l=n(63405),d=n(81289),p=n(50415),u=n(59879),h=n(90865),g=n(15351),f=n(64789);const m=o.Md&&i.Fp;function v(e,t={}){const{enabled:n=!0,delay:o}=t,i="rootStore"in e?e.rootStore:e,{events:v,dataRef:w}=i.context,b=s.useRef(!1),y=s.useRef(null),k=s.useRef(!0),_=(0,l.Z)();s.useEffect(()=>{const e=i.select("domReferenceElement");if(!n)return;const t=(0,d.zk)(e);return(0,a.g)((0,r.q)(t,"blur",function(){const e=i.select("domReferenceElement");!i.select("open")&&(0,d.sb)(e)&&e===(0,h.RS)((0,c.R)(e))&&(b.current=!0,y.current=e)}),m&&(0,r.q)(t,"keydown",function(){k.current=!0},!0),m&&(0,r.q)(t,"pointerdown",function(){k.current=!1},!0))},[i,n]),s.useEffect(()=>{if(n)return v.on("openchange",e),()=>{v.off("openchange",e)};function e(e){if(e.reason===f.Ui||e.reason===f.jv){const e=i.select("domReferenceElement");(0,d.vq)(e)&&(y.current=e,b.current=!0)}}},[v,n,i]);const x=s.useMemo(()=>{function e(){b.current=!1,y.current=null}return{onMouseLeave(){e()},onFocus(t){const n=t.currentTarget;if(b.current){if(y.current===n)return;e()}const s=(0,h.EW)(t.nativeEvent);if((0,d.vq)(s))if(m&&!t.relatedTarget){if(!k.current&&!(0,u.$u)(s))return}else if(!(0,u.em)(s))return;const r=(0,u.Hi)(t.relatedTarget,i.context.triggerElements),{nativeEvent:a,currentTarget:c}=t,l="function"==typeof o?o():o;i.select("open")&&r||0===l||void 0===l?i.setOpen(!0,(0,g.d)(f.F4,a,c)):_.start(l,()=>{b.current||i.setOpen(!0,(0,g.d)(f.F4,a,c))})},onBlur(t){e();const n=t.relatedTarget,s=t.nativeEvent,r=(0,d.vq)(n)&&n.hasAttribute((0,p.F)("focus-guard"))&&"outside"===n.getAttribute("data-type");_.start(0,()=>{const e=i.select("domReferenceElement"),t=(0,h.RS)((0,c.R)(e));if(!n&&t===e)return;if((0,h.gR)(w.current.floatingContext?.refs.floating.current,t)||(0,h.gR)(e,t)||r)return;const o=n??t;(0,u.Hi)(o,i.context.triggerElements)||i.setOpen(!1,(0,g.d)(f.F4,s))})}}},[w,o,i,_]);return s.useMemo(()=>n?{reference:x,trigger:x}:{},[n,x])}},10305(e,t,n){"use strict";n.d(t,{a:()=>b});var s=n(51609),r=n(7584),o=n(31238),i=n(12002),a=n(12240),c=n(19288),l=n(63405),d=n(81289),p=n(15351),u=n(64789),h=n(88536),g=n(90865),f=n(40612),m=n(2527),v=n(59879),w=n(98414);function b(e,t={}){const{enabled:n=!0,closeDelay:b=0,nodeId:y}=t,k="rootStore"in e?e.rootStore:e,_=k.useState("open"),x=k.useState("floatingElement"),j=k.useState("domReferenceElement"),{dataRef:C}=k.context,S=(0,h.cq)(),A=(0,h.R1)(),E=(0,m.uu)(k),M=(0,l.Z)(),N=(0,c.K)(()=>(0,w.GI)(C.current.openEvent?.type,E.interactedInside)),T=(0,c.K)(()=>(0,w.h$)(C.current.openEvent?.type)),O=(0,c.K)(()=>{(0,m.GH)(E)});(0,i.g)(()=>{_||(E.pointerType=void 0,E.restTimeoutPending=!1,E.interactedInside=!1,O())},[_,E,O]),s.useEffect(()=>O,[O]),(0,i.g)(()=>{if(n&&_&&E.handleCloseOptions?.blockPointerEvents&&T()&&(0,d.vq)(j)&&x){const e=j,t=x,n=(0,a.R)(x),s=S?.nodesRef.current.find(e=>e.id===A)?.context?.elements.floating;s&&(s.style.pointerEvents="");const r=E.pointerEventsScopeElement!==t?E.pointerEventsScopeElement:null,o=s!==t?s:null,i=E.handleCloseOptions?.getScope?.()??r??o??e.closest("[data-rootownerid]")??n.body;return(0,m.D8)(E,{scopeElement:i,referenceElement:e,floatingElement:t}),()=>{O()}}},[n,_,j,x,E,T,S,A,O]),s.useEffect(()=>{if(!n)return;function e(){return!!(S&&A&&(0,f.CM)(S.nodesRef.current,A).length>0)}function t(n){S&&A&&!e()&&M.start(0,()=>{S.events.off("floating.closed",t),k.setOpen(!1,(0,p.d)(u.N7,n)),S.events.emit("floating.closed",n)})}const s=x;return(0,o.g)(s&&(0,r.q)(s,"mouseenter",function(){E.openChangeTimeout.clear(),M.clear(),S?.events.off("floating.closed",t),O()}),s&&(0,r.q)(s,"mouseleave",function(n){if(e()&&S)return void S.events.on("floating.closed",t);if((0,v.Hi)(n.relatedTarget,k.context.triggerElements))return;const s=C.current.floatingContext?.nodeId??y,r=n.relatedTarget;S&&s&&(0,d.vq)(r)&&(0,f.CM)(S.nodesRef.current,s,!1).some(e=>(0,g.gR)(e.context?.elements.floating,r))||(E.handler?E.handler(n):(O(),T()&&!N()&&function(e){const t=(0,w.uf)(b,"close",E.pointerType),n=()=>{k.setOpen(!1,(0,p.d)(u.N7,e)),S?.events.emit("floating.closed",e)};t?E.openChangeTimeout.start(t,n):(E.openChangeTimeout.clear(),n())}(n)))}),s&&(0,r.q)(s,"pointerdown",function(e){const t=(0,g.EW)(e);(0,v.H5)(t)?E.interactedInside=null!=t?.closest("[aria-haspopup]"):E.interactedInside=!1},!0),()=>{S?.events.off("floating.closed",t)})},[n,x,k,C,b,y,T,N,O,E,S,A,M])}},2527(e,t,n){"use strict";n.d(t,{D8:()=>l,GH:()=>c,uu:()=>d});var s=n(31966),r=n(31749),o=n(63405);class i{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new o.E,this.restTimeout=new o.E,this.handleCloseOptions=void 0}static create(){return new i}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}const a=new WeakMap;function c(e){if(!e.performedPointerEventsMutation)return;const t=e.pointerEventsScopeElement;t&&a.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),a.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function l(e,t){const{scopeElement:n,referenceElement:s,floatingElement:r}=t,o=a.get(n);o&&o!==e&&c(o),c(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=s,e.pointerEventsFloatingElement=r,a.set(n,e),n.style.pointerEvents="none",s.style.pointerEvents="auto",r.style.pointerEvents="auto"}function d(e){const t=e.context.dataRef.current,n=(0,r.j)(()=>t.hoverInteractionState??i.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=n),(0,s.y)(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}},27484(e,t,n){"use strict";n.d(t,{j:()=>y});var s=n(51609),r=n(75795),o=n(7584),i=n(31238),a=n(12240),c=n(19288),l=n(87946),d=n(81289),p=n(15351),u=n(64789),h=n(88536),g=n(90865),f=n(26559),m=n(2527),v=n(98414),w=n(59879);const b={current:null};function y(e,t={}){const{enabled:n=!0,delay:y=0,handleClose:k=null,mouseOnly:_=!1,restMs:x=0,move:j=!0,triggerElementRef:C=b,externalTree:S,isActiveTrigger:A=!0,getHandleCloseContext:E,isClosing:M,shouldOpen:N,guardStaleOpen:T=!1}=t,O="rootStore"in e?e.rootStore:e,{dataRef:z,events:R}=O.context,I=(0,h.cq)(S),P=(0,m.uu)(O),L=s.useRef(!1),D=(0,l.u)(k),F=(0,l.u)(y),U=(0,l.u)(x),V=(0,l.u)(n),B=(0,l.u)(N),H=(0,l.u)(M),$=(0,c.K)(()=>(0,v.GI)(z.current.openEvent?.type,P.interactedInside)),W=(0,c.K)(()=>!1!==B.current?.()),q=(0,c.K)((e,t,n)=>{const s=O.context.triggerElements;if(s.hasElement(t))return!e||!(0,g.gR)(e,t);if(!(0,d.vq)(n))return!1;const r=n;return s.hasMatchingElement(e=>(0,g.gR)(e,r))&&(!e||!(0,g.gR)(e,r))}),K=(0,c.K)(()=>{if(!P.handler)return;(0,a.R)(O.select("domReferenceElement")).removeEventListener("mousemove",P.handler),P.handler=void 0}),J=(0,c.K)(()=>{(0,m.GH)(P)});return A&&(P.handleCloseOptions=k?.__options),s.useEffect(()=>K,[K]),s.useEffect(()=>{if(n)return R.on("openchange",e),()=>{R.off("openchange",e)};function e(e){e.open?L.current=!1:(L.current=e.reason===u.N7,K(),P.openChangeTimeout.clear(),P.restTimeout.clear(),P.blockMouseMove=!0,P.restTimeoutPending=!1)}},[n,R,P,K]),s.useEffect(()=>{if(!n)return;function e(e,t=!0){const n=(0,v.uf)(F.current,"close",P.pointerType);n?P.openChangeTimeout.start(n,()=>{O.setOpen(!1,(0,p.d)(u.N7,e)),I?.events.emit("floating.closed",e)}):t&&(P.openChangeTimeout.clear(),O.setOpen(!1,(0,p.d)(u.N7,e)),I?.events.emit("floating.closed",e))}const t=C.current??(A?O.select("domReferenceElement"):null);if(!(0,d.vq)(t))return;function s(e){if(P.openChangeTimeout.clear(),P.blockMouseMove=!1,_&&!(0,f.Go)(P.pointerType))return;const t=(0,v.hq)(U.current),n=(0,v.uf)(F.current,"open",P.pointerType),s=(0,g.EW)(e),r=e.currentTarget??null,o=O.select("domReferenceElement");let i=r;if((0,d.vq)(s)&&!O.context.triggerElements.hasElement(s))for(const e of O.context.triggerElements.elements())if((0,g.gR)(e,s)){i=e;break}(0,d.vq)(r)&&(0,d.vq)(o)&&!O.context.triggerElements.hasElement(r)&&(0,g.gR)(r,o)&&(i=o);const a=null!=i&&q(o,i,s),c=O.select("open"),l=H.current?.()??"ending"===O.select("transitionStatus"),h=!c&&l&&L.current,m=!a&&(0,d.vq)(i)&&(0,d.vq)(o)&&(0,g.gR)(o,i)&&h,w=t>0&&!n,b=!c||a;a&&(c||h)||m?W()&&O.setOpen(!0,(0,p.d)(u.N7,e,i)):w||(n?P.openChangeTimeout.start(n,()=>{b&&W()&&O.setOpen(!0,(0,p.d)(u.N7,e,i))}):b&&W()&&O.setOpen(!0,(0,p.d)(u.N7,e,i)))}function r(t){if($())return void J();K();const n=O.select("domReferenceElement"),s=(0,a.R)(n);P.restTimeout.clear(),P.restTimeoutPending=!1;const r=z.current.floatingContext??E?.();if((0,w.Hi)(t.relatedTarget,O.context.triggerElements))return;if(D.current&&r){O.select("open")||P.openChangeTimeout.clear();const n=C.current;return P.handler=D.current({...r,tree:I,x:t.clientX,y:t.clientY,onClose(){J(),K(),V.current&&!$()&&n===O.select("domReferenceElement")&&e(t,!0)}}),s.addEventListener("mousemove",P.handler),void P.handler(t)}("touch"!==P.pointerType||!(0,g.gR)(O.select("floatingElement"),t.relatedTarget))&&e(t)}const c=T?(0,o.q)(t,"mouseout",function(e){(0,g.gR)(t,e.relatedTarget)||(P.openChangeTimeout.clear(),P.restTimeout.clear(),P.restTimeoutPending=!1)}):void 0;return j?(0,i.g)((0,o.q)(t,"mousemove",s,{once:!0}),(0,o.q)(t,"mouseenter",s),(0,o.q)(t,"mouseleave",r),c):(0,i.g)((0,o.q)(t,"mouseenter",s),(0,o.q)(t,"mouseleave",r),c)},[K,J,z,F,O,n,D,P,A,q,$,_,j,U,C,I,V,E,H,W,T]),s.useMemo(()=>{if(n)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e,n=e.currentTarget,s=O.select("domReferenceElement"),o=O.select("open"),i=q(s,n,e.target);if(_&&!(0,f.Go)(P.pointerType))return;if(o&&i&&P.handleCloseOptions?.blockPointerEvents){const e=O.select("floatingElement");if(e){const t=P.handleCloseOptions?.getScope?.()??n.ownerDocument.body;(0,m.D8)(P,{scopeElement:t,referenceElement:n,floatingElement:e})}}const a=(0,v.hq)(U.current);function c(){if(P.restTimeoutPending=!1,$())return;const e=O.select("open");P.blockMouseMove||e&&!i||!W()||O.setOpen(!0,(0,p.d)(u.N7,t,n))}o&&!i||0===a||!i&&P.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(P.restTimeout.clear(),"touch"===P.pointerType?r.flushSync(()=>{c()}):i&&o?c():(P.restTimeoutPending=!0,P.restTimeout.start(a,c)))}};function e(e){P.pointerType=e.pointerType}},[n,P,$,q,_,O,U,W])}},98414(e,t,n){"use strict";n.d(t,{GI:()=>i,h$:()=>a,hq:()=>o,uf:()=>r});var s=n(26559);function r(e,t,n){const r=function(e,t){return null==t||(0,s.Go)(t)?"function"==typeof e?e():e:0}(e,n);return"number"==typeof r?r:r?.[t]}function o(e){return"function"==typeof e?e():e}function i(e,t){return t||"click"===e||"mousedown"===e}function a(e){return e?.includes("mouse")&&"mousedown"!==e}},50306(e,t,n){"use strict";n.d(t,{D:()=>a});var s=n(51609),r=n(12002),o=n(81289),i=n(33367);function a(e){const{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:a,floatingId:c,nested:l,onOpenChange:d}=e,p=t.useState("open"),u=t.useState("activeTriggerElement"),h=t.useState(n?"popupElement":"positionerElement"),g=t.context.triggerElements,f=d,m=s.useRef(null);void 0===a&&null===m.current&&(m.current=new i.K({open:p,transitionStatus:void 0,referenceElement:u,floatingElement:h,triggerElements:g,onOpenChange:f,floatingId:c,syncOnly:!0,nested:l}));const v=a??m.current;return t.useSyncedValue("floatingId",c),(0,r.g)(()=>{const e={open:p,floatingId:c,referenceElement:u,floatingElement:h};(0,o.vq)(u)&&(e.domReferenceElement=u),v.state.positionReference===v.state.referenceElement&&(e.positionReference=u),v.update(e)},[p,c,u,h,v]),v.context.onOpenChange=f,v.context.nested=l,v}},76521(e,t,n){"use strict";n.d(t,{U:()=>r});var s=n(39175);const r=(e,t)=>{const{name:n,fn:r}=(e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:l}=t,{element:d,padding:p=0,offsetParent:u="real"}=(0,s._3)(e,t)||{};if(null==d)return{};const h=(0,s.nI)(p),g={x:n,y:r},f=(0,s.Dz)(o),m=(0,s.sq)(f),v=await a.getDimensions(d),w="y"===f,b=w?"top":"left",y=w?"bottom":"right",k=w?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[f]-g[f]-i.floating[m],x=g[f]-i.reference[f],j="real"===u?await(a.getOffsetParent?.(d)):c.floating;let C=c.floating[k]||i.floating[m];C&&await(a.isElement?.(j))||(C=c.floating[k]||i.floating[m]);const S=_/2-x/2,A=C/2-v[m]/2-1,E=Math.min(h[b],A),M=Math.min(h[y],A),N=E,T=C-v[m]-M,O=C/2-v[m]/2+S,z=(0,s.qE)(N,O,T),R=!l.arrow&&null!=(0,s.Sg)(o)&&O!==z&&i.reference[m]/2-(O<N?E:M)-v[m]/2<0,I=R?O<N?O-N:O-T:0;return{[f]:g[f]+I,data:{[f]:z,centerOffset:O-z-I,...R&&{alignmentOffset:I}},reset:R}}}))(e);return{name:n,fn:r,options:[e,t]}}},53734(e,t,n){"use strict";n.d(t,{i:()=>u});var s=n(81289),r=n(63405),o=n(90865),i=n(40612);const a=.1*.1,c=.5;function l(e,t,n,s,r,o){return s>=t!=o>=t&&e<=(r-n)*(t-s)/(o-s)+n}function d(e,t,n,s,r,o,i,a,c,d){let p=!1;return l(e,t,n,s,r,o)&&(p=!p),l(e,t,r,o,i,a)&&(p=!p),l(e,t,i,a,c,d)&&(p=!p),l(e,t,c,d,n,s)&&(p=!p),p}function p(e,t,n,s,r,o){const i=Math.min(n,r),a=Math.max(n,r),c=Math.min(s,o),l=Math.max(s,o);return e>=i&&e<=a&&t>=c&&t<=l}function u(e={}){const{blockPointerEvents:t=!1}=e,n=new r.E,l=({x:e,y:t,placement:r,elements:l,onClose:u,nodeId:h,tree:g})=>{const f=r?.split("-")[0];let m=!1,v=null,w=null,b="undefined"!=typeof performance?performance.now():0;return function(r){n.clear();const y=l.domReference,k=l.floating;if(!y||!k||null==f||null==e||null==t)return;const{clientX:_,clientY:x}=r,j=(0,o.EW)(r),C="mouseleave"===r.type,S=(0,o.gR)(k,j),A=(0,o.gR)(y,j);if(S&&(m=!0,!C))return;if(A&&(m=!1,!C))return void(m=!0);if(C&&(0,s.vq)(r.relatedTarget)&&(0,o.gR)(k,r.relatedTarget))return;function E(){return Boolean(g&&(0,i.CM)(g.nodesRef.current,h).length>0)}function M(){E()||(n.clear(),u())}if(E())return;const N=y.getBoundingClientRect(),T=k.getBoundingClientRect(),O=e>T.right-T.width/2,z=t>T.bottom-T.height/2,R=T.width>N.width,I=T.height>N.height,P=(R?N:T).left,L=(R?N:T).right,D=(I?N:T).top,F=(I?N:T).bottom;if("top"===f&&t>=N.bottom-1||"bottom"===f&&t<=N.top+1||"left"===f&&e>=N.right-1||"right"===f&&e<=N.left+1)return void M();let U=!1;switch(f){case"top":U=p(_,x,P,N.top+1,L,T.bottom-1);break;case"bottom":U=p(_,x,P,T.top+1,L,N.bottom-1);break;case"left":U=p(_,x,T.right-1,F,N.left+1,D);break;case"right":U=p(_,x,N.right-1,F,T.left+1,D)}if(U)return;if(m&&!function(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}(_,x,N))return void M();if(!C&&function(e,t){const n=performance.now(),s=n-b;if(null===v||null===w||0===s)return v=e,w=t,b=n,!1;const r=e-v,o=t-w;return v=e,w=t,b=n,r*r+o*o<s*s*a}(_,x))return void M();let V=!1;switch(f){case"top":{const n=R?.25:2,s=R||O?e+n:e-n,r=R?e-n:O?e+n:e-n,o=t+c+1,i=O||R?T.bottom-c:T.top,a=O?R?T.bottom-c:T.top:T.bottom-c;V=d(_,x,s,o,r,o,T.left,i,T.right,a);break}case"bottom":{const n=R?.25:2,s=R||O?e+n:e-n,r=R?e-n:O?e+n:e-n,o=t-c,i=O||R?T.top+c:T.bottom,a=O?R?T.top+c:T.bottom:T.top+c;V=d(_,x,s,o,r,o,T.left,i,T.right,a);break}case"left":{const n=I?.25:2,s=I||z?t+n:t-n,r=I?t-n:z?t+n:t-n,o=e+c+1,i=z||I?T.right-c:T.left,a=z?I?T.right-c:T.left:T.right-c;V=d(_,x,i,T.top,a,T.bottom,o,s,o,r);break}case"right":{const n=I?.25:2,s=I||z?t+n:t-n,r=I?t-n:z?t+n:t-n,o=e-c,i=z||I?T.left+c:T.right,a=z?I?T.left+c:T.right:T.left+c;V=d(_,x,o,s,o,r,i,T.top,a,T.bottom);break}}V?m||n.start(40,M):M()}};return l.__options={...e,blockPointerEvents:t},l}},63214(e,t,n){"use strict";n.d(t,{BF:()=>a,FP:()=>c,Zb:()=>o,du:()=>r,vB:()=>i});var s=n(81289);function r(e,t){return t<0||t>=e.length}function o(e,t){return a(e.current,{disabledIndices:t})}function i(e,t){return a(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function a(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:s,amount:r=1}={}){let o=t;do{o+=n?-r:r}while(o>=0&&o<=e.length-1&&c(e,o,s));return o}function c(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;const r=e[t];return!!r&&(!function(e,t=(e?(0,s.L9)(e):null)){if(!e||!e.isConnected||!t||function(e){return"hidden"===e.visibility||"collapse"===e.visibility}(t))return!1;if("function"==typeof e.checkVisibility)return e.checkVisibility();return"none"!==t.display&&"contents"!==t.display}(r)||(!!r.matches(":disabled")||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled"))))}},17300(e,t,n){"use strict";n.d(t,{BT:()=>r,Ed:()=>s});const s="data-base-ui-focusable",r="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"},50415(e,t,n){"use strict";function s(e){return`data-base-ui-${e}`}n.d(t,{F:()=>s})},16703(e,t,n){"use strict";function s(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}n.d(t,{d:()=>s})},59879(e,t,n){"use strict";n.d(t,{$u:()=>p,F2:()=>l,H5:()=>u,Hi:()=>c,em:()=>h,tZ:()=>d});var s=n(81289),r=n(78858),o=n(90865),i=n(17300),a=n(93918);function c(e,t){if(!(0,s.vq)(e))return!1;const n=e;if(t.hasElement(n))return!n.hasAttribute(a.d);for(const[,e]of t.entries())if((0,o.gR)(e,n))return!e.hasAttribute(a.d);return!1}function l(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function d(e){return e.matches("html,body")}function p(e){return(0,s.sb)(e)&&e.matches(i.BT)}function u(e){return null!=e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${i.BT}`)}function h(e){if(!e||r.I)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}},26559(e,t,n){"use strict";n.d(t,{Ev:()=>a,Go:()=>i,O_:()=>r,YF:()=>o});var s=n(94563);function r(e){return"nativeEvent"in e}function o(e){return!(""!==e.pointerType||!e.isTrusted)||(s.yA&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function i(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function a(e){const t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t}},40612(e,t,n){"use strict";function s(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...s(e,t.id,n)])}n.d(t,{CM:()=>s})},35282(e,t,n){"use strict";n.d(t,{R:()=>i});n(51609);var s=n(91276),r=n(67312),o=n(10790);function i(e){const{script:t}=e,{nonce:n}=(0,r.n)();return(0,s.i)()?(0,o.jsx)("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}},14684(e,t,n){"use strict";n.d(t,{V:()=>r,e:()=>s});const s="data-starting-style",r="data-ending-style"},89309(e,t,n){"use strict";n.d(t,{$v:()=>h,Jd:()=>o,Kp:()=>l,Qi:()=>u,RJ:()=>a,eR:()=>i,il:()=>r,jF:()=>d,rT:()=>p,yZ:()=>c});var s=n(81289);const r="ArrowUp",o="ArrowDown",i="ArrowLeft",a="ArrowRight",c="Home",l="End",d=new Set([r,o,i,a,c,l]),p=["Shift","Control","Alt","Meta"];function u(e){return!(!function(e){return(0,s.sb)(e)&&"INPUT"===e.tagName}(e)||null==e.selectionStart)||!(!(0,s.sb)(e)||"TEXTAREA"!==e.tagName)}function h(e,t,n,s){if(!e||!t||!t.scrollTo)return;let r=e.scrollLeft,o=e.scrollTop;const i=e.clientWidth<e.scrollWidth,a=e.clientHeight<e.scrollHeight;if(i&&"vertical"!==s){const s=g(e,t,"left"),o=f(e),i=f(t);"ltr"===n&&(s+t.offsetWidth+i.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight?r=s+t.offsetWidth+i.scrollMarginRight-e.clientWidth+o.scrollPaddingRight:s-i.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft&&(r=s-i.scrollMarginLeft-o.scrollPaddingLeft)),"rtl"===n&&(s-i.scrollMarginLeft<e.scrollLeft+o.scrollPaddingLeft?r=s-i.scrollMarginLeft-o.scrollPaddingLeft:s+t.offsetWidth+i.scrollMarginRight>e.scrollLeft+e.clientWidth-o.scrollPaddingRight&&(r=s+t.offsetWidth+i.scrollMarginRight-e.clientWidth+o.scrollPaddingRight))}if(a&&"horizontal"!==s){const n=g(e,t,"top"),s=f(e),r=f(t);n-r.scrollMarginTop<e.scrollTop+s.scrollPaddingTop?o=n-r.scrollMarginTop-s.scrollPaddingTop:n+t.offsetHeight+r.scrollMarginBottom>e.scrollTop+e.clientHeight-s.scrollPaddingBottom&&(o=n+t.offsetHeight+r.scrollMarginBottom-e.clientHeight+s.scrollPaddingBottom)}e.scrollTo({left:r,top:o,behavior:"auto"})}function g(e,t,n){const s="left"===n?"offsetLeft":"offsetTop";let r=0;for(;t.offsetParent&&(r+=t[s],t.offsetParent!==e);)t=t.offsetParent;return r}function f(e){const t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}},66791(e,t,n){"use strict";n.d(t,{h:()=>s});const s="data-composite-item-active"},61727(e,t,n){"use strict";n.d(t,{k:()=>a});var s=n(51609),r=n(8970),o=n(1265),i=n(89564);function a(e={}){const{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:a}=(0,o.G)(),{ref:c,index:l}=(0,i.q)(e),d=n===l,p=s.useRef(null),u=(0,r.a)(c,p);return{compositeProps:{tabIndex:d?0:-1,onFocus(){a(l)},onMouseMove(){const e=p.current;if(!t||!e)return;const n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;d||n||e.focus()}},compositeRef:u,index:l}}},61008(e,t,n){"use strict";n.d(t,{u:()=>l});var s=n(51609),r=n(31749),o=n(19288),i=n(12002),a=n(18793),c=n(10790);function l(e){const{children:t,elementsRef:n,labelsRef:l,onMapChange:g}=e,f=(0,o.K)(g),[,m]=s.useState(!1),v=(0,r.j)(p).current,w=(0,r.j)(d).current,b=s.useRef(0),y=s.useRef(!0),k=s.useRef(null),_=s.useRef(null),x=(0,o.K)(()=>{y.current||(y.current=!0,m(e=>!e))}),j=(0,o.K)((e,t)=>{w.set(e,t),x()}),C=(0,o.K)(e=>{w.delete(e),x()}),S=(0,o.K)(e=>{const t=new Map;return n.current.length=0,l&&(l.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,l&&(l.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),b.current=n.current.length,t});const A=(0,o.K)(()=>{const[e,t]=function(e){const t=new Set,n=[],s=[];e.forEach((e,r)=>{if(!r.isConnected)return;const o=e.index,i={index:o??-1,element:r,registration:e};null===o?s.push(i):o>=0&&(t.add(o),n.push(i))});let r=0;s.sort((e,t)=>h(e.element,t.element)),s.forEach(e=>{for(;t.has(r);)r+=1;e.index=r,n.push(e),r+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index);return[n,s.map(e=>e.element)]}(w),n=S(e),s=k.current,r=!s||s.length!==e.length||e.some((e,t)=>{const n=s[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});!function(e){if(_.current?.disconnect(),_.current=null,"function"!=typeof MutationObserver||e.length<2)return;const t=new MutationObserver(n=>{if(!function(e){for(const t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(n))return;let s=null;for(const n of e)if(n.isConnected){if(s&&h(s,n)>0)return t.disconnect(),void x();s=n}});_.current=t;const n=new Set;for(let t=1;t<e.length;t+=1){const s=u(e[t-1],e[t]);s&&n.add(s)}n.forEach(e=>t.observe(e,{childList:!0}))}(t),k.current=e,y.current=!1,r&&(v.forEach(e=>e(n)),f(n))});(0,i.g)(()=>(!y.current&&k.current&&S(k.current),()=>{n.current=[],l&&(l.current=[])}),[n,l,S]),(0,i.g)(()=>{y.current&&A()}),(0,i.g)(()=>()=>{_.current?.disconnect(),y.current=!0},[]);const E=(0,o.K)(e=>(v.add(e),()=>{v.delete(e)})),M=s.useMemo(()=>({register:j,unregister:C,subscribeMapChange:E,nextIndexRef:b}),[j,C,E,b]);return(0,c.jsx)(a.D.Provider,{value:M,children:t})}function d(){return new Map}function p(){return new Set}function u(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function h(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}},18793(e,t,n){"use strict";n.d(t,{D:()=>r,M:()=>o});var s=n(51609);const r=s.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function o(){return s.useContext(r)}},89564(e,t,n){"use strict";n.d(t,{q:()=>i});var s=n(51609),r=n(12002),o=n(18793);function i(e={}){const{guess:t,label:n,metadata:i,textRef:a,index:c}=e,{register:l,unregister:d,subscribeMapChange:p,nextIndexRef:u}=(0,o.M)(),h=s.useRef(-1),[g,f]=s.useState(null==c&&t?()=>{if(-1===h.current){const e=u.current;u.current+=1,h.current=e}return h.current}:-1),m=c??g,v=s.useRef(null),w=s.useCallback(e=>{const t=v.current;t&&d(t),v.current=e,e&&l(e,{metadata:i??null,index:c??null,label:n,textRef:a})},[c,l,d,i,n,a]);return(0,r.g)(()=>{if(null==c)return p(e=>{const t=v.current?e.get(v.current)?.index:null;null!=t&&f(t)})},[c,p]),{ref:w,index:m}}},56120(e,t,n){"use strict";n.d(t,{Y:()=>p});var s=n(51609),r=n(12570),o=n(61008),i=n(55661),a=n(1265),c=n(15688),l=n(98596),d=n(10790);function p(e){const{render:t,className:n,style:p,refs:u=r.Ml,props:h=r.Ml,state:g=r.t0,stateAttributesMapping:f,highlightedIndex:m,onHighlightedIndexChange:v,orientation:w,grid:b,loopFocus:y,onLoop:k,enableHomeAndEndKeys:_,onMapChange:x,stopEventPropagation:j=!0,rootRef:C,disabledIndices:S,modifierKeys:A,highlightItemOnHover:E=!1,tag:M="div",...N}=e,T=(0,l.j)(),{props:O,highlightedIndex:z,onHighlightedIndexChange:R,elementsRef:I,onMapChange:P,relayKeyboardEvent:L}=(0,i.R)({grid:b,loopFocus:y,onLoop:k,orientation:w,highlightedIndex:m,onHighlightedIndexChange:v,rootRef:C,stopEventPropagation:j,enableHomeAndEndKeys:_,direction:T,disabledIndices:S,modifierKeys:A}),D=(0,c.o)(M,e,{state:g,ref:u,props:[O,...h,N],stateAttributesMapping:f}),F=s.useMemo(()=>({highlightedIndex:z,onHighlightedIndexChange:R,highlightItemOnHover:E,relayKeyboardEvent:L}),[z,R,E,L]);return(0,d.jsx)(a.H.Provider,{value:F,children:(0,d.jsx)(o.u,{elementsRef:I,onMapChange:e=>{x?.(e),P(e)},children:D})})}},1265(e,t,n){"use strict";n.d(t,{G:()=>i,H:()=>o});var s=n(53169),r=n(51609);const o=r.createContext(void 0);function i(e=!1){const t=r.useContext(o);if(void 0===t&&!e)throw new Error((0,s.A)(16));return t}},55661(e,t,n){"use strict";n.d(t,{R:()=>h});var s=n(51609),r=n(16105),o=n(19288),i=n(8970),a=n(12002),c=n(12570),l=n(89309),d=n(63214),p=n(66791),u=n(90865);function h(e){const{loopFocus:t=!0,orientation:n="both",grid:h,onLoop:g,direction:f,highlightedIndex:m,onHighlightedIndexChange:v,rootRef:w,enableHomeAndEndKeys:b=!1,stopEventPropagation:y,disabledIndices:k,modifierKeys:_=c.Ml}=e,[x,j]=s.useState(0),C=null!=h,S=s.useRef(null),A=(0,i.a)(S,w),E=s.useRef([]),M=s.useRef(!1),N=s.useRef(null),T=m??x,O=(0,o.K)((e,t=!1)=>{if(N.current=E.current[e]??null,(v??j)(e),t){const t=E.current[e];(0,l.$v)(S.current,t,f,n)}}),z=(0,o.K)(e=>{if(0===e.size)return;if(M.current){const e=E.current,t=e.indexOf(N.current);if(-1===t){const t=e[T];!t||(0,d.FP)(e,T,k)?O(function(e,t){let n=-1;for(let s=0;s<e.length;s+=1){const r=e[s];if(r&&!(0,d.FP)(e,s,t)){if(r.hasAttribute(p.h))return s;-1===n&&(n=s)}}return Math.max(n,0)}(e,k)):N.current=t}else t!==T&&O(t);return}M.current=!0;const t=Array.from(e.keys()),s=t.find(e=>e?.hasAttribute(p.h))??null,r=s?e.get(s)?.index??-1:-1;if(-1!==r)O(r);else if((0,d.FP)(t,T,k)){const e=(0,d.BF)(t,{disabledIndices:k});(0,d.du)(t,e)||O(e)}(0,l.$v)(S.current,s,f,n)});(0,a.g)(()=>{if(null==k||null!=m||!M.current)return;const e=E.current;if((0,d.FP)(e,T,k)){const t=(0,d.BF)(e,{disabledIndices:k});(0,d.du)(e,t)||O(t)}},[k,m,T,E,O]);const R=(0,o.K)((e,t,n)=>g?g(e,t,n,E):n),I=(0,o.K)(e=>{const s=e.key===l.yZ||e.key===l.Kp;if(!l.jF.has(e.key)||!b&&s)return;if(function(e,t){for(const n of l.rT)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,_))return;if(!S.current)return;const o="rtl"===f,i=o?l.eR:l.RJ,a=o?l.RJ:l.eR,c="vertical"===n?l.Jd:i,p="vertical"===n?l.il:a,m=(0,u.EW)(e.nativeEvent);if(null!=m&&(0,l.Qi)(m)&&!(0,r.F)(m)){const t=m.selectionStart,n=m.selectionEnd,s=m.value;if(null==t||e.shiftKey||t!==n)return;if(e.key!==p&&t<s.length)return;if(e.key!==c&&t>0)return}let v=T;const w=(0,d.Zb)(E,k),x=(0,d.vB)(E,k);null!=h&&(v=h({disabledIndices:k,elementsRef:E,event:e,highlightedIndex:T,loopFocus:t,maxIndex:x,minIndex:w,onLoop:R,orientation:n,rtl:o}));const j="vertical"!==n&&e.key===i||"horizontal"!==n&&e.key===l.Jd,A="vertical"!==n&&e.key===a||"horizontal"!==n&&e.key===l.il;b&&(e.key===l.yZ?v=w:e.key===l.Kp&&(v=x)),v===T&&(j||A)&&(t&&v===x&&j?(v=w,g&&(v=g(e,T,v,E))):t&&v===w&&A?(v=x,g&&(v=g(e,T,v,E))):v=(0,d.BF)(E.current,{startingIndex:v,decrement:A,disabledIndices:k})),v===T||(0,d.du)(E.current,v)||(y&&e.stopPropagation(),(C||s||j||A)&&e.preventDefault(),O(v,!0),queueMicrotask(()=>{E.current[v]?.focus()}))});return{props:{ref:A,onFocus(e){const t=S.current,n=(0,u.EW)(e.nativeEvent);t&&null!=n&&(0,l.Qi)(n)&&n.setSelectionRange(0,n.value.length)},onKeyDown:I},highlightedIndex:T,onHighlightedIndexChange:O,elementsRef:E,onMapChange:z,relayKeyboardEvent:I}}},71031(e,t,n){"use strict";n.d(t,{K2:()=>s,Pe:()=>r});const s={style:{transition:"none"}},r={fallbackAxisSide:"end"}},15351(e,t,n){"use strict";n.d(t,{d:()=>r});var s=n(12570);function r(e,t,n,r){let o=!1,i=!1;const a=r??s.t0;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...a}}},67312(e,t,n){"use strict";n.d(t,{n:()=>i});var s=n(51609);const r=s.createContext(void 0);const o={disableStyleElements:!1};function i(){return s.useContext(r)??o}},98596(e,t,n){"use strict";n.d(t,{j:()=>o,l:()=>r});var s=n(51609);const r=s.createContext(void 0);function o(){const e=s.useContext(r);return e?.direction??"ltr"}},95400(e,t,n){"use strict";n.d(t,{d:()=>o});var s=n(12570),r=n(71031);function o(e){return"starting"===e?r.K2:s.t0}},37885(e,t,n){"use strict";function s(e,t){const n={};for(const s in e){const r=e[s];if(t?.hasOwnProperty(s)){const e=t[s](r);null!=e&&Object.assign(n,e);continue}!0===r?n[`data-${s.toLowerCase()}`]="":r&&(n[`data-${s.toLowerCase()}`]=r.toString())}return n}n.d(t,{v:()=>s})},71272(e,t,n){"use strict";n.d(t,{K:()=>s});const s=""},64789(e,t,n){"use strict";n.d(t,{F4:()=>i,N7:()=>o,Np:()=>a,Ui:()=>r,Vh:()=>p,c:()=>d,dv:()=>s,jv:()=>c,r9:()=>l,zJ:()=>u});const s="none",r="trigger-press",o="trigger-hover",i="trigger-focus",a="outside-press",c="escape-key",l="disabled",d="missing",p="initial",u="imperative-action"},74466(e,t,n){"use strict";n.d(t,{G:()=>i});var s=n(14684);const r={[s.e]:""},o={[s.V]:""},i={transitionStatus:e=>"starting"===e?r:"ending"===e?o:null}},18762(e,t,n){"use strict";n.d(t,{s:()=>p});var s=n(51609),r=n(81289),o=n(19288),i=n(12002),a=n(67720),c=n(1265),l=n(56200),d=n(2095);function p(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:p=0,native:h=!0,composite:g}=e,f=s.useRef(null),m=(0,c.G)(!0),v=g??void 0!==m,{props:w}=(0,l.S)({focusableWhenDisabled:n,disabled:t,composite:v,tabIndex:p,isNativeButton:h});const b=s.useCallback(()=>{const e=f.current;u(e)&&v&&t&&void 0===w.disabled&&e.disabled&&(e.disabled=!1)},[t,w.disabled,v]);(0,i.g)(b,[b]);return{getButtonProps:s.useCallback((e={})=>{const{onClick:n,onMouseDown:s,onKeyUp:o,onKeyDown:i,onPointerDown:c,...l}=e;return(0,a.v6)({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||s?.(e)},onKeyDown(e){if(t)return;if((0,a.PT)(e),i?.(e),e.baseUIHandlerPrevented)return;const n=e.target===e.currentTarget,s=e.currentTarget,o=u(s),c=!h&&(l=s,(0,r.sb)(l)&&"A"===l.tagName&&Boolean(l.href));var l;const p=n&&(h?o:!c),g="Enter"===e.key,f=" "===e.key,m=s.getAttribute("role"),w=m?.startsWith("menuitem")||"option"===m||"gridcell"===m;if(n&&v&&f){if(e.defaultPrevented&&w)return;return e.preventDefault(),void(h&&!o||(e.preventBaseUIHandler(),(0,d.B)(s,e)))}p&&!h&&(f||g)?e.defaultPrevented||(e.preventDefault(),g&&(e.preventBaseUIHandler(),(0,d.B)(s,e))):n&&c&&f&&e.preventDefault()},onKeyUp(e){t||((0,a.PT)(e),o?.(e),e.target===e.currentTarget&&h&&v&&u(e.currentTarget)&&" "===e.key?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||h||v||e.defaultPrevented||" "!==e.key||(e.preventBaseUIHandler(),(0,d.B)(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():c?.(e)}},h?{type:"button"}:{role:"button"},w,l)},[t,w,v,h]),buttonRef:(0,o.K)(e=>{f.current=e,b()})}}function u(e){return(0,r.sb)(e)&&"BUTTON"===e.tagName}},99237(e,t,n){"use strict";n.d(t,{s:()=>_});var s=n(51609),r=n(39175),o=n(12240),i=n(81289),a=n(12002),c=n(87946),l=n(19288),d=n(25569),p=n(10469),u=n(87515),h=n(98596),g=n(76521),f=n(439),m=n(52046),v=n(23371);const w=v.QJ,b=v.px;function y(e,t,n){const s="inline-start"===e||"inline-end"===e;return{top:"top",right:s?n?"inline-start":"inline-end":"right",bottom:"bottom",left:s?n?"inline-end":"inline-start":"left"}[t]}function k(e,t,n){const{rects:s,placement:o}=e;return{side:y(t,(0,r.C0)(o),n),align:(0,r.Sg)(o)||"center",anchor:{width:s.reference.width,height:s.reference.height},positioner:{width:s.floating.width,height:s.floating.height}}}function _(e){return function(e,t){const{anchor:n,positionMethod:u="absolute",side:_="bottom",sideOffset:j=0,align:C="center",alignOffset:S=0,collisionBoundary:A,collisionPadding:E=5,sticky:M=!1,arrowPadding:N=5,disableAnchorTracking:T=!1,inline:O,keepMounted:z=!1,floatingRootContext:R,mounted:I,collisionAvoidance:P,shift:L,nodeId:D,adaptiveOrigin:F,lazyFlip:U=!1,externalTree:V}=e,[B,H]=s.useState(null);I||null===B||H(null);const $=P.side||"flip",W=P.align||"flip",q=P.fallbackAxisSide||"end",K=L?.crossAxis??!1,J=L?.rootBoundary,G="function"==typeof n?n:void 0,Y=(0,l.K)(G),Z=G?Y:n,X=(0,c.u)(n),Q=(0,c.u)(I),ee="rtl"===(0,h.j)(),te=B||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ee?"left":"right","inline-start":ee?"right":"left"}[_],ne="center"===C?te:`${te}-${C}`;let se=E;"number"==typeof se?se={top:se,right:se,bottom:se,left:se}:se&&(se={top:se.top||0,right:se.right||0,bottom:se.bottom||0,left:se.left||0});const re=1,oe="bottom"===_?re:0,ie="top"===_?re:0,ae="right"===_?re:0,ce="left"===_?re:0,le={boundary:"clipping-ancestors"===A?"clippingAncestors":A,padding:se},de=s.useRef(null),pe=(0,c.u)(j),ue=(0,c.u)(S),he="function"!=typeof j?j:0,ge="function"!=typeof S?S:0,fe=[];O&&fe.push(O);fe.push((0,p.cY)(e=>{const t=k(e,_,ee),n="function"==typeof pe.current?pe.current(t):pe.current,s="function"==typeof ue.current?ue.current(t):ue.current;return{mainAxis:n,crossAxis:s,alignmentAxis:s}},[he,ge,ee,_]));const me="none"===W&&"shift"!==$,ve=!me&&(M||K||"shift"===$),we="none"===$?null:(0,p.UU)({...le,padding:{top:se.top+re+oe,right:se.right+re+ce,bottom:se.bottom+re+ie,left:se.left+re+ae},mainAxis:!K&&"flip"===$,crossAxis:"flip"===W&&"alignment",fallbackAxisSideDirection:q}),be=me?null:(0,p.BN)({...le,rootBoundary:J,mainAxis:"none"!==W,crossAxis:ve,limiter:M||K?void 0:(0,p.ER)(e=>{if(!de.current)return{};const{width:t,height:n}=de.current.getBoundingClientRect(),s=(0,r.TV)((0,r.C0)(e.placement));return{offset:("y"===s?t:n)/2+("y"===s?se.left+se.right:se.top+se.bottom)/2}})},[le,M,K,J,se,W]);"shift"===$||"shift"===W||"center"===C?fe.push(be,we):fe.push(we,be);fe.push((0,p.Ej)({...le,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:s}){if(!Q.current)return;const r=e.style;r.setProperty(w,`${t}px`),r.setProperty(b,`${n}px`);const o=(0,i.zk)(e).devicePixelRatio||1,{x:a,y:c,width:l,height:d}=s.reference,p=(Math.round((a+l)*o)-Math.round(a*o))/o,u=(Math.round((c+d)*o)-Math.round(c*o))/o;r.setProperty(v.cn,`${p}px`),r.setProperty(v.NL,`${u}px`)}}),(0,g.U)(e=>({element:de.current||(0,o.R)(e.elements.floating).createElement("div"),padding:de.current?N:0,offsetParent:"floating"}),[N]),{name:"transformOrigin",fn(e){const{elements:{floating:t},middlewareData:n,placement:s,platform:o,rects:i,y:a}=e,c=(0,r.C0)(s),l=(0,r.Sg)(s),d="y"===(0,r.TV)(c),p=de.current,u="function"==typeof j?j(k(e,_,ee)):j;let h;if(!p&&l&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1)h="start"===l===(d&&!0===o.isRTL?.(t))?"100%":"0%";else{h=`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?p?.clientWidth||0:p?.clientHeight||0)/2}px`}let g="top"===c||"left"===c?`calc(100% + ${u}px)`:-u+"px";return ve&&d&&Math.abs(n.shift?.y||0)>u&&(g=i.reference.y+i.reference.height/2-a+"px"),t.style.setProperty(v.Td,d?`${h} ${g}`:`${g} ${h}`),{}}},f.j,F),(0,a.g)(()=>{!I&&R&&R.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[I,R]);const ye=s.useMemo(()=>({ancestorScroll:!T,elementResize:!T&&"undefined"!=typeof ResizeObserver,layoutShift:!T&&"undefined"!=typeof IntersectionObserver}),[T]),{refs:ke,elements:_e,x:xe,y:je,middlewareData:Ce,update:Se,placement:Ae,context:Ee,isPositioned:Me,floatingStyles:Ne}=t({rootContext:R,open:z?I:void 0,placement:ne,middleware:fe,strategy:u,whileElementsMounted:z?void 0:(...e)=>(0,d.ll)(...e,ye),nodeId:D,externalTree:V}),{sideX:Te,sideY:Oe}=Ce.adaptiveOrigin||m.j,ze=Me?u:"fixed",Re=s.useMemo(()=>{let e;return e=Me?F?{position:ze,[Te]:xe,[Oe]:je}:{...Ne,position:ze}:{position:ze,top:0,left:0},e[w]="100vw",e[b]="100vh",Me||(e.opacity=0),e},[F,ze,Te,xe,Oe,je,Ne,Me]),Ie=s.useRef(null);(0,a.g)(()=>{if(!I)return;const e=X.current,t="function"==typeof e?e():e,n=(x(t)?t.current:t)||null||null;n!==Ie.current&&(ke.setPositionReference(n),Ie.current=n)},[I,ke,Z,X]),s.useEffect(()=>{if(!I)return;const e=X.current;"function"!=typeof e&&x(e)&&e.current!==Ie.current&&(ke.setPositionReference(e.current),Ie.current=e.current)},[I,ke,Z,X]),s.useEffect(()=>{if(z&&I&&_e.reference&&_e.floating)return(0,d.ll)(_e.reference,_e.floating,Se,ye)},[z,I,_e,Se,ye]);const Pe=(0,r.C0)(Ae),Le=y(_,Pe,ee),De=(0,r.Sg)(Ae)||"center",Fe=Boolean(Ce.hide?.referenceHidden);(0,a.g)(()=>{U&&I&&Me&&Pe!==te&&H(Pe)},[U,I,Me,Pe,te]);const Ue=s.useMemo(()=>({position:"absolute",top:Ce.arrow?.y,left:Ce.arrow?.x}),[Ce.arrow]),Ve=0!==Ce.arrow?.centerOffset;return s.useMemo(()=>({positionerStyles:Re,arrowStyles:Ue,arrowRef:de,arrowUncentered:Ve,side:Le,align:De,physicalSide:Pe,anchorHidden:Fe,refs:ke,context:Ee,isPositioned:Me,update:Se}),[Re,Ue,de,Ve,Le,De,Pe,Fe,ke,Ee,Me,Se])}(e,u.r)}function x(e){return null!=e&&"current"in e}},23266(e,t,n){"use strict";n.d(t,{V:()=>l});var s=n(75795),r=n(94541),o=n(19288),i=n(37304),a=n(14684);let c=null;function l(e,t=!1,n=!1){const l=(0,r.NR)();return(0,o.K)((r,o=null)=>{l.cancel();const d=(0,i.q)(e);if(null==d)return;const p=d,u=()=>{n?function(e){if(!c){const e=[];c=e,queueMicrotask(()=>{c=null,s.flushSync(()=>{for(const t of e)t()})})}c.push(e)}(()=>{o?.aborted||r()}):s.flushSync(r)};if("function"!=typeof p.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)r();else{if(t){const e=a.e;if(!p.hasAttribute(e))return void l.request(h);const t=new MutationObserver(()=>{p.hasAttribute(e)||(t.disconnect(),h())});return t.observe(p,{attributes:!0,attributeFilter:[e]}),void o?.addEventListener("abort",()=>t.disconnect(),{once:!0})}l.request(h)}function h(){Promise.all(p.getAnimations().map(e=>e.finished)).then(()=>{o?.aborted||u()},()=>{if(o?.aborted)return;p.getAnimations().some(e=>e.pending||"finished"!==e.playState)?h():u()})}})}},88659(e,t,n){"use strict";n.d(t,{e:()=>r});var s=n(38583);function r(e){return(0,s.B)(e,"base-ui")}},83244(e,t,n){"use strict";n.d(t,{v:()=>i});var s=n(51609),r=n(19288),o=n(23266);function i(e){const{enabled:t=!0,open:n,ref:i,batch:a=!1,onComplete:c}=e,l=(0,r.K)(c),d=(0,o.V)(i,n,a);s.useEffect(()=>{if(!t)return;const e=new AbortController;return d(l,e.signal),()=>{e.abort()}},[t,n,l,d])}},15688(e,t,n){"use strict";n.d(t,{o:()=>h});var s=n(53169),r=n(51609),o=n(8970),i=n(28641),a=n(70071),c=n(12570),l=n(37885),d=n(51469),p=n(15015),u=n(67720);function h(e,t,n={}){let h=t.render;!1!==n.enabled&&(h=function(e){if(e?.$$typeof!==g)return e;const t=r.Children.toArray(e)[0];return r.isValidElement(t)?t:e}(h));const f=function(e,t,n){const{className:s,style:r}=e,{state:h=c.t0,ref:g,props:f,stateAttributesMapping:m,enabled:v=!0}=t,w=v?(0,d.S)(s,h):void 0,b=v?(0,p.m)(r,h):void 0,y=v?(0,l.v)(h,m):c.t0,k=v&&f?function(e){if(Array.isArray(e))return(0,u.lZ)(e);return(0,u.v6)(void 0,e)}(f):void 0,_=v?(0,a.r)(y,k)??{}:c.t0;"undefined"!=typeof document&&(v?Array.isArray(g)?_.ref=(0,o.U)([_.ref,(0,i.v)(n),...g]):_.ref=(0,o.a)(_.ref,(0,i.v)(n),g):(0,o.a)(null,null));if(!v)return c.t0;void 0!==w&&(_.className=(0,u.VN)(_.className,w));void 0!==b&&(_.style=(0,a.r)(_.style,b));return _}(t,n,h);if(!1===n.enabled)return null;return function(e,t,n,o){if(t){if("function"==typeof t)return t(n,o);const e=(0,u.v6)(n,t.props);return e.ref=n.ref,r.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,r.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,r.createElement)("img",{alt:"",...t,key:t.key});return r.createElement(e,t)}(e,n);throw new Error((0,s.A)(8))}(e,h,f,n.state??c.t0)}const g=Symbol.for("react.lazy")},69522(e,t,n){"use strict";n.d(t,{$:()=>i});var s=n(51609),r=n(12002),o=n(94541);function i(e,t=!1,n=!1,i=!1){const[a,c]=s.useState(e&&t?"idle":void 0),[l,d]=s.useState(e&&!i);return e&&!l&&(d(!0),c("starting")),e||!l||"ending"===a||n||c("ending"),e||l||"ending"!==a||c(void 0),(0,r.g)(()=>{if(!e&&l&&"ending"!==a&&n){const e=o.KP.request(()=>{c("ending")});return()=>{o.KP.cancel(e)}}},[e,l,a,n]),(0,r.g)(()=>{if(!e||t)return;const n=o.KP.request(()=>{c(void 0)});return()=>{o.KP.cancel(n)}},[t,e]),(0,r.g)(()=>{if(!e||!t)return;e&&l&&"idle"!==a&&c("starting");const n=o.KP.request(()=>{c("idle")});return()=>{o.KP.cancel(n)}},[t,e,l,a]),{mounted:l,setMounted:d,transitionStatus:a}}},67720(e,t,n){"use strict";n.d(t,{PT:()=>g,VN:()=>f,lZ:()=>i,v6:()=>o});var s=n(70071);const r={};function o(e,t,n,s,r){if(!(n||s||r||e))return a(t);let o=a(e);return t&&(o=c(o,t)),n&&(o=c(o,n)),s&&(o=c(o,s)),r&&(o=c(o,r)),o}function i(e){if(0===e.length)return r;if(1===e.length)return a(e[0]);let t=a(e[0]);for(let n=1;n<e.length;n+=1)t=c(t,e[n]);return t}function a(e){return d(e)?{...p(e,r)}:function(e){const t={...e};for(const e in t){const n=t[e];l(e,n)&&(t[e]=h(n))}return t}(e)}function c(e,t){return d(t)?p(t,e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=(0,s.r)(e.style,r);break;case"className":e[n]=f(e.className,r);break;default:l(n,r)?e[n]=u(e[n],r):e[n]=r}}return e}(e,t)}function l(e,t){const n=e.charCodeAt(0),s=e.charCodeAt(1),r=e.charCodeAt(2);return 111===n&&110===s&&r>=65&&r<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function p(e,t){return d(e)?e(t):e??r}function u(e,t){return t?e?(...n)=>{const s=n[0];if(m(s)){const r=s;g(r);const o=t(...n);return r.baseUIHandlerPrevented||e?.(...n),o}const r=t(...n);return e?.(...n),r}:h(t):e}function h(e){return e?(...t)=>{const n=t[0];return m(n)&&g(n),e(...t)}:e}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function f(e,t){return t?e?t+" "+e:t:e}function m(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},12453(e,t,n){"use strict";n.d(t,{E:()=>w});var s,r=n(51609),o=n(81289),i=n(43784),a=n(71272),c=n(35282),l=n(15688),d=n(49057),p=n(31493),u=n(97888),h=n(64181),g=n(29644),f=n(4144),m=n(10790);const v={...h.h,activeTabPosition:()=>null,activeTabSize:()=>null},w=r.forwardRef(function(e,t){const{className:n,render:h,renderBeforeHydration:w=!1,style:k,..._}=e,{getTabElementBySelectedValue:x,orientation:j,tabActivationDirection:C,value:S}=(0,u.z)(),{tabsListElement:A,registerIndicatorUpdateListener:E}=(0,g.b)(),M=(0,i.g)();r.useEffect(()=>E(M),[E,M]);let N=0,T=0,O=0,z=0,R=0,I=0,P=!1;if(null!=S&&null!=A){const e=x(S);if(null!=e){P=!0;const{width:t,height:n}=(0,d.r)(e),{width:s,height:r}=(0,d.r)(A),i=e.getBoundingClientRect(),a=A.getBoundingClientRect(),c=s>0?a.width/s:1,l=r>0?a.height/r:1,u=function(e,t){const n=b(e),s=b(t);let r=n.left-s.left-t.clientLeft,i=n.top-s.top-t.clientTop,a=(0,o.$4)(e);for(;(0,o.sb)(a)&&a!==t&&!(0,o.eu)(a);)r-=a.scrollLeft,i-=a.scrollTop,a=(0,o.$4)(a);return{left:r,top:i}}(e,A);N=u.left,O=u.top;const h=(i.left-a.left)/c+A.scrollLeft-A.clientLeft,g=(i.top-a.top)/l+A.scrollTop-A.clientTop,f=function(e){const t=(0,o.zk)(e).getComputedStyle(e),{x:n,y:s}=(0,p.Z)(e,t);let r=n,i=s;const{translate:a}=t;if(a&&"none"!==a){const t=a.split(" ");r+=y(t[0],e.offsetWidth),i+=y(t[1],e.offsetHeight)}return{x:r,y:i}}(e);Math.abs(h-f.x-N)<=2&&Math.abs(g-f.y-O)<=2&&(N=h,O=g),R=t,I=n,T=A.scrollWidth-N-R,z=A.scrollHeight-O-I}}const L=P?{left:N,right:T,top:O,bottom:z}:null,D=P?{width:R,height:I}:null,F=P?{[f.vU]:`${N}px`,[f.q2]:`${T}px`,[f.Jy]:`${O}px`,[f.tw]:`${z}px`,[f.Kd]:`${R}px`,[f.hW]:`${I}px`}:void 0,U=P&&R>0&&I>0,V={orientation:j,activeTabPosition:L,activeTabSize:D,tabActivationDirection:C},B=(0,l.o)("span",e,{state:V,ref:t,props:[{role:"presentation",style:F,hidden:!U},_,{suppressHydrationWarning:!0}],stateAttributesMapping:v});return null==S?null:(0,m.jsxs)(r.Fragment,{children:[B,w&&(s||(s=(0,m.jsx)(c.R,{script:a.K})))]})});function b(e){let t=0,n=0,s=e;for(;null!=s;){t+=s.offsetLeft,n+=s.offsetTop;const e=s.offsetParent;null!=e&&(t+=e.clientLeft,n+=e.clientTop),s=e}return{left:t,top:n}}function y(e,t){if(!e)return 0;const n=parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:0}},4144(e,t,n){"use strict";n.d(t,{Jy:()=>o,Kd:()=>a,hW:()=>c,q2:()=>r,tw:()=>i,vU:()=>s});const s="--active-tab-left",r="--active-tab-right",o="--active-tab-top",i="--active-tab-bottom",a="--active-tab-width",c="--active-tab-height"},96299(e,t,n){"use strict";n.d(t,{j:()=>u});var s=n(51609),r=n(19288),o=n(12002),i=n(12570),a=n(56120),c=n(64181),l=n(97888),d=n(29644),p=n(10790);const u=s.forwardRef(function(e,t){const{activateOnFocus:n=!1,className:u,loopFocus:h=!0,render:g,style:f,...m}=e,{orientation:v,setTabMap:w,tabActivationDirection:b}=(0,l.z)(),[y,k]=s.useState(0),[_,x]=s.useState(null),j=s.useRef(new Set),C=s.useRef(new Set),S=s.useRef(null);(0,o.g)(()=>{if("undefined"==typeof ResizeObserver)return;const e=new ResizeObserver(()=>{j.current.forEach(e=>{e()})});return S.current=e,_&&e.observe(_),C.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),S.current=null}},[_]);const A=(0,r.K)(e=>(j.current.add(e),()=>{j.current.delete(e)})),E=(0,r.K)(e=>(C.current.add(e),S.current?.observe(e),()=>{C.current.delete(e),S.current?.unobserve(e)})),M={orientation:v,tabActivationDirection:b},N={"aria-orientation":"vertical"===v?"vertical":void 0,role:"tablist"},T=s.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:A,registerTabResizeObserverElement:E,tabsListElement:_}),[n,A,E,_]);return(0,p.jsx)(d.O.Provider,{value:T,children:(0,p.jsx)(a.Y,{render:g,className:u,style:f,state:M,refs:[t,x],props:[N,m],stateAttributesMapping:c.h,highlightedIndex:y,enableHomeAndEndKeys:!0,loopFocus:h,orientation:v,onHighlightedIndexChange:k,onMapChange:w,disabledIndices:i.Ml})})})},29644(e,t,n){"use strict";n.d(t,{O:()=>o,b:()=>i});var s=n(53169),r=n(51609);const o=r.createContext(void 0);function i(){const e=r.useContext(o);if(void 0===e)throw new Error((0,s.A)(65));return e}},37231(e,t,n){"use strict";n.d(t,{p:()=>g});var s=n(51609),r=n(98922),o=n(12002),i=n(19288),a=n(15688),c=n(61008),l=n(97888),d=n(64181),p=n(15351),u=n(64789),h=n(10790);const g=s.forwardRef(function(e,t){const{className:n,defaultValue:g=0,onValueChange:v,orientation:w="horizontal",render:b,value:y,style:k,..._}=e,x=void 0!==e.defaultValue,j=s.useRef([]),[C,S]=s.useState(()=>new Map),[A,E]=(0,r.q)({controlled:y,default:g,name:"Tabs",state:"value"}),M=void 0!==y,[N,T]=s.useState(()=>new Map),O=s.useRef(void 0),z=s.useCallback(e=>f(N,e),[N]),[R,I]=s.useState(()=>({previousValue:A,tabActivationDirection:"none"})),{previousValue:P,tabActivationDirection:L}=R;let D=L,F=!1;P!==A&&(D=m(P,A,w,N),F=null!=P&&null!=A&&null==z(A));const U=F?P:A,V=P!==U||L!==D;(0,o.g)(()=>{V&&I({previousValue:U,tabActivationDirection:D})},[U,V,D]);const B=(0,i.K)((e,t)=>{const n=m(A,e,w,N);t.activationDirection=n,v?.(e,t),t.isCanceled||E(e)}),H=(0,i.K)((e,t)=>{v?.(e,(0,p.d)(t,void 0,void 0,{activationDirection:"none"}))}),$=(0,i.K)((e,t)=>(S(n=>{const s=new Map(n);return s.set(e,t),s}),()=>{S(n=>{if(n.get(e)!==t)return n;const s=new Map(n);return s.delete(e),s})})),W=s.useCallback(e=>C.get(e),[C]),q=s.useCallback(e=>{for(const t of N.values())if(e===t.value)return t.id},[N]),K=s.useMemo(()=>({getTabElementBySelectedValue:z,getTabIdByPanelValue:q,getTabPanelIdByValue:W,onValueChange:B,orientation:w,registerMountedTabPanel:$,setTabMap:T,tabActivationDirection:D,value:A}),[z,q,W,B,w,$,T,D,A]),J=s.useMemo(()=>{for(const e of N.values())if(e.value===A)return e},[N,A]),G=s.useMemo(()=>{for(const e of N.values())if(!e.disabled)return e.value},[N]),Y=s.useRef(!x),Z=s.useRef(g),X=s.useRef(x),Q=s.useRef(!1);(0,o.g)(()=>{if(M)return;function e(e,t){E(e),I({previousValue:e,tabActivationDirection:"none"}),H(e,t),Y.current=!1}if(0===N.size)return void(Q.current&&null!==A&&!O.current?.isConnected&&e(null,u.c));Q.current=!0,O.current=N.keys().next().value;const t=J?.disabled,n=null==J&&null!==A;if(t||A!==Z.current||(X.current=!1),X.current&&t&&A===Z.current)return;const s=Y.current;if(t||n){const n=G??null;if(A===n)return void(Y.current=!1);let r=u.c;return s?r=u.Vh:t&&(r=u.r9),void e(n,r)}s&&null!=J&&(H(A,u.Vh),Y.current=!1)},[G,M,H,J,E,N,A]);const ee={orientation:w,tabActivationDirection:D},te=(0,a.o)("div",e,{state:ee,ref:t,props:_,stateAttributesMapping:d.h});return(0,h.jsx)(l.G.Provider,{value:K,children:(0,h.jsx)(c.u,{elementsRef:j,children:te})})});function f(e,t){for(const[n,s]of e.entries())if(t===s.value)return n;return null}function m(e,t,n,s){if(null==e||null==t)return"none";const[r,o,i]="horizontal"===n?["left","left","right"]:["top","up","down"],a=f(s,e),c=f(s,t);if(null==a||null==c)return a===c||"number"!=typeof e&&"string"!=typeof e||typeof e!=typeof t?"none":t>e?i:o;const l=a.getBoundingClientRect()[r],d=c.getBoundingClientRect()[r];return d<l?o:d>l?i:"none"}},97888(e,t,n){"use strict";n.d(t,{G:()=>o,z:()=>i});var s=n(53169),r=n(51609);const o=r.createContext(void 0);function i(){const e=r.useContext(o);if(void 0===e)throw new Error((0,s.A)(64));return e}},46676(e,t,n){"use strict";n.d(t,{G:()=>s});const s="data-activation-direction"},64181(e,t,n){"use strict";n.d(t,{h:()=>r});var s=n(46676);const r={tabActivationDirection:e=>({[s.G]:e})}},98077(e,t,n){"use strict";n.d(t,{M:()=>b});var s=n(51609),r=n(12240),o=n(12002),i=n(19288),a=n(88659),c=n(15688),l=n(18762),d=n(66791),p=n(61727),u=n(1265),h=n(97888),g=n(64181),f=n(29644),m=n(15351),v=n(64789),w=n(90865);const b=s.forwardRef(function(e,t){const{className:n,disabled:b=!1,render:y,value:k,id:_,nativeButton:x=!0,style:j,...C}=e,{value:S,getTabPanelIdByValue:A,onValueChange:E,orientation:M,tabActivationDirection:N}=(0,h.z)(),{activateOnFocus:T,registerTabResizeObserverElement:O,tabsListElement:z}=(0,f.b)(),{highlightedIndex:R,onHighlightedIndexChange:I}=(0,u.G)(),P=(0,a.e)(_),L=s.useMemo(()=>({disabled:b,id:P,value:k}),[b,P,k]),{compositeProps:D,compositeRef:F,index:U}=(0,p.k)({metadata:L}),V=k===S,B=s.useRef(!1),H=s.useRef(null),$=(0,i.K)(e=>{H.current?.(),H.current=e?O(e):null});(0,o.g)(()=>{if(B.current)return void(B.current=!1);if(!(V&&U>-1&&R!==U))return;const e=z;if(null!=e){const t=(0,w.RS)((0,r.R)(e));if(t&&(0,w.gR)(e,t))return}b||I(U)},[V,U,R,I,b,z]);const{getButtonProps:W,buttonRef:q}=(0,l.s)({disabled:b,native:x,focusableWhenDisabled:!0}),K=A(k),J=s.useRef(!1),G=s.useRef(!1);function Y(e){E(k,(0,m.d)(v.dv,e.nativeEvent,void 0,{activationDirection:"none"}))}const Z={disabled:b,active:V,orientation:M,tabActivationDirection:N};return(0,c.o)("button",e,{state:Z,ref:[t,q,F,$],props:[D,{role:"tab","aria-controls":K,"aria-selected":V,id:P,onClick:function(e){V||b||Y(e)},onFocus:function(e){V||b||!T||J.current&&!G.current||Y(e)},onPointerDown:function(e){if(V||b)return;J.current=!0,G.current=0===e.button;const t=(0,r.R)(e.currentTarget);function n(){J.current=!1,G.current=!1,t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",n)}t.addEventListener("pointerup",n),t.addEventListener("pointercancel",n)},[d.h]:V?"":void 0,onKeyDownCapture(){B.current=!0}},C,W],stateAttributesMapping:g.h})})},59801(e,t,n){"use strict";n.d(t,{o:()=>u});var s=n(51609),r=n(1306),o=n(25258),i=n(49624),a=n(83244),c=n(15688),l=n(95400),d=n(10305),p=n(31223);const u=s.forwardRef(function(e,t){const{render:n,className:s,style:u,...h}=e,g=(0,r.g)(),{side:f,align:m}=(0,o.s)(),v=g.useState("open"),w=g.useState("instantType"),b=g.useState("transitionStatus"),y=g.useState("popupProps"),k=g.useState("floatingRootContext"),_=g.useState("disabled"),x=g.useState("closeDelay");(0,a.v)({open:v,ref:g.context.popupRef,onComplete(){v&&g.context.onOpenChangeComplete?.(!0)}}),(0,d.a)(k,{enabled:!_,closeDelay:x});const j=g.useStateSetter("popupElement"),C={open:v,side:f,align:m,instant:w,transitionStatus:b};return(0,c.o)("div",e,{state:C,ref:[t,g.context.popupRef,j],props:[p.Ls,y,(0,l.d)(b),h],stateAttributesMapping:i.LM})})},68817(e,t,n){"use strict";n.d(t,{K:()=>c});var s=n(51609),r=n(1306),o=n(70962),i=n(28975),a=n(10790);const c=s.forwardRef(function(e,t){const{keepMounted:n=!1,...s}=e;return(0,r.g)().useState("mounted")||n?(0,a.jsx)(o.$.Provider,{value:n,children:(0,a.jsx)(i.F,{ref:t,...s})}):null})},70962(e,t,n){"use strict";n.d(t,{$:()=>o,a:()=>i});var s=n(53169),r=n(51609);const o=r.createContext(void 0);function i(){const e=r.useContext(o);if(void 0===e)throw new Error((0,s.A)(70));return e}},10217(e,t,n){"use strict";n.d(t,{o:()=>p});var s=n(51609),r=n(1306),o=n(25258),i=n(99237),a=n(70962),c=n(71031),l=n(5924),d=n(10790);const p=s.forwardRef(function(e,t){const{render:n,className:p,anchor:u,positionMethod:h="absolute",side:g="top",align:f="center",sideOffset:m=0,alignOffset:v=0,collisionBoundary:w="clipping-ancestors",collisionPadding:b=5,arrowPadding:y=5,sticky:k=!1,disableAnchorTracking:_=!1,collisionAvoidance:x=c.Pe,style:j,...C}=e,S=(0,r.g)(),A=(0,a.a)(),E=S.useState("open"),M=S.useState("mounted"),N=S.useState("trackCursorAxis"),T=S.useState("disableHoverablePopup"),O=S.useState("floatingRootContext"),z=S.useState("instantType"),R=S.useState("transitionStatus"),I=S.useState("adaptiveOrigin"),P=(0,i.s)({anchor:u,positionMethod:h,floatingRootContext:O,mounted:M,side:g,sideOffset:m,align:f,alignOffset:v,collisionBoundary:w,collisionPadding:b,sticky:k,arrowPadding:y,disableAnchorTracking:_,keepMounted:A,collisionAvoidance:x,adaptiveOrigin:I}),L=s.useMemo(()=>({open:E,side:P.side,align:P.align,anchorHidden:P.anchorHidden,instant:"none"!==N?"tracking-cursor":z}),[E,P.side,P.align,P.anchorHidden,N,z]),D=(0,l.i)(e,L,{styles:P.positionerStyles,transitionStatus:R,props:C,refs:[t,S.useStateSetter("positionerElement")],hidden:!M,inert:!E||"both"===N||T});return(0,d.jsx)(o.v.Provider,{value:P,children:D})})},25258(e,t,n){"use strict";n.d(t,{s:()=>i,v:()=>o});var s=n(53169),r=n(51609);const o=r.createContext(void 0);function i(){const e=r.useContext(o);if(void 0===e)throw new Error((0,s.A)(71));return e}},33246(e,t,n){"use strict";n.d(t,{n:()=>o});var s=n(51609);const r=s.createContext(void 0);function o(){return s.useContext(r)}},94681(e,t,n){"use strict";n.d(t,{s:()=>m});var s=n(51609),r=n(19403),o=n(12570),i=n(12002),a=n(1306),c=n(47018),l=n(94891),d=n(15351),p=n(31223),u=n(67720),h=n(16575),g=n(64789),f=n(10790);const m=(0,r.G1)(function(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:o=!1,trackCursorAxis:c="none",actionsRef:l,onOpenChange:u,onOpenChangeComplete:m,handle:w,triggerId:b,defaultTriggerId:y=null,children:k}=e,_=(0,p.xp)((e,t)=>new h.h({open:n,openProp:r,activeTriggerId:y,triggerIdProp:b},e,t));_.useControlledProp("openProp",r),_.useControlledProp("triggerIdProp",b),_.useContextCallback("onOpenChange",u),_.useContextCallback("onOpenChangeComplete",m);const x=_.useState("open"),j=!t&&x,C=_.useState("activeTriggerId"),S=_.useState("mounted"),A=_.useState("payload");_.useSyncedValues({trackCursorAxis:c,disableHoverablePopup:o,disabled:t}),(0,p.tr)(_,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:E,transitionStatus:M}=(0,p.l$)(j,_),N=_.useState("isInstantPhase"),T=_.useState("instantType"),O=_.useState("lastOpenChangeReason"),z=s.useRef(null);(0,i.g)(()=>{x&&t&&_.setOpen(!1,(0,d.d)(g.r9))},[x,t,_]),(0,i.g)(()=>{"ending"===M&&O===g.dv||"ending"!==M&&N?("delay"!==T&&(z.current=T),_.set("instantType","delay")):null!==z.current&&(_.set("instantType",z.current),z.current=null)},[M,N,O,T,_]),(0,i.g)(()=>{j&&null==C&&_.set("payload",void 0)},[_,C,j]),s.useImperativeHandle(l,()=>({unmount:E,close:()=>_.setOpen(!1,(0,d.d)(g.zJ))}),[E,_]);const R=j||S||!t&&"none"!==c;return(0,f.jsxs)(a.B.Provider,{value:_,children:[w&&(0,f.jsx)(p.Ae,{handle:w,store:_}),R&&(0,f.jsx)(v,{store:_,disabled:t,trackCursorAxis:c}),"function"==typeof k?k({payload:A}):k]})});function v({store:e,disabled:t,trackCursorAxis:n}){const r=e.useState("floatingRootContext"),i=(0,l.s)(r,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),a=(0,c.j)(r,{enabled:!t&&"none"!==n,axis:"none"===n?void 0:n}),d=s.useMemo(()=>(0,u.v6)(a.reference,i.reference),[a.reference,i.reference]);return(0,p.i6)(e,{activeTriggerProps:d,inactiveTriggerProps:d,popupProps:i.floating??o.t0}),null}},1306(e,t,n){"use strict";n.d(t,{B:()=>o,g:()=>i});var s=n(53169),r=n(51609);const o=r.createContext(void 0);function i(e){const t=r.useContext(o);if(void 0===t&&!e)throw new Error((0,s.A)(72));return t}},16575(e,t,n){"use strict";n.d(t,{h:()=>p});var s=n(51609),r=n(25489),o=n(15351),i=n(64789),a=n(31223),c=n(72975),l=n(86404);const d={...l.o,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class p extends r.H{constructor(e,t,n){const s=new c.Z;super(u(e,s,t,n),h(s),d)}setOpen=(e,t)=>{(0,a.DU)(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,(0,o.d)(i.Ui,e))}}function u(e,t,n,s=!1){return{...(0,l.r)(t,n,s),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function h(e){return{popupRef:s.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}},89933(e,t,n){"use strict";n.d(t,{k:()=>N});var s=n(53169),r=n(51609),o=n(81289),i=n(19403),a=n(63405),c=n(87946),l=n(1306),d=n(49624),p=n(15688),u=n(31223),h=n(15965),g=n(88659),f=n(33246),m=n(7406),v=n(755),w=n(27484),b=n(53734),y=n(90865),k=n(26559),_=n(15351),x=n(64789),j=n(2527),C=n(98414),S=n(93918),A=n(22794);const E="data-base-ui-tooltip-trigger";function M(e){if("composedPath"in e){const t=e.composedPath();for(let e=0;e<t.length;e+=1){const n=t[e];if((0,o.vq)(n))return n}}const t=e.target;return(0,o.vq)(t)?t:null}const N=(0,i.nk)(function(e,t){const{render:n,className:i,style:N,handle:T,payload:O,disabled:z,delay:R,closeOnClick:I=!0,closeDelay:P,id:L,...D}=e,F=(0,l.g)(!0),U=(0,h.f)(T)??F;if(!U)throw new Error((0,s.A)(82));const V=(0,g.e)(L),B=U.useState("isTriggerActive",V),H=U.useState("isOpenedByTrigger",V),$=U.useState("floatingRootContext"),W=r.useRef(null),q=P??0,{registerTrigger:K,isMountedByThisTrigger:J}=(0,u.L_)(V,W,U,{payload:O,closeOnClick:I,closeDelay:q}),G=(0,f.n)(),{activeIdRef:Y,delayRef:Z,isInstantPhase:X,hasProvider:Q}=(0,m.c)($,{open:H}),ee=(0,j.uu)($);U.useSyncedValue("isInstantPhase",X);const te=U.useState("disabled"),ne=z??te,se=(0,c.u)(ne),re=U.useState("trackCursorAxis"),oe=U.useState("disableHoverablePopup"),ie=r.useRef(!1),ae=(0,a.Z)(),ce=r.useRef(void 0);function le(){return Q&&null!=Y.current?0:R??G??A.r}function de(e){const t=W.current;if(!t||!e)return!1;const n=function(e){let t=e;for(;t;){const e=t.closest(`[${E}]`);if(e)return e;const n=t.getRootNode();t="host"in n&&(0,o.vq)(n.host)?n.host:null}return null}(e);return null!==n&&n!==t&&(0,y.gR)(t,n)}const pe=(0,w.j)($,{enabled:!ne,mouseOnly:!0,move:!1,handleClose:oe||"both"===re?null:(0,b.i)(),restMs:le,delay:()=>null==P&&Q?{close:(0,C.uf)(Z.current,"close")}:{close:q},triggerElementRef:W,isActiveTrigger:B,isClosing:()=>"ending"===U.select("transitionStatus"),shouldOpen:()=>!ie.current}),ue=(0,v.i)($,{enabled:!ne}).reference,he=e=>{const t=ie.current,n=M(e),s=function(e){const t=de(e);return ie.current=t,t&&(ee.openChangeTimeout.clear(),ee.restTimeout.clear(),ee.restTimeoutPending=!1,ae.clear()),t}(n),r=W.current,o=r&&n&&(0,y.gR)(r,n);if(s&&U.select("open")&&U.select("lastOpenChangeReason")===x.N7)U.setOpen(!1,(0,_.d)(x.N7,e));else if(t&&!s&&o&&!se.current&&!U.select("open")&&r&&(0,k.Go)(ce.current)){const t=()=>{ie.current||se.current||U.select("open")||U.setOpen(!0,(0,_.d)(x.N7,e,r))},n=le();0===n?(ae.clear(),t()):ae.start(n,t)}},ge=U.useState("triggerProps",J),fe=J||"none"!==re,me={open:H};return(0,p.o)("button",e,{state:me,ref:[t,K,W],props:[pe,ue,fe?ge:void 0,{onMouseOver(e){he(e.nativeEvent)},onFocus(e){de(M(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){ie.current=!1,ae.clear(),ce.current=void 0},onPointerEnter(e){ce.current=e.pointerType},onPointerDown(e){ce.current=e.pointerType,U.set("closeOnClick",I),I&&!U.select("open")&&U.cancelPendingOpen(e.nativeEvent)},onClick(e){I&&!U.select("open")&&U.cancelPendingOpen(e.nativeEvent)},id:V,[S.d]:ne?"":void 0,[E]:ne?void 0:""},D],stateAttributesMapping:d.qV})})},93918(e,t,n){"use strict";n.d(t,{d:()=>s});n(37571).L;const s="data-trigger-disabled"},22794(e,t,n){"use strict";n.d(t,{r:()=>s});const s=600},23280(e,t,n){"use strict";n.d(t,{C:()=>r});var s=n(15688);function r(e){return(0,s.o)(e.defaultTagName??"div",e,e)}},15849(e,t,n){"use strict";n.d(t,{$h:()=>o,ho:()=>r,ii:()=>i});var s=n(14684);const r="data-open",o="data-closed",i=(s.e,s.V,"data-anchor-hidden")},23371(e,t,n){"use strict";n.d(t,{NL:()=>i,QJ:()=>s,Td:()=>a,cn:()=>o,px:()=>r});const s="--available-width",r="--available-height",o="--anchor-width",i="--anchor-height",a="--transform-origin"},37571(e,t,n){"use strict";n.d(t,{L:()=>s,V:()=>r});const s="data-popup-open",r="data-pressed"},28975(e,t,n){"use strict";n.d(t,{F:()=>a});var s=n(51609),r=n(75795),o=n(11706),i=n(10790);const a=s.forwardRef(function(e,t){const{children:n,container:a,className:c,render:l,style:d,...p}=e,{node:u,subtree:h}=(0,o.CK)({container:a,ref:t,componentProps:e,elementProps:p});return h||u?(0,i.jsxs)(s.Fragment,{children:[h,u&&r.createPortal(n,u)]}):null})},52046(e,t,n){"use strict";n.d(t,{j:()=>s});const s={sideX:"left",sideY:"top"}},2095(e,t,n){"use strict";n.d(t,{B:()=>r});var s=n(81289);function r(e,t,{detail:n=0}={}){e.dispatchEvent(new((0,s.zk)(e).PointerEvent)("click",{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}},49057(e,t,n){"use strict";n.d(t,{r:()=>o});var s=n(39175),r=n(81289);function o(e){const t=(0,r.L9)(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=(0,r.sb)(e),a=i?e.offsetWidth:n,c=i?e.offsetHeight:o;return((0,s.LI)(n)!==a||(0,s.LI)(o)!==c)&&(n=a,o=c),{width:n,height:o}}},31493(e,t,n){"use strict";n.d(t,{Z:()=>r});var s=n(81289);function r(e,t){const n=(t??(0,s.zk)(e).getComputedStyle(e)).transform;let r=0,o=0,i=1;if(n&&"none"!==n){const e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){const t=e[1].split(", ").map(parseFloat);6===t.length?(r=t[4],o=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):16===t.length&&(r=t[12],o=t[13],i=t[0])}}return{x:r,y:o,scale:i}}},439(e,t,n){"use strict";n.d(t,{j:()=>s});const s={name:"hide",async fn(e){const{width:t,height:n,x:s,y:r}=e.rects.reference,o=0===t&&0===n&&0===s&&0===r,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-n>=0||i.right-t>=0||i.bottom-n>=0||i.left-t>=0||o}}}}},49624(e,t,n){"use strict";n.d(t,{GW:()=>p,LM:()=>u,qV:()=>d});var s=n(74466),r=n(15849),o=n(37571);const i={[o.L]:""},a=(o.L,o.V,{[r.ho]:""}),c={[r.$h]:""},l={[r.ii]:""},d={open:e=>e?i:null},p={open:e=>e?a:c,anchorHidden:e=>e?l:null},u={...p,...s.G}},31223(e,t,n){"use strict";n.d(t,{Ae:()=>b,DU:()=>k,L_:()=>_,Ls:()=>v,i6:()=>C,l$:()=>j,tr:()=>x,xp:()=>w});var s=n(51609),r=n(75795),o=n(12570),i=n(38583),a=n(19288),c=n(12002),l=n(31749),d=n(17300),p=n(88536),u=n(50306),h=n(69522),g=n(83244),f=n(15351),m=n(64789);const v={tabIndex:-1,[d.Ed]:""};function w(e,t=!1){const n=(0,i.B)(),s=null!=(0,p.R1)(),r=(0,l.j)(()=>e(n,s)).current;return(0,u.D)({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:n,nested:s,onOpenChange:r.setOpen}),r}function b({handle:e,store:t}){return(0,c.g)(()=>e.attachStore(t),[e,t]),null}function y(e){const t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function k(e,t,n,s={}){const o=n.reason,i=o===m.N7,a=t&&o===m.F4,c=!t&&(o===m.Ui||o===m.jv),l=function(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;s.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);const d=()=>{const r=function(e,t,n,s=!1){let r=e.preventUnmountingOnClose;t?r=!1:s&&(r=!0);const o=n?.id??null;let i=e.activeTriggerId,a=e.activeTriggerElement;return(o||t)&&(i=o,a=n??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:i,activeTriggerElement:a}}(e.state,t,n.trigger,l()),o={...s.extraState,...r};a?o.instantType="focus":c?o.instantType="dismiss":i&&(o.instantType=void 0),e.update(o)};i?r.flushSync(d):d()}function _(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=function(e,t){const n=s.useRef(null);return(0,a.K)(s=>{const r=n.current;if(null!==r){if(r.element===s&&r.store===t&&r.id===e)return;n.current=null;const o=r.store;o.context.triggerElements.getById(r.id)===r.element&&(o.context.triggerElements.delete(r.id),y(o))}null!==s&&void 0!==e&&(n.current={store:t,id:e,element:s},t.context.triggerElements.add(e,s),y(t))})}(e,n),l=(0,a.K)(t=>{const s=n.select("open"),o=n.select("activeTriggerId");if(o===e){const e={activeTriggerElement:t,...s?r:null};return void n.update(e)}if(null==o&&s){const s={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(s)}}),d=(0,a.K)(e=>{i(e),e&&l(e)});return(0,c.g)(()=>(d(t.current),()=>d(null)),[d,t,n,e]),(0,c.g)(()=>{if(o){const e={activeTriggerElement:t.current,...r};n.update(e)}},[o,n,t,...Object.values(r)]),{registerTrigger:d,isMountedByThisTrigger:o}}function x(e,t={}){const{closeOnActiveTriggerUnmount:n=!1}=t,r=s.useRef(null),o=e.useState("open"),i=e.useState("triggerCount"),a=e.useState("activeTriggerId"),l=e.useState("activeTriggerElement");(0,c.g)(()=>{if(!o)return r.current=null,void(0!==e.state.triggerCount&&e.set("triggerCount",0));const t=e.context.triggerElements.size,s={};e.state.triggerCount!==t&&(s.triggerCount=t);const i=e.select("activeTriggerId");let a=null;if(i){const t=e.context.triggerElements.getById(i);if(t)r.current=i,t!==e.state.activeTriggerElement&&(s.activeTriggerElement=t);else{for(const[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){s.activeTriggerId=t,s.activeTriggerElement=n,r.current=t;break}void 0===s.activeTriggerId&&(r.current===i?a=i:r.current=null)}}else r.current=null;if(!a&&!i&&1===t){const t=e.context.triggerElements.entries().next();if(!t.done){const[e,n]=t.value;s.activeTriggerId=e,s.activeTriggerElement=n,r.current=e}}void 0===s.triggerCount&&void 0===s.activeTriggerId&&void 0===s.activeTriggerElement||e.update(s),a&&n&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===a&&!e.context.triggerElements.getById(a)){const t=(0,f.d)(m.dv);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[o,e,i,a,l,n])}function j(e,t,n,s){const{mounted:r,setMounted:o,transitionStatus:i}=(0,h.$)(e,!1,!1,s),c=t.useState("preventUnmountingOnClose"),l=!e&&c;t.useSyncedValues({mounted:r,transitionStatus:i,preventUnmountingOnClose:l});const d=(0,a.K)(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return(0,g.v)({enabled:r&&!e&&!l,open:e,ref:t.context.popupRef,onComplete(){e||d()}}),{forceUnmount:d,transitionStatus:i}}function C(e,t){e.useSyncedValues(t),(0,c.g)(()=>()=>{e.update({activeTriggerProps:o.t0,inactiveTriggerProps:o.t0,popupProps:o.t0})},[e])}},72975(e,t,n){"use strict";n.d(t,{Z:()=>s});class s{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(const t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(const t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}}},86404(e,t,n){"use strict";n.d(t,{o:()=>d,r:()=>o});var s=n(12570),r=n(33367);function o(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new r.K({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:s.t0,inactiveTriggerProps:s.t0,popupProps:s.t0}}const i=e=>e.triggerIdProp??e.activeTriggerId,a=e=>e.openProp??e.open,c=e=>(e.popupElement?.id??e.floatingId)||void 0;function l(e,t){return void 0!==t&&a(e)&&i(e)===t}const d={open:a,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:i,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:c,isTriggerActive:(e,t)=>void 0!==t&&i(e)===t,isOpenedByTrigger:(e,t)=>l(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&i(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>function(e,t){return!!l(e,t)||void 0!==t&&a(e)&&null==i(e)&&1===e.triggerCount}(e,t)?c(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}},15965(e,t,n){"use strict";n.d(t,{f:()=>i});var s=n(51609),r=n(22484),o=n(12570);function i(e){const t=s.useCallback(t=>void 0===e?o.tE:e.subscribeStore(t),[e]),n=s.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,r.useSyncExternalStore)(t,n,()=>e?.serverStore)}},51469(e,t,n){"use strict";function s(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>s})},37304(e,t,n){"use strict";function s(e){return null==e?e:"current"in e?e.current:e}n.d(t,{q:()=>s})},15015(e,t,n){"use strict";function s(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>s})},56200(e,t,n){"use strict";n.d(t,{S:()=>r});var s=n(51609);function r(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,a=r&&!1!==t,c=r&&!1===t;return{props:s.useMemo(()=>{const e={onKeyDown(e){n&&t&&"Tab"!==e.key&&e.preventDefault()}};return r||(e.tabIndex=o,!i&&n&&(e.tabIndex=t?o:-1)),(i&&(t||a)||!i&&n)&&(e["aria-disabled"]=n),!i||t&&!c||(e.disabled=n),e},[r,n,t,a,c,i,o])}}},91276(e,t,n){"use strict";n.d(t,{i:()=>c});var s=n(22484),r=n(12570);function o(){return r.tE}function i(){return!1}function a(){return!0}function c(){return(0,s.useSyncExternalStore)(o,i,a)}},5924(e,t,n){"use strict";n.d(t,{i:()=>i});var s=n(49624),r=n(15688),o=n(95400);function i(e,t,{styles:n,transitionStatus:i,props:a,refs:c,hidden:l,inert:d=!1}){const p={...n};return d&&(p.pointerEvents="none"),(0,r.o)("div",e,{state:t,ref:c,props:[{role:"presentation",hidden:l,style:p},(0,o.d)(i),a],stateAttributesMapping:s.GW})}},60266(e,t,n){"use strict";function s(e,t){const n={};for(const s in e){const r=e[s];if(t?.hasOwnProperty(s)){const e=t[s](r);null!=e&&Object.assign(n,e);continue}!0===r?n[`data-${s.toLowerCase()}`]="":r&&(n[`data-${s.toLowerCase()}`]=r.toString())}return n}n.d(t,{v:()=>s})},93307(e,t,n){"use strict";n.d(t,{o:()=>h});var s=n(53169),r=n(51609),o=n(8970),i=n(28641),a=n(70071),c=n(12570),l=n(60266),d=n(73850),p=n(21044),u=n(45339);function h(e,t,n={}){let h=t.render;!1!==n.enabled&&(h=function(e){if(e?.$$typeof!==g)return e;const t=r.Children.toArray(e)[0];return r.isValidElement(t)?t:e}(h));const f=function(e,t,n){const{className:s,style:r}=e,{state:h=c.t0,ref:g,props:f,stateAttributesMapping:m,enabled:v=!0}=t,w=v?(0,d.S)(s,h):void 0,b=v?(0,p.m)(r,h):void 0,y=v?(0,l.v)(h,m):c.t0,k=v&&f?function(e){if(Array.isArray(e))return(0,u.lZ)(e);return(0,u.v6)(void 0,e)}(f):void 0,_=v?(0,a.r)(y,k)??{}:c.t0;"undefined"!=typeof document&&(v?Array.isArray(g)?_.ref=(0,o.U)([_.ref,(0,i.v)(n),...g]):_.ref=(0,o.a)(_.ref,(0,i.v)(n),g):(0,o.a)(null,null));if(!v)return c.t0;void 0!==w&&(_.className=(0,u.VN)(_.className,w));void 0!==b&&(_.style=(0,a.r)(_.style,b));return _}(t,n,h);if(!1===n.enabled)return null;return function(e,t,n,o){if(t){if("function"==typeof t)return t(n,o);const e=(0,u.v6)(n,t.props);return e.ref=n.ref,r.cloneElement(t,e)}if(e&&"string"==typeof e)return function(e,t){if("button"===e)return(0,r.createElement)("button",{type:"button",...t,key:t.key});if("img"===e)return(0,r.createElement)("img",{alt:"",...t,key:t.key});return r.createElement(e,t)}(e,n);throw new Error((0,s.A)(8))}(e,h,f,n.state??c.t0)}const g=Symbol.for("react.lazy")},45339(e,t,n){"use strict";n.d(t,{VN:()=>f,lZ:()=>i,v6:()=>o});var s=n(70071);const r={};function o(e,t,n,s,r){if(!(n||s||r||e))return a(t);let o=a(e);return t&&(o=c(o,t)),n&&(o=c(o,n)),s&&(o=c(o,s)),r&&(o=c(o,r)),o}function i(e){if(0===e.length)return r;if(1===e.length)return a(e[0]);let t=a(e[0]);for(let n=1;n<e.length;n+=1)t=c(t,e[n]);return t}function a(e){return d(e)?{...p(e,r)}:function(e){const t={...e};for(const e in t){const n=t[e];l(e,n)&&(t[e]=h(n))}return t}(e)}function c(e,t){return d(t)?p(t,e):function(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":e[n]=(0,s.r)(e.style,r);break;case"className":e[n]=f(e.className,r);break;default:l(n,r)?e[n]=u(e[n],r):e[n]=r}}return e}(e,t)}function l(e,t){const n=e.charCodeAt(0),s=e.charCodeAt(1),r=e.charCodeAt(2);return 111===n&&110===s&&r>=65&&r<=90&&("function"==typeof t||void 0===t)}function d(e){return"function"==typeof e}function p(e,t){return d(e)?e(t):e??r}function u(e,t){return t?e?(...n)=>{const s=n[0];if(m(s)){const r=s;g(r);const o=t(...n);return r.baseUIHandlerPrevented||e?.(...n),o}const r=t(...n);return e?.(...n),r}:h(t):e}function h(e){return e?(...t)=>{const n=t[0];return m(n)&&g(n),e(...t)}:e}function g(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function f(e,t){return t?e?t+" "+e:t:e}function m(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}},899(e,t,n){"use strict";n.d(t,{C:()=>r});var s=n(93307);function r(e){return(0,s.o)(e.defaultTagName??"div",e,e)}},73850(e,t,n){"use strict";function s(e,t){return"function"==typeof e?e(t):e}n.d(t,{S:()=>s})},21044(e,t,n){"use strict";function s(e,t){return"function"==typeof e?e(t):e}n.d(t,{m:()=>s})},7584(e,t,n){"use strict";function s(e,t,n,s){return e.addEventListener(t,n,s),()=>{e.removeEventListener(t,n,s)}}n.d(t,{q:()=>s})},12570(e,t,n){"use strict";function s(){}n.d(t,{Ml:()=>r,t0:()=>o,tE:()=>s});const r=Object.freeze([]),o=Object.freeze({})},19403(e,t,n){"use strict";n.d(t,{G1:()=>l,iE:()=>a,kz:()=>c,nk:()=>d});var s=n(51609),r=n(31749);const o=[];let i;function a(){return i}function c(e){o.push(e)}function l(e){const t=(t,n)=>{const s=(0,r.j)(p).current;let a;try{i=s;for(const e of o)e.before(s);a=e(t,n);for(const e of o)e.after(s);s.didInitialize=!0}finally{i=void 0}return a};return t.displayName=e.displayName||e.name,t}function d(e){return s.forwardRef(l(e))}function p(){return{didInitialize:!1}}},53169(e,t,n){"use strict";n.d(t,{A:()=>o});var s,r;const o=(s="https://base-ui.com/production-error",r="Base UI",function(e,...t){const n=new URL(s);return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`${r} error #${e}; visit ${n} for the full message.`})},28641(e,t,n){"use strict";n.d(t,{v:()=>o});var s=n(51609),r=n(83100);function o(e){if(!s.isValidElement(e))return null;const t=e,n=t.props;return((0,r._)(19)?n?.ref:t.ref)??null}},16105(e,t,n){"use strict";function s(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}n.d(t,{F:()=>s})},31238(e,t,n){"use strict";function s(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}n.d(t,{g:()=>s})},70071(e,t,n){"use strict";function s(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}n.d(t,{r:()=>s})},12240(e,t,n){"use strict";function s(e){return e?.ownerDocument||document}n.d(t,{R:()=>s})},55087(e,t,n){"use strict";n.d(t,{Fp:()=>r});var s=n(84778);const r="undefined"!=typeof CSS&&!!CSS.supports?.("-webkit-backdrop-filter:none");!r&&s.ST.includes("firefox"),!r&&s.ST.includes("chrom")},78858(e,t,n){"use strict";n.d(t,{I:()=>r});var s=n(84778);const r=/jsdom|happydom/.test(s.ST)},94563(e,t,n){"use strict";n.d(t,{Md:()=>a,yA:()=>i});var s=n(84778);const r=/^i(os$|p)/.test(s.JG)||"macintel"===s.JG&&s.RT>1,o="android",i=s.JG===o||s.ST.includes(o),a=!r&&s.JG.startsWith("mac");s.JG.startsWith("win"),!i&&/^(linux|chrome os)/.test(s.JG)},84778(e,t,n){"use strict";n.d(t,{JG:()=>a,RT:()=>o,ST:()=>i});const{userAgent:s,platform:r,maxTouchPoints:o}="undefined"==typeof navigator?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0},i=s.toLowerCase(),a=r.toLowerCase()},83100(e,t,n){"use strict";n.d(t,{_:()=>o});var s=n(51609);const r=parseInt(s.version,10);function o(e){return r>=e}},96233(e,t,n){"use strict";var s;n.d(t,{X:()=>o});var r=n(51609);const o={...s||(s=n.t(r,2))}},90865(e,t,n){"use strict";n.d(t,{EW:()=>i,RS:()=>r,gR:()=>o});var s=n(81289);function r(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function o(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&(0,s.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function i(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}},25489(e,t,n){"use strict";n.d(t,{H:()=>l});var s=n(51609),r=n(73372),o=n(99017),i=n(19288),a=n(12002),c=n(12570);class l extends r.i{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){s.useDebugValue(e);const n=this;(0,a.g)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){const n=this;(0,a.g)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){const t=this;const n=Object.values(e);(0,a.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){s.useDebugValue(e);const n=this,r=void 0!==t;(0,a.g)(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,s){return(0,this.selectors[e])(this.state,t,n,s)}useState(e,t,n,r){return s.useDebugValue(e),(0,o.P)(this,this.selectors[e],t,n,r)}useContextCallback(e,t){s.useDebugValue(e);const n=(0,i.K)(t??c.tE);this.context[e]=n}useStateSetter(e){const t=s.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n="function"==typeof e?e:this.selectors[e];let s=n(this.state);return t(s,s,this),this.subscribe(e=>{const r=n(e);if(!Object.is(s,r)){const e=s;s=r,t(r,e,this)}})}}},73372(e,t,n){"use strict";n.d(t,{i:()=>r});var s=n(99017);class r{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;const t=this.updateTick;for(const n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){const e={...this.state};this.setState(e)}use(e,t,n,r){return(0,s.P)(this,e,t,n,r)}}},99017(e,t,n){"use strict";n.d(t,{P:()=>l});var s=n(51609),r=n(22484),o=n(32566),i=n(83100),a=n(19403);const c=(0,i._)(19)?function(e,t,n,o,i){const c=(0,a.iE)();if(!c)return function(e,t,n,o,i){const a=s.useCallback(()=>t(e.getSnapshot(),n,o,i),[e,t,n,o,i]);return(0,r.useSyncExternalStore)(e.subscribe,a,a)}(e,t,n,o,i);const l=c.syncIndex;let d;c.syncIndex+=1,c.didInitialize?(d=c.syncHooks[l],d.store===e&&d.selector===t&&Object.is(d.a1,n)&&Object.is(d.a2,o)&&Object.is(d.a3,i)||(d.store!==e&&(c.didChangeStore=!0),d.store=e,d.selector=t,d.a1=n,d.a2=o,d.a3=i,d.value=t(e.getSnapshot(),n,o,i))):(d={store:e,selector:t,a1:n,a2:o,a3:i,value:t(e.getSnapshot(),n,o,i)},c.syncHooks.push(d));return d.value}:function(e,t,n,s,r){return(0,o.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,s,r))};function l(e,t,n,s,r){return c(e,t,n,s,r)}(0,a.kz)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){const s=e.syncHooks[n],r=s.selector(s.store.state,s.a1,s.a2,s.a3);Object.is(s.value,r)||(t=!0,s.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{const n=new Set;for(const t of e.syncHooks)n.add(t.store);const s=[];for(const e of n)s.push(e.subscribe(t));return()=>{for(const e of s)e()}}),(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},94541(e,t,n){"use strict";n.d(t,{KP:()=>c,NR:()=>l});var s=n(31749),r=n(31966);const o=null;globalThis.requestAnimationFrame;class i{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;const t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){const t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;return this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){const t=e-this.startId;t<0||t>=this.callbacks.length||null!==this.callbacks[t]&&(this.callbacks[t]=null,this.callbacksCount-=1)}}let a=new i;class c{static create(){return new c}static request(e){return a.request(e)}static cancel(e){return a.cancel(e)}currentId=o;request(e){this.cancel(),this.currentId=a.request(()=>{this.currentId=o,e()})}cancel=()=>{this.currentId!==o&&(a.cancel(this.currentId),this.currentId=o)};disposeEffect=()=>this.cancel}function l(){const e=(0,s.j)(c.create).current;return(0,r.y)(e.disposeEffect),e}},98922(e,t,n){"use strict";n.d(t,{q:()=>r});var s=n(51609);function r({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(void 0!==e),[i,a]=s.useState(t);return[o&&void 0!==e?e:i,s.useCallback(e=>{o||a(e)},[])]}},43784(e,t,n){"use strict";n.d(t,{g:()=>r});var s=n(51609);function r(){const[,e]=s.useState({});return s.useCallback(()=>{e({})},[])}},38583(e,t,n){"use strict";n.d(t,{B:()=>a});var s=n(51609),r=n(96233);let o=0;const i=r.X.useId;function a(e,t){if(void 0!==i){const n=i();return e??(t?`${t}-${n}`:n)}return function(e,t="mui"){const[n,r]=s.useState(e),i=e||n;return s.useEffect(()=>{null==n&&(o+=1,r(`${t}-${o}`))},[n,t]),i}(e,t)}},12002(e,t,n){"use strict";n.d(t,{g:()=>r});var s=n(51609);const r="undefined"!=typeof document?s.useLayoutEffect:()=>{}},8970(e,t,n){"use strict";n.d(t,{U:()=>o,a:()=>r});var s=n(31749);function r(e,t,n,r){const o=(0,s.j)(i).current;return function(e,t,n,s,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==s||e.refs[3]!==r}(o,e,t,n,r)&&a(o,[e,t,n,r]),o.callback}function o(e){const t=(0,s.j)(i).current;return function(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}(t,e)&&a(t,e),t.callback}function i(){return{callback:null,cleanup:null,refs:[]}}function a(e,t){e.refs=t,t.every(e=>null==e)?e.callback=null:e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){const s=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const r=t[e];if(null!=r)switch(typeof r){case"function":{const t=r(n);"function"==typeof t&&(s[e]=t);break}case"object":r.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const n=t[e];if(null!=n)switch(typeof n){case"function":{const t=s[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}},31966(e,t,n){"use strict";n.d(t,{y:()=>o});var s=n(51609),r=n(12570);function o(e){s.useEffect(e,r.Ml)}},31749(e,t,n){"use strict";n.d(t,{j:()=>o});var s=n(51609);const r={};function o(e,t){const n=s.useRef(r);return n.current===r&&(n.current=e(t)),n}},19288(e,t,n){"use strict";n.d(t,{K:()=>a});var s=n(96233),r=n(31749);const o=s.X.useInsertionEffect,i=o&&o!==s.X.useLayoutEffect?o:e=>e();function a(e){const t=(0,r.j)(c).current;return t.next=e,i(t.effect),t.trampoline}function c(){const e={next:void 0,callback:l,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function l(){0}},63405(e,t,n){"use strict";n.d(t,{E:()=>o,Z:()=>i});var s=n(31749),r=n(31966);class o{static create(){return new o}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}function i(){const e=(0,s.j)(o.create).current;return(0,r.y)(e.disposeEffect),e}},87946(e,t,n){"use strict";n.d(t,{u:()=>o});var s=n(12002),r=n(31749);function o(e){const t=(0,r.j)(i,e).current;return t.next=e,(0,s.g)(t.effect),t}function i(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},159(e,t,n){"use strict";n.d(t,{BN:()=>d,ER:()=>p,Ej:()=>u,UU:()=>a,cY:()=>l,rD:()=>i});var s=n(39175);function r(e,t,n){let{reference:r,floating:o}=e;const i=(0,s.TV)(t),a=(0,s.Dz)(t),c=(0,s.sq)(a),l=(0,s.C0)(t),d="y"===i,p=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let g;switch(l){case"top":g={x:p,y:r.y-o.height};break;case"bottom":g={x:p,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-o.width,y:u};break;default:g={x:r.x,y:r.y}}const f=(0,s.Sg)(t);return f&&(g[a]+=h*("end"===f?1:-1)*(n&&d?-1:1)),g}async function o(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:u="floating",altBoundary:h=!1,padding:g=0}=(0,s._3)(t,e),f=(0,s.nI)(g),m=c[h?"floating"===u?"reference":"floating":u],v=(0,s.B1)(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:p,strategy:l})),w="floating"===u?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},k=(0,s.B1)(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:b,strategy:l}):w);return{top:(v.top-k.top+f.top)/y.y,bottom:(k.bottom-v.bottom+f.bottom)/y.y,left:(v.left-k.left+f.left)/y.x,right:(k.right-v.right+f.right)/y.x}}const i=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:a=[],platform:c}=n,l=c.detectOverflow?c:{...c,detectOverflow:o},d=await(null==c.isRTL?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:h}=r(p,s,d),g=s,f=0;const m={};for(let n=0;n<a.length;n++){const o=a[n];if(!o)continue;const{name:v,fn:w}=o,{x:b,y,data:k,reset:_}=await w({x:u,y:h,initialPlacement:s,placement:g,strategy:i,middlewareData:m,rects:p,platform:l,elements:{reference:e,floating:t}});u=null!=b?b:u,h=null!=y?y:h,m[v]={...m[v],...k},_&&f<50&&(f++,"object"==typeof _&&(_.placement&&(g=_.placement),_.rects&&(p=!0===_.rects?await c.getElementRects({reference:e,floating:t,strategy:i}):_.rects),({x:u,y:h}=r(p,g,d))),n=-1)}return{x:u,y:h,placement:g,strategy:i,middlewareData:m}};const a=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:p=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...v}=(0,s._3)(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const w=(0,s.C0)(o),b=(0,s.TV)(c),y=(0,s.C0)(c)===c,k=await(null==l.isRTL?void 0:l.isRTL(d.floating)),_=h||(y||!m?[(0,s.bV)(c)]:(0,s.WJ)(c)),x="none"!==f;!h&&x&&_.push(...(0,s.lP)(c,m,f,k));const j=[c,..._],C=await l.detectOverflow(t,v),S=[];let A=(null==(r=i.flip)?void 0:r.overflows)||[];if(p&&S.push(C[w]),u){const e=(0,s.w7)(o,a,k);S.push(C[e[0]],C[e[1]])}if(A=[...A,{placement:o,overflows:S}],!S.every(e=>e<=0)){var E,M;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=j[e];if(t){if(!("alignment"===u&&b!==(0,s.TV)(t))||A.every(e=>(0,s.TV)(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:A},reset:{placement:t}}}let n=null==(M=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:M.placement;if(!n)switch(g){case"bestFit":{var N;const e=null==(N=A.filter(e=>{if(x){const t=(0,s.TV)(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}};const c=new Set(["left","top"]);const l=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,d=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=(0,s.C0)(n),l=(0,s.Sg)(n),d="y"===(0,s.TV)(n),p=c.has(a)?-1:1,u=i&&d?-1:1,h=(0,s._3)(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&"number"==typeof m&&(f="end"===l?-1*m:m),d?{x:f*u,y:g*p}:{x:g*p,y:f*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:a}}}}},d=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=(0,s._3)(e,t),p={x:n,y:r},u=await i.detectOverflow(t,d),h=(0,s.TV)(o),g=(0,s.PG)(h);let f=p[g],m=p[h];const v=(e,t)=>(0,s.qE)(t+u["y"===e?"top":"left"],t,t-u["y"===e?"bottom":"right"]);a&&(f=v(g,f)),c&&(m=v(h,m));const w=l.fn({...t,[g]:f,[h]:m});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:a,[h]:c}}}}}},p=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:a,rects:l,middlewareData:d}=t,{offset:p=0,mainAxis:u=!0,crossAxis:h=!0}=(0,s._3)(e,t),g={x:o,y:i},f=(0,s.TV)(a),m=(0,s.PG)(f);let v=g[m],w=g[f];const b=(0,s._3)(p,t),y="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(n=b.mainAxis)?n:0,crossAxis:null!=(r=b.crossAxis)?r:0};if(u){const e="y"===m?"height":"width",t=l.reference[m]-l.floating[e]+y.mainAxis,n=l.reference[m]+l.reference[e]-y.mainAxis;v<t?v=t:v>n&&(v=n)}if(h){var k,_;const e="y"===m?"width":"height",t=c.has((0,s.C0)(a)),n=l.reference[f]-l.floating[e]+(t&&(null==(k=d.offset)?void 0:k[f])||0)+(t?0:y.crossAxis),r=l.reference[f]+l.reference[e]+(t?0:(null==(_=d.offset)?void 0:_[f])||0)-(t?y.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[m]:v,[f]:w}}}},u=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...c}=(0,s._3)(e,t),l=await o.detectOverflow(t,c),d=(0,s.C0)(n),p=(0,s.Sg)(n),u="y"===(0,s.TV)(n),{width:h,height:g}=r.floating;let f,m;"top"===d||"bottom"===d?(f=d,m=p===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=d,f="end"===p?"top":"bottom");const v=g-l.top-l.bottom,w=h-l.left-l.right,b=(0,s.jk)(g-l[f],v),y=(0,s.jk)(h-l[m],w),k=t.middlewareData.shift,_=!k;let x=b,j=y;null!=k&&k.enabled.x&&(j=w),null!=k&&k.enabled.y&&(x=v),_&&!p&&(u?j=h-2*(0,s.T9)(l.left,l.right):x=g-2*(0,s.T9)(l.top,l.bottom)),await a({...t,availableWidth:j,availableHeight:x});const C=await o.getDimensions(i.floating);return h!==C.width||g!==C.height?{reset:{rects:!0}}:{}}}}},25569(e,t,n){"use strict";n.d(t,{BN:()=>x,ER:()=>S,Ej:()=>C,UU:()=>j,cY:()=>_,ll:()=>k,rD:()=>A});var s=n(159),r=n(39175),o=n(81289);function i(e){const t=(0,o.L9)(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=(0,o.sb)(e),a=i?e.offsetWidth:n,c=i?e.offsetHeight:s,l=(0,r.LI)(n)!==a||(0,r.LI)(s)!==c;return l&&(n=a,s=c),{width:n,height:s,$:l}}function a(e){return(0,o.vq)(e)?e:e.contextElement}function c(e){const t=a(e);if(!(0,o.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:s,height:c,$:l}=i(t);let d=(l?(0,r.LI)(n.width):n.width)/s,p=(l?(0,r.LI)(n.height):n.height)/c;return d&&Number.isFinite(d)||(d=1),p&&Number.isFinite(p)||(p=1),{x:d,y:p}}const l=(0,r.Jx)(0);function d(e){const t=(0,o.zk)(e);return(0,o.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:l}function p(e,t,n,s){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),l=a(e);let p=(0,r.Jx)(1);t&&(s?(0,o.vq)(s)&&(p=c(s)):p=c(e));const u=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===(0,o.zk)(e)}(l,n,s)?d(l):(0,r.Jx)(0);let h=(i.left+u.x)/p.x,g=(i.top+u.y)/p.y,f=i.width/p.x,m=i.height/p.y;if(l&&s){const e=(0,o.zk)(l),t=(0,o.vq)(s)?(0,o.zk)(s):s;let n=e,r=(0,o._m)(n);for(;r&&t!==n;){const e=c(r),t=r.getBoundingClientRect(),s=(0,o.L9)(r),i=t.left+(r.clientLeft+parseFloat(s.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(s.paddingTop))*e.y;h*=e.x,g*=e.y,f*=e.x,m*=e.y,h+=i,g+=a,n=(0,o.zk)(r),r=(0,o._m)(n)}}return(0,r.B1)({width:f,height:m,x:h,y:g})}function u(e,t){const n=(0,o.CP)(e).scrollLeft;return t?t.left+n:p((0,o.ep)(e)).left+n}function h(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-u(e,n),y:n.top+t.scrollTop}}function g(e,t,n){let s;if("viewport"===t||"layoutViewport"===t)s=function(e,t,n){void 0===n&&(n="viewport");const s="layoutViewport"===n,r=(0,o.zk)(e),i=(0,o.ep)(e),a=r.visualViewport;let c=i.clientWidth,l=i.clientHeight,d=0,p=0;if(a){const e=!(0,o.Tc)()||"fixed"===t;s?e||(d=-a.offsetLeft,p=-a.offsetTop):(c=a.width,l=a.height,e&&(d=a.offsetLeft,p=a.offsetTop))}if(u(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),s="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(i.clientWidth-t.clientWidth-s),o="stable both-edges"===getComputedStyle(i).scrollbarGutter?r/2:r;o<=25&&(c-=o)}return{width:c,height:l,x:d,y:p}}(e,n,t);else if("document"===t)s=function(e){const t=(0,o.CP)(e),n=e.ownerDocument.body,s=(0,r.T9)(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=(0,r.T9)(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+u(e);const c=-t.scrollTop;return"rtl"===(0,o.L9)(n).direction&&(a+=(0,r.T9)(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:a,y:c}}((0,o.ep)(e));else if((0,o.vq)(t))s=function(e,t){const n=p(e,!0,"fixed"===t),s=n.top+e.clientTop,r=n.left+e.clientLeft,o=c(e);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:r*o.x,y:s*o.y}}(t,n);else{const n=d(e);s={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(s)}function f(e,t,n){const s=(0,o.sb)(t),i=(0,o.ep)(t),a="fixed"===n,c=p(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=(0,r.Jx)(0);if((s||!a)&&(("body"!==(0,o.mq)(t)||(0,o.ZU)(i))&&(l=(0,o.CP)(t)),s)){const e=p(t,!0,a,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}!s&&i&&(d.x=u(i));const g=!i||s||a?(0,r.Jx)(0):h(i,l);return{x:c.left+l.scrollLeft-d.x-g.x,y:c.top+l.scrollTop-d.y-g.y,width:c.width,height:c.height}}function m(e){return"static"===(0,o.L9)(e).position}function v(e,t){if(!(0,o.sb)(e)||"fixed"===(0,o.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,o.ep)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){const n=(0,o.zk)(e);if((0,o.Tf)(e))return n;if(!(0,o.sb)(e)){let t=(0,o.$4)(e);for(;t&&!(0,o.eu)(t);){if((0,o.vq)(t)&&!m(t))return t;t=(0,o.$4)(t)}return n}let s=v(e,t);for(;s&&(0,o.Lv)(s)&&m(s);)s=v(s,t);return s&&(0,o.eu)(s)&&m(s)&&!(0,o.sQ)(s)?n:s||(0,o.gJ)(e)||n}const b={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const a="fixed"===i,l=(0,o.ep)(s),d=!!t&&(0,o.Tf)(t.floating);if(s===l||d&&a)return n;let u={scrollLeft:0,scrollTop:0},g=(0,r.Jx)(1);const f=(0,r.Jx)(0),m=(0,o.sb)(s);if((m||!a)&&(("body"!==(0,o.mq)(s)||(0,o.ZU)(l))&&(u=(0,o.CP)(s)),m)){const e=p(s);g=c(s),f.x=e.x+s.clientLeft,f.y=e.y+s.clientTop}const v=!l||m||a?(0,r.Jx)(0):h(l,u);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-u.scrollLeft*g.x+f.x+v.x,y:n.y*g.y-u.scrollTop*g.y+f.y+v.y}},getDocumentElement:o.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const a=[..."clippingAncestors"===n?(0,o.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let s=(0,o.v9)(e,[],!1).filter(e=>(0,o.vq)(e)&&"body"!==(0,o.mq)(e)),r=null;const i="fixed"===(0,o.L9)(e).position;let a=i?(0,o.$4)(e):e;for(;(0,o.vq)(a)&&!(0,o.eu)(a);){const e=(0,o.L9)(a),t=(0,o.sQ)(a),n=r?r.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?r=e:s=s.filter(e=>e!==a),a=(0,o.$4)(a)}return t.set(e,s),s}(t,this._c):[].concat(n),s],c=g(t,a[0],i);let l=c.top,d=c.right,p=c.bottom,u=c.left;for(let e=1;e<a.length;e++){const n=g(t,a[e],i);l=(0,r.T9)(n.top,l),d=(0,r.jk)(n.right,d),p=(0,r.jk)(n.bottom,p),u=(0,r.T9)(n.left,u)}return{width:d-u,height:p-l,x:u,y:l}},getOffsetParent:w,getElementRects:async function(e){const t=this.getOffsetParent||w,n=this.getDimensions,s=await n(e.floating);return{reference:f(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=i(e);return{width:t,height:n}},getScale:c,isElement:o.vq,isRTL:function(e){return"rtl"===(0,o.L9)(e).direction}};function y(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k(e,t,n,s){void 0===s&&(s={});const{ancestorScroll:i=!0,ancestorResize:c=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:u=!1}=s,h=a(e),g=i||c?[...h?(0,o.v9)(h):[],...t?(0,o.v9)(t):[]]:[];g.forEach(e=>{i&&e.addEventListener("scroll",n),c&&e.addEventListener("resize",n)});const f=h&&d?function(e,t,n){let s,i=null;const a=(0,o.ep)(e);function c(){var e;clearTimeout(s),null==(e=i)||e.disconnect(),i=null}function l(n,o){void 0===n&&(n=!1),void 0===o&&(o=1),c();const d=e.getBoundingClientRect(),{left:p,top:u,width:h,height:g}=d;if(n||t(),!h||!g)return;const f={rootMargin:-(0,r.RI)(u)+"px "+-(0,r.RI)(a.clientWidth-(p+h))+"px "+-(0,r.RI)(a.clientHeight-(u+g))+"px "+-(0,r.RI)(p)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,o))||1};let m=!0;function v(t){const n=t[0].intersectionRatio;if(!y(d,e.getBoundingClientRect()))return l();if(n!==o){if(!m)return l();n?l(!1,n):s=setTimeout(()=>{l(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(v,{...f,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(v,f)}i.observe(e)}const d=(0,o.zk)(e),p=()=>l(n);return d.addEventListener("resize",p),l(!0),()=>{d.removeEventListener("resize",p),c()}}(h,n,c):null;let m,v=-1,w=null;l&&(w=new ResizeObserver(e=>{let[s]=e;s&&s.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),h&&!u&&w.observe(h),t&&w.observe(t));let b=u?p(e):null;return u&&function t(){const s=p(e);b&&!y(b,s)&&n();b=s,m=requestAnimationFrame(t)}(),n(),()=>{var e;g.forEach(e=>{i&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=w)||e.disconnect(),w=null,u&&cancelAnimationFrame(m)}}const _=s.cY,x=s.BN,j=s.UU,C=s.Ej,S=s.ER,A=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...b,...o.platform,_c:r};return(0,s.rD)(e,t,{...o,platform:i})}},10469(e,t,n){"use strict";n.d(t,{BN:()=>h,ER:()=>g,Ej:()=>m,UU:()=>f,cY:()=>u,we:()=>p});var s=n(25569),r=n(51609),o=n(75795),i="undefined"!=typeof document?r.useLayoutEffect:function(){};function a(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,s,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;0!==s--;)if(!a(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;0!==s--;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;0!==s--;){const n=r[s];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l(e,t){const n=c(e);return Math.round(t*n)/n}function d(e){const t=r.useRef(e);return i(()=>{t.current=e}),t}function p(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:p=[],platform:u,elements:{reference:h,floating:g}={},transform:f=!0,whileElementsMounted:m,open:v}=e,[w,b]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,k]=r.useState(p);a(y,p)||k(p);const[_,x]=r.useState(null),[j,C]=r.useState(null),S=r.useCallback(e=>{e!==N.current&&(N.current=e,x(e))},[]),A=r.useCallback(e=>{e!==T.current&&(T.current=e,C(e))},[]),E=h||_,M=g||j,N=r.useRef(null),T=r.useRef(null),O=r.useRef(w),z=null!=m,R=d(m),I=d(u),P=d(v),L=r.useCallback(()=>{if(!N.current||!T.current)return;const e={placement:t,strategy:n,middleware:y};I.current&&(e.platform=I.current),(0,s.rD)(N.current,T.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};D.current&&!a(O.current,t)&&(O.current=t,o.flushSync(()=>{b(t)}))})},[y,t,n,I,P]);i(()=>{!1===v&&O.current.isPositioned&&(O.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[v]);const D=r.useRef(!1);i(()=>(D.current=!0,()=>{D.current=!1}),[]),i(()=>{if(E&&(N.current=E),M&&(T.current=M),E&&M){if(R.current)return R.current(E,M,L);L()}},[E,M,L,R,z]);const F=r.useMemo(()=>({reference:N,floating:T,setReference:S,setFloating:A}),[S,A]),U=r.useMemo(()=>({reference:E,floating:M}),[E,M]),V=r.useMemo(()=>{const e={position:n,left:0,top:0};if(!U.floating)return e;const t=l(U.floating,w.x),s=l(U.floating,w.y);return f?{...e,transform:"translate("+t+"px, "+s+"px)",...c(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:s}},[n,f,U.floating,w.x,w.y]);return r.useMemo(()=>({...w,update:L,refs:F,elements:U,floatingStyles:V}),[w,L,F,U,V])}const u=(e,t)=>{const n=(0,s.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{const n=(0,s.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},g=(e,t)=>({fn:(0,s.ER)(e).fn,options:[e,t]}),f=(e,t)=>{const n=(0,s.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{const n=(0,s.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}}},81289(e,t,n){"use strict";function s(){return"undefined"!=typeof window}function r(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!s()&&(e instanceof Node||e instanceof o(e).Node)}function c(e){return!!s()&&(e instanceof Element||e instanceof o(e).Element)}function l(e){return!!s()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function d(e){return!(!s()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function p(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&"inline"!==r&&"contents"!==r}function u(e){return/^(table|td|th)$/.test(r(e))}function h(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{$4:()=>j,CP:()=>x,L9:()=>_,Ll:()=>a,Lv:()=>u,Ng:()=>d,Tc:()=>y,Tf:()=>h,ZU:()=>p,_m:()=>A,ep:()=>i,eu:()=>k,gJ:()=>b,mq:()=>r,sQ:()=>w,sb:()=>l,v9:()=>S,vq:()=>c,zk:()=>o});const g=/transform|translate|scale|rotate|perspective|filter/,f=/paint|layout|strict|content/,m=e=>!!e&&"none"!==e;let v;function w(e){const t=c(e)?_(e):e;return m(t.transform)||m(t.translate)||m(t.scale)||m(t.rotate)||m(t.perspective)||!y()&&(m(t.backdropFilter)||m(t.filter))||g.test(t.willChange||"")||f.test(t.contain||"")}function b(e){let t=j(e);for(;l(t)&&!k(t);){if(w(t))return t;if(h(t))return null;t=j(t)}return null}function y(){return null==v&&(v="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),v}function k(e){return/^(html|body|#document)$/.test(r(e))}function _(e){return o(e).getComputedStyle(e)}function x(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||i(e);return d(t)?t.host:t}function C(e){const t=j(e);return k(t)?(e.ownerDocument||e).body:l(t)&&p(t)?t:C(t)}function S(e,t,n){var s;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=C(e),i=r===(null==(s=e.ownerDocument)?void 0:s.body),a=o(r);if(i){const e=A(a);return t.concat(a,a.visualViewport||[],p(r)?r:[],e&&n?S(e):[])}return t.concat(r,S(r,[],n))}function A(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},39175(e,t,n){"use strict";n.d(t,{B1:()=>A,C0:()=>p,Dz:()=>m,Jx:()=>a,LI:()=>o,PG:()=>h,RI:()=>i,Sg:()=>u,T9:()=>r,TV:()=>f,WJ:()=>w,_3:()=>d,bV:()=>C,jk:()=>s,lP:()=>j,nI:()=>S,qE:()=>l,sq:()=>g,w7:()=>v});const s=Math.min,r=Math.max,o=Math.round,i=Math.floor,a=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function l(e,t,n){return r(e,s(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function u(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function f(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return h(f(e))}function v(e,t,n){void 0===n&&(n=!1);const s=u(e),r=m(e),o=g(r);let i="x"===r?s===(n?"end":"start")?"right":"left":"start"===s?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=C(i)),[i,C(i)]}function w(e){const t=C(e);return[b(e),t,b(t)]}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y=["left","right"],k=["right","left"],_=["top","bottom"],x=["bottom","top"];function j(e,t,n,s){const r=u(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?k:y:t?y:k;case"left":case"right":return t?_:x;default:return[]}}(p(e),"start"===n,s);return r&&(o=o.map(e=>e+"-"+r),t&&(o=o.concat(o.map(b)))),o}function C(e){const t=p(e);return c[t]+e.slice(t.length)}function S(e){return"number"!=typeof e?function(e){var t,n,s,r;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(s=e.bottom)?s:0,left:null!=(r=e.left)?r:0}}(e):{top:e,right:e,bottom:e,left:e}}function A(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}},13109(e,t,n){"use strict";n.d(t,{A:()=>r});var s=n(86087),r=(0,s.forwardRef)(({icon:e,size:t=24,style:n,...r},o)=>{const i=e.props.style,a=i||n?{...i,...n}:void 0;return(0,s.cloneElement)(e,{width:t,height:t,...r,...a?{style:a}:{},ref:o})})},53758(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(s.Path,{d:"M12 8L12 13M12 14.5L12 16M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})},48329(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(s.Path,{d:"M10 6.5L15 12L10 17.5",vectorEffect:"non-scaling-stroke"})})},65995(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(s.Path,{d:"M7.75 16.25L16.25 7.75M16.25 16.25L7.75 7.75",vectorEffect:"non-scaling-stroke"})})},51489(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(s.Path,{d:"M5 19L19 5M19 19L5 5",vectorEffect:"non-scaling-stroke"})})},49099(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.218 5.377a.25.25 0 0 0-.436 0l-7.29 12.96a.25.25 0 0 0 .218.373h14.58a.25.25 0 0 0 .218-.372l-7.29-12.96Zm-1.743-.735c.669-1.19 2.381-1.19 3.05 0l7.29 12.96a1.75 1.75 0 0 1-1.525 2.608H4.71a1.75 1.75 0 0 1-1.525-2.608l7.29-12.96ZM12.75 17.46h-1.5v-1.5h1.5v1.5Zm-1.5-3h1.5v-5h-1.5v5Z"})})},1866(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,r.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"})})},28847(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(s.Path,{d:"M12 16V11M12 9.5V8M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})},42243(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:[(0,r.jsx)(s.Path,{d:"M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),(0,r.jsx)(s.Path,{d:"M9 12L11 14L15 10",vectorEffect:"non-scaling-stroke"})]})},20907(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(5573),r=n(10790),o=(0,r.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{fill:"none"},stroke:"currentColor",strokeWidth:"1.5",children:(0,r.jsx)(s.Path,{d:"M5 19L9.28769 14.7123M18.25 11C18.25 13.8995 15.8995 16.25 13 16.25C10.1005 16.25 7.75 13.8995 7.75 11C7.75 8.10051 10.1005 5.75 13 5.75C15.8995 5.75 18.25 8.10051 18.25 11Z",vectorEffect:"non-scaling-stroke"})})},55294(e,t,n){"use strict";n.d(t,{yf:()=>r});var s=["@wordpress/admin-ui","@wordpress/api-fetch","@wordpress/block-directory","@wordpress/block-editor","@wordpress/block-library","@wordpress/blocks","@wordpress/boot","@wordpress/commands","@wordpress/compose","@wordpress/connectors","@wordpress/workflows","@wordpress/components","@wordpress/core-commands","@wordpress/core-data","@wordpress/customize-widgets","@wordpress/data","@wordpress/edit-post","@wordpress/edit-site","@wordpress/edit-widgets","@wordpress/editor","@wordpress/font-list-route","@wordpress/format-library","@wordpress/patterns","@wordpress/preferences","@wordpress/rich-text","@wordpress/route","@wordpress/router","@wordpress/routes","@wordpress/storybook","@wordpress/sync","@wordpress/theme","@wordpress/dataviews","@wordpress/fields","@wordpress/lazy-editor","@wordpress/media-editor","@wordpress/media-utils","@wordpress/upload-media","@wordpress/global-styles-engine","@wordpress/global-styles-ui","@wordpress/ui","@wordpress/views","@wordpress/widget-dashboard"],r=(e,t)=>{if(!s.includes(t))throw new Error(`You tried to opt-in to unstable APIs as module "${t}". This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.`);if("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress."!==e)throw new Error("You tried to opt-in to unstable APIs without confirming you know the consequences. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on the next WordPress release.");return{lock:o,unlock:i}};function o(e,t){if(!e)throw new Error("Cannot lock an undefined object.");const n=e;c in n||(n[c]={}),a.set(n[c],t)}function i(e){if(!e)throw new Error("Cannot unlock an undefined object.");const t=e;if(!(c in t))throw new Error("Cannot unlock an object that was not locked before. ");return a.get(t[c])}var a=new WeakMap,c=Symbol("Private API ID")},29174(e,t,n){"use strict";n.d(t,{Ax:()=>c,BM:()=>d});var s=n(83749),r=n(85728),o=n(46582),i=n(96301),a=n(13132);function c(e){if("string"!=typeof e||""===e.trim())throw new Error("Seed color must be a non-empty string");return(0,o.N)(e,a.m)}var l="surface2";function d(e,t){if("string"!=typeof e||""===e.trim())throw new Error("Seed color must be a non-empty string");const n=t?{mainDirection:(c=t).direction,pinLightness:{stepName:l,value:(0,i.C2)((0,s.A)(c.ramp[l],[r.A,"l"]),c.direction)}}:void 0;var c;return(0,o.N)(e,a.l,n)}},96339(e,t,n){"use strict";n.d(t,{CS:()=>w,Hw:()=>f,bJ:()=>m,jB:()=>b});var s=n(57602),r=n(317),o=n(45266),i=n(4576),a=n(96715),c=n(20380),l=n(83080),d=n(77840),p=n(59667),u=n(85728),h=[r.A],g=new WeakMap;function f(e){s.A.register(r.A);const t=(0,a.A)((0,i.A)(e,r.A));return(0,a.A)(t,{format:"hex"})}function m(e,t){return n=v(e),s=v(t),n>s?(n+.05)/(s+.05):(s+.05)/(n+.05);var n,s}function v(e){if("string"==typeof e)return s.A.register(r.A),Math.max((0,p.J1)(e),0);const t=g.get(e);if(t&&(0,l.A)(t.color,e))return t.luminance;const n=Math.max((0,p.J1)(e),0);return g.set(e,{color:(0,d.A)(e),luminance:n}),n}function w(e){let t;h.forEach(e=>s.A.register(e));try{t=(0,o.Ay)(e)}catch{throw new Error(`Unsupported seed color "${e}": expected a fully opaque hex value, an \`rgb()\`/\`rgba()\` string, or a CSS named color.`)}const{alpha:n=1,spaceId:r}=t;if(!h.some(e=>e.id===r))throw new Error(`Unsupported seed color "${e}": expected a fully opaque hex value, an \`rgb()\`/\`rgba()\` string, or a CSS named color, but received a \`${r}\` color.`);if(1!==n)throw new Error(`Unsupported seed color "${e}": expected a fully opaque color.`);return t}function b(e){return(0,i.A)((0,c.Ay)(e,{space:r.A,method:"css"}),u.A)}},35189(e,t,n){"use strict";n.d(t,{Tq:()=>c,UE:()=>r,Uv:()=>o,iV:()=>a,nI:()=>p,oR:()=>i,r8:()=>d,yh:()=>l});var s=n(85728),r={space:s.A,coords:[1,0,0],alpha:1},o={space:s.A,coords:[0,0,0],alpha:1},i=.02,a=3.1,c={lighter:{min:.2,max:.4},darker:{min:.75,max:.98}},l=.004,d=10,p={background:"#fcfcfc",primary:"#3858e9",info:"#0090ff",success:"#4ab866",caution:"#f0d149",warning:"#f0b849",error:"#cc1818"}},7685(e,t,n){"use strict";n.d(t,{a:()=>d});var s=n(83749),r=n(85728),o=n(96301),i=n(35189),a=n(96339),c=n(8043);function l(e,t){return Math.log(e/t)}function d(e,t,n,d,{lightnessConstraint:p,taperChromaOptions:u}={}){if(n<=1)return{color:e,reached:!0,achieved:1};const h=(0,s.A)(t,[r.A,"c"]),g=(0,s.A)(t,[r.A,"h"]),f=u?(0,c.V)(t,u):void 0;function m(e){let n=e,s=h;if(f){const e=f(n);if(!("l"in e)||!("c"in e))return e;n=e.l,s=e.c}return(0,a.jB)({space:r.A,coords:[n,s,g],alpha:t.alpha})}const v="lighter"===d?1:0,w="lighter"===d?i.UE:i.Uv,b=(0,a.bJ)(e,w);if(p){const t=m(p.value),s=(0,a.bJ)(e,t),r=l(s,n)>=-i.yh;if(r||"force"===p.type)return{color:t,reached:r,achieved:s,deficit:r?l(s,b):l(n,s)}}if(l(b,n)<=i.yh)return{color:w,reached:l(b,n)>=-i.yh,achieved:b,deficit:l(n,b)};const y=(0,s.A)(e,[r.A,"l"]),k=l(1,n),_=v,x=l(b,n);return{color:(0,o.A6)(m,t=>l((0,a.bJ)(e,t),n),y,k,_,x),reached:!0,achieved:n,deficit:l(n,b)}}},46582(e,t,n){"use strict";n.d(t,{N:()=>u});var s=n(83749),r=n(14721),o=n(77840),i=n(85728),a=n(96339),c=n(7685),l=n(96301),d=n(35189);function p({seed:e,sortedSteps:t,config:n,mainDir:s,oppDir:r,pinLightness:o}){const i={};let p,u,h=-1/0,g="lighter";const f=new Map;f.set("seed",e);for(const m of t){let t=function(e,t){return"main"===t?s:"opposite"===t?r:"best"===t?(0,l.tp)(e,v.preferLighter).better:t};const{contrast:v,lightness:w,taperChromaOptions:b,sameAsIfPossible:y}=n[m],k=[v.reference,...v.additionalReferences??[]].map(e=>{const t=f.get(e);if(!t)throw new Error(`Reference color for step ${m} not found: ${e}`);return t});if(y){const e=f.get(y);if(!e)throw new Error(`Same-as color for step ${m} not found: ${y}`);const t=(0,l.Pr)(v.target);if(k.every(n=>(0,a.bJ)(n,e)>=t)){f.set(m,e),i[m]=(0,a.Hw)(e);continue}}const _=t(k,v.followDirection),x="lighter"===_?d.UE:d.Uv,j=k.reduce((e,t)=>(0,a.bJ)(t,x)<(0,a.bJ)(e,x)?t:e),C=(0,l.Pr)(v.target);let S;o?.stepName===m?S={value:o.value,type:"force"}:w&&(S={value:w(_),type:"onlyIfSucceeds"});const A=(0,c.a)(j,e,C,_,{lightnessConstraint:S,taperChromaOptions:b});!v.ignoreWhenAdjustingSeed&&A.deficit&&A.deficit>h&&(h=A.deficit,g=_,u=m),f.set(m,A.color),i[m]=(0,a.Hw)(A.color),A.reached||v.ignoreWhenAdjustingSeed||(p??=[],p.push(m))}return{rampResults:i,warnings:p,maxDeficit:h,maxDeficitDirection:g,maxDeficitStep:u}}function u(e,t,{mainDirection:n,pinLightness:c,rescaleToFitContrastTargets:u=!0}={}){const h=(0,a.CS)(e);let g;try{g=(0,a.jB)(h)}catch(t){throw new Error(`Invalid seed color "${e}": ${t instanceof Error?t.message:"Unknown error"}`)}let f="lighter",m="darker";if(n)f=n,m="darker"===n?"lighter":"darker";else{const{better:e,worse:t}=(0,l.tp)(g);f=e,m=t}const v=(0,l.xQ)(t),{rampResults:w,warnings:b,maxDeficit:y,maxDeficitDirection:k,maxDeficitStep:_}=p({seed:g,sortedSteps:v,config:t,mainDir:f,oppDir:m,pinLightness:c});let x=w,j=b;if(y>d.yh&&u){let e=function(e){return(0,a.jB)((0,r.A)((0,o.A)(g),[i.A,"l"],e))},n=function(e){const n=p({seed:e,sortedSteps:d,config:t,mainDir:f,oppDir:m,pinLightness:c});return n.maxDeficitDirection===k?n.maxDeficit:-y};const d=(0,l.Lr)(_,t),u="lighter"===k?0:1,h=-y,w=(0,s.A)(g,[i.A,"l"]),b=y,C=p({seed:(0,l.A6)(e,n,u,h,w,b),sortedSteps:v,config:t,mainDir:f,oppDir:m,pinLightness:c});x=C.rampResults,j=C.warnings}if("darker"===f){const e=x.surface1;x.surface1=x.surface3,x.surface3=e}return{ramp:x,warnings:j,direction:f}}},13132(e,t,n){"use strict";n.d(t,{l:()=>d,m:()=>l});var s=e=>"lighter"===e?.9551:.235,r={alpha:.7},o={alpha:.6,kLight:.2,kDark:.2},i={alpha:.6,radiusDark:.01,radiusLight:.01,kLight:.8,kDark:.8},a={alpha:.75,radiusDark:.01,radiusLight:.01},c={contrast:{reference:"surface3",followDirection:"main",target:7,preferLighter:!0},lightness:s,taperChromaOptions:o},l={surface1:{contrast:{reference:"surface2",followDirection:"opposite",target:1.06,ignoreWhenAdjustingSeed:!0},taperChromaOptions:r},surface2:{contrast:{reference:"seed",followDirection:"main",target:1}},surface3:{contrast:{reference:"surface2",followDirection:"main",target:1.06},taperChromaOptions:r},surface4:{contrast:{reference:"surface2",followDirection:"main",target:1.12},taperChromaOptions:r},surface5:{contrast:{reference:"surface2",followDirection:"main",target:1.2},taperChromaOptions:r},surface6:{contrast:{reference:"surface2",followDirection:"main",target:1.4},taperChromaOptions:r},bgFill1:{contrast:{reference:"surface2",followDirection:"main",target:4},lightness:e=>"lighter"===e?.67:.45},bgFill2:{contrast:{reference:"bgFill1",followDirection:"main",target:1.2}},bgFillInverted1:{contrast:{reference:"bgFillInverted2",followDirection:"opposite",target:1.2}},bgFillInverted2:c,bgFillDark:{contrast:{reference:"surface3",followDirection:"darker",target:7,ignoreWhenAdjustingSeed:!0},lightness:s,taperChromaOptions:o},stroke1:{contrast:{reference:"stroke3",followDirection:"opposite",target:2.9},taperChromaOptions:i},stroke2:{contrast:{reference:"stroke3",followDirection:"opposite",target:2.4},taperChromaOptions:i},stroke3:{contrast:{reference:"surface3",followDirection:"main",target:3},taperChromaOptions:i},stroke4:{contrast:{reference:"stroke3",followDirection:"main",target:1.5},taperChromaOptions:i},fgSurface1:{contrast:{reference:"surface3",followDirection:"main",target:2,preferLighter:!0},taperChromaOptions:o},fgSurface2:{contrast:{reference:"surface3",followDirection:"main",target:3,preferLighter:!0},taperChromaOptions:o},fgSurface3:{contrast:{reference:"surface3",followDirection:"main",target:4.5,preferLighter:!0},lightness:e=>"lighter"===e?.77:.56,taperChromaOptions:o},fgSurface4:c,fgFill:{contrast:{reference:"bgFill1",additionalReferences:["bgFill2"],followDirection:"best",target:4.55},lightness:s,taperChromaOptions:o},fgFillInverted:{contrast:{reference:"bgFillInverted1",followDirection:"best",target:4.5,preferLighter:!0},lightness:s,taperChromaOptions:o},fgFillDark:{contrast:{reference:"bgFillDark",followDirection:"best",target:4.5,preferLighter:!0},lightness:s,taperChromaOptions:o}},d={...l,surface1:{...l.surface1,taperChromaOptions:a},surface2:{contrast:{reference:"bgFill1",followDirection:"opposite",target:l.bgFill1.contrast.target,ignoreWhenAdjustingSeed:!0},taperChromaOptions:a},surface3:{...l.surface3,taperChromaOptions:a},surface4:{...l.surface4,taperChromaOptions:a},surface5:{...l.surface5,taperChromaOptions:a},surface6:{...l.surface6,taperChromaOptions:a},bgFill1:{contrast:{reference:"seed",followDirection:"main",target:1}},stroke1:{...l.stroke1},stroke2:{...l.stroke2},stroke3:{...l.stroke3,sameAsIfPossible:"fgSurface3",taperChromaOptions:void 0},stroke4:{...l.stroke4,taperChromaOptions:void 0},fgSurface1:{...l.fgSurface1,taperChromaOptions:void 0},fgSurface2:{...l.fgSurface2,taperChromaOptions:void 0},fgSurface3:{...l.fgSurface3,taperChromaOptions:void 0,sameAsIfPossible:"bgFill1"},fgSurface4:{...l.fgSurface4,taperChromaOptions:void 0}}},8043(e,t,n){"use strict";n.d(t,{V:()=>a});var s=n(317),r=n(83749),o=n(20380),i=n(85728);function a(e,t={}){const n=t.gamut??s.A,o=t.alpha??.65,a=t.carry??.5,u=t.radiusLight??.2,h=t.radiusDark??.2,g=t.kLight??.85,f=t.kDark??.85,m=t.achromaEpsilon??.005,v=Math.max(0,(0,r.A)(e,[i.A,"c"]));let w=(0,r.A)(e,[i.A,"h"]);const b=v<m,y=null===w||!Number.isFinite(w);if(b||y){if("number"!=typeof t.hueFallback)return e=>({space:i.A,coords:[c(e),0,0],alpha:1});w=l(t.hueFallback)}const k=c((0,r.A)(e,[i.A,"l"])),_=p(k,w,n),x=c(v/(_>0?_:1e-6)),j=Math.pow(x,c(a));return e=>{const t=p(c(e),w,n),s=o*t*j*function(e,t,n){const s=t-e;if(s>=0){const e=n.radiusLight>0?Math.abs(s)/n.radiusLight:1,t=d(e>1?1:e);return 1-(1-n.kLight)*t}const r=n.radiusDark>0?Math.abs(s)/n.radiusDark:1,o=d(r>1?1:r);return 1-(1-n.kDark)*o}(k,e,{radiusLight:u,radiusDark:h,kLight:g,kDark:f});return{l:c(e),c:s}}}function c(e){return e<0?0:e>1?1:e}function l(e){let t=e%360;return t<0&&(t+=360),t}function d(e){const t=c(e);return.5-.5*Math.cos(Math.PI*t)}function p(e,t,n){const s={space:i.A,coords:[c(e),.45,l(t)],alpha:1},a=(0,o.bX)(s,{space:n});return(0,r.A)(a,[i.A,"c"])}},96301(e,t,n){"use strict";n.d(t,{A6:()=>d,C2:()=>l,Lr:()=>i,Pr:()=>c,tp:()=>a,xQ:()=>o});var s=n(35189),r=n(96339);function o(e){const{dependents:t}=function(e){const t=new Map,n=new Map;return Object.keys(e).forEach(e=>{t.set(e,[])}),n.set("seed",[]),Object.keys(e).forEach(e=>{n.set(e,[])}),Object.entries(e).forEach(([e,s])=>{const r=e,o=[s.contrast.reference,...s.contrast.additionalReferences??[]];for(const e of o)t.get(r).push(e),n.get(e).push(r);s.sameAsIfPossible&&(t.get(r).push(s.sameAsIfPossible),n.get(s.sameAsIfPossible).push(r))}),{dependencies:t,dependents:n}}(e),n=[],s=new Set,r=new Set;return function e(o){if(r.has(o))throw new Error(`Circular dependency detected involving step: ${String(o)}`);if(s.has(o))return;r.add(o),(t.get(o)||[]).forEach(t=>{e(t)}),r.delete(o),s.add(o),"seed"!==o&&n.unshift(o)}("seed"),n}function i(e,t){const n=new Set;return function e(s){if("seed"===s||n.has(s))return;const r=t[s];r&&(e(r.contrast.reference),r.contrast.additionalReferences?.forEach(e),r.sameAsIfPossible&&e(r.sameAsIfPossible),n.add(s))}(e),Array.from(n)}function a(e,t){const n=Array.isArray(e)?e:[e];return Math.min(...n.map(e=>(0,r.bJ)(e,s.Uv)))>Math.min(...n.map(e=>(0,r.bJ)(e,s.UE)))+(t?s.iV:0)?{better:"darker",worse:"lighter"}:{better:"lighter",worse:"darker"}}function c(e){return 1===e?1:e+s.oR}function l(e,t){const n=s.Tq[t];return Math.max(n.min,Math.min(n.max,e))}function d(e,t,n,r,o,i){let a,c,l=n,d=r,p=!1,u=o,h=i,g=!1,f=0;for(;;){f++;const n=(l*h-u*d)/(h-d);if(a=e(n),c=t(a),Math.abs(c)<=s.yh||f>=s.r8)break;c<=0?(l=n,d=c,p&&(h/=2),p=!0,g=!1):(u=n,h=c,g&&(d/=2),g=!0,p=!1)}return a}},42271(e,t,n){"use strict";n.d(t,{D:()=>s});var s=(0,n(86087).createContext)({resolvedSettings:{color:{},cursor:void 0,cornerRadius:void 0}})},57290(e,t,n){"use strict";n.r(t),n.d(t,{ThemeProvider:()=>r.N,privateApis:()=>s.j});var s=n(93843),r=n(90697)},35424(e,t,n){"use strict";n.d(t,{s:()=>r});var s=n(55294),{lock:r,unlock:o}=(0,s.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/theme")},29572(e,t,n){"use strict";n.d(t,{A:()=>s});var s={transparent:["background-interactive-brand-weak","background-interactive-brand-weak-disabled","background-interactive-error","background-interactive-error-disabled","background-interactive-error-weak","background-interactive-error-weak-disabled","background-interactive-neutral-weak","background-interactive-neutral-weak-disabled"],"primary-bgFill1":["background-interactive-brand-strong"],"primary-bgFill2":["background-interactive-brand-strong-active"],"primary-fgFill":["foreground-interactive-brand-strong","foreground-interactive-brand-strong-active"],"primary-surface4":["background-interactive-brand-weak-active"],"primary-fgSurface4":["foreground-interactive-brand-active"],"primary-fgSurface3":["foreground-interactive-brand"],"primary-stroke3":["background-thumb-brand","background-thumb-brand-active","stroke-focus","stroke-interactive-brand","stroke-surface-brand-strong"],"primary-stroke4":["stroke-interactive-brand-active"],"primary-stroke1":["stroke-surface-brand"],"primary-surface1":["background-surface-brand"],"info-surface2":["background-surface-info-weak"],"info-surface4":["background-surface-info"],"info-fgSurface4":["foreground-content-info"],"info-fgSurface3":["foreground-content-info-weak"],"info-stroke3":["stroke-surface-info-strong"],"info-stroke1":["stroke-surface-info"],"success-surface2":["background-surface-success-weak"],"success-surface4":["background-surface-success"],"success-fgSurface4":["foreground-content-success"],"success-fgSurface3":["foreground-content-success-weak"],"success-stroke3":["stroke-surface-success-strong"],"success-stroke1":["stroke-surface-success"],"warning-surface2":["background-surface-warning-weak"],"warning-surface4":["background-surface-warning"],"warning-fgSurface4":["foreground-content-warning"],"warning-fgSurface3":["foreground-content-warning-weak"],"warning-stroke3":["stroke-surface-warning-strong"],"warning-stroke1":["stroke-surface-warning"],"error-bgFill1":["background-interactive-error-strong"],"error-bgFill2":["background-interactive-error-strong-active"],"error-fgFill":["foreground-interactive-error-strong","foreground-interactive-error-strong-active"],"error-surface2":["background-interactive-error-active","background-surface-error-weak"],"error-surface4":["background-interactive-error-weak-active","background-surface-error"],"error-fgSurface4":["foreground-content-error","foreground-interactive-error-active"],"error-fgSurface3":["foreground-content-error-weak","foreground-interactive-error"],"error-stroke3":["stroke-interactive-error","stroke-interactive-error-strong","stroke-surface-error-strong"],"error-stroke4":["stroke-interactive-error-active"],"error-stroke1":["stroke-surface-error"],"bg-surface2":["background-surface-neutral"],"bg-surface5":["background-interactive-brand-strong-disabled","background-interactive-error-strong-disabled","background-interactive-neutral-strong-disabled"],"bg-surface4":["background-interactive-neutral-weak-active"],"bg-surface3":["background-interactive-neutral","background-interactive-neutral-active","background-interactive-neutral-disabled","background-surface-neutral-strong"],"bg-fgSurface4":["foreground-content-neutral","foreground-interactive-neutral","foreground-interactive-neutral-active","foreground-interactive-neutral-weak-active"],"bg-fgSurface3":["foreground-content-neutral-weak","foreground-interactive-neutral-weak"],"bg-fgSurface2":["foreground-interactive-brand-disabled","foreground-interactive-brand-strong-disabled","foreground-interactive-error-disabled","foreground-interactive-error-strong-disabled","foreground-interactive-neutral-disabled","foreground-interactive-neutral-strong-disabled","foreground-interactive-neutral-weak-disabled"],"bg-stroke3":["background-thumb-neutral-weak","stroke-interactive-neutral","stroke-surface-neutral-strong"],"bg-stroke4":["background-thumb-neutral-weak-active","stroke-interactive-neutral-active","stroke-interactive-neutral-strong"],"bg-stroke2":["background-thumb-brand-disabled","background-thumb-neutral-weak-disabled","background-track-neutral","stroke-interactive-brand-disabled","stroke-interactive-error-disabled","stroke-interactive-neutral-disabled","stroke-surface-neutral"],"bg-stroke1":["background-track-neutral-weak","stroke-surface-neutral-weak"],"bg-bgFillInverted2":["background-interactive-neutral-strong-active"],"bg-bgFillInverted1":["background-interactive-neutral-strong"],"bg-fgFillInverted":["foreground-interactive-neutral-strong","foreground-interactive-neutral-strong-active"],"bg-surface1":["background-surface-neutral-weak"],"caution-surface2":["background-surface-caution-weak"],"caution-surface4":["background-surface-caution"],"caution-fgSurface4":["foreground-content-caution"],"caution-fgSurface3":["foreground-content-caution-weak"],"caution-stroke3":["stroke-surface-caution-strong"],"caution-stroke1":["stroke-surface-caution"]}},93843(e,t,n){"use strict";n.d(t,{j:()=>c});var s=n(64040),r=n(35424),o=n(90697),i=n(47998);function a(e,t={}){s(`\`privateApis.${e}\` from \`@wordpress/theme\``,{since:"7.1",version:"7.3",...t})}var c={};(0,r.s)(c,{get ThemeProvider(){return a("ThemeProvider",{alternative:"`ThemeProvider` from `@wordpress/theme`"}),o.N},get useThemeProviderStyles(){return a("useThemeProviderStyles",{alternative:"`ThemeProvider` from `@wordpress/theme` for supported theming use cases",hint:"`useThemeProviderStyles` has no public replacement."}),i.i}})},26903(e,t,n){"use strict";n.d(t,{cU:()=>s,eQ:()=>o,ux:()=>r});var s=4.5,r=[{background:"background.interactive.neutral",foreground:"foreground.interactive.neutral"},{background:"background.interactive.neutral",foreground:"foreground.interactive.neutral-weak"},{background:"background.interactive.neutral-active",foreground:"foreground.interactive.neutral"},{background:"background.interactive.neutral-active",foreground:"foreground.interactive.neutral-weak"},{background:"background.interactive.neutral-weak-active",foreground:"foreground.interactive.neutral-active"},{background:"background.surface.neutral",foreground:"foreground.content.neutral"},{background:"background.surface.neutral-strong",foreground:"foreground.content.neutral"},{background:"background.surface.neutral-weak",foreground:"foreground.content.neutral"},{background:"background.surface.neutral",foreground:"foreground.content.neutral-weak"},{background:"background.surface.info",foreground:"foreground.content.info"},{background:"background.surface.info-weak",foreground:"foreground.content.info-weak"},{background:"background.surface.success",foreground:"foreground.content.success"},{background:"background.surface.success-weak",foreground:"foreground.content.success-weak"},{background:"background.surface.warning",foreground:"foreground.content.warning"},{background:"background.surface.warning-weak",foreground:"foreground.content.warning-weak"},{background:"background.surface.caution",foreground:"foreground.content.caution"},{background:"background.surface.caution-weak",foreground:"foreground.content.caution-weak"},{background:"background.surface.error",foreground:"foreground.content.error"},{background:"background.surface.error-weak",foreground:"foreground.content.error-weak"},{background:"background.interactive.brand-strong",foreground:"foreground.interactive.brand-strong"},{background:"background.interactive.brand-strong-active",foreground:"foreground.interactive.brand-strong-active"},{background:"background.interactive.error-strong",foreground:"foreground.interactive.error-strong"},{background:"background.interactive.error-strong-active",foreground:"foreground.interactive.error-strong-active"},{background:"background.interactive.neutral-strong",foreground:"foreground.interactive.neutral-strong"},{background:"background.interactive.neutral-strong-active",foreground:"foreground.interactive.neutral-strong-active"}];function o(e){return`--wpds-color-${e.replaceAll(".","-")}`}},25223(e,t,n){"use strict";n.d(t,{R:()=>o});var s=n(96339),r=n(26903);function o(e,t){const n=[];for(const[t,s]of e)for(const e of s.warnings??[])n.push({type:"ramp",ramp:t,step:e});for(const{background:e,foreground:o}of r.ux){const i=t.get((0,r.eQ)(e)),a=t.get((0,r.eQ)(o));if(void 0===i||void 0===a)continue;const c=(0,s.bJ)(i,a);c<r.cU&&n.push({type:"contrast",backgroundToken:e,backgroundColor:i,foregroundToken:o,foregroundColor:a,requiredContrast:r.cU,achievedContrast:c})}return n}},90697(e,t,n){"use strict";n.d(t,{N:()=>u});var s=n(86087),r=n(29491),o=n(42271),i=n(47998),a=n(10790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)d(e,n,s)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const s=l();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(c,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const s of n.documents.keys())d(s,e,t)})("8d074a190c","._0ebd6d9bf8b95794__wrapper{display:contents}");var p="_0ebd6d9bf8b95794__wrapper",u=({children:e,color:t={},cursor:n,cornerRadius:c,isRoot:l=!1,onColorWarnings:d})=>{const{themeProviderStyles:u,resolvedSettings:h,colorWarnings:g}=(0,i.i)({color:t,cursor:n,cornerRadius:c}),f=h.cornerRadius??"subtle",m=(0,r.useEvent)(d),v=(0,s.useMemo)(()=>({resolvedSettings:h}),[h]),w=(0,s.useRef)(null);return(0,s.useEffect)(()=>{void 0!==g&&m(g)},[g,m]),(0,r.useIsomorphicLayoutEffect)(()=>{if(!l)return;const e=w.current?.ownerDocument;if(!e)return;const t=e.documentElement;const n=new Map,s=[],r=t.getAttribute("data-wpds-root-provider"),o=t.getAttribute("data-wpds-corner-radius");t.setAttribute("data-wpds-root-provider","true"),t.setAttribute("data-wpds-corner-radius",f);for(const[e,r]of Object.entries(u))e.startsWith("--")&&null!=r&&(n.set(e,t.style.getPropertyValue(e)),t.style.setProperty(e,String(r)),s.push(e));return()=>{for(const e of s){const s=n.get(e);s?t.style.setProperty(e,s):t.style.removeProperty(e)}null===r?t.removeAttribute("data-wpds-root-provider"):t.setAttribute("data-wpds-root-provider",r),null===o?t.removeAttribute("data-wpds-corner-radius"):t.setAttribute("data-wpds-corner-radius",o)}},[f,l,u]),(0,a.jsx)("div",{ref:w,"data-wpds-root-provider":l||void 0,"data-wpds-corner-radius":f,className:p,style:u,children:(0,a.jsx)(o.D.Provider,{value:v,children:e})})}},47998(e,t,n){"use strict";n.d(t,{i:()=>j});var s=n(57602),r=n(317),o=n(38562),i=n(14721),a=n(4576),c=n(77840),l=n(1636),d=n(86087),p=n(42271),u=n(29572),h=n(29174),g=n(35189),f=n(96339),m=n(25223),v=(0,l.A)(h.Ax,{maxSize:10}),w=(0,l.A)(h.BM,{maxSize:10}),b=[["--wp-components-color-accent","var(--wp-admin-theme-color)"],["--wp-components-color-accent-darker-10","var(--wp-admin-theme-color-darker-10)"],["--wp-components-color-accent-darker-20","var(--wp-admin-theme-color-darker-20)"],["--wp-components-color-accent-inverted","var(--wpds-color-foreground-interactive-brand-strong, #fff)"],["--wp-components-color-background","var(--wpds-color-background-surface-neutral-strong, #fff)"],["--wp-components-color-foreground","var(--wpds-color-foreground-content-neutral, #1e1e1e)"],["--wp-components-color-foreground-inverted","var(--wpds-color-background-surface-neutral, #fcfcfc)"],["--wp-components-color-gray-100","var(--wpds-color-background-surface-neutral, #fcfcfc)"],["--wp-components-color-gray-200","var(--wpds-color-stroke-surface-neutral, #dbdbdb)"],["--wp-components-color-gray-300","var(--wpds-color-stroke-surface-neutral, #dbdbdb)"],["--wp-components-color-gray-400","var(--wpds-color-stroke-interactive-neutral, #8d8d8d)"],["--wp-components-color-gray-600","var(--wpds-color-stroke-interactive-neutral, #8d8d8d)"],["--wp-components-color-gray-700","var(--wpds-color-foreground-content-neutral-weak, #707070)"],["--wp-components-color-gray-800","var(--wpds-color-foreground-content-neutral, #1e1e1e)"]];function y(e){return(0,a.A)(e,r.A).coords.map(e=>Math.round(255*(e??0))).join(", ")}function k(e){s.A.register(r.A);const t=(0,a.A)(e,o.A),n=t.coords[2]??0,l=(0,i.A)((0,c.A)(t),[o.A,"l"],Math.max(0,n-5)),d=(0,i.A)((0,c.A)(t),[o.A,"l"],Math.max(0,n-10));return[["--wp-admin-theme-color",(0,f.Hw)(t)],["--wp-admin-theme-color--rgb",y(t)],["--wp-admin-theme-color-darker-10",(0,f.Hw)(l)],["--wp-admin-theme-color-darker-10--rgb",y(l)],["--wp-admin-theme-color-darker-20",(0,f.Hw)(d)],["--wp-admin-theme-color-darker-20--rgb",y(d)]]}function _({primary:e,colorEntries:t}){return Object.fromEntries([t,k(e),b].flat())}function x(e,t){const n={...g.nI,background:t,primary:e},s=new Map,r=v(n.background);for(const[e,t]of Object.entries(n)){const n=e;s.set(n,"background"===n?r:w(t,r))}const o=function(e){const t=[];for(const[n,{ramp:s}]of e)for(const[e,r]of Object.entries(s)){const s=`${"background"===n?"bg":n}-${e}`,o=u.A[s]??[];for(const e of o)t.push([`--wpds-color-${e}`,r])}return t}(s);return{styles:_({primary:n.primary,colorEntries:o}),warnings:(0,m.R)(s,new Map(o))}}function j({color:e={},cursor:t,cornerRadius:n}={}){const{resolvedSettings:s}=(0,d.useContext)(p.D),r=void 0!==e.primary||void 0!==e.background||void 0!==s.color?.primary||void 0!==s.color?.background,o=r?e.primary??s.color?.primary??g.nI.primary:void 0,i=r?e.background??s.color?.background??g.nI.background:void 0,a=t?.control??s.cursor?.control,c=n??s.cornerRadius??"subtle",l=(0,d.useMemo)(()=>({color:{primary:o,background:i},cursor:a?{control:a}:void 0,cornerRadius:c}),[o,i,a,c]),u=(0,d.useMemo)(()=>void 0===o||void 0===i?{styles:{},warnings:void 0}:x(o,i),[o,i]);return{resolvedSettings:l,themeProviderStyles:(0,d.useMemo)(()=>({...u.styles,...a&&{"--wpds-cursor-control":a}}),[u.styles,a]),colorWarnings:u.warnings}}},13022(e,t,n){"use strict";function s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=s(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}n.d(t,{A:()=>r});const r=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=s(e))&&(r&&(r+=" "),r+=t);return r}},57602(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(33181),r=n(6406),o=n(49933),i=n(97785),a=n(98070);class c{constructor(e){this.id=e.id,this.name=e.name,this.base=e.base?c.get(e.base):null,this.aliases=e.aliases,this.displaySpaces=e.displaySpaces?.map(e=>c.get(e)),this.bases=[];for(let e=this.base;e;e=e.base)this.bases.push(e);e.rgbGamut&&(this.rgbGamut=e.rgbGamut),e.linearGamut&&(this.linearGamut=e.linearGamut),this.base&&(e.fromBase&&(this.fromBase=e.fromBase),e.toBase&&(this.toBase=e.toBase));let t=e.coords??this.base.coords;for(let e in t)"name"in t[e]||(t[e].name=e);this.coords=t;let n=e.white??this.base.white??"D65";this.white=(0,o.ie)(n),this.formats=e.formats??{};for(let e in this.formats){let t=this.formats[e];t.type||="function",t.name||=e}this.formats.color?.id||(this.formats.color={...this.formats.color??{},id:e.cssId||this.id}),e.gamutSpace?this.gamutSpace="self"===e.gamutSpace?this:c.get(e.gamutSpace):this.isPolar?this.gamutSpace=this.base:this.gamutSpace=this,this.gamutSpace.isUnbounded&&(this.inGamut=(e,t)=>!0),this.M=e.M??{},this.referred=e.referred,Object.defineProperty(this,"path",{value:l(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),i.A.run("colorspace-init-end",this)}inGamut(e,{epsilon:t=75e-6}={}){if(!this.equals(this.gamutSpace))return e=this.to(this.gamutSpace,e),this.gamutSpace.inGamut(e,{epsilon:t});let n=Object.values(this.coords);return e.every((e,r)=>{let o=n[r];if("angle"!==o.type&&o.range){if((0,s.$I)(e))return!0;let[n,r]=o.range;return(void 0===n||e>=n-t)&&(void 0===r||e<=r+t)}return!0})}get isUnbounded(){return Object.values(this.coords).every(e=>!("range"in e))}get cssId(){return this.formats?.color?.id||this.id}get hueId(){for(let e in this.coords)if("angle"===this.coords[e].type)return e;return null}get hueIndex(){return Object.keys(this.coords).findIndex(e=>"angle"===this.coords[e].type)}get isPolar(){return null!==this.hueId}getFormat(e){if(!e)return null;"default"===e?e=Object.values(this.formats)[0]:"string"==typeof e&&(e=this.formats[e]);let t=r.A.get(e,this);return t!==e&&e.name in this.formats&&(this.formats[e.name]=t),t}equals(e){return!!e&&(this===e||this.id===e||this.id===e.id)}to(e,t){if(1===arguments.length){const n=(0,a.A)(e);[e,t]=[n.space,n.coords]}if(e=c.get(e),this.equals(e))return t;t=t.map(e=>(0,s.$I)(e)?0:e);let n,r,o=this.path,i=e.path;for(let e=0;e<o.length&&o[e].equals(i[e]);e++)n=o[e],r=e;if(!n)throw new Error(`Cannot convert between color spaces ${this} and ${e}: no connection space was found`);for(let e=o.length-1;e>r;e--)t=o[e].toBase(t);for(let e=r+1;e<i.length;e++)t=i[e].fromBase(t);return t}from(e,t){if(1===arguments.length){const n=(0,a.A)(e);[e,t]=[n.space,n.coords]}return(e=c.get(e)).to(this,t)}toString(){return`${this.name} (${this.id})`}getMinCoords(){let e=[];for(let t in this.coords){let n=this.coords[t],s=n.range||n.refRange;e.push(s?.min??0)}return e}static registry={};static get all(){return[...new Set(Object.values(c.registry))]}static register(e,t){if(1===arguments.length&&(e=(t=arguments[0]).id),t=this.get(t),this.registry[e]&&this.registry[e]!==t)throw new Error(`Duplicate color space registration: '${e}'`);if(this.registry[e]=t,1===arguments.length&&t.aliases)for(let e of t.aliases)this.register(e,t);return t}static get(e,...t){if(!e||(0,s.Qs)(e,this))return e;if("string"===(0,s.NW)(e)){let t=c.registry[e.toLowerCase()];if(!t)throw new TypeError(`No color space found with id = "${e}"`);return t}if(t.length)return c.get(...t);throw new TypeError(`${e} is not a valid color space`)}static findFormat(e,t=c.all){if(!e)return null;"string"==typeof e&&(e={name:e});for(let n of t)for(let[t,s]of Object.entries(n.formats)){s.name??=t,s.type??="function";let o=!(e.name&&s.name!==e.name||e.type&&s.type!==e.type);if(e.id){let t=s.ids||[s.id],n=Array.isArray(e.id)?e.id:[e.id];o&&=n.some(e=>t.includes(e))}if(o){let e=r.A.get(s,n);return e!==s&&(n.formats[s.name]=e),e}}return null}static resolveCoord(e,t){let n,r,o=(0,s.NW)(e);if("string"===o?e.includes(".")?[n,r]=e.split("."):[n,r]=[,e]:Array.isArray(e)?[n,r]=e:(n=e.space,r=e.coordId),n=c.get(n),n||(n=t),!n)throw new TypeError(`Cannot resolve coordinate reference ${e}: No color space specified and relative references are not allowed here`);if(o=(0,s.NW)(r),"number"===o||"string"===o&&r>=0){let e=Object.entries(n.coords)[r];if(e)return{space:n,id:e[0],index:r,...e[1]}}n=c.get(n);let i=r.toLowerCase(),a=0;for(let e in n.coords){let t=n.coords[e];if(e.toLowerCase()===i||t.name?.toLowerCase()===i)return{space:n,id:e,index:a,...t};a++}throw new TypeError(`No "${r}" coordinate found in ${n.name}. Its coordinates are: ${Object.keys(n.coords).join(", ")}`)}static DEFAULT_FORMAT={type:"functions",name:"color"}}function l(e){let t=[e];for(let n=e;n=n.base;)t.push(n);return t}},6406(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(33181),r=n(21313);const o=Symbol("instance");class i{type;name;spaceCoords;coords;id;alpha;constructor(e,t=e.space){e[o]=this,this.type="function",this.name="color",Object.assign(this,e),this.space=t,"custom"!==this.type&&(this.spaceCoords=Object.values(t.coords),this.coords||(this.coords=this.spaceCoords.map(e=>{let t=["<number>","<percentage>"];return"angle"===e.type&&t.push("<angle>"),t})),this.coords=this.coords.map((e,t)=>{let n=this.spaceCoords[t];return"string"==typeof e&&(e=e.trim().split(/\s*\|\s*/)),e.map(e=>r.A.get(e,n))}))}serializeCoords(e,t,n){return n=e.map((e,t)=>r.A.get(n?.[t]??this.coords[t][0],this.spaceCoords[t])),e.map((e,s)=>n[s].serialize(e,t))}coerceCoords(e,t){return Object.entries(this.space.coords).map(([n,r],o)=>{let i=e[o];if((0,s.$I)(i)||isNaN(i))return i;let a=t[o],c=this.coords[o].find(e=>e.type==a);if(!c){let e=r.name||n;throw new TypeError(`${a??i?.raw??i} not allowed for ${e} in ${this.name}()`)}return i=c.resolve(i),c.range&&(t[o]=c.toString()),i})}canSerialize(){return"function"===this.type||this.serialize}parse(e){return null}static get(e,...t){return!e||(0,s.Qs)(e,this)?e:e[o]?e[o]:new i(e,...t)}}},66309(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(57602),r=n(41918),o=n(49933),i=n(96490);class a extends s.A{constructor(e){e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=i.A);let t=e.toXYZ_M??e.M?.toXYZ,n=e.fromXYZ_M??e.M?.fromXYZ;e.referred??="display",super(e),t&&n&&(this.M.toXYZ=t,this.M.fromXYZ=n)}toBase(e){let t=(0,r.R)(e,this.M.toXYZ);return this.white!==this.base.white&&(t=(0,o.Ay)(this.white,this.base.white,t)),t}fromBase(e){return e=(0,o.Ay)(this.base.white,this.white,e),(0,r.R)(e,this.M.fromXYZ)}}},21313(e,t,n){"use strict";n.d(t,{A:()=>r});var s=n(33181);class r{type;coordMeta;coordRange;range;constructor(e,t){if("object"==typeof e&&(this.coordMeta=e),t&&(this.coordMeta=t,this.coordRange=t.range??t.refRange),"string"==typeof e){let t=e.trim().match(/^(?<type><[a-z]+>)(\[(?<min>-?[.\d]+),\s*(?<max>-?[.\d]+)\])?$/);if(!t)throw new TypeError(`Cannot parse ${e} as a type definition.`);this.type=t.groups.type;let{min:n,max:s}=t.groups;(n||s)&&(this.range=[+n,+s])}}get computedRange(){return this.range?this.range:"<percentage>"===this.type?this.percentageRange():"<angle>"===this.type?[0,360]:null}get unit(){return"<percentage>"===this.type?"%":"<angle>"===this.type?"deg":""}resolve(e){if("<angle>"===this.type)return e;let t=this.computedRange,n=this.coordRange;return"<percentage>"===this.type&&(n??=this.percentageRange()),(0,s._b)(t,n,e)}serialize(e,t){let n="<percentage>"===this.type?this.percentageRange(100):this.computedRange,r=this.unit;return e=(0,s._b)(this.coordRange,n,e),(0,s.g1)(e,{unit:r,precision:t})}toString(){let e=this.type;if(this.range){let[t="",n=""]=this.range;e+=`[${t},${n}]`}return e}percentageRange(e=1){let t;return t=this.coordMeta&&this.coordMeta.range||this.coordRange&&this.coordRange[0]>=0?[0,1]:[-1,1],[t[0]*e,t[1]*e]}static get(e,t){return(0,s.Qs)(e,this)?e:new this(e,t)}}},49933(e,t,n){"use strict";n.d(t,{Ay:()=>a,FL:()=>o,ie:()=>i});var s=n(97785),r=n(41918);const o={D50:[.3457/.3585,1,.2958/.3585],D65:[.3127/.329,1,.3583/.329]};function i(e){return Array.isArray(e)?e:o[e]}function a(e,t,n,a={}){if(e=i(e),t=i(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${e||t?"":"/"}${t?"":"to"}`);if(e===t)return n;let c={W1:e,W2:t,XYZ:n,options:a};if(s.A.run("chromatic-adaptation-start",c),c.M||(c.W1===o.D65&&c.W2===o.D50?c.M=[[1.0479297925449969,.022946870601609652,-.05019226628920524],[.02962780877005599,.9904344267538799,-.017073799063418826],[-.009243040646204504,.015055191490298152,.7518742814281371]]:c.W1===o.D50&&c.W2===o.D65&&(c.M=[[.955473421488075,-.02309845494876471,.06325924320057072],[-.0283697093338637,1.0099953980813041,.021041441191917323],[.012314014864481998,-.020507649298898964,1.330365926242124]])),s.A.run("chromatic-adaptation-end",c),c.M)return(0,r.R)(c.XYZ,c.M);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}},82013(e,t,n){"use strict";function s(e){return"number"!=typeof e?e:(e%360+360)%360}n.d(t,{h:()=>s})},77840(e,t,n){"use strict";function s(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}n.d(t,{A:()=>s})},39975(e,t,n){"use strict";n.d(t,{A:()=>s});const s={gamut_mapping:"css",precision:5,deltaE:"76",verbose:"test"!==globalThis?.process?.env?.NODE_ENV?.toLowerCase(),warn:function(e){this.verbose&&globalThis?.console?.warn?.(e)}}},92528(e,t,n){"use strict";n.d(t,{A:()=>u}),n.dn(u);var s=n(39975),r=n(86589),o=n(85386),i=n(98070);const a=25**7,c=Math.PI,l=180/c,d=c/180;function p(e){const t=e*e;return t*t*t*e}function u(e,t,{kL:n=1,kC:u=1,kH:h=1}={}){[e,t]=(0,i.A)([e,t]);let[g,f,m]=r.A.from(e),v=o.A.from(r.A,[g,f,m])[1],[w,b,y]=r.A.from(t),k=o.A.from(r.A,[w,b,y])[1];v<0&&(v=0),k<0&&(k=0);let _=p((v+k)/2),x=.5*(1-Math.sqrt(_/(_+a))),j=(1+x)*f,C=(1+x)*b,S=Math.sqrt(j**2+m**2),A=Math.sqrt(C**2+y**2),E=0===j&&0===m?0:Math.atan2(m,j),M=0===C&&0===y?0:Math.atan2(y,C);E<0&&(E+=2*c),M<0&&(M+=2*c),E*=l,M*=l;let N,T=w-g,O=A-S,z=M-E,R=E+M,I=Math.abs(z);S*A===0?N=0:I<=180?N=z:z>180?N=z-360:z<-180?N=z+360:s.A.warn("the unthinkable has happened");let P,L=2*Math.sqrt(A*S)*Math.sin(N*d/2),D=(g+w)/2,F=(S+A)/2,U=p(F);P=S*A===0?R:I<=180?R/2:R<360?(R+360)/2:(R-360)/2;let V=(D-50)**2,B=1+.015*V/Math.sqrt(20+V),H=1+.045*F,$=1;$-=.17*Math.cos((P-30)*d),$+=.24*Math.cos(2*P*d),$+=.32*Math.cos((3*P+6)*d),$-=.2*Math.cos((4*P-63)*d);let W=1+.015*F*$,q=30*Math.exp(-1*((P-275)/25)**2),K=2*Math.sqrt(U/(U+a)),J=(T/(n*B))**2;return J+=(O/(u*H))**2,J+=(L/(h*W))**2,J+=-1*Math.sin(2*q*d)*K*(O/(u*H))*(L/(h*W)),Math.sqrt(J)}},79147(e,t,n){"use strict";n.d(t,{A:()=>r});var s=n(33390);function r(e,t){return(0,s.A)(e,t,"lab")}},27049(e,t,n){"use strict";n.d(t,{A:()=>c}),n.dn(c);var s=n(86589),r=n(85386),o=n(98070),i=n(33181);const a=Math.PI/180;function c(e,t,{l:n=2,c=1}={}){[e,t]=(0,o.A)([e,t]);let[l,d,p]=s.A.from(e),[,u,h]=r.A.from(s.A,[l,d,p]),[g,f,m]=s.A.from(t),v=r.A.from(s.A,[g,f,m])[1];u<0&&(u=0),v<0&&(v=0);let w=l-g,b=u-v,y=(d-f)**2+(p-m)**2-b**2,k=.511;l>=16&&(k=.040975*l/(1+.01765*l));let _,x=.0638*u/(1+.0131*u)+.638;(0,i.$I)(h)&&(h=0),_=h>=164&&h<=345?.56+Math.abs(.2*Math.cos((h+168)*a)):.36+Math.abs(.4*Math.cos((h+35)*a));let j=Math.pow(u,4),C=Math.sqrt(j/(j+1900)),S=(w/(n*k))**2;return S+=(b/(c*x))**2,S+=y/(x*(C*_+1-C))**2,Math.sqrt(S)}},98947(e,t,n){"use strict";n.d(t,{A:()=>c}),n.dn(c);var s=n(98330),r=n(98070);Math.PI;const o=Math.PI/180,i=[1,.007,.0228];function a(e){e[1]<0&&(e=s.A.fromBase(s.A.toBase(e)));const t=Math.log(Math.max(1+i[2]*e[1]*s.k.flRoot,1))/i[2],n=e[0]*o,r=t*Math.cos(n),a=t*Math.sin(n);return[e[2],r,a]}function c(e,t){[e,t]=(0,r.A)([e,t]);let[n,o,i]=a(s.A.from(e)),[c,l,d]=a(s.A.from(t));return Math.sqrt((n-c)**2+(o-l)**2+(i-d)**2)}},55267(e,t,n){"use strict";n.d(t,{A:()=>o}),n.dn(o);var s=n(54870),r=n(98070);function o(e,t){[e,t]=(0,r.A)([e,t]);let[n,o,i]=s.Ay.from(e),[a,c,l]=s.Ay.from(t),d=((n-a)**2/(1+-.9155125151657894*(.5*(n+a)-.5)**2)**2+3.966003089807536*((o-c)**2+(i-l)**2)/(1+2.9268353744941558*(.5*(Math.sqrt(o**2+i**2)+Math.sqrt(c**2+l**2))))**2)**.9868540585202484;return(d/(1+52.473130649294724*d))**.47897301074925214}},57515(e,t,n){"use strict";n.d(t,{A:()=>o}),n.dn(o);var s=n(28870),r=n(98070);function o(e,t){[e,t]=(0,r.A)([e,t]);let[n,o,i]=s.A.from(e),[a,c,l]=s.A.from(t);return 720*Math.sqrt((n-a)**2+.25*(o-c)**2+(i-l)**2)}},59618(e,t,n){"use strict";n.d(t,{A:()=>i}),n.dn(i);var s=n(55366),r=n(98070),o=n(33181);function i(e,t){[e,t]=(0,r.A)([e,t]);let[n,i,a]=s.A.from(e),[c,l,d]=s.A.from(t),p=n-c,u=i-l;(0,o.$I)(a)&&(0,o.$I)(d)?(a=0,d=0):(0,o.$I)(a)?a=d:(0,o.$I)(d)&&(d=a);let h=a-d,g=2*Math.sqrt(i*l)*Math.sin(h/2*(Math.PI/180));return Math.sqrt(p**2+u**2+g**2)}},30376(e,t,n){"use strict";n.d(t,{A:()=>o}),n.dn(o);var s=n(2736),r=n(98070);function o(e,t){[e,t]=(0,r.A)([e,t]);let[n,o,i]=s.A.from(e),[a,c,l]=s.A.from(t),d=n-a,p=o-c,u=i-l;return Math.sqrt(d**2+p**2+u**2)}},19904(e,t,n){"use strict";n.d(t,{A:()=>o}),n.dn(o);var s=n(2736),r=n(98070);function o(e,t){[e,t]=(0,r.A)([e,t]);let[n,o,i]=s.A.from(e),[a,c,l]=s.A.from(t),d=n-a,p=2*(o-c),u=2*(i-l);return Math.sqrt(d**2+p**2+u**2)}},27387(e,t,n){"use strict";n.d(t,{Ay:()=>u});var s=n(79147),r=n(27049),o=n(92528),i=n(59618),a=n(57515),c=n(30376),l=n(19904),d=n(98947),p=n(55267);const u={deltaE76:s.A,deltaECMC:r.A,deltaE2000:o.A,deltaEJz:i.A,deltaEITP:a.A,deltaEOK:c.A,deltaEOK2:l.A,deltaEHCT:d.A,deltaEHelmlab:p.A}},33390(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(57602),r=n(33181);function o(e,t,n="lab"){let o=(n=s.A.get(n)).from(e),i=n.from(t);return Math.sqrt(o.reduce((e,t,n)=>{let s=i[n];return(0,r.$I)(t)||(0,r.$I)(s)?e:e+(s-t)**2},0))}},83080(e,t,n){"use strict";n.d(t,{A:()=>r});var s=n(98070);function r(e,t){return e=(0,s.A)(e),t=(0,s.A)(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((e,n)=>e===t.coords[n])}},83749(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(57602),r=n(21546),o=n(98070);function i(e,t){if(e=(0,o.A)(e),"alpha"===t)return e.alpha??1;let{space:n,index:i}=s.A.resolveCoord(t,e.space);return(0,r.A)(e,n)[i]}},21546(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(57602),r=n(98070),o=n(33181);function i(e,t){e=(0,r.A)(e);let n,i=s.A.get(t,t?.space),a=t?.precision;return n=!i||e.space.equals(i)?e.coords.slice():i.from(e),void 0===a?n:n.map(e=>(0,o.QX)(e,a))}},98070(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(57602),r=n(33181),o=n(45266);function i(e,t){if(Array.isArray(e))return e.map(e=>i(e,t));if(!e)throw new TypeError("Empty color reference");(0,r.Kg)(e)&&(e=(0,o.Ay)(e,t));let n=e.space||e.spaceId;return"string"==typeof n&&(e.space=s.A.get(n)),void 0===e.alpha&&(e.alpha=1),e}},97785(e,t,n){"use strict";n.d(t,{A:()=>r});const s=new class{add(e,t,n){if("string"==typeof arguments[0])(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this);else for(var e in arguments[0])this.add(e,arguments[0][e],arguments[1])}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}},r=s},76070(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(57602),r=n(98070);function o(e,t,{epsilon:n=75e-6}={}){e=(0,r.A)(e),t||(t=e.space),t=s.A.get(t);let o=e.coords;return t!==e.space&&(o=t.from(e)),t.inGamut(o,{epsilon:n})}},14197(e,t,n){"use strict";n.d(t,{A:()=>s});const s={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[.6,50/255,.8],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,.6],lightslategrey:[119/255,136/255,.6],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[.4,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,.8],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[.4,.2,.6],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]}},59667(e,t,n){"use strict";n.d(t,{J1:()=>o});var s=n(83749),r=n(96490);function o(e){return(0,s.A)(e,[r.A,"y"])}},41918(e,t,n){"use strict";function s(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function r(e,t,n=[0,0,0]){const r=s(e,t[0]),o=s(e,t[1]),i=s(e,t[2]);return n[0]=r,n[1]=o,n[2]=i,n}n.d(t,{R:()=>r})},45266(e,t,n){"use strict";n.d(t,{Ay:()=>a});var s=n(33181),r=n(97785),o=n(57602),i=n(39975);function a(e,t){let n,a={str:String(e)?.trim(),options:t};if(r.A.run("parse-start",a),a.color)return a.color;a.parsed=function(e){if(!e)return;e=e.trim();let t=e.match(l.function);if(t){let e=[],n=[],s=!1,r=t[1].toLowerCase(),o=t[2].replace(l.singleArgument,(t,o)=>{let{value:i,meta:a}=function(e){let t={},n=e.match(l.unitValue)?.[0],s=t.raw=e;n?(t.type="%"===n?"<percentage>":"<angle>",t.unit=n,t.unitless=Number(s.slice(0,-n.length)),s=t.unitless*c[n]):l.number.test(s)?(s=Number(s),t.type="<number>"):"none"===s?s=null:"NaN"===s||"calc(NaN)"===s?(s=NaN,t.type="<number>"):t.type="<ident>";return{value:s,meta:t}}(o);return(t.startsWith("/")||"color"!==r&&3===e.length)&&(s=!0),e.push(i),n.push(a),""});return{name:r,args:e,argMeta:n,lastAlpha:s,commas:o.includes(","),rawName:t[1],rawArgs:t[2]}}}(a.str);let d=a.options?a.options.parseMeta??a.options.meta:null;if(a.parsed){let t,s,r=a.parsed.name,c=a.parsed.args,l=c.map((e,t)=>a.parsed.argMeta[t]?.type);if("color"===r){let n=c.shift();l.shift();let d=n.startsWith("--")?n.substring(2):`--${n}`,p=[n,d];if(t=o.A.findFormat({name:r,id:p,type:"function"}),!t){let t,s=n in o.A.registry?n:d;if(s in o.A.registry){let r=o.A.registry[s].formats?.color?.id;if(r){t=`Did you mean ${e.replace("color("+n,"color("+r)}?`}}throw new TypeError(`Cannot parse ${a.str}. `+(t??"Missing a plugin?"))}s=t.space,t.id.startsWith("--")&&!n.startsWith("--")&&i.A.warn(`${s.name} is a non-standard space and not currently supported in the CSS spec. Use prefixed color(${t.id}) instead of color(${n}).`),n.startsWith("--")&&!t.id.startsWith("--")&&i.A.warn(`${s.name} is a standard space and supported in the CSS spec. Use color(${t.id}) instead of prefixed color(${n}).`)}else t=o.A.findFormat({name:r,type:"function"}),s=t.space;d&&Object.assign(d,{format:t,formatId:t.name,types:l,commas:a.parsed.commas});let p=1;a.parsed.lastAlpha&&(p=a.parsed.args.pop(),d&&(d.alphaType=l.pop()));let u=t.coords.length;if(c.length!==u)throw new TypeError(`Expected ${u} coordinates for ${s.id} in ${a.str}), got ${c.length}`);c=t.coerceCoords(c,l),n={spaceId:s.id,coords:c,alpha:p}}else e:for(let e of o.A.all)for(let t in e.formats){let s=e.formats[t];if("custom"!==s.type)continue;if(s.test&&!s.test(a.str))continue;let r=e.getFormat(s),o=r.parse(a.str);if(o){d&&Object.assign(d,{format:r,formatId:t}),n=o;break e}}if(!n)throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`);return n.alpha=(0,s.$I)(n.alpha)?n.alpha:void 0===n.alpha?1:(0,s.qE)(0,n.alpha,1),n}const c={"%":.01,deg:1,grad:.9,rad:180/Math.PI,turn:360},l={function:/^([a-z]+)\(((?:calc\(NaN\)|.)+?)\)$/i,number:/^([-+]?(?:[0-9]*\.)?[0-9]+(e[-+]?[0-9]+)?)$/i,unitValue:RegExp(`(${Object.keys(c).join("|")})$`),singleArgument:/\/?\s*(none|NaN|calc\(NaN\)|[-+\w.]+(?:%|deg|g?rad|turn)?)/g}},96715(e,t,n){"use strict";n.d(t,{A:()=>p});var s=n(33181),r=n(57602),o=n(39975),i=n(98070),a=n(4576),c=n(76070),l=n(20380),d=n(77840);function p(e,t={}){let n,{precision:p=o.A.precision,format:u,inGamut:h=!0,coords:g,alpha:f,commas:m}=t,v=(0,i.A)(e),w=u,b=v.parseMeta;b&&!u&&(b.format.canSerialize()&&(u=b.format,w=b.formatId),g??=b.types,f??=b.alphaType,m??=b.commas),w&&(u=v.space.getFormat(u)??r.A.findFormat(w)),u||(u=v.space.getFormat("default")??r.A.DEFAULT_FORMAT,w=u.name),u&&u.space&&u.space!==v.space&&(v=(0,a.A)(v,u.space));let y=v.coords.slice();if(h||=u.toGamut,h&&!(0,c.A)(v)&&(y=(0,l.Ay)((0,d.A)(v),!0===h?void 0:h).coords),"custom"===u.type){if(!u.serialize)throw new TypeError(`format ${w} can only be used to parse colors, not for serialization`);n=u.serialize(y,v.alpha,t)}else{let e=u.name||"color",t=u.serializeCoords(y,p,g);if("color"===e){let e=u.id||u.ids?.[0]||v.space.cssId||v.space.id;t.unshift(e)}let r=v.alpha;void 0!==f&&"object"!=typeof f&&(f="string"==typeof f?{type:f}:{include:f});let o=f?.type??"<number>",i=!0===f?.include||!0===u.alpha||!1!==f?.include&&!1!==u.alpha&&r<1,a="";if(m??=u.commas,i){if(null!==p){let e;"<percentage>"===o&&(e="%",r*=100),r=s.g1(r,{precision:p,unit:e})}a=`${m?",":" /"} ${r}`}n=`${e}(${t.join(m?", ":" ")}${a})`}return n}},14721(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(57602),r=n(98070),o=n(83749),i=n(21546),a=n(14510),c=n(33181);function l(e,t,n){if(e=(0,r.A)(e),2===arguments.length&&"object"===(0,c.NW)(arguments[1])){let t=arguments[1];for(let n in t)l(e,n,t[n])}else if("function"==typeof n&&(n=n((0,o.A)(e,t))),"alpha"===t)e.alpha=n;else{let{space:r,index:o}=s.A.resolveCoord(t,e.space),c=(0,i.A)(e,r);c[o]=n,(0,a.A)(e,r,c)}return e}l.returns="color"},14510(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(57602),r=n(98070);function o(e,t,n,o){return e=(0,r.A)(e),Array.isArray(t)&&([t,n,o]=[e.space,t,n]),t=s.A.get(t),e.coords=t===e.space?n.slice():t.to(e.space,n),void 0!==o&&(e.alpha=o),e}o.returns="color"},43333(e,t,n){"use strict";n.d(t,{I9:()=>y,cA:()=>v,pV:()=>b});var s=n(57602),r=n(33181),o=n(41918),i=n(82013),a=n(96490);const c=n(49933).FL.D65,l=1/.42,d=2*Math.PI,p={cat16:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],cat16Inv:[[1.8620678550872327,-1.0112546305316843,.14918677544445175],[.38752654323613717,.6214474419314753,-.008973985167612518],[-.015841498849333856,-.03412293802851557,1.0499644368778496]],m1:[[460,451,288],[460,-891,-261],[460,-220,-6300]]},u={dark:[.8,.525,.8],dim:[.9,.59,.9],average:[1,.69,1]},h={h:[20.14,90,164.25,237.53,380.14],e:[.8,.7,1,1.2,.8],H:[0,100,200,300,400]},g=180/Math.PI,f=Math.PI/180;function m(e,t){return e.map(e=>{const n=(0,r.kR)(t*Math.abs(e)*.01,.42);return 400*(0,r.pG)(n,e)/(n+27.13)})}function v(e,t,n,s,i){const a={};a.discounting=i,a.refWhite=e,a.surround=s;const c=e.map(e=>100*e);a.la=t,a.yb=n;const l=c[1],d=(0,o.R)(c,p.cat16);let h=u[a.surround];const g=h[0];a.c=h[1],a.nc=h[2];const f=(1/(5*a.la+1))**4;a.fl=f*a.la+.1*(1-f)*(1-f)*Math.cbrt(5*a.la),a.flRoot=a.fl**.25,a.n=a.yb/l,a.z=1.48+Math.sqrt(a.n),a.nbb=.725*a.n**-.2,a.ncb=a.nbb;const v=i?1:Math.max(Math.min(g*(1-1/3.6*Math.exp((-a.la-42)/92)),1),0);a.dRgb=d.map(e=>(0,r.GW)(1,l/e,v)),a.dRgbInv=a.dRgb.map(e=>1/e);const w=m(d.map((e,t)=>e*a.dRgb[t]),a.fl);return a.aW=a.nbb*(2*w[0]+w[1]+.05*w[2]),a}const w=v(c,64/Math.PI*.2,20,"average",!1);function b(e,t){if(!(void 0!==e.J^void 0!==e.Q))throw new Error("Conversion requires one and only one: 'J' or 'Q'");if(!(void 0!==e.C^void 0!==e.M^void 0!==e.s))throw new Error("Conversion requires one and only one: 'C', 'M' or 's'");if(!(void 0!==e.h^void 0!==e.H))throw new Error("Conversion requires one and only one: 'h' or 'H'");if(0===e.J||0===e.Q)return[0,0,0];let n=0;n=void 0!==e.h?(0,i.h)(e.h)*f:function(e){let t=(e%400+400)%400;const n=Math.floor(.01*t);t%=100;const[s,r]=h.h.slice(n,n+2),[o,a]=h.e.slice(n,n+2);return(0,i.h)((t*(a*s-o*r)-100*s*a)/(t*(a-o)-100*a))}(e.H)*f;const s=Math.cos(n),a=Math.sin(n);let c=0;void 0!==e.J?c=.1*(0,r.kR)(e.J,.5):void 0!==e.Q&&(c=.25*t.c*e.Q/((t.aW+4)*t.flRoot));let d=0;void 0!==e.C?d=e.C/c:void 0!==e.M?d=e.M/t.flRoot/c:void 0!==e.s&&(d=4e-4*e.s**2*(t.aW+4)/t.c);const u=(0,r.kR)(d*Math.pow(1.64-Math.pow(.29,t.n),-.73),10/9),g=.25*(Math.cos(n+2)+3.8),m=t.aW*(0,r.kR)(c,2/t.c/t.z),v=5e4/13*t.nc*t.ncb*g,w=m/t.nbb,b=23*(w+.305)*(0,r.Ed)(u,23*v+u*(11*s+108*a)),y=b*s,k=b*a,_=function(e,t){const n=100/t*2588.068098016295;return e.map(e=>{const t=Math.abs(e);return(0,r.pG)(n*(0,r.kR)(t/(400-t),l),e)})}((0,o.R)([w,y,k],p.m1).map(e=>1*e/1403),t.fl);return(0,o.R)(_.map((e,n)=>e*t.dRgbInv[n]),p.cat16Inv).map(e=>e/100)}function y(e,t){const n=e.map(e=>100*e),s=m((0,o.R)(n,p.cat16).map((e,n)=>e*t.dRgb[n]),t.fl),a=s[0]+(-12*s[1]+s[2])/11,c=(s[0]+s[1]-2*s[2])/9,l=(Math.atan2(c,a)%d+d)%d,u=.25*(Math.cos(l+2)+3.8),f=5e4/13*t.nc*t.ncb*(0,r.Ed)(u*Math.sqrt(a**2+c**2),s[0]+s[1]+1.05*s[2]+.305),v=(0,r.kR)(f,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),w=t.nbb*(2*s[0]+s[1]+.05*s[2]),b=(0,r.kR)(w/t.aW,.5*t.c*t.z),y=100*(0,r.kR)(b,2),k=4/t.c*b*(t.aW+4)*t.flRoot,_=v*b,x=_*t.flRoot,j=(0,i.h)(l*g),C=function(e){let t=(0,i.h)(e);t<=h.h[0]&&(t+=360);const n=(0,r.ah)(h.h,t)-1,[s,o]=h.h.slice(n,n+2),[a,c]=h.e.slice(n,n+2),l=(t-s)/a;return h.H[n]+100*l/(l+(o-t)/c)}(j);return{J:y,C:_,h:j,s:50*(0,r.kR)(t.c*v/(t.aW+4),.5),Q:k,M:x,H:C}}new s.A({id:"cam16-jmh",cssId:"--cam16-jmh",name:"CAM16-JMh",coords:{j:{refRange:[0,100],name:"J"},m:{refRange:[0,105],name:"Colorfulness"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:a.A,M:p,fromBase(e){void 0===this.ε&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);const t=y(e,w),n=Math.abs(t.M)<this.ε;return[t.J,n?0:t.M,n?null:t.h]},toBase:e=>b({J:e[0],M:e[1],h:e[2]},w)})},98330(e,t,n){"use strict";n.d(t,{A:()=>h,k:()=>u});var s=n(57602),r=n(82013),o=n(96490),i=n(43333);const a=n(49933).FL.D65,c=216/24389,l=24389/27;function d(e){return e>8?Math.pow((e+16)/116,3):e/l}function p(e,t){const n=116*((s=e[1])>c?Math.cbrt(s):(l*s+16)/116)-16;var s;if(0===n)return[0,0,0];const o=(0,i.I9)(e,u);return[(0,r.h)(o.h),o.C,n]}const u=(0,i.cA)(a,200/Math.PI*d(50),100*d(50),"average",!1),h=new s.A({id:"hct",name:"HCT",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},c:{refRange:[0,145],name:"Colorfulness"},t:{refRange:[0,100],name:"Tone"}},base:o.A,fromBase(e){void 0===this.ε&&(this.ε=Object.values(this.coords)[1].refRange[1]/1e5);let t=p(e);return t[1]<this.ε&&(t[1]=0,t[0]=null),t},toBase:e=>function(e,t){let[n,s,r]=e,o=[],a=0;if(0===r)return[0,0,0];let c=d(r);a=r>0?.00379058511492914*r**2+.608983189401032*r+.9155088574762233:9514440756550361e-21*r**2+.08693057439788597*r-21.928975842194614;let l=0,p=1/0,u=[0,0,0];for(;l<=15;){o=(0,i.pV)({J:a,C:s,h:n},t);const e=Math.abs(o[1]-c);if(e<p){if(e<=2e-12)return o;u=o,p=e}a-=(o[1]-c)*a/(2*o[1]),l+=1}return u}(e,u),formats:{color:{id:"--hct",coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]}}})},54870(e,t,n){"use strict";n.d(t,{Ay:()=>X});var s=n(57602),r=n(33181),o=n(41918),i=n(96490);const{cos:a,sin:c,sqrt:l,atan2:d,exp:p,abs:u,pow:h,PI:g}=Math,f=[.47229813098762524,.5149184096354483,.5113233386366979],m=[2.1173067060606283,1.9420552485353544,1.9557096741686448],v={CAT_TO_HELM:[[1.000042977349746,20718877053183e-18,-4361018085669474e-20],[26946201090235744e-21,.9999906145080147,-14898828405401079e-21],[-7941753620756204e-21,12875204405137254e-21,.9997859822609763]],CAT_FROM_HELM:[[.9999570254019492,-2071874272730964e-20,4361733292468361e-20],[-2694517763358666e-20,1.000009385946497,1490098223546482e-20],[7943459292954202e-21,-1287824596735154e-20,1.000214063706999]],M1:[[.7212986433113499,.45344826541531813,-.19288975751942616],[-.788211869495579,1.795241376757236,.0876172451181785],[-.0917700599912156,.45765588659459255,1.2922045513917677]],M1_INV:[[1.065107295808859,-.3150044075301121,.1803492381741039],[.4721107713837796,.4271995765962455,.04150680489380985],[-.09156391926309541,-.1736709363194979,.7719790382558294]],M2:[[-.26355622180094096,.4168322883703174,.4926763141656403],[1.8897570508777322,-3.1212232034205774,1.0421666921060384],[.3585108617962056,1.7694028193790368,-1.4120626067695372]],M2_INV:[[.9183897822815021,.5232051237088666,.7065804598090856],[1.0899090574433026,.07005324849041904,.4319776874787044],[1.598895729264209,.22061850068770233,.012506037355220951]]},w=-.02833024015436984,b=-.21131429516166544,y=.2189784817615645,k=-.06871898981942523,_=.005506053349515315,x=-.0641329861299175,j=-.053592461436994296,C=-.00954137464208059,S=.2676231133101982,A=.8934892185255707,E=.7173169828841472,M=.6915224124600773,N=.48647127559605596,T=.9853124591201782,O=.5385456675962418,z=.12508858146241716,R=.6768950256217603,I=-.4963251525324449,P=-.09564696283240552,L=-.029053748937210654,D=1.3346761652952872,F=-.1698908144723919,U=-28.2*g/180,V=a(U),B=c(U);function H(e){return w*a(e)+b*c(e)+y*a(2*e)+k*c(2*e)+_*a(3*e)+x*c(3*e)+j*a(4*e)+C*c(4*e)}function $(e){return-w*c(e)+b*a(e)+-2*y*c(2*e)+2*k*a(2*e)+-3*_*c(3*e)+3*x*a(3*e)+-4*j*c(4*e)+4*C*a(4*e)}function W(e){let t=-.195370576218515*a(e)+.5330819227283227*c(e)+.08863325582067766*a(2*e)+.9365540137751136*c(2*e)+.13789738139719568*a(3*e)+.061650260197979936*c(3*e)+.0641970862504494*a(4*e)+-.027401052793571013*c(4*e);return p(t)}function q(e){let t=e-.5;return p((0,r.qE)(-30,-1.5239477450767043*t+-1.751157310240011*t*t,30))}function K(e,t){let n=-.43576378069144767*a(e)+1.060094063845983*c(e)+.47931193034584496*a(2*e)+-.2622579649434462*c(2*e);return p((0,r.qE)(-30,(t-.5)*n,30))}function J(e){let t=.13610794232685908*a(e)+.1168702235362288*c(e)+-.01617739641422492*a(2*e)+.038145638815030566*c(2*e);return p(t)}function G(e){return 1+-.09900209889026965*a(e)+.059635520647228726*c(e)+-.013586499967803128*a(2*e)+.2253393118474472*c(2*e)}const Y=function(e){let t=(0,o.R)(e,v.CAT_TO_HELM),[n,s,i]=(0,o.R)(t,v.M1),u=(0,r.kR)(n,f[0]),g=(0,r.kR)(s,f[1]),m=(0,r.kR)(i,f[2]),[w,b,y]=(0,o.R)([u,g,m],v.M2),k=d(y,b),_=l(b*b+y*y),x=k+H(k);b=_*a(x),y=_*c(x);let j=l(b*b+y*y),C=S*h(j,(0,r.qE)(.01,A,10)),U=d(y,b);w+=C*(1+E*a(U)+M*c(U)+N*a(2*U)+T*c(2*U)),k=d(y,b),w=function(e,t){let n=e*(1-e),s=e+O*n+z*n*(.5-e)+R*n*n;return s+=n*(I*a(t)+P*c(t)),s}(w,k),k=d(y,b),w=function(e,t){let n=e<1?1-e:0,s=(L+D*a(t)+F*c(t))*e*n*n;return e*p((0,r.qE)(-30,s,30))}(w,k),k=d(y,b);let $=W(k);b*=$,y*=$,k=d(y,b),_=l(b*b+y*y);let Y=G(k),Z=_>0?h(_,Y):0;b=Z*a(k),y=Z*c(k);let X=q(w);b*=X,y*=X,k=d(y,b);let Q=K(k,w);return b*=Q,y*=Q,k=d(y,b),w*=J(k),[w,b*V-y*B,b*B+y*V]},Z=function(e){let[t,n,s]=e,i=-n*B+s*V;n=n*V+s*B,s=i;let g=d(s,n);t/=J(g),g=d(s,n);let f=K(g,t);n/=f,s/=f;let w=q(t);n/=w,s/=w,g=d(s,n);let b=l(n*n+s*s),y=G(g),k=b>0?h(b,1/y):0;n=k*a(g),s=k*c(g),g=d(s,n);let _=W(g);n/=_,s/=_,g=d(s,n),t=function(e,t){let n=L+D*a(t)+F*c(t),s=e;for(let t=0;t<12;t++){let t=s<1?1-s:0,o=n*s*t*t,i=p((0,r.qE)(-30,o,30)),a=s*i-e,c=i*(1+s*(n*t*(1-3*s)));u(c)<1e-10&&(c=1),s-=a/c}return s}(t,g),g=d(s,n),t=function(e,t){let n=I*a(t)+P*c(t),s=e;for(let t=0;t<15;t++){let t=s*(1-s),r=1-2*s,o=s+(O+n)*t+z*t*(.5-s)+R*t*t-e,i=1+(O+n)*r+z*(r*(.5-s)-t)+2*R*t*r;u(i)<1e-10&&(i=1),s-=o/i}return s}(t,g);let x=l(n*n+s*s),j=S*h(x,(0,r.qE)(.01,A,10)),C=d(s,n);t-=j*(1+E*a(C)+M*c(C)+N*a(2*C)+T*c(2*C));let U=d(s,n);b=l(n*n+s*s);let Y=U;for(let e=0;e<8;e++){let e=Y+H(Y)-U,t=1+$(Y);u(t)<1e-10&&(t=1),Y-=e/t}n=b*a(Y),s=b*c(Y);let[Z,X,Q]=(0,o.R)([t,n,s],v.M2_INV),ee=(0,r.kR)(Z,m[0]),te=(0,r.kR)(X,m[1]),ne=(0,r.kR)(Q,m[2]),se=(0,o.R)([ee,te,ne],v.M1_INV);return(0,o.R)(se,v.CAT_FROM_HELM)},X=new s.A({id:"helmlab-metric",name:"Helmlab MetricSpace",cssId:"--helmlab-metric",coords:{l:{refRange:[0,1.6],name:"Lightness"},a:{refRange:[-1.5,1.5]},b:{refRange:[-1.5,1.5]}},white:"D65",base:i.A,M:v,fromBase:e=>Y(e),toBase:e=>Z(e)})},38562(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(57602),r=n(317);const o=new s.A({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:r.A,rgbGamut:r.A,fromBase:e=>{let t=Math.max(...e),n=Math.min(...e),[s,r,o]=e,[i,a,c]=[null,0,(n+t)/2],l=t-n;if(0!==l){switch(a=0===c||1===c?0:(t-c)/Math.min(c,1-c),t){case s:i=(r-o)/l+(r<o?6:0);break;case r:i=(o-s)/l+2;break;case o:i=(s-r)/l+4}i*=60}return a<0&&(i+=180,a=Math.abs(a)),i>=360&&(i-=360),[i,100*a,100*c]},toBase:e=>{let[t,n,s]=e;function r(e){let r=(e+t/30)%12,o=n*Math.min(s,1-s);return s-o*Math.max(-1,Math.min(r-3,9-r,1))}return t%=360,t<0&&(t+=360),n/=100,s/=100,[r(0),r(8),r(4)]},formats:{hsl:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"]},hsla:{coords:["<number> | <angle>","<percentage> | <number>","<percentage> | <number>"],commas:!0,alpha:!0}}})},28870(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(57602),r=n(41918),o=n(74943);const i=.8359375,a=2413/128,c=18.6875,l=2610/16384,d=2523/32,p=16384/2610,u=32/2523,h={XYZtoLMS:[[.3592832590121217,.6976051147779502,-.035891593232029],[-.1920808463704993,1.100476797037432,.0753748658519118],[.0070797844607479,.0748396662186362,.8433265453898765]],LMStoIPT:[[.5,.5,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],IPTtoLMS:[[.9999999999999998,.0086090370379328,.111029625003026],[.9999999999999998,-.0086090370379328,-.1110296250030259],[.9999999999999998,.5600313357106791,-.3206271749873188]],LMStoXYZ:[[2.0701522183894223,-1.3263473389671563,.2066510476294053],[.3647385209748072,.6805660249472273,-.0453045459220347],[-.0497472075358123,-.0492609666966131,1.1880659249923042]]},g=new s.A({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:o.A,M:h,fromBase:e=>function(e){let t=e.map(function(e){return((i+a*(e/1e4)**l)/(1+c*(e/1e4)**l))**d});return(0,r.R)(t,h.LMStoIPT)}((0,r.R)(e,h.XYZtoLMS)),toBase(e){let t=function(e){let t=(0,r.R)(e,h.IPTtoLMS),n=t.map(function(e){return 1e4*(Math.max(e**u-i,0)/(a-c*e**u))**p});return n}(e);return(0,r.R)(t,h.LMStoXYZ)},formats:{ictcp:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},7774(e,t,n){"use strict";n.d(t,{A:()=>b});var s=n(57602),r=n(41918),o=n(74943),i=n(33181);const a=1.15,c=.66,l=2610/16384,d=16384/2610,p=.8359375,u=2413/128,h=18.6875,g=1.7*2523/32,f=32/(1.7*2523),m=-.56,v=16295499532821565e-27,w={XYZtoCone:[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],ConetoXYZ:[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],ConetoIab:[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],IabtoCone:[[1,.13860504327153927,.05804731615611883],[1,-.1386050432715393,-.058047316156118904],[1,-.09601924202631895,-.811891896056039]]},b=new s.A({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.21,.21]},bz:{refRange:[-.21,.21]}},base:o.A,M:w,fromBase(e){let[t,n,s]=e,o=a*t-(a-1)*s,d=c*n-(c-1)*t,f=(0,r.R)([o,d,s],w.XYZtoCone).map(function(e){let t=p+u*(0,i.kR)(e/1e4,l),n=1+h*(0,i.kR)(e/1e4,l);return(0,i.kR)(t/n,g)}),[b,y,k]=(0,r.R)(f,w.ConetoIab);return[(1+m)*b/(1+m*b)-v,y,k]},toBase(e){let[t,n,s]=e,o=(t+v)/(1+m-m*(t+v)),l=(0,r.R)([o,n,s],w.IabtoCone).map(function(e){let t=p-(0,i.kR)(e,f),n=h*(0,i.kR)(e,f)-u;return 1e4*(0,i.kR)(t/n,d)}),[g,b,y]=(0,r.R)(l,w.ConetoXYZ),k=(g+(a-1)*y)/a;return[k,(b+(c-1)*k)/c,y]},formats:{jzazbz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},55366(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(57602),r=n(7774),o=n(85386);const i=new s.A({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,.26],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:r.A,fromBase:o.A.fromBase,toBase:o.A.toBase,formats:{jzczhz:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}})},86589(e,t,n){"use strict";n.d(t,{A:()=>d});var s=n(57602),r=n(49933),o=n(40738);const i=216/24389,a=24/116,c=24389/27;let l=r.FL.D50;const d=new s.A({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"Lightness"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:l,base:o.A,fromBase(e){let t=e.map((e,t)=>e/l[t]).map(e=>e>i?Math.cbrt(e):(c*e+16)/116);return[116*t[1]-16,500*(t[0]-t[1]),200*(t[1]-t[2])]},toBase(e){let[t,n,s]=e,r=[];return r[1]=(t+16)/116,r[0]=n/500+r[1],r[2]=r[1]-s/200,[r[0]>a?Math.pow(r[0],3):(116*r[0]-16)/c,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/c,r[2]>a?Math.pow(r[2],3):(116*r[2]-16)/c].map((e,t)=>e*l[t])},formats:{lab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},85386(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(57602),r=n(86589),o=n(82013),i=n(33181);const a=new s.A({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:r.A,fromBase(e){if(void 0===this.ε){let e=Object.values(this.base.coords)[1].refRange,t=e[1]-e[0];this.ε=t/1e5}let[t,n,s]=e,r=Math.abs(n)<this.ε&&Math.abs(s)<this.ε,i=r?null:(0,o.h)(180*Math.atan2(s,n)/Math.PI);return[t,r?0:Math.sqrt(n**2+s**2),i]},toBase(e){let[t,n,s]=e,r=null,o=null;return(0,i.$I)(s)||(n=n<0?0:n,r=n*Math.cos(s*Math.PI/180),o=n*Math.sin(s*Math.PI/180)),[t,r,o]},formats:{lch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}})},2736(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(57602),r=n(41918),o=n(96490);const i={XYZtoLMS:[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],LMStoXYZ:[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],LMStoLab:[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],LabtoLMS:[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]]},a=new s.A({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"Lightness"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:o.A,M:i,fromBase(e){let t=(0,r.R)(e,i.XYZtoLMS);return t[0]=Math.cbrt(t[0]),t[1]=Math.cbrt(t[1]),t[2]=Math.cbrt(t[2]),(0,r.R)(t,i.LMStoLab,t)},toBase(e){let t=(0,r.R)(e,i.LabtoLMS);return t[0]=t[0]**3,t[1]=t[1]**3,t[2]=t[2]**3,(0,r.R)(t,i.LMStoXYZ,t)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <percentage>"]}}})},85728(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(57602),r=n(2736),o=n(85386);const i=new s.A({id:"oklch",name:"OkLCh",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:r.A,fromBase:o.A.fromBase,toBase:o.A.toBase,formats:{oklch:{coords:["<percentage> | <number>","<number> | <percentage>","<number> | <angle>"]}}})},58935(e,t,n){"use strict";n.d(t,{A:()=>s});const s=new(n(66309).A)({id:"srgb-linear",name:"Linear sRGB",white:"D65",M:{toXYZ:[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],fromXYZ:[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]]}})},317(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(66309),r=n(58935),o=n(14197);let i=Array(3).fill("<percentage> | <number>[0, 255]"),a=Array(3).fill("<number>[0, 255]");const c=new s.A({id:"srgb",name:"sRGB",base:r.A,linearGamut:r.A,fromBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n>.0031308?t*(1.055*n**(1/2.4)-.055):12.92*e}),toBase:e=>e.map(e=>{let t=e<0?-1:1,n=e*t;return n<=.04045?e/12.92:t*((n+.055)/1.055)**2.4}),formats:{rgb:{coords:i},rgb_number:{name:"rgb",commas:!0,coords:a,alpha:!1},color:{},rgba:{coords:i,commas:!0,alpha:!0},rgba_number:{name:"rgba",commas:!0,coords:a},hex:{type:"custom",toGamut:!0,test:e=>/^#(([a-f0-9]{2}){3,4}|[a-f0-9]{3,4})$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,e=>{t.push(parseInt(e,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:n=!0,alpha:s}={})=>{(!1!==s&&t<1||!0===s)&&e.push(t),e=e.map(e=>Math.round(255*e));let r=n&&e.every(e=>e%17==0);return"#"+e.map(e=>r?(e/17).toString(16):e.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){let t={spaceId:"srgb",coords:null,alpha:1};if("transparent"===(e=e.toLowerCase())?(t.coords=o.A.black,t.alpha=0):t.coords=o.A[e],t.coords)return t}}}})},74943(e,t,n){"use strict";n.d(t,{A:()=>o});var s=n(57602),r=n(96490);const o=new s.A({id:"xyz-abs-d65",cssId:"--xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:r.A,fromBase:e=>e.map(e=>203*e),toBase:e=>e.map(e=>e/203)})},40738(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(57602),r=n(49933),o=n(96490);const i=new s.A({id:"xyz-d50",name:"XYZ D50",white:"D50",base:o.A,fromBase:e=>(0,r.Ay)(o.A.white,"D50",e),toBase:e=>(0,r.Ay)("D50",o.A.white,e)})},96490(e,t,n){"use strict";n.d(t,{A:()=>s});const s=new(n(57602).A)({id:"xyz-d65",name:"XYZ D65",coords:{x:{refRange:[0,1],name:"X"},y:{refRange:[0,1],name:"Y"},z:{refRange:[0,1],name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]})},4576(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(98070),r=n(57602),o=n(20380);function i(e,t,{inGamut:n}={}){e=(0,s.A)(e);let i=(t=r.A.get(t)).from(e),a={space:t,coords:i,alpha:e.alpha};return n&&(a=(0,o.Ay)(a,!0===n?void 0:n)),a}i.returns="color"},20380(e,t,n){"use strict";n.d(t,{Ay:()=>y,bX:()=>_});var s=n(33181),r=n(57602),o=n(39975),i=n(92528),a=n(30376),c=n(76070),l=n(4576),d=n(83749),p=n(2736),u=n(85728),h=n(14721),g=n(77840),f=n(98070),m=n(27387),v=n(49933),w=n(66309);const b={hct:{method:"hct.c",jnd:2,deltaEMethod:"hct",blackWhiteClamp:{}},"hct-tonal":{method:"hct.c",jnd:0,deltaEMethod:"hct",blackWhiteClamp:{channel:"hct.t",min:0,max:100}}};function y(e,{method:t=o.A.gamut_mapping,space:n,deltaEMethod:a="",jnd:p=2,blackWhiteClamp:j}={}){if(e=(0,f.A)(e),s.Kg(arguments[1])?n=arguments[1]:n||(n=e.space),n=r.A.get(n),(0,c.A)(e,n,{epsilon:0}))return e;let C;if("css"===t)C=_(e,{space:n});else if("raytrace"===t)C=function(e,{space:t}={}){e=(0,f.A)(e),t||(t=e.space);if(t=r.A.get(t),t.isUnbounded)return(0,l.A)(e,t);let n=(0,l.A)(e,u.A),[o,i,a]=n.coords;if(o>=1){const n=(0,l.A)(k.WHITE,t);return n.alpha=e.alpha,(0,l.A)(n,t)}if(o<=0){const n=(0,l.A)(k.BLACK,t);return n.alpha=e.alpha,(0,l.A)(n,t)}const c=t,d=t.rgbGamut;void 0!==d&&(t=d);if(!s.Qs(t,w.A))throw Error("An RGB gamut is required");let[p,h]=Object.values(t.coords)[0].range,g=[h,h,h];const m=t.linearGamut;if(void 0!==m){let n=(0,l.A)({space:t,coords:g,alpha:e.alpha},m);h=n.coords[0],g=[h,h,h],t=m,p=Object.values(t.coords)[0].range[0]}let v=[p,p,p],b=(0,l.A)(n,t);if(!b.coords.every(e=>p<=e&&e<=h)){let e=(0,l.A)({space:u.A,coords:[o,0,a]},t).coords;const n=p+1e-12,s=h-1e-12;let r=b.coords;for(let i=0;i<4;i++){if(i){const e=(0,l.A)(b,u.A);e.coords[0]=o,e.coords[2]=a,b=(0,l.A)(e,t)}const c=x(e,b.coords,v,g);if(0===c.length){b.coords=[...r];break}i&&b.coords.every(e=>n<e&&e<s)&&(e=[...b.coords]),r=c,b.coords=[...c]}}b=(0,l.A)(b,c);const y=Object.values(c.coords);return b.coords=b.coords.map((e,t)=>{if("range"in y[t]){const[n,r]=y[t].range;return s.qE(n,e,r)}return e}),b}(e,{space:n});else{if("clip"!==t){Object.prototype.hasOwnProperty.call(b,t)&&({method:t,jnd:p,deltaEMethod:a,blackWhiteClamp:j}=b[t]);let o=i.A;if(""!==a)for(let e in m.Ay)if("deltae"+a.toLowerCase()===e.toLowerCase()){o=m.Ay[e];break}0===p&&(p=1e-16);let c=y((0,l.A)(e,n),{method:"clip",space:n});if(o(e,c)>p){if(j&&3===Object.keys(j).length){let t=r.A.resolveCoord(j.channel),n=(0,d.A)((0,l.A)(e,t.space),t.id);if(s.$I(n)&&(n=0),n>=j.max)return(0,l.A)({space:"xyz-d65",coords:v.FL.D65},e.space);if(n<=j.min)return(0,l.A)({space:"xyz-d65",coords:[0,0,0]},e.space)}let i=r.A.resolveCoord(t),a=i.space,c=i.id,u=(0,l.A)(e,a);u.coords.forEach((e,t)=>{s.$I(e)&&(u.coords[t]=0)});let f=(i.range||i.refRange)[0],m=function(e){const t=e?Math.floor(Math.log10(Math.abs(e))):0;return Math.max(parseFloat("1e"+(t-2)),1e-6)}(p),w=f,b=(0,d.A)(u,c);for(;b-w>m;){let e=(0,g.A)(u);e=y(e,{space:n,method:"clip"}),o(u,e)-p<m?w=(0,d.A)(u,c):b=(0,d.A)(u,c),(0,h.A)(u,c,(w+b)/2)}C=(0,l.A)(u,n)}else C=c}else C=(0,l.A)(e,n);if("clip"===t||!(0,c.A)(C,n,{epsilon:0})){let e=Object.values(n.coords).map(e=>e.range||[]);C.coords=C.coords.map((t,n)=>{let[s,r]=e[n];return void 0!==s&&(t=Math.max(s,t)),void 0!==r&&(t=Math.min(t,r)),t})}}return n!==e.space&&(C=(0,l.A)(C,e.space)),e.coords=C.coords,e}y.returns="color";const k={WHITE:{space:p.A,coords:[1,0,0],alpha:1},BLACK:{space:p.A,coords:[0,0,0],alpha:1}};function _(e,{space:t}={}){const n=.02,o=1e-4;if(e=(0,f.A)(e),t||(t=e.space),(t=r.A.get(t)).isUnbounded)return(0,l.A)(e,t);const i=(0,l.A)(e,u.A);let d=i.coords[0];if(d>=1){const n=(0,l.A)(k.WHITE,t);return n.alpha=e.alpha,(0,l.A)(n,t)}if(d<=0){const n=(0,l.A)(k.BLACK,t);return n.alpha=e.alpha,(0,l.A)(n,t)}if((0,c.A)(i,t,{epsilon:0}))return(0,l.A)(i,t);function p(e){const n=(0,l.A)(e,t),r=Object.values(t.coords);return n.coords=n.coords.map((e,t)=>{if("range"in r[t]){const[n,o]=r[t].range;return s.qE(n,e,o)}return e}),n}let h=0,m=i.coords[1],v=!0,w=(0,g.A)(i),b=p(w),y=(0,a.A)(b,w);if(y<n)return b;for(;m-h>o;){const e=(h+m)/2;if(w.coords[1]=e,v&&(0,c.A)(w,t,{epsilon:0}))h=e;else if(b=p(w),y=(0,a.A)(b,w),y<n){if(n-y<o)break;v=!1,h=e}else m=e}return b}function x(e,t,n=[0,0,0],s=[1,1,1]){let r=1/0,o=-1/0,i=[];for(let a=0;a<3;a++){const c=e[a],l=t[a]-c,d=n[a],p=s[a];if(i.push(l),Math.abs(l)>1e-12){const e=1/l,t=(d-c)*e,n=(p-c)*e;o=Math.max(Math.min(t,n),o),r=Math.min(Math.max(t,n),r)}else if(c<d||c>p)return[]}return o>r||r<0?[]:(o<0&&(o=r),isFinite(o)?[e[0]+i[0]*o,e[1]+i[1]*o,e[2]+i[2]*o]:[])}},33181(e,t,n){"use strict";function s(e){return"string"===r(e)}function r(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function o(e,{precision:t=16,unit:n}){return i(e)?"none":(e=+a(e,t))+(n??"")}function i(e){return null===e}function a(e,t){if(0===e)return 0;let n=~~e,s=0;n&&t&&(s=1+~~Math.log10(Math.abs(n)));const r=10**(t-s);return Math.floor(e*r+.5)/r}function c(e,t,n){return i(e)||isNaN(e)?t:i(t)||isNaN(t)?e:e+(t-e)*n}function l(e,t,n){return!e||!t||e===t||e[0]===t[0]&&e[1]===t[1]||isNaN(n)||null===n?n:c(t[0],t[1],function(e,t,n){return(n-e)/(t-e)}(e[0],e[1],n))}function d(e,t,n){return Math.max(Math.min(n,t),e)}function p(e,t){return Math.sign(e)===Math.sign(t)?e:-e}function u(e,t){return p(Math.abs(e)**t,e)}function h(e,t){return 0===t?0:e/t}function g(e,t,n=0,s=e.length){for(;n<s;){const r=n+s>>1;e[r]<t?n=r+1:s=r}return n}function f(e,t){if(e instanceof t)return!0;const n=t.name;for(;e;){const t=Object.getPrototypeOf(e),s=t?.constructor?.name;if(s===n)return!0;if(!s||"Object"===s)return!1;e=t}return!1}n.d(t,{$I:()=>i,Ed:()=>h,GW:()=>c,Kg:()=>s,NW:()=>r,QX:()=>a,Qs:()=>f,_b:()=>l,ah:()=>g,g1:()=>o,kR:()=>u,pG:()=>p,qE:()=>d})},1636(e,t,n){"use strict";function s(e,t){var n,s,r=0;function o(){var o,i,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(i=0;i<c;i++)if(a.args[i]!==arguments[i]){a=a.next;continue e}return a!==n&&(a===s&&(s=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(o=new Array(c),i=0;i<c;i++)o[i]=arguments[i];return a={args:o,val:e.apply(null,o)},n?(n.prev=a,a.next=n):s=a,r===t.maxSize?(s=s.prev).next=null:r++,n=a,a.val}return t=t||{},o.clear=function(){n=null,s=null,r=0},o}n.d(t,{A:()=>s})},71766(e,t,n){"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,ty:()=>G});var s=n(51609),r=(n(16934),s.version.startsWith("19")),o=Symbol.for(r?"react.transitional.element":"react.element"),i=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),p=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=u,w=f;function b(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case o:switch(e=e.type){case a:case l:case c:case h:case g:return e;default:switch(e=e&&e.$$typeof){case p:case u:case m:case f:case d:return e;default:return t}}case i:return t}}}function y(e,t,n,s,{areStatesEqual:r,areOwnPropsEqual:o,areStatePropsEqual:i}){let a,c,l,d,p,u=!1;function h(u,h){const g=!o(h,c),f=!r(u,a,h,c);return a=u,c=h,g&&f?(l=e(a,c),t.dependsOnOwnProps&&(d=t(s,c)),p=n(l,d,c),p):g?(e.dependsOnOwnProps&&(l=e(a,c)),t.dependsOnOwnProps&&(d=t(s,c)),p=n(l,d,c),p):f?function(){const t=e(a,c),s=!i(t,l);return l=t,s&&(p=n(l,d,c)),p}():p}return function(r,o){return u?h(r,o):(a=r,c=o,l=e(a,c),d=t(s,c),p=n(l,d,c),u=!0,p)}}function k(e){return function(t){const n=e(t);function s(){return n}return s.dependsOnOwnProps=!1,s}}function _(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function x(e,t){return function(t,{displayName:n}){const s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,n){s.mapToProps=e,s.dependsOnOwnProps=_(e);let r=s(t,n);return"function"==typeof r&&(s.mapToProps=r,s.dependsOnOwnProps=_(r),r=s(t,n)),r},s}}function j(e,t){return(n,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function C(e,t,n){return{...n,...e,...t}}function S(e){e()}var A={notify(){},get:()=>[]};function E(e,t){let n,s=A,r=0,o=!1;function i(){l.onStateChange&&l.onStateChange()}function a(){r++,n||(n=t?t.addNestedSub(i):e.subscribe(i),s=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){S(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let s=!0;const r=t={callback:n,next:null,prev:t};return r.prev?r.prev.next=r:e=r,function(){s&&null!==e&&(s=!1,r.next?r.next.prev=r.prev:t=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}())}function c(){r--,n&&0===r&&(n(),n=void 0,s.clear(),s=A)}const l={addNestedSub:function(e){a();const t=s.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){s.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,c())},getListeners:()=>s};return l}var M=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),N=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),T=(()=>M||N?s.useLayoutEffect:s.useEffect)();function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function z(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let s=0;s<n.length;s++)if(!Object.prototype.hasOwnProperty.call(t,n[s])||!O(e[n[s]],t[n[s]]))return!1;return!0}var R={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},P={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[w]:P};function D(e){return b(e)===f?P:L[e.$$typeof]||R}var F=Object.defineProperty,U=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,B=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,$=Object.prototype;function W(e,t){if("string"!=typeof t){if($){const n=H(t);n&&n!==$&&W(e,n)}let n=U(t);V&&(n=n.concat(V(t)));const s=D(e),r=D(t);for(let o=0;o<n.length;++o){const i=n[o];if(!(I[i]||r&&r[i]||s&&s[i])){const n=B(t,i);try{F(e,i,n)}catch(e){}}}}return e}var q=Symbol.for("react-redux-context"),K="undefined"!=typeof globalThis?globalThis:{};function J(){if(!s.createContext)return{};const e=K[q]??=new Map;let t=e.get(s.createContext);return t||(t=s.createContext(null),e.set(s.createContext,t)),t}var G=J(),Y=[null,null];function Z(e,t,n,s,r,o){e.current=s,n.current=!1,r.current&&(r.current=null,o())}function X(e,t){return e===t}function Q(e,t,n,{pure:r,areStatesEqual:o=X,areOwnPropsEqual:i=z,areStatePropsEqual:a=z,areMergedPropsEqual:c=z,forwardRef:l=!1,context:d=G}={}){const p=d,u=function(e){return e?"function"==typeof e?x(e):j(e,"mapStateToProps"):k(()=>({}))}(e),h=function(e){return e&&"object"==typeof e?k(t=>function(e,t){const n={};for(const s in e){const r=e[s];"function"==typeof r&&(n[s]=(...e)=>t(r(...e)))}return n}(e,t)):e?"function"==typeof e?x(e):j(e,"mapDispatchToProps"):k(e=>({dispatch:e}))}(t),g=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:s}){let r,o=!1;return function(t,n,i){const a=e(t,n,i);return o?s(a,r)||(r=a):(o=!0,r=a),r}}}(e):j(e,"mergeProps"):()=>C}(n),f=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:f,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:u,initMapDispatchToProps:h,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:c};function d(t){const[n,o,i]=s.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),a=s.useMemo(()=>p,[n,p]),c=s.useContext(a),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(c)&&Boolean(c.store);const u=l?t.store:c.store,h=d?c.getServerState:u.getState,g=s.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:s,...r}){return y(t(e,r),n(e,r),s(e,r),e,r)}(u.dispatch,r),[u]),[m,v]=s.useMemo(()=>{if(!f)return Y;const e=E(u,l?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[u,l,c]),w=s.useMemo(()=>l?c:{...c,subscription:m},[l,c,m]),b=s.useRef(void 0),k=s.useRef(i),_=s.useRef(void 0),x=s.useRef(!1),j=s.useRef(!1),C=s.useRef(void 0);T(()=>(j.current=!0,()=>{j.current=!1}),[]);const S=s.useMemo(()=>()=>_.current&&i===k.current?_.current:g(u.getState(),i),[u,i]),A=s.useMemo(()=>e=>m?function(e,t,n,s,r,o,i,a,c,l,d){if(!e)return()=>{};let p=!1,u=null;const h=()=>{if(p||!a.current)return;const e=t.getState();let n,h;try{n=s(e,r.current)}catch(e){h=e,u=e}h||(u=null),n===o.current?i.current||l():(o.current=n,c.current=n,i.current=!0,d())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,u)throw u}}(f,u,m,g,k,b,x,j,_,v,e):()=>{},[m]);var M,N,O;let z;M=Z,N=[k,b,x,i,_,v],T(()=>M(...N),O);try{z=s.useSyncExternalStore(A,S,h?()=>g(h(),i):S)}catch(e){throw C.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${C.current.stack}\n\n`),e}T(()=>{C.current=void 0,_.current=void 0,b.current=z});const R=s.useMemo(()=>s.createElement(e,{...z,ref:o}),[o,e,z]);return s.useMemo(()=>f?s.createElement(a.Provider,{value:w},R):R,[a,R,w])}const m=s.memo(d);if(m.WrappedComponent=e,m.displayName=d.displayName=n,l){const t=s.forwardRef(function(e,t){return s.createElement(m,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,W(t,e)}return W(m,e)}}var ee=Q;var te=function(e){const{children:t,context:n,serverState:r,store:o}=e,i=s.useMemo(()=>{const e=E(o);return{store:o,subscription:e,getServerState:r?()=>r:void 0}},[o,r]),a=s.useMemo(()=>o.getState(),[o]);T(()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,a]);const c=n||G;return s.createElement(c.Provider,{value:i},t)}},55155(e,t,n){"use strict";var s;n.d(t,{BV:()=>Le,I9:()=>vt,Zp:()=>fe,qh:()=>Ie,zy:()=>ue});var r=n(51609),o=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,i=/^[\\/]{2}/;function a(e,t){return t+e.replace(/\\/g,"/")}var c="popstate";function l(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function d(e={}){return v(function(e,t){let{pathname:n="/",search:s="",hash:r=""}=m(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),g("",{pathname:n,search:s,hash:r},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),s="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");s=-1===n?t:t.slice(0,n)}return s+"#"+("string"==typeof t?t:f(t))},function(e,t){u("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function p(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function h(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function g(e,t,n=null,s,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:n,key:t&&t.key||s||Math.random().toString(36).substring(2,10),mask:r}}function f({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function v(e,t,n,s={}){let{window:r=document.defaultView,v5Compat:o=!1}=s,i=r.history,a="POP",d=null,p=u();function u(){return(i.state||{idx:null}).idx}function f(){a="POP";let e=u(),t=null==e?null:e-p;p=e,d&&d({action:a,location:v.location,delta:t})}function m(e){return w(r,e)}null==p&&(p=0,i.replaceState({...i.state,idx:p},""));let v={get action(){return a},get location(){return e(r,i)},listen(e){if(d)throw new Error("A history only accepts one active listener");return r.addEventListener(c,f),d=e,()=>{r.removeEventListener(c,f),d=null}},createHref:e=>t(r,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a="PUSH";let s=l(e)?e:g(v.location,e,t);n&&n(s,e),p=u()+1;let c=h(s,p),f=v.createHref(s.mask||s);try{i.pushState(c,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;r.location.assign(f)}o&&d&&d({action:a,location:v.location,delta:1})},replace:function(e,t){a="REPLACE";let s=l(e)?e:g(v.location,e,t);n&&n(s,e),p=u();let r=h(s,p),c=v.createHref(s.mask||s);i.replaceState(r,"",c),o&&d&&d({action:a,location:v.location,delta:0})},go:e=>i.go(e)};return v}function w(e,t,n=!1){let s="http://localhost";e&&(s="null"!==e.location.origin?e.location.origin:e.location.href),p(s,"No window.location.(origin|href) available to create URL");let r="string"==typeof t?t:f(t);return r=r.replace(/ $/,"%20"),!n&&i.test(r)&&(r=s+r),new URL(r,s)}new WeakMap;function b(e,t,n="/"){return y(e,t,n,!1)}function y(e,t,n,s,r){let o=O(("string"==typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let i=r??k(e),a=null,c=T(o);for(let e=0;null==a&&e<i.length;++e)a=A(i[e],c,s);return a}function k(e){let t=_(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function _(e,t=[],n=[],s="",r=!1){let o=(e,o,i=r,a)=>{let c={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(s)&&i)return;p(c.relativePath.startsWith(s),`Absolute route path "${c.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(s.length)}let l=F([s,c.relativePath]),d=n.concat(c);e.children&&e.children.length>0&&(p(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),_(e.children,t,d,l,i)),(null!=e.path||e.index)&&t.push({path:l,score:S(l,e.index),routesMeta:d.map((e,t)=>{let[n,s]=N(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:s}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of x(e.path))o(e,t,!0,n);else o(e,t)}),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...s]=t,r=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===s.length)return r?[o,""]:[o];let i=x(s.join("/")),a=[];return a.push(...i.map(e=>""===e?o:[o,e].join("/"))),r&&a.push(...i),a.map(t=>e.startsWith("/")&&""===t?"/":t)}var j=/^:[\w-]+$/,C=e=>"*"===e;function S(e,t){let n=e.split("/"),s=n.length;return n.some(C)&&(s+=-2),t&&(s+=2),n.filter(e=>!C(e)).reduce((e,t)=>e+(j.test(t)?3:""===t?1:10),s)}function A(e,t,n=!1){let{routesMeta:s}=e,r={},o="/",i=[];for(let e=0;e<s.length;++e){let a=s[e],c=e===s.length-1,l="/"===o?t:t.slice(o.length)||"/",d={path:a.relativePath,caseSensitive:a.caseSensitive,end:c},p=a.matcher&&a.compiledParams?M(d,l,a.matcher,a.compiledParams):E(d,l),u=a.route;if(!p&&c&&n&&!s[s.length-1].route.index&&(p=E({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},l)),!p)return null;Object.assign(r,p.params),i.push({params:r,pathname:F([o,p.pathname]),pathnameBase:V(F([o,p.pathnameBase])),route:u}),"/"!==p.pathnameBase&&(o=F([o,p.pathnameBase]))}return i}function E(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=N(e.path,e.caseSensitive,e.end);return M(e,t,n,s)}function M(e,t,n,s){let r=t.match(n);if(!r)return null;let o=r[0],i=o.replace(/(.)\/+$/,"$1"),a=r.slice(1);return{params:s.reduce((e,{paramName:t,isOptional:n},s)=>{if("*"===t){let e=a[s]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const r=a[s];return e[t]=n&&!r?void 0:(r||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function N(e,t=!1,n=!0){u("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,r,o)=>{if(s.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(r+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),s]}function T(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return u(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&"/"!==s?null:e.slice(n)||"/"}function z(e,t){let n=U(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function R(e,t,n,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function I(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e){let t=I(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function L(e,t,n,s=!1){let r;"string"==typeof e?r=m(e):(r={...e},p(!r.pathname||!r.pathname.includes("?"),R("?","pathname","search",r)),p(!r.pathname||!r.pathname.includes("#"),R("#","pathname","hash",r)),p(!r.search||!r.search.includes("#"),R("#","search","hash",r)));let o,i=""===e||""===r.pathname,a=i?"/":r.pathname;if(null==a)o=n;else{let e=t.length-1;if(!s&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t="/"){let n,{pathname:s,search:r="",hash:o=""}="string"==typeof e?m(e):e;return s?(s=D(s),n=s.startsWith("/")?z(s.substring(1),"/"):z(s,t)):n=t,{pathname:n,search:B(r),hash:H(o)}}(r,o),l=a&&"/"!==a&&a.endsWith("/"),d=(i||"."===a)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!d||(c.pathname+="/"),c}var D=e=>e.replace(/[\\/]{2,}/g,"/"),F=e=>D(e.join("/")),U=e=>e.replace(/\/+$/,""),V=e=>U(e).replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",H=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var $=class{constructor(e,t,n,s=!1){this.status=e,this.statusText=t||"",this.internal=s,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function W(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function q(e){let t=e.map(e=>e.route.path).filter(Boolean);return F(t)||"/"}var K="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function J(e,t){let n=e;if("string"!=typeof n||!o.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let s=n,r=!1;if(K)try{let e=new URL(window.location.href),s=i.test(n)?new URL(a(n,e.protocol)):new URL(n),o=O(s.pathname,t);s.origin===e.origin&&null!=o?n=o+s.search+s.hash:r=!0}catch(e){u(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:r,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var G=["POST","PUT","PATCH","DELETE"],Y=(new Set(G),["GET",...G]);new Set(Y),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var Z=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function X(e){try{return Z.includes(new URL(e).protocol)}catch{return!1}}var Q=r.createContext(null);Q.displayName="DataRouter";var ee=r.createContext(null);ee.displayName="DataRouterState";var te=r.createContext(!1);function ne(){return r.useContext(te)}var se=r.createContext({isTransitioning:!1});se.displayName="ViewTransition";var re=r.createContext(new Map);re.displayName="Fetchers";var oe=r.createContext(null);oe.displayName="Await";var ie=r.createContext(null);ie.displayName="Navigation";var ae=r.createContext(null);ae.displayName="Location";var ce=r.createContext({outlet:null,matches:[],isDataRoute:!1});ce.displayName="Route";var le=r.createContext(null);le.displayName="RouteError";var de="REACT_ROUTER_ERROR";function pe(){return null!=r.useContext(ae)}function ue(){return p(pe(),"useLocation() may be used only in the context of a <Router> component."),r.useContext(ae).location}var he="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ge(e){r.useContext(ie).static||r.useLayoutEffect(e)}function fe(){let{isDataRoute:e}=r.useContext(ce);return e?function(){let{router:e}=Se("useNavigate"),t=Ee("useNavigate"),n=r.useRef(!1);return ge(()=>{n.current=!0}),r.useCallback(async(s,r={})=>{u(n.current,he),n.current&&("number"==typeof s?await e.navigate(s):await e.navigate(s,{fromRouteId:t,...r}))},[e,t])}():function(){p(pe(),"useNavigate() may be used only in the context of a <Router> component.");let e=r.useContext(Q),{basename:t,navigator:n}=r.useContext(ie),{matches:s}=r.useContext(ce),{pathname:o}=ue(),i=JSON.stringify(P(s)),a=r.useRef(!1);return ge(()=>{a.current=!0}),r.useCallback((s,r={})=>{if(u(a.current,he),!a.current)return;if("number"==typeof s)return void n.go(s);let c=L(s,JSON.parse(i),o,"path"===r.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:F([t,c.pathname])),(r.replace?n.replace:n.push)(c,r.state,r)},[t,n,i,o,e])}()}r.createContext(null);function me(e,{relative:t}={}){let{matches:n}=r.useContext(ce),{pathname:s}=ue(),o=JSON.stringify(P(n));return r.useMemo(()=>L(e,JSON.parse(o),s,"path"===t),[e,o,s,t])}function ve(e,t,n){p(pe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=r.useContext(ie),{matches:o}=r.useContext(ce),i=o[o.length-1],a=i?i.params:{},c=i?i.pathname:"/",l=i?i.pathnameBase:"/",d=i&&i.route;{let e=d&&d.path||"";Te(c,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,g=ue();if(t){let e="string"==typeof t?m(t):t;p("/"===l||e.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=g;let f=h.pathname||"/",v=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):b(e,{pathname:v});u(d||null!=w,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),u(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=je(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:F([l,s.encodeLocation?s.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:F([l,s.encodeLocation?s.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&y?r.createElement(ae.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},y):y}function we(){let e=Me(),t=W(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},i={padding:"2px 4px",backgroundColor:s},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=r.createElement(r.Fragment,null,r.createElement("p",null,"💿 Hey developer 👋"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:i},"ErrorBoundary")," or"," ",r.createElement("code",{style:i},"errorElement")," prop on your route.")),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:o},n):null,a)}var be=r.createElement(we,null),ye=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${de}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new $(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?r.createElement(ce.Provider,{value:this.props.routeContext},r.createElement(le.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(_e,{error:e},t):t}};ye.contextType=te;var ke=new WeakMap;function _e({children:e,error:t}){let{basename:n}=r.useContext(ie);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${de}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let s=ke.get(t);if(s)throw s;let o=J(e.location,n),i=o.absoluteURL||o.to;if(X(i))throw new Error("Invalid redirect location");if(K&&!ke.get(t)){if(!o.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:e.replace}));throw ke.set(t,n),n}window.location.href=i}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}function xe({routeContext:e,match:t,children:n}){let s=r.useContext(Q);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(ce.Provider,{value:e},n)}function je(e,t=[],n){let s=n?.state;if(null==e){if(!s)return null;if(s.errors)e=s.matches;else{if(0!==t.length||s.initialized||!(s.matches.length>0))return null;e=s.matches}}let o=e,i=s?.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);p(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let a=!1,c=-1;if(n&&s){a=s.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){n.isStatic&&(a=!0),o=c>=0?o.slice(0,c+1):[o[0]];break}}}}let l=n?.onError,d=s&&l?(e,t)=>{l(e,{location:s.location,params:s.matches?.[0]?.params??{},pattern:q(s.matches),errorInfo:t})}:void 0;return o.reduceRight((e,n,l)=>{let p,u=!1,h=null,g=null;s&&(p=i&&n.route.id?i[n.route.id]:void 0,h=n.route.errorElement||be,a&&(c<0&&0===l?(Te("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,g=null):c===l&&(u=!0,g=n.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,l+1)),m=()=>{let t;return t=p?h:u?g:n.route.Component?r.createElement(n.route.Component,null):n.route.element?n.route.element:e,r.createElement(xe,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(n.route.ErrorBoundary||n.route.errorElement||0===l)?r.createElement(ye,{location:s.location,revalidation:s.revalidation,component:h,error:p,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:d}):m()},null)}function Ce(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Se(e){let t=r.useContext(Q);return p(t,Ce(e)),t}function Ae(e){let t=r.useContext(ee);return p(t,Ce(e)),t}function Ee(e){let t=function(e){let t=r.useContext(ce);return p(t,Ce(e)),t}(e),n=t.matches[t.matches.length-1];return p(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Me(){let e=r.useContext(le),t=Ae("useRouteError"),n=Ee("useRouteError");return void 0!==e?e:t.errors?.[n]}var Ne={};function Te(e,t,n){t||Ne[e]||(Ne[e]=!0,u(!1,n))}var Oe={};function ze(e,t){e||Oe[t]||(Oe[t]=!0,console.warn(t))}(s||(s=n.t(r,2))).useOptimistic;r.memo(Re);function Re({routes:e,manifest:t,future:n,state:s,isStatic:r,onError:o}){return ve(e,void 0,{manifest:t,state:s,isStatic:r,onError:o,future:n})}function Ie(e){p(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Pe({basename:e="/",children:t=null,location:n,navigationType:s="POP",navigator:o,static:i=!1,useTransitions:a}){p(!pe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),l=r.useMemo(()=>({basename:c,navigator:o,static:i,useTransitions:a,future:{}}),[c,o,i,a]);"string"==typeof n&&(n=m(n));let{pathname:d="/",search:h="",hash:g="",state:f=null,key:v="default",mask:w}=n,b=r.useMemo(()=>{let e=O(d,c);return null==e?null:{location:{pathname:e,search:h,hash:g,state:f,key:v,mask:w},navigationType:s}},[c,d,h,g,f,v,s,w]);return u(null!=b,`<Router basename="${c}"> is not able to match the URL "${d}${h}${g}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:r.createElement(ie.Provider,{value:l},r.createElement(ae.Provider,{children:t,value:b}))}function Le({children:e,location:t}){return ve(De(e),t)}r.Component;function De(e,t=[]){let n=[];return r.Children.forEach(e,(e,s)=>{if(!r.isValidElement(e))return;let o=[...t,s];if(e.type===r.Fragment)return void n.push.apply(n,De(e.props.children,o));p(e.type===Ie,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),p(!e.props.index||!e.props.children,"An index route cannot have child routes.");let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=De(e.props.children,o)),n.push(i)}),n}var Fe="get",Ue="application/x-www-form-urlencoded";function Ve(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Be=null;var He=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $e(e){return null==e||He.has(e)?e:(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ue}"`),null)}function We(e,t){let n,s,r,o,i;if(Ve(a=e)&&"form"===a.tagName.toLowerCase()){let i=e.getAttribute("action");s=i?O(i,t):null,n=e.getAttribute("method")||Fe,r=$e(e.getAttribute("enctype"))||Ue,o=new FormData(e)}else if(function(e){return Ve(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ve(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||i.getAttribute("action");if(s=a?O(a,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Fe,r=$e(e.getAttribute("formenctype"))||$e(i.getAttribute("enctype"))||Ue,o=new FormData(i,e),!function(){if(null===Be)try{new FormData(document.createElement("form"),0),Be=!1}catch(e){Be=!0}return Be}()){let{name:t,type:n,value:s}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,s)}}else{if(Ve(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fe,s=null,r=Ue,i=e}var a;return o&&"text/plain"===r&&(i=o,o=void 0),{action:s,method:n.toLowerCase(),encType:r,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qe(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Ke(e,t,n,s){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname=`${r.pathname}_.${s}`:r.pathname=`${r.pathname}.${s}`:"/"===r.pathname?r.pathname=`_root.${s}`:t&&"/"===O(r.pathname,t)?r.pathname=`${U(t)}/_root.${s}`:r.pathname=`${U(r.pathname)}.${s}`,r}async function Je(e,t){if(e.id in t)return t[e.id];try{let n=await(import(e.module));return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ge(e){return null!=e&&"string"==typeof e.page}function Ye(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ze(e,t,n,s,r,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,a=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||a(e,t)):"data"===o?t.filter((t,o)=>{let c=s.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(i(t,o)||a(t,o))return!0;if(t.route.shouldRevalidate){let s=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof s)return s}return!0}):[]}function Xe(e,t,{includeHydrateFallback:n}={}){return s=e.map(e=>{let s=t.routes[e.route.id];if(!s)return[];let r=[s.module];return s.clientActionModule&&(r=r.concat(s.clientActionModule)),s.clientLoaderModule&&(r=r.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(r=r.concat(s.hydrateFallbackModule)),s.imports&&(r=r.concat(s.imports)),r}).flat(1),[...new Set(s)];var s}function Qe(e,t){let n=new Set,s=new Set(t);return e.reduce((e,r)=>{if(t&&!Ge(r)&&"script"===r.as&&r.href&&s.has(r.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let s of n)t[s]=e[s];return t}(r));return n.has(o)||(n.add(o),e.push({key:o,link:r})),e},[])}function et(e,t){return"lazy"===e.mode&&!0===t}function tt(){let e=r.useContext(Q);return qe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nt(){let e=r.useContext(ee);return qe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var st=r.createContext(void 0);function rt(){let e=r.useContext(st);return qe(e,"You must render this element inside a <HydratedRouter> element"),e}function ot(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function it(e,t,n){if(n&&!pt)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}st.displayName="FrameworkContext";function at({page:e,...t}){let n=ne(),{nonce:s}=rt(),{router:o}=tt(),i=r.useMemo(()=>b(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?(null==t.nonce&&s&&(t={...t,nonce:s}),n?r.createElement(lt,{page:e,matches:i,...t}):r.createElement(dt,{page:e,matches:i,...t})):null}function ct(e){let{manifest:t,routeModules:n}=rt(),[s,o]=r.useState([]);return r.useEffect(()=>{let s=!1;return async function(e,t,n){return Qe((await Promise.all(e.map(async e=>{let s=t.routes[e.route.id];if(s){let e=await Je(s,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ye).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{s||o(e)}),()=>{s=!0}},[e,t,n]),s}function lt({page:e,matches:t,...n}){let s=ue(),{future:o}=rt(),{basename:i}=tt(),a=r.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let n=Ke(e,i,o.v8_trailingSlashAwareDataRequests,"rsc"),r=!1,a=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?r=!0:a.push(e.route.id);return r&&a.length>0&&n.searchParams.set("_routes",a.join(",")),[n.pathname+n.search]},[i,o.v8_trailingSlashAwareDataRequests,e,s,t]);return r.createElement(r.Fragment,null,a.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function dt({page:e,matches:t,...n}){let s=ue(),{future:o,manifest:i,routeModules:a}=rt(),{basename:c}=tt(),{loaderData:l,matches:d}=nt(),p=r.useMemo(()=>Ze(e,t,d,i,s,"data"),[e,t,d,i,s]),u=r.useMemo(()=>Ze(e,t,d,i,s,"assets"),[e,t,d,i,s]),h=r.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let n=new Set,r=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!p.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?r=!0:n.add(e.route.id))}),0===n.size)return[];let d=Ke(e,c,o.v8_trailingSlashAwareDataRequests,"data");return r&&n.size>0&&d.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[c,o.v8_trailingSlashAwareDataRequests,l,s,i,p,t,e,a]),g=r.useMemo(()=>Xe(u,i),[u,i]),f=ct(u);return r.createElement(r.Fragment,null,h.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),g.map(e=>r.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),f.map(({key:e,link:t})=>r.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}var pt=!1;function ut(e){let{manifest:t,serverHandoffString:n,isSpaMode:s,renderMeta:o,routeDiscovery:i,ssr:a,nonce:c}=rt(),{router:l,static:d,staticContext:p}=tt(),{matches:u}=nt(),h=ne(),g=et(i,a);null==e.nonce&&c&&(e={...e,nonce:c}),o&&(o.didRenderScripts=!0);let f=it(u,null,s);r.useEffect(()=>{pt=!0},[]);let m=r.useMemo(()=>{if(h)return null;let s=p?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=d?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${g?"":`import ${JSON.stringify(t.url)}`};\n${f.map((e,n)=>{let s=`route${n}`,r=t.routes[e.route.id];qe(r,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:i,clientMiddlewareModule:a,hydrateFallbackModule:c,module:l}=r,d=[...o?[{module:o,varName:`${s}_clientAction`}]:[],...i?[{module:i,varName:`${s}_clientLoader`}]:[],...a?[{module:a,varName:`${s}_clientMiddleware`}]:[],...c?[{module:c,varName:`${s}_HydrateFallback`}]:[],{module:l,varName:`${s}_main`}];return 1===d.length?`import * as ${s} from ${JSON.stringify(l)};`:[d.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${s} = {${d.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${g?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let s=new Set(n.state.matches.map(e=>e.route.id)),r=n.state.location.pathname.split("/").filter(Boolean),o=["/"];for(r.pop();r.length>0;)o.push(`/${r.join("/")}`),r.pop();o.forEach(e=>{let t=y(n.routes,e,n.basename||"/",!1,n.branches);t&&t.forEach(e=>s.add(e.route.id))});let i=[...s].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:i,sri:!!e||void 0}}(t,l),null,2)};`:""}\n window.__reactRouterRouteModules = {${f.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return r.createElement(r.Fragment,null,r.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s},type:void 0}),r.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),v=pt||h?[]:[...new Set(t.entry.imports.concat(Xe(f,t,{includeHydrateFallback:!0})))],w="object"==typeof t.sri?t.sri:{};return ze(!h,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),pt||h?null:r.createElement(r.Fragment,null,"object"==typeof t.sri?r.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:w})}}):null,g?null:r.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:w[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),r.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:w[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),v.map(t=>r.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:w[t],nonce:e.nonce,suppressHydrationWarning:!0})),m)}function ht(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}r.Component;function gt({error:e,isOutsideRemixApp:t}){let{nonce:n}=rt();console.error(e);let s,o=r.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(W(e))return r.createElement(ft,{title:"Unhandled Thrown Response!"},r.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),o);if(e instanceof Error)s=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);s=new Error(t)}return r.createElement(ft,{title:"Application Error!",isOutsideRemixApp:t},r.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),r.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},s.stack),o)}function ft({title:e,renderScripts:t,isOutsideRemixApp:n,children:s}){let{routeModules:o}=rt();return o.root?.Layout&&!n?s:r.createElement("html",{lang:"en"},r.createElement("head",null,r.createElement("meta",{charSet:"utf-8"}),r.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),r.createElement("title",null,e)),r.createElement("body",null,r.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,t?r.createElement(ut,null):null)))}var mt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{mt&&(window.__reactRouterVersion="7.18.2")}catch(e){}function vt({basename:e,children:t,useTransitions:n,window:s}){let o=r.useRef();null==o.current&&(o.current=d({window:s,v5Compat:!0}));let i=o.current,[a,c]=r.useState({action:i.action,location:i.location}),l=r.useCallback(e=>{!1===n?c(e):r.startTransition(()=>c(e))},[n]);return r.useLayoutEffect(()=>i.listen(l),[i,l]),r.createElement(Pe,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,useTransitions:n})}var wt=r.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:s,reloadDocument:i,replace:a,mask:c,state:l,target:d,to:u,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:m,...v},w){let{basename:b,navigator:y,useTransitions:k}=r.useContext(ie),_="string"==typeof u&&o.test(u),x=J(u,b),j=function(e,{relative:t}={}){p(pe(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:s}=r.useContext(ie),{hash:o,pathname:i,search:a}=me(e,{relative:t}),c=i;return"/"!==n&&(c="/"===i?n:F([n,i])),s.createHref({pathname:c,search:a,hash:o})}(u=x.to,{relative:s}),C=ue(),S=null;if(c){let e=L(c,[],C.mask?C.mask.pathname:"/",!0);"/"!==b&&(e.pathname="/"===e.pathname?b:F([b,e.pathname])),S=y.createHref(e)}let[A,E,M]=function(e,t){let n=r.useContext(st),[s,o]=r.useState(!1),[i,a]=r.useState(!1),{onFocus:c,onBlur:l,onMouseEnter:d,onMouseLeave:p,onTouchStart:u}=t,h=r.useRef(null);r.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return h.current&&e.observe(h.current),()=>{e.disconnect()}}},[e]),r.useEffect(()=>{if(s){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[s]);let g=()=>{o(!0)},f=()=>{o(!1),a(!1)};return n?"intent"!==e?[i,h,{}]:[i,h,{onFocus:ot(c,g),onBlur:ot(l,f),onMouseEnter:ot(d,g),onMouseLeave:ot(p,f),onTouchStart:ot(u,g)}]:[!1,h,{}]}(n,v),N=function(e,{target:t,replace:n,mask:s,state:o,preventScrollReset:i,relative:a,viewTransition:c,defaultShouldRevalidate:l,useTransitions:d}={}){let p=fe(),u=ue(),h=me(e,{relative:a});return r.useCallback(g=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(g,t)){g.preventDefault();let t=void 0!==n?n:f(u)===f(h),m=()=>p(e,{replace:t,mask:s,state:o,preventScrollReset:i,relative:a,viewTransition:c,defaultShouldRevalidate:l});d?r.startTransition(()=>m()):m()}},[u,p,h,n,s,o,t,e,i,a,c,l,d])}(u,{replace:a,mask:c,state:l,target:d,preventScrollReset:h,relative:s,viewTransition:g,defaultShouldRevalidate:m,useTransitions:k});let T=!(x.isExternal||i),O=r.createElement("a",{...v,...M,href:(T?S:void 0)||x.absoluteURL||j,onClick:T?function(t){e&&e(t),t.defaultPrevented||N(t)}:e,ref:ht(w,E),target:d,"data-discover":_||"render"!==t?void 0:"true"});return A&&!_?r.createElement(r.Fragment,null,O,r.createElement(at,{page:j})):O});wt.displayName="Link",r.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:s=!1,style:o,to:i,viewTransition:a,children:c,...l},d){let u=me(i,{relative:l.relative}),h=ue(),g=r.useContext(ee),{navigator:f,basename:m}=r.useContext(ie),v=null!=g&&function(e,{relative:t}={}){let n=r.useContext(se);p(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=kt("useViewTransitionState"),o=me(e,{relative:t});if(!n.isTransitioning)return!1;let i=O(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=O(n.nextLocation.pathname,s)||n.nextLocation.pathname;return null!=E(o.pathname,a)||null!=E(o.pathname,i)}(u)&&!0===a,w=f.encodeLocation?f.encodeLocation(u).pathname:u.pathname,b=h.pathname,y=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;t||(b=b.toLowerCase(),y=y?y.toLowerCase():null,w=w.toLowerCase()),y&&m&&(y=O(y,m)||y);const k="/"!==w&&w.endsWith("/")?w.length-1:w.length;let _,x=b===w||!s&&b.startsWith(w)&&"/"===b.charAt(k),j=null!=y&&(y===w||!s&&y.startsWith(w)&&"/"===y.charAt(w.length)),C={isActive:x,isPending:j,isTransitioning:v},S=x?e:void 0;_="function"==typeof n?n(C):[n,x?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof o?o(C):o;return r.createElement(wt,{...l,"aria-current":S,className:_,ref:d,style:A,to:i,viewTransition:a},"function"==typeof c?c(C):c)}).displayName="NavLink";var bt=r.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:s,replace:i,state:a,method:c=Fe,action:l,onSubmit:d,relative:u,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:m,...v},w)=>{let{useTransitions:b}=r.useContext(ie),y=xt(),k=function(e,{relative:t}={}){let{basename:n}=r.useContext(ie),s=r.useContext(ce);p(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),i={...me(e||".",{relative:t})},a=ue();if(null==e){i.search=a.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(i.pathname="/"===i.pathname?n:F([n,i.pathname]));return f(i)}(l,{relative:u}),_="get"===c.toLowerCase()?"get":"post",x="string"==typeof l&&o.test(l);return r.createElement("form",{ref:w,method:_,action:k,onSubmit:s?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let s=e.nativeEvent.submitter,o=s?.getAttribute("formmethod")||c,l=()=>y(s||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:i,state:a,relative:u,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:m});b&&!1!==n?r.startTransition(()=>l()):l()},...v,"data-discover":x||"render"!==e?void 0:"true"})});function yt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kt(e){let t=r.useContext(Q);return p(t,yt(e)),t}bt.displayName="Form";var _t=0;function xt(){let{router:e}=kt("useSubmit"),{basename:t}=r.useContext(ie),n=Ee("useRouteId"),s=e.fetch,o=e.navigate;return r.useCallback(async(e,r={})=>{let{action:i,method:a,encType:c,formData:l,body:d}=We(e,t);if(!1===r.navigate){let e=r.fetcherKey||`__${String(++_t)}__`;await s(e,n,r.action||i,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:l,body:d,formMethod:r.method||a,formEncType:r.encType||c,flushSync:r.flushSync})}else await o(r.action||i,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:l,body:d,formMethod:r.method||a,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[s,o,t,n])}},12996(e,t,n){"use strict";function s(e){return({dispatch:t,getState:n})=>s=>r=>"function"==typeof r?r(t,n,e):s(r)}n.d(t,{P:()=>r});var r=s()},16278(e,t,n){"use strict";function s(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>l,Tw:()=>h,Zz:()=>u,y$:()=>c,zH:()=>p});var r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),o=()=>Math.random().toString(36).substring(7).split("").join("."),i={INIT:`@@redux/INIT${o()}`,REPLACE:`@@redux/REPLACE${o()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${o()}`};function a(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(e,t,n){if("function"!=typeof e)throw new Error(s(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(c)(e,t)}let o=e,l=t,d=new Map,p=d,u=0,h=!1;function g(){p===d&&(p=new Map,d.forEach((e,t)=>{p.set(t,e)}))}function f(){if(h)throw new Error(s(3));return l}function m(e){if("function"!=typeof e)throw new Error(s(4));if(h)throw new Error(s(5));let t=!0;g();const n=u++;return p.set(n,e),function(){if(t){if(h)throw new Error(s(6));t=!1,g(),p.delete(n),d=null}}}function v(e){if(!a(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if("string"!=typeof e.type)throw new Error(s(17));if(h)throw new Error(s(9));try{h=!0,l=o(l,e)}finally{h=!1}return(d=p).forEach(e=>{e()}),e}v({type:i.INIT});return{dispatch:v,subscribe:m,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,v({type:i.REPLACE})},[r]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(s(11));function n(){const e=t;e.next&&e.next(f())}n();return{unsubscribe:e(n)}},[r](){return this}}}}}function l(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const r=t[s];0,"function"==typeof e[r]&&(n[r]=e[r])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:i.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const c=r[o],l=n[c],d=e[c],p=l(d,t);if(void 0===p){t&&t.type;throw new Error(s(14))}a[c]=p,i=i||p!==d}return i=i||r.length!==Object.keys(e).length,i?a:e}}function d(e,t){return function(...n){return t(e.apply(this,n))}}function p(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));const n={};for(const s in e){const r=e[s];"function"==typeof r&&(n[s]=d(r,t))}return n}function u(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function h(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(s(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},c=e.map(e=>e(a));return i=u(...c)(o.dispatch),{...o,dispatch:i}}}},69524(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(13022),r=n(86087),o=n(10790),i=(0,r.forwardRef)(({children:e,className:t,ariaLabel:n,as:r="div",...i},a)=>(0,o.jsx)(r,{ref:a,className:(0,s.A)("admin-ui-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...i,children:e}));i.displayName="NavigableRegion";var a=i},30086(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(27723),r=n(21220),o=n(39968),i=n(79654),a=n(10790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)d(e,n,s)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const s=l();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(c,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const s of n.documents.keys())d(s,e,t)})("72ef022400",".bfb5a2dd8cceebd3__list{--focus-ring-size:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*2);list-style:none;margin:calc(var(--focus-ring-size)*-1);overflow-x:auto;padding:var(--focus-ring-size);scroll-padding:var(--focus-ring-size)}.a4759b4cb2c8bd92__li{flex-shrink:0}._07da506d3f2d9afe__item{align-items:center;color:var(--wpds-color-foreground-interactive-neutral-weak,#707070);display:flex;font-weight:var(--wpds-typography-font-weight-default,400);min-block-size:44px;min-inline-size:44px;text-decoration:none}._07da506d3f2d9afe__item:hover,._07da506d3f2d9afe__item[aria-current=page]{color:var(--wpds-color-foreground-interactive-neutral-weak-active,#1e1e1e)}._07da506d3f2d9afe__item[aria-current=page]{font-weight:var(--wpds-typography-font-weight-emphasis,600)}");var p="bfb5a2dd8cceebd3__list",u="a4759b4cb2c8bd92__li",h="_07da506d3f2d9afe__item",g=({items:e,currentHref:t,ariaLabel:n=(0,s.__)("Sections","jetpack"),linkComponent:c,className:l})=>{if(!e.length)return null;const d=c??"a";return(0,a.jsx)("nav",{"aria-label":n,className:l,children:(0,a.jsx)(r.B,{render:(0,a.jsx)("ul",{role:"list"}),direction:"row",align:"center",gap:"md",className:p,children:e.map(e=>(0,a.jsx)("li",{className:u,children:(0,a.jsx)(o.E,{variant:"body-md",className:h,render:(0,a.jsx)(i.N,{variant:"unstyled","aria-current":e.href===t?"page":void 0,render:(0,a.jsx)(d,{href:e.href})}),children:e.label})},e.href))})})}},98880(e,t,n){"use strict";n.d(t,{A:()=>_});var s=n(13022),r=n(21220),o=n(39968),i=n(30086),a=n(74059),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)})("1f3750277d","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8bcd33103b451f30__header-lockup{min-width:0}._8113be94e7caf73c__header-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}._0625b55e82a0d93d__header._4b0f17e503d11619__has-navigation,._0625b55e82a0d93d__header._4b0f17e503d11619__has-navigation ._60fea2f6bf5319cd__header-subtitle{padding-block-end:0}._673c99dcbfb58211__header-navigation{margin-block-start:var(--wpds-dimension-gap-md,12px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var u="_0625b55e82a0d93d__header",h="a43c44d5ae28b2e8__header-content",g="b7cb5b9daf3a3b25__header-actions",f="_8bcd33103b451f30__header-lockup",m="_8113be94e7caf73c__header-title",v="_9a776c7f70996f61__header-visual",w="d5e0920cd15d35bc__sidebar-toggle-slot",b="_60fea2f6bf5319cd__header-subtitle",y="_4b0f17e503d11619__has-navigation",k="_673c99dcbfb58211__header-navigation";function _({headingLevel:e=1,breadcrumbs:t,badges:n,visual:l,title:d,subTitle:p,actions:_,navigation:x,components:j,showSidebarToggle:C=!0}){const S=`h${e}`,A=!!x?.items?.length;return(0,c.jsxs)(r.B,{direction:"column",className:(0,s.A)(u,A&&y),children:[(0,c.jsxs)(r.B,{className:h,direction:"row",gap:"sm",justify:"space-between",children:[(0,c.jsxs)(r.B,{direction:"row",gap:"sm",align:"center",justify:"start",className:f,children:[C&&(0,c.jsx)(a.D,{bubblesVirtually:!0,className:w}),l&&(0,c.jsx)("div",{className:v,"aria-hidden":"true",children:l}),d&&(0,c.jsx)(o.E,{className:m,render:(0,c.jsx)(S,{}),variant:"heading-lg",children:d}),t,n]}),_&&(0,c.jsx)(r.B,{align:"center",className:g,direction:"row",gap:"sm",children:_})]}),p&&(0,c.jsx)(o.E,{render:(0,c.jsx)("p",{}),variant:"body-md",className:b,children:p}),A&&(0,c.jsx)(i.A,{...x,linkComponent:j?.link,className:k})]})}},40077(e,t,n){"use strict";n.d(t,{A:()=>f});var s=n(13022),r=n(98880),o=n(69524),i=n(74059),a=n(10790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)d(e,n,s)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const s=l();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(c,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const s of n.documents.keys())d(s,e,t)})("1f3750277d","._956b6df0898efed0__page{text-wrap:pretty;background-color:var(--wpds-color-background-surface-neutral,#fcfcfc);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-flow:column;height:100%;position:relative;z-index:1}._0625b55e82a0d93d__header{background:var(--wpds-color-background-surface-neutral-strong,#fff);border-block-end:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);inset-block-start:0;padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px);position:sticky;z-index:1}.a43c44d5ae28b2e8__header-content{min-height:var(--wpds-dimension-size-md,32px)}.b7cb5b9daf3a3b25__header-actions{flex-shrink:0}._8bcd33103b451f30__header-lockup{min-width:0}._8113be94e7caf73c__header-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._9a776c7f70996f61__header-visual{display:grid;flex-shrink:0;grid-template-columns:1fr;grid-template-rows:1fr;height:var(--wpds-dimension-size-sm,24px);width:var(--wpds-dimension-size-sm,24px);>*{grid-column:1/-1;grid-row:1/-1;max-height:100%;max-width:100%}}.d5e0920cd15d35bc__sidebar-toggle-slot:empty{display:none}._60fea2f6bf5319cd__header-subtitle{color:var(--wpds-color-foreground-content-neutral-weak,#707070);padding-block-end:var(--wpds-dimension-padding-xs,4px)}._0625b55e82a0d93d__header._4b0f17e503d11619__has-navigation,._0625b55e82a0d93d__header._4b0f17e503d11619__has-navigation ._60fea2f6bf5319cd__header-subtitle{padding-block-end:0}._673c99dcbfb58211__header-navigation{margin-block-start:var(--wpds-dimension-gap-md,12px)}.be5e57d029ec4036__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;&._128806d0b26e3a50__has-padding{padding:var(--wpds-dimension-padding-lg,16px) var(--wpds-dimension-padding-2xl,24px)}}");var p="_956b6df0898efed0__page",u="be5e57d029ec4036__content",h="_128806d0b26e3a50__has-padding";function g({headingLevel:e,breadcrumbs:t,badges:n,visual:i,title:c,subTitle:l,children:d,className:g,actions:f,navigation:m,components:v,ariaLabel:w,hasPadding:b=!1,showSidebarToggle:y=!0}){const k=(0,s.A)(p,g),_=w??("string"==typeof c?c:"");return(0,a.jsxs)(o.A,{className:k,ariaLabel:_,children:[(c||t||n||f||i||!!m?.items?.length)&&(0,a.jsx)(r.A,{headingLevel:e,breadcrumbs:t,badges:n,visual:i,title:c,subTitle:l,actions:f,navigation:m,components:v,showSidebarToggle:y}),b?(0,a.jsx)("div",{className:(0,s.A)(u,h),children:d}):d]})}g.SidebarToggleFill=i.a;var f=g},74059(e,t,n){"use strict";n.d(t,{D:()=>o,a:()=>r});var s=n(56427),{Fill:r,Slot:o}=(0,s.createSlotFill)("SidebarToggle")},51526(e,t,n){"use strict";n.d(t,{$:()=>v});var s=n(48816),r=n(13022),o=n(20195),i=n(86087),a=n(27723),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function u(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)}u("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var h={button:"_97b0fc33c028be1a__button","is-unstyled":"abbb272e2ce49bd6__is-unstyled","is-loading":"_914b42f315c0e580__is-loading","is-small":"_908205475f9f2a92__is-small",icon:"_9f6fc6553aeb36fe__icon","is-brand":"dd460c965226cc77__is-brand","is-outline":"_62d5a778b7b258ee__is-outline","is-minimal":"ad0619a3217c6a5b__is-minimal","is-neutral":"e722a8f96726aa99__is-neutral","is-solid":"b50b3358c5fb4d0b__is-solid","is-compact":"cf59cf1b69629838__is-compact","loading-animation":"_5a1d53da6f830c8d__loading-animation"};u("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var g="_336cd3e4e743482f__box-sizing";u("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var f="abc777e9713fa711__outset-ring--focus-except-active";u("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var m="_6defc79820e382c6__button",v=(0,i.forwardRef)(function({tone:e="brand",variant:t="solid",size:n="default",className:l,focusableWhenDisabled:d=!0,disabled:p,loading:u,loadingAnnouncement:v=(0,a.__)("Loading","jetpack"),children:w,...b},y){const k=(0,r.A)(m,g,f,"unstyled"!==t&&h.button,h[`is-${e}`],h[`is-${t}`],h[`is-${n}`],u&&h["is-loading"],l);return(0,i.useEffect)(()=>{u&&v&&(0,o.speak)(v)},[u,v]),(0,c.jsx)(s.$,{ref:y,className:k,focusableWhenDisabled:d,disabled:p??u,...b,children:w})})},26313(e,t,n){"use strict";n.d(t,{a:()=>p});var s=n(13022),r=n(86087),o=n(71100),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("effc4e3032",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._97b0fc33c028be1a__button,.abbb272e2ce49bd6__is-unstyled{appearance:none;padding:0}._97b0fc33c028be1a__button{--wp-ui-button-font-weight:var(--wpds-typography-font-weight-emphasis,600);--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-strong,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-strong-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 93%,#000));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand-strong,#fff);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-strong-active,#fff);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-strong-disabled,#8d8d8d);--wp-ui-button-padding-block:var(--wpds-dimension-padding-xs,4px);--wp-ui-button-padding-inline:var(--wpds-dimension-padding-md,12px);--wp-ui-button-height:var(--wpds-dimension-size-lg,40px);--wp-ui-button-aspect-ratio:auto;--wp-ui-button-font-size:var(--wpds-typography-font-size-md,13px);--wp-ui-button-min-width:calc(4ch + var(--wp-ui-button-padding-inline)*2);--wp-ui-button-icon-margin:calc((var(--wpds-dimension-size-2xs, 16px) - var(--wpds-dimension-size-sm, 24px))/2);--wp-ui-button-border-color:var(--wp-ui-button-background-color);--wp-ui-button-border-color-active:var(--wp-ui-button-background-color-active);--wp-ui-button-border-color-disabled:var(--wp-ui-button-background-color-disabled);--_gcd-button-font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);--_gcd-button-font-size:var(--wp-ui-button-font-size);--_gcd-button-font-weight:var(--wp-ui-button-font-weight);align-items:center;aspect-ratio:var(--wp-ui-button-aspect-ratio);background-clip:border-box;background-color:var(--wp-ui-button-background-color);border-color:var(--wp-ui-button-border-color);border-radius:var(--wpds-border-radius-sm,2px);border-style:solid;border-width:1px;color:var(--wp-ui-button-foreground-color);display:inline-flex;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wp-ui-button-font-size);font-weight:var(--wp-ui-button-font-weight);gap:var(--wpds-dimension-gap-sm,8px);justify-content:center;line-height:var(--wpds-typography-line-height-sm,20px);max-width:100%;min-height:var(--wp-ui-button-height);min-width:var(--wp-ui-button-min-width);overflow-wrap:anywhere;padding-block:var(--wp-ui-button-padding-block);padding-inline:var(--wp-ui-button-padding-inline);position:relative;text-align:center;text-decoration:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}@media not (prefers-reduced-motion){transition:color .1s ease-out;*{transition:opacity .1s ease-out}}&[href]{cursor:pointer}[href]{color:inherit;text-decoration:inherit}&:not([data-disabled]):is(:hover,:active,:focus){background-color:var(--wp-ui-button-background-color-active);border-color:var(--wp-ui-button-border-color-active);color:var(--wp-ui-button-foreground-color-active)}&[data-disabled]:not(._914b42f315c0e580__is-loading){background-color:var(--wp-ui-button-background-color-disabled);border-color:var(--wp-ui-button-border-color-disabled);color:var(--wp-ui-button-foreground-color-disabled);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText;color:GrayText}}&:before{aspect-ratio:1;border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid;border-block-end-color:transparent;border-block-start-color:var(--wp-ui-button-foreground-color);border-inline-end-color:var(--wp-ui-button-foreground-color);border-inline-start-color:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:var(--wp-ui-button-font-size);left:50%;opacity:0;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);@media not (prefers-reduced-motion){transition:opacity .1s ease-out}@media (forced-colors:active){border-block-end-style:none;border-bottom-color:ButtonText;border-inline-start-style:none;border-left-color:ButtonText;border-right-color:ButtonText;border-top-color:ButtonText}}}._908205475f9f2a92__is-small{--wp-ui-button-padding-block:0px;--wp-ui-button-padding-inline:var(--wpds-dimension-padding-sm,8px);--wp-ui-button-height:var(--wpds-dimension-size-sm,24px)}._9f6fc6553aeb36fe__icon{margin:var(--wp-ui-button-icon-margin)}.dd460c965226cc77__is-brand{&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-brand-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-brand,var(--wp-admin-theme-color,#3858e9));--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 85%,#000));--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-brand-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal{--wp-ui-button-background-color:var(--wpds-color-background-interactive-brand-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-brand-weak-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 12%,#fff));--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-brand-weak-disabled,#0000)}}.e722a8f96726aa99__is-neutral{&.ad0619a3217c6a5b__is-minimal[aria-pressed=true],&.b50b3358c5fb4d0b__is-solid{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-strong,#2d2d2d);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-strong-active,#1e1e1e);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-strong-disabled,#e6e6e6);--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral-strong,#f0f0f0);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-strong-active,#f0f0f0);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-strong-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline,&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-foreground-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);--wp-ui-button-foreground-color-active:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);--wp-ui-button-foreground-color-disabled:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}&._62d5a778b7b258ee__is-outline{--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);--wp-ui-button-border-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d);--wp-ui-button-border-color-active:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e);--wp-ui-button-border-color-disabled:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb)}&.ad0619a3217c6a5b__is-minimal:not([aria-pressed=true]){--wp-ui-button-background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);--wp-ui-button-background-color-active:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);--wp-ui-button-background-color-disabled:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000)}}.abbb272e2ce49bd6__is-unstyled{background:none;border:none;min-width:unset}.cf59cf1b69629838__is-compact{--wp-ui-button-height:var(--wpds-dimension-size-md,32px)}._914b42f315c0e580__is-loading:not(.abbb272e2ce49bd6__is-unstyled){color:transparent;&:not([data-disabled]):is(:hover,:active,:focus){color:transparent}@media (forced-colors:active){color:ButtonFace}*{opacity:0}&:before{opacity:1;transition-delay:.05s;@media not (prefers-reduced-motion){animation:_5a1d53da6f830c8d__loading-animation 1s linear infinite}}}}@keyframes _5a1d53da6f830c8d__loading-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}}');var d="_9f6fc6553aeb36fe__icon",p=(0,r.forwardRef)(function({className:e,icon:t,...n},r){return(0,i.jsx)(o.I,{ref:r,icon:t,className:(0,s.A)(d,e),size:24,...n})})},72326(e,t,n){"use strict";n.d(t,{$:()=>o});var s=n(51526),r=n(26313);r.a.displayName="Button.Icon";var o=Object.assign(s.$,{Icon:r.a})},97293(e,t,n){"use strict";n.d(t,{V:()=>u});var s=n(13022),r=n(86087),o=n(17587),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="_70f1dd22bad55b18__description",p=(0,i.jsx)("p",{}),u=(0,r.forwardRef)(function({render:e=p,className:t,children:n,...r},a){return(0,i.jsx)(o.E,{ref:a,variant:"body-md",render:e,className:(0,s.A)(d,t),...r,children:n})})},34638(e,t,n){"use strict";n.d(t,{I:()=>u});var s=n(13022),r=n(86087),o=n(71100),i=n(60029),a=n(10790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)d(e,n,s)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const s=l();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(c,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const s of n.documents.keys())d(s,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var p="_58c8e351db225608__icon",u=(0,r.forwardRef)(function({icon:e,className:t,...n},r){return(0,a.jsx)(i.b,{ref:r,className:(0,s.A)(p,t),...n,children:(0,a.jsx)(o.I,{icon:e})})})},2193(e,t,n){"use strict";n.d(t,{b:()=>p});var s=n(23280),r=n(67720),o=n(13022),i=n(86087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="a23e08e65c8e62e5__root",p=(0,i.forwardRef)(function({render:e,...t},n){const i=(0,o.A)(d);return(0,s.C)({defaultTagName:"div",render:e,ref:n,props:(0,r.v6)({className:i},t)})})},12237(e,t,n){"use strict";n.d(t,{h:()=>u});var s=n(13022),r=n(86087),o=n(17587),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="b8b96f70820333a1__title",p=(0,i.jsx)("h2",{}),u=(0,r.forwardRef)(function({render:e=p,className:t,children:n,...r},a){return(0,i.jsx)(o.E,{ref:a,variant:"heading-lg",render:e,className:(0,s.A)(d,t),...r,children:n})})},60029(e,t,n){"use strict";n.d(t,{b:()=>p});var s=n(23280),r=n(67720),o=n(13022),i=n(86087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("d29c51197e",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a23e08e65c8e62e5__root{text-wrap:balance;align-items:center;color:var(--wpds-color-foreground-content-neutral,#1e1e1e);display:flex;flex-direction:column;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);gap:var(--wpds-dimension-gap-xs,4px);max-width:var(--wpds-dimension-surface-width-sm,320px);text-align:center}._01303b3680eaa216__visual{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;justify-content:center;line-height:1;margin-block-end:var(--wpds-dimension-gap-xs,4px)}._58c8e351db225608__icon{background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);border:1px solid var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-radius:50%;padding:var(--wpds-dimension-padding-xs,4px)}.b8b96f70820333a1__title{margin:0}._70f1dd22bad55b18__description{color:var(--wpds-color-foreground-content-neutral-weak,#707070);margin:0}._89ac025fd8e2bc52__actions{align-items:center;display:flex;flex-direction:column;gap:var(--wpds-dimension-gap-xs,4px);margin-block-start:var(--wpds-dimension-gap-md,12px);@media (min-width:480px){flex-direction:row;justify-content:center}}}@layer compositions{._70f1dd22bad55b18__description,.b8b96f70820333a1__title{text-wrap:balance}}}');var d="_01303b3680eaa216__visual",p=(0,i.forwardRef)(function({render:e,...t},n){const i=(0,o.A)(d);return(0,s.C)({defaultTagName:"div",render:e,ref:n,props:(0,r.v6)({className:i},t)})})},33180(e,t,n){"use strict";n.d(t,{K:()=>v});var s=n(13022),r=n(86087),o=n(72326),i=n(71100),a=n(31011),c=n(3245),l=n(7231),d=n(66161),p=n(10790),u="data-wp-hash";function h(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=h();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)g(e,n,s)}(document)),e.__wpStyleRuntime}function g(e,t,n){if(!e.head)return;const s=h();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${u}]`))if(n.getAttribute(u)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(u,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=h();n.styles.set(e,t);for(const s of n.documents.keys())g(s,e,t)})("c5cdafb1bc","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{._28cfdc260e755391__icon-button{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}.f1c70d719989a85a__icon{margin:-1px}}}");var f="_28cfdc260e755391__icon-button",m="f1c70d719989a85a__icon",v=(0,r.forwardRef)(function({label:e,className:t,children:n,disabled:r,focusableWhenDisabled:u=!0,icon:h,size:g,shortcut:v,positioner:w,"aria-describedby":b,"aria-keyshortcuts":y,...k},_){const x=(0,s.A)(f,t),{descriptionId:j,targetProps:C}=(0,d.ze)({"aria-describedby":b,"aria-keyshortcuts":y,shortcut:v});return(0,p.jsxs)(l.b,{children:[(0,p.jsxs)(c.l,{ref:_,...C,disabled:r&&!u,render:(0,p.jsx)(o.$,{...k,size:g,"aria-label":e,disabled:r,focusableWhenDisabled:u}),className:x,children:[(0,p.jsx)(i.I,{icon:h,size:24,className:m}),v&&j&&(0,p.jsx)(d.w7,{descriptionId:j,shortcut:v})]}),(0,p.jsxs)(a.z,{positioner:w,children:[e,v&&(0,p.jsxs)(p.Fragment,{children:[" ",(0,p.jsx)(d.my,{shortcut:v})]})]})]})})},71100(e,t,n){"use strict";n.d(t,{I:()=>i});var s=n(86087),r=n(5573),o=n(10790),i=(0,s.forwardRef)(function({icon:e,size:t=24,style:n,...s},i){const a=e.props.style||n?{...e.props.style,...n}:void 0;return(0,o.jsx)(r.SVG,{ref:i,...e.props,...s,...a?{style:a}:{},width:t,height:t})})},57273(e,t,n){"use strict";n.d(t,{N:()=>v});var s=n(23280),r=n(67720),o=n(13022),i=n(86087),a=n(27723),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function u(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)}u("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var h="_336cd3e4e743482f__box-sizing";u("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var g="abc777e9713fa711__outset-ring--focus-except-active";u("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var f={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};u("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var m="_2c0831b0499dbd6e__a",v=(0,i.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:i=!1,target:l,render:d,className:p,...u},v){const w=i||/^_blank$/i.test(l??"");return(0,s.C)({render:d,defaultTagName:"a",ref:v,props:(0,r.v6)(u,{className:(0,o.A)(m,h,g,"unstyled"!==t&&f.link,"unstyled"!==t&&f[`is-${n}`],"unstyled"===t&&f["is-unstyled"],p),target:l??(i?"_blank":void 0),children:(0,c.jsxs)(c.Fragment,{children:[e,w&&(0,c.jsx)("span",{className:f["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,a.__)("(opens in a new tab)","jetpack")})]})})})})},80559(e,t,n){"use strict";n.d(t,{T:()=>o});var s=n(55294),{lock:r,unlock:o}=(0,s.yf)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/ui")},64905(e,t,n){"use strict";n.d(t,{r:()=>p});var s=n(86087),r=n(13022),o=n(72326),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var d={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},p=(0,s.forwardRef)(function({className:e,loading:t,loadingAnnouncement:n,variant:s,...a},c){const l=void 0!==t?{loading:t,loadingAnnouncement:n??""}:{};return(0,i.jsx)(o.$,{...a,...l,ref:c,size:"compact",tone:"neutral",variant:s,className:(0,r.A)(d["action-button"],d[`is-action-button-${s}`],e)})})},38665(e,t,n){"use strict";n.d(t,{t:()=>u});var s=n(13022),r=n(86087),o=n(57273),i=n(17587),a=n(10790),c="data-wp-hash";function l(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=l();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)d(e,n,s)}(document)),e.__wpStyleRuntime}function d(e,t,n){if(!e.head)return;const s=l();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${c}]`))if(n.getAttribute(c)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(c,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=l();n.styles.set(e,t);for(const s of n.documents.keys())d(s,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var p="d329e7416d368d31__action-link",u=(0,r.forwardRef)(function({className:e,render:t,...n},r){return(0,a.jsx)(i.E,{ref:r,className:(0,s.A)(p,e),...n,variant:"body-md",render:(0,a.jsx)(o.N,{tone:"neutral",variant:"default",render:t})})})},61475(e,t,n){"use strict";n.d(t,{E:()=>d});var s=n(86087),r=n(23280),o=n(67720),i="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)c(e,n,s)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const s=a();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(i,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const s of n.documents.keys())c(s,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var l="_0a1270dcdd79c031__actions",d=(0,s.forwardRef)(function({render:e,...t},n){return(0,r.C)({defaultTagName:"div",render:e,ref:n,props:(0,o.v6)({className:l},t)})})},75372(e,t,n){"use strict";n.d(t,{U:()=>h});var s=n(86087),r=n(27723),o=n(65995),i=n(13022),a=n(33180),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var u="_487e6a5c1375f7dc__close-icon",h=(0,s.forwardRef)(function({className:e,icon:t=o.A,label:n=(0,r.__)("Dismiss","jetpack"),...s},l){return(0,c.jsx)(a.K,{...s,ref:l,className:(0,i.A)(u,e),variant:"minimal",size:"small",tone:"neutral",icon:t,label:n})})},61868(e,t,n){"use strict";n.d(t,{V:()=>p});var s=n(86087),r=n(13022),o=n(17587),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var d="_1904b570a89bb815__description",p=(0,s.forwardRef)(function({className:e,...t},n){return(0,i.jsx)(o.E,{ref:n,variant:"body-md",className:(0,r.A)(d,e),...t})})},88050(e,t,n){"use strict";n.d(t,{b:()=>x});var s=n(20195),r=n(86087),o=n(53758),i=n(49099),a=n(28847),c=n(42243),l=n(23280),d=n(67720),p=n(13022),u=n(71100),h=n(10790),g="data-wp-hash";function f(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=f();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)m(e,n,s)}(document)),e.__wpStyleRuntime}function m(e,t,n){if(!e.head)return;const s=f();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${g}]`))if(n.getAttribute(g)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(g,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function v(e,t){const n=f();n.styles.set(e,t);for(const s of n.documents.keys())m(s,e,t)}v("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var w="_336cd3e4e743482f__box-sizing";v("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var b={notice:"_4145abab73d17514__notice",icon:"d0a25570cb528528__icon",title:"b5397fb9d05389e3__title",description:"_1904b570a89bb815__description",actions:"_0a1270dcdd79c031__actions","action-button":"_983740ab855c4e09__action-button","action-link":"d329e7416d368d31__action-link","close-icon":"_487e6a5c1375f7dc__close-icon","is-info":"_531c140826094795__is-info","is-warning":"ae2e1004697cce95__is-warning","is-success":"_2e614a76af494837__is-success","is-error":"af00331ae17a0065__is-error","is-action-button-outline":"_8ddb8fb33fbf3d38__is-action-button-outline","is-action-button-minimal":"_77bbde495a8a0af3__is-action-button-minimal"},y={neutral:null,info:a.A,warning:o.A,success:c.A,error:i.A};function k(e){return"error"===e?"assertive":"polite"}function _(e,t){const n=function(e){if(e){if("string"==typeof e)return e;try{return(0,r.renderToString)(e)}catch{return}}}(e);(0,r.useEffect)(()=>{n&&(0,s.speak)(n,t)},[n,t])}var x=(0,r.forwardRef)(function({intent:e="neutral",children:t,icon:n,spokenMessage:s=t,politeness:r=k(e),render:o,...i},a){_(s,r);const c=null===n?null:n??y[e],g=(0,p.A)(b.notice,b[`is-${e}`],w);return(0,l.C)({defaultTagName:"div",render:o,ref:a,props:(0,d.v6)({className:g,children:(0,h.jsxs)(h.Fragment,{children:[t,c&&(0,h.jsx)(u.I,{className:b.icon,icon:c})]})},i)})})},42472(e,t,n){"use strict";n.d(t,{h:()=>p});var s=n(86087),r=n(13022),o=n(17587),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)})("2e53930a41","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._4145abab73d17514__notice{--icon-height:var(--wpds-dimension-size-sm,24px);--text-vertical-padding:calc((var(--icon-height) - var(--wpds-typography-line-height-sm, 20px))/2);--wp-ui-notice-background-color:var(--wpds-color-background-surface-neutral-weak,#f4f4f4);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-neutral,#dbdbdb);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-neutral,#1e1e1e);align-items:start;background-color:var(--wp-ui-notice-background-color);border:1px solid var(--wp-ui-notice-border-color);border-radius:var(--wpds-border-radius-lg,8px);container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;padding:var(--wpds-dimension-padding-md,12px)}.d0a25570cb528528__icon{color:var(--wp-ui-notice-decorative-icon-color);grid-column:1;grid-row:1;margin-inline-end:var(--wpds-dimension-gap-xs,4px)}._1904b570a89bb815__description,.b5397fb9d05389e3__title{color:var(--wp-ui-notice-text-color);grid-column:2;padding-block:var(--text-vertical-padding)}._0a1270dcdd79c031__actions{display:flex;flex-wrap:wrap;gap:var(--wpds-dimension-gap-md,12px);grid-column:2}._4145abab73d17514__notice:has(._1904b570a89bb815__description) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions{margin-block-start:var(--wpds-dimension-gap-sm,8px)}._983740ab855c4e09__action-button{flex-shrink:0}.d329e7416d368d31__action-link{flex-shrink:0;&:not(:first-child){margin-inline-start:var(--wpds-dimension-gap-xs,4px)}&:not(:last-child){margin-inline-end:var(--wpds-dimension-gap-xs,4px)}}._487e6a5c1375f7dc__close-icon{grid-column:3;grid-row:1;margin-inline-start:var(--wpds-dimension-gap-xs,4px)}._531c140826094795__is-info{--wp-ui-notice-background-color:var(--wpds-color-background-surface-info-weak,#f3f9ff);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-info,#adc6e2);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-info,#001b4f);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-info-weak,#006bd7)}.ae2e1004697cce95__is-warning{--wp-ui-notice-background-color:var(--wpds-color-background-surface-warning-weak,#fff7e1);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-warning,#e1bd7c);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-warning,#2e1900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-warning-weak,#936300)}._2e614a76af494837__is-success{--wp-ui-notice-background-color:var(--wpds-color-background-surface-success-weak,#ebffed);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-success,#92d39d);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-success,#002900);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-success-weak,#008030)}.af00331ae17a0065__is-error{--wp-ui-notice-background-color:var(--wpds-color-background-surface-error-weak,#fff6f5);--wp-ui-notice-border-color:var(--wpds-color-stroke-surface-error,#e0afa7);--wp-ui-notice-text-color:var(--wpds-color-foreground-content-error,#470000);--wp-ui-notice-decorative-icon-color:var(--wpds-color-foreground-content-error-weak,#cc1818)}@container (max-width: 320px){._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._0a1270dcdd79c031__actions,._4145abab73d17514__notice:has(.b5397fb9d05389e3__title) ._1904b570a89bb815__description{grid-column:1/3}}}@layer compositions{.d329e7416d368d31__action-link{margin-block:auto}._487e6a5c1375f7dc__close-icon,._983740ab855c4e09__action-button:is(._8ddb8fb33fbf3d38__is-action-button-outline,._77bbde495a8a0af3__is-action-button-minimal){--wp-ui-button-background-color-active:color-mix(in srgb,transparent 50%,var(--wpds-color-background-interactive-neutral-weak-active,#ededed))}}}");var d="b5397fb9d05389e3__title",p=(0,s.forwardRef)(function({className:e,...t},n){return(0,i.jsx)(o.E,{ref:n,variant:"heading-md",className:(0,r.A)(d,e),...t})})},98839(e,t,n){"use strict";n.d(t,{B:()=>p});var s=n(23280),r=n(67720),o=n(86087),i="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)c(e,n,s)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const s=a();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(i,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const s of n.documents.keys())c(s,e,t)})("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var l="_19ce0419607e1896__stack",d={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},p=(0,o.forwardRef)(function({direction:e,gap:t,align:n,justify:o,wrap:i,render:a,...c},p){const u={gap:t&&d[t],alignItems:n,justifyContent:o,flexDirection:e,flexWrap:i};return(0,s.C)({render:a,ref:p,props:(0,r.v6)(c,{style:u,className:l})})})},31355(e,t,n){"use strict";n.d(t,{g5:()=>r,hP:()=>o});n(86087),n(43484);var s=n(10790);var r=function(){};var o=function({children:e}){return(0,s.jsx)(s.Fragment,{children:e})}},21258(e,t,n){"use strict";n.d(t,{B:()=>h});var s=n(86087),r=n(13022),o=n(96299),i=n(12453),a=n(29491),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)})("54ae3f4680",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)\n\t\t\t&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]\n\t\t\t\t[role=tab]:is([aria-selected=true])\n\t\t\t\t&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}');var u={tablist:"_7313adbc8a112e90__tablist","is-overflowing-first":"_9f2ac729c68a735a__is-overflowing-first","is-overflowing-last":"_81c799c1f3cdd261__is-overflowing-last","is-minimal-variant":"_59228b5227f38a99__is-minimal-variant",indicator:"_1c37dcfaa1ad8cda__indicator",tab:"a5fd8814f195aa5e__tab","tab-children":"_5dfc77e6edd345d4__tab-children","tab-chevron":"_4a20e969d15e5ac1__tab-chevron"},h=(0,s.forwardRef)(function({children:e,variant:t="default",className:n,activateOnFocus:l,...d},p){const[h,g]=(0,s.useState)(null),[f,m]=(0,s.useState)({first:!1,last:!1,isScrolling:!1});(0,s.useEffect)(()=>{if(!h)return;const e=()=>{const{scrollWidth:e,clientWidth:t,scrollLeft:n}=h,s=Math.max(e-t,0),r="rtl"===(h.dir||("undefined"!=typeof window?window.getComputedStyle(h).direction:"ltr"))&&n<0?-n:n,o={first:r>1,last:r<s-1,isScrolling:e>t};m(e=>e.first===o.first&&e.last===o.last&&e.isScrolling===o.isScrolling?e:o)},t=new ResizeObserver(e),n=()=>{t.disconnect(),t.observe(h),h.querySelectorAll('[role="tab"]').forEach(e=>t.observe(e))},s=new MutationObserver(n);s.observe(h,{childList:!0,subtree:!0});let r=!1;const o=()=>{r||(requestAnimationFrame(()=>{e(),r=!1}),r=!0)};return h.addEventListener("scroll",o,{passive:!0}),n(),e(),()=>{h.removeEventListener("scroll",o),t.disconnect(),s.disconnect()}},[h]);const v=(0,a.useMergeRefs)([p,e=>g(e)]);return(0,c.jsxs)(o.j,{ref:v,activateOnFocus:l,"data-select-on-move":l?"true":"false",className:(0,r.A)(u.tablist,f.first&&u["is-overflowing-first"],f.last&&u["is-overflowing-last"],u[`is-${t}-variant`],n),...d,tabIndex:d.tabIndex??(f.isScrolling?-1:void 0),children:[e,(0,c.jsx)(i.E,{className:u.indicator})]})})},80210(e,t,n){"use strict";n.d(t,{b:()=>c});var s=n(86087),r=n(37231),o=n(31355),i=n(350),a=n(10790),c=(0,s.forwardRef)(function({...e},t){return(0,a.jsx)(i.F,{children:(0,a.jsx)(o.hP,{children:(0,a.jsx)(r.p,{ref:t,...e})})})})},60799(e,t,n){"use strict";n.d(t,{o:()=>m});var s=n(86087),r=n(13022),o=n(98077),i=n(48329),a=n(71100),c=n(31355),l=n(10790),d="data-wp-hash";function p(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=p();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)u(e,n,s)}(document)),e.__wpStyleRuntime}function u(e,t,n){if(!e.head)return;const s=p();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${d}]`))if(n.getAttribute(d)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(d,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=p();n.styles.set(e,t);for(const s of n.documents.keys())u(s,e,t)})("54ae3f4680",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._7313adbc8a112e90__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&._9f2ac729c68a735a__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._9f2ac729c68a735a__is-overflowing-first._81c799c1f3cdd261__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._59228b5227f38a99__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._1c37dcfaa1ad8cda__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height,border-radius,border-block;transition-timing-function:ease-out}outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;&[data-orientation=horizontal]{background-color:var(--wpds-color-stroke-interactive-neutral-strong,#6e6e6e);bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width);z-index:1}&[data-orientation=vertical]{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);border-radius:var(--wpds-border-radius-sm,2px);height:var(--active-tab-height);left:50%;top:0;translate:-50% var(--active-tab-top);width:100%;z-index:0}._7313adbc8a112e90__tablist[data-select-on-move=true]:has(:focus-visible)\n\t\t\t&[data-orientation=vertical]{border:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));box-sizing:border-box}}.a5fd8814f195aa5e__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-md,13px);font-weight:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);cursor:default;@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:hover,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&:after{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9));pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset:var(--wpds-dimension-padding-md,12px)}}._59228b5227f38a99__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px)}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-sm,8px) var(--wpds-dimension-padding-md,12px)}[data-orientation=vertical][data-select-on-move=false] &:after{content:"";inset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}._5dfc77e6edd345d4__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}._4a20e969d15e5ac1__tab-chevron{flex-shrink:0;margin-inline-end:calc(var(--wpds-dimension-gap-xs, 4px)*-1);opacity:0;[data-orientation=horizontal] &{display:none}[role=tab]:is([aria-selected=true],:focus-visible,:hover) &{opacity:1}@media not (prefers-reduced-motion){[data-select-on-move=true]\n\t\t\t\t[role=tab]:is([aria-selected=true])\n\t\t\t\t&{transition:opacity .15s linear .15s}}&:dir(rtl){rotate:180deg}}}}');var h="a5fd8814f195aa5e__tab",g="_5dfc77e6edd345d4__tab-children",f="_4a20e969d15e5ac1__tab-chevron",m=(0,s.forwardRef)(function({className:e,children:t,...n},s){return(0,c.g5)(),(0,l.jsxs)(o.M,{ref:s,className:(0,r.A)(h,e),...n,children:[(0,l.jsx)("span",{className:g,children:t}),(0,l.jsx)(a.I,{icon:i.A,className:f})]})})},17587(e,t,n){"use strict";n.d(t,{E:()=>g});var s=n(23280),r=n(67720),o=n(13022),i=n(86087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function d(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)}d("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var p={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};d("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var u="_43cec3e1eec1066d__p",h="e97669c6d9a38497__heading",g=(0,i.forwardRef)(function({variant:e="body-md",render:t,className:n,...i},a){return(0,s.C)({render:t,defaultTagName:"span",ref:a,props:(0,r.v6)(i,{className:(0,o.A)(p.text,h,u,p[e],n)})})})},31011(e,t,n){"use strict";n.d(t,{z:()=>m});var s=n(13022),r=n(59801),o=n(86087),i=n(18937),a=n(33687),c=n(97805),l=n(26750),d=n(10790),p="data-wp-hash";function u(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=u();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)h(e,n,s)}(document)),e.__wpStyleRuntime}function h(e,t,n){if(!e.head)return;const s=u();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${p}]`))if(n.getAttribute(p)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(p,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=u();n.styles.set(e,t);for(const s of n.documents.keys())h(s,e,t)})("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var g="_50096b232db7709d__popup",f={background:"#1e1e1e"},m=(0,o.forwardRef)(function({portal:e,positioner:t,children:n,className:o,...p},u){const h=(0,d.jsx)(l.N,{color:f,children:(0,d.jsx)(r.o,{ref:u,className:(0,s.A)(g,o),...p,children:n})}),m=(0,c.o)(t,(0,d.jsx)(a.P,{}),h);return(0,c.o)(e,(0,d.jsx)(i.Z,{}),m)})},18937(e,t,n){"use strict";n.d(t,{Z:()=>a});var s=n(68817),r=n(86087),o=n(17725),i=n(10790),a=(0,r.forwardRef)(function({container:e,...t},n){return(0,i.jsx)(s.K,{container:e??(0,o.un)(),...t,ref:n})})},33687(e,t,n){"use strict";n.d(t,{P:()=>h});var s=n(13022),r=n(10217),o=n(86087),i=n(10790),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function d(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)}d("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var p="_336cd3e4e743482f__box-sizing";d("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var u="_480b748dd3510e64__positioner",h=(0,o.forwardRef)(function({align:e="center",className:t,side:n="top",sideOffset:o=4,...a},c){return(0,i.jsx)(r.o,{ref:c,align:e,side:n,sideOffset:o,...a,className:(0,s.A)(p,u,t)})})},7231(e,t,n){"use strict";n.d(t,{b:()=>i});var s=n(94681),r=n(350),o=n(10790);function i(e){return(0,o.jsx)(r.F,{children:(0,o.jsx)(s.s,{...e})})}},3245(e,t,n){"use strict";n.d(t,{l:()=>i});var s=n(89933),r=n(86087),o=n(10790),i=(0,r.forwardRef)(function(e,t){return(0,o.jsx)(s.k,{ref:t,...e})})},350(e,t,n){"use strict";n.d(t,{F:()=>i});var s=n(87759),r=n(27723),o=n(10790);function i({children:e}){return(0,o.jsx)(s.F,{direction:(0,r.isRTL)()?"rtl":"ltr",children:e})}},66161(e,t,n){"use strict";n.d(t,{my:()=>l,w7:()=>c,ze:()=>a});var s=n(86087),r=n(27723),o=n(16064),i=n(10790);function a({"aria-describedby":e,"aria-keyshortcuts":t,shortcut:n}){const r=(0,s.useId)(),o=n?r:void 0,i=[e,o].filter(Boolean).join(" ");return{descriptionId:o,targetProps:{"aria-describedby":i||void 0,"aria-keyshortcuts":n?.ariaKeyShortcut??t}}}var c=(0,s.forwardRef)(function({descriptionId:e,shortcut:t},n){return(0,i.jsx)(o.s,{id:e,"aria-hidden":"true",render:(0,i.jsx)("span",{ref:n}),children:(0,r.sprintf)(/* translators: %s: keyboard shortcut. */ /* translators: %s: keyboard shortcut. */ | |
| 54 | +(0,r.__)("Keyboard shortcut: %s","jetpack"),t.label??t.ariaKeyShortcut)})}),l=(0,s.forwardRef)(function({className:e,shortcut:t},n){return(0,i.jsx)("span",{ref:n,"aria-hidden":"true",className:e,dir:"ltr",children:t.displayShortcut})})},97805(e,t,n){"use strict";n.d(t,{o:()=>r});var s=n(86087);function r(e,t,n){return(0,s.cloneElement)(e??t,{children:n})}},26750(e,t,n){"use strict";n.d(t,{N:()=>o});var s=n(57290),r=n(80559);var o=function(){const e=s;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return(0,r.T)(e.privateApis).ThemeProvider}()},43484(e,t,n){"use strict";n.d(t,{G:()=>o});var s=n(29491),r=n(86087);function o(e){const t=(0,s.useEvent)(e),n=(0,r.useRef)(null),o=(0,r.useRef)(!1),i=(0,r.useCallback)(()=>{o.current||(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t(),n.current=null},0))},[t]);return(0,r.useEffect)(()=>(o.current=!1,()=>{o.current=!0,n.current&&clearTimeout(n.current)}),[]),i}},17725(e,t,n){"use strict";n.d(t,{un:()=>d});var s="data-wp-hash";function r(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=r();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)o(e,n,s)}(document)),e.__wpStyleRuntime}function o(e,t,n){if(!e.head)return;const o=r();let i=o.injectedStyles.get(e);if(i||(i=new Set,o.injectedStyles.set(e,i)),i.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${s}]`))if(n.getAttribute(s)===t)return!0;return!1}(e,t))return void i.add(t);const a=e.createElement("style");a.setAttribute(s,t),a.appendChild(e.createTextNode(n)),e.head.appendChild(a),i.add(t)}(function(e,t){const n=r();n.styles.set(e,t);for(const s of n.documents.keys())o(s,e,t)})("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var i="_11fc52b637ff8a7e__slot",a="data-wp-compat-overlay-slot";var c=null;function l(e){return e.setAttribute("aria-hidden","false"),e}function d(){if("undefined"==typeof window)return;if(!function(){let e;try{e=window.top?.wp}catch{}const t=e??window.wp;return"object"==typeof t?.components&&null!==t.components}()&&!0!==window.__wpUiCompatOverlaySlotEnabled)return;const e="undefined"==typeof document?null:document;if(!e||!e.body)return;if(c&&c.ownerDocument===e&&c.isConnected)return l(c);const t=e.querySelector(`[${a}]`);return t instanceof HTMLDivElement?c=l(t):(c?.isConnected&&c.remove(),c=l(function(e){const t=e.createElement("div");return t.setAttribute(a,""),i&&t.classList.add(i),e.body.appendChild(t),t}(e)),c)}},16064(e,t,n){"use strict";n.d(t,{s:()=>d});var s=n(23280),r=n(67720),o=n(86087),i="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)c(e,n,s)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const s=a();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(i,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const s of n.documents.keys())c(s,e,t)})("fa606a57ae","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");var l="f37b9e2e191ebd66__visually-hidden",d=(0,o.forwardRef)(function({render:e,...t},n){return(0,s.C)({render:e,ref:n,props:(0,r.v6)({className:l},t,{"data-visually-hidden":""})})})},79654(e,t,n){"use strict";n.d(t,{N:()=>v});var s=n(899),r=n(45339),o=n(13022),i=n(86087),a=n(27723),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function u(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)}u("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var h="_336cd3e4e743482f__box-sizing";u("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var g="abc777e9713fa711__outset-ring--focus-except-active";u("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var f={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};u("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var m="_2c0831b0499dbd6e__a",v=(0,i.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:i=!1,target:l,render:d,className:p,...u},v){const w=i||/^_blank$/i.test(l??"");return(0,s.C)({render:d,defaultTagName:"a",ref:v,props:(0,r.v6)(u,{className:(0,o.A)(m,h,g,"unstyled"!==t&&f.link,"unstyled"!==t&&f[`is-${n}`],"unstyled"===t&&f["is-unstyled"],p),target:l??(i?"_blank":void 0),children:(0,c.jsxs)(c.Fragment,{children:[e,w&&(0,c.jsx)("span",{className:f["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,a.__)("(opens in a new tab)","jetpack")})]})})})})},21220(e,t,n){"use strict";n.d(t,{B:()=>p});var s=n(899),r=n(45339),o=n(86087),i="data-wp-hash";function a(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=a();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)c(e,n,s)}(document)),e.__wpStyleRuntime}function c(e,t,n){if(!e.head)return;const s=a();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${i}]`))if(n.getAttribute(i)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(i,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}(function(e,t){const n=a();n.styles.set(e,t);for(const s of n.documents.keys())c(s,e,t)})("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var l="_19ce0419607e1896__stack",d={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},p=(0,o.forwardRef)(function({direction:e,gap:t,align:n,justify:o,wrap:i,render:a,...c},p){const u={gap:t&&d[t],alignItems:n,justifyContent:o,flexDirection:e,flexWrap:i};return(0,s.C)({render:a,ref:p,props:(0,r.v6)(c,{style:u,className:l})})})},39968(e,t,n){"use strict";n.d(t,{E:()=>g});var s=n(899),r=n(45339),o=n(13022),i=n(86087),a="data-wp-hash";function c(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=c();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)l(e,n,s)}(document)),e.__wpStyleRuntime}function l(e,t,n){if(!e.head)return;const s=c();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${a}]`))if(n.getAttribute(a)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(a,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function d(e,t){const n=c();n.styles.set(e,t);for(const s of n.documents.keys())l(s,e,t)}d("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var p={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};d("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var u="_43cec3e1eec1066d__p",h="e97669c6d9a38497__heading",g=(0,i.forwardRef)(function({variant:e="body-md",render:t,className:n,...i},a){return(0,s.C)({render:t,defaultTagName:"span",ref:a,props:(0,r.v6)(i,{className:(0,o.A)(p.text,h,u,p[e],n)})})})},24416(e,t,n){"use strict";n.d(t,{N:()=>v});var s=n(899),r=n(45339),o=n(13022),i=n(86087),a=n(27723),c=n(10790),l="data-wp-hash";function d(){const e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},"undefined"!=typeof document&&function(e){const t=d();t.documents.set(e,(t.documents.get(e)??0)+1);for(const[n,s]of t.styles)p(e,n,s)}(document)),e.__wpStyleRuntime}function p(e,t,n){if(!e.head)return;const s=d();let r=s.injectedStyles.get(e);if(r||(r=new Set,s.injectedStyles.set(e,r)),r.has(t))return;if(function(e,t){if(!e.head)return!1;for(const n of e.head.querySelectorAll(`style[${l}]`))if(n.getAttribute(l)===t)return!0;return!1}(e,t))return void r.add(t);const o=e.createElement("style");o.setAttribute(l,t),o.appendChild(e.createTextNode(n)),e.head.appendChild(o),r.add(t)}function u(e,t){const n=d();n.styles.set(e,t);for(const s of n.documents.keys())p(s,e,t)}u("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var h="_336cd3e4e743482f__box-sizing";u("08122b3d53","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.af79fb116edb0dd7__outset-ring--focus:focus,.dfcfdc28396e5d98__outset-ring--focus-visible:focus-visible,.e5cd9ee879f6403a__outset-ring--focus-within:focus-within,:focus-visible ._81935a08e952f267__outset-ring--focus-parent-visible{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within,.abc777e9713fa711__outset-ring--focus-except-active:focus{outline:none}._3c9f5ee9fc9c136d__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.abc777e9713fa711__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}}");var g="abc777e9713fa711__outset-ring--focus-except-active";u("e8e6a9be37",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.d4250949359b05ce__link{text-decoration-thickness:from-font;text-underline-offset:.2em}.c6055659b8e2cd2c__is-brand,.c6055659b8e2cd2c__is-brand:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9))}.c6055659b8e2cd2c__is-brand:active,.c6055659b8e2cd2c__is-brand:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000));color:var(--wpds-color-foreground-interactive-brand-active,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 52%,#000))}._92e0dfcaeee15b88__is-neutral,._92e0dfcaeee15b88__is-neutral:visited{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);text-decoration-color:var(--wpds-color-stroke-interactive-neutral,#8d8d8d)}._92e0dfcaeee15b88__is-neutral:active,._92e0dfcaeee15b88__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}.cf122a9bf1035d42__is-unstyled{--_gcd-a-color:inherit;color:inherit;text-decoration:none}._0cb411afac4c86c7__link-icon{display:inline-block;font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._0cb411afac4c86c7__link-icon:after{content:"\\2197"}._0cb411afac4c86c7__link-icon:dir(rtl):after{content:"\\2196"}}}');var f={link:"d4250949359b05ce__link","is-brand":"c6055659b8e2cd2c__is-brand","is-neutral":"_92e0dfcaeee15b88__is-neutral","is-unstyled":"cf122a9bf1035d42__is-unstyled","link-icon":"_0cb411afac4c86c7__link-icon"};u("e8e31009f5","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");var m="_2c0831b0499dbd6e__a",v=(0,i.forwardRef)(function({children:e,variant:t="default",tone:n="brand",openInNewTab:i=!1,target:l,render:d,className:p,...u},v){const w=i||/^_blank$/i.test(l??"");return(0,s.C)({render:d,defaultTagName:"a",ref:v,props:(0,r.v6)(u,{className:(0,o.A)(m,h,g,"unstyled"!==t&&f.link,"unstyled"!==t&&f[`is-${n}`],"unstyled"===t&&f["is-unstyled"],p),target:l??(i?"_blank":void 0),children:(0,c.jsxs)(c.Fragment,{children:[e,w&&(0,c.jsx)("span",{className:f["link-icon"],role:"img","aria-label":/* translators: accessibility text appended to link text */ /* translators: accessibility text appended to link text */(0,a.__)("(opens in a new tab)","jetpack")})]})})})})}},s={};function r(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return n[e].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}var o=Object.create(null);r.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&s&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>i[e]=()=>n[e]);return i.default=()=>n,r.d(o,i),o},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})};var o={};(()=>{"use strict";r.d(o,{getRouteName:()=>i});var e=r(86087),t=r(27723),n=r(23608),s=r(10790);const _x=t._x;function i(e){switch(e){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"/reader":return _x("Reader","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");default:return _x("Settings","Navigation item.","jetpack")}}!function(){const t=document.getElementById("jp-plugin-container");if(null===t)return;e.createRoot(t).render((0,s.jsx)(n.A,{}))}()})(),window.getRouteName=o.getRouteName})(); | |