/*! For license information please see admin.js.LICENSE.txt */
(()=>{var e={39:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var i=s(13022),n=s(28120),a=s.n(n),r=s(51609),o=s(17556),c=s(52362),l=s(45113),p=s(53686),d=s(10790);const u=()=>{};class h extends r.Component{itemRefs={};dropdownContainerRef=(0,r.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?r.Children.map(this.props.children,function(s,i){if(!s)return null;t.itemRefs["item-"+e]=s.type===c.A?(0,r.createRef)():void 0;const n=(0,r.cloneElement)(s,{ref:t.itemRefs["item-"+e],key:"item-"+i,onClick:function(e){t.dropdownContainerRef.current.focus(),"function"==typeof s.props.onClick&&s.props.onClick(e)}});return s.type===c.A&&e++,n},this):this.props.options.map(function(s,i){if(!s)return(0,d.jsx)(p.A,{},"dropdown-separator-"+this.state.instanceId+"-"+i);if(s.isLabel)return(0,d.jsx)(l.A,{children:s.label},"dropdown-label-"+this.state.instanceId+"-"+i);t.itemRefs["item-"+e]=(0,r.createRef)();const n=(0,d.jsx)(c.A,{ref:t.itemRefs["item-"+e],selected:this.state.selected===s.value,onClick:this.onSelectItem(s),path:s.path,children:s.label},"dropdown-item-"+this.state.instanceId+"-"+s.value);return e++,n},this)}render(){const e={"dops-select-dropdown":!0,"is-compact":this.props.compact,"is-open":this.state.isOpen,"is-disabled":this.props.disabled,"is-rna":this.props.rna};this.props.className&&this.props.className.split(" ").forEach(function(t){e[t]=!0});const t=(0,i.A)(e),s=this.props.selectedText?this.props.selectedText:this.props.options.find(e=>e.value===this.state.selected)?.label;return(0,d.jsx)("div",{style:this.props.style,className:t,children:(0,d.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,d.jsx)("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header",children:(0,d.jsxs)("span",{className:"dops-select-dropdown__header-text",children:[s,"number"==typeof this.props.selectedCount&&(0,d.jsx)(o.A,{count:this.props.selectedCount})]})}),(0,d.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,s;if(!this.state.isOpen)return;this.props.options.length?(t=this.props.options.filter(e=>e&&!e.isLabel).map(e=>e.value),s="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=r.Children.toArray(this.props.children).filter(e=>e.type===c.A),s="number"==typeof this.focused?this.focused:t.findIndex(e=>e.props.selected));const i=s+("previous"===e?-1:1);i>=t.length||i<0||(this.itemRefs["item-"+i].current.itemLinkRef.current.focus(),this.focused=i)}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:a().string,selectedCount:a().number,initialSelected:a().string,className:a().string,style:a().object,onSelect:a().func,onToggle:a().func,focusSibling:a().func,tabIndex:a().number,disabled:a().bool,options:a().arrayOf(a().shape({value:a().string.isRequired,label:a().string.isRequired,path:a().string})),rna:a().bool},h.instances=0;const m=h},128:(e,t,s)=>{"use strict";s.d(t,{A:()=>v});var i=s(12961),n=s(66143),a=s(56427),r=s(38443),o=s(86087),c=s(27723),l=s(13022),p=s(28120),d=s.n(p),u=s(51609),h=s(84952),m=s(81715),g=s(11236),j=s(19950),k=s(10790);const __=c.__,_x=c._x,_n=c._n;class f extends u.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=()=>g.A.tracks.recordJetpackClick("view_detailed_stats");trackViewWpcomStats=()=>g.A.tracks.recordJetpackClick("view_wpcom_stats");render(){const e=this.statsBottom()[0];return(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-summary",children:[(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-summary-today",children:[(0,k.jsx)("p",{className:"jp-at-a-glance__stat-details",children:_x("Views today","Referring to a number of page views","jetpack")}),(0,k.jsx)("h3",{className:"jp-at-a-glance__stat-number",children:e.viewsToday})]}),(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-summary-bestday",children:[(0,k.jsx)("p",{className:"jp-at-a-glance__stat-details",children:_x("Best overall day","Referring to a number of page views","jetpack")}),(0,k.jsx)("h3",{className:"jp-at-a-glance__stat-number",children:"-"===e.bestDay.count?"-":(0,c.sprintf)(/* Translators: %s: the number of views. */
_n("%s View","%s Views",e.bestDay.count,"jetpack"),(0,n.ZV)(e.bestDay.count))}),e.bestDay.day&&(0,k.jsx)("p",{className:"jp-at-a-glance__stat-details",children:"-"===e.bestDay.day?"-":(0,r.dateI18n)(this.props.dateFormat,e.bestDay.day)})]}),(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-summary-alltime-views",children:[(0,k.jsx)("p",{className:"jp-at-a-glance__stat-details",children:_x("All-time views","Referring to a number of page views","jetpack")}),(0,k.jsx)("h3",{className:"jp-at-a-glance__stat-number",children:"-"===e.allTime.views?"-":(0,n.ZV)(e.allTime.views)})]}),(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-summary-alltime-comments",children:[(0,k.jsx)("p",{className:"jp-at-a-glance__stat-details",children:_x("All-time comments","Referring to a number of comments","jetpack")}),(0,k.jsx)("h3",{className:"jp-at-a-glance__stat-number",children:"-"===e.allTime.comments?"-":(0,n.ZV)(e.allTime.comments)})]})]}),(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-cta",children:[(0,k.jsx)("div",{className:"jp-at-a-glance__stats-cta-description"}),(0,k.jsxs)("div",{className:"jp-at-a-glance__stats-ctas",children:[(0,o.createInterpolateElement)(__("","jetpack"),{button:(0,k.jsx)(m.A,{href:this.props.siteAdminUrl+"admin.php?page=stats",onClick:this.trackViewDetailedStats,primary:!0})}),this.props.isLinked&&!this.props.isOdysseyStatsEnabled&&(0,o.createInterpolateElement)(__("View on WordPress.com","jetpack"),{ExternalLink:(0,k.jsx)(a.ExternalLink,{onClick:this.trackViewWpcomStats,href:(0,i.A)("calypso-stats-insights",{site:this.props.siteRawUrl}),rel:"noopener noreferrer",target:"_blank",className:(0,l.A)("jp-at-a-glance__stats-ctas-wpcom-stats",this.props.className)})})]})]})]})}}f.propTypes={siteRawUrl:d().string.isRequired,siteAdminUrl:d().string.isRequired,statsData:d().object.isRequired,isLinked:d().bool.isRequired,dateFormat:d().string.isRequired},f.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1,dateFormat:"F j, Y"};const v=(0,h.Ng)(e=>({isOdysseyStatsEnabled:(0,j.jh)(e)}))(f)},151:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var i=s(17414),n=s(4568),a=s(61848),r=s(13022),o=s(51609),c=s(26199),l=s(10790);const p=e=>{const{items:t,onChange:s,selectedItems:p,disabled:d}=e,[u,h]=(0,o.useState)(""),[m,g]=(0,o.useState)(!1),j=(0,o.useRef)(null),k=(0,o.useRef)(null),f=(0,r.A)("tree-dropdown__input-container",m&&"active",d&&"disabled"),v=(0,o.useMemo)(()=>p?.map(e=>t.find(t=>t.id===e)).filter(Boolean)||[],[p,t]),x=(0,o.useCallback)(()=>g(!0),[]),b=(0,o.useCallback)(e=>{h(e.target.value)},[]),_=(0,o.useCallback)(e=>s(e.id,!1),[s]),w=(0,o.useCallback)(e=>t=>{t.stopPropagation(),_(e)},[_]),y=(0,o.useCallback)(e=>{"Backspace"!==e.key||u?"Escape"===e.key&&(g(!1),h(""),k.current.blur()):_(v[v.length-1])},[u,_,v]),C=(0,o.useCallback)(e=>{j.current&&!j.current.contains(e.target)&&g(!1)},[]);(0,o.useEffect)(()=>(document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}),[C]);const A=(0,o.useCallback)(()=>{x(),k.current.focus()},[x,k]);return(0,l.jsxs)("div",{className:"tree-dropdown",ref:j,children:[(0,l.jsxs)("div",{className:f,onClick:A,children:[(0,l.jsx)(i.A,{icon:a.A}),v.map((e,t)=>(0,l.jsxs)("span",{className:"tree-dropdown__tag",children:[e.name,(0,l.jsx)("button",{onClick:w(e),className:"tree-dropdown__tag-remove-button",disabled:d,type:"button",children:(0,l.jsx)(i.A,{icon:n.A})})]},t)),(0,l.jsx)("input",{className:"tree-dropdown__input",ref:k,type:"text",value:u,onFocus:x,onChange:b,onKeyDown:y,disabled:d})]}),(0,l.jsx)("div",{className:"tree-dropdown__dropdown-container",children:(0,l.jsx)("div",{className:(0,r.A)("tree-dropdown__dropdown",{visible:m}),children:(0,l.jsx)("div",{className:(0,r.A)("tree-dropdown-colapsable",{hide:!m}),children:(0,l.jsx)(c.A,{items:t,selectedItems:p,disabled:d,onChange:s,keyword:u})})})})]})}},167:(e,t,s)=>{"use strict";s.d(t,{A:()=>C});var i=s(12961),n=s(97999),a=s(27723),r=s(51609),o=s(84952),c=s(39862),l=s(1194),p=s(19950),d=s(26571),u=s(31238),h=s(17259),m=s(36865),g=s(57487),j=s(99669),k=s(90988),f=s(75504),v=s(96918),x=s(8280),b=s(60987),_=s(24537),w=s(10790);const __=a.__;class y extends r.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"),s=this.props.isModuleFound("stats"),a=this.props.isModuleFound("shortlinks"),r=this.props.isModuleFound("related-posts"),o=this.props.isModuleFound("verification-tools"),l=this.props.isModuleFound("sitemaps"),p=(0,n.isWoASite)(),d=this.props.isModuleFound("blaze");return t||s||a||r||o||l||p||d?(0,w.jsxs)("div",{children:[(0,w.jsx)(c.A,{}),(0,w.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Traffic Settings","jetpack")}),(0,w.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")}),r&&(0,w.jsx)(k.F,{...e}),t&&(0,w.jsx)(f.Ay,{...e,configureUrl:(0,i.A)("calypso-marketing-traffic",{site:this.props.blogID??this.props.siteRawUrl,anchor:"seo"})}),s&&(0,w.jsx)(x.H,{...e}),p&&(0,w.jsx)(j.a,{...e,site:this.props.blogID??this.props.siteRawUrl}),d&&(0,w.jsx)(g.A,{...e}),a&&(0,w.jsx)(v.A,{...e}),l&&(0,w.jsx)(b.A,{...e}),o&&(0,w.jsx)(_.m,{...e})]}):null}}const C=(0,o.Ng)(e=>({module:t=>(0,d.f_)(e,t),settings:(0,h.mt)(e),isBlockThemeActive:(0,p.JQ)(e),isOfflineMode:(0,l.hN)(e),isUnavailableInOfflineMode:t=>(0,l.Em)(e,t),isModuleFound:t=>(0,u.jQ)(e,t),isSiteConnected:(0,l.lY)(e),lastPostUrl:(0,p.Gn)(e),getModuleOverride:t=>(0,d.d1)(e,t),hasConnectedOwner:(0,l.BG)(e),blogID:(0,p.V2)(e),siteUsesWpAdminInterface:(0,m.dr)(e)}))(y)},201:(e,t,s)=>{"use strict";s(51609),s(97949),s(11833),s(10047),s(92302)},412:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i=s(51609),n=s(84952),a=s(26556),r=s(39228);class o extends i.Component{UNSAFE_componentWillMount(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}render(){return null}}o.defaultProps={fetchAkismetData:()=>{}};const c=(0,n.Ng)(e=>({fetchAkismetData:(0,r.fI)(),fetchingAkismetData:(0,r.Ri)(e)}),e=>(0,a.zH)({fetchAkismetData:r.fI},e))(o)},692:e=>{"use strict";e.exports=window.wp.notices},1194:(e,t,s)=>{"use strict";s.d(t,{BG:()=>i.BG,Cq:()=>i.Cq,Em:()=>i.Em,HF:()=>i.HF,KK:()=>i.KK,Kx:()=>i.Kx,Mb:()=>n.Mb,PL:()=>i.PL,Pb:()=>n.Pb,Qp:()=>i.Qp,T$:()=>i.T$,Vg:()=>i.Vg,Vs:()=>i.Vs,_U:()=>i._U,eR:()=>i.eR,g:()=>i.g,hN:()=>i.hN,h_:()=>n.h_,i$:()=>i.i$,iV:()=>i.iV,k0:()=>n.k0,ks:()=>n.ks,lY:()=>i.lY,m1:()=>i.m1,mo:()=>n.mo,mz:()=>i.mz,os:()=>i.os,ph:()=>i.ph,s6:()=>i.s6,u6:()=>n.u6,uQ:()=>i.uQ,vn:()=>i.vn,xc:()=>n.xc,zt:()=>i.zt});var i=s(81446),n=s(14505)},1400:(e,t,s)=>{"use strict";function i(e,t){var s={},i=function(i){var n=e[i];"function"==typeof n&&(s[i]=function(){return t(n.apply(void 0,arguments))})};for(var n in e)i(n);return s}s.d(t,{A:()=>i})},1444:(e,t,s)=>{"use strict";e.exports=s(97776)},1455:e=>{"use strict";e.exports=window.wp.apiFetch},1960:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var i=s(27723),n=s(13022),a=s(10790);const __=i.__,r=({className:e,discount:t,suffix:s})=>t?(0,a.jsxs)("div",{className:(0,n.A)("jp-recommendations-discount-badge",e),children:[(0,i.sprintf)(
// translators: %d is the percentage value, %% the percentage symbol
__("%d%% off","jetpack"),t),s]}):null},1972:(e,t,s)=>{"use strict";s.d(t,{m:()=>p});var i=s(12961),n=s(56427),a=s(27723),r=s(28120),o=s.n(r),c=s(37150),l=s(10790);const __=a.__,p=e=>{const{productId:t,siteRawUrl:s}=e,a={jetpack_backup:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_complete:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_scan:{text:__("View my plans","jetpack"),redirectSource:"license-activation-view-my-plans"},jetpack_search:{text:__("Configure search","jetpack"),redirectSource:"jetpack-license-activation-success-search"},jetpack_security:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},default:null}[(0,c.p)(t)];return(0,l.jsx)(l.Fragment,{children:a&&(0,l.jsx)(n.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,i.A)(a.redirectSource,{site:s}),children:a.text})})};p.propTypes={siteRawUrl:o().string,productId:o().number}},2056:(e,t,s)=>{"use strict";s.d(t,{i:()=>i});const i={SUCCESS:"success",IN_PROGRESS:"in-progress",PENDING:"pending",FAILED:"failed"}},2467:e=>{"use strict";var t,s="object"==typeof Reflect?Reflect:null,i=s&&"function"==typeof s.apply?s.apply:function(e,t,s){return Function.prototype.apply.call(e,t,s)};t=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise(function(s,i){function n(s){e.removeListener(t,a),i(s)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",n),s([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,s){"function"==typeof e.on&&g(e,"error",t,s)}(e,n,{once:!0})})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.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?a.defaultMaxListeners:e._maxListeners}function l(e,t,s,i){var n,a,r,l;if(o(s),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,s.listener?s.listener:s),a=e._events),r=a[t]),void 0===r)r=a[t]=s,++e._eventsCount;else if("function"==typeof r?r=a[t]=i?[s,r]:[r,s]:i?r.unshift(s):r.push(s),(n=c(e))>0&&r.length>n&&!r.warned){r.warned=!0;var p=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");p.name="MaxListenersExceededWarning",p.emitter=e,p.type=t,p.count=r.length,l=p,console&&console.warn&&console.warn(l)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,s){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:s},n=p.bind(i);return n.listener=s,i.wrapFn=n,n}function u(e,t,s){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?s?[n.listener||n]:[n]:s?function(e){for(var t=new Array(e.length),s=0;s0&&(r=t[0]),r instanceof Error)throw r;var o=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw o.context=r,o}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,p=m(c,l);for(s=0;s=0;a--)if(s[a]===t||s[a].listener===t){r=s[a].listener,n=a;break}if(n<0)return this;0===n?s.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);return this},a.prototype.listeners=function(e){return u(this,e,!0)},a.prototype.rawListeners=function(e){return u(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2895:(e,t,s)=>{"use strict";s.d(t,{$J:()=>d,GA:()=>r,RA:()=>p,ZT:()=>l,f5:()=>o,hV:()=>h,ti:()=>u,x5:()=>g,y5:()=>c});var i=s(10790),n=s(86087),a=s(27723);const r=e=>e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,""),o=e=>t=>t.length<=e&&t,c=(e,t)=>s=>{const i=s.slice(0,t),n=i.lastIndexOf(" ");return n>e&&nt=>t.slice(0,e).concat("…"),p=(...e)=>t=>e.find(e=>!1!==e(t))?.(t),d=(e,t=[])=>{const s=new RegExp(`(<([^${t.join("")}>]+)>)`,"gi");return e?e.replace(s,""):""},u=(e,t)=>new RegExp(`<${t}[^>]*>`,"gi").test(e),h=(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),m=(new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format,{twitter:"https://twitter.com/hashtag/%1$s",facebook:"https://www.facebook.com/hashtag/%1$s",linkedin:"https://www.linkedin.com/feed/hashtag/?keywords=%1$s",instagram:"https://www.instagram.com/explore/tags/%1$s",mastodon:"https://%2$s/tags/%1$s",nextdoor:"https://nextdoor.com/hashtag/%1$s",threads:"https://www.threads.net/search?q=%1$s&serp_type=tags",tumblr:"https://www.tumblr.com/tagged/%1$s",bluesky:"https://bsky.app/hashtag/%1$s"});function g(e,t){const{platform:s,maxChars:r,maxLines:o,hyperlinkHashtags:c=!0,hyperlinkUrls:p="instagram"!==s}=t;let u=d(e);if(u=u.replaceAll(/(?:\s*[\n\r]){2,}/g,"\n\n"),r&&u.length>r&&(u=l(r)(u)),o){const e=u.split("\n");e.length>o&&(u=e.slice(0,o).join("\n"))}const h={};if(p){(u.match(/(https?:\/\/\S+)/g)||[]).forEach((e,t)=>{h[`Link${t}`]=(0,i.jsx)("a",{href:e,rel:"noopener noreferrer",target:"_blank",children:e}),u=u.replace(e,``)})}if(c&&m[s]){const e=u.matchAll(/(^|\s)#(\w+)/g),n=m[s];[...e].forEach(([e,s,r],o)=>{const c=(0,a.sprintf)(n,r,t.hashtagDomain);h[`Hashtag${o}`]=(0,i.jsx)("a",{href:c,rel:"noopener noreferrer",target:"_blank",children:`#${r}`}),u=u.replace(e,`${s}`)})}return u=u.replace(/\n/g," "),h.br=(0,i.jsx)("br",{}),(0,n.createInterpolateElement)(u,h)}},3545:(e,t,s)=>{"use strict";s.d(t,{Qi:()=>i.Qi,mF:()=>n.m,wp:()=>i.wp});var i=s(36505),n=s(26490)},3615:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});const i=[9,32,37,38,39,40];let n=!1;const a=function(){document.addEventListener("keydown",function(e){n||-1!==i.indexOf(e.keyCode)&&(n=!0,document.documentElement.classList.add("dops-accessible-focus"))}),document.addEventListener("mouseup",function(){n&&(n=!1,document.documentElement.classList.remove("dops-accessible-focus"))})}},4330:(e,t,s)=>{"use strict";s.d(t,{Z:()=>m});var i=s(12961),n=s(27723),a=s(51609),r=s(84952),o=s(81715),c=s(59044),l=s(73087),p=s(11236),d=s(19950),u=s(14897),h=s(10790);const __=n.__,m=(0,r.Ng)(e=>({siteRawUrl:(0,d.XG)(e)}))(e=>{const{siteRawUrl:t}=e;(0,a.useEffect)(()=>{p.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"security"})},[]);const s=(0,a.useCallback)(()=>{p.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"security"})},[]);return(0,h.jsx)(u.T,{illustrationPath:l.d0+"/recommendations/manage-security.svg",children:(0,h.jsxs)("div",{children:[(0,h.jsx)("h2",{children:__("Manage your security on Jetpack.com","jetpack")}),(0,h.jsx)("p",{children:__("Did you know you can manage all your backups right from Jetpack.com?","jetpack")}),(0,h.jsx)("p",{children:__("You can also use your included Activity feature to monitor every change that occurs on your site!","jetpack")}),(0,h.jsxs)(o.A,{rna:!0,href:(0,i.A)("jetpack-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:s,children:[__("Manage security on Jetpack.com","jetpack"),(0,h.jsx)(c.A,{icon:"external"})]})]})})})},4481:(e,t,s)=>{"use strict";s.d(t,{u:()=>g,v:()=>j});var i=s(46521),n=s.n(i),a=s(9050),r=s(52169),o=s(81862);const c=n()("number-formatters:number-format-currency");function l(e,t){return"USD"===e&&t&&""!==t&&"US"!==t?{symbol:"US$"}:o.a[e]}function p(e,t){return l(e,t)?e:(c(`getValidCurrency was called with a non-existent currency "${e}"; falling back to ${a.$}`),a.$)}function d({number:e,currency:t,browserSafeLocale:s,forceLatin:i=!0,stripZeros:n,signForPositive:a}){const o=`${s}${i?"-u-nu-latn":""}`,c={style:"currency",currency:t,...n&&Number.isInteger(e)&&{maximumFractionDigits:0,minimumFractionDigits:0},...a&&{signDisplay:"exceptZero"}};return(0,r.J)({locale:o,options:c})}function u(e,t,s){return d({number:0,currency:t,browserSafeLocale:e,forceLatin:s}).resolvedOptions().maximumFractionDigits}function h(e,t){const s=Math.pow(10,t);return Math.round(e*s)/s}function m(e,t,s){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**t;return h(Math.round(e)/s,t)}return h(e,t)}const g=({number:e,browserSafeLocale:t,currency:s,stripZeros:i,isSmallestUnit:n,signForPositive:a,geoLocation:r,forceLatin:o})=>{const c=p(s,r),h=l(c,r),g=u(t,c,o);if(n&&void 0===g)throw new Error(`Could not determine currency precision for ${c} in ${t}`);const j=m(e,g??0,n);return d({number:j,currency:c,browserSafeLocale:t,forceLatin:o,stripZeros:i,signForPositive:a}).formatToParts(j).reduce((e,t)=>"currency"===t.type&&h?.symbol?e+h.symbol:e+t.value,"")},j=({number:e,browserSafeLocale:t,currency:s,stripZeros:i,isSmallestUnit:n,signForPositive:a,geoLocation:r,forceLatin:o})=>{const c=p(s,r),h=l(c,r),g=m(e,u(t,c,o)??0,n),j=d({number:g,currency:c,browserSafeLocale:t,forceLatin:o,stripZeros:i,signForPositive:a}).formatToParts(g);let k="",f="$",v="before",x=!1,b=!1,_="",w="";j.forEach(e=>{switch(e.type){case"currency":return f=h?.symbol??e.value,void(x&&(v="after"));case"group":case"integer":return _+=e.value,void(x=!0);case"decimal":case"fraction":return w+=e.value,x=!0,void(b=!0);case"minusSign":return void(k="-");case"plusSign":k="+"}});const y=!Number.isInteger(g)&&b;return{sign:k,symbol:f,symbolPosition:v,integer:_,fraction:w,hasNonZeroFraction:y}}},4568:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var i=s(5573),n=s(10790),a=(0,n.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(i.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"})})},4652:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var i=s(5573),n=s(10790),a=(0,n.jsx)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z"})})},4891:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(13022),n=s(28120),a=s.n(n),r=s(51609),o=s(59044),c=s(38318),l=s(10790);const p=()=>{};class d extends r.Component{static displayName="SimpleNotice";static defaultProps={duration:0,status:null,showDismiss:!0,className:"",onDismissClick:p,display:!0};static propTypes={status:a().string,showDismiss:a().bool,isCompact:a().bool,duration:a().number,text:a().oneOfType([a().oneOfType([a().string,a().node]),a().arrayOf(a().oneOfType([a().string,a().node]))]),icon:a().string,onDismissClick:a().func,className:a().string,display:a().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:s,isCompact:n,onDismissClick:a,showDismiss:r=!n,status:p,text:d,dismissText:u,display:h}=this.props,m=(0,i.A)("dops-notice",p,t,{"is-compact":n,"is-dismissable":r,"is-hidden":!h});return(0,l.jsxs)("div",{className:m,children:[(0,l.jsx)("span",{className:"dops-notice__icon-wrapper",children:(0,l.jsx)(o.A,{className:"dops-notice__icon",icon:s||this.getIcon(),size:24})}),(0,l.jsx)("span",{className:"dops-notice__content",children:(0,l.jsx)("span",{className:"dops-notice__text",children:d?this.clearText(d):e})}),d?e:null,r&&(0,l.jsxs)("span",{role:"button",onKeyDown:(0,c.A)(a),tabIndex:"0",className:"dops-notice__dismiss",onClick:a,children:[(0,l.jsx)(o.A,{icon:"cross",size:24}),(0,l.jsx)("span",{className:"dops-notice__screen-reader-text screen-reader-text",children:u})]})]})}}},5192:(e,t,s)=>{"use strict";s.d(t,{A:()=>C});var i=s(12961),n=s(42689),a=s(27723),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(81715),d=s(74778),u=s(42233),h=s(86483),m=s(11236),g=s(39228),j=s(1194),k=s(19950),f=s(3545),v=s(12347),x=s(36865),b=s(76478),_=s(10790);const __=a.__,_n=a._n,_x=a._x,w=(e,t)=>()=>((e,t)=>m.A.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t}))(e,t);class y extends c.Component{static propTypes={isCompact:o().bool,proFeature:o().string,rewindStatus:o().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 s="",a=!1,r=!1,o="";switch(e){case"threats":s="error",r=_x("Threats detected","A caption for a small button to fix security issues.","jetpack"),o=(0,i.A)("vaultpress-dashboard");break;case"secure":s="active",a=_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,_.jsx)(n.A,{status:e.status,text:e.text})}case"active":return(0,_.jsx)(n.A,{status:"active"})}const c=(0,_.jsxs)(_.Fragment,{children:[a,r&&(0,_.jsx)("a",{className:"dops-notice__text-no-underline",onClick:w(e,t),href:o,children:r})]});return(0,_.jsx)(n.A,{status:s,label:c})};getSetUpButton=e=>(0,_.jsx)(p.A,{onClick:w("set_up",e),compact:!0,primary:!0,href:(0,i.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:s}=this.props,i=this.props.sitePlan,a=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 o=/jetpack_free*/.test(i.product_slug),c=a?.data?.features?.backups??!1,l=a?.data?.features?.security??!1;return(0,_.jsxs)("div",{children:[(0,_.jsx)(u.A,{}),(0,_.jsx)(d.A,{}),(0,_.jsx)(h.A,{}),!this.props.isOfflineMode&&((p,d,u)=>{switch(p){case"rewind":return this.getProActions("rewind_connected","rewind");case"backups":if(o&&!c&&this.props.isCompact)return"";break;case"scan":if(this.props.fetchingSiteData||this.props.isFetchingVaultPressData)return"";if("N/A"!==a)return t?l?this.getProActions(0===this.props.getScanThreats()?"secure":"threats","scan"):this.getSetUpButton("scan"):!e||c||this.props.isCompact?"":this.getSetUpButton("backups");if(s&&"unavailable"!==s.state)return Array.isArray(s.threats)&&s.threats.length>0?(0,_.jsx)(n.A,{status:"error",label:_n("Threat","Threats",s.threats.length,"jetpack")}):s.credentials?0===s.credentials.length?(0,_.jsx)(n.A,{status:"action"}):this.getProActions("secure","scan"):"";break;case"search":return"";case"akismet":if(o&&(!d||!u))return"";if(!this.props.isAkismetKeyValid&&!this.props.fetchingAkismetData&&d&&u&&!o)return this.getSetUpButton(p)}return i.product_slug&&r&&!o?d&&u?this.getProActions("active"):this.getSetUpButton(p):""})(this.props.proFeature,this.props.pluginActive(r),this.props.pluginInstalled(r))]})}}const C=(0,l.Ng)(e=>{const t=(0,x.X6)(e);return{siteRawUrl:(0,k.XG)(e),siteAdminUrl:(0,k.eu)(e),getScanThreats:()=>(0,g.mK)(e),getVaultPressData:()=>(0,g.Cc)(e),getAkismetData:()=>(0,g.PU)(e),isFetchingVaultPressData:(0,g.en)(e),sitePlan:t,fetchingPluginsData:(0,b.rC)(e),pluginActive:t=>(0,b.gT)(e,t),pluginInstalled:t=>(0,b.O8)(e,t),isOfflineMode:(0,j.hN)(e),fetchingSiteData:(0,x.Kb)(e),isAkismetKeyValid:(0,g.Ee)(e),fetchingAkismetData:(0,g.Ri)(e),rewindStatus:(0,f.Qi)(e),scanStatus:(0,v.W4)(e),purchasedVaultPressBackups:(0,x.IT)(e,"vaultpress-backups"),purchasedVaultPressScan:(0,x.IT)(e,"vaultpress-security-scanning")}})(y)},5573:e=>{"use strict";e.exports=window.wp.primitives},5643:(e,t,s)=>{"use strict";s.d(t,{A:()=>k});var i=s(24649),n=s(13022),a=s(66087),r=s(28120),o=s.n(r),c=s(51609),l=s(59044),p=s(11236),d=s(44571),u=s(42616),h=s(10790);const m=()=>{};function g(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}class j extends c.Component{static displayName="Search";static instances=0;static propTypes={additionalClasses:o().string,initialValue:o().string,placeholder:o().string,pinned:o().bool,delaySearch:o().bool,delayTimeout:o().number,onSearch:o().func.isRequired,onSearchChange:o().func,onSearchOpen:o().func,analyticsGroup:o().string,overlayStyling:o().func,autoFocus:o().bool,disabled:o().bool,onKeyDown:o().func,onClick:o().func,disableAutocorrect:o().bool,onBlur:o().func,searching:o().bool,isOpen:o().bool,dir:o().oneOf(["ltr","rtl"]),fitsContainer:o().bool,maxLength:o().number,hideClose:o().bool};static defaultProps={pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:m,onSearchOpen:m,onKeyDown:m,onClick:m,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:++j.instances}),this.closeListener=g.bind(this,"closeSearch"),this.openListener=g.bind(this,"openSearch")}UNSAFE_componentWillReceiveProps(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,a.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,a.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(),s=window.getComputedStyle(e,void 0),i=parseFloat(s.paddingLeft),n=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+i-n.left};focus=()=>{setTimeout(()=>this.searchInputRef.current&&this.searchInputRef.current.focus(),0)};blur=()=>{this.searchInputRef.current.blur()};getCurrentSearchValue=()=>this.searchInputRef.current.value;clear=()=>{this.setState({keyword:""})};onBlur=e=>{this.props.onBlur&&this.props.onBlur(e),this.setState({hasFocus:!1})};onChange=()=>{this.setState({keyword:this.getCurrentSearchValue()})};openSearch=e=>{this.props.onClick(),e.preventDefault(),this.setState({keyword:"",isOpen:!0}),p.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(),p.A.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search"))};clearSearch=()=>{this.clear(),this.focus()};keyUp=e=>{"Enter"===e.key&&(0,i.Fr)()&&this.blur(),this.props.pinned&&("Escape"===e.key&&this.closeSearch(e),this.scrollOverlay())};keyDown=e=>{this.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&this.closeSearch(e),this.props.onKeyDown(e)};onFocus=()=>{const e=this.searchInputRef.current,t=e.value;t&&(e.value="",e.value=t),this.setState({hasFocus:!0}),this.props.onSearchOpen()};render(){const e=this.state.keyword,t=this.props.placeholder||"Search…",s=this.props.pinned&&!this.state.isOpen,i=this.state.isOpen||!this.props.pinned||this.props.initialValue,a=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},r=(0,n.A)(this.props.additionalClasses,this.props.dir,{"is-expanded-to-container":this.props.fitsContainer,"is-open":i,"is-searching":this.props.searching,"has-focus":this.state.hasFocus,"dops-search":!0}),o=(0,n.A)("dops-search__input-fade",this.props.dir),c=(0,n.A)("dops-search__input",this.props.dir),p=!this.props.hideClose&&(this.state.keyword||this.state.isOpen),m=p&&e;return(0,h.jsxs)("div",{dir:this.props.dir||null,className:r,role:"search",children:[(0,h.jsx)("div",{role:"button",className:"dops-search__icon-navigation",ref:this.openIconRef,onClick:s?this.openSearch:this.focus,tabIndex:s?"0":null,onKeyDown:s?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:o,children:[(0,h.jsx)("input",{type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:c,placeholder:t,role:"searchbox",tabIndex:i?"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":!i,autoCapitalize:"none",dir:this.props.dir,maxLength:this.props.maxLength,...a}),this.props.overlayStyling&&this.renderStylingDiv()]}),m&&(0,h.jsx)(d.A,{onClick:this.clearSearch}),p&&(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 k=j},6737:(e,t,s)=>{"use strict";s.d(t,{A:()=>j});var i=s(27723),n=s(84952),a=s(39862),r=s(26571),o=s(31238),c=s(30054),l=s(85631),p=s(15294),d=s(8064),u=s(54207),h=s(15163),m=s(79289),g=s(10790);const __=i.__;const j=(0,n.Ng)(e=>({module:t=>(0,r.f_)(e,t),isModuleFound:t=>(0,o.jQ)(e,t)}))(function(e){const{active:t,isModuleFound:s,searchTerm:i,siteRawUrl:n,blogID:r}=e;if(!i&&!t)return null;const o=s(c.O);return o?(0,g.jsxs)("div",{children:[(0,g.jsx)(a.A,{}),(0,g.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Newsletter Settings","jetpack")}),(0,g.jsx)("h2",{className:"jp-settings__section-title",children:i?__("Newsletter","jetpack"):__("Transform your blog posts into newsletters to easily reach your subscribers.","jetpack",0)}),o&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(d.A,{siteRawUrl:n,blogID:r}),(0,g.jsx)(m.A,{}),(0,g.jsx)(h.A,{}),(0,g.jsx)(u.A,{}),(0,g.jsx)(l.A,{}),(0,g.jsx)(p.A,{...e})]})]}):null})},7002:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});const i={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",simple:"XzciqDNeE4p0AQKpZFNs",currentPrice:"T18Wss3qoJne5HBFOp5Q",originalPrice:"m51fRupWPUTbhnGFMJ8A"}},8064:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});var i=s(12961),n=s(27723),a=s(51609),r=s(84952),o=s(74209),c=s(76563),l=s(27844),p=s(79779),d=s(50534),u=s(11236),h=s(72625),m=s(1194),g=s(19950),j=s(26571),k=s(30054),f=s(10790);const __=n.__,v=()=>{u.A.tracks.recordJetpackClick("manage-subscribers")};const x=(0,c.t)((0,r.Ng)((e,t)=>({isLinked:(0,m._U)(e),isOffline:(0,m.hN)(e),isSubscriptionsActive:t.getOptionValue(k.O),unavailableInOfflineMode:(0,m.Em)(e,k.O),subscriptions:(0,j.f_)(e,k.O),siteHasConnectedUser:(0,m.BG)(e),wpAdminSubscriberManagementEnabled:(0,g.V)(e),siteAdminUrl:(0,g.eu)(e)}))(function(e){const{siteRawUrl:t,blogID:s,isSavingAnyOption:n,isLinked:r,isSubscriptionsActive:c,unavailableInOfflineMode:m,subscriptions:g,siteHasConnectedUser:j,wpAdminSubscriberManagementEnabled:x,siteAdminUrl:b,updateOptions:_,getOptionValue:w,refreshSettings:y}=e,C=(0,a.useCallback)(e=>{const t=w(e);u.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:e,toggled:t?"off":"on"}),_({[e]:!t}).then(()=>{t||y()})},[w,_,y]);return(0,f.jsxs)(p.A,{...e,header:__("Newsletter","jetpack"),hideButton:!0,feature:h.KCE,module:k.O,isDisabled:!j,children:[(0,f.jsx)(d.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!j,module:g,support:{text:__("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.","jetpack"),link:(0,i.A)("jetpack-support-subscriptions")},children:(0,f.jsx)(l.j,{slug:"subscriptions",disabled:!j||m,activated:c,toggling:n(k.O),toggleModule:C,children:(0,f.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Let visitors subscribe to this site and receive emails when you publish a post","jetpack")})})}),!m&&c&&r?(0,f.jsx)(o.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:v,href:x?b+"admin.php?page=subscribers":(0,i.A)("jetpack-settings-jetpack-manage-subscribers",{site:s??t}),target:"_blank",rel:"noopener noreferrer",children:__("Manage all subscribers","jetpack")}):""]})}))},8280:(e,t,s)=>{"use strict";s.d(t,{H:()=>_});var i=s(12961),n=s(44179),a=s(86087),r=s(27723),o=s(13022),c=s(51609),l=s(84952),p=s(81715),d=s(74209),u=s(74653),h=s(46628),m=s(10231),g=s(76563),j=s(79779),k=s(50534),f=s(73087),v=s(11236),x=s(10790);const __=r.__,_x=r._x;class b extends c.Component{constructor(e){super(e);const t=e.getOptionValue("count_roles","stats"),s=e.getOptionValue("roles","stats");this.state={count_roles:t,roles:s,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:!!s?.includes("editor"),roles_author:!!s?.includes("author"),roles_contributor:!!s?.includes("contributor"),roles_subscriber:!!s?.includes("subscriber"),wpcom_reader_views_enabled:e.getOptionValue("wpcom_reader_views_enabled")};const i=["administrator","editor","author","contributor","subscriber"];s?.length>0&&s.forEach(e=>{i.includes(e)||(this.state[`roles_${e}`]=!0)}),t?.length>0&&t.forEach(e=>{i.includes(e)||(this.state[`count_roles_${e}`]=!0)})}updateOptions=(e,t)=>{let s=this.props.getOptionValue(t,"stats"),i=!1;this.state[`${t}_${e}`]?s.includes(e)&&(s=s.filter(t=>t!==e)):s.includes(e)||(s.push(e),i=!0),this.setState({[`${t}_${e}`]:!this.state[`${t}_${e}`]},()=>{this.props.updateOptions({[t]:s})}),v.A.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:i?"on":"off"})};activateStats=()=>{this.props.updateOptions({stats:!0})};trackOpenCard=()=>{v.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})}),v.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"),s=this.props.isUnavailableInOfflineMode("stats"),r=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?(0,x.jsx)(m.A,{moduleName:e.name}):t?(0,x.jsx)(j.A,{...this.props,header:_x("Jetpack Stats","Settings header","jetpack"),hideButton:!0,module:"site-stats",children:(0,x.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,o.A)("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":s}),children:(0,x.jsxs)(k.A,{disableInOfflineMode:!0,module:e,support:{text:__("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:(0,i.A)("jetpack-support-wordpress-com-stats")},children:[(0,x.jsx)(h.dV,{className:"jp-stats-form-fieldset",children:(0,x.jsx)(n.A,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!t||s||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")})}),(0,x.jsxs)(h.dV,{className:"jp-stats-form-fieldset",children:[(0,x.jsx)(h.kK,{children:__("Count logged in page views from","jetpack")}),Object.keys(r).map(e=>(0,x.jsx)(n.A,{checked:this.state[`count_roles_${e}`],disabled:!t||s||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption([`count_roles_${e}`]),onChange:this.handleRoleToggleChange(e,"count_roles"),label:r[e].name},`count_roles-${e}`))]}),(0,x.jsxs)(h.dV,{className:"jp-stats-form-fieldset",children:[(0,x.jsx)(h.kK,{children:__("Allow Jetpack Stats to be viewed by","jetpack")}),(0,x.jsx)(n.A,{checked:!0,disabled:!0,label:r.administrator.name}),Object.keys(r).map(e=>"administrator"!==e?(0,x.jsx)(n.A,{checked:this.state[`roles_${e}`],disabled:!t||s||this.props.isSavingAnyOption(["stats"]),toggling:this.props.isSavingAnyOption([`roles_${e}`]),onChange:this.handleRoleToggleChange(e,"roles"),label:r[e].name},`roles-${e}`):null)]}),(0,x.jsxs)(h.dV,{className:"jp-stats-form-fieldset",children:[(0,x.jsx)(h.kK,{children:__("WordPress.com Reader","jetpack")}),(0,x.jsx)(n.A,{checked:this.state.wpcom_reader_views_enabled,disabled:!t||s,toggling:this.props.isSavingAnyOption(["wpcom_reader_views_enabled"]),onChange:this.handleOptionToggle("wpcom_reader_views_enabled"),label:__("Show post views for this site.","jetpack")})]})]})})}):(0,x.jsx)(d.A,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":""),children:(0,x.jsxs)("div",{className:"jp-at-a-glance__stats-inactive",children:[(0,x.jsx)("div",{className:"jp-at-a-glance__stats-inactive-icon",children:(0,x.jsx)("img",{src:f.d0+"stats.svg",width:"60",height:"60",alt:__("Line chart overlaid on a bar chart","jetpack"),className:"jp-at-a-glance__stats-icon"})}),(0,x.jsx)("div",{className:"jp-at-a-glance__stats-inactive-text",children:this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,a.createInterpolateElement)(__("Activate Jetpack Stats to see page views, likes, followers, subscribers, and more! Learn More","jetpack"),{a:(0,x.jsx)("a",{href:(0,i.A)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})}),!this.props.isOfflineMode&&(0,x.jsx)("div",{className:"jp-at-a-glance__stats-inactive-button",children:(0,x.jsx)(p.A,{rna:!0,onClick:this.activateStats,primary:!0,children:__("Activate Jetpack Stats","jetpack")})})]})})}}const _=(0,l.Ng)()((0,g.t)(b))},8283:(e,t,s)=>{"use strict";s.d(t,{A:()=>w});var i=s(68965),n=s(17036),a=s(27723),r=s(51609),o=s(84952),c=s(20880),l=s(64732),p=s(23838),d=s(6737),u=s(91346),h=s(20284),m=s(77032),g=s(61538),j=s(83192),k=s(26571),f=s(167),v=s(10804),x=s(72625),b=s(10790);const __=a.__;class _ extends r.Component{static displayName="SearchableSettings";render(){const{location:e={pathname:""},rewindStatus:t,searchTerm:s,siteAdminUrl:r,siteRawUrl:o,blogID:c,userCanManageModules:k}=this.props,{pathname:_}=e,w={searchTerm:s,rewindStatus:t,userCanManageModules:k};return(0,b.jsxs)(n.Ay,{children:[(0,b.jsxs)("div",{className:"jp-settings-container",children:[(0,b.jsx)("div",{className:"jp-no-results",children:s?(0,a.sprintf)(/* translators: %s: a search term entered in search form. */
__("No search results found for %s","jetpack"),s):__("Enter a search term to find settings or close search.","jetpack")}),(0,b.jsx)(g.A,{siteAdminUrl:r,siteRawUrl:o,active:"/security"===_||"/settings"===_&&k,...w}),(0,b.jsx)(l.A,{siteRawUrl:o,active:"/discussion"===_,...w}),(0,b.jsx)(d.A,{siteRawUrl:o,blogID:c,active:"/newsletter"===_,...w}),(0,b.jsx)(p.A,{siteRawUrl:o,active:"/earn"===_,feature:x.zwM,...w}),(0,b.jsx)(u.A,{active:"/performance"===_,...w}),(0,b.jsx)(f.A,{siteRawUrl:o,siteAdminUrl:r,active:"/traffic"===_,...w}),(0,b.jsx)(v.A,{siteAdminUrl:r,active:"/writing"===_||!k&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize"),...w}),(0,b.jsx)(j.A,{siteAdminUrl:r,active:"/sharing"===_||"/settings"===_&&!k&&this.props.isModuleActivated("publicize"),...w}),(0,b.jsx)(h.A,{active:"/privacy"===_,...w}),(0,b.jsx)(m.A,{searchTerm:s})]}),(0,b.jsx)(i.D,{})]})}}const w=(0,o.Ng)(e=>({isModuleActivated:t=>(0,k.Yp)(e,t)}))(e=>(0,b.jsx)(_,{...e,location:(0,c.zy)()}))},8347:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var i=s(26556),n=s(94461),a=s(8857);const r=(0,i.Zz)((0,i.Tw)(n.A),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(i.y$)(a.A)},8402:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var i=s(5573),n=s(10790),a=(0,n.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(i.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},8857:(e,t,s)=>{"use strict";s.d(t,{A:()=>T});var i=s(26556),n=s(45598),a=s(13192),r=s(81446),o=s(98380),c=s(72833),l=s(67293),p=s(47058),d=s(38564),u=s(81284),h=s(58462),m=s(33995),g=s(91278),j=s(70398),k=s(47375),f=s(43822),v=s(36505),x=s(60155),b=s(78746),_=s(15947),w=s(9282),y=s(25521),C=s(13404),A=s(85537),S=s(45811),N=s(48740);const E=(0,i.HY)({connection:r.Ff,dashboard:a.ze,devCard:o.Ff,initialState:p.ue,jetpackNotices:u.Ff,modules:m.Ff,plans:g.F,pluginsData:w.Ff,products:j.Ff,publicize:k.Ff,recommendations:f.Ff,rewind:v.Ff,scan:x.Ff,search:b.Ff,settings:_.Ff,siteData:y.Ff,siteProducts:C.Ff,siteVerify:A.Ff,featureCheck:l.F,disconnectSurvey:c.Ff,trackingSettings:S.Ff,licensing:h.Ff,waf:N.Ff,introOffers:d.Ff}),T=(0,i.HY)({globalNotices:n.x,jetpack:E})},8909:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var i=s(12961),n=s(86087),a=s(27723),r=s(13022),o=s(28120),c=s.n(o),l=s(51609),p=s(84952),d=s(20880),u=s(82036),h=s(22759),m=s(67182),g=s(11236),j=s(1194),k=s(19950),f=s(26571),v=s(43822),x=s(10790);const _x=a._x;class b extends l.Component{trackNavClick=e=>{g.A.tracks.recordJetpackClick({target:"nav_item",path:e})};trackNewRecommendations=()=>{this.props.newRecommendationsCount>0&&!this.props.location.pathname.startsWith("/recommendations")&&g.A.tracks.recordEvent("jetpack_recommendations_new_recommendation_bubble_visible",{path:this.props.location.pathname})};trackDashboardClick=()=>{this.trackNavClick("dashboard")};trackMyPlanClick=()=>{this.trackNavClick("my-plan")};trackPlansClick=()=>{this.trackNavClick("plans")};trackRecommendationsClick=()=>{const e=this.props.newRecommendationsCount>0;g.A.tracks.recordJetpackClick({target:"nav_item",path:"recommendations",is_new_recommendations_bubble_visible:e})};componentDidMount(){this.trackNewRecommendations()}render(){let e;const t=`${`redirect_to=${this.props.adminUrl}admin.php?page=jetpack`}${this.props.purchaseToken?`&purchasetoken=${this.props.purchaseToken}`:""}${this.props.isLinked?"":`&connect_after_checkout=true&from_site_slug=${this.props.siteUrl}&admin_url=${this.props.adminUrl}`}`;let s=(0,i.A)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-plans-no-site",{query:t});return this.props.isLinked||(s=s.replace(/&site=\d+/,"")),e=this.props.userCanManageModules?(0,x.jsxs)(m.A,{selectedText:this.props.routeName,children:[(0,x.jsx)(h.A,{path:"#/dashboard",onClick:this.trackDashboardClick,selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname,children:_x("At a Glance","Navigation item.","jetpack")}),!this.props.isOfflineMode&&this.props.isLinked&&(0,x.jsx)(h.A,{path:"#/my-plan",onClick:this.trackMyPlanClick,selected:"/my-plan"===this.props.location.pathname,children:_x("My Plan","Navigation item.","jetpack")}),!this.props.isOfflineMode&&(0,x.jsx)(h.A,{isExternalLink:!0,path:s,onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname,children:_x("Plans","Navigation item.","jetpack")}),this.props.showRecommendations&&(0,x.jsx)(h.A,{path:"#/recommendations",onClick:this.trackRecommendationsClick,selected:this.props.location.pathname.startsWith("/recommendations"),children:(0,n.createInterpolateElement)((0,a.sprintf)(/* translators: %d is a count of how many new (unread) recommendations are available. */
_x("Recommendations %d","Navigation item.","jetpack"),this.props.newRecommendationsCount),{count:(0,x.jsx)("span",{className:(0,r.A)("dops-section-nav-tab__update-badge",{"is-hidden":this.props.location.pathname.startsWith("/recommendations")||!this.props.newRecommendationsCount})})})})]}):(0,x.jsx)(m.A,{selectedText:this.props.routeName,children:(0,x.jsx)(h.A,{path:"#/dashboard",selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname,children:_x("At a Glance","Navigation item.","jetpack")})}),(0,x.jsx)("div",{id:"jp-navigation",className:"dops-navigation",children:(0,x.jsx)(u.A,{selectedText:this.props.routeName,children:e})})}}b.propTypes={routeName:c().string.isRequired,isOfflineMode:c().bool};const _=(0,p.Ng)(e=>({userCanManageModules:(0,k.Ir)(e),userCanViewStats:(0,k.WC)(e),isModuleActivated:t=>(0,f.Yp)(e,t),isOfflineMode:(0,j.hN)(e),isLinked:(0,j._U)(e),hasConnectedOwner:(0,j.BG)(e),showRecommendations:(0,k.ct)(e),newRecommendationsCount:(0,v.x4)(e),siteUrl:(0,k.XG)(e),adminUrl:(0,k.eu)(e),purchaseToken:(0,k.r5)(e)}))(e=>(0,x.jsx)(b,{...e,location:(0,d.zy)()}))},8935:(e,t,s)=>{"use strict";s.d(t,{E:()=>g});var i=s(12961),n=s(97999),a=s(27723),r=s(51609),o=s(74209),c=s(76563),l=s(27844),p=s(79779),d=s(50534),u=s(11236),h=s(72625),m=s(10790);const __=a.__,_x=a._x,g=(0,c.t)(class extends r.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 s=this.props.isLinked,a=this.props.isOfflineMode;return(0,m.jsxs)(p.A,{...this.props,header:_x("Jetpack Social","Settings header","jetpack"),module:"publicize",hideButton:!0,feature:h.Y6$,isDisabled:a||!s,children:[(0,m.jsxs)(d.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"publicize"},support:{text:__("Allows you to automatically share your newest content on social media sites, including Facebook and LinkedIn.","jetpack"),link:(0,i.A)("jetpack-support-publicize")},children:[(0,m.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,m.jsx)(l.j,{slug:"publicize",disabled:a||!s||!t,activated:e,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Automatically share your posts to social networks","jetpack")})})]}),e&&(0,m.jsx)(o.A,{compact:!0,onClick:this.trackClickConfigure,href:(0,n.getAdminUrl)("admin.php?page=jetpack-social"),children:__("Connect accounts and configure Social sharing","jetpack")})]})}})},9050:(e,t,s)=>{"use strict";s.d(t,{$:()=>n,M:()=>i});const i="en",n="USD"},9079:(e,t,s)=>{"use strict";s.d(t,{A:()=>j});var i=s(12961),n=s(27723),a=s(13022),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(74209),d=s(15937),u=s(11236),h=s(1194),m=s(10790);const __=n.__;class g extends c.Component{static propTypes={inOfflineMode:o().bool.isRequired,siteRawUrl:o().string.isRequired};static defaultProps={inOfflineMode:!1,siteRawUrl:""};trackActivityClick=()=>{u.A.tracks.recordJetpackClick({type:"activity-link",target:"at-a-glance",feature:"activity-log"})};render(){const{inOfflineMode:e}=this.props,t=__("Jetpack keeps a complete record of everything that happens on your site, taking the guesswork out of site management, debugging, and repair.","jetpack");return(0,m.jsxs)("div",{className:"jp-dash-item__interior",children:[(0,m.jsx)(d.A,{label:__("Activity","jetpack"),isModule:!1,className:(0,a.A)({"jp-dash-item__is-inactive":e}),pro:!1,children:(0,m.jsx)("p",{className:"jp-dash-item__description",children:e?__("Unavailable in Offline Mode.","jetpack"):t})}),(0,m.jsx)(p.A,{className:"jp-dash-item__manage-in-wpcom",compact:!0,href:(0,i.A)("calypso-activity-log",{site:this.props.siteRawUrl}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackActivityClick,children:__("View site activity","jetpack")},"view-activity")]})}}const j=(0,l.Ng)(e=>({inOfflineMode:(0,h.hN)(e)}))(g)},9232:(e,t,s)=>{"use strict";s.d(t,{A:()=>N});var i=s(21453),n=s(97999),a=s(66143),r=s(86087),o=s(27723),c=s(28120),l=s.n(c),p=s(51609),d=s(84952),u=s(81715),h=s(74209),m=s(15937),g=s(412),j=s(31121),k=s(23758),f=s(11236),v=s(72625),x=s(19896),b=s(39228),_=s(1194),w=s(19950),y=s(36865),C=s(10790);const __=o.__,_x=o._x,A=()=>{};class S extends p.Component{static propTypes={siteRawUrl:l().string.isRequired,siteAdminUrl:l().string.isRequired,trackUpgradeButtonView:l().func,akismetData:l().oneOfType([l().string,l().object,l().number]).isRequired,isOfflineMode:l().bool.isRequired,upgradeUrl:l().string.isRequired};static defaultProps={siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isOfflineMode:"",trackUpgradeButtonView:A};trackActivateClick(){f.A.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"anti-spam"})}onActivateClick=()=>(this.trackActivateClick(),this.props.createNotice("is-info",__("Activating Akismet…","jetpack"),{id:"activating-akismet"}),i.Ay.activateAkismet().then(()=>{this.props.removeNotice("activating-akismet"),window.location.href=this.props.siteAdminUrl+"admin.php?page=akismet-key-config"}).catch(()=>{this.props.removeNotice("activating-akismet"),this.props.createNotice("is-error",__("Could not activate Akismet.","jetpack"),{id:"activate-akismet-failure"})}),!1);trackModerateClick(){f.A.tracks.recordJetpackClick({type:"moderate-link",target:"at-a-glance",feature:"anti-spam"})}onModerateClick=()=>{this.trackModerateClick()};getContent(){const{akismetData:e,siteAdminUrl:t}=this.props,s=__("Akismet Anti-spam","jetpack"),i={text:__("Comments and contact form submissions are checked against our global database of spam.","jetpack"),link:(0,n.isWoASite)()?null:"https://akismet.com/features",privacyLink:"https://automattic.com/privacy/"},o=()=>{let s;return"not_active"===e?s=(0,r.createInterpolateElement)(__("Already have an API key? .","jetpack"),{Button:(0,C.jsx)(u.A,{className:"jp-link-button",onClick:this.onActivateClick})}):"invalid_key"===e&&(s=(0,r.createInterpolateElement)(__("Already have an API key? Get started.","jetpack"),{a:(0,C.jsx)("a",{href:t+"admin.php?page=akismet-key-config"})})),(0,C.jsx)(k.Ay,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Automatically clear spam from comments and forms.","jetpack"),description:s,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"akismet",path:"dashboard",plan:(0,v.EP8)(v.pt9),trackBannerDisplay:this.props.trackUpgradeButtonView})};if("N/A"===e)return(0,C.jsx)(m.A,{label:s,module:"akismet",support:i,pro:!0,children:(0,C.jsx)("p",{className:"jp-dash-item__description",children:__("Loading…","jetpack")})});if(["not_installed","not_active","invalid_key"].includes(e)){const e={label:s,module:"akismet",support:i,className:"jp-dash-item__is-inactive",pro:!0};return this.props.hasAntiSpam||this.props.hasAkismet?(0,C.jsx)(m.A,{...e,children:__("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.","jetpack")}):this.props.isOfflineMode?(0,C.jsx)(m.A,{...e,children:(0,C.jsx)("p",{className:"jp-dash-item__description",children:__("Unavailable in Offline Mode.","jetpack")})}):(0,C.jsx)(m.A,{...e,overrideContent:o()})}return[(0,C.jsx)(m.A,{label:s,module:"akismet",support:i,status:"is-working",pro:!0,children:(()=>0!==this.props.akismetData?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("h2",{className:"jp-dash-item__count",children:(0,a.ZV)(this.props.akismetData)}),(0,C.jsx)("p",{className:"jp-dash-item__description",children:_x("Spam comments blocked.",'Example: "412 Spam comments blocked"',"jetpack")})]}):(0,C.jsx)("div",{className:"jp-dash-item__recently-activated",children:(0,C.jsx)("p",{className:"jp-dash-item__description",children:__("Akismet is now monitoring all comments on your site. Data will display here soon!","jetpack")})}))()},"comment-moderation"),!this.props.isOfflineMode&&(0,C.jsx)(h.A,{className:"jp-dash-item__manage-in-wpcom",compact:!0,href:`${this.props.siteAdminUrl}edit-comments.php`,onClick:this.onModerateClick,children:__("Moderate comments","jetpack")},"moderate-comments")]}render(){return(0,C.jsxs)("div",{className:"jp-dash-item__interior",children:[(0,C.jsx)(g.A,{}),this.getContent()]})}}const N=(0,d.Ng)(e=>({akismetData:(0,b.PU)(e),isOfflineMode:(0,_.hN)(e),upgradeUrl:(0,x.F)(e,"akismet"),nonce:(0,w.Co)(e),hasAntiSpam:(0,y.IT)(e,"antispam"),hasAkismet:(0,y.IT)(e,"akismet")}),e=>({createNotice:j.Fc,removeNotice:j.fj,connectUser:()=>e((0,_.k0)())}))(S)},9282:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>r,O8:()=>p,gT:()=>l,pK:()=>c,rC:()=>o});var i=s(26556),n=s(46755);const a={isFetchingPluginsData:!1},r=(0,i.HY)({items:(e={},t)=>t.type===n.yxi?Object.assign({},t.pluginsData):e,requests:(e=a,t)=>{switch(t.type){case n.SW5:return Object.assign({},e,{isFetchingPluginsData:!0});case n.RWZ:case n.yxi:return Object.assign({},e,{isFetchingPluginsData:!1});default:return e}}});function o(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function c(e){return e.jetpack.pluginsData.items}function l(e,t){return e.jetpack.pluginsData.items[t]&&e.jetpack.pluginsData.items[t].active}function p(e,t){return!!e.jetpack.pluginsData.items[t]}},9500:(e,t,s)=>{"use strict";s.d(t,{I:()=>n,c:()=>i});const i="NEW_NOTICE",n="REMOVE_NOTICE"},9503:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var i=s(12961),n=s(27723),a=s(51609),r=s(84952),o=s(46628),c=s(10231),l=s(76563),p=s(79779),d=s(50534),u=s(11236),h=s(19950),m=s(26571),g=s(31238),j=s(10790);const __=n.__;class k extends a.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"),s="inactive"===this.props.getModuleOverride("infinite-scroll");return(0,j.jsxs)(p.A,{...this.props,header:__("Theme enhancements","jetpack"),hideButton:!e||!this.props.isInfiniteScrollSupported,module:"theme-enhancements",children:[s&&(0,j.jsx)(c.A,{moduleName:t.name,compact:!0}),e&&!s&&(0,j.jsxs)(d.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,i.A)("jetpack-support-infinite-scroll")},children:[(0,j.jsx)(o.kK,{className:"jp-form-label-wide",children:t.name}),(0,j.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,j.jsxs)(o.lR,{children:[(0,j.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,j.jsx)("span",{className:"jp-form-toggle-explanation",children:e.label})]},`${t.module}_${e.key}`)):(0,j.jsxs)("span",{children:[__("Theme support required.","jetpack")+" ",(0,j.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 f=(0,r.Ng)(e=>({module:t=>(0,m.f_)(e,t),isInfiniteScrollSupported:(0,h.f8)(e,"infinite-scroll"),isModuleFound:t=>(0,g.jQ)(e,t)}))((0,l.t)(k))},9767:(e,t,s)=>{"use strict";s.d(t,{Kq:()=>i.A,Ng:()=>a.A,ty:()=>n.t});var i=s(31644),n=(s(20349),s(92302)),a=s(38087);s(61414),s(201),s(72887)},10047:(e,t,s)=>{"use strict";s.d(t,{E:()=>n});var i=s(51609),n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect},10231:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var i=s(12961),n=s(86087),a=s(27723),r=s(13022),o=s(28120),c=s.n(o),l=s(23758),p=s(10790);const __=a.__;class d extends l.xz{static propTypes={moduleName:c().string.isRequired};render(){if(!this.props.moduleName)return null;const e=(0,r.A)("module-overridden-banner",{"is-compact":this.props.compact});return(0,p.jsx)(l.xz,{className:e,title:this.props.moduleName,icon:"cog",description:(0,n.createInterpolateElement)((0,a.sprintf)(/* translators: %s: a feature name. */
__("%s has been disabled by a site administrator. Learn more.","jetpack"),this.props.moduleName),{link:(0,p.jsx)("a",{href:(0,i.A)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}const u=(0,l.Ng)(d)},10254:(e,t,s)=>{"use strict";var i=s(95415),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={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 i.isMemo(e)?r:o[e.$$typeof]||n}o[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[i.Memo]=r;var l=Object.defineProperty,p=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,s,i){if("string"!=typeof s){if(m){var n=h(s);n&&n!==m&&e(t,n,i)}var r=p(s);d&&(r=r.concat(d(s)));for(var o=c(t),g=c(s),j=0;j{"use strict";s.d(t,{A:()=>a});var i=s(5573),n=s(10790),a=(0,n.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(i.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"})})},10606:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var i=s(27723),n=s(28120),a=s.n(n),r=s(51609),o=s(4891),c=s(70284),l=s(73087),p=s(81148),d=s(10790);const __=i.__;class u extends r.Component{static propTypes={errors:a().array.isRequired,display:a().bool};static defaultProps={display:!0};getAction(e,t,s,i,n){switch(e){case"reconnect":return(0,d.jsx)(p.A,{text:t,errorCode:s,errorData:i,action:e,display:this.props.display});case"support":return(0,d.jsx)(o.A,{text:t,status:"is-error",icon:"link-break",showDismiss:!1,display:this.props.display,children:(0,d.jsx)(c.A,{href:n,external:!0,children:__("Contact support","jetpack")})});default:if(i.action_url&&i.action_label){const e=[(0,d.jsx)(c.A,{href:i.action_url,children:i.action_label},"primary")];return i.secondary_action_url&&i.secondary_action_label&&e.push((0,d.jsx)(c.A,{href:i.secondary_action_url,variant:"secondary",children:i.secondary_action_label},"secondary")),(0,d.jsx)(o.A,{text:t,status:"is-error",icon:"link-break",showDismiss:!1,display:this.props.display,children:e})}return(0,d.jsx)(p.A,{text:t,errorCode:s,errorData:i,action:"reconnect",display:this.props.display})}}renderOne(e){const t=this.props.isDevVersion?l.Ns:l.Iu,s=this.getAction(e.action,e.message,e.code,Object.hasOwn(e,"data")?e.data:{},t);return null===s?null:(0,d.jsx)(r.Fragment,{children:s},e.action)}render(){const e={},t=this.props.errors.filter(e=>Object.hasOwn(e,"action"));for(const s of t)Object.hasOwn(e,s.action)||(e[s.action]=s);return Object.values(e).map(e=>this.renderOne(e))}}},10790:e=>{"use strict";e.exports=window.ReactJSXRuntime},10804:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var i=s(27723),n=s(51609),a=s(84952),r=s(74209),o=s(39862),c=s(1194),l=s(77013),p=s(19950),d=s(26571),u=s(31238),h=s(17259),m=s(23973),g=s(71287),j=s(14043),k=s(9503),f=s(40323),v=s(49639),x=s(10790);const __=i.__;class b extends n.Component{static displayName="WritingSettings";constructor(e){super(e);const t=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.active&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.active,s=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.over_ride&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.over_ride;this.state={customContentTypeIsActive:t,customContentTypeIsOverridden:s,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()),s=this.props.userCanManageModules||this.props.userCanEditPosts,i=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return(0,x.jsxs)("div",{children:[(0,x.jsx)(o.A,{}),(0,x.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Writing Settings","jetpack")}),(0,x.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,x.jsx)(v.A,{...e}),s&&(0,x.jsx)(m.A,{...e,userCanManageModules:this.props.userCanManageModules}),t&&(0,x.jsx)(g.A,{...e}),(0,x.jsx)(k.A,{...e}),(0,x.jsx)(f.A,{...e}),this.props.isModuleFound("post-by-email")&&i&&(0,x.jsx)(j.A,{...e,connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules}),!s&&!i&&(0,x.jsx)(r.A,{children:__("Writing tools available to you will be shown here when an administrator enables them.","jetpack")})]})}}const _=(0,a.Ng)(e=>({module:t=>(0,d.f_)(e,t),settings:(0,h.mt)(e),isOfflineMode:(0,c.hN)(e),isUnavailableInOfflineMode:t=>(0,c.Em)(e,t),userCanEditPosts:(0,p.jM)(e),isModuleActivated:t=>(0,d.Yp)(e,t),isLinked:(0,c._U)(e),userCanManageModules:(0,p.Ir)(e),isModuleFound:t=>(0,u.jQ)(e,t),connectUrl:(0,c.Qp)(e),getModuleOverride:t=>(0,d.d1)(e,t)}),e=>({getActiveFeatureDetails:()=>e((0,l.ly)("custom-content-types"))}))(b)},10841:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var i=s(13022),n=s(28120),a=s.n(n),r=s(51609),o=s(11236),c=s(10790);class l extends r.Component{static displayName="DashSectionHeader";static propTypes={label:a().string.isRequired,settingsPath:a().string,externalLinkPath:a().string,externalLink:a().string,externalLinkClick:a().func};static defaultProps={label:"",settingsPath:"",externalLinkPath:"",externalLink:""};trackCogClick=()=>{o.A.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})};render(){let e,t;const s=(0,i.A)(this.props.className,"jp-dash-section-header");return this.props.externalLink&&(e=(0,c.jsx)("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick,children:this.props.externalLink})),this.props.children&&(t=(0,c.jsx)("div",{className:"jp-dash-section-header__children",children:this.props.children})),(0,c.jsxs)("div",{className:s,children:[(0,c.jsx)("div",{className:"jp-dash-section-header__label",children:(0,c.jsx)("h2",{className:"jp-dash-section-header__name",children:this.props.label})}),e,t]})}}const p=l},11032:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});const i={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"}},11236:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var i=s(91793),n=s(72349);i.A.setMcAnalyticsEnabled((0,n.A)("mc_analytics_enabled")),i.A.setGoogleAnalyticsEnabled((0,n.A)("google_analytics_enabled"),(0,n.A)("google_analytics_key"));const a=i.A},11314:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var i=s(5573),n=s(10790),a=(0,n.jsx)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n.jsx)(i.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"})})},11702:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(27723),n=s(20428),a=s.n(n),r=s(51609),o=s(31062),c=s(76563),l=s(11236),p=s(10790);const __=i.__,d=(0,c.t)(class extends r.Component{componentDidMount(){a()("body").addClass("jp-dialogue-modern-showing"),l.A.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}componentWillUnmount(){a()("body").removeClass("jp-dialogue-modern-showing")}trackLearnMoreClick=()=>{l.A.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:this.props.version})};dismissNotice=()=>{l.A.tracks.recordJetpackClick({target:"warm_welcome_dismiss",version:this.props.version}),this.props.dismiss()};renderInnerContent(){const e=(new DOMParser).parseFromString(this.props.releasePostContent,"text/html"),t=e.getElementsByTagName("a");for(let e=0;e0&&(t=(0,p.jsx)("img",{src:e,alt:""})),s&&0!==s.length||(s=(0,i.sprintf)(/* translators: %s: a version number. */
__("New in Jetpack %s","jetpack"),this.props.version)),(0,p.jsx)(o.A,{svg:t,title:s,content:this.renderInnerContent(),dismiss:this.dismissNotice})}})},11833:(e,t,s)=>{"use strict";s.d(t,{K:()=>a});var i=s(28446);var n={notify:function(){},get:function(){return[]}};function a(e,t){var s,a=n;function r(){c.onStateChange&&c.onStateChange()}function o(){var n,o,c;s||(s=t?t.addNestedSub(r):e.subscribe(r),n=(0,i.f)(),o=null,c=null,a={clear:function(){o=null,c=null},notify:function(){n(function(){for(var e=o;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=o;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,s=c={callback:e,next:null,prev:c};return s.prev?s.prev.next=s:o=s,function(){t&&null!==o&&(t=!1,s.next?s.next.prev=s.prev:c=s.prev,s.prev?s.prev.next=s.next:o=s.next)}}})}var c={addNestedSub:function(e){return o(),a.subscribe(e)},notifyNestedSubs:function(){a.notify()},handleChangeWrapper:r,isSubscribed:function(){return Boolean(s)},trySubscribe:o,tryUnsubscribe:function(){s&&(s(),s=void 0,a.clear(),a=n)},getListeners:function(){return a}};return c}},11976:(e,t,s)=>{"use strict";s.d(t,{CO:()=>c,MB:()=>l,mh:()=>p});var i=s(21453),n=s(27723),a=s(31121),r=s(46755),o=s(33995);const __=n.__,c=()=>e=>(e({type:r.LK9}),i.Ay.fetchModules().then(t=>(e({type:r.ooH,modules:t}),t)).catch(t=>{e({type:r.spT,error:t})})),l=(e,t=!1)=>(s,c)=>(s({type:r.EqR,module:e}),s((0,a.fj)("module-toggle")),s((0,a.Fc)("is-info",(0,n.sprintf)(/* translators: %s: a feature name, such as "Image CDN". */
__("Activating %s…","jetpack"),(0,o.f_)(c(),e).name),{id:"module-toggle"})),i.Ay.activateModule(e).then(()=>{s({type:r.s2d,module:e,success:!0}),s((0,a.fj)("module-toggle")),s((0,a.Fc)("is-success",(0,n.sprintf)(/* translators: %s: a feature name, such as "Image CDN". */
__("%s has been activated.","jetpack"),(0,o.f_)(c(),e).name),{id:"module-toggle",duration:2e3})),t&&window.location.reload()}).catch(t=>{s({type:r.Fdt,module:e,success:!1,error:t}),s((0,a.fj)("module-toggle")),s((0,a.Fc)("is-error",(0,n.sprintf)(/* translators: %1$s: feature name, such as "Image CDN". - %2$s: error message. */
__("%1$s failed to activate. %2$s","jetpack"),(0,o.f_)(c(),e).name,t),{id:"module-toggle"}))}));function p(e){["jetpack_testimonial","jetpack_portfolio"].some(t=>t in e)&&window.location.reload()}},11987:(e,t,s)=>{"use strict";s.d(t,{Wy:()=>l});var i=s(56427),n=s(13022),a=(s(36220),s(95209)),r=s(10790);const o=({className:e,size:t=24,viewBox:s="0 0 24 24",opacity:o=1,color:c="#2C3338",children:l})=>{const p={className:(0,n.A)(a.A.iconWrapper,e),width:t,height:t,viewBox:s,opacity:o,fill:void 0};return c&&(p.fill=c),(0,r.jsx)(i.SVG,{...p,fillRule:"evenodd",clipRule:"evenodd",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)(i.G,{opacity:o,children:l})})},c={...{"anti-spam":({opacity:e=1,size:t,color:s})=>(0,r.jsxs)(o,{size:t,opacity:e,color:s,children:[(0,r.jsx)(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"}),(0,r.jsx)(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"}),(0,r.jsx)(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"}),(0,r.jsx)(i.Path,{d:"M4.1,12.5c0,0.6-0.3,1-0.9,1s-0.8-0.3-0.8-0.8c0-0.6,0.4-1,0.9-1S4.1,12.1,4.1,12.5z"})]}),backup:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{d:"M2.1,5.8c0-0.1,0-0.1,0-0.2c0-0.2,0.1-0.5,0.1-0.7c0.1-0.4,0.4-0.6,0.7-0.8l8.3-2.9c0.1-0.1,0.3-0.1,0.4-0.1l0.5,0.1 l8.3,2.9c0.3,0.2,0.5,0.4,0.7,0.7c0.2,0.2,0.2,0.4,0.2,0.7c0,0.1,0,0.1,0,0.2v0.1c-0.1,0.5-0.2,0.9-0.3,1.4 c-0.2,0.4-0.3,1.2-0.7,2.2c-0.3,1-0.7,2.1-1.1,3.1c-0.5,1-1,2.1-1.6,3.3s-1.4,2.3-2.2,3.5c-0.9,1.1-1.8,2.2-2.8,3.1 c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4c-1.2-1.1-2.4-2.4-3.5-4c-1-1.6-1.9-3-2.5-4.3c-0.6-1.3-1.1-2.7-1.6-4 C2.8,8.7,2.5,7.6,2.3,7C2.3,6.5,2.1,6.1,2.1,5.8z M2.9,5.9c0,0.2,0.1,0.4,0.1,0.8C3.1,7,3.2,7.5,3.5,8.2C3.7,9,3.9,9.7,4.2,10.6 c0.3,0.7,0.7,1.7,1.1,2.7c0.4,1,1,2,1.5,2.9c0.5,1,1.2,1.9,1.9,2.9c0.8,1,1.6,1.9,2.4,2.6c0.2,0.2,0.4,0.2,0.5,0.2 c0.2,0,0.4-0.1,0.5-0.2c1.2-1,2.2-2.3,3.2-3.8c1-1.5,1.8-2.8,2.3-4c0.6-1.3,1.1-2.5,1.5-3.9c0.4-1.3,0.7-2.2,0.9-2.8 c0.1-0.5,0.2-1,0.3-1.3c0-0.1,0-0.1,0-0.1c0-0.2,0-0.3-0.1-0.4C20.3,5.2,20.2,5.1,20,5L12,2.1c0,0-0.1,0-0.2,0s-0.1,0-0.1,0h-0.2 l-8,2.8C3.2,5,3.1,5.2,3,5.3C2.9,5.5,2.9,5.6,2.9,5.8C2.9,5.8,2.9,5.8,2.9,5.9z M5.9,6.7h3l2.8,7l2.8-7h3c-0.1,0.1-0.2,0.5-0.3,0.8 C17,7.8,17,8.2,16.8,8.4c-0.1,0.3-0.2,0.5-0.4,0.8c0,0.1-0.1,0.1-0.1,0.1s-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.1,0 c-0.1,0-0.2,0.1-0.2,0.2c0,0-0.1,0.1-0.1,0.1s-0.1,0.1-0.1,0.1c0,0,0,0.1-0.1,0.2c0,0.1-0.1,0.1-0.1,0.1l-0.4,1.1 c-1.3,3.3-2.1,5.2-2.3,5.8h-2.2l-1-2.4c-0.1-0.3-0.3-0.8-0.5-1.3c-0.1-0.3-0.3-0.8-0.5-1.3L8,10.8c-0.1-0.1-0.1-0.2-0.1-0.4 C7.8,10.2,7.7,10,7.7,9.8C7.6,9.7,7.5,9.5,7.4,9.4C7.3,9.3,7.3,9.3,7.3,9.3c-0.1,0-0.2,0-0.2,0s-0.1,0-0.1,0 C6.6,8.5,6.3,7.6,5.9,6.7z"})}),boost:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.19505 16.2545C4.47368 16.561 4.94802 16.5836 5.25451 16.3049L10.2595 11.7549L14.2842 15.2765L19 10.5607V13.75H20.5V9.5V8.75239V8.7476V8H19.7529H19.7471H19H14.75V9.5H17.9393L14.2158 13.2235L10.2405 9.74507L4.2455 15.195C3.93901 15.4737 3.91642 15.948 4.19505 16.2545Z"})}),crm:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{d:"M15.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm-2.25 6v-2a2.75 2.75 0 0 0-2.75-2.75h-4A2.75 2.75 0 0 0 3.75 15v2h1.5v-2c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v2h1.5Zm7-2v2h-1.5v-2c0-.69-.56-1.25-1.25-1.25H15v-1.5h2.5A2.75 2.75 0 0 1 20.25 15ZM9.5 8.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm1.5 0a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z"})}),extras:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{d:"M18.5 5.5V8H20V5.5h2.5V4H20V1.5h-1.5V4H16v1.5h2.5ZM12 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6h-1.5v6a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h6V4Z"})}),protect:({opacity:e=1,size:t,className:s,color:n})=>(0,r.jsxs)(o,{className:s,size:t,opacity:e,color:n,children:[(0,r.jsx)(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"}),(0,r.jsx)(i.Path,{d:"M15.5291 10.0315L11.1818 14.358L8.47095 11.66L9.52907 10.5968L11.1818 12.2417L14.4709 8.96826L15.5291 10.0315Z"})]}),scan:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{d:"m12 3.176 6.75 3.068v4.574c0 3.9-2.504 7.59-6.035 8.755a2.283 2.283 0 0 1-1.43 0c-3.53-1.164-6.035-4.856-6.035-8.755V6.244L12 3.176ZM6.75 7.21v3.608c0 3.313 2.145 6.388 5.005 7.33.159.053.331.053.49 0 2.86-.942 5.005-4.017 5.005-7.33V7.21L12 4.824 6.75 7.21Z"})}),search:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{d:"M17.5 11.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm1.5 0a5.5 5.5 0 0 1-9.142 4.121l-3.364 2.943-.988-1.128 3.373-2.952A5.5 5.5 0 1 1 19 11.5Z"})}),social:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{d:"M15.5 3.97809V18.0219L7.5 15.5977V20H6V15.1431L3.27498 14.3173C2.22086 13.9979 1.5 13.0262 1.5 11.9248V10.0752C1.5 8.97375 2.22087 8.00207 3.27498 7.68264L15.5 3.97809ZM14 16L7.5 14.0303L7.5 7.96969L14 5.99999V16ZM6 8.42423L6 13.5757L3.70999 12.8818C3.28835 12.754 3 12.3654 3 11.9248V10.0752C3 9.63462 3.28835 9.24595 3.70999 9.11818L6 8.42423ZM17.5 11.75H21.5V10.25H17.5V11.75ZM21.5 16L17.5 15V13.5L21.5 14.5V16ZM17.5 8.5L21.5 7.5V6L17.5 7V8.5Z"})}),star:({size:e,className:t=a.A["star-icon"],color:s})=>(0,r.jsx)(o,{className:t,size:e,color:s,children:(0,r.jsx)(i.Path,{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})}),videopress:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M4.3,6.2c0.8,0,1.6,0.6,1.8,1.4l2.3,7.9c0,0,0,0,0,0l2.7-9.3h1.5h4.2c2.9,0,4.9,1.9,4.9,4.7c0,2.9-2,4.7-5,4.7 h-2h-2.5l-0.5,1.5c-0.4,1.4-1.7,2.3-3.2,2.3c-1.4,0-2.7-0.9-3.2-2.3L2.5,8.7C2.1,7.4,3,6.2,4.3,6.2z M13,12.8h2.9c1.3,0,2-0.7,2-1.9 c0-1.2-0.8-1.8-2-1.8h-1.7L13,12.8z"})}),jetpack:({size:e,className:t=a.A.jetpack,color:s})=>(0,r.jsxs)(o,{className:t,size:e,color:s,viewBox:"0 0 32 32",children:[(0,r.jsx)(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"}),(0,r.jsx)(i.Polygon,{fill:"#fff",points:"15,19 7,19 15,3"}),(0,r.jsx)(i.Polygon,{fill:"#fff",points:"17,29 17,13 25,13"})]}),share:({size:e=16,className:t,color:s})=>(0,r.jsx)(o,{className:t,size:e,color:s,viewBox:"0 0 16 16",children:(0,r.jsx)(i.Path,{fill:"#161722",fillRule:"evenodd",d:"M8.3 4.66C3.85 5.308.727 9.75.034 13.69l-.02.117c-.137.842.809 1.232 1.446.68 2.013-1.745 3.648-2.475 5.318-2.719a10.482 10.482 0 011.524-.103v2.792c0 .694.82 1.041 1.3.55l6.176-6.307a.79.79 0 00.012-1.088L9.614 1.004C9.14.496 8.301.84 8.301 1.542v3.117zm1.525-1.175v1.85a.773.773 0 01-.654.77l-.655.096c-2.133.311-3.987 1.732-5.295 3.672-.472.7-.854 1.44-1.143 2.18a12.32 12.32 0 011.675-.972c1.58-.75 3.048-.972 4.548-.972h.762a.77.77 0 01.762.779v1.69l4.347-4.44-4.347-4.653z",clipRule:"evenodd"})}),ai:({size:e=24,color:t="#069e08"})=>(0,r.jsxs)(o,{color:t,size:e,viewBox:"0 0 32 32",children:[(0,r.jsx)(i.Path,{className:"spark-first",d:"M9.33301 5.33325L10.4644 8.20188L13.333 9.33325L10.4644 10.4646L9.33301 13.3333L8.20164 10.4646L5.33301 9.33325L8.20164 8.20188L9.33301 5.33325Z"}),(0,r.jsx)(i.Path,{className:"spark-second",d:"M21.3333 5.33333L22.8418 9.15817L26.6667 10.6667L22.8418 12.1752L21.3333 16L19.8248 12.1752L16 10.6667L19.8248 9.15817L21.3333 5.33333Z"}),(0,r.jsx)(i.Path,{className:"spark-third",d:"M14.6667 13.3333L16.5523 18.1144L21.3333 20L16.5523 21.8856L14.6667 26.6667L12.781 21.8856L8 20L12.781 18.1144L14.6667 13.3333Z"})]}),stats:({opacity:e=1,size:t,color:s})=>(0,r.jsx)(o,{size:t,opacity:e,color:s,children:(0,r.jsx)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 5H12.75V20H11.25V5ZM6 10H7.5V20H6V10ZM18 14H16.5V20H18V14Z"})})}};function l(e){return c[e]?c[e]:null}},12101:(e,t,s)=>{"use strict";s.d(t,{f:()=>n});var i=s(10790);const n=()=>(0,i.jsxs)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"271pt",height:"270pt",viewBox:"0 0 271 270",children:[(0,i.jsx)("rect",{width:"100%",height:"100%",fill:"#ccd5de"}),(0,i.jsxs)("g",{transform:"translate(0,270) scale(0.1,-0.1)",fill:"#647785",stroke:"none",children:[(0,i.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,i.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"})]})]})},12221:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(27723),n=s(13022),a=s(59336),r=(s(56467),s(10790));const __=i.__,o=({score:e,isLoading:t,showPrevScores:s,active:i,prevScore:o=0,scoreBarType:c,noBoostScoreTooltip:l})=>{if(!i)return null;const p=o/e*100,d=__("Desktop score","jetpack"),u=__("Mobile score","jetpack");return(0,r.jsxs)("div",{className:(0,n.A)("jb-score-bar",`jb-score-bar--${c}`),children:[(0,r.jsxs)("div",{className:"jb-score-bar__label",children:["desktop"===c?(0,r.jsx)(a.A,{icon:"computer",size:24}):(0,r.jsx)(a.A,{icon:"phone",size:24}),(0,r.jsx)("div",{children:"desktop"===c?d:u})]}),(0,r.jsx)("div",{className:"jb-score-bar__bounds",children:(0,r.jsxs)("div",{className:(0,n.A)("jb-score-bar__filler",t&&!e?"fill-loading":e>70?"fill-good":e>50?"fill-mediocre":"fill-bad"),style:{width:`${e}%`},children:[t?(0,r.jsx)("div",{className:"jb-score-bar__loading",children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 128 128",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("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"}),(0,r.jsx)("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"})]})})}):(0,r.jsx)("div",{className:"jb-score-bar__score",children:e}),s&&!!o&&o{"use strict";s.d(t,{E:()=>p});var i=s(69140),n=s(27723),a=s(51609),r=s(74209),o=s(11236),c=s(33232),l=s(10790);const __=n.__,p=({comments:e,plugins:t,posts:s,onClosePopup:n})=>{const p=(0,a.useRef)(!1);(0,a.useEffect)(()=>{p.current||(o.A.tracks.recordEvent("jetpack_wpa_aag_backup_bar_chart_view",{comments:e,plugins:t,posts:s}),p.current=!0)},[]);const d=(0,a.useMemo)(()=>[{count:s,label:__("Posts","jetpack"),backgroundColor:"#00BA37"},{count:t,label:__("Plugins","jetpack"),backgroundColor:"#3895BA"},{count:e,label:__("Comments","jetpack"),backgroundColor:"#E68B28"}],[e,t,s]);return(0,l.jsxs)(r.A,{className:"jp-dash-upgrade-backup",children:[(0,l.jsx)(c.z,{posts:s,comments:e,onClosePopup:n}),(0,l.jsx)(i.A,{items:d})]})}},12347:(e,t,s)=>{"use strict";s.d(t,{G1:()=>i.G1,W4:()=>i.W4,sZ:()=>n.s});var i=s(60155),n=s(54328)},12961:(e,t,s)=>{"use strict";function i(e,t={}){const s={};let i;if("undefined"!=typeof window&&(i=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,s.url=encodeURIComponent(e)}else s.source=encodeURIComponent(e);for(const e in t)s[e]=encodeURIComponent(t[e]);!Object.keys(s).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(s.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),i&&(s.calypso_env=i);return"https://jetpack.com/redirect/?"+Object.keys(s).map(e=>e+"="+s[e]).join("&")}s.d(t,{A:()=>i})},13022:(e,t,s)=>{"use strict";function i(e){var t,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;tn});const n=function(){for(var e,t,s=0,n="",a=arguments.length;s{"use strict";s.d(t,{Ay:()=>a});var i=s(1400),n=s(15030);const a=[function(e){return"function"==typeof e?(0,n.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,n.o6)(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?(0,n.o6)(function(t){return(0,i.A)(e,t)}):void 0}]},13192:(e,t,s)=>{"use strict";s.d(t,{Cc:()=>k,Ee:()=>u,Ev:()=>o,O0:()=>x,OY:()=>d,PU:()=>p,Pf:()=>g,Pr:()=>m,QZ:()=>h,Ri:()=>l,Zc:()=>b,_z:()=>w,eF:()=>c,en:()=>j,j:()=>_,mK:()=>f,rC:()=>v,vy:()=>r,ze:()=>a});var i=s(26556),n=s(46755);const a=(0,i.HY)({requests:(e={},t)=>{switch(t.type){case n.G7U:return Object.assign({},e,{fetchingStatsData:!0});case n.jxF:return Object.assign({},e,{fetchingAkismetData:!0});case n.nzj:return Object.assign({},e,{checkingAkismetKey:!0});case n.uV_:return Object.assign({},e,{fetchingVaultPressData:!0});case n.Cy8:return Object.assign({},e,{fetchingProtectData:!0});case n.U7A:return Object.assign({},e,{fetchingPluginUpdates:!0});case n.XwM:case n._Dw:return Object.assign({},e,{fetchingStatsData:!1});case n.oOv:case n.J2s:return Object.assign({},e,{fetchingAkismetData:!1});case n.Qgu:case n.Zwb:return Object.assign({},e,{checkingAkismetKey:!1});case n.n9Z:case n.wbC:return Object.assign({},e,{fetchingProtectData:!1});case n.N8j:case n.s5M:return Object.assign({},e,{fetchingPluginUpdates:!1});case n.vI6:case n.kcV:return Object.assign({},e,{fetchingVaultPressData:!1,hasLoadedVaultPressData:!0});default:return e}},activeStatsTab:(e="day",t)=>t.type===n.fl0?t.activeStatsTab:e,protectCount:(e="N/A",t)=>t.type===n.wbC?t.protectCount:e,vaultPressData:(e="N/A",t)=>{switch(t.type){case n.kcV:return t.vaultPressData;case n.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===n._Dw?Object.assign({},e,t.statsData):e,akismetData:(e="N/A",t)=>t.type===n.J2s?t.akismetData:e,akismet:(e={validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t)=>t.type===n.Zwb?Object.assign({},e,t.akismet):e,pluginUpdates:(e="N/A",t)=>t.type===n.s5M?t.pluginUpdates:e,backupUndoEvent:(e={isFetching:!1,loaded:!1,event:{}},{type:t,payload:s})=>{switch(t){case n.eb$:return{...e,isFetching:!0,loaded:!1};case n.sKY:{const t=s.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:s.undo_backup_id}}case n.XSi:return{...e,isFetching:!1};default:return e}}});function r(e){return e.jetpack.dashboard.activeStatsTab}function o(e){return!!e.jetpack.dashboard.requests.fetchingStatsData}function c(e){return e.jetpack.dashboard.statsData}function l(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function p(e){return e.jetpack.dashboard.akismetData}function d(e){return!!e.jetpack.dashboard.requests.checkingAkismetKey}function u(e){return e.jetpack.dashboard?.akismet?.validKey??!1}function h(e){return!!e.jetpack.dashboard.requests.fetchingProtectData}function m(e){return e.jetpack.dashboard.protectCount}function g(e){return!!e.jetpack.dashboard.requests.hasLoadedVaultPressData}function j(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function k(e){return e.jetpack.dashboard.vaultPressData}function f(e){return e.jetpack.dashboard.vaultPressData?.data?.security?.notice_count??0}function v(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function x(e){return e.jetpack.pluginsData.items||{}}function b(e){return e.jetpack.dashboard.backupUndoEvent}function _(e){return e.jetpack.dashboard.backupUndoEvent.isFetching}function w(e){return e.jetpack.dashboard.backupUndoEvent.loaded}},13299:(e,t,s)=>{"use strict";s.d(t,{K:()=>i,L:()=>n});const i="jetpack-boost/v1",n=""},13404:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>a,Gh:()=>p,LE:()=>c,Nq:()=>l,Y9:()=>o,ab:()=>r});var i=s(26556),n=s(46755);const a=(0,i.HY)({items:(e={},t)=>t.type===n.BVe?t.siteProducts:e,requests:(e={},t)=>{switch(t.type){case n.lOA:return{...e,isFetching:!0};case n.BVe:case n.EeE:return{...e,isFetching:!1};default:return e}}});function r(e){return!!e.jetpack.siteProducts.requests.isFetching}function o(e){return e.jetpack.siteProducts.items}function c(e,t){return e.jetpack.siteProducts.items?.[t]}function l(e,t){const s=c(e,t),i=s?.introductory_offer?.cost_per_interval||s?.cost;return Math.ceil(i/12*100)/100}function p(e,t){const s=c(e,t),i=s?.introductory_offer?.cost_per_interval;return"year"===s?.introductory_offer?.interval_unit&&1===s?.introductory_offer?.interval_count&&i?Math.ceil(i/s?.cost*100):0}},13513:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var i=s(27723),n=s(13022),a=s(10790);const __=i.__,r=({logoColor:e="#069e08",showText:t=!0,className:s,height:i=32,...r})=>{const o=t?"0 0 118 32":"0 0 32 32";return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:o,className:(0,n.A)("jetpack-logo",s),"aria-labelledby":"jetpack-logo-title",height:i,...r,role:"img",children:[(0,a.jsx)("title",{id:"jetpack-logo-title",children:__("Jetpack Logo","jetpack")}),(0,a.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,a.jsxs)(a.Fragment,{children:[(0,a.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,a.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,a.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,a.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,a.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,a.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,a.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"})]})]})}},14014:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var i=s(13022),n=s(28120),a=s.n(n),r=s(51609),o=s(59044),c=s(30200),l=s(10790);class p extends r.Component{static displayName="ModuleChartBar";static propTypes={isTouch:a().bool,tooltipPosition:a().string,className:a().string,clickHandler:a().func,data:a().object.isRequired,max:a().number,count:a().number};valueBarRef=(0,r.createRef)();state={showPopover:!1};buildSections=()=>{const e=this.props.data.value,t=this.props.max,s=100-(t?Math.ceil(e/t*1e4)/100:0),n=Math.max(1,Math.floor(s)),a=[],r=this.props.data.nestedValue,o={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===s&&!this.props.active};let c,p,d;const u={height:n+"%"};a.push((0,l.jsx)("div",{className:(0,i.A)(o),style:u},"spacer"));const h={top:n+"%"};return r&&(p=e?Math.ceil(r/e*1e4)/100:0,d={height:p+"%"},c=(0,l.jsx)("div",{className:"dops-chart__bar-section-inner",style:d},"nestedValue")),a.push((0,l.jsx)("div",{ref:this.valueBarRef,className:"dops-chart__bar-section is-bar",style:h,children:c},"value")),a.push((0,l.jsx)("div",{className:"dops-chart__bar-label",children:this.props.label},"label")),a};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 s=["module-content-list-item"];let i;return e.icon&&(i=(0,l.jsx)(o.A,{icon:e.icon,size:18})),s.push(e.className),(0,l.jsx)("li",{className:s.join(" "),children:(0,l.jsxs)("span",{className:"dops-wrapper",children:[(0,l.jsx)("span",{className:"value",children:e.value}),(0,l.jsxs)("span",{className:"label",children:[i,e.label]})]})},t)});return(0,l.jsx)(c.A,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.valueBarRef.current,isVisible:this.state.showPopover,position:this.props.tooltipPosition,children:(0,l.jsx)("ul",{children:t})})};render(){const e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);const s={width:1/e*100+"%"};return(0,l.jsxs)("div",{role:"button",tabIndex:0,onKeyUp:this.keyHandler,onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,"aria-label":this.props.data.tooltipData[0].label+" — "+this.props.data.value+".",className:(0,i.A)(t),style:s,children:[this.buildSections(),(0,l.jsx)("div",{className:"dops-chart__bar-marker is-hundred"}),(0,l.jsx)("div",{className:"dops-chart__bar-marker is-fifty"}),(0,l.jsx)("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip()]})}}},14043:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});var i=s(12961),n=s(27723),a=s(51609),r=s(84952),o=s(81715),c=s(87847),l=s(46628),p=s(76563),d=s(27844),u=s(79779),h=s(50534),m=s(11236),g=s(26571),j=s(31238),k=s(72625),f=s(10790);const __=n.__,_x=n._x;class v extends a.Component{regeneratePostByEmailAddress=e=>{m.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"),s=this.props.isUnavailableInOfflineMode("post-by-email")||!this.props.isLinked,n=this.address();return(0,f.jsx)(u.A,{...this.props,module:"post-by-email",hideButton:!0,feature:k.X8r,children:(0,f.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,i.A)("jetpack-support-post-by-email")},children:[(0,f.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,f.jsx)(d.j,{slug:"post-by-email",compact:!0,disabled:s,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow,children:(0,f.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.module("post-by-email").description})}):(0,f.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.module("post-by-email").description}),(0,f.jsxs)(l.dV,{children:[(0,f.jsxs)(l.lR,{children:[(0,f.jsx)(l.kK,{children:__("Send your new posts to this email address:","jetpack")}),(0,f.jsx)(c.A,{value:n,disabled:!t||s,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack"),rna:!0})]}),(0,f.jsx)(o.A,{rna:!0,compact:!0,disabled:!t||s,onClick:this.regeneratePostByEmailAddress,children:n?__("Regenerate address","jetpack"):__("Create address","jetpack",0)})]})]})})}}const x=(0,r.Ng)(e=>({module:t=>(0,g.f_)(e,t),isModuleFound:t=>(0,j.jQ)(e,t)}))((0,p.t)(v))},14309:(e,t,s)=>{"use strict";function i(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))}s.d(t,{g:()=>i})},14372:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(56427),n=s(13022),a=s(53245),r=s(10790);const o=({selected:e,className:t,disabled:s,help:o,label:c,hideLabelFromVision:l,options:p,onChange:d})=>(0,r.jsx)(i.RadioControl,{selected:e,className:(0,n.A)(a.A.radio,t),disabled:s,help:o,label:c,hideLabelFromVision:l,options:p,onChange:d})},14505:(e,t,s)=>{"use strict";s.d(t,{Mb:()=>c,Pb:()=>d,h_:()=>h,k0:()=>u,ks:()=>o,mo:()=>l,u6:()=>p,xc:()=>m});var i=s(21453),n=s(27723),a=s(31121),r=s(46755);const __=n.__,o=()=>e=>i.Ay.fetchSiteConnectionStatus().then(t=>{e({type:r.mX7,siteConnected:t})}),c=()=>e=>(e((0,a.Fc)("is-info",__("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),i.Ay.fetchSiteConnectionTest().then(t=>{e({type:r.acX,connectionTest:t}),e((0,a.fj)("test-jetpack-connection")),e((0,a.Fc)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))}).catch(t=>{e((0,a.fj)("test-jetpack-connection")),e((0,a.Fc)("is-error",(0,n.sprintf)(/* translators: %s: an error message. */
__("There was an error testing Jetpack. Error: %s","jetpack"),t.message),{id:"test-jetpack-connection"}))})),l=()=>e=>(e({type:r.Adt}),i.Ay.fetchConnectUrl().then(t=>{e({type:r.gbL,connectUrl:t})}).catch(t=>{e({type:r.bhx,error:t})})),p=()=>e=>(e({type:r.LgT}),i.Ay.fetchUserConnectionData().then(t=>{e({type:r.RRv,userConnectionData:t})}).catch(t=>{e({type:r.S68,error:t})})),d=()=>e=>(e({type:r.SOl}),e((0,a.Fc)("is-info",__("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),i.Ay.unlinkUser().then(t=>{e({type:r.c30,userUnlinked:t}),e(l()),e((0,a.fj)("unlink-user")),e((0,a.Fc)("is-success",__("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))}).catch(t=>{e({type:r.ZC3,error:t}),e((0,a.fj)("unlink-user")),e((0,a.Fc)("is-error",(0,n.sprintf)(/* translators: %s: the error. */
__("Error unlinking from WordPress.com. Error: %s","jetpack"),t),{id:"unlink-user"}))})),u=(e=null,t=null)=>s=>{s({type:r.rL6,featureLabel:e,from:t})},h=()=>e=>{e({type:r.xqC})},m=()=>e=>(e({type:r.zqp}),i.Ay.setHasSeenWCConnectionModal())},14897:(e,t,s)=>{"use strict";s.d(t,{T:()=>a});var i=s(13022),n=s(10790);const a=e=>{const{header:t,children:s,illustrationPath:a,compact:r,className:o}=e;return(0,n.jsxs)("div",{className:(0,i.A)("jp-recommendations-sidebar-card",o,{"with-illustration":!!a}),children:[a?(0,n.jsx)("div",{className:"jp-recommendations-sidebar-card__illustration-container",children:(0,n.jsx)("div",{className:"jp-recommendations-sidebar-card__illustration",children:(0,n.jsx)("img",{src:a,alt:""})})}):t,(0,n.jsx)("div",{className:(0,i.A)("jp-recommendations-sidebar-card__content",{"is-compact":r}),children:s})]})}},14918:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(11236),c=s(19950),l=s(10790);class p extends a.PureComponent{static propTypes={source:n().string.isRequired,target:n().string.isRequired,feature:n().string,upgradeUrl:n().string.isRequired};trackClick=()=>{const{target:e,feature:t}=this.props;if(e){const s=t?{feature:t}:{};o.A.tracks.recordJetpackClick({type:"upgrade-link",target:e,...s})}};render(){return(0,l.jsx)("a",{href:this.props.upgradeUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.trackClick,children:this.props.children})}}const d=(0,r.Ng)((e,{source:t})=>({upgradeUrl:(0,c.Q4)(e,t)}))(p)},15030:(e,t,s)=>{"use strict";function i(e){return function(t,s){var i=e(t,s);function n(){return i}return n.dependsOnOwnProps=!1,n}}function n(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function a(e,t){return function(t,s){s.displayName;var i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,s){i.mapToProps=e,i.dependsOnOwnProps=n(e);var a=i(t,s);return"function"==typeof a&&(i.mapToProps=a,i.dependsOnOwnProps=n(a),a=i(t,s)),a},i}}s.d(t,{Qb:()=>a,o6:()=>i})},15163:(e,t,s)=>{"use strict";s.d(t,{A:()=>k});var i=s(27723),n=s(51609),a=s(84952),r=s(81715),o=s(76563),c=s(79779),l=s(50534),p=s(11236),d=s(72625),u=s(1194),h=s(19950),m=s(26571),g=s(30054),j=s(10790);const __=i.__;const k=(0,o.t)((0,a.Ng)((e,t)=>({haveNewsletterPlans:t.getOptionValue("newsletter_has_active_plan"),isSubscriptionsActive:t.getOptionValue(g.O),setupPaymentPlansUrl:(0,h.r9)(e,"monetize/payments"),subscriptionsModule:(0,m.f_)(e,g.O),isOffline:(0,u.hN)(e),siteHasConnectedUser:(0,u.BG)(e)}))(function(e){const{haveNewsletterPlans:t,isSubscriptionsActive:s,setupPaymentPlansUrl:i,subscriptionsModule:a,siteHasConnectedUser:o}=e,u=!s,h=(0,n.useCallback)(()=>{p.A.tracks.recordJetpackClick("newsletter_settings_setup_payment_plans_button_click")},[]);let m=__("Add Plans","jetpack");return t&&(m=__("Manage Plans","jetpack")),(0,j.jsx)(c.A,{...e,header:__("Paid Newsletter","jetpack"),hideButton:!0,feature:d.KCE,isDisabled:!o,children:(0,j.jsxs)(l.A,{disableInOfflineMode:!0,disableInSiteConnectionMode:!o,module:a,children:[(0,j.jsx)("p",{className:"jp-settings-card__email-settings",children:__("Earn money through your Newsletter. Reward your most loyal subscribers with exclusive content or add a paywall to monetize content.","jetpack")}),(0,j.jsx)(r.A,{href:u?void 0:i,onClick:h,disabled:!o||u,primary:!0,rna:!0,children:m})]})})}))},15203:(e,t,s)=>{"use strict";s.d(t,{E:()=>u});var i=s(12961),n=s(27723),a=s(51609),r=s(76563),o=s(27844),c=s(79779),l=s(50534),p=s(10790);const __=n.__,_x=n._x,d=class extends a.Component{render(){const e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect");return(0,p.jsx)(c.A,{...this.props,module:"protect",header:_x("Brute force protection","Settings header","jetpack"),hideButton:!0,children:(0,p.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,i.A)("jetpack-support-protect")},children:(0,p.jsx)(o.j,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow,children:(0,p.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.getModule("protect").description})})})})}},u=(0,r.t)(d)},15255:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});var i=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(1194),c=s(3545);class l extends a.Component{static propTypes={isFetchingRewindStatus:n().bool,isOfflineMode:n().bool};static defaultProps={isFetchingRewindStatus:!1,isOfflineMode:!1};UNSAFE_componentWillMount(){this.props.isFetchingRewindStatus||this.props.isOfflineMode||this.props.fetchRewind()}render(){return null}}const p=(0,r.Ng)(e=>({isFetchingRewindStatus:(0,c.wp)(e),isOfflineMode:(0,o.hN)(e)}),e=>({fetchRewind:()=>e((0,c.mF)())}))(l)},15294:(e,t,s)=>{"use strict";s.d(t,{A:()=>j});var i=s(27723),n=s(51609),a=s(84952),r=s(76563),o=s(79779),c=s(50534),l=s(72625),p=s(1194),d=s(26571),u=s(52101),h=s(30054),m=s(10790);const __=i.__,g="subscription_options",j=(0,r.t)((0,a.Ng)((e,t)=>({isSubscriptionsActive:t.getOptionValue(h.O),subscriptionsModule:(0,d.f_)(e,h.O),isSavingAnyOption:t.isSavingAnyOption,moduleName:t.moduleName,onOptionChange:t.onOptionChange,welcomeMessage:t.getOptionValue(g)?.welcome||"",unavailableInOfflineMode:(0,p.Em)(e,h.O),siteHasConnectedUser:(0,p.BG)(e)}))(e=>{const{isSubscriptionsActive:t,isSavingAnyOption:s,subscriptionsModule:i,onOptionChange:a,welcomeMessage:r,unavailableInOfflineMode:p,siteHasConnectedUser:d}=e,j=(0,n.useCallback)(e=>{const t={target:{name:e.target.name,value:{welcome:e.target.value}}};a(t)},[a]),k=s([g]),f=!d||!t||p||k;return(0,m.jsx)(o.A,{...e,header:__("Welcome email message","jetpack"),feature:l.KCE,module:h.O,saveDisabled:k,isDisabled:f,children:(0,m.jsxs)(c.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!d,module:i,children:[(0,m.jsx)("p",{className:"jp-settings-card__email-settings",children:__("Sent to your email subscribers when they subscribe to your newsletter.","jetpack")}),(0,m.jsx)(u.A,{"aria-label":__("Welcome email message","jetpack"),disabled:f,name:g,value:r,onChange:j}),(0,m.jsx)("p",{className:"jp-form-setting-explanation",children:__("You can use plain text or HTML tags in this textarea for formatting.","jetpack")})]})})}))},15762:(e,t,s)=>{"use strict";var i=s(53761);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,s,n,a,r){if(r!==i){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 s={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:a,resetWarningCache:n};return s.PropTypes=s,s}},15861:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});var i=s(97999),n=s(86087),a=s(27723),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(38936),d=s(15937),u=s(78723),h=s(59044),m=s(1194),g=s(19950),j=s(10790);const __=a.__,_x=a._x;class k extends c.Component{siteConnection(){let e="";return this.props.isOfflineMode?e=(0,j.jsxs)("div",{className:"jp-connection-settings__info",children:[this.props.siteIcon?(0,j.jsx)("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):(0,j.jsx)(h.A,{icon:"globe",size:64}),(0,j.jsx)("div",{className:"jp-connection-settings__text",children:__("Your site is in Offline Mode, so it cannot be connected to WordPress.com.","jetpack")})]}):!0===this.props.siteConnectionStatus&&(e=(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"jp-connection-settings__info",children:[this.props.siteIcon?(0,j.jsx)("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):(0,j.jsx)(h.A,{icon:"globe",size:64}),(0,j.jsxs)("div",{className:"jp-connection-settings__text",children:[this.props.isConnectionOwner&&(0,j.jsx)("span",{className:"jp-connection-settings__is-owner",children:__("You are the Jetpack owner.","jetpack")}),!this.props.isConnectionOwner&&this.props.isConnectionOwnerName&&(0,j.jsx)("span",{className:"jp-connection-settings__is-owner",children:(0,a.sprintf)(/* translators: %s: the WordPress user login name. */
__("The connection owner is %s.","jetpack"),this.props.isConnectionOwnerName)}),this.props.userCanDisconnectSite?(0,j.jsx)("div",{className:"jp-connection-settings__actions",children:(0,j.jsx)(p.A,{asLink:!0,autoOpenInDisconnectRoute:!0})}):(0,j.jsx)("div",{className:"jp-connection-settings__actions",children:(0,j.jsx)("span",{children:__("This site is connected to WordPress.com.","jetpack")})})]})]})})),e}userConnection(){const e=!((0,i.isWoASite)()&&this.props.isConnectionOwner),t=(0,j.jsx)(p.A,{asBanner:!0,connectUser:!0,from:"connection-settings"});let s="";return this.props.isOfflineMode?(0,j.jsxs)("div",{className:"jp-connection-settings__info",children:[this.props.userGravatar?(0,j.jsx)("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userGravatar}):(0,j.jsx)(h.A,{icon:"user",size:64}),(0,j.jsx)("div",{className:"jp-connection-settings__text",children:__("The site is in Offline Mode, so you cannot connect to WordPress.com.","jetpack")})]}):(s=this.props.isLinked?this.props.isFetchingUserData?__("Loading…","jetpack"):this.props.wpComConnectedUser?.email?(0,j.jsxs)("div",{children:[(0,j.jsxs)("div",{className:"jp-connection-settings__info",children:[(0,j.jsx)("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.wpComConnectedUser.avatar}),(0,j.jsxs)("div",{className:"jp-connection-settings__text",children:[(0,n.createInterpolateElement)((0,a.sprintf)(/* translators: %s: the WordPress user login name. */
__("Connected as %s","jetpack"),this.props.wpComConnectedUser.login),{span:(0,j.jsx)("span",{className:"jp-connection-settings__username"})}),(0,j.jsx)("div",{className:"jp-connection-settings__email",children:this.props.wpComConnectedUser.email})]})]}),e&&(0,j.jsx)("div",{className:"jp-connection-settings__actions",children:t})]}):(0,j.jsx)("div",{children:(0,j.jsxs)("div",{className:"jp-connection-settings__info",children:[(0,j.jsx)(h.A,{icon:"user",size:64}),(0,j.jsx)("div",{className:"jp-connection-settings__text",children:__("Failed to fetch connection data, please try again later.","jetpack")})]})}):(0,j.jsx)("div",{className:"jp-connection-settings__info",children:t}),s)}render(){return(0,j.jsxs)("div",{children:[(0,j.jsx)(u.A,{}),(0,j.jsxs)("div",{className:"jp-at-a-glance__item-grid",children:[(0,j.jsx)("div",{className:"jp-at-a-glance__left",children:(0,j.jsx)("div",{className:"jp-dash-item__interior",children:(0,j.jsx)(d.A,{className:"jp-connection-type",label:_x("Site connection","Dashboard widget header","jetpack"),children:this.siteConnection()})})}),this.props.userCanConnectAccount&&(0,j.jsx)("div",{className:"jp-at-a-glance__right",children:(0,j.jsx)("div",{className:"jp-dash-item__interior",children:(0,j.jsx)(d.A,{className:"jp-connection-type",label:_x("Account connection","Dashboard widget header","jetpack"),children:this.userConnection()})})})]})]})}}k.propTypes={siteConnectionStatus:o().any.isRequired,isOfflineMode:o().bool.isRequired,userCanDisconnectSite:o().bool.isRequired,isConnectionOwner:o().bool.isRequired,isLinked:o().bool.isRequired,userGravatar:o().any.isRequired,username:o().any.isRequired};const f=(0,l.Ng)(e=>({siteConnectionStatus:(0,m.i$)(e),isOfflineMode:(0,m.hN)(e),userCanDisconnectSite:(0,g.xQ)(e),userCanConnectAccount:(0,g.Lv)(e),userGravatar:(0,g.Qz)(e),username:(0,g.TO)(e),isConnectionOwner:(0,m.uQ)(e),isConnectionOwnerName:(0,m.ph)(e),isLinked:(0,m._U)(e),siteIcon:(0,g.ZE)(e),isFetchingUserData:(0,m.eR)(e),wpComConnectedUser:(0,m.vn)(e)}))(k)},15909:()=>{},15937:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});var i=s(12961),n=s(27723),a=s(13022),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(81715),d=s(74209),u=s(76563),h=s(27844),m=s(4891),g=s(39264),j=s(16845),k=s(11236),f=s(5192),v=s(1194),x=s(19950),b=s(26571),_=s(10790);const __=n.__,_x=n._x;class w extends c.Component{static propTypes={label:o().string,status:o().string,statusText:o().string,disabled:o().bool,module:o().string,pro:o().bool,isModule:o().bool,support:o().object,overrideContent:o().element,noToggle:o().bool};static defaultProps={label:"",module:"",pro:!1,isModule:!0,support:{text:"",link:""},noToggle:!1};toggleModule=()=>{const{updateOptions:e,module:t,getOptionValue:s}=this.props;e({[t]:!s(t)})};trackPaidBtnClick=()=>{k.A.tracks.recordJetpackClick({target:"paid-button",feature:this.props.module,page:"aag"})};render(){let e,t,s="";const n=(0,a.A)(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":"");return""!==this.props.module&&(t=["monitor","protect","photon","vaultpress","scan","backups","akismet","search","videopress"].includes(this.props.module)&&this.props.isOfflineMode||this.props.noToggle||"manage"===this.props.module?"":(0,_.jsx)(h.j,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:this.toggleModule,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=(0,_.jsx)("a",{href:this.props.isOfflineMode?this.props.siteAdminUrl+"update-core.php":(0,i.A)("calypso-plugins-manage",{site:this.props.siteRawUrl}),children:(0,_.jsx)(m.A,{showDismiss:!1,status:this.props.status,isCompact:!0,children:_x("Updates needed","Short warning message","jetpack")})})),"is-working"===this.props.status&&(t=(0,_.jsx)("span",{className:"jp-dash-item__active-label",children:__("Active","jetpack")}))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isOfflineMode&&(s=(0,_.jsx)(p.A,{onClick:this.trackPaidBtnClick,compact:!0,href:"#/plans",children:_x("Paid","Short label appearing near a paid feature configuration block.","jetpack")}),this.props.isModule&&(t=(0,_.jsx)(f.A,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),this.props.module&&this.props.getModule&&(e=this.props.getModule(this.props.module)),(0,_.jsxs)("div",{className:n,children:[(0,_.jsx)(g.A,{label:this.props.label,cardBadge:s,children:this.props.userCanToggle?t:""}),this.props.overrideContent?this.props.overrideContent:(0,_.jsx)(d.A,{className:"jp-dash-item__card",href:this.props.href,children:(0,_.jsxs)("div",{className:"jp-dash-item__content",children:[this.props.support.text&&(0,_.jsx)(j.A,{module:e,...this.props.support}),this.props.children]})})]})}}const y=(0,l.Ng)(e=>({getModule:t=>(0,b.f_)(e,t),isOfflineMode:(0,v.hN)(e),userCanToggle:(0,x.Ir)(e),siteRawUrl:(0,x.XG)(e),siteAdminUrl:(0,x.eu)(e)}))((0,u.t)(w))},15947:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>o,Fj:()=>g,Ny:()=>p,Og:()=>m,PL:()=>l,eu:()=>h,mt:()=>c,sy:()=>u,uH:()=>d});var i=s(66087),n=s(26556),a=s(46755);const r={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},o=(0,n.HY)({items:(e={},t)=>{switch(t.type){case a.X2c:return Object.assign({},e,t.initialState.settings);case a._nc:return Object.assign({},t.settings);case a.Cvy:{const s=Object.keys(t.updatedOption)[0];return Object.assign({},e,{[s]:t.updatedOption[s]})}case a.NY7:return Object.assign({},e,t.updatedOptions);default:return e}},requests:(e=r,t)=>{switch(t.type){case a.Wkx:return Object.assign({},e,{fetchingSettingsList:!0});case a.rNj:case a._nc:return Object.assign({},e,{fetchingSettingsList:!1});case a.YCY:case a.TVv:return(0,i.merge)({},e,{settingsSent:(0,i.mapValues)(t.updatedOptions,()=>!0)});case a.Vfi:case a.Cvy:case a.Quo:case a.NY7:return(0,i.merge)({},e,{settingsSent:(0,i.mapValues)(t.updatedOptions,()=>!1),updatedSettings:(0,i.mapValues)(t.updatedOptions,()=>Boolean(t.success))});default:return e}},unsavedSettingsFlag:(e=!1,t)=>{switch(t.type){case a.iSZ:return!0;case a.zsW:return!1;default:return e}}});function c(e){return e.jetpack.settings.items}function l(e,t,s="",i=!0){if(!i||""===s||e.jetpack.settings.items?.[s])return e.jetpack.settings.items?.[t]}function p(e,t=""){return Array.isArray(t)?Object.entries(e.jetpack.settings.requests.settingsSent).some(([e,s])=>s&&t.includes(e)):e.jetpack.settings.requests.settingsSent[t]}function d(e,t=""){return e.jetpack.settings.requests.updatedSettings[t]}function u(e,t){return!!e.jetpack.settings.items?.[t]}function h(e){return e.jetpack.settings?.unsavedSettingsFlag??!1}function m(e){return e.jetpack.settings.items?.dismiss_empty_stats_card??!1}function g(e){return e.jetpack.settings.items?.dismiss_dash_backup_getting_started??!1}},16788:(e,t,s)=>{"use strict";s.d(t,{h:()=>n});var i=s(10790);const n=(0,i.jsx)("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("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"})})},16845:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});var i=s(56427),n=s(27723),a=s(28120),r=s.n(a),o=s(51609),c=s(76751),l=s(11236),p=s(10790);const __=n.__;class d extends o.Component{static propTypes={module:r().object,text:r().string,link:r().string,privacyLink:r().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(){l.A.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}trackLearnMoreClick(){l.A.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}trackPrivacyInfoClick(){l.A.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}render(){const{text:e,link:t}=this.props;let{privacyLink:s}=this.props;return!s&&t&&(s=t+"#privacy"),(0,p.jsx)("div",{className:"jp-support-info",children:(0,p.jsxs)(c.A,{position:"left",onClick:this.trackInfoClick,screenReaderText:__("Learn more","jetpack"),children:[e+" ",t&&(0,p.jsx)("div",{className:"jp-support-info__learn-more",children:(0,p.jsx)(i.ExternalLink,{href:t,onClick:this.trackLearnMoreClick,rel:"noopener noreferrer",children:__("Learn more","jetpack")})}),(0,p.jsx)("span",{className:"jp-support-info__privacy",children:(0,p.jsx)(i.ExternalLink,{href:s,onClick:this.trackPrivacyInfoClick,rel:"noopener noreferrer",children:__("Privacy information","jetpack")})})]})})}}},17001:(e,t,s)=>{"use strict";function i(e){return!!e&&e instanceof Object&&!(e instanceof Array)}s.d(t,{O:()=>i})},17036:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>u});var i=s(51609),n=s(65709),a=s(10790);const r={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},o={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},p={},d=(e,t,s)=>{const i={...r,...o,...c,...l};for(const t in i)e.style.setProperty(t,i[t]);s&&e.classList.add(n.A.global),t&&(p[t]={provided:!0,root:e})},u=({children:e=null,targetDom:t,id:s,withGlobalStyles:n=!0})=>{const r=(0,i.useRef)(),o=p?.[s]?.provided;return(0,i.useLayoutEffect)(()=>{if(!o)return t?d(t,s,n):void(r?.current&&d(r.current,s,n))},[t,r,o,s,n]),t?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsx)("div",{ref:r,children:e})}},17090:(e,t,s)=>{"use strict";s.d(t,{e:()=>o});var i=s(28120),n=s.n(i),a=s(16788),r=s(10790);const o=({text:e})=>(0,r.jsxs)("div",{className:"jetpack-money-back-guarantee",children:[(0,r.jsx)("div",{className:"jetpack-money-back-guarantee__icon",children:a.h}),(0,r.jsx)("div",{className:"jetpack-money-back-guarantee__text",children:e})]});o.propTypes={text:n().string.isRequired}},17259:(e,t,s)=>{"use strict";s.d(t,{Fj:()=>i.Fj,Ny:()=>i.Ny,Og:()=>i.Og,PL:()=>i.PL,Uc:()=>n.Uc,Xx:()=>n.Xx,eu:()=>i.eu,ic:()=>n.ic,jo:()=>n.jo,mt:()=>i.mt,sy:()=>i.sy,uH:()=>i.uH});var i=s(15947),n=s(18280)},17278:(e,t,s)=>{"use strict";function i(e){return 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},i(e)}s.d(t,{A:()=>i})},17408:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var i=s(28120),n=s.n(i),a=s(51609),r=s(14014),o=s(42899),c=s(10790);class l extends a.Component{static displayName="ModuleChartBarContainer";static propTypes={isTouch:n().bool,data:n().array,yAxisMax:n().number,width:n().number,barClick:n().func};buildBars=e=>{const t=this.props.data.length,s=this.props.chartWidth,i=s/t;let n="bottom right";return this.props.data.map(function(a,o){const l=i*(o+1);return l+230>s&&l+i-230>0&&(n="bottom left"),(0,c.jsx)(r.A,{index:o,isTouch:this.props.isTouch,tooltipPosition:n,className:a.className,clickHandler:this.props.barClick,data:a,max:e,count:t},o)},this)};render(){return(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"dops-chart__bars",children:this.buildBars(this.props.yAxisMax)}),(0,c.jsx)(o.A,{data:this.props.data,labelWidth:42})]})}}},17414:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(86087),n=(0,i.forwardRef)(({icon:e,size:t=24,...s},n)=>(0,i.cloneElement)(e,{width:t,height:t,...s,ref:n}))},17556:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var i=s(28120),n=s.n(i),a=s(51609),r=s(10790);const o=class extends a.PureComponent{static displayName="Count";static propTypes={count:n().number.isRequired};render(){return(0,r.jsx)("span",{className:"dops-count",children:this.numberFormat(this.props.count)})}}},17653:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var i=s(57500),n=s(39384),a=s(27723),r=s(13022),o=s(28120),c=s.n(o),l=s(65265),p=s(10790);const __=a.__,d=e=>{const{apiNonce:t,apiRoot:s,connectionStatus:o,partnerCoupon:c,assetBaseUrl:d,registrationNonce:u,siteRawUrl:h,tracksUserData:m,analytics:g}=e,j=(0,l.H)(c,h,o,m,g),k=(0,r.A)("jetpack-redeem-partner-coupon-pre-connection",{"jetpack-redeem-partner-coupon-pre-connection--connected":!!o.hasConnectedOwner});return(0,p.jsx)("div",{className:k,children:(0,p.jsxs)(n.ConnectScreen,{apiNonce:t,registrationNonce:u,apiRoot:s,images:["/images/connect-right-partner-backup.png"],assetBaseUrl:d,from:"jetpack-partner-coupon",title:(0,a.sprintf)(/* translators: %s: Jetpack partner name. */
__("Welcome to Jetpack %s traveler!","jetpack"),c.partner.name),buttonLabel:(0,a.sprintf)(/* translators: %s: Name of a Jetpack product. */
__("Set up & redeem %s","jetpack"),c.product.title),redirectUri:`admin.php?page=jetpack&partnerCoupon=${c.coupon_code}`,connectionStatus:o,children:[(0,p.jsx)("p",{children:(0,a.sprintf)(/* translators: %s: Name of a Jetpack product. */
__("Redeem your coupon and get started with %s for free the first year!","jetpack"),c.product.title)}),(0,p.jsx)("ul",{children:c.product.features.map((e,t)=>(0,p.jsx)("li",{children:e},t))}),o.hasConnectedOwner&&(0,p.jsx)(i.A,{label:(0,a.sprintf)(/* translators: %s: Name of a Jetpack product. */
__("Redeem %s","jetpack"),c.product.title),onClick:j})]})})};d.propTypes={apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,assetBaseUrl:c().string.isRequired,connectionStatus:c().object.isRequired,partnerCoupon:c().object.isRequired,registrationNonce:c().string.isRequired,siteRawUrl:c().string.isRequired,tracksUserData:c().bool.isRequired,analytics:c().object};const u=d},17979:(e,t,s)=>{"use strict";s.d(t,{A:()=>I});var i=s(12961),n=s(97999),a=s(56427),r=s(38443),o=s(86087),c=s(27723),l=s(17414),p=s(11314),d=s(28120),u=s.n(d),h=s(51609),m=s(84952),g=s(81715),j=s(74209),k=s(15937),f=s(43659),v=s(86483),x=s(23758),b=s(11236),_=s(72625),w=s(19896),y=s(39228),C=s(1194),A=s(19950),S=s(36865),N=s(76478),E=s(27530),T=s(54274),O=s(10790);const __=c.__,_x=c._x,M=()=>{},L=e=>(0,O.jsx)(k.A,{label:__("VaultPress Backup","jetpack"),module:e.feature||"backups",support:{text:__("VaultPress Backup allows you to easily restore or download a backup from a specific moment.","jetpack"),link:(0,i.A)("jetpack-support-backup")},className:e.className+" dash-backups",status:e.status,pro:!0,overrideContent:e.overrideContent,children:(0,O.jsx)("p",{className:"jp-dash-item__description",children:e.content})});class P extends h.Component{static propTypes={siteRawUrl:u().string.isRequired,getOptionValue:u().func.isRequired,rewindStatus:u().string.isRequired,rewindStatusReason:u().string.isRequired,trackUpgradeButtonView:u().func,vaultPressData:u().any.isRequired,hasBackups:u().bool.isRequired,hasRealTimeBackups:u().bool.isRequired,isOfflineMode:u().bool.isRequired,isVaultPressInstalled:u().bool.isRequired,upgradeUrl:u().string.isRequired,hasConnectedOwner:u().bool.isRequired,backupUndoEvent:u().any.isRequired};static defaultProps={siteRawUrl:"",getOptionValue:M,vaultPressData:"",isOfflineMode:!1,isVaultPressInstalled:!1,rewindStatus:"",trackUpgradeButtonView:M,backupUndoEvent:{}};trackBackupsClick=(e="backups-link")=>function(){b.A.tracks.recordJetpackClick({type:e,target:"at-a-glance",feature:"backups"})};trackRedeemCouponButtonView=()=>{const{partnerCoupon:e}=this.props;b.A.tracks.recordEvent("jetpack_wpa_aag_redeem_partner_coupon_button_view",{feature:"backups",coupon_preset:e.preset})};getJetpackBackupBanner(){const{partnerCoupon:e,upgradeUrl:t,siteRawUrl:s,trackUpgradeButtonView:n}=this.props;if(this.props.hasConnectedOwner){if(e&&"jetpack_backup_daily"===e.product.slug){const t=(0,i.A)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:s,query:`coupon=${e.coupon_code}`});return(0,O.jsx)(x.Ay,{callToAction:__("Redeem","jetpack"),title:(0,c.sprintf)(/* translators: %s: Name of a Jetpack product. */
__("Redeem your coupon and get started with %s for free the first year!","jetpack"),e.product.title),disableHref:"false",href:t,eventFeature:"backups",path:"dashboard",eventProps:{type:"redeem_partner_coupon",coupon_preset:e.preset},plan:(0,_.EP8)(_.gvR),trackBannerDisplay:this.trackRedeemCouponButtonView})}return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(T.A,{}),(0,O.jsx)(x.Ay,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:__("Never worry about losing your site – automatic backups keep your content safe.","jetpack"),disableHref:"false",href:t,eventFeature:"backups",path:"dashboard",plan:(0,_.EP8)(_.gvR),trackBannerDisplay:n})]})}return(0,O.jsx)(x.Ay,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get automatic backups that keep your content safe.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"backups",path:"dashboard",plan:(0,_.EP8)(_.gvR)})}getVPContent(){const{hasBackups:e,isFetchingSite:t,isVaultPressInstalled:s,getOptionValue:n,siteRawUrl:a,vaultPressData:r}=this.props;return n("vaultpress")&&"success"===(r?.code??"")?L({className:"jp-dash-item__is-active",status:"is-working",content:(0,O.jsxs)("span",{children:[r?.message??""," ",(0,o.createInterpolateElement)(__("View backup details.","jetpack"),{a:(0,O.jsx)("a",{href:(0,i.A)("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})})]})}):t?this.renderLoading():L(e?{className:"jp-dash-item__is-inactive",status:s?"pro-inactive":"pro-uninstalled",content:(0,o.createInterpolateElement)(__("To automatically back up your entire site, please install and activate VaultPress.","jetpack"),{a:(0,O.jsx)("a",{href:(0,i.A)("calypso-plugins-setup",{site:a,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{siteRawUrl:e}=this.props;return(0,O.jsx)(j.A,{compact:!0,className:"jp-dash-item__manage-in-wpcom",children:(0,O.jsxs)("div",{className:"jp-dash-item__action-links",children:[(0,O.jsx)(a.ExternalLink,{href:(0,n.isWoASite)()?(0,i.A)("calypso-backups",{site:e}):(0,i.A)("my-jetpack-manage-backup",{site:e}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("backups-link"),children:__("View your site's backups","jetpack")}),(0,O.jsx)(a.ExternalLink,{href:(0,i.A)("calypso-activity-log",{site:e,query:"group=rewind"}),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("restore-points-link"),children:__("View your most recent restore points","jetpack")})]})},"manage-backups")}getRewindContent(){const{hasRealTimeBackups:e,rewindStatus:t,siteRawUrl:s,backupUndoEventLoaded:n}=this.props,r=(e,t,s)=>(0,O.jsx)(j.A,{compact:!0,className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick(s),children:t},"manage-backups"),c=e=>L({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",content:e});switch(t){case"provisioning":return(0,O.jsx)(h.Fragment,{children:c(__("We are configuring your site's backups.","jetpack"))});case"awaiting_credentials":return(0,O.jsxs)(h.Fragment,{children:[c(__("Enter your SSH, SFTP or FTP credentials to enable one-click site restores and faster backups","jetpack")),r((0,i.A)("jetpack-backup-dash-credentials",{site:s}),__("Enter credentials","jetpack"),"enter-credentials-link")]});case"active":{if(n)return this.renderUndo();let t=__("We are backing up your site daily.","jetpack");return e&&(t=(0,o.createInterpolateElement)(__("Every change you make will be backed up, in real-time, as you edit your site. Learn More","jetpack"),{ExternalLink:(0,O.jsx)(a.ExternalLink,{href:(0,i.A)("jetpack-blog-realtime-mechanics"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackBackupsClick("realtime-learn-more-link")})})),(0,O.jsxs)(h.Fragment,{children:[c(t),this.renderManageBackupsLinks()]})}}return!1}renderLoading(){return L({className:"",status:"",content:__("Loading…","jetpack")})}renderFromRewindStatus(){return this.props.hasBackups&&"unavailable"===this.props.rewindStatus&&"site_new"===this.props.rewindStatusReason?L({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():(0,O.jsx)("div",{className:"jp-dash-item",children:this.getRewindContent()})}trackUndoFeatureView(){b.A.tracks.recordEvent("jetpack_wpa_aag_backup_undo_view")}trackUndoButtonClick(){b.A.tracks.recordEvent("jetpack_wpa_aag_backup_undo_button_click")}renderUndo(){const{backupUndoEvent:e}=this.props,{activityDate:t,activityTitle:s,activityDescription:n,actorName:a,actorRole:c,actorAvatarUrl:d,undoBackupId:u}=e,h=(0,r.dateI18n)("M jS, g:i a",t),m=(0,O.jsxs)("div",{className:"dops-card jp-dash-item__card dash-backup-undo",children:[(0,O.jsxs)("div",{className:"jp-dash-item__description dash-backup-undo__activity-log",children:[(0,O.jsx)("div",{className:"dash-backup-undo__activity-log-date",children:h}),(0,O.jsx)("div",{className:"dash-backup-undo__activity-log-action",children:s}),(0,O.jsx)("div",{className:"dash-backup-undo__activity-log-description",children:n}),(0,O.jsxs)("div",{className:"dash-backup-undo__activity-log-user-meta",children:[(0,O.jsx)("div",{className:"dash-backup-undo__activity-log-user-meta-avatar",children:(0,O.jsx)("img",{alt:a,src:d??"https://www.gravatar.com/avatar/0?s=96&d=mm",width:"30",height:"30"})}),(0,O.jsxs)("div",{className:"dash-backup-undo__activity-log-user-meta-name",children:[a,c&&" - "+c]})]})]}),(0,O.jsx)("div",{className:"dash-backup-undo__cta",children:(0,o.createInterpolateElement)(__("","jetpack"),{button:(0,O.jsx)(g.A,{href:(0,i.A)("jetpack-backup-undo-cta",{path:u}),primary:!0,target:"_blank",onClick:this.trackUndoButtonClick}),icon:(0,O.jsx)(l.A,{icon:p.A})})})]});return this.trackUndoFeatureView(),(0,O.jsxs)(O.Fragment,{children:[L({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",overrideContent:m}),this.renderManageBackupsLinks()]})}renderGettingStartedVideo(){return"awaiting_credentials"!==this.props.rewindStatus?null:(0,O.jsx)(E.A,{})}render(){return this.props.showBackups?this.props.isOfflineMode?(0,O.jsx)("div",{className:"jp-dash-item__interior",children:L({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:__("Unavailable in Offline Mode.","jetpack")})}):(this.props.isFetchingSite&&this.renderLoading(),(0,O.jsxs)("div",{children:[(0,O.jsx)(v.A,{}),"active"===this.props.rewindStatus&&(0,O.jsx)(f.A,{}),this.renderFromRewindStatus(),this.renderGettingStartedVideo()]})):null}}const I=(0,m.Ng)(e=>({vaultPressData:(0,y.Cc)(e),isOfflineMode:(0,C.hN)(e),isVaultPressInstalled:(0,N.O8)(e,"vaultpress/vaultpress.php"),showBackups:(0,A.Fp)(e),upgradeUrl:(0,w.F)(e,"backup"),hasConnectedOwner:(0,C.BG)(e),isFetchingSite:(0,S.Kb)(e),hasBackups:(0,S.IT)(e,"backups"),hasRealTimeBackups:(0,S.IT)(e,"real-time-backups"),partnerCoupon:(0,A.ly)(e),backupUndoEvent:(0,y.Zc)(e),backupUndoEventLoaded:(0,y._z)(e),backupUndoEventIsFetching:(0,y.j)(e)}),e=>({connectUser:()=>e((0,C.k0)())}))(P)},18061:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});var i=s(13513),n=s(7e4),a=s(39384),r=s(56427),o=s(86087),c=s(27723),l=s(28120),p=s.n(l),d=s(51609),u=s(11236),h=s(10790);const __=c.__,m=e=>{const{title:t,logo:s,children:c,className:l,buttonLabel:p,apiRoot:m,apiNonce:g,redirectUri:j,redirectTo:k,autoTrigger:f,isSiteConnected:v,setHasSeenWCConnectionModal:x}=e;(0,d.useEffect)(()=>{x()},[x]);const b=(0,d.useCallback)(()=>{u.A.tracks.recordJetpackClick("contextualized_connection_continue_button")},[]);return(0,h.jsxs)("div",{className:"jp-contextualized-connection"+(l?" "+l:""),children:[(0,h.jsxs)("div",{className:"jp-contextualized-connection__content",children:[(0,h.jsx)("div",{className:"jp-contextualized-connection__logo",children:s||(0,h.jsx)(i.A,{})}),(0,h.jsx)("h2",{children:t}),c,v&&(0,h.jsx)(r.Button,{variant:"primary",className:"jp-contextualized-connection__button",label:__("Continue to Jetpack","jetpack"),href:k,onClick:b,children:__("Continue to Jetpack","jetpack")}),!v&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(a.ConnectButton,{autoTrigger:f,apiRoot:m,apiNonce:g,registrationNonce:"",redirectUri:j,connectLabel:p}),(0,h.jsx)("div",{className:"jp-contextualized-connection__tos",children:(0,h.jsx)(n.A,{agreeButtonLabel:p})})]})]}),(0,h.jsxs)("footer",{className:"jp-contextualized-connection__footer",children:[(0,h.jsxs)("div",{className:"jp-contextualized-connection__footer-row",children:[(0,h.jsxs)("div",{className:"jp-contextualized-connection__footer-column",children:[(0,h.jsx)("h3",{children:__("Security tools","jetpack")}),(0,h.jsxs)("ul",{className:"jp-contextualized-connection__feature-list",children:[(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free downtime monitoring","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free brute force attack prevention","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:__("Full store & order backups","jetpack")}),(0,h.jsx)("li",{children:__("Automated malware scanning","jetpack")}),(0,h.jsx)("li",{children:__("Comment and form spam protection","jetpack")})]})]}),(0,h.jsxs)("div",{className:"jp-contextualized-connection__footer-column",children:[(0,h.jsx)("h3",{children:__("Performance tools","jetpack")}),(0,h.jsxs)("ul",{className:"jp-contextualized-connection__feature-list",children:[(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free Content Delivery Network (CDN)","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free SEO tools","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:__("Instant site search","jetpack")}),(0,h.jsx)("li",{children:__("Ad-free WordPress video hosting","jetpack")})]})]}),(0,h.jsxs)("div",{className:"jp-contextualized-connection__footer-column",children:[(0,h.jsx)("h3",{children:__("Growth tools","jetpack")}),(0,h.jsxs)("ul",{className:"jp-contextualized-connection__feature-list",children:[(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free site stats","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free social media tools","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:(0,o.createInterpolateElement)(__("Free related posts","jetpack"),{strong:(0,h.jsx)("strong",{})})}),(0,h.jsx)("li",{children:__("Accept payments","jetpack")}),(0,h.jsx)("li",{children:__("Ad network access","jetpack")})]})]})]}),(0,h.jsx)("div",{className:"jp-contextualized-connection__footer-bottom-title",children:__("More than 5 million WordPress sites trust Jetpack for their website security and performance.","jetpack")})]})]})};m.propTypes={title:p().string,className:p().string,buttonLabel:p().string,apiRoot:p().string.isRequired,apiNonce:p().string.isRequired,redirectUri:p().string.isRequired,redirectTo:p().string.isRequired,autoTrigger:p().bool,isSiteConnected:p().bool.isRequired,logo:p().shape({type:p().oneOf(["img","svg"])})};const g=m},18104:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var i=s(10790);s(89358);const n=({name:e})=>(0,i.jsx)("i",{className:`facebook-preview__post-icon facebook-preview__post-icon-${e}`})},18143:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var i=s(12961),n=s(39384),a=s(56427),r=s(27723),o=s(17414),c=s(10519),l=s(41282),p=s(75424),d=s(10790);const __=r.__,u=e=>{const{title:t}=e;return(0,d.jsx)(n.ConnectScreen,{buttonLabel:__("Connect your user account","jetpack"),loadingLabel:__("Connecting your account…","jetpack"),images:[l],from:"my-jetpack",...e,title:t||__("Unlock all the amazing features of Jetpack by connecting now","jetpack"),children:(0,d.jsxs)("ul",{role:"list",children:[(0,d.jsx)("li",{children:__("Receive instant downtime alerts","jetpack")}),(0,d.jsx)("li",{children:__("Automatically share your content on social media","jetpack")}),(0,d.jsx)("li",{children:__("Let your subscribers know when you post","jetpack")}),(0,d.jsx)("li",{children:__("Receive notifications about new likes and comments","jetpack")}),(0,d.jsx)("li",{children:__("Let visitors share your content on social media","jetpack")}),(0,d.jsx)("li",{children:__("Create better content with powerful AI tools","jetpack")}),(0,d.jsxs)("li",{children:[__("And more!","jetpack")," ",(0,d.jsxs)("a",{href:(0,i.A)("jetpack-features"),target:"_blank",className:p.A["all-features"],rel:"noreferrer",children:[__("See all Jetpack features","jetpack"),(0,d.jsx)(o.A,{icon:c.A}),(0,d.jsx)(a.VisuallyHidden,{as:"span",children:/* translators: accessibility text */
__("(opens in a new tab)","jetpack")})]})]})]})})}},18280:(e,t,s)=>{"use strict";s.d(t,{Uc:()=>p,Xx:()=>d,ic:()=>c,jo:()=>l});var i=s(21453),n=s(27723),a=s(31121),r=s(46755),o=s(26571);const __=n.__,c=()=>({type:r.iSZ}),l=()=>({type:r.zsW}),p=()=>e=>(e({type:r.Wkx}),i.Ay.fetchSettings().then(t=>(e({type:r._nc,settings:t}),t)).catch(t=>{e({type:r.rNj,error:t})})),d=(e,t={})=>s=>{const c={progress:__("Updating settings…","jetpack"),success:__("Updated settings.","jetpack"),error:e=>(0,n.sprintf)(/* translators: %s: an error code or an error message. */
__("Error updating settings. %s","jetpack"),e.message||e.code||e.name||e),...t};"object"==typeof e&&["jetpack_testimonial","jetpack_portfolio"].some(t=>t in e)&&(c.success=__("Updated settings. Refreshing page…","jetpack")),s((0,a.fj)("module-setting-update")),s((0,a.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)||s((0,a.Fc)("is-info",c.progress,{id:"module-setting-update"})),s({type:r.TVv,updatedOptions:e}),i.Ay.updateSettings(e).then(t=>{s({type:r.NY7,updatedOptions:u(t,e),success:t}),(0,o.VV)(e),s((0,a.fj)("module-setting-update")),s((0,a.fj)("module-setting-update-success")),"object"!=typeof e||l.some(t=>t in e)||s((0,a.Fc)("is-success",c.success,{id:"module-setting-update-success",duration:2e3}))}).catch(t=>{s({type:r.Quo,success:!1,error:t,updatedOptions:e}),s((0,a.fj)("module-setting-update")),s((0,a.Fc)("is-error",c.error(t),{id:"module-setting-update"}))})};function u(e,t){let s=t;return"regenerate"===t?.post_by_email_address&&(s={post_by_email_address:e.post_by_email_address}),s}},18446:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});var i=s(12961),n=s(44179),a=s(76690),r=s(86087),o=s(27723),c=s(51609),l=s(84952),p=s(46628),d=s(23758),u=s(76563),h=s(27844),m=s(79779),g=s(50534),j=s(72625),k=s(19896),f=s(1194),v=s(26571),x=s(31238),b=s(36865),_=s(10790);const __=o.__,_x=o._x;class w extends c.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:s,hasVideoPressFeature:c,hasVideoPressUnlimitedStorage:l,isFetching:u,isOffline:k,upgradeUrl:f,videoPressStorageUsed:v}=this.props,x=c&&!l&&null!==v,b=c||null===v||0!==v?__("You have used your free video. Upgrade now to unlock more videos and 1TB of storage.","jetpack",0):__("1 free video available. Upgrade now to unlock more videos and 1TB of storage.","jetpack"),w=(0,_.jsxs)(g.A,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:(0,i.A)("jetpack-support-videopress")},children:[(0,_.jsx)(p.kK,{className:"jp-form-label-wide",children:__("VideoPress","jetpack")}),(0,_.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")," "]}),x&&(0,_.jsxs)("div",{className:"media__videopress-storage",children:[(0,_.jsx)(a.A,{progress:v/1e6}),(0,_.jsx)("span",{children:(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %d is a number (disk space used) */
__("Using %dGB of 1TB","jetpack"),Math.round(v/1024)),{strong:(0,_.jsx)("strong",{})})})]}),s&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.j,{slug:"videopress",disabled:this.props.isUnavailableInOfflineMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow,children:(0,_.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable VideoPress","jetpack")})}),(0,_.jsx)(p.dV,{children:(0,_.jsx)(n.A,{id:"videopress-site-privacy",disabled:!this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress_private_enabled_for_site"),checked:this.props.getOptionValue("videopress_private_enabled_for_site"),onChange:this.togglePrivacySetting,label:(0,_.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Video Privacy: Restrict views to members of this site","jetpack")})})})]})]}),y="inactive"===this.props.getModuleOverride("videopress"),C=e&&!c&&s&&!k&&!u;return(0,_.jsxs)(m.A,{...this.props,header:__("Media","jetpack"),feature:!y&&j.d2k,hideButton:!0,children:[e&&w,C&&(0,_.jsx)(d.Ay,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:b,eventFeature:"videopress",icon:"video",plan:(0,j.EP8)(j.SyV),feature:"jetpack_videopress",href:f,rna:!0})]})}}const y=(0,l.Ng)(e=>({module:t=>(0,v.f_)(e,t),isModuleFound:t=>(0,x.jQ)(e,t),sitePlan:(0,b.X6)(e),hasVideoPressFeature:(0,b.IT)(e,"videopress-1tb-storage")||(0,b.IT)(e,"videopress-unlimited-storage")||(0,b.IT)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,b.IT)(e,"videopress-unlimited-storage"),hasConnectedOwner:(0,f.BG)(e),isOffline:(0,f.hN)(e),isFetching:(0,b.SN)(e),getModuleOverride:t=>(0,v.d1)(e,t),upgradeUrl:(0,k.F)(e,"videopress"),videoPressStorageUsed:(0,b.$U)(e)}))((0,u.t)(w))},18606:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var i=s(13022),n=s(73781),a=s(20428),r=s.n(a),o=s(28120),c=s.n(o),l=s(51609),p=s(10790);let d=!1;class u extends l.Component{static propTypes={style:c().object,width:c().oneOf(["wide","medium","narrow"]),className:c().string,title:c().string,initialFocus:c().string,onRequestClose:c().func};static defaultProps={style:{}};domNode=null;state={overlayMouseDown:!1};componentDidMount(){r()("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),r()(document).keyup(this.handleEscapeKey);try{this.focusTrap=(0,n.K)(this.domNode),this.focusTrap.activate({initialFocus:this.props.initialFocus})}catch{}}componentWillUnmount(){r()("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),r()(document).unbind("keyup",this.handleEscapeKey);try{this.focusTrap.deactivate()}catch{}}handleEscapeKey=e=>{"Escape"===e.code&&this.maybeClose()};maybeClose=()=>{this.props.onRequestClose&&!d&&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&&!d&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())};handleMouseEventModal=e=>{e.stopPropagation()};render(){let e;const{style:t,className:s,width:n,title:a,onRequestClose:r,...o}=this.props;switch(n){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}const c=Object.assign({},t,e);return(0,p.jsx)("div",{ref:e=>this.domNode=e,className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay,children:(0,p.jsx)("div",{className:(0,i.A)("dops-modal",s),style:c,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":a,...o,children:this.props.children})})}}u.preventClose=function(){d=!0},u.allowClose=function(){d=!1};const h=u},18767:(e,t,s)=>{"use strict";s.d(t,{J:()=>r,M:()=>a});var i=s(21453),n=s(46755);const a=()=>e=>(e({type:n.ymV}),i.Ay.fetchWafSettings().then(t=>(e({type:n.ObO,settings:t}),t)).catch(t=>{e({type:n.H1n,error:t})})),r=e=>t=>(t({type:n.j7x}),i.Ay.updateWafSettings({jetpack_waf_automatic_rules:e.automaticRulesEnabled,jetpack_waf_ip_allow_list_enabled:e.ipAllowListEnabled,jetpack_waf_ip_block_list_enabled:e.ipBlockListEnabled,jetpack_waf_ip_allow_list:e.ipAllowList,jetpack_waf_ip_block_list:e.ipBlockList,jetpack_waf_share_data:e.shareData,jetpack_waf_share_debug_data:e.shareDebugData}).then(e=>(t({type:n.Hvo,settings:e}),e)).catch(e=>{throw t({type:n.WzY,error:e}),e}))},19217:(e,t,s)=>{"use strict";s(21453)},19222:(e,t,s)=>{"use strict";s.d(t,{Y:()=>r});var i=s(10790),n=s(27723),a=s(2895);const __=n.__,r=({name:e,screenName:t,date:s})=>(0,i.jsxs)("div",{className:"twitter-preview__header",children:[(0,i.jsx)("span",{className:"twitter-preview__name",children:e||__("Account Name","jetpack")}),(0,i.jsx)("span",{className:"twitter-preview__screen-name",children:t||"@account"}),(0,i.jsx)("span",{children:"·"}),(0,i.jsx)("span",{className:"twitter-preview__date",children:(0,a.hV)(s||Date.now())})]})},19498:()=>{},19747:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});const i={"global-notices":"jT9Kt2ZTvxPKDQ1pa7sN"}},19896:(e,t,s)=>{"use strict";s.d(t,{$:()=>a,F:()=>r});var i=s(19950),n=s(62148);const a=()=>URLSearchParams&&!!new URLSearchParams(window.location?.search).get("new_pricing_202208"),r=(e,t)=>{const s=`${(0,i.eu)(e)}admin.php?page=jetpack#`,a=`${(0,i.eu)(e)}admin.php?page=my-jetpack#`;return"search"===t?`${(0,i.eu)(e)}admin.php?page=jetpack-search`:n.hM.includes(`/add-${t}`)?`${a}/add-${t}`:n.Ix.includes(`/product/${t}`)?`${s}/product/${t}`:`${s}/dashboard`}},19950:(e,t,s)=>{"use strict";s.d(t,{$q:()=>i.$q,AI:()=>i.AI,AM:()=>i.AM,BG:()=>i.BG,Co:()=>i.Co,Dd:()=>i.Dd,EV:()=>i.EV,FE:()=>i.FE,Fp:()=>i.Fp,G4:()=>i.G4,G_:()=>i.G_,Gn:()=>i.Gn,Hv:()=>i.Hv,Hz:()=>i.Hz,IJ:()=>i.IJ,Ir:()=>i.Ir,JI:()=>i.JI,JQ:()=>i.JQ,Jx:()=>i.Jx,K$:()=>i.K$,Kz:()=>i.Kz,Lf:()=>i.Lf,Lv:()=>i.Lv,Mj:()=>i.Mj,Mn:()=>i.Mn,O3:()=>i.O3,PH:()=>i.PH,Q4:()=>i.Q4,Qz:()=>i.Qz,TO:()=>i.TO,V:()=>i.V,V2:()=>i.V2,VN:()=>i.m$,WC:()=>i.WC,WS:()=>i.WS,XG:()=>i.XG,XP:()=>i.XP,Xr:()=>i.Xr,ZE:()=>i.ZE,ZL:()=>i.ZL,bc:()=>i.bc,ct:()=>i.ct,dW:()=>i.dW,eW:()=>i.eW,eu:()=>i.eu,f8:()=>i.f8,gF:()=>i.gF,hN:()=>i.hN,iO:()=>i.iO,il:()=>i.il,io:()=>i.io,jM:()=>i.jM,jh:()=>i.jh,ld:()=>i.ld,ly:()=>i.ly,m$:()=>n.m,n6:()=>i.n6,n9:()=>i.n9,nZ:()=>i.nZ,nr:()=>i.nr,oF:()=>i.oF,pi:()=>i.pi,q1:()=>i.q1,r5:()=>i.r5,r9:()=>i.r9,rW:()=>i.rW,t9:()=>i.t9,wz:()=>i.wz,xQ:()=>i.xQ,xs:()=>i.xs});var i=s(47058),n=s(92781)},20229:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var i=s(27723),n=s(34394),a=s(13299);const __=i.__;async function r(e,t,s,n=null,r){const o={method:e,mode:"cors",headers:{"X-WP-Nonce":r}};"post"!==e&&"delete"!==e||!n||(o.body=JSON.stringify(n),o.headers["Content-Type"]="application/json");const c=function(e,t){return t+a.K+a.L+e}(s,t);let l;try{l=await fetch(c,o)}catch(e){const t=o;delete t.body,delete t.headers["X-WP-Nonce"];const s={requestInitiator:window.location.href,requestUrl:c,requestArgs:t,originalErrorMessage:e.toString()};throw new Error((0,i.sprintf)(/* Translators: %s refers to a string representation of an error object containing useful debug information */
__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack"),JSON.stringify(s)))}return l}async function o(e,t,s,i=null,a){const o=await r(e,t,s,i,a);let c,l;try{c=await o.text()}catch(e){throw new n.h(o.status,null,e)}try{l=JSON.parse(c)}catch(e){throw new n.h(o.status,c,e)}if(!o.ok)throw new n.h(o.status,l,null);return l}const c={get:function(e,t,s){return o("get",e,t,null,s)},post:function(e,t,s=null,i){return o("post",e,t,s,i)}}},20284:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});var i=s(12961),n=s(56427),a=s(86087),r=s(27723),o=s(28120),c=s.n(o),l=s(51609),p=s(84952),d=s(25788),u=s(76563),h=s(79779),m=s(50534),g=s(11236),j=s(17259),k=s(72288),f=s(45811),v=s(10790);const __=r.__,_x=r._x,x=()=>g.A.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"}),b=()=>g.A.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"}),_=()=>g.A.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"});class w 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,v.jsxs)("div",{children:[(0,v.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Privacy Settings","jetpack")}),(0,v.jsx)(h.A,{...this.props,header:_x("Privacy Settings","Settings header","jetpack"),hideButton:!0,children:(0,v.jsxs)(m.A,{hasChild:!0,children:[(0,v.jsx)("p",{children:__("We are committed to your privacy and security.","jetpack")}),(0,v.jsx)("p",{children:(0,v.jsx)(d.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,a.createInterpolateElement)(__("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. Learn more.","jetpack"),{cookiePolicyLink:(0,v.jsx)(n.ExternalLink,{href:(0,i.A)("a8c-cookies"),onClick:b,rel:"noopener noreferrer"})})})}),(0,v.jsx)("p",{children:(0,a.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 privacy policy.","jetpack"),{pp:(0,v.jsx)(n.ExternalLink,{href:(0,i.A)("a8c-privacy"),onClick:x,rel:"noopener noreferrer"})})}),(0,v.jsx)("p",{children:(0,a.createInterpolateElement)(__("We use other tracking tools, including some from third parties. Read about these and how to control them.","jetpack"),{cookiePolicyLink:(0,v.jsx)(n.ExternalLink,{href:(0,i.A)("a8c-cookies"),onClick:b,rel:"noopener noreferrer"})})}),(0,v.jsx)("p",{children:(0,a.createInterpolateElement)(__("For more information on how specific Jetpack features use data and track activity, please refer to our Privacy Center.","jetpack"),{privacyCenterLink:(0,v.jsx)(n.ExternalLink,{href:(0,i.A)("jetpack-support-privacy"),onClick:_,rel:"noopener noreferrer"})})})]})})]}):null}}const y=(0,p.Ng)(e=>({settings:(0,j.mt)(e),trackingSettings:(0,f.h5)(e),isUpdatingTrackingSettings:(0,f.vu)(e),isFetchingTrackingSettings:(0,f.h)(e)}),e=>({setTrackingSettings:t=>{g.A.tracks.setOptOut(t),e((0,k.Y)({tracks_opt_out:t}))},fetchTrackingSettings:()=>e((0,k.X)())}))((0,u.t)(w))},20349:(e,t,s)=>{"use strict";s.d(t,{A:()=>_});var i=s(77790),n=s(94001),a=s(10254),r=s.n(a),o=s(51609),c=s.n(o),l=s(1444),p=s(11833),d=s(10047),u=s(92302),h=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],m=["reactReduxForwardedRef"],g=[],j=[null,null];function k(e,t){var s=e[1];return[t.payload,s+1]}function f(e,t,s){(0,d.E)(function(){return e.apply(void 0,t)},s)}function v(e,t,s,i,n,a,r){e.current=i,t.current=n,s.current=!1,a.current&&(a.current=null,r())}function x(e,t,s,i,n,a,r,o,c,l){if(e){var p=!1,d=null,u=function(){if(!p){var e,s,u=t.getState();try{e=i(u,n.current)}catch(e){s=e,d=e}s||(d=null),e===a.current?r.current||c():(a.current=e,o.current=e,r.current=!0,l({type:"STORE_UPDATED",payload:{error:s}}))}};s.onStateChange=u,s.trySubscribe(),u();return function(){if(p=!0,s.tryUnsubscribe(),s.onStateChange=null,d)throw d}}}var b=function(){return[null,0]};function _(e,t){void 0===t&&(t={});var s=t,a=s.getDisplayName,d=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,_=s.methodName,w=void 0===_?"connectAdvanced":_,y=s.renderCountProp,C=void 0===y?void 0:y,A=s.shouldHandleStateChanges,S=void 0===A||A,N=s.storeKey,E=void 0===N?"store":N,T=(s.withRef,s.forwardRef),O=void 0!==T&&T,M=s.context,L=void 0===M?u.t:M,P=(0,n.A)(s,h),I=L;return function(t){var s=t.displayName||t.name||"Component",a=d(s),u=(0,i.A)({},P,{getDisplayName:d,methodName:w,renderCountProp:C,shouldHandleStateChanges:S,storeKey:E,displayName:a,wrappedComponentName:s,WrappedComponent:t}),h=P.pure;var _=h?o.useMemo:function(e){return e()};function y(s){var a=(0,o.useMemo)(function(){var e=s.reactReduxForwardedRef,t=(0,n.A)(s,m);return[s.context,e,t]},[s]),r=a[0],d=a[1],h=a[2],w=(0,o.useMemo)(function(){return r&&r.Consumer&&(0,l.isContextConsumer)(c().createElement(r.Consumer,null))?r:I},[r,I]),y=(0,o.useContext)(w),C=Boolean(s.store)&&Boolean(s.store.getState)&&Boolean(s.store.dispatch);Boolean(y)&&Boolean(y.store);var A=C?s.store:y.store,N=(0,o.useMemo)(function(){return function(t){return e(t.dispatch,u)}(A)},[A]),E=(0,o.useMemo)(function(){if(!S)return j;var e=(0,p.K)(A,C?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[A,C,y]),T=E[0],O=E[1],M=(0,o.useMemo)(function(){return C?y:(0,i.A)({},y,{subscription:T})},[C,y,T]),L=(0,o.useReducer)(k,g,b),P=L[0][0],R=L[1];if(P&&P.error)throw P.error;var D=(0,o.useRef)(),z=(0,o.useRef)(h),F=(0,o.useRef)(),U=(0,o.useRef)(!1),V=_(function(){return F.current&&h===z.current?F.current:N(A.getState(),h)},[A,P,h]);f(v,[z,D,U,h,V,F,O]),f(x,[S,A,T,N,z,D,U,F,O,R],[A,T,N]);var B=(0,o.useMemo)(function(){return c().createElement(t,(0,i.A)({},V,{ref:d}))},[d,t,V]);return(0,o.useMemo)(function(){return S?c().createElement(w.Provider,{value:M},B):B},[w,B,M])}var A=h?c().memo(y):y;if(A.WrappedComponent=t,A.displayName=y.displayName=a,O){var N=c().forwardRef(function(e,t){return c().createElement(A,(0,i.A)({},e,{reactReduxForwardedRef:t}))});return N.displayName=a,N.WrappedComponent=t,r()(N,t)}return r()(A,t)}}},20428:e=>{"use strict";e.exports=window.jQuery},20577:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});const i={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"}},20600:(e,t,s)=>{"use strict";s.d(t,{H:()=>j});var i=s(12961),n=s(44179),a=s(27723),r=s(51609),o=s(46628),c=s(76563),l=s(27844),p=s(79779),d=s(50534),u=s(16845),h=s(56273),m=s(10790);const __=a.__;class g extends r.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"),s=this.props.isModuleFound("markdown"),a=this.props.isModuleFound("comment-likes");if(!(e||t||s||a))return null;const{isUnavailableInOfflineMode:r,getOptionValue:c}=this.props,g=this.props.getModule("comments"),j=this.props.getOptionValue("comments"),k=this.props.isUnavailableInOfflineMode("comments"),f=this.props.getModule("gravatar-hovercards"),v=this.props.getModule("markdown"),x=r("comment-likes"),b=c("comment-likes");return(0,m.jsxs)(p.A,{...this.props,header:__("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"]),children:[e&&(0,m.jsxs)(d.A,{hasChild:!0,disableInOfflineMode:!0,module:g,support:{text:__("Replaces the standard WordPress comment form with a new comment system that includes social media login options.","jetpack"),link:(0,i.A)("jetpack-support-comments")},children:[(0,m.jsx)(l.j,{slug:"comments",compact:!0,disabled:k,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:g.description})}),(0,m.jsxs)(o.dV,{children:[(0,m.jsxs)(o.lR,{children:[(0,m.jsx)("span",{className:"jp-form-label-wide",children:__("Comment form introduction","jetpack")}),(0,m.jsx)(h.A,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!j||k||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})]}),(0,m.jsx)("span",{className:"jp-form-setting-explanation",children:__("A few catchy words to motivate your visitors to comment.","jetpack")}),(0,m.jsxs)(o.lR,{children:[(0,m.jsx)("span",{className:"jp-form-label-wide",children:__("Color scheme","jetpack")}),(0,m.jsx)(o.FX,{name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!j||k||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||s||a)&&(0,m.jsxs)(d.A,{children:[t&&(0,m.jsxs)("div",{className:"jp-toggle-set",children:[(0,m.jsx)(o.dV,{children:(0,m.jsx)(l.j,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:f.description})})}),(0,m.jsx)(u.A,{text:__("Show Gravatar hovercards alongside comments.","jetpack"),link:f.learn_more_button,privacyLink:f.learn_more_button+"#privacy"})]}),s&&(0,m.jsxs)("div",{className:"jp-toggle-set",children:[(0,m.jsx)(o.dV,{children:(0,m.jsx)(n.A,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown"])||"inactive"===this.props.getModuleOverride("markdown"),toggling:this.props.isSavingAnyOption(["wpcom_publish_comments_with_markdown"]),onChange:this.handleMarkdownCommentsToggle,label:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable Markdown use for comments.","jetpack")})})}),(0,m.jsx)(u.A,{text:__("Allow readers to use markdown in comments.","jetpack"),link:v.learn_more_button,privacyLink:v.learn_more_button+"#privacy"})]}),a&&(0,m.jsxs)("div",{className:"jp-toggle-set",children:[(0,m.jsx)(o.dV,{children:(0,m.jsx)(l.j,{slug:"comment-likes",compact:!0,disabled:x,activated:b,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable comment Likes.","jetpack")})})}),(0,m.jsx)(u.A,{text:__("Allow readers to like individual comments.","jetpack"),link:(0,i.A)("jetpack-support-comment-likes"),privacyLink:(0,i.A)("jetpack-support-comment-likes",{anchor:"privacy"})})]})]})]})}}const j=(0,c.t)(g)},20880:(e,t,s)=>{"use strict";s.d(t,{BV:()=>xe,C5:()=>ke,I9:()=>tt,Zp:()=>se,qh:()=>fe,zy:()=>Q});var i=s(51609),n=(s(43172),"popstate");function a(e={}){return u(function(e,t){let{pathname:s="/",search:i="",hash:n=""}=d(e.location.hash.substring(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),l("",{pathname:s,search:i,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let s=e.document.querySelector("base"),i="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");i=-1===s?t:t.slice(0,s)}return i+"#"+("string"==typeof t?t:p(t))},function(e,t){o("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function r(e,t){if(!1===e||null==e)throw new Error(t)}function o(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function l(e,t,s=null,i){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?d(t):t,state:s,key:t&&t.key||i||Math.random().toString(36).substring(2,10)}}function p({pathname:e="/",search:t="",hash:s=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),s&&"#"!==s&&(e+="#"===s.charAt(0)?s:"#"+s),e}function d(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substring(s),e=e.substring(0,s));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function u(e,t,s,i={}){let{window:a=document.defaultView,v5Compat:r=!1}=i,o=a.history,p="POP",d=null,u=m();function m(){return(o.state||{idx:null}).idx}function g(){p="POP";let e=m(),t=null==e?null:e-u;u=e,d&&d({action:p,location:k.location,delta:t})}function j(e){return h(e)}null==u&&(u=0,o.replaceState({...o.state,idx:u},""));let k={get action(){return p},get location(){return e(a,o)},listen(e){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(n,g),d=e,()=>{a.removeEventListener(n,g),d=null}},createHref:e=>t(a,e),createURL:j,encodeLocation(e){let t=j(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p="PUSH";let i=l(k.location,e,t);s&&s(i,e),u=m()+1;let n=c(i,u),h=k.createHref(i);try{o.pushState(n,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(h)}r&&d&&d({action:p,location:k.location,delta:1})},replace:function(e,t){p="REPLACE";let i=l(k.location,e,t);s&&s(i,e),u=m();let n=c(i,u),a=k.createHref(i);o.replaceState(n,"",a),r&&d&&d({action:p,location:k.location,delta:0})},go:e=>o.go(e)};return k}function h(e,t=!1){let s="http://localhost";"undefined"!=typeof window&&(s="null"!==window.location.origin?window.location.origin:window.location.href),r(s,"No window.location.(origin|href) available to create URL");let i="string"==typeof e?e:p(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=s+i),new URL(i,s)}new WeakMap;function m(e,t,s="/"){return g(e,t,s,!1)}function g(e,t,s,i){let n=T(("string"==typeof t?d(t):t).pathname||"/",s);if(null==n)return null;let a=j(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every((e,s)=>e===t[s]);return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let r=null;for(let e=0;null==r&&e{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};o.relativePath.startsWith("/")&&(r(o.relativePath.startsWith(i),`Absolute route path "${o.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(i.length));let c=I([i,o.relativePath]),l=s.concat(o);e.children&&e.children.length>0&&(r(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),j(e.children,t,l,c)),(null!=e.path||e.index)&&t.push({path:c,score:C(c,e.index),routesMeta:l})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let s of k(e.path))n(e,t,s);else n(e,t)}),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[s,...i]=t,n=s.endsWith("?"),a=s.replace(/\?$/,"");if(0===i.length)return n?[a,""]:[a];let r=k(i.join("/")),o=[];return o.push(...r.map(e=>""===e?a:[a,e].join("/"))),n&&o.push(...r),o.map(t=>e.startsWith("/")&&""===t?"/":t)}var f=/^:[\w-]+$/,v=3,x=2,b=1,_=10,w=-2,y=e=>"*"===e;function C(e,t){let s=e.split("/"),i=s.length;return s.some(y)&&(i+=w),t&&(i+=x),s.filter(e=>!y(e)).reduce((e,t)=>e+(f.test(t)?v:""===t?b:_),i)}function A(e,t,s=!1){let{routesMeta:i}=e,n={},a="/",r=[];for(let e=0;e{if("*"===t){let e=o[i]||"";r=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const n=o[i];return e[t]=s&&!n?void 0:(n||"").replace(/%2F/g,"/"),e},{}),pathname:a,pathnameBase:r,pattern:e}}function N(e,t=!1,s=!0){o("*"===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 i=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,s)=>(i.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),i]}function E(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return o(!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 T(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,i=e.charAt(s);return i&&"/"!==i?null:e.slice(s)||"/"}function O(e,t,s,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function M(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function L(e){let t=M(e);return t.map((e,s)=>s===t.length-1?e.pathname:e.pathnameBase)}function P(e,t,s,i=!1){let n;"string"==typeof e?n=d(e):(n={...e},r(!n.pathname||!n.pathname.includes("?"),O("?","pathname","search",n)),r(!n.pathname||!n.pathname.includes("#"),O("#","pathname","hash",n)),r(!n.search||!n.search.includes("#"),O("#","search","hash",n)));let a,o=""===e||""===n.pathname,c=o?"/":n.pathname;if(null==c)a=s;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t="/"){let{pathname:s,search:i="",hash:n=""}="string"==typeof e?d(e):e,a=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)}),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:a,search:D(i),hash:z(n)}}(n,a),p=c&&"/"!==c&&c.endsWith("/"),u=(o||"."===c)&&s.endsWith("/");return l.pathname.endsWith("/")||!p&&!u||(l.pathname+="/"),l}var I=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function F(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var U=["POST","PUT","PATCH","DELETE"],V=(new Set(U),["GET",...U]);new Set(V),Symbol("ResetLoaderData");var B=i.createContext(null);B.displayName="DataRouter";var H=i.createContext(null);H.displayName="DataRouterState";var J=i.createContext({isTransitioning:!1});J.displayName="ViewTransition";var q=i.createContext(new Map);q.displayName="Fetchers";var W=i.createContext(null);W.displayName="Await";var K=i.createContext(null);K.displayName="Navigation";var G=i.createContext(null);G.displayName="Location";var $=i.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName="Route";var Y=i.createContext(null);Y.displayName="RouteError";var X=!0;function Z(){return null!=i.useContext(G)}function Q(){return r(Z(),"useLocation() may be used only in the context of a component."),i.useContext(G).location}var ee="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function te(e){i.useContext(K).static||i.useLayoutEffect(e)}function se(){let{isDataRoute:e}=i.useContext($);return e?function(){let{router:e}=de("useNavigate"),t=he("useNavigate"),s=i.useRef(!1);return te(()=>{s.current=!0}),i.useCallback(async(i,n={})=>{o(s.current,ee),s.current&&("number"==typeof i?e.navigate(i):await e.navigate(i,{fromRouteId:t,...n}))},[e,t])}():function(){r(Z(),"useNavigate() may be used only in the context of a component.");let e=i.useContext(B),{basename:t,navigator:s}=i.useContext(K),{matches:n}=i.useContext($),{pathname:a}=Q(),c=JSON.stringify(L(n)),l=i.useRef(!1);return te(()=>{l.current=!0}),i.useCallback((i,n={})=>{if(o(l.current,ee),!l.current)return;if("number"==typeof i)return void s.go(i);let r=P(i,JSON.parse(c),a,"path"===n.relative);null==e&&"/"!==t&&(r.pathname="/"===r.pathname?t:I([t,r.pathname])),(n.replace?s.replace:s.push)(r,n.state,n)},[t,s,c,a,e])}()}i.createContext(null);function ie(e,{relative:t}={}){let{matches:s}=i.useContext($),{pathname:n}=Q(),a=JSON.stringify(L(s));return i.useMemo(()=>P(e,JSON.parse(a),n,"path"===t),[e,a,n,t])}function ne(e,t,s,n){r(Z(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=i.useContext(K),{matches:c}=i.useContext($),l=c[c.length-1],p=l?l.params:{},u=l?l.pathname:"/",h=l?l.pathnameBase:"/",g=l&&l.route;if(X){let e=g&&g.path||"";je(u,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (under ) 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 to .`)}let j,k=Q();if(t){let e="string"==typeof t?d(t):t;r("/"===h||e.pathname?.startsWith(h),`When overriding the location using \`\` 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 "${h}" but pathname "${e.pathname}" was given in the \`location\` prop.`),j=e}else j=k;let f=j.pathname||"/",v=f;if("/"!==h){let e=h.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=m(e,{pathname:v});X&&(o(g||null!=x,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),o(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${j.pathname}${j.search}${j.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`));let b=le(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},p,e.params),pathname:I([h,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:I([h,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),c,s,n);return t&&b?i.createElement(G.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...j},navigationType:"POP"}},b):b}function ae(){let e=me(),t=F(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},r={padding:"2px 4px",backgroundColor:n},o=null;return X&&(console.error("Error handled by React Router default ErrorBoundary:",e),o=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:r},"ErrorBoundary")," or"," ",i.createElement("code",{style:r},"errorElement")," prop on your route."))),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),s?i.createElement("pre",{style:a},s):null,o)}var re=i.createElement(ae,null),oe=class extends i.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){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement($.Provider,{value:this.props.routeContext},i.createElement(Y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ce({routeContext:e,match:t,children:s}){let n=i.useContext(B);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement($.Provider,{value:e},s)}function le(e,t=[],s=null,n=null){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 a=e,o=s?.errors;if(null!=o){let e=a.findIndex(e=>e.route.id&&void 0!==o?.[e.route.id]);r(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let c=!1,l=-1;if(s)for(let e=0;e=0?a.slice(0,l+1):[a[0]];break}}}return a.reduceRight((e,n,r)=>{let p,d=!1,u=null,h=null;s&&(p=o&&n.route.id?o[n.route.id]:void 0,u=n.route.errorElement||re,c&&(l<0&&0===r?(je("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):l===r&&(d=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,r+1)),g=()=>{let t;return t=p?u:d?h:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(ce,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=s},children:t})};return s&&(n.route.ErrorBoundary||n.route.errorElement||0===r)?i.createElement(oe,{location:s.location,revalidation:s.revalidation,component:u,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}function pe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function de(e){let t=i.useContext(B);return r(t,pe(e)),t}function ue(e){let t=i.useContext(H);return r(t,pe(e)),t}function he(e){let t=function(e){let t=i.useContext($);return r(t,pe(e)),t}(e),s=t.matches[t.matches.length-1];return r(s.route.id,`${e} can only be used on routes that contain a unique "id"`),s.route.id}function me(){let e=i.useContext(Y),t=ue("useRouteError"),s=he("useRouteError");return void 0!==e?e:t.errors?.[s]}var ge={};function je(e,t,s){t||ge[e]||(ge[e]=!0,o(!1,s))}i.memo(function({routes:e,future:t,state:s}){return ne(e,void 0,s,t)});function ke({to:e,replace:t,state:s,relative:n}){r(Z()," may be used only in the context of a component.");let{static:a}=i.useContext(K);o(!a," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:c}=i.useContext($),{pathname:l}=Q(),p=se(),d=P(e,L(c),l,"path"===n),u=JSON.stringify(d);return i.useEffect(()=>{p(JSON.parse(u),{replace:t,state:s,relative:n})},[p,u,n,t,s]),null}function fe(e){r(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function ve({basename:e="/",children:t=null,location:s,navigationType:n="POP",navigator:a,static:c=!1}){r(!Z(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:l,navigator:a,static:c,future:{}}),[l,a,c]);"string"==typeof s&&(s=d(s));let{pathname:u="/",search:h="",hash:m="",state:g=null,key:j="default"}=s,k=i.useMemo(()=>{let e=T(u,l);return null==e?null:{location:{pathname:e,search:h,hash:m,state:g,key:j},navigationType:n}},[l,u,h,m,g,j,n]);return o(null!=k,` is not able to match the URL "${u}${h}${m}" because it does not start with the basename, so the won't render anything.`),null==k?null:i.createElement(K.Provider,{value:p},i.createElement(G.Provider,{children:t,value:k}))}function xe({children:e,location:t}){return ne(be(e),t)}i.Component;function be(e,t=[]){let s=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void s.push.apply(s,be(e.props.children,a));r(e.type===fe,`[${"string"==typeof e.type?e.type:e.type.name}] is not a component. All component children of must be a or `),r(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,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&&(o.children=be(e.props.children,a)),s.push(o)}),s}var _e="get",we="application/x-www-form-urlencoded";function ye(e){return null!=e&&"string"==typeof e.tagName}var Ce=null;var Ae=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Se(e){return null==e||Ae.has(e)?e:(o(!1,`"${e}" is not a valid \`encType\` for \`