_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)(__("<button>View detailed stats</button>","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)(__("<ExternalLink>View on WordPress.com</ExternalLink>","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"};constv=(0,h.Ng)(e=>({isOdysseyStatsEnabled:(0,j.jh)(e)}))(f)},151:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});vari=s(17414),n=s(4568),a=s(61848),r=s(13022),o=s(51609),c=s(26199),l=s(10790);constp=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]);constA=(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});vari=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)
// 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});vari=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});consti={SUCCESS:"success",IN_PROGRESS:"in-progress",PENDING:"pending",FAILED:"failed"}},2467:e=>{"use strict";vart,s="object"==typeofReflect?Reflect:null,i=s&&"function"==typeofs.apply?s.apply:function(e,t,s){returnFunction.prototype.apply.call(e,t,s)};t=s&&"function"==typeofs.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){returnObject.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){returnObject.getOwnPropertyNames(e)};varn=Number.isNaN||function(e){returne!=e};functiona(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){returnnewPromise(function(s,i){functionn(s){e.removeListener(t,a),i(s)}functiona(){"function"==typeofe.removeListener&&e.removeListener("error",n),s([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,s){"function"==typeofe.on&&g(e,"error",t,s)}(e,n,{once:!0})})},a.EventEmitter=a,a.prototype._events=void0,a.prototype._eventsCount=0,a.prototype._maxListeners=void0;varr=10;functiono(e){if("function"!=typeofe)thrownewTypeError('The "listener" argument must be of type Function. Received type '+typeofe)}functionc(e){returnvoid0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}functionl(e,t,s,i){varn,a,r,l;if(o(s),void0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void0!==a.newListener&&(e.emit("newListener",t,s.listener?s.listener:s),a=e._events),r=a[t]),void0===r)r=a[t]=s,++e._eventsCount;elseif("function"==typeofr?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;varp=newError("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)}returne}functionp(){if(!this.fired)returnthis.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}functiond(e,t,s){vari={fired:!1,wrapFn:void0,target:e,type:t,listener:s},n=p.bind(i);returnn.listener=s,i.wrapFn=n,n}functionu(e,t,s){vari=e._events;if(void0===i)return[];varn=i[t];returnvoid0===n?[]:"function"==typeofn?s?[n.listener||n]:[n]:s?function(e){for(vart=newArray(e.length),s=0;s<t.length;++s)t[s]=e[s].listener||e[s];returnt}(n):m(n,n.length)}functionh(e){vart=this._events;if(void0!==t){vars=t[e];if("function"==typeofs)return1;if(void0!==s)returns.length}return0}functionm(e,t){for(vars=newArray(t),i=0;i<t;++i)s[i]=e[i];returns}functiong(e,t,s,i){if("function"==typeofe.on)i.once?e.once(t,s):e.on(t,s);else{if("function"!=typeofe.addEventListener)thrownewTypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeofe);e.addEventListener(t,functionn(a){i.once&&e.removeEventListener(t,n),s(a)})}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,
__("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,{})]})}}constw=(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});vari=s(26556),n=s(94461),a=s(8857);constr=(0,i.Zz)((0,i.Tw)(n.A),"object"==typeofwindow&&void0!==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});vari=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});vari=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);constE=(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:()=>_});vari=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;classbextendsl.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=()=>{conste=this.props.newRecommendationsCount>0;g.A.tracks.recordJetpackClick({target:"nav_item",path:"recommendations",is_new_recommendations_bubble_visible:e})};componentDidMount(){this.trackNewRecommendations()}render(){lete;constt=`${`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}`}`;lets=(0,i.A)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-plans-no-site",{query:t});returnthis.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")}),!
_x("Recommendations <count>%d</count>","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});vari=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)(classextendsr.Component{trackClickConfigure(){u.A.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}render(){conste=this.props.getOptionValue("publicize"),t=this.props.userCanManageModules;if(!t&&!e)returnnull;consts=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});consti="en",n="USD"},9079:(e,t,s)=>{"use strict";s.d(t,{A:()=>j});vari=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.__;classgextendsc.Component{staticpropTypes={inOfflineMode:o().bool.isRequired,siteRawUrl:o().string.isRequired};staticdefaultProps={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
__("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});vari=s(28446);varn={notify:function(){},get:function(){return[]}};functiona(e,t){vars,a=n;functionr(){c.onStateChange&&c.onStateChange()}functiono(){varn,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(vare=o;e;)e.callback(),e=e.next})},get:function(){for(vare=[],t=o;t;)e.push(t),t=t.next;returne},subscribe:function(e){vart=!0,s=c={callback:e,next:null,prev:c};returns.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)}}})}varc={addNestedSub:function(e){returno(),a.subscribe(e)},notifyNestedSubs:function(){a.notify()},handleChangeWrapper:r,isSubscribed:function(){returnBoolean(s)},trySubscribe:o,tryUnsubscribe:function(){s&&(s(),s=void0,a.clear(),a=n)},getListeners:function(){returna}};returnc}},11976:(e,t,s)=>{"use strict";s.d(t,{CO:()=>c,MB:()=>l,mh:()=>p});vari=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. */
__("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});vari=s(13022),n=s(10790);consta=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});vari=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(11236),c=s(19950),l=s(10790);classpextendsa.PureComponent{staticpropTypes={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){consts=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})}}constd=(0,r.Ng)((e,{source:t})=>({upgradeUrl:(0,c.Q4)(e,t)}))(p)},15030:(e,t,s)=>{"use strict";functioni(e){returnfunction(t,s){vari=e(t,s);functionn(){returni}returnn.dependsOnOwnProps=!1,n}}functionn(e){returnnull!==e.dependsOnOwnProps&&void0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}functiona(e,t){returnfunction(t,s){s.displayName;vari=function(e,t){returni.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e)};returni.dependsOnOwnProps=!0,i.mapToProps=function(t,s){i.mapToProps=e,i.dependsOnOwnProps=n(e);vara=i(t,s);return"function"==typeofa&&(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});vari=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.__;constk=(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")},[]);letm=__("Add Plans","jetpack");returnt&&(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?void0:i,onClick:h,disabled:!o||u,primary:!0,rna:!0,children:m})]})})}))},15203:(e,t,s)=>{"use strict";s.d(t,{E:()=>u});vari=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=classextendsa.Component{render(){conste=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:__("Protectsyoursitefromtraditionalanddistributedbrute
__("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(){conste=!((0,i.isWoASite)()&&this.props.isConnectionOwner),t=(0,j.jsx)(p.A,{asBanner:!0,connectUser:!0,from:"connection-settings"});lets="";returnthis.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 <span>%s</span>","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};constf=(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});vari=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;classwextendsc.Component{staticpropTypes={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};staticdefaultProps={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(){lete,t,s="";constn=(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","Sho
__("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};constu=d},17979:(e,t,s)=>{"use strict";s.d(t,{A:()=>I});vari=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})});classPextendsh.Component{staticpropTypes={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};staticdefaultProps={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){constt=(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;returnn("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)(__("<a>View backup details</a>.","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 <a>install and activate</a> 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)returnthis.renderUndo();lett=__("We are backing up your site daily.","jetpack");returne&&(t=(0,o.createInterpolateElement)(__("Every change you make will be backed up, in real-time, as you edit your site. <ExternalLink>Learn More</ExternalLink>","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}rende
__("(opens in a new tab)","jetpack")})]})]})]})})}},18280:(e,t,s)=>{"use strict";s.d(t,{Uc:()=>p,Xx:()=>d,ic:()=>c,jo:()=>l});vari=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=>{constc={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"==typeofe&&["jetpack_testimonial","jetpack_portfolio"].some(t=>tine)&&(c.success=__("Updated settings. Refreshing page…","jetpack")),s((0,a.fj)("module-setting-update")),s((0,a.fj)("module-setting-update-success"));constl=["dismiss_empty_stats_card","dismiss_dash_backup_getting_started","dismiss_dash_agencies_learn_more"];return"object"!=typeofe||l.some(t=>tine)||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"!=typeofe||l.some(t=>tine)||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"}))})};functionu(e,t){lets=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});vari=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;classwextendsc.Component{togglePrivacySetting=()=>{this.props.updateOptions({videopress_private_enabled_for_site:!this.props.getOptionValue("videopress_private_enabled_for_site")})};render(){conste=this.props.isModuleFound("videopress");if(!e)returnnull;constt=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 <strong>%dGB</strong> 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})]})}}consty=(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});vari=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);letd=!1;classuextendsl.Component{staticpropTypes={style:c().object,width:c().oneOf(["wide","medium","narrow"]),className:c().string,title:c().string,initialFocus:c().string,onRequestClose:c().func};staticdefaultProps={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(){lete;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={}}constc=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};consth=u},18767:(e,t,s)=>{"use strict";s.d(t,{J:()=>r,M:()=>a});vari=s(21453),n=s(46755);consta=()=>e=>(e({type:n.ymV}),i.Ay.fetchWafSettings().then(t=>(e({type:n.ObO,settings:t})
__("An error occurred while trying to communicate with the site REST API. Extra debug info: %s","jetpack"),JSON.stringify(s)))}returnl}asyncfunctiono(e,t,s,i=null,a){consto=awaitr(e,t,s,i,a);letc,l;try{c=awaito.text()}catch(e){thrownewn.h(o.status,null,e)}try{l=JSON.parse(c)}catch(e){thrownewn.h(o.status,c,e)}if(!o.ok)thrownewn.h(o.status,l,null);returnl}constc={get:function(e,t,s){returno("get",e,t,null,s)},post:function(e,t,s=null,i){returno("post",e,t,s,i)}}},20284:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});vari=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"});classwextendsl.Component{staticdisplayName="PrivacySettings";staticpropTypes={searchTerm:c().string,active:c().bool,toggleTracking:c().func,getOptionValue:c().func,isSavingAnyOption:c().func};staticdefaultProps={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=()=>{conste=this.props.trackingSettings.tracks_opt_out;this.props.setTrackingSettings(!e)};UNSAFE_componentWillMount(){this.props.fetchTrackingSettings()}render(){const{searchTerm:e,active:t}=this.props;returne||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. <cookiePolicyLink>Learn more</cookiePolicyLink>.","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 <pp>privacy policy</pp>.","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. <cookiePolicyLink>Read about these</cookiePolicyLink> 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 <privacyCenterLink>Privacy Center</privacyCenterLink>.","jetpack"),{privacyCenterLink:(0,v.jsx)(n.ExternalLink,{href:(0,i.A)("jetpack-support-privacy"),onClick:_,rel:"noopener noreferrer"})})})]})})]}):null}}consty=(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)())}))(
__("%s has been disabled by a site administrator.","jetpack"),e.name)});constt=!!this.props.getOptionValue(e.module);return(0,j.jsx)(u.A,{...this.props,module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"]),children:(0,j.jsxs)(h.A,{module:e,support:{text:__("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:(0,i.A)("jetpack-support-site-verification-tools")},children:[(0,j.jsx)(d.j,{slug:e.module,activated:t,toggling:this.props.isSavingAnyOption([e.module]),disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow,children:(0,j.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Verify site ownership with third party services","jetpack")})}),(0,j.jsx)("p",{children:(0,a.createInterpolateElement)(/* translators: placeholders are links to external sites. */
__("Note that <b>verifying your site with these services is not necessary</b> in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the <support>full instructions</support> if you are having trouble. Supported verification services: <google>Google Search Console</google>, <bing>Bing Webmaster Center</bing>, <pinterest>Pinterest Site Verification</pinterest>, <yandex>Yandex.Webmaster</yandex>, and <facebook>Facebook Domain Verification</facebook>.","jetpack"),{b:(0,j.jsx)("strong",{}),support:(0,j.jsx)("a",{href:(0,i.A)("jetpack-support-site-verification-tools")}),google:(0,j.jsx)(n.ExternalLink,{rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:(0,j.jsx)(n.ExternalLink,{rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:(0,j.jsx)(n.ExternalLink,{rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:(0,j.jsx)(n.ExternalLink,{rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"}),facebook:(0,j.jsx)(n.ExternalLink,{rel:"noopener noreferrer",href:"https://business.facebook.com/settings/"})})}),(0,j.jsxs)(c.dV,{children:[(0,j.jsx)(g.A,{value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234"),...this.props,disabled:this.props.isUpdating("google")||!t}),(0,j.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,j.jsx)("span",{children:__("Bing:","jetpack")}),(0,j.jsx)(m.A,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})]},"verification_service_bing"),(0,j.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,j.jsx)("span",{children:__("Pinterest:","jetpack")}),(0,j.jsx)(m.A,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})]},"verification_service_pinterest"),(0,j.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,j.jsx)("span",{children:__("Yandex:","jetpack")}),(0,j.jsx)(m.A,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})]},"verification_service_yandex"),(0,j.jsxs)(c.lR,{className:"jp-form-input-with-prefix",children:[(0,j.jsx)("span",{children:__("Facebook:","jetpack")}),(0,j.jsx)(m.A,{name:"facebook",value:this.getSiteVerificationValue("facebook"),placeholder:this.getMetaTag("facebook","1234"),className:"code",disabled:this.props.isUpdating("facebook")||!t,onChange:this.props.onOptionChange})]},"verification_service_facebook")]})]})})}}constf=(0,p.t)(k)},24617:(e,t,s)=>{"use strict";s.d(t,{F:()=>u});vari=s(12961),n=s(93308),a=s(56427),r=s(27723),o=s(28120),c=s.n(o),l=s(31479),p=s(37150),d=s(10790);const__=r.__,u=e=>{const{currentRecommendationsStep:t,siteAdminUrl:s,siteRawUrl:r,productId:o}=e,[c,u]=(0,l.A)(),h=e=>c.map(e=>e.name).includes(e),m=(0,p.p)(o),g=h("Jetpack"),j=h("Jetpack Social"),k="jetpack_social_advanced"===m||"jetpack_social_basic"===m,f=h("Jetpack Protect");if(u)return(0,d.jsx)(a.Button,{className:"jp-license-activation-screen-success-info--button",children:(0,d.jsx)(n.A,{})});if(k&&(g||j))return(0,d.jsx)(a.Button,{className:"jp-license-activation-screen-success-info--button",href:s+(g?"admin.php?page=jetpack#/recommendations/"+("jetpack_social_advanced"===m?"welcome-social-advanced":"welcome-social-basic"):"admin.php?page=jetpack-social"),children:__("Configure my site","jetpack")});if("jetpack_scan"===m){conste=f?s+"admin.php?page=jetpack-protect":(0,i.A)("jetpack-license-activation-success-scan",{site:r});return(0,d.jsx)(a.Button,{className:"jp-license-activation-screen-success-info--button",href:e,children:__("View scan results","jetpack")})}return"not-started"===
(0,n.sprintf)(__("Tell us more about %s.","jetpack"),l),description:__("To help you get the most from Jetpack, tell us about your site. Check all that apply:","jetpack"),answer:b,sidebarCard:v?(0,g.jsx)(u.A,{}):null,illustration:d.h2,illustrationClassName:"jp-recommendations-site-type__illustration"})})},26773:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});vari=s(29491),n=s(49788);consta=["sm","md","lg"],r=(e,t)=>{consts=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],[o,c,l]=a,p={sm:(0,i.useMediaQuery)(n.A[o]),md:(0,i.useMediaQuery)(n.A[c]),lg:(0,i.useMediaQuery)(n.A[l])};returns.map((e,t)=>{consts=r[t];returns?((e,t,s)=>{consti=a.indexOf(e),n=i+1,r=t.includes("=");leto=[];returnt.startsWith("<")&&(o=a.slice(0,r?n:i)),t.startsWith(">")&&(o=a.slice(r?i:n)),o?.length?o.some(e=>s[e]):s[e]})(e,s,p):p[e]})}},26889:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});consti={container:"VHYulMcpzbr10HWR0iSE","icon-wrapper":"FGpSkMCiIHQjszcV0dbn","close-button":"KoWZcCwhW13xvkEb0QON","main-content":"smrfczkC53EaFM8OJUXs",title:"IKYRWoPwt9xOVEx1wzNS","action-bar":"qM0qY6mPYp1MPN54A3Kg","is-error":"A5YkDkkXuiYgavrY6Nux",icon:"y_IPyP1wIAOhyNaqvXJq","is-warning":"cT5rwuPMZzWvi5o6shMl","is-info":"yo0O3uvNomPsYUXFCpAS","is-success":"oZdDFf1jBLkzn5ICCC6x"}},27118:(e,t,s)=>{leti={};try{i=s(74277)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),i={missingConfig:!0}}constn=e=>Object.hasOwn(i,e);e.exports={jetpackConfigHas:n,jetpackConfigGet:e=>{if(!n(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';returni[e]}}},27294:(e,t,s)=>{"use strict";s.d(t,{p:()=>a});vari=s(27723),n=s(10790);const__=i.__,_x=i._x,a=({type:e})=>"product-expired"===e?(0,n.jsx)("div",{className:"jp-product-activated-label expired",children:(0,n.jsx)("span",{className:"jp-product-expired-label__text",children:__("Expired","jetpack")})}):(0,n.jsx)("div",{className:"jp-product-activated-label"+("never-expires"===e?" never-expires":""),children:(0,n.jsx)("span",{className:"jp-product-activated-label__text",children:"never-expires"===e?_x("Never expires","Label for a subscription that never expires","jetpack"):_x("Subscription active","Label for an active subscription","jetpack")})})},27530:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});vari=s(27723),n=s(51609),a=s(84952),r=s(81715),o=s(74209),c=s(73087),l=s(11236),p=s(17259),d=s(10790);const__=i.__,u=(0,a.Ng)(e=>({isDismissed:(0,p.Fj)(e)}),e=>({dismiss:()=>e((0,p.Xx)({dismiss_dash_backup_getting_started:!0}))}))(({isDismissed:e,dismiss:t})=>{consts=(0,n.useCallback)(()=>{t(),l.A.tracks.recordEvent("jetpack_backup_getting_started_video_dismiss",{position:"at_a_glance"})},[t]),i=(0,n.useCallback)(()=>{l.A.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"at_a_glance"})},[]);returne?null:(0,d.jsxs)(o.A,{className:"dash-backup-getting-started",children:[(0,d.jsx)(r.A,{borderless:!0,compact:!0,className:"dash-backup-getting-started__dismiss",onClick:s,children:(0,d.jsx)("span",{className:"dashicons dashicons-no"})}),(0,d.jsx)("a",{href:c.W_,target:"_blank",rel:"noreferrer",children:(0,d.jsx)("img",{className:"dash-backup-getting-started__thumbnail",src:c.d0+"backup-getting-started-thumbnail.png",srcSet:`${c.d0+"backup-getting-started-thumbnail.png"} 1x, ${c.d0+"backup-getting-started-thumbnail-2x.png"} 2x`,alt:""})}),(0,d.jsxs)("div",{className:"dash-backup-getting-started__content",children:[(0,d.jsx)("h3",{className:"dash-backup-getting-started__header",children:__("Getting started with Jetpack Backup","jetpack")}),(0,d.jsx)("p",{className:"dash-backup-getting-started__text",children:__("A short video guide on how to back up your website","jetpack")})]}),(0,d.jsx)(r.A,{className:"dash-backup-getting-started__cta",href:c.W_,onClick:i,target:"_blank",rel:"noreferrer",compact:!0,primary:!0,children:__("Watch the video","jetpack")})]})})},27658:(e,t,s)=>{"use strict";s.d(t,{E:()=>a});vari=s(10790),n=s(80132);consta=e=>(0,i.jsx)(n.O,{...e,te
__("Error updating settings. %s","jetpack"),e.message||e.code),{id:"module-setting-update"})})};toggleIpAllowList=()=>{this.setState({...this.state,ipAllowListEnabled:!this.state.ipAllowListEnabled},this.onSubmit)};handleIpAllowListChange=e=>{this.setState({...this.state,ipAllowList:e?.target?.value})};currentIpIsSafelisted=()=>!!this.state.ipAllowList?.includes(this.props.currentIp);addToSafelist=()=>{conste=this.state.ipAllowList+(0>=this.state.ipAllowList.length?"":"\n")+this.props.currentIp;this.setState({...this.state,ipAllowList:e})};render(){conste=this.props.isUnavailableInOfflineMode("waf"),t=this.props.isUnavailableInOfflineMode("protect"),s=e&&t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),a=(0,k.jsx)("div",{className:"waf__header",children:(0,k.jsx)("span",{children:_x("Always allowed IP addresses","Settings header","jetpack")})});return(0,k.jsxs)(d.A,{...this.props,header:a,module:"waf",onSubmit:this.onSubmit,hideButton:!0,children:[(0,k.jsx)(h.A,{}),(0,k.jsx)(u.A,{disableInOfflineMode:!0,support:{text:"Adding an IP address to the allow list will prevent it from being blocked by Jetpack's firewall and brute force protection features.",link:this.props.getModule("waf").learn_more_button},children:(0,k.jsx)(c.dV,{children:(0,k.jsxs)("div",{className:"waf__settings__toggle-setting",children:[(0,k.jsx)(i.A,{checked:this.props.settings?.ipAllowListEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.ipAllowListEnabled!==this.props.settings?.ipAllowListEnabled,disabled:s,onChange:this.toggleIpAllowList,label:(0,k.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Prevent Jetpack's security features from blocking specific IP addresses.","jetpack")})}),(this.state.ipAllowListEnabled||!!this.state.ipAllowList)&&(0,k.jsx)(m.A,{className:"waf__settings__ips",disabled:s||this.props.isUpdatingWafSettings||!this.props.settings?.ipAllowListEnabled,name:"ipAllowList",placeholder:__("Example:","jetpack")+"\n12.12.12.1\n12.12.12.2",value:this.state.ipAllowList,onChange:this.handleIpAllowListChange}),this.state.ipAllowListEnabled&&(0,k.jsxs)("div",{className:"waf__settings__ips__button-container",children:[this.props.currentIp&&(0,k.jsxs)("div",{className:"current-ip",children:[(0,k.jsx)("div",{className:"jp-form-label-wide",children:(0,n.sprintf)(/* translators: %s: an IP address. */
__("Your current IP: %s","jetpack"),this.props.currentIp)}),(0,k.jsx)(o.A,{rna:!0,compact:!0,disabled:this.props.isUpdatingWafSettings||!this.props.settings?.ipAllowListEnabled||this.currentIpIsSafelisted()||this.props.isSavingAnyOption(["jetpack_waf_ip_allow_list"]),onClick:this.addToSafelist,children:__("Add to Allow List","jetpack")})]}),(0,k.jsx)(o.A,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:this.state.ipAllowList===this.props.settings?.ipAllowList||this.props.isUpdatingWafSettings&&this.state.ipAllowList!==this.props.settings?.ipAllowList,onClick:this.onSubmit,children:__("Save allow list","jetpack")})]})]})})})]})}},v=(0,r.Ng)(e=>({isFetchingSettings:(0,j._e)(e),isUpdatingWafSettings:(0,j.EK)(e),settings:(0,j.IE)(e)}),e=>({updateWafSettings:t=>e((0,g.J)(t)),createNotice:(t,s,i)=>e((0,l.Fc)(t,s,i)),removeNotice:t=>e((0,l.fj)(t))}))((0,p.t)(f))},30054:(e,t,s)=>{"use strict";s.d(t,{O:()=>i});consti="subscriptions"},30200:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});vari=s(24649),n=s(13022),a=s(28120),r=s.n(a),o=s(51609),c=s(72714),l=s(10790);constp=()=>{};classdextendso.Component{staticpropTypes={autoPosition:r().bool,className:r().string,id:r().string,isVisible:r().bool,position:r().string,rootClassName:r().string,status:r().string,showDelay:r().number,showOnMobile:r().bool};staticdefaultProps={showDelay:100,position:"top",showOnMobile:!1};render(){if(!this.props.showOnMobile&&(0,i.Fr)())returnnull;conste=(0,n.A)("dops-popover","dops-tooltip",`is-${this.props.position}`,this.props.className);return(0,l.jsx)(c.A,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:p,position:this.props.position,showDelay:this.props.showDelay,children:this.props.children})}}constu=d},30704:(e,t,s)=>{"use strict";functioni(e,t=void0){return"string"==typeofe?e:e&&e.toStringinstanceofFunction?e.toString():t}s.d(t,{w:()=>i})},30724:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});consti={reset:"WQVtrU6q0L1Igcj7wCrQ","headline-medium":"UujoBFTnQNY2cWU2SIsH","headline-small":"TeGO5V_thHw5lDAm1_2M","headline-small-regular":"WolQzb2MsSgiNmLtc7_j","title-medium":"hUB0JT8p1T2Hw28N6qC8","title-medium-semi-bold":"gKZWDv5chz3_O3Syp74H","title-small":"zY2No8Ga4b8shbOQGhnv",body:"tIj0D1t8Cc892ikmgFPZ","body-small":"KdcN0BnOaVeVhyLRKqhS","body-extra-small":"dso3Rh3tl3Xv1GumBktz","body-extra-small-bold":"mQ1UlbN9u4Mg9byO8m7v",label:"PItlW5vRExLnTj4a8eLE","m-0":"TwRpPlktzxhmFVeua7P5","mx-0":"zVfqx7gyb3o9mxfGynn1","my-0":"iSHVzNiB9iVleGljaQxy","mt-0":"xqDIp6cNVr_E6RXaiPyD","mr-0":"S8EwaXk1kyPizt6x4WH2","mb-0":"ODX5Vr1TARoLFkDDFooD","ml-0":"cphJ8dCpfimnky7P2FHg","m-1":"PFgIhNxIyiSuNvQjAIYj","mx-1":"M2jKmUzDxvJjjVEPU3zn","my-1":"io15gAh8tMTNbSEfwJKk","mt-1":"rcTN5uw9xIEeMEGL3Xi_","mr-1":"CQSkybjq2TcRM1Xo9COV","mb-1":"hfqOWgq6_MEGdFE82eOY","ml-1":"I8MxZQYTbuu595yfesWA","m-2":"kQkc6rmdpvLKPkyoJtVQ","mx-2":"j6vFPxWuu4Jan2ldoxpp","my-2":"hqr39dC4H_AbactPAkCG","mt-2":"c3dQnMi16C6J6Ecy4283","mr-2":"YNZmHOuRo6hU7zzKfPdP","mb-2":"Db8lbak1_wunpPk8NwKU","ml-2":"ftsYE5J9hLzquQ0tA5dY","m-3":"Det4MHzLUW7EeDnafPzq","mx-3":"h_8EEAztC29Vve1datb5","my-3":"YXIXJ0h1k47u6hzK8KcM","mt-3":"soADBBkcIKCBXzCTuV9_","mr-3":"zSX59ziEaEWGjnpZa4uV","mb-3":"yrVTnq_WBMbejg89c2ZQ","ml-3":"UKtHPJnI2cXBWtPDm5hM","m-4":"guexok_Tqd5Tf52hRlbT","mx-4":"oS1E2KfTBZkJ3F0tN7T6","my-4":"DN1OhhXi6AoBgEdDSbGd","mt-4":"ot2kkMcYHv53hLZ4LSn0","mr-4":"A1krOZZhlQ6Sp8Cy4bly","mb-4":"pkDbXXXL32237M0hokEh","ml-4":"XXv4kDTGvEnQeuGKOPU3","m-5":"yGqHk1a57gaISwkXwXe6","mx-5":"X8cghM358X3DkXLc9aNK","my-5":"GdfSmGwHlFnN2S6xBn1f","mt-5":"yqeuzwyGQ7zG0avrGqi_","mr-5":"g9emeCkuHvYhveiJbfXO","mb-5":"Lvk3dqcyHbZ07QCRlrUQ","ml-5":"r3yQECDQ9qX0XZzXlVAg","m-6":"aQhlPwht2Cz1X_63Miw0","mx-6":"JyHb0vK3wJgpblL9s5j8","my-6":"cY2gULL1lAv6WPNIRuf3","mt-6":"NBWQ9Lwhh_fnry3lg_p7","mr-6":"yIOniNe5E40C8fWvBm5V","mb-6":"t30usboNSyqfQWIwHvT3","ml-6":"Nm_TyFkYCMhOoghoToKJ","m-7":"C4qJKoBXpgKtpmrqtEKB","mx-7":"S93Srbu6NQ_PBr7DmTiD","my-7":"fJj8k6gGJDks3crUZxOS","
__("Be sure your %1$d posts, %2$d comments, and more information are safely backed up with Jetpack","jetpack"),e,t)})]})},33318:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});vari=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(1194),c=s(48740);classlextendsa.Component{staticpropTypes={isFetchingWafSettings:n().bool,isOfflineMode:n().bool};staticdefaultProps={isFetchingWafSettings:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingWafSettings||this.props.isOfflineMode||this.props.fetchWafSettings()}render(){returnnull}}constp=(0,r.Ng)(e=>({isFetchingWafSettings:(0,c._e)(e),isOfflineMode:(0,o.hN)(e)}),e=>({fetchWafSettings:()=>e((0,c.Mg)())}))(l)},33832:(e,t,s)=>{"use strict";s.d(t,{A:()=>j});vari=s(39384),n=s(27723),a=s(28120),r=s.n(a),o=s(51609),c=s(84952),l=s(31121),p=s(70284),d=s(11236),u=s(46755),h=s(1194),m=s(10790);const__=n.__,g=e=>{const{restoreConnection:t}=(0,i.useRestoreConnection)(),s=(0,o.useCallback)(()=>{constt={location:"dashboard",purpose:"reconnect"};returne.errorCode&&(t.error_code=e.errorCode),e.errorData&&(e.errorData.api_error_code&&(t.api_error_code=e.errorData.api_error_code),e.errorData.api_http_code&&(t.api_http_code=e.errorData.api_http_code)),t},[e.errorCode,e.errorData]),n=(0,o.useCallback)(()=>(e.beforeReconnectSite(),t(!1).then(t=>{"in_progress"===t.status&&e.initiateUserConnection(t.authorizeUrl)}).catch(t=>e.reconnectFailed(t))),[e,t]),a=(0,o.useCallback)(()=>{e.isReconnectingSite||(d.A.tracks.recordEvent("jetpack_termination_error_notice_click",s()),n())},[e.isReconnectingSite,s,n]);return(0,o.useEffect)(()=>{d.A.tracks.recordEvent("jetpack_termination_error_notice_view",s())},[s]),(0,m.jsx)(p.A,{icon:e.icon,onClick:a,children:e.children})};g.propTypes={icon:r().string,errorCode:r().string,errorData:r().object,action:r().string};constj=(0,c.Ng)(e=>({isReconnectingSite:(0,h.Vs)(e)}),e=>({beforeReconnectSite:()=>{e({type:u._ce}),e((0,l.Fc)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"}))},initiateUserConnection:t=>{e({type:u.c30}),e({type:u.gbL,connectUrl:t}),e((0,h.k0)())},reconnectFailed:t=>{e({type:u.jzm,error:t}),e((0,l.fj)("reconnect-jetpack")),e((0,l.Fc)("is-error",(0,n.sprintf)(/* translators: %s: the error. */
__("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}}))(g)},33907:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});vari=s(13513),n=s(28120),a=s.n(n),r=s(24617),o=s(50703),c=s(1972),l=s(10790);constp=e=>{const{productId:t,siteRawUrl:s,siteAdminUrl:n,currentRecommendationsStep:a}=e;return(0,l.jsxs)("div",{className:"jp-license-activation-screen-success-info",children:[(0,l.jsx)("div",{className:"jp-license-activation-screen-success-info--content",children:(0,l.jsx)(i.A,{showText:!1,height:48})}),(0,l.jsx)(o.A,{siteRawUrl:s,productId:t}),(0,l.jsxs)("div",{className:"jp-license-activation-screen-success-info--buttons",children:[(0,l.jsx)(r.F,{currentRecommendationsStep:a,siteAdminUrl:n,siteRawUrl:s,productId:t}),(0,l.jsx)(c.m,{siteRawUrl:s,productId:t})]})]})};p.propTypes={siteRawUrl:a().string,productId:a().number,siteAdminUrl:a().string,currentRecommendationsStep:a().string};constd=p},33919:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});vari=s(12961),n=s(27723),a=s(28120),r=s.n(a),o=s(84952),c=s(81715),l=s(19950),p=s(39252),d=s(10790);const__=n.__,u=({partnerCoupon:e,siteRawUrl:t})=>{if("object"!=typeofe)returnnull;consts=(0,d.jsx)(c.A,{primary:!0,href:(0,i.A)("jetpack-plugin-partner-coupon-checkout",{path:e.product.slug,site:t,query:`coupon=${e.coupon_code}`}),children:__("Redeem","jetpack")});return(0,d.jsx)(p.A,{productSlug:e.product.slug,action:s,title:(0,n.sprintf)(/* translators: %s: Jetpack product or plan name. */
__("Get %s free for one year!","jetpack"),e.product.title),tagLine:(0,n.sprintf)(/* translators: %1$s: the name of a Jetpack partner, %2$s: the name of a Jetpack product or plan. */
__("Redeem your %1$s coupon to get started with %2$s for free the first year!","jetpack"),e.partner.name,e.product.title),trackingId:"jetpack-partner-coupon",additionalEventProperties:{coupon:e.coupon_code}})};u.propTypes={partnerCoupon:r().oneOfType([r().object,r().bool]).isRequired,siteRawUrl:r().string.isRequired};consth=(0,o.Ng)(e=>({partnerCoupon:(0,l.ly)(e)}))(u)},33995:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>c,GG:()=>g,IW:()=>h,Kb:()=>p,W7:()=>d,Yp:()=>x,Z1:()=>j,ZH:()=>f,_J:()=>k,d1:()=>_,eI:()=>u,f_:()=>m,gp:()=>b,j9:()=>v,ro:()=>l});vari=s(66087),n=s(26556),a=s(46755),r=s(76478);consto={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},c=(0,n.HY)({items:(e={},t)=>{switch(t.type){casea.X2c:returnObject.assign({},t.initialState.getModules);casea.ooH:returnObject.assign({},e,t.modules);casea.s2d:returnObject.assign({},e,{[t.module]:Object.assign({},e[t.module],{activated:!0})});casea.tiw:returnObject.assign({},e,{[t.module]:Object.assign({},e[t.module],{activated:!1})});casea.PKf:{consts=Object.assign({},e[t.module]);returnObject.keys(t.newOptionValues).forEach(e=>{s.options[e].current_value=t.newOptionValues[e]}),Object.assign({},e,{[t.module]:s})}default:returne}},requests:(e=o,t)=>{switch(t.type){casea.LK9:returnObject.assign({},e,{fetchingModulesList:!0});casea.spT:casea.ooH:returnObject.assign({},e,{fetchingModulesList:!1});casea.EqR:returnObject.assign({},e,{activating:Object.assign({},e.activating,{[t.module]:!0})});casea.Fdt:casea.s2d:returnObject.assign({},e,{activating:Object.assign({},e.activating,{[t.module]:!1})});casea.dM3:returnObject.assign({},e,{deactivating:Object.assign({},e.deactivating,{[t.module]:!0})});casea.Mcz:casea.tiw:returnObject.assign({},e,{deactivating:Object.assign({},e.deactivating,{[t.module]:!1})});casea.xf2:{consts=Object.assign({},e.updatingOption);returns[t.module]=Object.assign({},s[t.module]),Object.keys(t.newOptionValues).forEach(e=>{s[t.module][e]=!0}),Object.assign({},e,{updatingOption:Object.assign({},e.updatingOption,s)})}casea.G2:casea.PKf:{consts=Object.assign({},e.updatingOption);returns[t.module]=Object.assign({},s[t.module]),Object.keys(t.newOptionValues).forEach(e=>{s[t.module][e]=!1}),Object.assign({},e,{updatingOption:Object.assign({},e.updatingOption,s)})}default:returne}}});functionl(e,t){return!!e.jetpack.modules.requests.activating[t]}functionp(e,t,s){returne.jetpack.modules.items?.[t]?.options?.[s]?.current_value}functiond(e,t,s){returne.jetpack.modules.items?.[t]?.options?.[s]?.enum_labels??!1}functionu(e){returne.jetpack.modules.items}functionh(e){returnObject.keys(e.jetpack.modules.items).filter(t=>e.jetpack.modules.items[t].activated)}functionm(e,t){returne.jetpack.modules.items?.[t]??{}}functiong(e){returnObject.keys(e.jetpack.modules.items).filter(t=>e.jetpack.modules.items[t].requires_connection)}functionj(e){returnObject.keys(e.jetpack.modules.items).filter(t=>e.jetpack.modules.items[t].requires_user_connection)}functionk(e,t=[]){consts=Object.keys(u(e));return0<(0,i.intersection)(s,t).length}functionf(e){returnk(e,["carousel","photon","photon-cdn","search","videopress"])}functionv(e){returnk(e,["protect","sso","vaultpress"])||(0,r.gT)(e,"akismet/akismet.php")}functionx(e,t){return!!e.jetpack.modules.items?.[t]?.activated}functionb(e,t){returnObject.keys(e.jetpack.modules.items).includes(t)}function_(e,t){returne.jetpack.modules.items?.[t]?.override??!1}},34394:(e,t,s)=>{"use strict";s.d(t,{h:()=>r});vari=s(27723),n=s(30704),a=s(17001);const__=i.__;classrextendsError{constructor(e,t,s){super(),this.httpCode=e,this.body=t,this.parseError=s}getmessage(){switch(this.httpCode){case403:returnthis.getRestApiErrorMessage();case200:if(this.parseError)return(0,i.sprintf)(/* Translators: %s refers to a browser-supplied error message (hopefully already in the right language) */
__("Received invalid response while communicating with your WordPress site: %s","jetpack"),this.parseError.message)}return(0,i.sprintf)(/* Translators: %d refers to numeric HTTP error code */
__("HTTP %d error received while communicating with the server.","jetpack"),this.httpCode)}getDisplayBody(){return(0,a.O)(this.body)?JSON.stringify(this.body,null," "):(0,n.w)(this.body,"").substring(0,1e3)}getRestApiErrorMessage(){return__("Your site's REST API does not seem to be accessible. Jetpack Boost requires access to your REST API in order to receive site performance scores. Please make sure that your site's REST API is active and accessible, and try again.","jetpack")}}},34976:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});consti={toggle:"gecp_0Z0owRZtj8JAYir","is-small":"qgKXEdMmHsIK84VDnLO2","no-label":"Vy6dbB4PsGKm8BDqzJ9J","is-toggling":"ykWv7fKpkVW_vpAoddu4"}},35392:(e,t,s)=>{"use strict";s.d(t,{g:()=>i});consti=(e,t,s)=>{if(!e||!t||!s)return;consti=parseInt(e?.discount,10);if(Number.isNaN(i))return;constn=s.map(({slug:e})=>e),a=t.filter(({product_slug:e})=>n.includes(e)).map(({original_price:e,raw_price:t})=>{if(!e)return;consts=(e-t*(1-i/100))/e;returnMath.round(100*s)}).filter(Boolean);returna.length?Math.max(...a):void0}},35503:(e,t,s)=>{"use strict";s.d(t,{z:()=>h});vari=s(27723),n=s(51609),a=s(84952),r=s(81715),o=s(54281),c=s(11236),l=s(1194),p=s(19950),d=s(26571),u=s(10790);const__=i.__,h=(0,a.Ng)(e=>({canEditPosts:(0,p.jM)(e),canManageOptions:(0,p.hN)(e),hasConnectedOwner:(0,l.BG)(e),isCurrentUserLinked:(0,l._U)(e),isSiteConnected:(0,l.iV)(e),activeModules:(0,d.IW)(e),siteConnectionStatus:(0,l.i$)(e)}))(e=>{const{activeModules:t,canEditPosts:s,canManageOptions:i,hasConnectedOwner:a,isCurrentUserLinked:l,isSiteConnected:p,location:d={pathname:""},siteConnectionStatus:h}=e,{pathname:m}=d,g=["/","/dashboard","/my-plan","/plans"].includes(m)||m.includes("/recommendations"),j=""===m,k=(0,n.useCallback)(()=>{c.A.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})},[]),f=(0,n.useCallback)(()=>{c.A.tracks.recordJetpackClick({target:"masthead",path:"nav_settings"})},[]);if(j)returnnull;if(!h)returnnull;if(m.startsWith("/setup"))returnnull;if(!s)returnnull;if("offline"!==h&&!p)returnnull;if("offline"!==h&&!i){if(!a)returnnull;if(!l)returnnull;if(!t.some(e=>["post-by-email","publicize"].includes(e)))returnnull}return(0,u.jsx)("div",{className:"jp-masthead__nav",children:(0,u.jsxs)(o.A,{children:[(0,u.jsx)(r.A,{compact:!0,href:"#/dashboard",primary:g&&!j,onClick:k,children:__("Dashboard","jetpack")}),(0,u.jsx)(r.A,{compact:!0,href:"#/settings",primary:!g&&!j,onClick:f,children:__("Settings","jetpack")})]})})})},35556:(e,t,s)=>{"use strict";s.d(t,{h:()=>j});vari=s(27723),n=s(51609),a=s(84952),r=s(20880),o=s(71354),c=s(17090),l=s(43822),p=s(25521),d=s(54807),u=s(53902),h=s(23676),m=s(22793),g=s(10790);const__=i.__,j=(0,a.Ng)(e=>({nextRoute:(0,l.N5)(e),isProductSuggestionsAvailable:(0,l.cl)(e),isFetchingSuggestions:(0,l.pB)(e),isFetchingDiscount:(0,p.dS)(e),isFetchingUpsell:(0,l.mh)(e),suggestions:(0,l.LY)(e),discountData:(0,p.TG)(e)}))(({nextRoute:e,isProductSuggestionsAvailable:t,isFetchingSuggestions:s,isFetchingDiscount:i,isFetchingUpsell:a,suggestions:l,discountData:p})=>{const{expiry_date:j}=p,k=(0,n.useMemo)(()=>(0,h.F)(p),[p]);returns||a?(0,g.jsx)(o.m,{altText:__("Loading recommendations","jetpack")}):t?(0,g.jsxs)("section",{className:"jp-recommendations-question__main",children:[(0,g.jsx)("header",{className:"jp-recommendations-product-suggestion__header",children:(0,g.jsx)(d.A,{})}),(0,g.jsxs)("div",{className:"jp-recommendations-product-suggestion__container",children:[(0,g.jsx)("div",{className:"jp-recommendations-product-suggestion__items",children:l.map((e,t)=>(0,g.jsx)("div",{className:"jp-recommendations-product-suggestion__item",children:(0,g.jsx)(m.A,{product:e})},t))}),(0,g.jsx)("div",{className:"jp-recommendations-product-suggestion__money-back-guarantee",children:(0,g.jsx)(c.e,{text:__("14-day money-back guarantee","jetpack")})})]}),!i&&(0,g.jsxs)("footer",{className:"jp-recommendations-product-suggestion__footer",children:[(0,g.jsxs)("span",{children:[k&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!k&&__("Specialintrodu
__("Error updating settings. %s","jetpack"),this.getCustomErrorMessage(e.response)||e.message||e.code),{id:"module-setting-update"})})};toggleAutomaticRules=()=>{this.setState({...this.state,automaticRulesEnabled:!this.state.automaticRulesEnabled},this.onSubmit)};toggleIpBlockList=()=>{this.setState({...this.state,ipBlockListEnabled:!this.state.ipBlockListEnabled},this.onSubmit)};handleIpBlockListChange=e=>{this.setState({...this.state,ipBlockList:e?.target?.value})};toggleShareData=()=>{conste={...this.state,shareData:!this.state.shareData};e.shareData||(e.shareDebugData=e.shareData),this.setState(e,this.onSubmit)};toggleShareDebugData=()=>{conste={...this.state,shareDebugData:!this.state.shareDebugData};e.shareDebugData&&(e.shareData=e.shareDebugData),this.setState(e,this.onSubmit)};render(){conste=this.props.getOptionValue("waf"),t=this.props.isUnavailableInOfflineMode("waf"),s=!e||t||this.props.isFetchingWafSettings||this.props.isSavingAnyOption(["waf"]),l=(0,M.jsxs)("div",{className:"waf__header",children:[(0,M.jsx)("span",{children:_x("Firewall","Settings header","jetpack")}),this.props.settings?.standaloneMode&&(0,M.jsx)(a.A,{className:"waf__standalone__mode",status:"active",label:__("Standalone mode","jetpack")})]}),p=(0,M.jsx)("div",{className:"waf__settings__toggle-setting",children:(0,M.jsx)(n.A,{checked:!(!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable)&&this.props.settings?.automaticRulesEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.automaticRulesEnabled!==this.props.settings?.automaticRulesEnabled,disabled:s||!this.props.hasScan&&!this.props.settings?.automaticRulesAvailable,onChange:this.toggleAutomaticRules,label:(0,M.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Automatic rules - Protect your site against untrusted traffic sources with automatic security rules","jetpack")})})}),m=(0,M.jsx)("div",{className:"waf__settings__toggle-setting",children:(0,M.jsx)(n.A,{checked:this.props.settings?.shareData,disabled:s,toggling:this.props.isUpdatingWafSettings&&this.state.shareData!==this.props.settings?.shareData,onChange:this.toggleShareData,label:(0,M.jsxs)("div",{className:"waf__settings__toggle-setting__label",children:[(0,M.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Share basic data with Jetpack","jetpack")}),(0,M.jsx)(y.A,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover",children:(0,o.createInterpolateElement)(__("Allow Jetpack to collect basic data from blocked requests to improve firewall protection and accuracy. <ExternalLink>Learn more</ExternalLink> <hr /> <ExternalLink>Privacy Information</ExternalLink>","jetpack"),{ExternalLink:(0,M.jsx)(r.ExternalLink,{href:(0,i.A)("jetpack-waf-settings-privacy-info")}),hr:(0,M.jsx)("hr",{})})})]})})}),j=(0,M.jsx)("div",{className:"waf__settings__toggle-setting",children:(0,M.jsx)(n.A,{checked:this.props.settings?.shareDebugData,disabled:s,toggling:this.props.isUpdatingWafSettings&&this.state.shareDebugData!==this.props.settings?.shareDebugData,onChange:this.toggleShareDebugData,label:(0,M.jsxs)("div",{className:"waf__settings__toggle-setting__label",children:[(0,M.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Share detailed data with Jetpack","jetpack")}),(0,M.jsx)(y.A,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__share-data-popover",children:(0,o.createInterpolateElement)(__("Allow Jetpack to collect detailed data from blocked requests to enhance firewall protection and accuracy. <ExternalLink>Learn more</ExternalLink> <hr /> <ExternalLink>Privacy Information</ExternalLink>","jetpack"),{ExternalLink:(0,M.jsx)(r.ExternalLink,{href:(0,i.A)("jetpack-waf-settings-privacy-info")}),hr:(0,M.jsx)("hr",{})})})]})})}),x=(0,o.createInterpolateElement)(__("<b>Enhance protection</b> - Learn how to configure the firewall to inspect all requests and run before WordPress initializes","jetpack"),{b:(0,M.jsx)("strong",{})}),b=(0,M.jsx)(u.A,{header:x,className:"waf__enhanced-protection"
__("To ensure the firewall can best protect your site, please update: <code>auto_prepend_file</code> PHP directive to point to <code>%s</code> Typically this is set either in an .htaccess file or in the global PHP configuration; contact your host for further assistance.","jetpack"),this.props.settings?.bootstrapPath),{code:(0,M.jsx)("code",{})})}),(0,M.jsx)("li",{children:__("Don't forget to undo this action when Firewall is turned off, or when you uninstall Jetpack.","jetpack")})]})})}),N=(0,M.jsx)(g.Ay,{callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:(0,M.jsxs)(M.Fragment,{children:[this.props.settings?.automaticRulesAvailable?__("Upgrade to keep your site secure with up-to-date firewall rules","jetpack",0):__("Upgrade to enable automatic rules","jetpack"),(0,M.jsx)(y.A,{position:"right",screenReaderText:__("Learn more","jetpack"),className:"waf__settings__upgrade-popover",children:this.props.settings?.automaticRulesAvailable?__("The free version of the firewall does not receive updates to automatic firewall rules.","jetpack",0):__("The free version of the firewall only allows for use of manual rules.","jetpack")})]}),eventFeature:"scan",plan:(0,v.EP8)(v.FxV),feature:"jetpack_scan",href:this.props.scanUpgradeUrl,rna:!0}),E=(0,M.jsxs)("div",{className:"waf__settings__toggle-setting",children:[(0,M.jsx)(n.A,{checked:this.props.settings?.ipBlockListEnabled,toggling:this.props.isUpdatingWafSettings&&this.state.ipBlockListEnabled!==this.props.settings?.ipBlockListEnabled,disabled:s,onChange:this.toggleIpBlockList,label:(0,M.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Manual rules - Block specific IP addresses from accessing your site","jetpack")})}),(this.state.ipBlockListEnabled||!!this.state.ipBlockList)&&(0,M.jsxs)("div",{className:"waf__settings__ips",children:[(0,M.jsx)(S.A,{disabled:s||this.props.isUpdatingWafSettings||!this.props.settings?.ipBlockListEnabled,name:"ipBlockList",placeholder:(0,c.sprintf)(/* translators: %s: a list of example IP addresses. */
__("Example: %s","jetpack"),"\n12.12.12.1\n12.12.12.2"),value:this.state.ipBlockList,onChange:this.handleIpBlockListChange}),this.state.ipBlockListEnabled&&(0,M.jsx)(d.A,{primary:!0,rna:!0,compact:!0,type:"button",className:"waf__settings__ips__save-button",disabled:s||this.state.ipBlockList===this.props.settings?.ipBlockList||this.props.isUpdatingWafSettings&&this.state.ipBlockList!==this.props.settings?.ipBlockList,onClick:this.onSubmit,children:__("Save block list","jetpack")})]})]});returnthis.props.isProtectActive?(0,M.jsx)(k.A,{...this.props,header:l,module:"waf",hideButton:!0,children:(0,M.jsxs)(_.A,{className:"dops-banner has-call-to-action",children:[(0,M.jsx)("div",{className:"dops-banner__icon-plan",children:(0,M.jsx)(A.A,{plan:v.FQO})}),(0,M.jsxs)("div",{className:"dops-banner__content",children:[(0,M.jsx)("div",{className:"dops-banner__info",children:(0,M.jsx)("div",{className:"dops-banner__title",children:__("Firewall settings have been moved to the Jetpack Protect plugin.","jetpack")})}),(0,M.jsx)("div",{className:"dops-banner__action",children:(0,M.jsx)(d.A,{rna:!0,compact:!0,href:this.props.protectAdminUrl,primary:!0,children:__("View Firewall Settings","jetpack")})})]})]})}):(0,M.jsxs)(k.A,{...this.props,header:l,module:"waf",onSubmit:this.onSubmit,hideButton:!0,children:[e&&(0,M.jsx)(w.A,{}),(0,M.jsxs)(f.A,{disableInOfflineMode:!0,module:this.props.getModule("waf"),support:{text:this.props.getModule("waf").long_description,link:this.props.getModule("waf").learn_more_button},children:[(0,M.jsx)(C.j,{slug:"waf",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("waf"),toggleModule:this.props.toggleModuleNow,children:(0,M.jsx)("span",{className:"jp-form-toggle-explanation",children:this.props.getModule("waf").description})}),e&&!this.props.isFetchingWafSettings&&(0,M.jsxs)(h.dV,{className:"waf__settings",children:[p,E,m,j]})]}),e&&this.props.bootstrapPath&&b,!this.props.hasScan&&!this.props.isFetchingSettings&&N]})}},I=(0,p.Ng)(e=>{constt=(0,b.X6)(e);return{automaticRulesAvailable:(0,O.mY)(e),hasScan:(0,b.IT)(e,"scan"),protectAdminUrl:`${(0,N.eu)(e)}admin.php?page=jetpack-protect#/firewall`,isProtectActive:L.some(t=>(0,E.gT)(e,t)),getProtectUrl:`${(0,N.eu)(e)}admin.php?page=my-jetpack#/add-protect`,isFetchingSettings:(0,O._e)(e),isUpdatingWafSettings:(0,O.EK)(e),settings:(0,O.IE)(e),scanUpgradeUrl:(0,x.F)(e,"scan"),sitePlan:t}},e=>({updateWafSettings:t=>e((0,T.J)(t)),createNotice:(t,s,i)=>e((0,m.Fc)(t,s,i)),removeNotice:t=>e((0,m.fj)(t))}))((0,j.t)(P))},36220:(e,t,s)=>{"use strict";s.d(t,{d6:()=>i.d});vari=s(49323);s(25082)},36288:()=>{},36505:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>o,Qi:()=>l,wp:()=>c});vari=s(26556),n=s(46755),a=s(72369);constr={isFetchingRewindStatus:!1},o=(0,i.HY)({data:(e={},t)=>{switch(t.type){casen.aUl:returnObject.assign({},e,{status:t.status});casen.gbR:returnObject.assign({},e,{status:t.rewindState});default:returne}},requests:(e=r,t)=>{switch(t.type){casen.Kt$:returnObject.assign({},e,{isFetchingRewindStatus:!0});casen.aUl:casen.xlA:returnObject.assign({},e,{isFetchingRewindStatus:!1});default:returne}},preflight:a.A});functionc(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}functionl(e){returne.jetpack.rewind?.data?.status??{}}},36784:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});vari=s(57600);constn=(e,t)=>{consts=newi.A;letn;s.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+s.getScreenCenterSpecs(780,700)),s.once("close",()=>{lete=null;n&&n.keyring_id&&(e=Number(n.keyring_id)),t(e)}),s.on("message",e=>n=e)}},36865:(e,t,s)=>{"use strict";s.d(t,{$U:()=>i.$U,DI:()=>i.DI,Eb:()=>n.Eb,Ec:()=>i.Ec,F1:()=>i.F1,F3:()=>i.F3,HN:()=>i.HN,IT:()=>i.IT,Kb:()=>i.Kb,LT:()=>i.LT,NI:()=>i.NI,OX:()=>i.OX,Rt:()=>n.Rt,SN:()=>i.SN,TG:()=>i.TG,Up:()=>i.Up,X6:()=>i.X6,Y3:()=>i.Y3,Z$:()=>i.Z$,aW:()=>n.aW,dS:()=>i.dS,dr:()=>i.dr,eA:()=>i.eA,f9:()=>i.f9,iV:()=>n.iV,mH:()=>i.mH,pO:()=>i.pO,vn:()=>i.vn,w3:()=>n.w3,yY:()=>i.yY,zG:()=>n.zG});vari=s(25521),n=s(67426)},36998:(e,t,s)=>{"use strict";s.d(t,{A:()=>T});vari=s(13513),n=s(12961),a=s(66143),r=s(56427)
u=__("F Y","jetpack");for(consthofi[e].data??[]){consti=h[1];letm=h[0],g="",j="";"week"===e&&(m=m.replace(/W/g,"-")),m=newDate(`${m}T00:00:00Z`).toISOString(),c+=i,"day"===e?(g=(0,o.gmdateI18n)(p,m),j=(0,o.gmdateI18n)(d,m)):"week"===e?(g=(0,o.gmdateI18n)(p,m),j=(0,l.sprintf)(/* translators: %s: a date. */
__("Week of %s","jetpack"),(0,o.gmdateI18n)(d,m))):"month"===e&&(g=(0,o.gmdateI18n)("M",m),j=(0,o.gmdateI18n)(u,m)),r.push({label:g,value:i,nestedValue:null,className:"statsChartbar",data:{link:this.shouldLinkToWpcomStats()?(0,n.A)(`calypso-stats-${e}`,{site:s,query:`startDate=${m}`}):`${t}admin.php?page=stats#!/stats/day/${s}?startDate=${m}`},tooltipData:[{label:j,value:(0,l.sprintf)(/* translators: %s: the number of views */
__("Views: %s","jetpack"),(0,a.ZV)(i)),className:"tooltip class"}]})}return{chartData:r,totalViews:c}}statsErrors(){returnthis.props.statsData?.general?.errors??!1}renderStatsChart(e){return(0,N.jsxs)("div",{className:"jp-at-a-glance__stats-chart-container",children:[(0,N.jsxs)("div",{className:"jp-at-a-glance__stats-chart",children:[(0,N.jsx)(k.A,{data:e,barClick:this.barClick}),0===e.length&&(0,N.jsx)(r.Spinner,{})]}),(0,N.jsx)("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom",children:(0,N.jsx)(S.A,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,dateFormat:this.props.dateFormat})})]})}dismissCard=()=>{this.setState({emptyStatsDismissed:!0}),this.props.updateOptions({dismiss_empty_stats_card:!0})};renderEmptyStatsCard(){return(0,N.jsx)(j.A,{className:"jp-at-a-glance__stats-empty-container",children:(0,N.jsxs)("div",{className:"jp-at-a-glance__stats-empty",children:[(0,N.jsx)(i.A,{height:64,showText:!1}),(0,N.jsxs)("p",{children:[__("Hello there! Jetpack Stats has been activated.","jetpack"),(0,N.jsx)("br",{}),__("Just give us a little time to collect data so we can display it for you here.","jetpack")]}),(0,N.jsx)(g.A,{onClick:this.dismissCard,primary:!0,children:__("Okay, got it!","jetpack")})]})})}activateStats=e=>{this.props.updateOptions({stats:!0}),e.preventDefault()};renderStatsArea(){if(this.props.getOptionValue("stats")){if(this.statsErrors())return(0,N.jsx)("div",{className:"jp-at-a-glance__stats-inactive",children:(0,N.jsx)("span",{children:(0,c.createInterpolateElement)(__("Something happened while loading Jetpack Stats. Please try again later or <a>view your stats now on WordPress.com</a>","jetpack"),{a:(0,N.jsx)("a",{href:(0,n.A)("calypso-stats-insights",{site:this.props.siteRawUrl})})})})});conste=this.statsChart(this.props.activeTab),t=e.chartData,s=e.totalViews,i=t.length&&s<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return(0,N.jsxs)("div",{className:"jp-at-a-glance__stats-container"+(i&&" jp-at-a-glance__stats-container-empty"),children:[i?this.renderEmptyStatsCard():"",this.renderStatsChart(t)]})}return(0,N.jsxs)("div",{className:"jp-at-a-glance__stats-inactive",children:[(0,N.jsx)("div",{className:"jp-at-a-glance__stats-inactive-icon",children:(0,N.jsx)(i.A,{height:40,showText:!1})}),(0,N.jsx)("div",{className:"jp-at-a-glance__stats-inactive-text",children:this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("h3",{children:[" ",__("Activate Jetpack Stats","jetpack")]}),(0,c.createInterpolateElement)(__("Get insights on page views, likes, subscribers, and more! <a1>Learn More</a1>","jetpack"),{a1:(0,N.jsx)(r.ExternalLink,{href:(0,n.A)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})]})}),!this.props.isOfflineMode&&(0,N.jsx)("div",{className:"jp-at-a-glance__stats-inactive-button",children:(0,N.jsx)(g.A,{onClick:this.activateStats,primary:!0,children:__("Activate Stats","jetpack")})})]})}switchTo(e){b.A.tracks.recordJetpackClick({target:"stats_switch_view",view:e}),this.props.switchView(e),this.props.fetchStatsData(e)}switchToDay=e=>{this.switchTo("day"),e.preventDefault()};switchToWeek=e=>{this.switchTo("week"),e.preventDefault()};switchToMonth=e=>{this.switchTo("month"),e.preventDefault()};maybeShowStatsTabs(){return!(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)&&(this.props.getOptionValue("stats")&&!this.statsErrors()?(0,N.jsxs)("ul",{className:"jp-at-a-glance__stats-views",children:[(0,N.jsx)("li",{className:"jp-at-a-glance__stats-view",children:(0,N.jsx)("a",{tabIndex:"0",href:"#",onClick:this.switchToDay,className:this.getClass("day"),children:__("Days","jetpack")})}),(0,N.jsx)("li",{className:"jp-at-a-glance__stats-view",children:(0,N.jsx)("a",{tabIndex:"0",href:"#",onClick:this.switchToWeek,className:this.getClass("week"),children:__("Weeks","jetpack")})})
__("Your %2$s Plan includes %1$s. Looks like you also purchased the %3$s product. Consider removing %3$s.","jetpack"),l,o.product_name,n.product_name)})})},38087:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});vari=s(77790),n=s(94001),a=s(20349),r=s(74480),o=s(13132),c=s(87721),l=s(55263),p=s(88792),d=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];functionu(e,t,s){for(vari=t.length-1;i>=0;i--){varn=t[i](e);if(n)returnn}returnfunction(t,i){thrownewError("Invalid value of type "+typeofe+" for "+s+" argument when connecting component "+i.wrappedComponentName+".")}}functionh(e,t){returne===t}functionm(e){vart=void0===e?{}:e,s=t.connectHOC,m=void0===s?a.A:s,g=t.mapStateToPropsFactories,j=void0===g?c.Ay:g,k=t.mapDispatchToPropsFactories,f=void0===k?o.Ay:k,v=t.mergePropsFactories,x=void0===v?l.Ay:v,b=t.selectorFactory,_=void0===b?p.Ay:b;returnfunction(e,t,s,a){void0===a&&(a={});varo=a,c=o.pure,l=void0===c||c,p=o.areStatesEqual,g=void0===p?h:p,k=o.areOwnPropsEqual,v=void0===k?r.A:k,b=o.areStatePropsEqual,w=void0===b?r.A:b,y=o.areMergedPropsEqual,C=void0===y?r.A:y,A=(0,n.A)(o,d),S=u(e,j,"mapStateToProps"),N=u(t,f,"mapDispatchToProps"),E=u(s,x,"mergeProps");returnm(_,(0,i.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:N,initMergeProps:E,pure:l,areStatesEqual:g,areOwnPropsEqual:v,areStatePropsEqual:w,areMergedPropsEqual:C},A))}}constg=m()},38290:(e,t,s)=>{"use strict";s.d(t,{A:()=>k});vari=s(68902),n=s.n(i),a=s(28120),r=s.n(a),o=s(51609),c=s(84952),l=s(26556),p=s(4891),d=s(70284),u=s(75953),h=s(31121),m=s(10790);constg=n()("calypso:notices");classjextendso.Component{staticdisplayName="NoticesList";staticpropTypes={id:r().string,notices:r().oneOfType([r().object,r().array])};staticdefaultProps={id:"overlay-notices",notices:Object.freeze([])};UNSAFE_componentWillMount(){g("Mounting Global Notices React component.")}removeNotice=e=>{e&&u.A.removeNotice(e)};handleLocalNoticeDismissClick=e=>()=>this.removeNotice(e);handleReduxNoticeDismissClick=e=>()=>this.props.removeNotice(e);render(){lete=(this.props.notices[this.props.id]||[]).map(function(e,t){return(0,m.jsx)(p.A,{status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss,children:e.button&&(0,m.jsx)(d.A,{href:e.href,onClick:e.onClick,children:e.button})},"notice-old-"+t)},this);returne=e.concat(this.props.storeNotices.map(function(e,t){return(0,m.jsx)(p.A,{status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text},"notice-"+t)},this)),e.length?(0,m.jsx)("div",{id:this.props.id,className:"global-notices",children:e}):null}}constk=(0,c.Ng)(e=>({storeNotices:e.globalNotices}),e=>(0,l.zH)({removeNotice:h.fj},e))(j)},38310:(e,t,s)=>{"use strict";e.exports=s.p+"images/jetpack-manage-3a7ecaa604823c98c3cf.svg"},38318:(e,t,s)=>{"use strict";functioni(e){returnt=>{13!==t.which&&32!==t.which||e(t)}}s.d(t,{A:()=>i})},38343:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});vari=s(12961),n=s(97999),a=s(56427),r=s(27723),o=s(28120),c=s.n(o),l=s(51609),p=s(84952),d=s(81715),u=s(42233),h=s(73087),m=s(11236),g=s(72625),j=s(19950),k=s(26571),f=s(18280),v=s(15947),x=s(36865),b=s(76478),_=s(10790);const__=r.__;classwextendsl.Component{staticpropTypes={plan:c().string};staticdefaultProps={plan:""};trackPlansClick=e=>{m.A.tracks.recordJetpackClick({page:"my-plan",target:e,plan:this.props.plan})};handleButtonClickForTracking=e=>()=>this.trackPlansClick(e);activateAds=()=>{this.props.activateModule("wordads"),this.trackPlansClick("activate_wordads")};activatePublicize=()=>{this.props.activateModule("publicize"),this.trackPlansClick("activate_publicize")};activateVideoPress=()=>{this.props.activateFeature("videopress"),this.trackPlansClick("activate_videopress")};activateGoogleAnalytics=()=>{this.props.activateModule("google-analytics"),this.trackPla
_n("Enjoy the peace of mind of complete site protection. You have <strong>%1$dGB</strong> of storage space.","Enjoy the peace of mind of complete site protection. You have <strong>%1$dGB</strong> of storage space.",10,"jetpack"),10),{strong:(0,y.jsx)("strong",{})}),title:__("Jetpack Security","jetpack")};case"is-security-t2-plan":return{...o,details:[p,l],tagLine:(0,a.createInterpolateElement)((0,r.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */
_n("Enjoy the peace of mind of complete site protection. You have <strong>%1$dTB</strong> of storage space.","Enjoy the peace of mind of complete site protection. You have <strong>%1$dTB</strong> of storage space.",1,"jetpack"),1),{strong:(0,y.jsx)("strong",{})}),title:__("Jetpack Security","jetpack")};case"is-complete-plan":return{...o,details:[p,l],tagLine:__("The ultimate toolkit for best-in-class websites: complete security, performance, and growth.","jetpack"),title:__("Jetpack Complete","jetpack")};case"is-backup-t0-plan":return{...o,details:[p,l],tagLine:(0,a.createInterpolateElement)((0,r.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */
_n("Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.",1,"jetpack"),1),{strong:(0,y.jsx)("strong",{})}),title:__("VaultPress Backup","jetpack")};case"is-backup-t1-plan":return{...o,details:[p,l],tagLine:(0,a.createInterpolateElement)((0,r.sprintf)(/* translators: %1$d is the number of gigabytes of storage space the site has. */
_n("Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.",10,"jetpack"),10),{strong:(0,y.jsx)("strong",{})}),title:__("VaultPress Backup","jetpack")};case"is-backup-t2-plan":return{...o,details:[p,l],tagLine:(0,a.createInterpolateElement)((0,r.sprintf)(/* translators: %1$d is the number of terabytes of storage space the site has. */
_n("Your data is being securely backed up as you edit. You have <strong>%1$dTB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dTB</strong> of storage space.",1,"jetpack"),1),{strong:(0,y.jsx)("strong",{})}),title:__("VaultPress Backup","jetpack")};case"is-search-plan":return{...o,details:[p,l],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search","jetpack")};case"is-free-search-plan":return{...o,details:[p,l],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search Free","jetpack")};case"is-scan-plan":return{...o,details:[p,l],tagLine:__("Automatic scanning and one-click fixes keep your site one step ahead of security threats.","jetpack"),title:(0,a.createInterpolateElement)(__("Jetpack Scan","jetpack"),{em:(0,y.jsx)("em",{})})};case"is-anti-spam-plan":return{...o,details:[p,l],tagLine:__("Automatically clear spam from comments and forms. Save time, get more responses, give your visitors a better experience – all without lifting a finger.","jetpack"),title:__("Akismet Anti-spam","jetpack")};case"is-daily-security-plan":return{...o,details:l,tagLine:__("Enjoy the peace of mind of complete site protection. Great for brochure sites, restaurants, blogs, and resume sites.","jetpack"),title:__("Jetpack Security Daily","jetpack")};case"is-realtime-security-plan":return{...o,details:l,tagLine:__("Additional security for sites with 24/7 activity. Recommended for eCommerce stores, news organizations, and online forums.","jetpack"),title:__("Jetpack Security Real-Time","jetpack")};case"is-daily-backup-plan":return{...o,details:l,tagLine:__("Your data is being securely backed up every day with a 30-day archive.","jetpack"),title:(0,a.createInterpolateElement)(__("Jetpack Backup <em>Daily</em>","jetpack"),{em:(0,y.jsx)("em",{})})};case"is-realtime-backup-plan":return{...o,details:l,tagLine:__("Your data is being securely backed up as you edit.","jetpack"),title:(0,a.createInterpolateElement)(__("Jetpack Backup <em>Real-Time</em>","jetpack"),{em:(0,y.jsx)("em",{})})};case"is-videopress-plan":return{...o,details:[p,l],tagLine:__("High-quality, ad-free video built specifically for WordPress.","jetpack"),title:__("Jetpack VideoPress","jetpack")};case"is-jetpack-social-basic-plan":return{...o,details:[p,l],tagLine:__("You can automatically share your content to social media sites.","jetpack"),title:(0,a.createInterpolateElement)(__("Jetpack Social Basic","jetpack"),{em:(0,y.jsx)("em",{})})};case"is-jetpack-social-v1-plan":return{...o,details:[p,l],tagLine:__("You can automatically share your content to social media sites.","jetpack"),title:(0,a.createInterpolateElement)(__("Jetpack Social","jetpack"),{em:(0,y.jsx)("em",{})})};case"is-jetpack-social-advanced-plan":return{...o,details:[p,l],tagLine:__("You can automatically share your content to social media sites and get access to advanced posting options.","jetpack"),title:(0,a.createInterpolateElement)(__("Jetpack Social Advanced","jetpack"),{em:(0,y.jsx)("em",{})})};case"is-jetpack-boost-plan":return{...o,details:[p,l],tagLine:__("Jetpack Boost gives your site the same performance advantages as the world’s leading websites, no developer required.","jetpack"),title:__("Jetpack Boost","jetpack")};case"is-jetpack-ai-plan":return{...o,details:[p,l],tagLine:__("Experience the ease of crafting content with intuitive and powerful AI.","jetpack"),title:__("Jetpack AI","jetpack")};case"is-jetpack-golden-token-plan":return{...o,details:[p,l],tagLine:__("You have been gifted a Jetpack Golden Token. This unlocks a lifetime of Jetpack VaultPress Backup and Jetpack Scan for your website.","jetpack"),title:__("Jetpack Golden Token","jetpack"),cardClassNames:["plan-golden-token"]};case"is-jetpack-starter-plan":return{...o,details:[p,l],tagLine:__("Essential security tools: real-time backups and comment spam protection.","jetpack"),title:__("Jetpack Starter","jetpack")};case"is-jetpack-stats-plan":return{...o,details:[p,l],tagLine:__("Sim
__("Got a license key? <a>Activate it here.</a>","jetpack"),{a:(0,y.jsx)("a",{href:window.Initial_State?.useMyJetpackLicensingUI?r+"admin.php?page=my-jetpack#/add-license":r+"admin.php?page=jetpack#/license/activation",onClick:this.trackLicenseActivationClick,className:"jp-landing__licensing-actions-link"})})}),(0,y.jsxs)("div",{className:(0,o.A)("jp-landing__licensing-actions-item",{"no-licenses":!t,"no-purchases":!l}),children:[l&&(0,y.jsx)(h.A,{onClick:this.trackAllPurchasesClick,compact:!0,rna:!0,children:(0,y.jsx)(n.ExternalLink,{href:(0,i.A)("calypso-purchases"),children:__("View all purchases","jetpack")})}),"footer"===e&&(0,y.jsx)(h.A,{href:r+"admin.php?page=jetpack#/recommendations",onClick:this.trackRecommendationsClick,primary:!0,rna:!0,children:_x("Recommendations","Navigation item.","jetpack")})]})]})})};trackAllPurchasesClick=()=>{f.A.tracks.recordJetpackClick({target:"calypso_purchases_link",page:"my-plan"})};trackLicenseActivationClick=()=>{f.A.tracks.recordJetpackClick({target:"licensing_activation_button",path:"licensing/activation",page:"my-plan"})};trackRecommendationsClick=()=>{f.A.tracks.recordJetpackClick({target:"recommendations-button",page:"my-plan"})};renderFooter(){return!this.props.hasDetachedUserLicenses&&this.renderLicensingActions("footer")}render(){return(0,y.jsxs)("div",{className:"jp-landing__plans",children:[this.renderLicensingActions(),this.renderPlan(),this.renderProducts(),this.renderFooter(),this.props.showLicensingUi&&(0,y.jsx)(m.A,{compact:!0,children:(0,y.jsx)(w.A,{})})]})}}C.propTypes={activeProducts:p().array,plan:p().string,purchases:p().array,siteAdminUrl:p().string,dateFormat:p().string,displayBackups:p().bool,plansMainTopUpgradeUrl:p().string,showRecommendations:p().bool};constA=(0,u.Ng)(e=>({dateFormat:(0,x.eW)(e),displayBackups:(0,x.Fp)(e),plansMainTopUpgradeUrl:(0,x.Q4)(e,"plans-main-top"),showRecommendations:(0,x.ct)(e),showLicensingUi:(0,x.VN)(e),hasDetachedUserLicenses:!!(0,b.UB)(e)}))(C)},39612:function(e){vart;t=function(){returnfunction(){vare={686:function(e,t,s){"use strict";s.d(t,{default:function(){return_}});vari=s(279),n=s.n(i),a=s(370),r=s.n(a),o=s(817),c=s.n(o);functionl(e){try{returndocument.execCommand(e)}catch(e){return!1}}varp=function(e){vart=c()(e);returnl("cut"),t},d=function(e,t){vars=function(e){vart="rtl"===document.documentElement.getAttribute("dir"),s=document.createElement("textarea");s.style.fontSize="12pt",s.style.border="0",s.style.padding="0",s.style.margin="0",s.style.position="absolute",s.style[t?"right":"left"]="-9999px";vari=window.pageYOffset||document.documentElement.scrollTop;returns.style.top="".concat(i,"px"),s.setAttribute("readonly",""),s.value=e,s}(e);t.container.appendChild(s);vari=c()(s);returnl("copy"),s.remove(),i},u=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{container:document.body},s="";return"string"==typeofe?s=d(e,t):einstanceofHTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void0:e.type)?s=d(e.value,t):(s=c()(e),l("copy")),s};functionh(e){returnh="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},h(e)}varm=function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},t=e.action,s=void0===t?"copy":t,i=e.container,n=e.target,a=e.text;if("copy"!==s&&"cut"!==s)thrownewError('Invalid "action" value, use either "copy" or "cut"');if(void0!==n){if(!n||"object"!==h(n)||1!==n.nodeType)thrownewError('Invalid "target" value, use a valid Element');if("copy"===s&&n.hasAttribute("disabled"))thrownewError('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===s&&(n.hasAttribute("readonly")||n.hasAttribute("disabled")))thrownewError('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}returna?u(a,{container:i}):n?"cut"===s?p(n):u(n,{container:i}):void0};functiong(e){returng="function"
__("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}}))(k)},40583:(e,t,s)=>{"use strict";s.d(t,{A:()=>f});vari=s(13022),n=s(51609),a=s(84952),r=s(74209),o=s(72625),c=s(39228),l=s(1194),p=s(21544),d=s(19950),u=s(3545),h=s(12347),m=s(36865),g=s(38318),j=s(10790);classkextendsn.Component{staticdisplayName="DevCard";onPlanChange=e=>{this.props.switchPlanPreview(e.target.value)};onPermissionsChange=e=>{this.props.switchUserPermissions(e.target.value)};onThreatsChange=e=>{this.props.switchThreats(e.target.value)};onRewindStatusChange=e=>{this.props.switchRewindState(e.target.value)};onScanStatusChange=e=>{this.props.switchScanState(e.target.value)};maybeShowStatsToggle=()=>{if(!this.props.isAdmin)return(0,j.jsxs)("div",{children:[(0,j.jsx)("hr",{}),(0,j.jsxs)("ul",{children:[(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"view_stats",children:[(0,j.jsx)("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"hide_stats",children:[(0,j.jsx)("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!this.props.canViewStats,onChange:this.onPermissionsChange}),"Cannot view stats"]})})]})]})};showIsLinkedToggle=()=>(0,j.jsxs)("div",{children:[(0,j.jsx)("hr",{}),(0,j.jsxs)("ul",{children:[(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"is_linked",children:[(0,j.jsx)("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"is_unlinked",children:[(0,j.jsx)("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!this.props.isUserLinked,onChange:this.onPermissionsChange}),"Unlinked"]})})]})]});render(){if(!this.props.canDisplayDevCard)returnnull;conste=(0,i.A)(this.props.className,"jp-dev-card"),t=(0,o.IPX)(this.props.sitePlan.product_slug),s=this.props.rewindStatus?.state??!1,n=this.props.scanStatus?.state??!1;return(0,j.jsxs)(r.A,{compact:!0,className:e,children:[(0,j.jsx)("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,g.A)(this.props.disableDevCard),onClick:this.props.disableDevCard,children:"x"}),(0,j.jsx)("div",{className:"jp-dev-card__heading",children:"Dev Tools"}),(0,j.jsxs)("ul",{children:[(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"jetpack_free",children:[(0,j.jsx)("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"jetpack_personal",children:[(0,j.jsx)("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"jetpack_premium",children:[(0,j.jsx)("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"jetpack_business",children:[(0,j.jsx)("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"jetpack_starter",children:[(0,j.jsx)("input",{type:"radio",id:"jetpack_starter",value:"jetpack_starter_yearly",name:"jetpack_starter_yearly",checked:"is-jetpack-starter-plan"===t,onChange:this.onPlanChange}),"Security (10 GB)"]})}),(0,j.jsx)("li",{children:(0,j.jsxs)("label",{htmlFor:"jetpack_security_t1",children:[(0,j.jsx)("input",{type:"radio",id:"jetpack_security_t1",value:"jetpack_security_t1_yearly",name:"jetpack_security_t1_yearly",checked:"is-security-t1-plan"===t,onChange:this.onPlanChange}),"Security(
__("%1$s - %2$s","jetpack"),e,t),value:t})),{label:__("I want to add a license key manually","jetpack"),value:""}],[s,p]);(0,d.useEffect)(()=>{l(u?.length?u[0].value:"")},[u]);consth=(0,d.useCallback)(e=>{l(e),n(e)},[n]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(r.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:t,disabled:i,label:__("Select a license key","jetpack"),value:o,options:u,onChange:h}),!p&&!o&&(0,m.jsx)(r.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:t,label:__("Input a license key","jetpack"),value:a,onChange:n,disabled:i})]})},k=e=>{const{activateLicense:t,availableLicenses:s,fetchingAvailableLicenses:c,isActivating:l,license:p,licenseError:k,onLicenseChange:f}=e;(0,d.useEffect)(()=>{i.A.tracks.recordEvent("jetpack_wpa_license_key_activation_view")},[]);constv="string"==typeofk?k?.match(/\[[a-z_]+\]/):null,x=v&&v[0],{ACTIVE_ON_SAME_SITE:b}=h.a,_=b===x,w=(0,d.useMemo)(()=>k?_?"jp-license-activation-screen-controls--license-field-with-success":"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field",[k,_]),y=s&&s.length;return(0,m.jsxs)("div",{className:"jp-license-activation-screen-controls",children:[(0,m.jsxs)("div",{className:"jp-license-activation-screen-controls--content",children:[(0,m.jsx)(n.A,{showText:!1,height:48}),(0,m.jsx)("h1",{children:__("Add a license key","jetpack")}),(0,m.jsx)("p",{children:(0,o.createInterpolateElement)(__("<strong>Check your email</strong> for your license key. You should have received it after making your purchase.","jetpack"),{strong:(0,m.jsx)("strong",{})})}),c||y?(0,m.jsx)(j,{className:w,disabled:c||l,onChange:f,availableLicenses:c?null:s,value:p}):(0,m.jsx)(g,{className:w,disabled:l,onChange:f,value:p}),k&&(0,m.jsx)(u.A,{licenseError:k,errorType:x})]}),(0,m.jsx)("div",{children:(0,m.jsx)(r.Button,{className:"jp-license-activation-screen-controls--button",onClick:t,disabled:!p,children:l?(0,m.jsx)(a.A,{}):__("Activate","jetpack")})})]})};k.propTypes={activateLicense:p().func.isRequired,availableLicenses:p().array,fetchingAvailableLicenses:p().bool,isActivating:p().bool.isRequired,license:p().string.isRequired,licenseError:p().oneOfType([p().string,p().element]),onLicenseChange:p().func.isRequired,siteUrl:p().string.isRequired};constf=k},42233:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});vari=s(51609),n=s(84952),a=s(76478);classrextendsi.Component{UNSAFE_componentWillMount(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}render(){returnnull}}consto=(0,n.Ng)(e=>({isFetchingPluginsData:(0,a.rC)(e)}),e=>({fetchPluginsData:()=>e((0,a.bR)())}))(r)},42367:(e,t,s)=>{"use strict";s.d(t,{Kq:()=>i,_I:()=>n,q8:()=>a});consti="article",n="landscape",a="portrait"},42616:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});vari=s(59044),n=s(10790);consta=({instanceId:e,closeSearch:t,closeListener:s})=>(0,n.jsx)("div",{role:"button",className:"dops-search__icon-navigation",onClick:t,tabIndex:"0",onKeyDown:s,"aria-controls":"dops-search-component-"+e,"aria-label":"Close Search",children:(0,n.jsx)(i.A,{icon:"cross",className:"dops-search__close-icon"})})},42635:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});vari=s(66087),n=s(28120),a=s.n(n),r=s(51609),o=s(84952),c=s(64952);classlextendsr.Component{staticpropTypes={isFetchingSiteProducts:a().bool};staticdefaultProps={isFetchingSiteProducts:!1};componentDidMount(){!this.props.isFetchingSiteProducts&&(0,i.isEmpty)(this.props.siteProducts)&&this.props.fetchSiteProducts()}render(){returnnull}}constp=(0,o.Ng)(e=>({isFetchingSiteProducts:(0,c.ab)(e),products:(0,c.Y9)(e)}),e=>({fetchSiteProducts:()=>e((0,c.IR)())}))(l)},42689:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});vari=s(27723),n=s(13022),a=s(44810),r=s(97383),o=s(10790);const__=i.__,c=({className:e,label:t,status:s="inactive"})=>{consti={active:__("Active","jetpack"),error:__("Error","jetpack"),action:__("Action needed","jetpack"),inactive:__("Inactive","jetpack"),initializing:__("Setting up","jetpack")};return(0,o.jsxs)(a.Ay,{variant:"body-extra-sm
__("Error regenerating Post by Email address. %s","jetpack"),e)};returne((0,c.Xx)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:()=>e((0,c.ic)()),clearUnsavedSettingsFlag:()=>e((0,c.jo)()),refreshSettings:()=>e((0,c.Uc)())}))(e)}},45262:(e,t,s)=>{"use strict";s.d(t,{A:()=>Q});vari=s(21453),n=s(12961),a=s(39384),r=s(56957),o=s(18143),c=s(89114),l=s(97999),p=s(47143),d=s(27723),u=s(20428),h=s.n(u),m=s(51609),g=s(84952),j=s(20880),k=s(51166),f=s(74624),v=s(61662),x=s(18061),b=s(15255),_=s(64642),w=s(46655),y=s(74990),C=s(8909),A=s(58801),S=s(55440),N=s(40394),E=s(99115),T=s(92461),O=s(73087),M=s(11236),L=s(30814),P=s(80735),I=s(62148),R=s(74356),D=s(8283),z=s(1194),F=s(19950),U=s(49682),V=s(26571),B=s(3545),H=s(31238),J=s(17259),q=s(36865),W=s(74828),K=s(10790);const__=d.__,G=["/recommendations","/recommendations/site-type","/recommendations/product-suggestions","/recommendations/product-purchased","/recommendations/agency","/recommendations/woocommerce","/recommendations/monitor","/recommendations/newsletter","/recommendations/related-posts","/recommendations/creative-mail","/recommendations/site-accelerator","/recommendations/publicize","/recommendations/protect","/recommendations/anti-spam","/recommendations/videopress","/recommendations/backup-plan","/recommendations/boost","/recommendations/summary","/recommendations/vaultpress-backup","/recommendations/vaultpress-for-woocommerce","/recommendations/welcome-backup","/recommendations/welcome-complete","/recommendations/welcome-security","/recommendations/welcome-starter","/recommendations/welcome-antispam","/recommendations/welcome-videopress","/recommendations/welcome-search","/recommendations/welcome-scan","/recommendations/welcome-social-basic","/recommendations/welcome-social-v1","/recommendations/welcome-social-image-generator","/recommendations/welcome-golden-token","/recommendations/backup-activated","/recommendations/scan-activated","/recommendations/unlimited-sharing-activated","/recommendations/social-v1-activated","/recommendations/antispam-activated","/recommendations/videopress-activated","/recommendations/search-activated","/recommendations/server-credentials"],$=["my-jetpack "],Y=["/","/dashboard","/reconnect","/my-plan","/plans"],X=["/settings","/security","/performance","/writing","/sharing","/discussion","/earn","/newsletter","/traffic","/privacy"];classZextendsm.Component{constructor(e){super(e),this.closeReconnectModal=this.closeReconnectModal.bind(this),this.onLicenseActivationSuccess=this.onLicenseActivationSuccess.bind(this)}UNSAFE_componentWillMount(){this.props.setInitialState(),i.Ay.setApiRoot(this.props.apiRoot),i.Ay.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&M.A.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}componentDidMount(){conste=h()(".jp-jetpack-connect__container"),t=h()(".jp-connect-full__container");e&&t.length>0&&t.prependTo(e),this.props.isWooCommerceActive&&!this.props.hasSeenWCConnectionModal&&this.props.userCanManageModules&&this.props.navigate({pathname:"/woo-setup",state:{previousPath:this.props.location.pathname}},{replace:!0})}handleRouterWillLeave=()=>{conste=__("There are unsaved settings in this tab that will be lost if you leave it. Proceed?","jetpack");return!!confirm(e)&&(window.setTimeout(this.props.clearUnsavedSettingsFlag,10),!0)};initializeAnalytics=()=>{conste=this.props.tracksUserData;e&&M.A.initialize(e.userid,e.username,{blog_id:e.blogid})};shouldComponentUpdate(e){return!["/wpbody-content","/wp-toolbar"].includes(e.location.pathname)&&(JSON.stringify(e.connectionStatus)!==JSON.stringify(this.props.connectionStatus)||e.siteConnectionStatus!==this.props.siteConnectionStatus||e.isLinked!==this.props.isLinked||e.isConnectingUser!==this.props.isConnectingUser||e.location.pathname!==this.props.location.pathname||e.searchTerm!==this.props.searchTerm||e.rewindStatus!==this.props.rewindStatus||e.are
__("Unlock %s and more amazing features","jetpack"),this.props.connectingUserFeatureLabel),from:e&&e.get("from")||this.props.connectingUserFrom,redirectUri:"admin.php?page=jetpack",apiRoot:this.props.apiRoot,apiNonce:this.props.apiNonce,registrationNonce:"",autoTrigger:this.shouldAutoTriggerConnection()})}if(!this.props.userCanManageModules)return!!this.props.siteConnectionStatus&&(0,K.jsx)("div",{"aria-live":"assertive",children:(0,K.jsx)(S.A,{...this.props})});if(this.isMainConnectScreen()){conste=newURLSearchParams(location.search.split("?")[1]);return(0,K.jsxs)(a.ConnectScreen,{apiNonce:this.props.apiNonce,registrationNonce:"",apiRoot:this.props.apiRoot,images:["/images/connect-right.jpg"],assetBaseUrl:this.props.pluginBaseUrl,autoTrigger:this.shouldAutoTriggerConnection(),redirectUri:"admin.php?page=jetpack",from:e&&e.get("from"),children:[(0,K.jsx)("p",{children:__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack")}),(0,K.jsxs)("ul",{role:"list",children:[(0,K.jsx)("li",{children:__("Speed up your site with optimized images","jetpack")}),(0,K.jsx)("li",{children:__("Protect your site against bot attacks","jetpack")}),(0,K.jsx)("li",{children:__("Get notifications if your site goes offline","jetpack")}),(0,K.jsx)("li",{children:__("Enhance your site with dozens of other features","jetpack")})]})]})}lett;switch(e){case"/dashboard":case"/reconnect":case"/disconnect":case"/connect-user":case"/connect-user-setup":case"/woo-setup":t=(0,K.jsx)(k.A,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/setup":this.props.isSiteConnected&&(this.props.navigate("/dashboard",{replace:!0}),t=this.getAtAGlance());break;case"/my-plan":t=(0,K.jsx)(L.A,{siteRawUrl:this.props.siteRawUrl,blogID:this.props.blogID,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/plans":case"/plans-prompt":window.location.href=(0,n.A)("jetpack-plans",{site:this.props.siteRawUrl});break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/earn":case"/newsletter":case"/traffic":case"/privacy":t=(0,K.jsx)(D.A,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,blogID:this.props.blogID,searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus,userCanManageModules:this.props.userCanManageModules});break;case"/license/activation":this.props.isLinked&&this.props.isConnectionOwner?t=(0,K.jsx)(r.b,{siteRawUrl:this.props.siteRawUrl,onActivationSuccess:this.onLicenseActivationSuccess,siteAdminUrl:this.props.siteAdminUrl,currentRecommendationsStep:this.props.currentRecommendationsStep}):(this.props.navigate("/dashboard",{replace:!0}),t=this.getAtAGlance());break;case"/recommendations":case"/recommendations/site-type":case"/recommendations/product-suggestions":case"/recommendations/product-purchased":case"/recommendations/agency":case"/recommendations/woocommerce":case"/recommendations/monitor":case"/recommendations/newsletter":case"/recommendations/related-posts":case"/recommendations/creative-mail":case"/recommendations/site-accelerator":case"/recommendations/publicize":case"/recommendations/protect":case"/recommendations/anti-spam":case"/recommendations/videopress":case"/recommendations/backup-plan":case"/recommendations/boost":case"/recommendations/summary":case"/recommendations/vaultpress-backup":case"/recommendations/vaultpress-for-woocommerce":case"/recommendations/welcome-backup":case"/recommendations/welcome-complete":case"/recommendations/welcome-security":case"/recommendations/welcome-starter":case"/recommendations/welcome-antispam":case"/recommendations/welcome-videopress":case"/recommendations/welcome-search":case"/recommendations/welcome-scan":case"/recommendations/welcome-social-basic":case"/recommendations/welcome-social-v1":case"/recommendations/welcome-golden-token":case"/recommendations/backup-activated":case"/recommendations/scan-activated":case"/recommendations/unlimited-sharing-activated":case"/recommendations/soci
(0,d.jsx)("span",{className:"jp-recommendations__new-badge",children:__("New","jetpack")})]}),(0,d.jsx)("div",{className:"jp-recommendations-feature-summary__actions",children:(0,d.jsx)("div",{className:"jp-recommendations-feature-summary__cta",children:(0,d.jsx)(i.ExternalLink,{type:"button",className:"dops-button is-rna",href:n,onClick:u,children:s})})})]})})},45754:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});vari=s(21453),n=s(56427),a=s(27723),r=s(51609),o=s(84952),c=s(74209),l=s(23758),p=s(11236),d=s(76478),u=s(10790);const__=a.__,h=(0,o.Ng)((e,{pluginFiles:t})=>({isFetchingPluginsData:(0,d.rC)(e),aPluginIsInstalled:t.some(t=>(0,d.O8)(e,t)),aPluginIsActive:t.some(t=>(0,d.gT)(e,t))}),e=>({fetchPluginsData:()=>e((0,d.bR)())}))(({fetchPluginsData:e,isFetchingPluginsData:t,aPluginIsActive:s,aPluginIsInstalled:o,pluginName:d,pluginSlug:h,pluginLink:m,installOrActivatePrompt:g,installedPrompt:j,plan:k})=>{const[f,v]=(0,r.useState)(!1),[x,b]=(0,r.useState)(!1),_=(0,r.useCallback)(()=>{if(o)if(s){if(o&&s)returnPromise.resolve()}elsev(!0);elseb(!0);returnp.A.tracks.recordJetpackClick({target:"plugin_dash_item",type:o?"install":"activate",feature:h}),i.Ay.installPlugin(h,"active").then(()=>newPromise(e=>setTimeout(e,2500))).then(()=>e()).finally(()=>{v(!1),b(!1)})},[e,s,o,h]);returnt?(0,u.jsx)(c.A,{className:"plugin-dash-item__content",children:(0,u.jsx)("p",{children:__("Loading…","jetpack")})}):x?(0,u.jsxs)(c.A,{className:"plugin-dash-item__content",children:[(0,u.jsx)(n.Spinner,{}),(0,u.jsx)("p",{children:(0,a.sprintf)(/* translators: %s: the name of the plugin. i.e. Boost, CRM, etc. */
__("Installing %s","jetpack"),d)})]}):f?(0,u.jsxs)(c.A,{className:"plugin-dash-item__content",children:[(0,u.jsx)(n.Spinner,{}),(0,u.jsx)("p",{children:(0,a.sprintf)(/* translators: %s: the name of the plugin. i.e. Boost, CRM, etc. */
__("Activating %s","jetpack"),d)})]}):o?s?(0,u.jsx)(l.Ay,{callToAction:(0,a.sprintf)(/* translators: %s: the name of the plugin. i.e. Boost, CRM, etc. */
__("Manage %s","jetpack"),d),title:j??__("Plugin is installed & active.","jetpack"),href:m,plan:k}):(0,u.jsx)(l.Ay,{callToAction:(0,a.sprintf)(/* translators: %s: the name of the plugin. i.e. Boost, CRM, etc. */
__("Activate %s","jetpack"),d),title:g,onClick:_,plan:k}):(0,u.jsx)(l.Ay,{callToAction:(0,a.sprintf)(/* translators: %s: the name of the plugin. i.e. Boost, CRM, etc. */
__("Install %s","jetpack"),d),title:g,onClick:_,plan:k})})},45811:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>r,h:()=>c,h5:()=>o,vu:()=>l});vari=s(26556),n=s(46755);consta={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},r=(0,i.HY)({items:(e={},t)=>{switch(t.type){casen.vlr:returnObject.assign({},e,t.settings);casen.sWT:returnObject.assign({},e,t.updatedSettings);default:returne}},requests:(e=a,t)=>{switch(t.type){casen.fnu:returnObject.assign({},e,{fetchingTrackingSettings:!0});casen.OH_:casen.vlr:returnObject.assign({},e,{fetchingTrackingSettings:!1});casen.Glt:returnObject.assign({},e,{updatingTrackingSettings:!0});casen.lVz:casen.sWT:returnObject.assign({},e,{updatingTrackingSettings:!1});default:returne}}});functiono(e){returne.jetpack.trackingSettings.items}functionc(e){returne.jetpack.trackingSettings.requests.fetchingTrackingSettings}functionl(e){returne.jetpack.trackingSettings.requests.updatingTrackingSettings}},45970:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});vari=s(27723),n=s(13022),a=s(66087),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(90540),d=s(17090),u=s(11236),h=s(19950),m=s(38564),g=s(62148),j=s(28036),k=s(10790);const__=i.__,f=(e,t,s,n)=>{consta=!n&&Object.hasOwn(g.Dw,e.key)?g.Dw[e.key]:void0;letr,o;switch(e.slug){case"jetpack_backup_t0_yearly":case"jetpack_backup_t1_yearly":o=j.gg;break;case"jetpack_scan":o=j.a;break;case"jetpack_anti_spam":o=j.bH;break;case"jetpack_security_t0_yearly":case"jetpack_security_t1_yearly":o=j.yX,"secondary"===s&&(r=__("Popular upgrade","jetpack"))}constc=t?.find(({product_slug:t})=>t===e.slug),l=c?.original_price||e.fullPrice,d=e?.saleCoupon?.discount?1-e.saleCoupon.discount/100:1,u=(c?.raw_price||l)*d;return(0,k.jsx)(p.A,{icon:o,title:e.title,productSlug:e.slug,description:e.description,features:e.features,disclaimer:e.disclaimer,currencyCode:e.currencyCode,price:l/12,discountedPrice:u&&u!==l?u/12:null,billingDescription:__("per month, paid yearly","jetpack"),callToAction:r,priority:s,illustrationPath:a,checkoutUrl:e.upgradeUrl,checkoutText:(0,i.sprintf)(/* translators: %s: Name of a Jetpack product. */
__("Add %s","jetpack"),e.title)})},v=e=>{const{availableProductsAndPlans:t,product:s,offers:i}=e,r=((e,t)=>{consts="security";return!((0,a.isEmpty)(e.includedInPlans)||!Object.hasOwn(t,s)||!e.includedInPlans.includes(s))&&t[s]})(s,t);(0,c.useEffect)(()=>{u.A.tracks.recordEvent("jetpack_product_description_view",{type:s.slug})},[s]);consto=(0,n.A)({"jp-product-description":!0,"jp-product-description--split":!!r});return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:o,children:[f(s,i,"primary",!!r),!!r&&f(r,i,"secondary",!!r)]}),(0,k.jsx)("div",{className:"jp-product-description__introductory-pricing",children:__("Special introductory pricing, all renewals are at full price.","jetpack")}),(0,k.jsx)("div",{className:"jp-product-description__money-back-guarantee",children:(0,k.jsx)(d.e,{text:__("14-day money-back guarantee","jetpack")})})]})};v.propTypes={product:o().object.isRequired,availableProductsAndPlans:o().object.isRequired,offers:o().arrayOf(o().object).isRequired};constx=(0,l.Ng)(e=>({availableProductsAndPlans:(0,h.FE)(e),offers:(0,m.oz)(e)}))(v)},46441:(e,t,s)=>{"use strict";s.d(t,{m:()=>m});vari=s(12961),n=s(27723),a=s(51609),r=s(84952),o=s(81715),c=s(73087),l=s(11236),p=s(19950),d=s(36865),u=s(14897),h=s(10790);const__=n.__,m=(0,r.Ng)(e=>({hasRealTimeBackups:(0,d.IT)(e,"real-time-backups"),siteRawUrl:(0,p.XG)(e)}))(e=>{const{hasRealTimeBackups:t,siteRawUrl:s}=e;(0,a.useEffect)(()=>{l.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"one-click-restores"})},[]);constr=(0,a.useCallback)(()=>{l.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"one_click_restores"})},[]),p=(0,a.useCallback)(()=>{l.A.tracks.recordEvent("jetpack_backup_getting_started_video_click",{position:"recommendations/one_click_restores"})},[]);letd=__("Daily Backups","jetpack");returnt&&(d=__("Real-time Backups","jetpack")),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.T,{illustrationPath:c.d0+"/recommendations/one-click-restores.svg",children:(0,h.jsxs)("div",{className:"jp-recommendations-one-click-restores",children:[(0,h.jsx)("h2",{children:__("Enable one-click restores","jetpack")}),(0,h.jsx)("p",{children:(0,n.sprintf)(/* translators: %s: the name of a backups plan: Daily Backups or Real-time Backups */
__("Get the most out of your %s. One-click restores ensure you’ll be able to easily restore your site, if anything goes wrong.","jetpack"),d)}),(0,h.jsx)("p",{children:__("Enter your server credentials to enable one-click restores included in your plan.","jetpack")}),(0,h.jsx)("div",{className:"jp-recommendations-one-click-restores__cta",children:(0,h.jsx)(o.A,{rna:!0,href:(0,i.A)("jetpack-backup-dash-credentials",{site:s}),onClick:r,children:__("Enable one-click restores","jetpack")})})]})}),(0,h.jsx)(u.T,{compact:!0,children:(0,h.jsxs)("div",{className:"jp-recommendations-getting-started-compact",children:[(0,h.jsx)("a",{href:c.W_,onClick:p,target:"_blank",rel:"noreferrer",children:(0,h.jsx)("img",{className:"jp-recommendations-getting-started-compact__thumbnail",src:c.d0+"backup-getting-started-thumbnail.png",srcSet:`${c.d0+"backup-getting-started-thumbnail.png"} 1x, ${c.d0+"backup-getting-started-thumbnail-2x.png"} 2x`,alt:""})}),(0,h.jsxs)("div",{children:[(0,h.jsx)("h2",{children:__("Getting started with Jetpack VaultPress Backup","jetpack")}),(0,h.jsx)("p",{children:__("A short video guide on how to back up your website","jetpack")})]})]})})]})})},46521:(e,t,s)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;consts="color: "+this.color;t.splice(1,0,s,"color: inherit");leti=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))}),t.splice(n,0,s)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){lete;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeofprocess&&"env"inprocess&&(e=process.env.DEBUG);returne},t.useColors=function(){if("undefined"!=typeofwindow&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeofnavigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;lete;return"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeofwindow&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeofnavigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeofnavigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{returnlocalStorage}catch(e){}}(),t.destroy=(()=>{lete=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=s(79078)(t);const{formatters:i}=e.exports;i.j=function(e){try{returnJSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},46628:(e,t,s)=>{"use strict";s.d(t,{FX:()=>h,dV:()=>l,hg:()=>u,kK:()=>d,lR:()=>p});vari=s(27723),n=s(13022),a=s(66087),r=s(51609),o=(s(81715),s(39)),c=s(10790);i._x;constl=e=>(0,c.jsx)("fieldset",{...e,className:(0,n.A)(e.className,"jp-form-fieldset"),children:e.child
__("The %s constant is defined","jetpack"),"JETPACK_DEV_DEBUG")),e.wpLocalConstant&&t.push((0,a.sprintf)(/* translators: %s: a PHP constant, such as WP_LOCAL_DEV. */
__("The %s constant is defined","jetpack"),"WP_LOCAL_DEV")),e.url&&t.push(__("Your site URL is a known local development environment URL","jetpack")),e.option&&t.push(__("The jetpack_offline_mode option is active","jetpack"));consts=(0,n.createInterpolateElement)(/* translators: reasons is an unordered list of reasons why a site may be in Offline mode. */
__("Currently in <a>Offline Mode</a> (some features are disabled) because: <reasons/>","jetpack"),{a:(0,A.jsx)("a",{href:(0,i.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:(0,A.jsx)("ul",{children:t.map((e,t)=>(0,A.jsx)("li",{children:e},t))})});return(0,A.jsx)(m.A,{showDismiss:!1,status:"is-info",text:s,children:(0,A.jsx)(g.A,{href:(0,i.A)("jetpack-support-development-mode"),children:__("Learn More","jetpack")})})}return!1}}N.propTypes={siteConnectionStatus:o().oneOfType([o().string,o().bool]).isRequired,siteOfflineMode:o().oneOfType([o().bool,o().object]).isRequired};classEextendsc.Component{staticdisplayName="UserUnlinked";render(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&(0,A.jsx)("div",{className:"jp-unlinked-notice",children:(0,A.jsx)(u.A,{title:__("Connect your WordPress.com account","jetpack"),description:__("Jetpack is powering your site, but to access all of its features you’ll need to connect your account to WordPress.com.","jetpack"),callToAction:__("Create account","jetpack"),href:`${this.props.connectUrl}&from=unlinked-user-connect`,icon:(0,A.jsx)(d.d6,{icon:"wordpress",size:24}),className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0})})}}E.propTypes={connectUrl:o().string.isRequired,siteConnected:o().bool.isRequired};classTextendsc.Component{staticdisplayName="JetpackNotices";dismissNotice=e=>{document.cookie=`jetpack_deprecate_dismissed[${e}]=1; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/; Secure; SameSite=None`};render(){conste=this.props.siteDataErrors.filter(e=>Object.hasOwn(e,"action")),t=this.props.location.pathname.startsWith("/connect-user");return(0,A.jsxs)("div",{"aria-live":"polite",children:[(0,A.jsx)(h.A,{}),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&(this.props.connectionErrors.length>0||e.length>0)&&(0,A.jsx)(w.A,{errors:this.props.connectionErrors.concat(e),display:!this.props.isReconnectingSite}),(0,A.jsx)(C.A,{}),(0,A.jsx)(S,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),(0,A.jsx)(N,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),(0,A.jsx)(y.A,{location:this.props.location}),(0,A.jsx)(_.A,{}),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&!t&&(0,A.jsx)(E,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&(0,A.jsx)(m.A,{showDismiss:!1,status:"is-warning",text:__("This site is not connected to WordPress.com. Please ask the site administrator to connect.","jetpack")}),this.props.licensingError&&(0,A.jsx)(m.A,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}),window.noticeInfo&&Object.entries(window.noticeInfo).map(([e,{title:t,message:s,link:n}])=>(0,A.jsx)(b.A,{noticeKey:e,dismissNotice:()=>this.dismissNotice(e),title:t,message:s,link:(0,i.A)(n.url),linkText:n.label},e))]})}}constO=(0,l.Ng)(e=>({connectUrl:(0,k.Qp)(e),siteConnectionStatus:(0,k.i$)(e),userCanConnectSite:(0,f.Hz)(e),userCanConnectAccount:(0,f.Lv)(e),userIsSubscriber:(0,f.EV)(e),isConnectionOwner:(0,k.uQ)(e),isLinked:(0,k._U)(e),isDevVersion:(0,f.gF)(e),siteOfflineMode:(0,k.KK)(e),isInIdentityCrisis:(0,k.T$)(e),connectionErrors:(0,f.wz)(e),siteDataErrors:(0,x.F3)(e),isReconnectingSite:(0,k.Vs)(e),licensingError:(0,v.fZ)(e),hasConnectedOwner:(0,k.BG)(e)}),e=>({clearLicensingError:()=>e((0,v.A5)())}))(e=>(0,A.jsx)(T,{...e,location:(0,p.zy)()}))},46695:(e,t,s)=>{"use strict";s.d(t,{A:()=>w});vari=s(56427),n=s(86087),a=s(27723),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(81715),d=s(46628),u=s(31121),h=s(59044),m=s(56273),g=s(11236),j=s(36784),k=s(19950),f=s(47375),v=s(36865),x=s(54193),b=s(10790);const__=a.__;class_extendsc.Component{staticpropTypes={disabled:o().bool};staticdefaultProps={disabled:!1};state={inputV
__("Site failed to verify: %s","jetpack"),e),{id:"verify-site-google-error",duration:5e3})}elsethis.props.isSiteVerifiedWithGoogle&&g.A.tracks.recordEvent("jetpack_site_verification_google_verify_success")})})}handleClickAutoVerify=()=>{this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||(g.A.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),(0,j.A)(this.props.googleSiteVerificationConnectUrl,e=>{e&&this.checkAndVerifySite(e)}))};handleClickSetManually=e=>{g.A.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickEdit=e=>{g.A.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)};handleClickCancel=e=>{g.A.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:this.props.isOwner}),this.props.resetFormStateOption("google"),this.toggleVerifyMethod(e)};quickSave=e=>{g.A.tracks.recordEvent("jetpack_site_verification_google_manual_verify_save",{is_owner:this.props.isOwner,is_empty:!this.props.value}),this.props.onSubmit(e)};toggleVerifyMethod=()=>{this.setState({inputVisible:!this.state.inputVisible})};handleOnTextInputKeyPress=e=>{"Enter"===e.key&&this.quickSave()};render(){conste=this.props.googleSiteVerificationError&&"forbidden"===this.props.googleSiteVerificationError.code;if(this.state.inputVisible||e||!this.props.isCurrentUserLinked)return(0,b.jsx)("div",{children:(0,b.jsxs)(d.lR,{className:"jp-form-input-with-prefix",children:[(0,b.jsx)("span",{children:__("Google","jetpack")}),(0,b.jsx)(m.A,{name:"google",value:this.props.value,placeholder:this.props.placeholder,className:"code",disabled:this.props.disabled,onChange:this.props.onOptionChange,onKeyPress:this.handleOnTextInputKeyPress}),this.state.inputVisible&&(0,b.jsxs)("div",{className:"jp-form-site-verification-buttons",children:[(0,b.jsx)(p.A,{primary:!0,rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave,children:__("Save","jetpack")}),(0,b.jsx)(p.A,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel,children:__("Cancel","jetpack")})]})]},"verification_service_google")});if(this.props.isSiteVerifiedWithGoogle)return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"jp-form-input-with-prefix",children:[(0,b.jsx)("span",{children:__("Google","jetpack")}),(0,b.jsxs)("div",{className:"jp-form-site-verification-verified",children:[(0,b.jsx)(h.A,{icon:"checkmark-circle",size:20})," ",(0,b.jsx)("span",{children:__("Your site is verified with Google","jetpack")})]}),(0,b.jsx)(p.A,{rna:!0,type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit,children:__("Edit","jetpack")})]},"verification_service_google"),this.props.isOwner&&(0,b.jsx)("div",{className:"jp-form-input-with-prefix-bottom-message",children:(0,b.jsx)("div",{className:"jp-form-setting-explanation",children:(0,b.jsxs)("p",{children:[(0,n.createInterpolateElement)(__("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:(0,b.jsx)(i.ExternalLink,{rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",(0,n.createInterpolateElement)(/* translators: placeholders are links to Google support documents. */
__("Google will email about certain events that occur with your site, including indications that your website has been <a1>hacked</a1>, or problems <a2>crawling or indexing</a2> your site.","jetpack"),{a1:(0,b.jsx)(i.ExternalLink,{rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:(0,b.jsx)(i.ExternalLink,{rel:"noopener noreferrer",href:"https://www.google.com/insidesearch/howsearchworks/crawling-indexing.html"})})]})})})]});constt=this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||this.props.isVerifyingGoogleSite||this.props.disabled;return(0,b.jsxs)("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",children:[(0,b.jsx)("span",{children:__("Google:","jetpack")}),(0,b.jsx)("div",{className:"jp-form-google-label-unverified-actions",children:(0,n.createInterpolateElement)(__("<button1>Auto verify with Google</button1><span>or</span><button2>Manually verify with Google</button2>","jetpack"),{button1:(0,b.jsx)(p.A,{primary:!0,rna:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:(0,b.jsx)("span",{className:"jp-form-google-separator"}),button2:(0,b.jsx)(p.A,{rna:!0,type:"button",disabled:t,onClick:this.handleClickSetManually})})})]},"verification_service_google")}}constw=(0,l.Ng)(e=>({fetchingSiteData:(0,v.Kb)(e),googleSiteVerificationConnectUrl:(0,f.mq)(e,"google_site_verification"),googleSearchConsoleUrl:(0,x.aB)(e),fetchingGoogleSiteVerify:(0,x.wr)(e),isConnectedToGoogle:(0,x.yF)(e),isSiteVerifiedWithGoogle:(0,x.L9)(e),isVerifyingGoogleSite:(0,x.Iz)(e),userCanManageOptions:(0,k.hN)(e),googleSiteVerificationError:(0,x.ib)(e),isOwner:(0,x.v1)(e)}),{checkVerifyStatusGoogle:x.TI,createNotice:u.Fc,removeNotice:u.fj,verifySiteGoogle:x.ID})(_)},46755:(e,t,s)=>{"use strict";s.d(t,{$X:()=>ts,$ns:()=>$,Adt:()=>n,B5I:()=>ht,BIk:()=>bt,BVe:()=>xe,BXj:()=>Le,C_M:()=>Fe,Cj9:()=>H,Cvy:()=>Ce,Cy8:()=>J,Dvt:()=>is,EM8:()=>G,EeE:()=>ve,EqR:()=>T,Fdt:()=>M,FtY:()=>rt,G2:()=>D,G7U:()=>ue,Glt:()=>y,Gvw:()=>De,H1n:()=>ps,H_I:()=>Ut,Hvo:()=>us,I1N:()=>jt,I9e:()=>Be,J2s:()=>te,JH9:()=>rs,Kt:()=>Wt,Kt$:()=>It,Kxx:()=>ie,LHd:()=>Et,LK9:()=>S,LKY:()=>Re,LWm:()=>ss,LX4:()=>ms,LgT:()=>g,Lvk:()=>At,Mcz:()=>P,N8j:()=>le,NY7:()=>Ee,NjB:()=>kt,NvU:()=>o,OH_:()=>_,OOn:()=>v,ObO:()=>ls,PKf:()=>z,PMD:()=>Ue,PoH:()=>He,Q9k:()=>qt,Qgu:()=>re,Quo:()=>Ne,R1B:()=>B,RRv:()=>k,RWZ:()=>Ct,S68:()=>j,SOl:()=>u,SW5:()=>wt,SjL:()=>Gt,Smm:()=>c,T0C:()=>lt,TVv:()=>Se,U7A:()=>ce,UsK:()=>Pe,Ve:()=>ne,Vfi:()=>Ae,WHZ:()=>Ot,Wkx:()=>be,Wxz:()=>ze,WzY:()=>hs,X2c:()=>i,X99:()=>Me,XSi:()=>Bt,XdB:()=>tt,Xfo:()=>st,XwM:()=>he,YC9:()=>Ze,YCY:()=>ye,ZC3:()=>h,ZCe:()=>Zt,ZZG:()=>qe,Zo7:()=>ns,Zwb:()=>oe,_Dw:()=>me,_Wi:()=>Qe,_ce:()=>f,_i2:()=>_t,_nc:()=>_e,aUl:()=>Rt,acX:()=>U,bhx:()=>a,bpU:()=>$t,c30:()=>m,cBl:()=>Mt,dM3:()=>L,dhe:()=>je,e2D:()=>ft,e9_:()=>Pt,eZ7:()=>xt,eb$:()=>Vt,ezW:()=>as,fCe:()=>ks,fl0:()=>de,fnu:()=>b,gOo:()=>$e,gSC:()=>ke,gWA:()=>Xe,gbL:()=>r,gbR:()=>Jt,h86:()=>Qt,h8Y:()=>Ye,hTb:()=>gs,hcx:()=>it,heB:()=>ut,iSZ:()=>Te,in6:()=>We,j1M:()=>Kt,j7x:()=>ds,jA_:()=>Ge,jJQ:()=>vt,jpH:()=>Ie,jxF:()=>Q,jzm:()=>x,kam:()=>mt,kcV:()=>Z,kil:()=>et,kow:()=>zt,lOA:()=>fe,lVz:()=>C,le2:()=>se,mX7:()=>F,msC:()=>St,n7H:()=>pt,n9Z:()=>q,nzj:()=>ae,oCE:()=>js,oGo:()=>at,oOv:()=>ee,ooH:()=>E,pAF:()=>Je,pCl:()=>nt,pGJ:()=>Nt,pc5:()=>Ke,qyM:()=>ct,rL6:()=>p,rLi:()=>Xt,rNj:()=>we,s2d:()=>O,s5M:()=>pe,s8H:()=>Ve,sKY:()=>Ht,sWT:()=>A,spT:()=>N,t7M:()=>ot,tiw:()=>I,uRk:()=>Yt,uV_:()=>Y,vI6:()=>X,vZH:()=>K,vlr:()=>w,wbC:()=>W,ww8:()=>Tt,xQJ:()=>ge,xQf:()=>Lt,xf2:()=>R,xlA:()=>Dt,xqC:()=>d,y9I:()=>Ft,yRo:()=>gt,yci:()=>dt,ymV:()=>cs,ynO:()=>es,yxi:()=>yt,z0g:()=>l,z9S:()=>V,zqp:()=>os,zsW:()=>Oe});consti="JETPACK_SET_INITIAL_STATE",n="CONNECT_URL_FETCH",a="CONNECT_URL_FETCH_FAIL",r="CONNECT_URL_FETCH_SUCCESS",o="DISCONNECT_SITE",c="DISCONNECT_SITE_FAIL",l="DISCONNECT_SITE_SUCCESS",p="CONNECT_USER",d="RESET_CONNECT_USER",u="UNLINK_USER",h="UNLINK_USER_FAIL",m="UNLINK_USER_SUCCESS",g="USER_CONNECTION_DATA_FETCH",j="USER_CONNECTION_DATA_FETCH_FAIL",k="USER_CONNECTION_DATA_FETCH_S
// translators: %s is the letter grade of the site's speed performance.
__("Your site’s speed performance score: %s","jetpack"),R),(0,y.jsx)(T,{})]}),(0,y.jsx)("p",{className:(0,p.A)("dash-boost-speed-score__score-text",["C","D","E","F"].includes(R)?"warning":""),children:(()=>{switch(R){case"A":return__("Your site is fast! But maintaining a high speed isn’t easy.","jetpack");case"B":return__("You are one step away from making your site blazing fast.","jetpack");default:return__("Your site needs performance improvements!","jetpack")}})()})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"dash-boost-speed-score__last-tested",children:(()=>{switch(z){case0:return__("Your site was tested in the last 24 hours","jetpack");case1:return__("Your site was tested yesterday","jetpack");default:return(0,l.sprintf)(
// translators: %s is the number of days since the site was last tested.
__("Your site was tested %s days ago","jetpack"),z)}})()}),(0,y.jsx)("button",{className:"dash-boost-speed-score__install-button-link",onClick:X,disabled:E||P,children:(()=>{lete;if(!W)returnE?e=__("Installing…","jetpack"):P?e=__("Activating…","jetpack"):m&&(e=__("Activate Boost to run instant tests","jetpack")),e??__("Install Boost to run instant tests","jetpack")})()})]})]}),(0,y.jsxs)("div",{className:"dash-boost-speed-score__score-bars",children:[(0,y.jsx)(r.A,{score:U,active:!0,isLoading:w,showPrevScores:!1,scoreBarType:"mobile"}),(0,y.jsx)(r.A,{score:B,active:!0,isLoading:w,showPrevScores:!1,scoreBarType:"desktop"})]})]}):(0,y.jsx)(k.A,{className:"dash-boost-speed-score__section-header",label:G}),(0,y.jsx)("div",{children:(0,y.jsx)(j.A,{pluginName:G,pluginSlug:S,pluginFiles:A,pluginLink:e+C,installOrActivatePrompt:(0,c.createInterpolateElement)((0,l.sprintf)("<b>%1$s<Info/><br/></b>%2$s",Y().top,Y().bottom),{br:(0,y.jsx)("br",{}),b:(0,y.jsx)("b",{}),Info:(0,y.jsx)(O,{})}),installedPrompt:x?__("We’re automatically re-generating your site’s Critical CSS.","jetpack"):(0,c.createInterpolateElement)(__("<a><u>Regenerate your Critical CSS</u> after making changes to your site</a><Info/>","jetpack"),{a:(0,y.jsx)("a",{href:e+C,className:"dash-boost-critical-css-info__text"}),u:(0,y.jsx)("u",{}),Info:(0,y.jsx)(M,{})}),plan:(0,v.EP8)(v.WcS)})})]})};N.propTypes={siteAdminUrl:u().string.isRequired,siteConnectionStatus:u().oneOfType([u().bool,u().string]).isRequired,siteUrl:u().string.isRequired,apiRoot:u().string.isRequired,apiNonce:u().string.isRequired,fetchingPluginsData:u().bool.isRequired,isBoostInstalled:u().bool.isRequired,isBoostActive:u().bool.isRequired,hasActiveBoostPurchase:u().bool.isRequired,latestSpeedScores:u().shape({timestamp:u().number,scores:u().shape({mobile:u().number,desktop:u().number}),theme:u().string})};constE=(0,m.Ng)(e=>({siteConnectionStatus:(0,x.i$)(e),siteUrl:(0,b.XG)(e),apiRoot:(0,b.O3)(e),apiNonce:(0,b.Co)(e),fetchingPluginsData:(0,w.rC)(e),isBoostInstalled:A.some(t=>(0,w.O8)(e,t)),isBoostActive:A.some(t=>(0,w.gT)(e,t)),hasActiveBoostPurchase:(0,_.Z$)(e),latestSpeedScores:(0,b.BG)(e)}),e=>({fetchPluginsData:()=>e((0,w.bR)())}))(N),T=()=>{conste=(0,h.useCallback)(()=>{f.A.tracks.recordJetpackClick({target:"boost-grade-info-button",feature:S})},[]);return(0,y.jsx)("div",{className:"boost-grade-info",children:(0,y.jsxs)(g.A,{onClick:e,screenReaderText:__("Learn more about how this grade is calculated","jetpack"),children:[(0,y.jsx)("p",{className:"boost-grade-info__grades-description",children:__("Your Overall Score is a summary of your website performance across both mobile and desktop devices. It gives a general idea of your sites’ overall performance.","jetpack")}),(0,y.jsxs)("div",{className:"boost-grade-info__grades-table",children:[(0,y.jsx)("table",{children:(0,y.jsxs)("tbody",{children:[(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"A"}),(0,y.jsx)("td",{children:"90+"})]}),(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"B"}),(0,y.jsx)("td",{children:"75-90"})]}),(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"C"}),(0,y.jsx)("td",{children:"50-75"})]})]})}),(0,y.jsx)("table",{children:(0,y.jsxs)("tbody",{children:[(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"D"}),(0,y.jsx)("td",{children:"35-50"})]}),(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"E"}),(0,y.jsx)("td",{children:"25-35"})]}),(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{children:"F"}),(0,y.jsx)("td",{children:"0-25"})]})]})})]})]})})},O=()=>{conste=(0,h.useCallback)(()=>{f.A.tracks.recordJetpackClick({target:"boost-conversion-loss-info-button",feature:S})},[]),t=(0,h.useCallback)(()=>{f.A.tracks.recordJetpackClick({target:"boost-conversion-loss-info-source",feature:S})},[]);return(0,y.jsx)("div",{className:"boost-conversion-loss-info",children:(0,y.jsx)(g.A,{onClick:e,screenReaderText:__("Learn more about how slow sites lose visitors","jetpack"),children:(0,y.jsxs)("p",{className:"boost-conversion-loss-info__source",children:[__("Source:","jetpack")," ",(0,y.jsx)(o.ExternalLink,{href
__("Logo of %s who are offering a coupon in partnership with Jetpack","jetpack"),s.partner.name),width:s.partner.logo.width,height:s.partner.logo.height})]}):(0,p.jsx)(i.A,{}),(0,p.jsx)("div",{className:"jetpack-redeem-partner-coupon-post-connection",children:(0,p.jsxs)("div",{className:"jetpack-redeem-partner-coupon-post-connection__layout",children:[(0,p.jsxs)("div",{className:"jetpack-redeem-partner-coupon-post-connection__content",children:[(0,p.jsx)("div",{className:"jetpack-redeem-partner-coupon-post-connection__logo",children:v}),(0,p.jsx)("h2",{className:"jetpack-redeem-partner-coupon-post-connection__heading",children:__("One free year of Jetpack Backup","jetpack")})]}),(0,p.jsx)("div",{className:"jetpack-redeem-partner-coupon-post-connection__aside",style:{backgroundImage:`url(${r}/images/jetpack-aside-background.jpg)`},children:(0,p.jsx)("img",{src:r+"/images/cloud-checkmark.svg",alt:""})}),(0,p.jsxs)("div",{className:"jetpack-redeem-partner-coupon-post-connection__subcontent",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! Never worry about losing your data, ever.","jetpack"),s.product.title)}),(0,p.jsx)("ul",{children:s.product.features.map((e,t)=>(0,p.jsx)("li",{children:e},t))}),(0,p.jsxs)("div",{className:"jetpack-redeem-partner-coupon-post-connection__actions",children:[(0,p.jsx)("div",{children:(0,p.jsx)(n.A,{label:(0,a.sprintf)(/* translators: %s: Name of a Jetpack product. */
__("Back","jetpack")]})}},54833:(e,t,s)=>{"use strict";s.d(t,{A:()=>v});vari=s(12961),n=s(44179),a=s(27723),r=s(51609),o=s(84952),c=s(46628),l=s(76563),p=s(27844),d=s(79779),u=s(50534),h=s(11236),m=s(1194),g=s(26571),j=s(31238),k=s(10790);const__=a.__,f=(0,l.t)(classextendsr.Component{toggleModule=(e,t)=>{"photon"===e?!1==!t?this.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):this.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):this.props.updateOptions({[e]:!t})};handleSiteAcceleratorChange=()=>{lete=this.props.getOptionValue("photon"),t=this.props.getOptionValue("photon-cdn");consts=e||t,i=this.props.getModuleOverride("photon-cdn");letn=this.props.getModuleOverride("photon");if(this.props.isOfflineMode&&(n="inactive"),!0===s){consts={progress:__("Disabling site accelerator…","jetpack"),success:__("Site accelerator is no longer speeding up your site!","jetpack"),error:e=>(0,a.sprintf)(/* translators: %s: an error code. */
__("Error disabling site accelerator. %s","jetpack"),e)};letr={};!1==!e&&"active"!==n&&(e=!1,r={photon:!1,"tiled-gallery":!1,tiled_galleries:!1}),!1==!t&&"active"!==i&&(t=!1,r={...r,"photon-cdn":!1}),this.props.updateOptions(r,s)}else{consts={progress:__("Enabling Site accelerator…","jetpack"),success:__("Site accelerator is now speeding up your site!","jetpack"),error:e=>(0,a.sprintf)(/* translators: %s: an error code. */
__("Error enabling Site accelerator. %s","jetpack"),e)};letr={};!1===e&&"inactive"!==n&&(e=!0,r={photon:!0,"tiled-gallery":!0,tiled_galleries:!0}),!1===t&&"inactive"!==i&&(t=!0,r={...r,"photon-cdn":!0}),this.props.updateOptions(r,s)}!0===e||!0===t?h.A.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):h.A.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),this.props.getOptionValue("photon")!==e&&h.A.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===e?"off":"on"}),this.props.getOptionValue("photon-cdn")!==t&&h.A.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon-cdn",toggled:!1===t?"off":"on"})};render(){conste=this.props.isModuleFound("photon"),t=this.props.isModuleFound("photon-cdn");if(!e&&!t)returnnull;consts=this.props.getOptionValue("photon")||this.props.getOptionValue("photon-cdn"),a=this.props.getModuleOverride("photon-cdn");letr=this.props.getModuleOverride("photon");this.props.isOfflineMode&&(r="inactive");consto=e&&t&&("inactive"!==r||"inactive"!==a),l=(e||t)&&("inactive"!==r||"inactive"!==a);leth;return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?h=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?h=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(h=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(h=!0)):h=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),(0,k.jsx)(d.A,{...this.props,header:__("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed",children:(e||t)&&(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(u.A,{hasChild:!0,support:{link:(0,i.A)("jetpack-support-site-accelerator")},children:[(0,k.jsx)("p",{children:__("Load pages faster by allowing Jetpack to optimize your images and serve your images and static files (like CSS and JavaScript) from our global network of servers.","jetpack")}),l&&(0,k.jsx)(n.A,{checked:s,toggling:h,onChange:this.handleSiteAcceleratorChange,disabled:!o,label:(0,k.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable site accelerator","jetpack")})}),(0,k.jsxs)(c.dV,{children:[e&&(0,k.jsx)(p.j,{slug:"photon",disabled:this.props.isUnavailableInOfflineMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule,children:(0,k.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Speed up image load times","jetpack")})}),t&&(0,k.jsx)(p.j,{slug:"photon-cdn",activated:this.props.getOptionValue("photon-cdn"),toggling:this.props.isSavingAnyOption("photon-cdn"),toggleModule:this.toggleModule,children:(0,k.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Speed up static file load times","jetpack")})})]})]})})})}}),v=(0,o.Ng)(e=>({module:t=>(0,g.f_)(e,t),isModuleFound:t=>(0,j.jQ)(e,t),isOfflineMode:(0,m.hN)(e),getModuleOverride:t=>(0,g.d1)(e,t)}))(f)},55195:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});vari=s(10790),n=s(27723),a=s(51609),r=s(18104);s(21573);const__=n.__,_x=n._x,o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IB2cksfwAADwtJREFUeJztXet2mzgX3RLg+H5NmsRt0zad6Zp5/6eYtebPvMDX20zaJm4udmwH20jfDyQQQthpgm1gsTuMWgukg7aOzjmSAPLX3/9wlCgs6L4FKLFdlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFRElxwlAQXHCXBBUdJcMFh71uAbYMQsjaf82I/e1c4ggkh4JwrB8DBAQ6I/wEg4j8CQvxr5FE0wgtDMCEEjDF4ngdKKSzLQr1eQ71WxUGlAtu2QamvzYxxrFYruIsFZvMHzGZzeJ4XXEspLQzRhSF4tVrBcRwM+j30um2020049uNub7laYTy+x83tGLd3YyyXS1iWtXWZd4FcE0wI4HkchAAnJy9wfNhHvV6Lnccjw3NwNaR5dmwbg34Xg34Xs9kcP0bXuLwcgXPAsgjyrMy5Jdgnl6Fer+Ht6yHa7RYQOE0hefJcYJOzBQAc9XoN785eYtBt49PXC8xmc1gWzS3JuQyTCCFYrRh6vTb+/PDeJ5f7JPnO0lPKlA6ar+ztdgt/fniPXq+N1Ypt9MazitwRTACsPA+DXge/n7+F49hBRhocEBIqu+PY+P38L
// translators: temporal indication of when a post was published
"Just now","","jetpack")}),(0,i.jsx)("span",{className:"facebook-preview__post-header-dot","aria-hidden":"true",children:"·"}),(0,i.jsx)(r.A,{name:"public"})]})]})]}),!s&&(0,i.jsx)("div",{className:"facebook-preview__post-header-more"})]})}},55263:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>a});vari=s(77790);functionn(e,t,s){return(0,i.A)({},s,e,t)}consta=[function(e){return"function"==typeofe?function(e){returnfunction(t,s){s.displayName;vari,n=s.pure,a=s.areMergedPropsEqual,r=!1;returnfunction(t,s,o){varc=e(t,s,o);returnr?n&&a(c,i)||(i=c):(r=!0,i=c),i}}}(e):void0},function(e){returne?void0:function(){returnn}}]},55440:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});vari=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(51166),c=s(8283),l=s(1194),p=s(19950),d=s(26571),u=s(10790);classhextendsa.Component{shouldComponentUpdate(e){returne.siteConnectionStatus!==this.props.siteConnectionStatus||e.location.pathname!==this.props.location.pathname}renderMainContent=e=>{lett;switch(e){case"/dashboard":default:this.props.navigate("/dashboard",{replace:!0}),t=(0,u.jsx)(o.A,{...this.props});break;case"/settings":case"/writing":case"/sharing":case"/performance":this.props.isSubscriber||(t=(0,u.jsx)(c.A,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,userCanManageModules:this.props.userCanManageModules}))}returnwindow.wpNavMenuClassChange(),(0,u.jsx)("div",{children:t})};render(){returnthis.renderMainContent(this.props.location.pathname)}}h.propTypes={userCanViewStats:n().bool.isRequired,isSubscriber:n().bool.isRequired,siteConnectionStatus:n().any.isRequired};constm=(0,r.Ng)(e=>({userCanViewStats:(0,p.WC)(e),siteConnectionStatus:(0,l.i$)(e),isSubscriber:(0,p.EV)(e),isModuleActivated:t=>(0,d.Yp)(e,t),userCanManageModules:(0,p.Ir)(e)}))(h)},55473:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});vari=s(27723),n=s(13022),a=s(59044),r=s(10790);const__=i.__,o=({className:e})=>(0,r.jsxs)("div",{className:(0,n.A)("jp-recommendations-recommended-header",e),children:[(0,r.jsx)(a.A,{size:18,icon:"star"}),__("Recommended premium product","jetpack")]})},55828:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});vari=s(27723),n=s(13022),a=s(44810),r=s(51723),o=s(7002),c=s(10790);const__=i.__,l=({price:e,offPrice:t,currency:s="",showNotOffPrice:i=!0,hideDiscountLabel:l=!0,promoLabel:p="",legend:d=__("/month, paid yearly","jetpack"),isNotConvenientPrice:u=!1,hidePriceFraction:h=!1,children:m,variant:g="default"})=>{if(null==e&&null==t||!s)returnnull;i=i&&null!=t;constj="number"==typeofe&&"number"==typeoft?Math.floor((e-t)/e*100):0,k=!l&&j&&j>0?j+__("% off","jetpack"):null;return"simple"===g?(0,c.jsxs)("div",{className:o.A.simple,children:[(0,c.jsxs)("div",{className:o.A.currentPrice,children:[(0,c.jsx)(r.g,{value:t??e,currency:s,isOff:!u,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:d})]}),i&&(0,c.jsxs)("div",{className:o.A.originalPrice,children:[(0,c.jsx)(r.g,{value:e,currency:s,isOff:!1,hidePriceFraction:h,inline:!0}),(0,c.jsx)("div",{children:j&&j>0&&j+__("% off the first year","jetpack")})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:o.A.container,children:(0,c.jsxs)("div",{className:(0,n.A)(o.A["price-container"],"product-price_container"),children:[(0,c.jsx)(r.g,{value:t??e,currency:s,isOff:!u,hidePriceFraction:h}),i&&(0,c.jsx)(r.g,{value:e,currency:s,isOff:!1,hidePriceFraction:h}),k&&(0,c.jsx)(a.Ay,{className:(0,n.A)(o.A["promo-label"],"product-price_promo_label"),children:k})]})}),(0,c.jsxs)("div",{className:o.A.footer,children:[m||(0,c.jsx)(a.Ay,{className:(0,n.A)(o.A.legend,"product-price_legend"),children:d}),p&&(0,c.jsx)(a.Ay,{className:(0,n.A)(o.A["promo-label"],"product-price_promo_label"),children:p})]})]})}},55851:(e,t,s)=>{"use strict";s.d(t,{O:()=>_});vari=s(12961),n=s(59336),a=s(44179),r=s(39384),o=s(56427),c=s(86087),l=s(27723),p=s(43172),d=s(51609),u=s(75795),h=s.n(u),m=s(46628),g=s(76563),j=s(27844),k=s(79779),f=s(50534),v=s(72625),x=s(10790);const__=l.__,_x=l._x,b=()=>{const{userConnectionData:e}=(0,r.useConnection)(),t=e?.currentUser?.wpcomUser
__("<Preview>Preview:</Preview> <Empty>Byline will be empty</Empty>","jetpack"),{Preview:(0,a.jsx)("span",{className:"byline-preview__label"}),Empty:(0,a.jsx)("em",{})})})});letp="";returns&&r?p=(0,i.createInterpolateElement)((0,n.sprintf)(/* translators: %1$s placeholder is the user display name, %2$s is example date */
__("By <Author>%1$s</Author> on <Date>%2$s</Date>","jetpack"),c,l),{Author:(0,a.jsx)("strong",{className:"byline-preview__author",children:c}),Date:(0,a.jsx)("time",{className:"byline-preview__date",children:l})}):s&&!r?p=(0,i.createInterpolateElement)(/* translators: %1$s placeholder is the user display name *//* translators: %1$s placeholder is the user display name */
(0,n.sprintf)(__("By <Author>%1$s</Author>","jetpack"),c),{Author:(0,a.jsx)("strong",{className:"byline-preview__author"})}):!s&&r&&(p=(0,a.jsx)("time",{className:"byline-preview__date",children:l})),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"byline-preview",children:[(0,a.jsx)("span",{className:"byline-preview__label",children:__("Preview:","jetpack")}),t&&(0,a.jsx)("img",{className:"byline-preview__gravatar",src:o,alt:__("User's Avatar","jetpack")}),(0,a.jsx)("span",{children:p})]})})}},56602:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});vari=s(51609),n=s(84952),a=s(36865);classrextendsi.Component{staticdefaultProps={isFetchingSiteDiscount:!1};componentDidMount(){this.props.isFetchingSiteDiscount||this.props.fetchSiteDiscount()}render(){returnnull}}consto=(0,n.Ng)(e=>({isFetchingSiteDiscount:(0,a.dS)(e)}),e=>({fetchSiteDiscount:()=>e((0,a.zG)())}))(r)},56697:(e,t,s)=>{e.exports=function(e){functiont(e){lets,n,a,r=null;functiono(...e){if(!o.enabled)return;consti=o,n=Number(newDate),a=n-(s||n);i.diff=a,i.prev=s,i.curr=n,s=n,e[0]=t.coerce(e[0]),"string"!=typeofe[0]&&e.unshift("%O");letr=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(s,n)=>{if("%%"===s)return"%";r++;consta=t.formatters[n];if("function"==typeofa){constt=e[r];s=a.call(i,t),e.splice(r,1),r--}returns}),t.formatArgs.call(i,e);(i.log||t.log).apply(i,e)}returno.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=i,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(n!==t.namespaces&&(n=t.namespaces,a=t.enabled(e)),a),set:e=>{r=e}}),"function"==typeoft.init&&t.init(o),o}functioni(e,s){consti=t(this.namespace+(void0===s?":":s)+e);returni.log=this.log,i}functionn(e,t){lets=0,i=0,n=-1,a=0;for(;s<e.length;)if(i<t.length&&(t[i]===e[s]||"*"===t[i]))"*"===t[i]?(n=i,a=s,i++):(s++,i++);else{if(-1===n)return!1;i=n+1,a++,s=a}for(;i<t.length&&"*"===t[i];)i++;returni===t.length}returnt.debug=t,t.default=t,t.coerce=function(e){if(einstanceofError)returne.stack||e.message;returne},t.disable=function(){conste=[...t.names,...t.skips.map(e=>"-"+e)].join(",");returnt.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];consts=("string"==typeofe?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(consteofs)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(constsoft.skips)if(n(e,s))return!1;for(constsoft.names)if(n(e,s))return!0;return!1},t.humanize=s(44997),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(s=>{t[s]=e[s]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){lets=0;for(lett=0;t<e.length;t++)s=(s<<5)-s+e.charCodeAt(t),s|=0;returnt.colors[Math.abs(s)%t.colors.length]},t.enable(t.load()),t}},56951:(e,t,s)=>{"use strict";s.d(t,{g:()=>a});vari=s(10790),n=s(56427);consta=({tweet:e})=>e?(0,i.jsxs)("div",{className:"twitter-preview__quote-tweet",children:[(0,i.jsx)(n.SandBox,{html:`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="${e}"></a></blockquote>`,scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet"}),(0,i.jsx)("div",{className:"twitter-preview__quote-tweet-overlay"})]}):null},56957:(e,t,s)=>{"use strict";s.d(t,{b:()=>i.A});vari=s(64252);s(77264)},56996:(e,t,s)=>{"use strict";s.d(t,{P:()=>d});vari=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=(0,r.t)(classextendsa.Component{render(){conste=this.props.isUnavailableInOfflineMode("likes"),t=this.props.getOptionValue("likes");return(0,p.jsx)(c.A,{...this.props,header:_x("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0,children:(0,p.jsxs)(l.A,{disableInOfflineMode:!0,module:{module:"likes"},support:{text:__("Adds like buttons to your content so that visitors can show their appreciation or enjoyment.","jetpack"),link:(0,i.A)("jetpack
__("(opens in a new tab)","jetpack")})]}),g=({moduleName:e=__("Jetpack","jetpack"),className:t,moduleNameHref:s="https://jetpack.com",menu:i,useInternalLinks:n,onAboutClick:a,onPrivacyClick:p,onTermsClick:g,...j})=>{const[k]=(0,d.A)("sm","<="),[f]=(0,d.A)("md","<="),[v]=(0,d.A)("lg",">"),x=(0,c.A)();letb=[{label:_x("About","Link to learn more about Jetpack.","jetpack"),title:__("About Jetpack","jetpack"),href:n?newURL("admin.php?page=jetpack_about",x).href:(0,o.A)("jetpack-about"),target:n?"_self":"_blank",onClick:a},{label:_x("Privacy","Shorthand for Privacy Policy.","jetpack"),title:__("Automattic's Privacy Policy","jetpack"),href:n?newURL("admin.php?page=jetpack#/privacy",x).href:(0,o.A)("a8c-privacy"),target:n?"_self":"_blank",onClick:p},{label:_x("Terms","Shorthand for Terms of Service.","jetpack"),title:__("WordPress.com Terms of Service","jetpack"),href:(0,o.A)("wpcom-tos"),target:"_blank",onClick:g}];i&&(b=[...b,...i]);const_=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h,{}),e]});return(0,u.jsx)("footer",{className:(0,r.A)("jp-dashboard-footer",{"is-sm":k,"is-md":f,"is-lg":v},t),"aria-label":__("Jetpack","jetpack"),role:"contentinfo",...j,children:(0,u.jsxs)("ul",{children:[(0,u.jsx)("li",{className:"jp-dashboard-footer__jp-item",children:s?(0,u.jsx)("a",{href:s,children:_}):_}),b.map(e=>{constt="button"===e.role,s=!t&&"_blank"===e.target;return(0,u.jsx)("li",{children:(0,u.jsxs)("a",{href:e.href,title:e.title,target:e.target,onClick:e.onClick,onKeyDown:e.onKeyDown,className:(0,r.A)("jp-dashboard-footer__menu-item",{"is-external":s}),role:e.role,rel:s?"noopener noreferrer":void0,tabIndex:t?0:void0,children:[e.label,s&&(0,u.jsx)(m,{})]})},e.label)}),(0,u.jsx)("li",{className:"jp-dashboard-footer__a8c-item",children:(0,u.jsx)("a",{href:n?newURL("admin.php?page=jetpack_about",x).href:(0,o.A)("a8c-about"),"aria-label":__("An Automattic Airline","jetpack"),children:(0,u.jsx)(l.A,{"aria-hidden":"true"})})})]})})}},59336:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});vari=s(27723),n=s(13022),a=s(51609),r=(s(43324),s(10790));const__=i.__;classoextendsa.Component{staticdefaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-arrow-left","gridicons-arrow-right","gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-help-outline","gridicons-info","gridicons-info-outline","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGDescription(e){if("description"inthis.props)returnthis.props.description;switch(e){default:return"";case"gridicons-audio":return__("Has audio","jetpack");case"gridicons-arrow-left":return__("Arrow left","jetpack");case"gridicons-arrow-right":return__("Arrow right","jetpack");case"gridicons-calendar":return__("Is an event","jetpack");case"gridicons-cart":return__("Is a product","jetpack");case"chevron-down":return__("Show filters","jetpack");case"gridicons-comment":return__("Matching comment","jetpack");case"gridicons-cross":return__("Close","jetpack");case"gridicons-domains":return__("Website","jetpack");case"gridicons-filter":return__("Toggle search filters","jetpack");case"gridicons-folder":return__("Category","jetpack");case"gridicons-help-outline":return__("Help","jetpack");case"gridicons-info":case"gridicons-info-outline":return__("Information","jetpack");case"gridicons-image-multiple":return__("Has multiple images","jetpack");case"gridicons-image":return__("Has an image","jetpack");case"gridicons-page":return__("Page","jetpack");case"gridicons-post":return__("Post","jetpack");case"gridicons-jetpack-search":case"gridicons-search":return__("Magnifying Glass","jetpack");case"gridicons-tag":return__("Tag","jetpack");case"gridicons-video":return__("Has a video","jetpack")}}renderIcon(e){switch(e){default:returnnull;case"gridicons-audio":return(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})});case"gridicons-arrow-left":return(0
__("We’re sorry, %s is not compatible with multisite WordPress installations at this time.","jetpack"),i),errorInfo:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:__("This Jetpack plan doesn’t work with Multisite WordPress setups. Please use it on a single-site installation or consider canceling for a refund.","jetpack")}),(0,c.jsx)("p",{children:s})]})}}default:return{errorMessage:e,errorInfo:(0,c.jsx)("p",{children:s})}}}},61848:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});vari=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 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})})},62148:(e,t,s)=>{"use strict";s.d(t,{Dw:()=>o,Ix:()=>a,hM:()=>r,oW:()=>n});vari=s(73087);constn={JETPACK_ANTI_SPAM:"akismet",JETPACK_BACKUP:"backup",JETPACK_SCAN:"scan",JETPACK_SEARCH:"search",JETPACK_SECURITY:"security",JETPACK_SOCIAL:"social",JETPACK_VIDEOPRESS:"videopress",JETPACK_AI:"jetpack-ai"},a=[`/product/${n.JETPACK_ANTI_SPAM}`,`/product/${n.JETPACK_BACKUP}`,`/product/${n.JETPACK_SCAN}`,`/product/${n.JETPACK_SEARCH}`,`/product/${n.JETPACK_SECURITY}`,`/product/${n.JETPACK_VIDEOPRESS}`],r=[`/add-${n.JETPACK_ANTI_SPAM}`,`/add-${n.JETPACK_BACKUP}`,`/add-${n.JETPACK_SCAN}`,`/add-${n.JETPACK_SEARCH}`,`/add-${n.JETPACK_SOCIAL}`,`/add-${n.JETPACK_VIDEOPRESS}`,`/add-${n.JETPACK_AI}`],o={[n.JETPACK_ANTI_SPAM]:`${i.d0}products/illustration-anti-spam.png`,[n.JETPACK_BACKUP]:`${i.d0}products/illustration-backup.png`,[n.JETPACK_SCAN]:`${i.d0}products/illustration-scan.png`,[n.JETPACK_SEARCH]:`${i.d0}products/illustration-search.png`,[n.JETPACK_SECURITY]:`${i.d0}products/illustration-scan.png`,[n.JETPACK_VIDEOPRESS]:`${i.d0}products/illustration-videopress.png`}},62375:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});vari=s(10790),n=s(2895),a=s(63795);constr=({text:e,url:t,forceUrlDisplay:s})=>{letr;return(s||(0,n.ti)(e,"a"))&&(r=(0,i.jsx)("a",{className:"facebook-preview__custom-text-post-url",href:t,rel:"nofollow noopener noreferrer",target:"_blank",children:t})),(0,i.jsxs)("p",{className:"facebook-preview__custom-text",children:[(0,i.jsx)("span",{children:(0,n.x5)(e,{platform:"facebook",maxChars:a.zl})}),r]})}},62526:(e,t,s)=>{"use strict";s.d(t,{A:()=>j});vari=s(12961),n=s(86087),a=s(27723),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(81715),d=s(15937),u=s(1194),h=s(26571),m=s(10790);const__=a.__;classgextendsc.Component{staticpropTypes={isOfflineMode:o().bool.isRequired,isModuleAvailable:o().bool.isRequired};activatePhoton=()=>this.props.updateOptions({photon:!0});getContent(){conste=__("Image Accelerator","jetpack"),t={text:__("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.","jetpack"),link:(0,i.A)("jetpack-support-photon")};returnthis.props.getOptionValue("photon")?(0,m.jsx)(d.A,{label:e,module:"photon",support:t,status:"is-working",children:(0,m.jsx)("p",{className:"jp-dash-item__description",children:__("Jetpack is optimizing your image sizes and download speed using our fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack")})}):(0,m.jsx)(d.A,{label:e,module:"photon",support:t,className:"jp-dash-item__is-inactive",children:(0,m.jsx)("p",{className:"jp-dash-item__description",children:this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,n.createInterpolateElement)(__("<Button>Activate</Button> to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"),{Button:(0,m.jsx)(p.A,{className:"jp-link-button",onClick:this.activatePhoton})})})})}render(){returnthis.props.isModuleAvailable&&this.getContent()}}constj=(0,l.Ng)(e=>({isOfflineMode:(0,u.hN)(e),isModuleAvailable:(0,h.gp)(e,"photon")}))(g)},63423:(
_n("Uh oh, %s threat found.","Uh oh, %s threats found.",e,"jetpack"),(0,n.ZV)(e))}),(0,C.jsx)("br",{}),(0,C.jsx)("br",{}),(0,a.createInterpolateElement)(__("<a>View details</a>","jetpack"),{a:(0,C.jsx)("a",{href:(0,i.A)("vaultpress-dashboard")})}),(0,C.jsx)("br",{}),(0,a.createInterpolateElement)(__("<a>Contact Support</a>","jetpack"),{a:(0,C.jsx)("a",{href:(0,i.A)("jetpack-support")})})]}):__("Your site is connected to VaultPress for backups and security scanning.","jetpack")}returne&&!this.props.hasScan?__("Your site is connected to VaultPress for backups.","jetpack"):this.props.isFetchingRewindStatus?__("Checking site status…","jetpack"):__("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack")}render(){if(!this.props.showBackups)returnnull;conste=this.props.vaultPressData?.data?.features?.security??!1,t=this.props.rewindStatus?.state??!1,s=!1!==t,n="N/A"!==this.props.vaultPressData&&!1!==(this.props.vaultPressData?.data??!1);returns||!this.props.vaultPressActive||n?["provisioning","awaiting_credentials","active"].includes(t)?(0,C.jsx)(S,{...this.props,rewindState:t}):(0,C.jsxs)(j.A,{feature:v.FxV,...this.props,header:_x("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0,children:[(0,C.jsx)(m.A,{}),(0,C.jsx)(k.A,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,i.A)("vaultpress-help-get-to-know")},children:this.getCardText()}),!this.props.isUnavailableInOfflineMode("backups")&&e&&(0,C.jsx)(h.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:(0,i.A)("vaultpress-dashboard"),children:__("Configure your Security Scans","jetpack")})]}):(0,C.jsx)(A,{})}}),E=(0,d.Ng)(e=>({vaultPressData:(0,x.Cc)(e),hasScan:(0,y.IT)(e,"scan"),hasThreats:(0,x.mK)(e),vaultPressActive:(0,_.Yp)(e,"vaultpress"),showBackups:(0,b.Fp)(e),isFetchingRewindStatus:(0,w.wp)(e)}))(N)},64642:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});vari=s(12961),n=s(59289),a=s(17036),r=s(97999),o=s(27723),c=s(13022),l=s(51609),p=s(84952),d=s(40583),u=s(11236),h=s(1194),m=s(21544),g=s(19950),j=s(38318),k=s(10790);const__=o.__,_x=o._x,f=()=>{conste=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-e/1.5),window.scrollY>e&&window.requestAnimationFrame(f)};classvextendsl.Component{staticdisplayName="Footer";resetOnClick=()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&this.props.resetOptions()};trackVersionClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"version"})};trackTermsClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"terms"})};trackAboutClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"about"})};trackPrivacyClick=()=>{window.requestAnimationFrame(f),u.A.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})};trackModulesClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"modules"})};trackDebugClick=()=>{u.A.tracks.recordJetpackClick({target:"footer_link",link:"debug"})};render(){conste=(0,c.A)(this.props.className,"jp-footer"),t=this.props.currentVersion,s=[];return(0,r.isJetpackSelfHostedSite)()&&s.push({label:(0,o.sprintf)(/* Translators: %s: a version number. */
__("Version %s","jetpack"),t),href:(0,i.A)("jetpack"),target:"_blank",onClick:this.trackVersionClick}),this.props.siteConnectionStatus&&this.props.userCanManageOptions&&s.push({label:_x("Modules","Navigation item. Noun. Links to a list of modules for Jetpack.","jetpack"),title:__("Access the full list of Jetpack modules available on your site.","jetpack"),href:this.props.siteAdminUrl+"admin.php?page=jetpack_modules",onClick:this.trackModulesClick}),this.props.userCanManageOptions&&s.push({label:_x("Debug","Navigation item. Noun. Links to a debugger tool for Jetpack.","jetpack"),title:__("Test your site’s compatibility with Jetpack.","jetpack"),href:this.props.siteAdminUrl+"admin.php?page=jetpack-debugger",onClick:this.trackDebugClick}),this.props.isDevVersion&&this.props.userCanManageOptions&&s.push({label:_x("Reset Options (dev only)","Navigation item.","jetpack"),role:"button",onKeyDown:(0,j.A)(this.resetOnClick),onClick:this.resetOnClick}),this.props.isDevVersion&&s.push({label:_x("Dev Tools","Navigation item.","jetpack"),role:"button",onKeyDown:(0,j.A)(this.props.enableDevCard),onClick:this.props.enableDevCard}),(0,k.jsx)(a.Ay,{children:(0,k.jsxs)("div",{className:(0,c.A)("jp-footer",e),children:[(0,k.jsx)("div",{className:"jp-footer__container",children:(0,k.jsx)(n.A,{menu:s,moduleNameHref:(0,i.A)("jetpack"),onAboutClick:this.trackAboutClick,onPrivacyClick:this.trackPrivacyClick,onTermsClick:this.trackTermsClick,useInternalLinks:this.props.siteConnectionStatus})}),this.props.isDevVersion&&this.props.displayDevCard&&(0,k.jsx)(d.A,{})]})})}}constx=(0,p.Ng)(e=>({currentVersion:(0,g.Mj)(e),displayDevCard:(0,m.M4)(e),isDevVersion:(0,g.gF)(e),isInIdentityCrisis:(0,h.T$)(e),siteConnectionStatus:(0,h.i$)(e),userCanManageOptions:(0,g.hN)(e)}),e=>({resetOptions:()=>e((0,m.yB)("options")),enableDevCard:()=>e((0,m.$K)())}))(v)},64732:(e,t,s)=>{"use strict";s.d(t,{A:()=>g});vari=s(27723),n=s(51609),a=s(84952),r=s(39862),o=s(1194),c=s(19950),l=s(26571),p=s(31238),d=s(17259),u=s(20600),h=s(10790);const__=i.__;classmextendsn.Component{staticdisplayName="DiscussionSettings";render(){conste={settings:this.props.settings,getModule:this.props.module,isOdysseyStatsEnabled:this.props.isOdysseyStatsEnabled,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,siteAdminUrl:this.props.siteAdminUrl};if(!this.props.searchTerm&&!this.props.active)returnnull;constt=this.props.isModuleFound("comments"),s=this.props.isModuleFound("markdown"),i=this.props.isModuleFound("gravatar-hovercards"),n=this.props.isModuleFound("comment-likes");returnt||s||i||n?(0,h.jsxs)("div",{children:[(0,h.jsx)(r.A,{}),(0,h.jsx)("h1",{className:"screen-reader-text",children:__("Jetpack Discussion Settings","jetpack")}),(0,h.jsx)("h2",{className:"jp-settings__section-title",children:this.props.searchTerm?__("Discussion","jetpack"):__("Manage advanced comment settings.","jetpack")}),(0,h.jsx)(u.H,{...e,isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})]}):null}}constg=(0,a.Ng)(e=>({module:t=>(0,l.f_)(e,t),settings:(0,d.mt)(e),isOfflineMode:(0,o.hN)(e),isUnavailableInOfflineMode:t=>(0,o.Em)(e,t),isModuleFound:t=>(0,p.jQ)(e,t),connectUrl:(0,o.Qp)(e),isLinked:(0,o._U)(e),getModuleOverride:t=>(0,l.d1)(e,t),isOdysseyStatsEnabled:(0,c.jh)(e),siteAdminUrl:(0,c.eu)(e)}))(m)},64754:(e,t,s)=>{"use strict";s.d(t,{bP:()=>i.bP});vari=s(70398);s(19217)},64952:(e,t,s)=>{"use strict";s.d(t,{Gh:()=>i.Gh,IR:()=>n.I,LE:()=>i.LE,Nq:()=>i.Nq,Y9:()=>i.Y9,ab:()=>i.ab});vari=s(13404),n=s(97043)},65190:(e,t,s)=>{"use strict";s.d(t,{A:()=>p});vari=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(1194),c=s(43822);classlextendsa.Component{staticpropTypes={isFetchingRecommendationsConditional:n().bool,isOfflineMode:n().bool};staticdefaultProps={isFetchingRecommendationsConditional:!1,isOfflineMode:!1};componentDidMount(){this.props.isFetchingRecommendationsConditional||this.props.isOfflineMode||this.props.fetchRecommendationsConditional()}render(){returnnull}}constp=(0,r.Ng)(e=>({isFetchingRecom
__("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),e[0],e[1]),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,n.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({agreeButtonLabel:e})=>(0,n.createInterpolateElement)((0,a.sprintf)(/* translators: %s is a button label */
__("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack"),e),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=()=>(0,n.createInterpolateElement)(__("By continuing you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site’s data</shareDetailsLink> with us. We’ll check if that email is linked to an existing WordPress.com account or create a new one instantly.","jetpack"),{tosLink:(0,l.jsx)(h,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(h,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),h=({slug:e,children:t})=>(0,l.jsx)(i.ExternalLink,{className:"terms-of-service__link",href:(0,o.A)(e),children:t}),m=({className:e,multipleButtons:t,agreeButtonLabel:s,isTextOnly:i,...n})=>(0,l.jsx)(c.Ay,{className:(0,r.A)(e,"terms-of-service"),...n,children:i?(0,l.jsx)(u,{}):t?(0,l.jsx)(p,{multipleButtonsLabels:t}):(0,l.jsx)(d,{agreeButtonLabel:s})})},70284:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});vari=s(28120),n=s.n(i),a=s(51609),r=s(59044),o=s(10790);classcextendsa.Component{staticdisplayName="NoticeAction";staticpropTypes={href:n().string,onClick:n().func,external:n().bool,icon:n().string,variant:n().oneOf(["primary","secondary"])};staticdefaultProps={external:!1};render(){lete="dops-notice__action";"secondary"===this.props.variant&&(e+=" is-secondary");constt={className:e,href:this.props.href,onClick:this.props.onClick};returnthis.props.external&&(t.target="_blank"),(0,o.jsxs)("a",{...t,children:[(0,o.jsx)("span",{children:this.props.children}),this.props.icon&&(0,o.jsx)(r.A,{icon:this.props.icon,size:24}),this.props.external&&(0,o.jsx)(r.A,{icon:"external",size:24})]})}}},70398:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>a,bP:()=>r});vari=s(26556),n=s(46755);consta=(0,i.HY)({items:(e={},t)=>t.type===n.dhe?t.products:e,requests:(e={},t)=>{switch(t.type){casen.xQJ:returnObject.assign({},e,{isFetchingProducts:!0});casen.dhe:casen.gSC:returnObject.assign({},e,{isFetchingProducts:!1});default:returne}}});functionr(e){return!!e.jetpack.products.requests.isFetchingProducts}},70449:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});vari=s(27723),n=s(28120),a=s.n(n),r=s(51609),o=s(84952),c=s(74209),l=s(38936),p=s(11236),d=s(1194),u=s(10790);const__=i.__,h=e=>{const{feature:t,featureLabel:s,text:n,doConnectUser:a}=e,o="unlinked-user-connect",d=(0,r.useCallback)(()=>{p.A.tracks.recordJetpackClick({target:"connection-bar-click",feature:t,is_user_wpcom_connected:"no",is_connection_owner:"no"}),a(s,o)},[a,t,s,o]);return(0,u.jsxs)(c.A,{compact:!0,className:"jp-connect-user-bar__card",children:[(0,u.jsx)("span",{children:(0,i.sprintf)(/* translators: %s: text adding extra instructions on what to do next. */
__("This feature is provided by the WordPress.com cloud. %s","jetpack"),n)}),(0,u.jsx)(l.A,{connectUser:!0,from:o,connectLegend:__("Connect your WordPress.com account","jetpack"),customConnect:d,rna:!0,compact:!0})]})};h.propTypes={text:a().string.isRequired,feature:a().string,featureLabel:a().string};constm=(0,o.Ng)(null,e=>({doConnectUser:(t,s)=>e((0,d.k0)(t,s))}))(h)},71287:(e,t,s)=>{"use strict";s.d(t,{A:()=>k});vari=s(12961),n=s(44179),a=s(86087),r=s(27723),o=s(51609),c=s(84952),l=s(79466),p=s(76563),d=s(79779),u=s(50534),h=s(26571),m=s(17259),g=s(10790);const__=r.__;classjextendso.Component{state={testimonial:this.props.getOptionValue("jetpack_testimonial")||!1,portfolio:this.props.getOptionValue("jetpack_portfolio")||!1};updateCPTs=e=>{constt="testimonial"===e?!this.state.testimonial:!this.state.portfolio;"portfolio"===e?this.props.updateSettings({jetpack_portfolio:t}):this.props.updateSettings({jetpack_testimonial:t}),this.setState({[e]:!this.state[e]})};linkIfActiveCPT=e=>this.props.getSettingCurrentValue(`jetpack_${e}`)?(0,g.jsx)("a",{href:`${this.props.siteAdminUrl}edit.php?post_type=jetpack-${e}`}):(0,g.jsx)("span",{});handleTestimonialToggleChange=()=>{this.updateCPTs("testimonial")};handlePortfolioToggleChange=()=>{this.updateCPTs("portfolio")};render(){if(!this.props.customContentTypeIsActive)returnnull;conste=this.props.customContentTypeIsOverridden,t=e&&__("This feature has been disabled by a site administrator.","jetpack"),s="undefined"!=typeofjetpack_portfolio_theme_supports&&jetpack_portfolio_theme_supports,r=!t&&s?__("This feature is already supported by your theme.","jetpack"):"",o=s?(0,a.createInterpolateElement)(__("Use <portfolioLink>portfolios</portfolioLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site. This feature is enabled by default in your theme settings.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")}):(0,a.createInterpolateElement)(__("Use <portfolioLink>portfolios</portfolioLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")}),c=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.should_show_testimonials&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.should_show_testimonials,p=!!window?.CUSTOM_CONTENT_TYPE__INITIAL_STATE?.should_show_portfolios&&window.CUSTOM_CONTENT_TYPE__INITIAL_STATE.should_show_portfolios,h="undefined"!=typeofjetpack_testimonial_theme_supports&&jetpack_testimonial_theme_supports,m=!t&&h?__("This feature is already supported by your theme.","jetpack"):"",j=h?(0,a.createInterpolateElement)(__("Use <testimonialLink>testimonials</testimonialLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site. This feature is enabled by default in your theme settings.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")}):(0,a.createInterpolateElement)(__("Use <testimonialLink>testimonials</testimonialLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")});return(0,g.jsxs)(d.A,{...this.props,module:"custom-content-types",header:"Custom content types",hideButton:!0,children:[c&&(0,g.jsxs)(u.A,{hasChild:!0,module:{module:"custom-content-types"},support:{link:(0,i.A)("jetpack-support-custom-content-types")},children:[(0,g.jsxs)("p",{children:[" ",j," "]}),(0,g.jsx)(n.A,{checked:!!this.props.getOptionValue("jetpack_testimonial")&&this.props.getOptionValue("jetpack_testimonial"),disabled:e||h,toggling:this.props.isSavingAnyOption("jetpack_testimonial"),onChange:this.handleTestimonialToggleChange,disabledReason:m,label:(0,g.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Testi
__("Step %1$d of %2$d","jetpack"),e+1,t)})]})}},72288:(e,t,s)=>{"use strict";s.d(t,{X:()=>o,Y:()=>c});vari=s(21453),n=s(27723),a=s(31121),r=s(46755);const__=n.__,o=()=>e=>(e({type:r.fnu}),i.Ay.fetchUserTrackingSettings().then(t=>(e({type:r.vlr,settings:t}),t)).catch(t=>{e({type:r.OH_,error:t})})),c=e=>t=>{consts={progress:__("Updating privacy settings…","jetpack"),success:__("Updated privacy settings.","jetpack"),error:e=>(0,n.sprintf)(/* translators: %s: an error message. */
__("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)};returnt((0,a.fj)("tracking-settings-update")),t((0,a.fj)("tracking-settings-update-success")),t((0,a.Fc)("is-info",s.progress,{id:"tracking-settings-update"})),t({type:r.Glt,updatedSettings:e}),i.Ay.updateUserTrackingSettings(e).then(i=>{t({type:r.sWT,updatedSettings:e,success:i}),t((0,a.fj)("tracking-settings-update")),t((0,a.fj)("tracking-settings-update-success")),t((0,a.Fc)("is-success",s.success,{id:"tracking-settings-update-success",duration:2e3}))}).catch(i=>{t({type:r.lVz,updatedSettings:e,success:!1,error:i}),t((0,a.fj)("tracking-settings-update")),t((0,a.fj)("tracking-settings-update-success")),t((0,a.Fc)("is-error",s.error(i),{id:"tracking-settings-update"}))})}},72349:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});consti={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};constn=function(e){if(eini)returni[e];thrownewError("config key `"+e+"` does not exist")}},72369:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});vari=s(46755),n=s(2056),a=s(81132);constr={error:null,featureEnabled:!1,hasLoaded:!1,isFetching:!1,overallStatus:n.i.PENDING,tests:[]},o=(e=r,t)=>{switch(t.type){casei.kow:return{...e,isFetching:!0,hasLoaded:!1};casei.H_I:return{...e,isFetching:!1,hasLoaded:!0,error:t.error};casei.y9I:return{...e,isFetching:!1,hasLoaded:!0,featureEnabled:t.featureEnabled,...t.tests&&Array.isArray(t.tests)?{overallStatus:(0,a.Y)(t.tests)}:{}};default:returne}}},72625:(e,t,s)=>{"use strict";s.d(t,{$bO:()=>$,ADq:()=>x,AhN:()=>Gt,BfZ:()=>P,CJy:()=>be,COP:()=>De,CRr:()=>a,DCG:()=>W,DGp:()=>Ot,DHZ:()=>p,DmX:()=>Ct,E$T:()=>oe,EP8:()=>ts,EX:()=>C,EiB:()=>Xe,Ek$:()=>S,EsA:()=>R,FQO:()=>he,FaP:()=>Ce,FpR:()=>Ft,FxV:()=>wt,GGh:()=>je,GiA:()=>v,Gyc:()=>ze,HA9:()=>Te,HWr:()=>ct,HdP:()=>ut,Hsn:()=>Pe,I5k:()=>Be,IPX:()=>ss,IiY:()=>$e,Is_:()=>K,JGt:()=>k,JM0:()=>ot,JZ7:()=>w,Jd5:()=>Ht,Jht:()=>U,JuJ:()=>re,JvE:()=>Nt,KCE:()=>Pt,KOn:()=>q,L$c:()=>Xt,LQP:()=>ae,MMo:()=>T,Mk2:()=>c,O4w:()=>Jt,Olc:()=>_,Pp2:()=>fe,Qbh:()=>de,Qpw:()=>ye,R3X:()=>Tt,Ryn:()=>O,SDZ:()=>Ue,SyV:()=>Et,T7f:()=>E,TwY:()=>pt,UBB:()=>qe,UIR:()=>Fe,V$p:()=>Le,VZ5:()=>J,Vno:()=>ge,W$W:()=>N,WcS:()=>Mt,Wn7:()=>ve,WpT:()=>o,X4A:()=>F,X8r:()=>Dt,Xd8:()=>At,XkN:()=>It,Xoz:()=>ee,Y1M:()=>ne,Y1g:()=>L,Y6$:()=>zt,YQy:()=>Ne,YRH:()=>B,YhD:()=>I,Z4D:()=>Rt,ZFV:()=>H,ZLW:()=>r,ZOP:()=>dt,Zcg:()=>A,ZfG:()=>es,ZrU:()=>St,_4K:()=>te,_qL:()=>Yt,_vD:()=>$t,aG$:()=>mt,asM:()=>Q,b2e:()=>X,bDd:()=>Ee,bQ:()=>y,c3q:()=>Ye,cwL:()=>m,d2k:()=>yt,d6V:()=>le,dHS:()=>j,dfd:()=>Zt,djT:()=>Ke,dji:()=>l,eJ8:()=>Z,eMf:()=>We,ebL:()=>ue,gF_:()=>Wt,gvR:()=>_t,jc4:()=>Lt,kU:()=>M,kUc:()=>V,lFm:()=>nt,m6F:()=>Se,mFu:()=>D,mNr:()=>Kt,mRQ:()=>u,nFH:()=>z,nMg:()=>b,ncG:()=>Y,nt$:()=>Qt,oQp:()=>Me,om_:()=>we,ovn:()=>xe,p1k:()=>qt,pcB:()=>_e,pmS:()=>f,pt9:()=>bt,pz9:()=>se,qZE:()=>pe,rD9:()=>ie,raG:()=>h,sBM:()=>g,sG7:()=>Je,suP:()=>Ae,t9C:()=>G,tDL:()=>rt,tX$:()=>me,tdG:()=>it,uRO:()=>Re,uX5:()=>ke,ufm:()=>He,vRX:()=>Ie,vS9:()=>Oe,vt4:()=>n,wBS:()=>Ve,wD5:()=>is,xSu:()=>ce,xYC:()=>i,xie:()=>d,yXc:()=>at,yuZ:()=>lt,zwM:()=>Ut,zx5:()=>Ge});consti="business-bundle",n="business-bundle-2y",a="business-bundle-3y",r="business-bundle-monthly",o="wp_bundle_hosting_trial_monthly",c="wp_bundle_migration_trial_monthly",l="wp_com_hundred_year_bundle_centennially",p="ecommerce-bundle",d="ecommerce-bundle-2y",u="ecommerce-bundle-3y",h="ecommerce-bundle-monthly",m="wooexpress-small-bundle-yearly",g="wooexpress-small-bundle-monthly",j="wooexpress-medium-bundle-yearly",k="wooexpress-medium-bundle-monthly",f="ecommerce-trial-bundle-monthly",v="value_bundle",x="value_bundle-2y",b="value_bundle-3y",_="value_bundle-monthly",w="personal-bundle",y="personal-bundle-2y",C="personal-bundle-3y",A="personal-bundle-monthly",S="starter-plan",N="pro-plan",E="free_plan",T="jetpack_free",O="jetpack_premium",M="jetpack_business",L="jetpack_personal",P="jetpack_premium_monthly",I="jetpack_business_monthly",R="jetpack_personal_monthly",D="jetpack_backup_t0_yearly",z="jetpack_backup_t0_monthly",F="je
__("Using <strong>%dGB</strong> of 1TB","jetpack"),Math.round(j/1024)),{strong:(0,v.jsx)("strong",{})})})]})]}),f&&(0,v.jsx)(h.Ay,{className:"media__videopress-upgrade",callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),title:x,disableHref:"false",eventFeature:"videopress",path:"dashboard",plan:(0,m.EP8)(m.SyV),feature:"jetpack_videopress",href:g,trackBannerDisplay:this.props.trackUpgradeButtonView})]})}):(0,v.jsx)(u.A,{label:e,module:"videopress",support:t,className:"jp-dash-item__is-inactive",noToggle:!s,overrideContent:s||p?null:(0,v.jsx)(h.Ay,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"videopress",path:"dashboard",plan:(0,m.EP8)(m.SyV)}),children:(0,v.jsx)("p",{className:"jp-dash-item__description",children:p?__("Unavailable in Offline Mode","jetpack"):(0,a.createInterpolateElement)(__("<Button>Activate</Button> to engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. Try it for free.","jetpack"),{Button:(0,v.jsx)(d.A,{className:"jp-link-button",onClick:this.activateVideoPress})})})})}render(){returnthis.props.isModuleAvailable&&this.getContent()}}const_=(0,p.Ng)(e=>({hasConnectedOwner:(0,j.BG)(e),hasVideoPressFeature:(0,f.IT)(e,"videopress-1tb-storage")||(0,f.IT)(e,"videopress-unlimited-storage")||(0,f.IT)(e,"videopress"),hasVideoPressUnlimitedStorage:(0,f.IT)(e,"videopress-unlimited-storage"),isModuleAvailable:(0,k.gp)(e,"videopress"),isOffline:(0,j.hN)(e),isFetching:(0,f.SN)(e),sitePlan:(0,f.X6)(e),upgradeUrl:(0,g.F)(e,"videopress"),videoPressStorageUsed:(0,f.$U)(e)}),e=>({connectUser:()=>e((0,j.k0)())}))(b)},74209:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});vari=s(13022),n=s(28120),a=s.n(n),r=s(51609),o=s(59044),c=s(10790);classlextendsr.Component{staticpropTypes={title:a().any,vertical:a().any,style:a().object,className:a().string,device:a().oneOf(["desktop","tablet","phone"])};staticdefaultProps={vertical:null};render(){return(0,c.jsx)("div",{className:(0,i.A)("dops-card-section",this.props.className),style:this.props.style,children:this.props.title?this._renderWithTitle():this.props.children})}_renderWithTitle=()=>{conste="dops-card-section-orient-"+(this.props.vertical?"vertical":"horizontal");return(0,c.jsxs)("div",{className:e,children:[(0,c.jsx)("h4",{className:"dops-card-section-label",children:this.props.title}),(0,c.jsx)("div",{className:"dops-card-section-content",children:this.props.children})]})}}classpextendsr.Component{render(){return(0,c.jsx)("div",{className:"dops-card-footer",children:this.props.children})}}classdextendsr.Component{staticpropTypes={meta:a().any,icon:a().string,iconLabel:a().any,iconColor:a().string,style:a().object,className:a().string,href:a().string,onClick:a().func,title:a().string,tagName:a().string,target:a().string,compact:a().bool,children:a().node};staticdefaultProps={iconColor:"#787878",className:"",tagName:"div",onClick:()=>{}};render(){conste=(0,i.A)("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),t=["compact","tagName","meta","iconColor"];lets,n;returnthis.props.href?s=this.props.target&&(0,c.jsx)(o.A,{className:"dops-card__link-indicator",icon:"external"}):t.push("href","target"),this.props.title&&(n=(0,c.jsxs)("h2",{className:"dops-card-title",children:[this.props.title,this.props.meta&&(0,c.jsx)("span",{className:"dops-card-meta",children:this.props.meta}),(this.props.icon||this.props.iconLabel)&&this._renderIcon()]})),(0,r.createElement)(this.props.href?"a":this.props.tagName,{...Object.fromEntries(Object.entries(this.props).filter(([e])=>!t.includes(e))),className:e},n,this.props.children,s)}_renderIcon=()=>(0,c.jsxs)("span",{className:"dops-card-icon",style:{color:this.props.iconColor},children:[this.props.icon&&(0,c.jsx)(o.A,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel]})}d.Section=l,d.Footer=p;constu=
__("Nice work! Let’s recap what we enabled for %s.","jetpack"),l)}),u.map(({name:e,slugs:t})=>{consts=`primary-onboarding-${e.toLowerCase().replace(/[\s_-]+/g,"-")}`;return(0,b.jsxs)("section",{"aria-labelledby":s,children:[(0,b.jsx)("h2",{id:s,children:(0,i.sprintf)(/* translators: %s is the jetpack plan name */
__("Part of your %s plan","jetpack"),e)}),t.map(e=>(0,b.jsx)(m.j,{slug:e},e))]},e)}),(p.selected.length>0||p.skipped.length>0)&&(0,b.jsxs)("section",{"aria-labelledby":"enabled-recommendations",children:[(0,b.jsx)("h2",{id:"enabled-recommendations",children:__("Recommendations enabled","jetpack")}),(0,b.jsx)("div",{children:p.selected.length>0?p.selected.map(e=>(0,b.jsx)(h.t,{featureSlug:e,isNew:T(e)},e)):(0,b.jsx)("p",{className:"jp-recommendations-summary__recommendation-notice",children:(0,b.jsx)("em",{children:__("You didn’t enable any recommended features. To get the most out of Jetpack, enable some recommendations or explore all Jetpack features.","jetpack")})})})]}),p.skipped.length>0&&(0,b.jsxs)("section",{"aria-labelledby":"skipped-recommendations",children:[(0,b.jsx)("h2",{id:"skipped-recommendations",children:__("Recommendations skipped","jetpack")}),(0,b.jsx)("div",{children:p.skipped.map(e=>(0,b.jsx)(h.t,{featureSlug:e,isNew:T(e)},e))})]}),d.length>0&&(0,b.jsxs)("section",{"aria-labelledby":"resources-summary-title",children:[(0,b.jsx)("h2",{id:"resources-summary-title",children:__("Resources","jetpack")}),(0,b.jsx)("div",{children:d.map(e=>(0,b.jsx)(g.v,{resourceSlug:e,isNew:T(e)},e))})]})]})});letM,L;if(s)M=(0,b.jsx)(c.m,{altText:__("Loading recommendations","jetpack")});elseswitch(o){case"loading":M=(0,b.jsx)(c.m,{altText:__("Loading recommendations","jetpack")});break;case"upsell":M=y.hide_upsell?(0,b.jsx)(f.D,{}):(0,b.jsx)(x.A,{}),L=(0,b.jsx)(j.U,{slug:o,underside:!0});break;case"one-click-restores":M=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.m,{}),(0,b.jsx)(j.U,{slug:o})]});break;case"manage-security":M=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(v.Z,{}),(0,b.jsx)(j.U,{slug:o})]});break;case"download-app":M=(0,b.jsx)(j.U,{slug:o});break;default:M=(0,b.jsx)(j.U,{slug:"unknown"})}return(0,b.jsxs)("div",{className:"jp-recommendations-summary",children:[(0,b.jsxs)("div",{className:"jp-recommendations-summary__main",children:[(0,b.jsx)("div",{className:(0,n.A)("jp-recommendations-summary__content",{isLoading:t}),children:O}),(0,b.jsx)("div",{className:(0,n.A)("jp-recommendations-summary__sidebar",{isLoading:s}),children:M})]}),L&&(0,b.jsx)("div",{className:(0,n.A)("jp-recommendations-summary__underside",{isLoading:a}),children:L})]})})},74653:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});vari=s(13022),n=s(28120),a=s.n(n),r=s(51609),o=s(74209),c=s(79466),l=s(59044),p=s(38318),d=s(10790);constu=()=>{};classhextendsr.Component{staticpropTypes={actionButton:a().element,actionButtonExpanded:a().element,cardKey:a().string,compact:a().bool,disabled:a().bool,expandedSummary:a().oneOfType([a().string,a().element]),expanded:a().bool,icon:a().string,onClick:a().func,onClose:a().func,onOpen:a().func,summary:a().oneOfType([a().string,a().element]),clickableHeader:a().bool,clickableHeaderText:a().bool};staticdefaultProps={onOpen:u,onClose:u,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1};state={expanded:this.props.expanded};onClick=()=>{this.props.children&&this.setState({expanded:!this.state.expanded}),this.props.onClick&&this.props.onClick(),this.state.expanded?this.props.onClose(this.props.cardKey):this.props.onOpen(this.props.cardKey)};getClickAction=()=>{if(!this.props.disabled)returnthis.onClick};getActionButton=()=>this.state.expanded&&this.props.actionButtonExpanded||this.props.actionButton;renderActionButton=()=>{conste=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return(0,d.jsx)("button",{className:"dops-foldable-card__action",onClick:e,children:this.getActionButton()});if(this.props.children){constt=24;return(0,d.jsxs)("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e,children:[(0,d.jsx)("span",{className:"screen-reader-text",children:"More"}),(0,d.jsx)(l.A,{icon:this.props.icon,size:t})]})}};renderContent=()=>(0,d.jsx)("div",{className:"dops-foldable-card__content",children:this.props.children});renderHeader=()=>{conste=this.props.summary?(0,d.j
__("(opens in a new tab)","jetpack")})]}),C=k?"_blank":void0,A=s?.[0]&&null!==s[0]&&"components-tooltip"!==s?.[0]?.props?.className;return(0,p.jsxs)(i.Button,{target:C,variant:n,className:(0,o.A)(_,{"has-text":!!u&&A}),icon:k?void0:u,iconSize:h,disabled:m,"aria-disabled":m,isDestructive:g,text:v,...b,children:[j&&(0,p.jsx)(i.Spinner,{}),(0,p.jsx)("span",{children:s}),y]})});d.displayName="Button";constu=d},75395:(e,t)=>{"use strict";vars="function"==typeofSymbol&&Symbol.for,i=s?Symbol.for("react.element"):60103,n=s?Symbol.for("react.portal"):60106,a=s?Symbol.for("react.fragment"):60107,r=s?Symbol.for("react.strict_mode"):60108,o=s?Symbol.for("react.profiler"):60114,c=s?Symbol.for("react.provider"):60109,l=s?Symbol.for("react.context"):60110,p=s?Symbol.for("react.async_mode"):60111,d=s?Symbol.for("react.concurrent_mode"):60111,u=s?Symbol.for("react.forward_ref"):60112,h=s?Symbol.for("react.suspense"):60113,m=s?Symbol.for("react.suspense_list"):60120,g=s?Symbol.for("react.memo"):60115,j=s?Symbol.for("react.lazy"):60116,k=s?Symbol.for("react.block"):60121,f=s?Symbol.for("react.fundamental"):60117,v=s?Symbol.for("react.responder"):60118,x=s?Symbol.for("react.scope"):60119;functionb(e){if("object"==typeofe&&null!==e){vart=e.$$typeof;switch(t){casei:switch(e=e.type){casep:cased:casea:caseo:caser:caseh:returne;default:switch(e=e&&e.$$typeof){casel:caseu:casej:caseg:casec:returne;default:returnt}}casen:returnt}}}function_(e){returnb(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=u,t.Fragment=a,t.Lazy=j,t.Memo=g,t.Portal=n,t.Profiler=o,t.StrictMode=r,t.Suspense=h,t.isAsyncMode=function(e){return_(e)||b(e)===p},t.isConcurrentMode=_,t.isContextConsumer=function(e){returnb(e)===l},t.isContextProvider=function(e){returnb(e)===c},t.isElement=function(e){return"object"==typeofe&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){returnb(e)===u},t.isFragment=function(e){returnb(e)===a},t.isLazy=function(e){returnb(e)===j},t.isMemo=function(e){returnb(e)===g},t.isPortal=function(e){returnb(e)===n},t.isProfiler=function(e){returnb(e)===o},t.isStrictMode=function(e){returnb(e)===r},t.isSuspense=function(e){returnb(e)===h},t.isValidElementType=function(e){return"string"==typeofe||"function"==typeofe||e===a||e===d||e===o||e===r||e===h||e===m||"object"==typeofe&&null!==e&&(e.$$typeof===j||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===x||e.$$typeof===k)},t.typeOf=b},75424:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});consti={"relative-col":"EUbhyoMhxLWDWad8oB4x","close-link":"JMN8T8oXOn_1IPEIdVFA","account-description":"UNcC1tzv3Ac1W70lnF5h","account-images":"lRoFwOQkX43bRDUcEHDg",wordpress:"A1rQc5jLMOXXd970FJpb",google:"eZpAOdXY2sg81NpZXyIT",apple:"_OSiCTrO9lGPriEoUQJQ",github:"xR_PhPqef6MvDtEHozUV","all-features":"mEHVJ_kWwCd0ahLsC0rs"}},75494:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});vari=s(13022),n=s(51609),a=s(11032);constr=Number(a.A.smcols),o=Number(a.A.mdcols),c=Number(a.A.lgcols),l=e=>{const{children:t,tagName:s="div",className:l}=e,p=Math.min(r,"number"==typeofe.sm?e.sm:r),d=Math.min(r,"object"==typeofe.sm?e.sm.start:0),u=Math.min(r,"object"==typeofe.sm?e.sm.end:0),h=Math.min(o,"number"==typeofe.md?e.md:o),m=Math.min(o,"object"==typeofe.md?e.md.start:0),g=Math.min(o,"object"==typeofe.md?e.md.end:0),j=Math.min(c,"number"==typeofe.lg?e.lg:c),k=Math.min(c,"object"==typeofe.lg?e.lg.start:0),f=Math.min(c,"object"==typeofe.lg?e.lg.end:0),v=(0,i.A)(l,{[a.A[`col-sm-${p}`]]:!(d&&u),[a.A[`col-sm-${d}-start`]]:d>0,[a.A[`col-sm-${u}-end`]]:u>0,[a.A[`col-md-${h}`]]:!(m&&g),[a.A[`col-md-${m}-start`]]:m>0,[a.A[`col-md-${g}-end`]]:g>0,[a.A[`col-lg-${j}`]]:!(k&&f),[a.A[`col-lg-${k}-start`]]:k>0,[a.A[`col-lg-${f}-end`]]:f>0});return(0,n.createElement)(s,{className:v},t)}},75504:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>E});vari=s(12961),n=s(44179),a=s(41670),r=s(27658),o=s(76205),c=s(27723),l=s(13022),p=s(51609),d=s(84952),u=s(36220),h=s(81715),m=s(74653),g=s(46628),j=s(76563),k=s(27844),
__("Your SEO settings are managed by the following plugin: %s","jetpack"),o[0].name)}),(0,A.jsx)("p",{children:__("Take control of the way search engines represent your site. With Jetpack’s SEO tools you can preview how your content will look on popular search engines and change items like your site name and tagline in seconds.","jetpack")}),(0,A.jsx)(k.j,{slug:"seo-tools",activated:t,toggling:this.props.isSavingAnyOption(e.module),disabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray)||p,toggleModule:this.props.toggleModuleNow,children:(0,A.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Customize your SEO settings","jetpack")})}),this.props.seoEnhancerAvailable&&this.props.hasSeoEnhancer&&(0,A.jsx)(g.dV,{children:(0,A.jsx)(n.A,{id:"seo-enhancer",disabled:!this.props.getOptionValue("seo-tools")||!this.props.hasSeoEnhancer,toggling:this.props.isSavingAnyOption("ai_seo_enhancer_enabled"),checked:this.props.hasSeoEnhancer&&this.props.getOptionValue("ai_seo_enhancer_enabled"),onChange:this.toggleSeoEnhancer,label:(0,A.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Automatically generate SEO title, SEO description, and image alt text for new posts","jetpack")})})})]}),t&&!(0,y.rC)(this.props.state)&&!p&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(m.A,{header:__("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card",children:(0,A.jsxs)(x.A,{children:[(0,A.jsx)("p",{children:__("You can set the structure of page titles for different sections of your site. Doing this will change the way your site title is displayed in search engines, social media sites, and browser tabs.","jetpack")}),(0,A.jsx)(C.Ay,{customSeoTitles:s,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:r}),(0,A.jsx)("div",{className:"jp-seo-custom-titles-save-button",children:this.saveButton(this.props)})]})}),(0,A.jsx)(m.A,{header:__("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card",children:(0,A.jsxs)(x.A,{children:[(0,A.jsx)("p",{style:{clear:"both"},children:__("Craft a description of your Website: up to 160 characters that will be used in search engine results for your front page, and when your website is shared on social media sites.","jetpack")}),(0,A.jsx)(g.lR,{htmlFor:"jp-seo-front-page-description",children:(0,A.jsx)("span",{className:"jp-form-label-wide",children:__("Front Page Meta Description","jetpack")})}),(0,A.jsxs)("div",{className:"jp-seo-front-page-description-container",children:[(0,A.jsx)(g.hg,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:a,onChange:this.props.onOptionChange}),(0,A.jsxs)("div",{className:d,children:[(0,c.sprintf)(/* translators: %d: the number of characters */
_n("%d character","%d characters",a.length,"jetpack"),a.length),a.length>=this.constants.frontPageMetaMaxLength&&" - "+__("Maximum characters reached.","jetpack")]})]}),(0,A.jsx)("div",{className:"jp-seo-front-page-description-save-button",children:this.saveButton(this.props)})]})}),(0,A.jsxs)(m.A,{header:__("Expand to preview how the SEO settings will look for your homepage on Google, Facebook, and Twitter.","jetpack"),clickableHeader:!0,className:"jp-seo-social-previews",children:[(0,A.jsxs)("div",{className:"jp-seo-social-previews-container",children:[(0,A.jsx)(u.d6,{icon:"google",size:24}),(0,A.jsx)("span",{className:"jp-seo-social-previews-label",children:__("Google search","jetpack")})]}),this.SocialPreviewGoogle(r),(0,A.jsx)("hr",{}),(0,A.jsxs)("div",{className:"jp-seo-social-previews-container",children:[(0,A.jsx)(u.d6,{icon:"facebook",size:24}),(0,A.jsx)("span",{className:"jp-seo-social-previews-label",children:__("Facebook","jetpack")})]}),this.SocialPreviewFacebook(r),(0,A.jsx)("hr",{}),(0,A.jsxs)("div",{className:"jp-seo-social-previews-container",children:[(0,A.jsx)(u.d6,{icon:"x",size:24}),(0,A.jsx)("span",{className:"jp-seo-social-previews-label",children:__("X","jetpack")})]}),this.SocialPreviewTwitter(r)]})]})]})}}),E=(0,d.Ng)(e=>({siteData:e.jetpack.siteData.data,siteRepresentativeImage:(0,_.AI)(e),seoEnhancerAvailable:(0,_.pi)(e),state:e,hasSeoEnhancer:(0,w.IT)(e,"ai-seo-enhancer")}))(N)},75514:(e,t,s)=>{"use strict";s.d(t,{U:()=>g});vari=s(12961),n=s(56427),a=s(86087),r=s(27723),o=s(13022),c=s(51609),l=s(95221),p=s(73087),d=s(11236),u=s(84039),h=s(14897),m=s(10790);const__=r.__,g=({slug:e,underside:t=!1})=>{(0,c.useEffect)(()=>{d.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"mobile_app",slug:e})},[e]);consts=(0,c.useCallback)(()=>{d.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_jpcom",slug:e})},[e]),r=(0,c.useCallback)(t=>{d.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_badge",store:t,slug:e})},[e]),g=()=>(0,m.jsx)("div",{className:"jp-recommendations-sidebar-mobile__apps-badge",children:(0,m.jsx)(l.A,{onBadgeClick:r,storeName:"ios",utm_source:"jetpack-plugin-recommendations"})}),j=()=>(0,m.jsx)("div",{className:"jp-recommendations-sidebar-mobile__apps-badge",children:(0,m.jsx)(l.A,{onBadgeClick:r,storeName:"android",utm_source:"jetpack-plugin-recommendations"})}),k=()=>(0,m.jsxs)("div",{className:"jp-recommendations-sidebar-mobile__qr-code-section",children:[(0,m.jsx)("img",{className:"jp-recommendations-sidebar-mobile__qr-code-image",src:p.d0+`/recommendations/mobile-app-qr-code-${e}.png`,width:80,height:80,alt:"qr code to jetpack.com/app/ web page"}),(0,m.jsx)("p",{className:"jp-recommendations-sidebar-mobile__qr-code-body",children:(0,a.createInterpolateElement)(__("Visit <ExternalLink>jetpack.com/app</ExternalLink> or scan this code to download the Jetpack mobile app.","jetpack"),{ExternalLink:(0,m.jsx)(n.ExternalLink,{href:(0,i.A)("jetpack-plugin-recommendations-mobile-app-component"),rel:"noopener noreferrer",target:"_blank",onClick:s})})})]}),f=t?35:25,v=(0,m.jsxs)("div",{className:"jp-recommendations-sidebar-mobile__header-container",children:[(0,m.jsx)("img",{src:p.d0+"/recommendations/wordpress-icon.svg",width:f,height:f,alt:""}),(0,m.jsx)("img",{className:(0,o.A)("jp-recommendation-sidebar-mobile__jetpack-icon",{underside:t}),src:p.d0+"/recommendations/jetpack-icon.svg",width:f,height:f,alt:""})]});return(0,m.jsxs)(h.T,{className:t?"underside":"",header:v,children:[(0,m.jsx)("h2",{className:"jp-recommendation-sidebar-mobile__heading",children:(()=>{switch(e){case"download-app":return__("Check your site activity anywhere, any time.","jetpack");case"one-click-restores":return__("Restore a backup anytime with the Jetpack mobile app.","jetpack");case"manage-security":return__("Realtime security notifications anywhere, any time.","jetpack");default:return__("Jetpack puts WordPress in your pocket.","jetpack")}})()}),(0,m.jsx)("p",{children:(()=>{switch(e){case"download-app":r
__("Visit the post for more.","jetpack")]}),(0,i.jsx)("div",{className:"facebook-preview__info",children:(0,i.jsx)(d.A,{name:"info"})})]})})]})]}),(0,i.jsx)(l.A,{})]})}},76223:(e,t,s)=>{"use strict";s.d(t,{Q:()=>i,Z:()=>n});consti={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},n=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},76289:()=>{},76465:(e,t,s)=>{"use strict";s.d(t,{A:()=>d});vari=s(28120),n=s.n(i),a=s(51609),r=s(84952),o=s(26556),c=s(39228),l=s(26571);classpextendsa.Component{staticpropTypes={isActive:n().bool};UNSAFE_componentWillMount(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}componentDidUpdate(e){this.props.fetchingProtectData||!0!==this.props.isActive||!1!==e.isActive||this.props.fetchProtectCount()}render(){returnnull}}p.defaultProps={fetchProtectCount:()=>{}};constd=(0,r.Ng)(e=>({fetchProtectCount:(0,c.Vg)(),fetchingProtectData:(0,c.QZ)(e),isModuleActivated:t=>(0,l.Yp)(e,t)}),e=>(0,o.zH)({fetchProtectCount:c.Vg},e))(p)},76468:(e,t,s)=>{"use strict";s.d(t,{V:()=>g});vari=s(12961),n=s(56427),a=s(86087),r=s(27723),o=s(51609),c=s(76563),l=s(27844),p=s(79779),d=s(50534),u=s(11236),h=s(72625),m=s(10790);const__=r.__,_x=r._x,g=(0,c.t)(classextendso.Component{trackConfigureClick=()=>{u.A.tracks.recordJetpackClick("configure-monitor-email")};render(){conste=this.props.hasConnectedOwner,t=this.props.getOptionValue("monitor"),s=this.props.isUnavailableInOfflineMode("monitor");return(0,m.jsx)(p.A,{...this.props,hideButton:!0,module:"monitor",header:_x("Downtime monitoring","Settings header","jetpack"),feature:h.XkN,children:(0,m.jsx)(d.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("monitor"),support:{text:__("Jetpack will continuously monitor your site and alert you the moment downtime is detected.","jetpack"),link:(0,i.A)("jetpack-support-monitor")},children:(0,m.jsx)(l.j,{slug:"monitor",disabled:s||!e,activated:t,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow,children:(0,m.jsx)("span",{className:"jp-form-toggle-explanation",children:(0,a.createInterpolateElement)(__("Get alerts if your site goes offline. Alerts are sent to your <a>WordPress.com account</a> email address.","jetpack"),{a:(0,m.jsx)(n.ExternalLink,{href:"https://wordpress.com/me/account",onClick:this.trackConfigureClick})})})})})})}})},76478:(e,t,s)=>{"use strict";s.d(t,{O8:()=>i.O8,bR:()=>n.b,gT:()=>i.gT,pK:()=>i.pK,rC:()=>i.rC});vari=s(9282),n=s(51709)},76563:(e,t,s)=>{"use strict";s.d(t,{t:()=>o});vari=s(51609),n=s(45213),a=s(11236),r=s(10790);functiono(e){classtextendsi.Component{state={options:{}};onOptionChange=e=>{constt=e.target.name;lets;s="checkbox"===e.target.type&&void0!==e.target.checked?e.target.checked:e.target.value,this.updateFormStateOptionValue(t,s)};updateFormStateOptionValue=(e,t=void0)=>{"string"==typeofe&&(e={[e]:t});consts={...this.state.options,...e};returnthis.setState({options:s}),!0};resetFormStateOption=e=>{const{[e]:t,...s}=this.state.options;returnthis.setState({options:s}),!0};updateFormStateAndSaveOptionValue=(e,t=void0)=>{"string"==typeofe&&(e={[e]:t}),this.props.updateOptions({...this.state.options,...e}).then(()=>{this.setState({options:{...this.state.options,...e}})})};updateFormStateModuleOption=(e,t,s=!1)=>{this.trackSettingsToggle(e,t,!this.getOptionValue(t)),this.getOptionValue(e)?s?this.props.updateOptions({[e]:!1,[t]:!this.getOptionValue(t)}):this.props.updateOptions({[t]:!this.getOptionValue(t)}):this.props.updateOptions({[e]:!0,[t]:!0})};toggleModuleNow=e=>{this.props.updateOptions({[e]:!this.getOptionValue(e)})};componentDidUpdate(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}onSubmit=e=>{e.preventDefault(),this.props.updateOptions(this.state.options).then(()=>{conste=Object.fromEntries(Object.entries(this.st
__("Hey, %s","jetpack"),t)}),(0,g.jsx)("h2",{className:m.A.headline,children:__("You have been gifted a Jetpack Golden Token.","jetpack")}),(0,g.jsxs)("p",{children:[d&&__("This unlocked a lifetime of Jetpack powers for your website. Your exclusive Jetpack Experience is already active.","jetpack"),!d&&__("This unlocks a lifetime of Jetpack powers for your website. Your exclusive Jetpack Experience awaits.","jetpack")]})]}),(0,g.jsxs)(o.A,{variant:"primary",weight:"regular",onClick:b,className:m.A.button,children:[d&&__("Awesome!","jetpack"),!d&&__("Redeem your token","jetpack")]})]}),(0,g.jsxs)("div",{className:`${m.A["powers-wrap"]}${m.A["content-wrap"]}`,children:[(0,g.jsxs)("div",{className:m.A["content-wrap-text"],children:[(0,g.jsx)("h2",{className:m.A.headline,children:__("Super powers are ready!","jetpack")}),(0,g.jsx)("p",{className:m.A.paragraph,children:__("Your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack")})]}),(0,g.jsxs)("div",{className:m.A["jetpack-products"],children:[(0,g.jsxs)("div",{children:[(0,g.jsx)(x,{}),(0,g.jsx)("h3",{children:__("VaultPress Backup","jetpack")}),(0,g.jsx)("p",{children:__("Save every change and get back online quickly with one‑click restores.","jetpack")})]}),(0,g.jsxs)("div",{children:[(0,g.jsx)(v,{}),(0,g.jsx)("h3",{children:_x("Scan","Plugin name (noun).","jetpack")}),(0,g.jsx)("p",{children:__("Automated scanning and one‑click fixes to keep your site ahead of security threats.","jetpack")})]})]}),(0,g.jsx)(o.A,{variant:"primary",weight:"regular",onClick:b,href:window?.myJetpackInitialState?.myJetpackUrl,className:m.A.button,children:__("Explore your new powers","jetpack")})]})]})})})})}k.propTypes={redeemClick:u().func,tokenRedeemed:u().bool,displayName:u().string,onModalClose:u().func};constf=k},77271:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});consti={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},77790:(e,t,s)=>{"use strict";functioni(){returni=Object.assign?Object.assign.bind():function(e){for(vart=1;t<arguments.length;t++){vars=arguments[t];for(variins)({}).hasOwnProperty.call(s,i)&&(e[i]=s[i])}returne},i.apply(null,arguments)}s.d(t,{A:()=>i})},78213:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});vari=s(10790),n=s(27723),a=s(18104);s(66265);const__=n.__,r=()=>(0,i.jsx)("ul",{className:"facebook-preview__post-actions",children:[{icon:"like",
label:__("Share","jetpack")}].map(({icon:e,label:t})=>(0,i.jsxs)("li",{children:[(0,i.jsx)(a.A,{name:e}),(0,i.jsx)("span",{children:t})]},e))})},78360:(e,t,s)=>{"use strict";s.d(t,{A:()=>k});vari=s(12961),n=s(97999),a=s(56427),r=s(86087),o=s(27723),c=s(51609),l=s(84952),p=s(4891),d=s(70284),u=s(11702),h=s(19950),m=s(99696),g=s(10790);const__=o.__;classjextendsc.Component{staticdisplayName="JetpackStateNotices";state={showNotice:!0};dismissJetpackStateNotice=()=>{this.setState({showNotice:!1})};getErrorFromKey=e=>{constt=this.props.jetpackStateNoticesErrorDescription||!1;lets="";switch(e){case"cheatin":s=__("Cheatin' uh?","jetpack");break;case"access_denied":s=(0,r.createInterpolateElement)(__("<p>Would you mind telling us why you did not complete the Jetpack connection in this <a>2 question survey</a>?</p><p>A Jetpack connection is required for our free security and traffic features to work.</p>","jetpack"),{a:(0,g.jsx)("a",{href:(0,i.A)("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:(0,g.jsx)("p",{})});break;case"wrong_state":s=__("You need to stay logged in to your WordPress blog while you authorize Jetpack.","jetpack");break;case"invalid_client":s=__("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.","jetpack");break;case"invalid_grant":s=__('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.',"jetpack");break;case"site_inaccessible":case"site_requires_authorization":s=(0,o.sprintf)(/* translators: %s: an error code and message. */
__("Your website needs to be publicly accessible to use Jetpack: %s","jetpack"),e);break;case"connection_disabled":s=(0,r.createInterpolateElement)(__("This site can't be connected to WordPress.com because it violates our <a>Terms of Service</a>.","jetpack"),{a:(0,g.jsx)(a.ExternalLink,{href:(0,i.A)("wpcom-tos")})});break;case"not_public":s=(0,r.createInterpolateElement)(__("<s>Your Jetpack has a glitch.</s> Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).","jetpack"),{s:(0,g.jsx)("strong",{})});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":s=__("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.","jetpack");break;case"register_http_request_failed":case"token_http_request_failed":s=(0,o.sprintf)(/* translators: %s: an error code and message. */
__("Jetpack could not contact WordPress.com: %s. This usually means something is incorrectly configured on your web host.","jetpack"),e);break;case"no_role":case"no_cap":case"no_code":case"no_state":case"invalid_state":case"invalid_request":case"invalid_scope":case"unsupported_response_type":case"invalid_token":case"no_token":case"missing_secrets":case"home_missing":case"siteurl_missing":case"gmt_offset_missing":case"site_name_missing":case"secret_1_missing":case"secret_2_missing":case"site_lang_missing":case"home_malformed":case"siteurl_malformed":case"gmt_offset_malformed":case"timezone_string_malformed":case"site_name_malformed":case"secret_1_malformed":case"secret_2_malformed":case"site_lang_malformed":case"secrets_mismatch":case"verify_secret_1_missing":case"verify_secret_1_malformed":case"verify_secrets_missing":case"verify_secrets_mismatch":s=(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %s: an error code and message. */
__("<s>Your Jetpack has a glitch.</s> We’re sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %s","jetpack"),e),{s:(0,g.jsx)("strong",{})});break;default:s=e}returnt?(0,g.jsxs)("div",{children:[s,(0,g.jsx)("br",{}),t]}):(0,g.jsx)("div",{children:s})};getMessageFromKey=e=>{lett,s="",a="is-info";switch(e){case"modules_activated":(0,n.isJetpackSelfHostedSite)()&&(s=(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %s: a version number, like 8.8. */
__("Welcome to <s>Jetpack %s</s>!","jetpack"),this.props.currentVersion),{s:(0,g.jsx)("strong",{})}));break;case"already_authorized":s=__("Your Jetpack is already connected.","jetpack"),a="is-success";break;case"authorized":s=__("You're fueled up and ready to go, Jetpack is now active.","jetpack"),a="is-success";break;case"linked":s=__("You're fueled up and ready to go.","jetpack"),a="is-success";break;case"protect_misconfigured_ip":s=__("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.","jetpack"),a="is-info",t=(0,g.jsx)(d.A,{href:(0,i.A)("jetpack-support-security-troubleshooting-protect"),children:__("Learn More","jetpack")});break;case"reconnection_completed":s=(0,r.createInterpolateElement)(__("Jetpack successfully reconnected! You can check your Jetpack Connection health by visiting the <a>Site Health tool</a>.","jetpack"),{a:(0,g.jsx)("a",{href:this.props.siteAdminUrl+"site-health.php"})}),a="is-success";break;default:s=e}return[s,a,t]};renderContent=()=>{lete,t="is-info",s="";consti=this.props.jetpackStateNoticesErrorCode,a=this.props.jetpackStateNoticesMessageCode,r=this.props.jetpackStateNoticesMessageContent;if(i||a||r){if(i&&(s=this.getErrorFromKey(i),"access_denied"!==i&&(t="is-error")),r&&r.release_post_content&&(0,n.isJetpackSelfHostedSite)())return(0,g.jsx)(u.A,{dismiss:this.dismissJetpackStateNotice,version:this.props.currentVersion,releasePostContent:r.release_post_content,featuredImage:r.release_post_featured_image,title:r.release_post_title});if(a){consti=this.getMessageFromKey(a);s=i[0],t=i[1],e=i[2]}if(""!==s)return(0,g.jsx)(p.A,{status:t,onDismissClick:this.dismissJetpackStateNotice,text:s,children:e})}};render(){return(0,g.jsx)("div",{children:this.state.showNotice?this.renderContent():null})}}constk=(0,l.Ng)(e=>({currentVersion:(0,h.Mj)(e),jetpackStateNoticesErrorCode:(0,m.sT)(e),jetpackStateNoticesMessageCode:(0,m.Fc)(e),jetpackStateNoticesErrorDescription:(0,m.nV)(e),jetpackStateNoticesMessageContent:(0,m.rp)(e),siteAdminUrl:(0,h.eu)(e)}))(j)},78723:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});vari=s(51609),n=s(84952),a=s(1194),r=s(19950);classoextendsi.Component{UNSAFE_componentWillMount(){!this.props.isFetchingUserData&&this.props.userCanConnectAccount&&this.props.fetchUserConnectionData()}render(){returnnull}}constc=(0,n.Ng)(e=>({isFetchingUserData:(0,a.eR)(e),userCanConnectAccount:(0,r.Lv)(e)}),e=>({fetchUserConnectionData:()=>e((0,a.u6)())}))(o)},78746:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>a,jQ:()=>o,nh:()=>r});vari=s(26556),n=s(46755);consta=(0,i.HY)({searchTerm:(e="",t)=>t.type===n.Lvk?t.term:e});functionr(e){returne.jetpack.search.searchTerm}functiono(e,t){consts=Object.values(e.jetpack?.modules?.items??{}).find(e=>e?.module===t);if(void0===s)return!1;consti=e.jetpack?.search?.searchTerm??!1;return!i||[s.module,s.name,s.description,s.learn_more_button,s.long_description,s.search_terms,s.additional_search_queries,s.short_description,s.feature?s.feature.toString():""].join(" ").toLowerCase().indexOf(i.toLowerCase())>-1}},79078:(e,t,s)=>{e.exports=function(e){functiont(e){lets,n,a,r=null;functiono(...e){if(!o.enabled)return;consti=o,n=Number(newDate),a=n-(s||n);i.diff=a,i.prev=s,i.curr=n,s=n,e[0]=t.coerce(e[0]),"string"!=typeofe[0]&&e.unshift("%O");letr=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(s,n)=>{if("%%"===s)return"%";r++;consta=t.formatters[n];if("function"==typeofa){constt=e[r];s=a.call(i,t),e.splice(r,1),r--}returns}),t.formatArgs.call(i,e);(i.log||t.log).apply(i,e)}returno.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=i,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==r?r:(n!==t.namespaces&&(n=t.namespaces,a=t.enabled(e)),a),set:e=>{r=e}}),"function"==typeoft.init&&t.init(o),o}functioni(e,s){consti=t(this.namespace+(void0===s?":":s)+e);returni.log=this.log,i}functionn(e,t){lets=0,i=0,n=-1,a=0;for(;s<e.length;)if(i<t.length&&(t[i]===e[s]||"*"===t[i]))"*"===t[i]?(n=i,a=s,i++):(s++,i++);else{if(-1===n)return!1;i=n+1,a++,s=a}f
/* translators: 'New' is shown as a badge to indicate that this content has not been viewed before. */
/* translators: 'New' is shown as a badge to indicate that this content has not been viewed before. */
(0,m.jsx)("span",{className:"jp-recommendations__new-badge",children:__("New","jetpack")})]}),(0,m.jsx)("div",{className:"jp-recommendations-feature-summary__actions",children:y})]})})},84773:(e,t,s)=>{"use strict";s.d(t,{F:()=>n});vari=s(46755);constn=e=>t=>{t({type:i.Lvk,term:e})}},84834:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});vari=s(27723),n=s(51609),a=s(84952),r=s(17090),o=s(11236),c=s(43822),l=s(25521),p=s(53987),d=s(53902),u=s(23676),h=s(10790);const__=i.__,m=(0,a.Ng)(e=>({upsell:(0,c.Kl)(e),discountData:(0,l.TG)(e)}))(({upsell:e,discountData:t})=>{const{product_slug:s}=e||{},{expiry_date:i}=t,a=(0,n.useMemo)(()=>(0,u.F)(t),[t]),c=(0,n.useCallback)(()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{product_slug:s,discount:a})},[s,a]),l=(0,n.useCallback)(()=>{o.A.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{product_slug:s,discount:a})},[s,a]);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(p.T,{...e,slug:s,isRecommended:!0,onClick:c,onMount:l}),a&&(0,h.jsxs)("div",{className:"jp-recommendations-summary__discount",children:[(0,h.jsx)("div",{className:"jp-recommendations-summary__timer",children:(0,h.jsx)(d.A,{timeClassName:"jp-recommendations-summary__time",label:__("Discount ends in:","jetpack"),expiryDate:i})}),(0,h.jsx)("a",{className:"jp-recommendations-summary__reco-link",href:"#/recommendations/product-suggestions",children:__("See all discounted products","jetpack")})]}),(0,h.jsxs)("div",{className:"jp-recommendations-summary__footer",children:[(0,h.jsx)(r.e,{text:__("14-day money-back guarantee","jetpack")}),(0,h.jsxs)("div",{className:"jp-recommendations-summary__footnote",children:[a&&__("* Discount is for first term only, all renewals are at full price.","jetpack"),!a&&__("Special introductory pricing, all renewals are at full price.","jetpack")]})]})]})})},84952:(e,t,s)=>{"use strict";s.d(t,{Kq:()=>i.Kq,Ng:()=>i.Ng,ty:()=>i.ty});vari=s(9767),n=s(96072);(0,s(28446).d)(n.r)},85179:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});vari=s(17414),n=s(53768),a=s(28982),r=s(8402),o=s(4652),c=s(13022),l=s(26889),p=s(10790);constd=e=>{switch(e){case"error":case"warning":default:returnn.A;case"info":returno.A;case"success":returna.A}},u=({level:e="info",title:t,children:s,actions:n,hideCloseButton:a=!1,onClose:o})=>{constu=(0,c.A)(l.A.container,l.A[`is-${e}`]);return(0,p.jsxs)("div",{className:u,children:[(0,p.jsx)("div",{className:l.A["icon-wrapper"],children:(0,p.jsx)(i.A,{icon:d(e),className:l.A.icon})}),(0,p.jsxs)("div",{className:l.A["main-content"],children:[t&&(0,p.jsx)("div",{className:l.A.title,children:t}),s,n&&n.length>0&&(0,p.jsx)("div",{className:l.A["action-bar"],children:n.map((e,t)=>(0,p.jsx)("div",{className:l.A.action,children:e},t))})]}),!a&&(0,p.jsx)("button",{"aria-label":"close",className:l.A["close-button"],onClick:o,children:(0,p.jsx)(i.A,{icon:r.A})})]})}},85537:(e,t,s)=>{"use strict";s.d(t,{Ff:()=>a,Iz:()=>o,L9:()=>l,aB:()=>d,ib:()=>p,v1:()=>u,wr:()=>r,yF:()=>c});vari=s(26556),n=s(46755);consta=(0,i.HY)({google:(e={fetching:!1,verifying:!1,verified:!1},t)=>{switch(t.type){casen.bpU:returnObject.assign({},e,{fetching:!0});casen.uRk:returnObject.assign({},e,{fetching:!1,error:t.error});casen.rLi:returnObject.assign({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});casen.ZCe:returnObject.assign({},e,{verifying:!0});casen.h86:returnObject.assign({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});casen.ynO:returnObject.assign({},e,{verifying:!1,verified:!1,error:t.error});default:returne}}});functionr(e){returne?.jetpack?.siteVerify?.google?.fetching??!1}functiono(e){returne?.jetpack?.siteVerify?.google?.verifying??!1}functionc(e){return!r(e)&&"no_token_for_user"!==e?.jetpack?.siteVerify?.google?.error?.code}functionl(e){returne?.jetpack?.siteVerify?.google?.verified??!1}functionp(e){returne?.jetpack?.
// translators: %s is the user's email address
__("The avatar comes from Gravatar, a universal avatar service. Your image may also appear on other sites using Gravatar when you're logged in with %s.","jetpack"),H),privacyLink:"https://support.gravatar.com/account/data-privacy/"})]}),(0,E.jsx)(r.A,{disabled:Q,checked:A&&t,toogling:s([L]),label:(0,E.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Show author display name","jetpack")}),onChange:ae}),(0,E.jsx)(r.A,{disabled:ee,checked:D&&t,toogling:s([P]),label:(0,E.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Add the post date","jetpack")}),onChange:re}),te.isPostDateEnabled&&(0,E.jsx)("div",{className:"email-settings__help-info",children:(0,d.createInterpolateElement)(__("You can customize the date format in your site’s <settingsLink>general settings</settingsLink>","jetpack"),{settingsLink:(0,E.jsx)(p.ExternalLink,{href:J+"options-general.php"})})})]}),(0,E.jsxs)(v.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!G,module:m,className:"newsletter-group",support:{link:(0,i.A)("jetpack-support-subscriptions",{anchor:"reply-to-email-address"}),text:__("Sets the reply to email address for your newsletter emails. It's the email where subscribers send their replies.","jetpack")},children:[(0,E.jsx)(j.kK,{className:"jp-form-label-wide",children:__("Sender name","jetpack")}),(0,E.jsxs)(a.A,{horizontalGap:0,fluid:!0,className:"sender-name",children:[(0,E.jsx)(n.A,{sm:3,md:4,lg:4,children:(0,E.jsx)(b.A,{value:he.value,disabled:ue,onChange:ge,placeholder:K||__("Enter sender name","jetpack")})}),(0,E.jsx)(n.A,{sm:1,md:1,lg:1,children:(0,E.jsx)(g.A,{primary:!0,rna:!0,onClick:je,disabled:ue||!he.hasChanged,children:__("Save","jetpack")})}),(0,E.jsx)(n.A,{className:"sender-name-example",children:(0,u.sprintf)(/* translators: 1. Site name or user entered replacement value 2. is the example email */
__("Preview: %1$s <%2$s>","jetpack"),he.value||K,(e=>{switch(e){case"author":return"author-name@example.com";case"comment":return"comment-reply@wordpress.com";default:return"donotreply@wordpress.com"}})(F))})]}),(0,E.jsx)("p",{className:"jp-form-setting-explanation",children:__("This is the name that appears in subscribers' inboxes. It's usually the name of your newsletter or the author.","jetpack")})]}),(0,E.jsxs)(v.A,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!G,module:m,className:"newsletter-group",support:{link:(0,i.A)("jetpack-support-subscriptions",{anchor:"reply-to-email-address"}),text:__("Sets the reply to email address for your newsletter emails. It's the email where subscribers send their replies.","jetpack")},children:[(0,E.jsx)(j.kK,{className:"jp-form-label-wide",children:__("Reply-to settings","jetpack")}),(0,E.jsx)(l.A,{className:"jp-form-radio-gap",selected:F||"comment",disabled:de,options:[{label:(0,E.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Replies will be a public comment on the post","jetpack")}),value:"comment"},{label:(0,E.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Replies will be sent to the post author's email","jetpack")}),value:"author"},{label:(0,E.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Replies are not allowed","jetpack")}),value:"no-reply"}],onChange:ce}),(0,E.jsxs)("p",{className:"reply-to jp-form-setting-explanation",children:[__("Choose who receives emails when subscribers reply to your newsletter.","jetpack"),"author"===F&&" "+__("The author’s account must be connected to WordPress.com to use their email as the reply-to address.","jetpack")]})]})]})}))},85834:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});vari=s(27723);const__=i.__;asyncfunctionn({interval:e,callback:t,timeout:s,timeoutError:i}){letn,a;returnnewPromise((r,o)=>{n=setTimeout(()=>{o(newError(i||__("Timed out","jetpack")))},s||12e4),a=setInterval(async()=>{try{awaitPromise.resolve(t(r))}catch(e){o(e)}},e)}).finally(()=>{clearTimeout(n),clearInterval(a)})}},86040:(e,t,s)=>{"use strict";functioni(e){constt={},s=[];e.forEach(e=>{t[e.id]={...e,children:[]}}),e.forEach(e=>{0!==e.parent&&t[e.parent]&&t[e.parent].children.push(e.id)});consti=(e,n,a)=>{constr=t[e],o={...r,depth:n,parentNames:[...a]};s.push(o),r.children.forEach(e=>i(e,n+1,[...a,r.name]))};returne.filter(e=>0===e.parent).forEach(e=>i(e.id,0,[])),s.map(({children:e,...t})=>t)}s.d(t,{E:()=>i})},86087:e=>{"use strict";e.exports=window.wp.element},86102:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});vari=s(28120),n=s.n(i),a=s(53248),r=s(17653),o=s(10790);constc=e=>{const{apiNonce:t,apiRoot:s,connectionStatus:i,partnerCoupon:n,assetBaseUrl:c,registrationNonce:l,siteRawUrl:p,tracksUserData:d,analytics:u}=e;returni.hasConnectedOwner?(0,o.jsx)(a.Ay,{assetBaseUrl:c,connectionStatus:i,partnerCoupon:n,siteRawUrl:p,tracksUserData:!!d,analytics:u}):(0,o.jsx)(r.A,{apiNonce:t,registrationNonce:l,apiRoot:s,assetBaseUrl:c,connectionStatus:i,partnerCoupon:n,siteRawUrl:p,tracksUserData:!!d,analytics:u})};c.propTypes={apiRoot:n().string.isRequired,apiNonce:n().string.isRequired,assetBaseUrl:n().string.isRequired,connectionStatus:n().object.isRequired,partnerCoupon:n().object.isRequired,registrationNonce:n().string.isRequired,siteRawUrl:n().string.isRequired,tracksUserData:n().bool.isRequired,analytics:n().object};constl=c},86483:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});vari=s(51609),n=s(84952),a=s(26556),r=s(39228),o=s(26571);classcextendsi.Component{componentDidMount(){this.props.fetchingVaultPressData||this.props.hasLoadedVaultPressData||!this.props.isModuleActivated("vaultpress")||this.props.fetchVaultPressData()}render(){returnnull}}c.defaultProps={fetchVaultPressData:()=>{}};constl=(0,n.Ng)(e=>({fetchVaultPressData:(0,r.WU)(),fetchingVaultPressData:(0,r.en)(e),isModuleActivated:t=>(0,o.Yp)(e,t),hasLoadedVaultPressData:(0,r.Pf)(e)}),e=>(0,a.zH)({fetchVaultPressData:r.WU},e))(c)},86666:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});vari=s(57500),n=s(85179),a=s(27723),r=s(28120),o=s.n(r)
__("Gifted on %s.","jetpack"),(0,a.dateI18n)(l,e)):null}if(!e||c){conste=newDate(s);return"Invalid Date"!==e.toString()?(0,o.sprintf)(/* translators: %s: the date of purchase. */
__("Purchased on %s.","jetpack"),(0,a.dateI18n)(l,e)):null}consth=newDate(e),m=u;return"Invalid Date"===h.toString()?null:"expired"===t?(0,r.createInterpolateElement)((0,o.sprintf)(/* translators: %s: the date it expired. */
__("<span>Expired on %s.</span> <renewLink />","jetpack"),(0,a.dateI18n)(l,h)),{span:(0,d.jsx)("span",{className:"my-plan-card__expired"}),renewLink:(0,d.jsx)("span",{className:"my-plan-card__renew",children:(0,d.jsx)(n.ExternalLink,{href:(0,i.A)("jetpack-subscription-renew",{path:m}),className:"my-plan-card__renew",children:__("Renew subscription","jetpack")})})}):(0,o.sprintf)(/* translators: %s the renewal date. */
__("Renews on %s.","jetpack"),(0,a.dateI18n)(l,h))}}consth=u},89114:(e,t,s)=>{"use strict";s.d(t,{ry:()=>i.A});vari=s(86102);s(17653),s(53248)},89156:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});vari=s(17278),n=s(80129);functiona(e){vart=(0,n.A)(e,"string");return"symbol"==(0,i.A)(t)?t:t+""}},89358:()=>{},90464:(e,t,s)=>{"use strict";s.d(t,{A:()=>S});vari=s(12961),n=s(86087),a=s(27723),r=s(28120),o=s.n(r),c=s(51609),l=s(84952),p=s(81715),d=s(74209),u=s(15937),h=s(23758),m=s(11236),g=s(72625),j=s(19896),k=s(1194),f=s(19950),v=s(36865),x=s(10790);const__=a.__,_x=a._x,b=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),_=__("Customize your Search experience.","jetpack"),w=__("Search supports many customizations.","jetpack"),y=()=>{},C=e=>(0,x.jsx)(u.A,{label:__("Search","jetpack"),module:"search",support:{text:w,link:(0,i.A)("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent,children:(0,x.jsx)("p",{className:"jp-dash-item__description",children:e.content})});classAextendsc.Component{staticpropTypes={getOptionValue:o().func.isRequired,trackUpgradeBanner:o().func,isOfflineMode:o().bool.isRequired,hasConnectedOwner:o().bool.isRequired};staticdefaultProps={getOptionValue:y,isOfflineMode:!1,trackUpgradeBanner:y};trackConfigureSearchLink=()=>{m.A.tracks.recordJetpackClick({type:"configure-search-link",target:"at-a-glance",feature:"search"})};trackAddSearchWidgetLink=()=>{m.A.tracks.recordJetpackClick({type:"search-widget-link",target:"at-a-glance",feature:"search"})};trackAddSearchBlockLink=()=>{m.A.tracks.recordJetpackClick({type:"search-block-link",target:"at-a-glance",feature:"search"})};activateSearch=()=>{this.props.updateOptions({search:!0,...this.props.hasInstantSearch?{instant_search_enabled:!0}:{}})};render(){returnthis.props.isFetching?C({status:"",content:__("Loading…","jetpack")}):this.props.isOfflineMode?C({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:__("Unavailable in Offline Mode","jetpack")}):this.props.hasClassicSearch||this.props.hasInstantSearch?this.props.getOptionValue("search")?(0,x.jsxs)("div",{className:"jp-dash-item",children:[(0,x.jsx)(u.A,{label:__("Search","jetpack"),module:"search",support:{text:w,link:(0,i.A)("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0,children:(0,x.jsx)("p",{className:"jp-dash-item__description",children:__("Jetpack Search is powering search on your site.","jetpack")})}),this.props.hasInstantSearch&&(0,x.jsx)(d.A,{compact:!0,className:"jp-search-config-aag",href:"admin.php?page=jetpack-search-configure",onClick:this.trackConfigureSearchLink,children:_}),!this.props.hasInstantSearch&&!this.props.isBlockThemeActive&&(0,x.jsx)(d.A,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets",onClick:this.trackAddSearchWidgetLink,children:__("Add Search (Jetpack) Widget","jetpack")}),!this.props.hasInstantSearch&&this.props.isBlockThemeActive&&(0,x.jsx)(d.A,{compact:!0,className:"jp-search-config-aag",href:"site-editor.php",onClick:this.trackAddSearchBlockLink,children:__("Add a Search Block","jetpack")})]}):C({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,n.createInterpolateElement)(__("<Button>Activate</Button> to help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),{Button:(0,x.jsx)(p.A,{className:"jp-link-button",onClick:this.activateSearch})})}):C({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:(0,x.jsx)(h.Ay,{callToAction:(0,j.$)()?__("Start for free","jetpack"):_x("Upgrade","Call to action to buy a new plan","jetpack"),title:b,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"search",path:"dashboard",plan:(0,g.EP8)(g.JvE),icon:"search",trackBannerDisplay:this.props.trackUpgradeButtonView})})}}constS=(0,l.Ng)(e=>({isB
__("Graphical illustration of product: %s","jetpack"),s)})]})};g.propTypes={checkoutText:l().string.isRequired,checkoutUrl:l().string.isRequired,title:l().string.isRequired,price:l().number.isRequired,discountedPrice:l().number,currencyCode:l().string.isRequired,billingDescription:l().string.isRequired,productSlug:l().string.isRequired,description:l().string,features:l().array,disclaimer:l().object,icon:l().element,callToAction:l().string,priority:l().string,illustrationPath:l().string};constj=g},90746:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>m});vari=s(27723),n=s(51609),a=s(81715),r=s(46628),o=s(56273),c=s(10790);const__=i.__,l={pageTypes:[{name:"front_page",label:__("Front Page","jetpack")},{name:"posts",label:__("Posts","jetpack")},{name:"pages",label:__("Pages","jetpack")},{name:"groups",label:__("Tags","jetpack")},{name:"archives",label:__("Archives","jetpack")}],insertableTokens:{site_name:__("Site Title","jetpack"),tagline:__("Tagline","jetpack"),post_title:__("Post Title","jetpack"),page_title:__("Page Title","jetpack"),group_title:__("Tag or Category Name","jetpack"),date:__("Date","jetpack"),archive_title:__("Archive Title","jetpack")},tokensAvailablePerPageType:{front_page:["site_name","tagline"],posts:["site_name","tagline","post_title"],pages:["site_name","tagline","page_title"],groups:["site_name","tagline","group_title"],archives:["site_name","tagline","date","archive_title"]}},p=(e,t,s)=>(l.tokensAvailablePerPageType[e.name].forEach(e=>{switch(e){case"site_name":t=t.replace(/\[site_name\]/g,s.title);break;case"tagline":t=t.replace(/\[tagline\]/g,s.tagline);break;case"post_title":t=t.replace(/\[post_title\]/g,__("Example Title","jetpack"));break;case"page_title":t=t.replace(/\[page_title\]/g,__("Example Title","jetpack"));break;case"group_title":t=t.replace(/\[group_title\]/g,__("Tag","jetpack"));break;case"date":case"archive_title":t=t.replace(/\[archive_title\]|\[date\]/g,__("Example Archive Title/Date","jetpack"))}}),(0,i.sprintf)(/* translators: %s is the preview text for a custom SEO input */
__("Preview: %s","jetpack"),t)),d=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:s,token:i})=>{constr=(0,n.useCallback)(()=>{constn=t.current;n.focus();consta=`[${i}]`,r=n.textFieldRef.current.selectionStart,o=n.props.value.substring(0,r),c=n.props.value.substring(r,n.props.value.length);s(e,o+a+c)},[e,t,s,i]);return(0,c.jsx)(a.A,{rna:!0,className:"jp-seo-custom-titles-input-button",compact:!0,onClick:r,children:l.insertableTokens[i]})},u=(e,t,s)=>l.tokensAvailablePerPageType[e.name].map(i=>"archives"===e.name&&"date"===i?null:(0,c.jsx)(d,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:s,token:i},i)),h=({pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:s,value:i,siteData:a})=>(0,c.jsxs)("div",{className:`jp-seo-custom-titles-input-container-${e.name}`,children:[(0,c.jsxs)("div",{className:"jp-seo-custom-titles-input-controls",children:[(0,c.jsx)(r.lR,{className:"jp-seo-custom-titles-input-label",htmlFor:`jp-seo-custom-titles-input-${e.name}`,children:(0,c.jsx)("span",{className:"jp-form-label",children:e.label})}),(0,c.jsx)("div",{children:u(e,t,s)})]}),(0,c.jsx)(o.A,{id:`jp-seo-custom-titles-input-${e.name}`,className:"jp-seo-custom-titles-input",value:i,onChange:(0,n.useCallback)(t=>s(e,t.target.value),[s,e]),ref:t}),(0,c.jsx)("div",{className:"jp-seo-custom-titles-input-preview",children:p(e,i,a)})]}),m=e=>{const[t]=(0,n.useState)({front_page:(0,n.createRef)(),posts:(0,n.createRef)(),pages:(0,n.createRef)(),groups:(0,n.createRef)(),archives:(0,n.createRef)()}),s=l.pageTypes.reduce((t,s)=>{vari;returnt[s.name]=(i=e.customSeoTitles[s.name],Array.isArray(i)?i.reduce((e,t)=>e+("token"===t.type?`[${t.value}]`:t.value),""):""),t},{}),i=e.updateCustomSeoTitleInputState,a=(0,n.useCallback)((e,t)=>{s[e.name]=t;constn=Object.keys(s).reduce((e,t)=>(e[t]=((e,t)=>e.split(/(\[(?:site_name|tagline|post_title|page_title|group_title|date|archive_title)\])/).filter(e=>e).map(e=>{lets=null;for(consttofObject.keys(l.insertableTokens))e===`[${t}]`&&(s=t);returns&&l.tokensAvailablePerPageType[t].includes(s)?{type:"token",value:s}:{type:"string",value:e}}))(s[t],t),e),{});i(n)},[s,i]);return(0,c.jsx)("div",{className:"jp-seo-custom-titles",children:l.pageTypes.map(i=>(0,c.jsx)(h,{pageType:i,value:s[i.name],handleCustomSeoTitleInput:a,customSeoTitleInputRef:t[i.name],siteData:e.siteData},i.name))})}},90988:(e,t,s)=>{"use strict";s.d(t,{F:()=>k});vari=s(12961),n=s(44179),a=s(86087),r=s(27723),o=s(51609),c=s(74209),l=s(46628),p=s(76563),d=s(27844),u=s(79779),h=s(50534),m=s(11236),g=s(10790);const__=r.__,_x=r._x;classjextendso.Component{state={show_headline:this.props.getOptionValue("show_headline","related-posts"),show_thumbnails:this.props.getOptionValue("show_thumbnails","related-posts")};updateOptions=e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("related-posts",e))};handleShowHeadlineToggleChange=()=>{this.updateOptions("show_headline")};handleShowThumbnailsToggleChange=()=>{this.updateOptions("show_thumbnails")};trackConfigureClick=()=>{m.A.tracks.recordJetpackClick("configure-related-posts")};renderConfigureLink(){const{isBlockThemeActive:e,lastPostUrl:t,siteAdminUrl:s}=this.props;returne?(0,g.jsx)(c.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,i.A)("jetpack-support-related-posts",{anchor:"adding-related-posts-block-theme"}),target:"_blank",rel:"noopener noreferrer",children:__("Add a Related Posts Block to your site’s template in the site editor","jetpack")}):(0,g.jsx)(c.A,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:s+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(s+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(t),children:__("Configure related posts in the Customizer","jetpack")})}render(){conste=this.props.getOptionValue("related-posts"),t=this.props.isUnavailableInOfflineMode("related-posts");return(0,g.jsxs)(u.A,{...this.props,hideButton:!0,module:"related-posts",children:[(0,g.jsx
/* translators: <nbsp/> represents a non-breakable space */
question:__("Welcome to Jetpack VaultPress<nbsp/>Backup!","jetpack"),description:__("Real-time cloud-based backups are now active for your site. Save every change and get back online in one click from desktop and mobile.","jetpack"),ctaText:__("Manage Backups","jetpack"),ctaLink:(0,l.r9)(e,"backup"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"welcome__complete":return{question:__("Welcome to Jetpack Complete!","jetpack"),description:__("Congratulations, you’ve just unlocked the full power of the Jetpack suite; all of our Security, Performance, Growth, and Design tools.","jetpack"),ctaText:__("Set up your new tools","jetpack"),hasNoAction:!0,illustration:"assistant-complete-welcome"};case"welcome__security":return{question:__("Welcome to Jetpack Security!","jetpack"),description:__("Congratulations, you’ve just unlocked comprehensive WordPress site security, including backups, malware scanning, and spam protection.","jetpack"),ctaText:__("Set up your new tools","jetpack"),hasNoAction:!0};case"welcome__starter":return{question:__("Welcome to Jetpack Starter!","jetpack"),description:__("Congratulations! You’ve unlocked essential security tools for your site, including real-time backups and spam protection for comments and forms. Let’s get everything set up. It will only take a minute.","jetpack"),ctaText:__("Set up Jetpack Starter","jetpack"),hasNoAction:!0};case"welcome__antispam":return{
/* translators: <nbsp/> represents a non-breakable space */
question:__("Welcome to Jetpack Akismet<nbsp/>Anti-spam!","jetpack"),description:__("Automated spam protection is now active for comments and forms. We’ll flag anything that looks suspicious and comments will now be available to moderate.","jetpack"),ctaText:__("Configure Akismet Anti-spam","jetpack"),ctaLink:(0,l.eu)(e)+"admin.php?page=akismet-key-config",illustration:"assistant-antispam",skipText:__("Next","jetpack")};case"welcome__videopress":return{question:__("Welcome to Jetpack VideoPress!","jetpack"),description:__("Jetpack VideoPress is now active. Stunning-quality video with none of the hassle. Drag and drop videos through the WordPress editor and keep the focus on your content, not the ads.","jetpack"),ctaText:__("Learn how to add videos to your site","jetpack"),ctaLink:(0,n.A)("jetpack-support-videopress-block-editor"),illustration:"assistant-videopress",skipText:__("Next","jetpack")};case"welcome__search":return{question:__("Welcome to Jetpack Search!","jetpack"),description:__("Jetpack Search is now active. Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),ctaText:__("Customize Search","jetpack"),ctaLink:(0,l.eu)(e)+"admin.php?page=jetpack-search-configure",illustration:"assistant-search",skipText:__("Next","jetpack")};case"welcome__scan":return{question:__("Welcome to Jetpack Scan!","jetpack"),description:__("Automated malware scanning is live and your site’s first scan is underway. We’ll notify you if we detect anything suspicious, with one-click fixes for most issues.","jetpack"),ctaText:__("View Security Dashboard","jetpack"),ctaLink:(0,l.r9)(e,"scan"),illustration:"assistant-backup-welcome",skipText:__("Next","jetpack")};case"welcome__social_basic":return{question:__("Welcome to Jetpack Social!","jetpack"),description:__("With your new basic plan you unlocked unlimited sharing, and access to our priority support. You can share your posts from the post editor to your connected social media accounts<br/><br/>Let's start with connecting your social media accounts, if you haven't already.","jetpack"),ctaText:__("Manage Social Media Connections","jetpack"),ctaLink:(0,a.getAdminUrl)("admin.php?page=jetpack-social"),illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"welcome__social_v1":return{question:__("Welcome to Jetpack Social!","jetpack"),description:__("With your new Social plan you unlocked priority support, access to upload photos and videos with your posts, and usage of Social Image Generator.<br/><br/>Let's start with connecting your social media accounts, if you haven't already.","jetpack"),ctaText:__("Manage Social Media Connections","jetpack"),ctaLink:(0,a.getAdminUrl)("admin.php?page=jetpack-social"),ctaForceExternal:!0,illustration:"assistant-jetpack-social",skipText:__("Next","jetpack")};case"welcome__social_image_generator":return{question:__("Social Image Generator","jetpack"),description:__("Create beautiful social media previews for your posts with Social Image Generator. You can customize the text, image, and template to match your brand.<br/><br/>You can turn on Social Image Generator for individual posts from the post editor, or turn it on by default for all future posts from the Jetpack Social Settings.","jetpack"),ctaText:__("View Jetpack Social settings","jetpack"),ctaLink:(0,a.getAdminUrl)("admin.php?page=jetpack-social"),ctaForceExternal:!0,illustration:"assistant-social-image-post",skipText:__("Next","jetpack")};case"welcome__golden_token":return{question:__("Congratulations, you have been gifted a Jetpack Golden Token!","jetpack"),description:__("Congratulations, your Jetpack Golden Token provides a lifetime license for this website and includes the following products:","jetpack"),descriptionList:[__("Jetpack VaultPress Backup","jetpack"),__("Jetpack Scan","jetpack")],ctaText:__("Set up your new powers","jetpack"),hasNoAction:!0,illustration:"assistant-golden-token-welcome"};case"backup-activated":return{question:__("Site backups are live","jetpack"),des
__("Get %(discount)s%% off your first year","jetpack"),{discount:s}):__("Get VaultPress Backup","jetpack");return{progressValue:100,question:__("Never lose your site, even if your host goes down (along with your backups)","jetpack"),description:"",descriptionList:[__("VaultPress Backup is built specifically for WordPress and has done over 270 million backups to date.","jetpack"),__("We store copies of your backups in our secure cloud, so your content will never be lost.","jetpack"),__("If your site goes down, you can restore it with one click from desktop or the Jetpack mobile app.","jetpack"),__("VaultPress Backup is so easy to use; no developer required.","jetpack")],ctaText:i(),ctaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:t,path:c.Jht}),illustration:"assistant-backup-welcome"}}case"vaultpress-for-woocommerce":{constt=(0,l.XG)(e),s=(0,h.Nq)(e,c.Jht),i=(0,h.LE)(e,c.Jht),a=(0,r.vv)(s,i?.currency_code),p=(0,h.ab)(e)?__("Try for 30 days","jetpack"):(0,o.sprintf)(/* translators: %s: is a formatted currency. e.g. $1 */
__("Try for %s for 30 days","jetpack"),a);return{progressValue:100,question:__("Store downtime means lost sales. Do you have a cloud-based store backup solution?","jetpack"),description:__("VaultPress Backup saves your store in the cloud, so even if your host goes down, you’ll never lose a thing.","jetpack"),descriptionList:[__("Restore your site to any past state in one click while keeping all orders and products current.","jetpack"),__("Backups are encrypted, keeping your store data secure.","jetpack"),__("Protect your customer data and stay GDPR compliant.","jetpack"),__("Custom WooCommerce table backups.","jetpack"),__("Easy to use; no developer required.","jetpack")],ctaText:p,ctaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:t,path:c.Jht}),illustration:"assistant-backup-welcome"}}default:throw`Unknown step slug in recommendations/question: ${t}`}},v=(e,t)=>{consts=(0,l.XG)(e),i=(0,l.t9)(e);switch(t){casec.b2e:return{productCardTitle:__("Increase your site security!","jetpack"),productCardCtaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:s,path:t}),productCardCtaText:__("Get Jetpack Security","jetpack"),productCardList:i.security?i.security.features:[],productCardIcon:"/recommendations/cloud-icon.svg"};casec.uRO:return{productCardTitle:__("Grow and track your audience effortlessly","jetpack"),productCardCtaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:s,path:t}),productCardCtaText:__("Get Jetpack Growth","jetpack"),productCardList:i.growth?i.growth.features:[],productCardIcon:"/recommendations/growth-icon.svg"};casec.GGh:return{productCardTitle:__("Block spam automatically with Jetpack Akismet Anti-spam","jetpack"),productCardCtaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:s,path:t}),productCardCtaText:__("Get Akismet Anti-spam","jetpack"),productCardList:i.akismet?i.akismet.features:[],productCardIcon:"/recommendations/bug-icon.svg"};casec.Wn7:return{productCardTitle:__("Upgrade for more videos and storage","jetpack"),productCardCtaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:s,path:t}),productCardCtaText:__("Get VideoPress","jetpack"),productCardList:i.videopress?i.videopress.features:[],productCardIcon:"/recommendations/video-icon.svg"};casec.Jht:return{productCardTitle:__("Go back in time with one click","jetpack"),productCardCtaLink:(0,n.A)("jetpack-recommendations-product-checkout",{site:s,path:t}),productCardCtaText:__("Get Jetpack VaultPress Backup","jetpack"),productCardList:i.backup?i.backup.features:[],productCardIcon:"/recommendations/cloud-icon.svg",productCardDisclaimer:i.backup?i.backup.disclaimer:""};default:throw`Unknown product slug for getProductCardData: ${t}`}},x=(e,t,s)=>{if(t===c.b2e){if("publicize"===s)return{productCardTitle:__("Your site is growing. It’s time for a security plan.","jetpack")};if("protect"===s)return{productCardTitle:__("Jetpack Security gives you complete site protection and backups.","jetpack")}}return{}}},95209:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});consti={"star-icon":"cuoSlhSNrqf1dozY22Xb",jetpack:"lAIiifeLMmZAPlQ9n9ZR","checkmark-icon":"JLquNpQVlysAamuh5lJO",socialIcon:"cbOwD8Y4tFjwimmtchQI",bluesky:"aLWBKY0yRghEk7tNCgK3",facebook:"aHOlEBGD5EA8NKRw3xTw",twitter:"af4Y_zItXvLAOEoSDPSv",linkedin:"f68aqF3XSD1OBvXR1get",tumblr:"xFI0dt3UiXRlRQdqPWkx",google:"q7JEoyymveP6kF747M43",mastodon:"DKOBOTVmTLbh26gUH_73",nextdoor:"n5XodNsuMfMAAvqHFmbw",instagram:"cL3m0xBYTYhIKI7lCqDB",whatsapp:"fftumuc_lJ6v0tq4UMVR",threads:"inzgC27qxdt7hSdhTWRI"}},95221:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});vari=s(97222),n=s(27723),a=s(13022),r=s(28120),o=s.n(r),c=s(51609),l=s(73087),p=s(10790);const__=n.__,d={ios:{defaultSrc:l.d0+"/get-apps-ios-store.svg",src:"https://linkmaker.itunes.apple.com/assets/shared/badges/{localeSlug}/appstore-lrg.svg",tracksEvent:"calypso_app_download_ios_click",getStoreLink:e=>`https://apps.apple.com/app/apple-store/id1565481562?pt=299112&ct=${e}&mt=8`,getTitleText:()=>__("Download the Jetpack iOS mobile app.","jetpack"),getAltText:()=>__("Apple App Store download badge","jet
__("Your paid plan gives you access to prioritized %s support.","jetpack"),(0,n.isWoASite)()?"WordPress.com":"Jetpack"):__("Jetpack offers support via community forums for any site without a paid product.","jetpack")}),(0,x.jsxs)("p",{className:"jp-support-card__description",children:[(0,n.isWoASite)()||(0,x.jsx)(u.A,{onClick:this.trackGettingStartedClick,href:(0,i.A)("jetpack-support-getting-started"),isExternalLink:!0,children:__("Getting started with Jetpack","jetpack")}),(0,x.jsx)(b,{onClick:this.trackSearchClick})]})]})}),this.props.siteConnectionStatus&&!e&&this.props.hasConnectedOwner&&(0,x.jsx)(m.Ay,{title:__("Get a faster resolution to your support questions.","jetpack"),plan:(0,j.EP8)(j.DmX),callToAction:_x("Upgrade","Call to action to buy a new plan","jetpack"),onClick:this.trackBannerClick,href:this.props.supportUpgradeUrl}),this.props.siteConnectionStatus&&!e&&!this.props.hasConnectedOwner&&(0,x.jsx)(m.Ay,{title:__("Connect your WordPress.com account and upgrade to get a faster resolution to your support questions.","jetpack"),plan:(0,j.EP8)(j.DmX),callToAction:__("Connect","jetpack"),onClick:this.handleConnectClick})]})}}_.propTypes={siteConnectionStatus:l().any.isRequired,className:l().string,isCurrentUserLinked:l().bool,isConnectionOwner:l().bool};constw=(0,d.Ng)(e=>({siteConnectionStatus:(0,k.i$)(e),isFetchingSiteData:(0,v.Kb)(e),isDevVersion:(0,f.gF)(e),supportUpgradeUrl:(0,f.Q4)(e,"support"),isCurrentUserLinked:(0,k._U)(e),isConnectionOwner:(0,k.uQ)(e),hasConnectedOwner:(0,k.BG)(e),hasSupport:(0,v.IT)(e,"support")||(0,v.F1)(e)}),e=>({connectUser:()=>e((0,k.k0)())}))(_)},99197:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});vari=s(13022),n=s(81055),a=s(10790);constr=({type:e="info",text:t})=>{consts=(0,i.A)(n.A.chip,n.A[`is-${e}`]);return(0,a.jsx)("span",{className:s,children:t})}},99669:(e,t,s)=>{"use strict";s.d(t,{a:()=>f});vari=s(12961),n=s(44179),a=s(56427),r=s(86087),o=s(27723),c=s(51609),l=s(46628),p=s(76563),d=s(79779),u=s(50534),h=s(56273),m=s(11236),g=s(72625),j=s(10790);const__=o.__,_x=o._x,k="jetpack_wga",f=(0,p.t)(classextendsc.Component{trackConfigureClick(){m.A.tracks.recordJetpackClick("configure-ga")}getOptionValue=e=>this.props.getOptionValue(k)[e];updateOption=(e,t)=>{consts=this.props.getOptionValue(k);this.props.updateFormStateOptionValue(k,{...s,[e]:t})};onOptionChange=e=>t=>{this.updateOption(e,t.target.value)};onToggleChange=e=>t=>{this.updateOption(e,t)};isSaving=()=>this.props.isSavingAnyOption(k);isActive=()=>this.getOptionValue("is_active");toggleActive=()=>{this.updateOption("is_active",!this.isActive());conste=this.props.getOptionValue(k);this.props.updateOptions({jetpack_wga:{...e,is_active:!e.is_active}})};showForm=()=>this.props.getSettingCurrentValue(k).is_active;render(){return(0,j.jsxs)(d.A,{...this.props,header:_x("Google Analytics","Settings header","jetpack"),feature:g.ZrU,saveDisabled:this.isSaving(),children:[(0,j.jsx)(u.A,{disableInOfflineMode:!0,support:{text:__("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions.","jetpack"),link:(0,i.A)("wpcom-support-google-analytics")},children:(0,r.createInterpolateElement)(__("Google Analytics is a free service that complements <a>Jetpack Stats</a> with different insights into your traffic. Jetpack Stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.","jetpack"),{a:(0,j.jsx)("a",{href:this.props.siteUsesWpAdminInterface?this.props.siteAdminUrl+"admin.php?page=jetpack#/stats":(0,i.A)("calypso-stats-day",{site:this.props.siteRawUrl})})})}),!this.props.isUnavailableInOfflineMode("google-analytics")&&(0,j.jsxs)(u.A,{hasChild:!0,children:[(0,j.jsx)(n.A,{checked:this.isActive(),disabled:this.isSaving(),onChange:this.toggleActive,label:(0,j.jsx)("span",{className:"jp-form-toggle-explanation",children:__("Enable Google Analytics","jetpack")})}),this.showForm()&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(l.dV,{children:[(0,j.js