(()=>{var e={659(e,t,n){"use strict";n.d(t,{A:()=>s});const s={button:"zI5tJ_qhWE6Oe6Lk75GY","is-icon-button":"tuBt2DLqimiImoqVzPqo",small:"Na39I683LAaSA99REg14",normal:"ipS7tKy9GntCS4R3vekF",icon:"paGLQwtPEaJmtArCcmyK",regular:"lZAo6_oGfclXOO9CC6Rd","full-width":"xJDOiJxTt0R_wSl8Ipz_",loading:"q_tVWqMjl39RcY6WtQA6","external-icon":"CDuBjJp_8jxzx5j6Nept"}},750(e,t,n){"use strict";n.d(t,{A:()=>s});const s={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",smcols:"4",mdcols:"8",lgcols:"12","col-sm-1":"RuVLl3q4lxTQa3wbhBJB","col-sm-1-start":"f9LZTRG4MMK42rS89afW","col-sm-1-end":"bHe_zKxjjpUwHw_MdYE1","col-sm-2":"QZbNrOqE2aNSn50xVhpU","col-sm-2-start":"ev7W3z7zVYPeHAlYqZjf","col-sm-2-end":"NJWd1m_e7lOiPYru2ZMP","col-sm-3":"Xc6nt1Qc1DI0Z2A3gt1r","col-sm-3-start":"UIcN_GXiPRoIsin8Kohg","col-sm-3-end":"GRKCyqb5LufCSCgykKFc","col-sm-4":"i_qTq8gqhhC3vIUepVRB","col-sm-4-start":"G3qaZ3Jpbvam_1XvGxgc","col-sm-4-end":"VRCNYKZtO9zukEwmgP1y","col-md-1":"tRm008K_WJL79WoNZTNL","col-md-1-start":"l5T2P_bgKts4tdaRkS1d","col-md-1-end":"zOCxfLZpF6BlgC7a_Yq1","col-md-2":"F80DdgVn0m5OpvtSQWka","col-md-2-start":"oI1c7JYfiJtMQHbhngtU","col-md-2-end":"pMQtA_4jh1_1lVknqEP5","col-md-3":"VenqMpdgyKQVUNNQcfqd","col-md-3-start":"seNYL99uoczf9V4MxBxT","col-md-3-end":"YKfF1HFhI9KygA5l3b2J","col-md-4":"yAi0Cv1xDWkoqsaUhvhR","col-md-4-start":"ubhnyZOnkgxNhh6XtVWv","col-md-4-end":"RGOPGQbWMJ9Ei5oFxS7X","col-md-5":"Sz1E2aWbX483ijdi6yge","col-md-5-start":"tku6_bRYrX9tMbgYGmIl","col-md-5-end":"b5JHttOhSEcI1WBlqAjk","col-md-6":"FboSx5MoKTAWbxXyYlCw","col-md-6-start":"Jhs8yEEmodG30edbJvag","col-md-6-end":"IpzbbKVqEqPcfIGkXkwt","col-md-7":"mhCPwfAZ4Kmm_empzJAq","col-md-7-start":"x034ilrJF7rO9UJB2rI1","col-md-7-end":"Wt8t2e16viRrOJ1lLA5v","col-md-8":"S6pIrEy9AMLKx9bgh_Ae","col-md-8-start":"kEfI4tGyuWfHTlRnvIab","col-md-8-end":"PUzX4RRsKq1dnsz3gebS","col-lg-1":"X_pdcLJikd8LS_YAdJlB","col-lg-1-start":"tl936d14Huby4khYp05X","col-lg-1-end":"hnge0LnR69d3NXEtEE1t","col-lg-2":"fj0NUMuyZQcPNgKcjp5Z","col-lg-2-start":"R2ncBX7a2NigdYCcV1OX","col-lg-2-end":"t8vMSDVYno9k9itRwnXb","col-lg-3":"wsDuEN2GqHx6qzo8dUdk","col-lg-3-start":"cIEVPUweWtLBy3xaXnMx","col-lg-3-end":"fajUWBwu1m2B479j3jmz","col-lg-4":"YR0c7fQTgMkDdWzwSyLp","col-lg-4-start":"xlwp8BmplxkKNMI7gamo","col-lg-4-end":"_C4O1w9DUqx1m3gPf8aA","col-lg-5":"Z54F1hAErckAIrKlxnXW","col-lg-5-start":"ezSDWkRHmKSxDJXxuiOH","col-lg-5-end":"T0ChoeAjGJjkkNrYhD4g","col-lg-6":"qtMoMPF6yHvGJnWHSsde","col-lg-6-start":"gdoywN5VPiWERfIBqkph","col-lg-6-end":"wUev_VH5uf_pwFFlbnAU","col-lg-7":"egIPDFJsOpownTClq9XP","col-lg-7-start":"yGhp9yoAW7k0kQik9AB7","col-lg-7-end":"SJ43U9mR5wUg5V2qBeQA","col-lg-8":"cTuyHfMwSUJxN_HdIEgd","col-lg-8-start":"smCr8DaIagcumdvdldiK","col-lg-8-end":"T03NHzQJvzwL6wAfIiTL","col-lg-9":"pMvxM3RJGjqyNdf9qg1Y","col-lg-9-start":"iIVpNRwEnQ_JI5gpp9EN","col-lg-9-end":"ZbQ4u4vGSX5rJOje4uGL","col-lg-10":"gKb5wuIDAlKGbrjK2vxy","col-lg-10-start":"Z7pINdImE2WJiYnZBTqm","col-lg-10-end":"ZTxp6qpvwurMdOnLLSz1","col-lg-11":"NnQTlbfnxPDR6cQ7rygg","col-lg-11-start":"O137wZd6Yl0olSA9PsXR","col-lg-11-end":"zf2OJtQ2MPz6SDoh6CB0","col-lg-12":"U3H6UHW6HqRt9hdzVg3O","col-lg-12-start":"zynnNeS_ZBTxABcVpUQH","col-lg-12-end":"vI8tltFZtFUNAy9Iag9s"}},713(e,t,n){"use strict";n.d(t,{A:()=>s});const s={sm:"(max-width: 599px)",md:"(min-width: 600px) and (max-width: 959px)",lg:"(min-width: 960px)",container:"SqdhUZkXCRuIpErj1B3z",fluid:"OZC_9a1LhpWF9dv15Gdh"}},144(){},167(e,t,n){"use strict";n.d(t,{A:()=>s});const s={global:"_fUXxnSp5pagKBp9gSN7"}},94(e,t,n){"use strict";n.d(t,{A:()=>s});const s={card:"hKqMhNKF6iiSkmpbUmyH",card__column:"UFoVBsmfA1LirEVMSUim","card__column--brand":"EwguMj7OOGM22vt6s59Q","card__column--content":"Am4GXZtvL8KDNUXHhtt9"}},523(e,t,n){"use strict";n.d(t,{A:()=>s});const s={card:"RQ4PqbtPN9eywQA6fp4f",connection_status:"IecZ3QPjcAJGlqAMFDCR","connection_status--connected":"XVls9XvxPHa00k5xQY9m","connection_status--disconnected":"c6vOxfSXhYafyhqPieqU"}},846(e,t,n){"use strict";n.d(t,{A:()=>s});const s={card:"xPq67udg1erVgT8rNELO","card--connection":"uoiYw6_dDuzOPCy3yyDw","card--sharing":"wRUTTa151vSaXHAaUT7v",card__prose:"oppS5sUYpUilqYwF3frG",checklist:"VfKvB_0fCME79tA0bZWk","site-connection":"mPbIg1ueRfimk1Tik2bR","terms-of-service":"pUBiNg9Uexk9qHsd2chU","terms-of-service__link":"UdqRfQkpazyFBJvUnUHU","connect-button-wrapper":"nQJrGZ5Vz059qcvtvYpT"}},190(e,t,n){"use strict";n.d(t,{A:()=>s});const s={disconnect_site_trigger:"hpxvMmte8ID9t9k85Xwu",disconnect_modal:"HnvUQtBa216GjMiurvL6",disconnect_modal__error:"smLo3Rm9zve7DyP7_kLb",disconnect_modal__actions:"u4zx8tjYmzcGa4hQdJTr",disconnect_button:"E2O5FkHwAVVJRfSF7m1B"}},588(e,t,n){"use strict";n.d(t,{A:()=>s});const s={card:"OGxiUu2lD9xBozxUbqQD",connection_status:"zVN3qBR9rko6b3b5cLGw","connection_status--connected":"Tqv0QW0EJAfpoVG4BWwQ","connection_status--disconnected":"DAcNerlymbutBGF1allz",disconnect_site_trigger:"T00OfPe4HN1T5b0Tea3K",disconnect_modal:"nM41WIpx_gr3lLH9mj7D",disconnect_modal__error:"kCJBa9I02AtQA9Enj5Xr",disconnect_modal__actions:"fMvvYAUFgVmbHf_OwVFU",disconnect_button:"eZ5AAJ424qMvWmSTx0Ig","connect-button-wrapper":"A1g6sMsONzw2rYym4Fs7"}},762(e,t,n){"use strict";var s=n(761);function i(){}function c(){}c.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,c,o){if(o!==s){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:i};return n.PropTypes=n,n}},120(e,t,n){e.exports=n(762)()},761(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},932(e,t,n){"use strict";n.d(t,{Ay:()=>h});var s=n(439),i=n(832);function c(e){class t extends Error{constructor(...t){super(...t),this.name=e}}return t}const o=c("JsonParseError"),a=c("JsonParseAfterRedirectError"),r=c("Api404Error"),l=c("Api404AfterRedirectError"),d=c("FetchNetworkError");const h=new function(e,t){let n=e,c=e,o={"X-WP-Nonce":t},a={credentials:"same-origin",headers:o},r={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",s=n.length?n.split("&"):[];return s.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+s.join("&")};const d={setApiRoot(e){n=e},setWpcomOriginApiUrl(e){c=e},setApiNonce(e){o={"X-WP-Nonce":e},a={credentials:"same-origin",headers:o},r={method:"post",credentials:"same-origin",headers:Object.assign({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t,i)=>{const c={};return(0,s.jetpackConfigHas)("consumer_slug")&&(c.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(c.redirect_uri=t),i&&(c.from=i),g(`${n}jetpack/v4/connection/register`,r,{body:JSON.stringify(c)}).then(u).then(p)},fetchAuthorizationUrl:e=>h((0,i.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),a).then(u).then(p),fetchSiteConnectionData:()=>h(`${n}jetpack/v4/connection/data`,a).then(p),fetchSiteConnectionStatus:()=>h(`${n}jetpack/v4/connection`,a).then(p),fetchSiteConnectionTest:()=>h(`${n}jetpack/v4/connection/test`,a).then(u).then(p),fetchUserConnectionData:()=>h(`${n}jetpack/v4/connection/data`,a).then(p),fetchUserTrackingSettings:()=>h(`${n}jetpack/v4/tracking/settings`,a).then(u).then(p),updateUserTrackingSettings:e=>g(`${n}jetpack/v4/tracking/settings`,r,{body:JSON.stringify(e)}).then(u).then(p),disconnectSite:()=>g(`${n}jetpack/v4/connection`,r,{body:JSON.stringify({isActive:!1})}).then(u).then(p),fetchConnectUrl:()=>h(`${n}jetpack/v4/connection/url`,a).then(u).then(p),unlinkUser:(e=!1,t={})=>{const s={linked:!1,force:!!e};return t.disconnectAllUsers&&(s["disconnect-all-users"]=!0),g(`${n}jetpack/v4/connection/user`,r,{body:JSON.stringify(s)}).then(u).then(p)},reconnect:()=>g(`${n}jetpack/v4/connection/reconnect`,r).then(u).then(p),fetchConnectedPlugins:()=>h(`${n}jetpack/v4/connection/plugins`,a).then(u).then(p),setHasSeenWCConnectionModal:()=>g(`${n}jetpack/v4/seen-wc-connection-modal`,r).then(u).then(p),fetchModules:()=>h(`${n}jetpack/v4/module/all`,a).then(u).then(p),fetchModule:e=>h(`${n}jetpack/v4/module/${e}`,a).then(u).then(p),activateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,r,{body:JSON.stringify({active:!0})}).then(u).then(p),deactivateModule:e=>g(`${n}jetpack/v4/module/${e}/active`,r,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>g(`${n}jetpack/v4/module/${e}`,r,{body:JSON.stringify(t)}).then(u).then(p),updateSettings:e=>g(`${n}jetpack/v4/settings`,r,{body:JSON.stringify(e)}).then(u).then(p),getProtectCount:()=>h(`${n}jetpack/v4/module/protect/data`,a).then(u).then(p),resetOptions:e=>g(`${n}jetpack/v4/options/${e}`,r,{body:JSON.stringify({reset:!0})}).then(u).then(p),activateVaultPress:()=>g(`${n}jetpack/v4/plugins`,r,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(u).then(p),getVaultPressData:()=>h(`${n}jetpack/v4/module/vaultpress/data`,a).then(u).then(p),installPlugin:(e,t)=>{const s={slug:e,status:"active"};return t&&(s.source=t),g(`${n}jetpack/v4/plugins`,r,{body:JSON.stringify(s)}).then(u).then(p)},activateAkismet:()=>g(`${n}jetpack/v4/plugins`,r,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(u).then(p),getAkismetData:()=>h(`${n}jetpack/v4/module/akismet/data`,a).then(u).then(p),checkAkismetKey:()=>h(`${n}jetpack/v4/module/akismet/key/check`,a).then(u).then(p),checkAkismetKeyTyped:e=>g(`${n}jetpack/v4/module/akismet/key/check`,r,{body:JSON.stringify({api_key:e})}).then(u).then(p),getFeatureTypeStatus:e=>h(`${n}jetpack/v4/feature/${e}`,a).then(u).then(p),fetchStatsData:e=>h(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),a).then(u).then(p).then(f),getPluginUpdates:()=>h(`${n}jetpack/v4/updates/plugins`,a).then(u).then(p),getPlans:()=>h(`${n}jetpack/v4/plans`,a).then(u).then(p),fetchSettings:()=>h(`${n}jetpack/v4/settings`,a).then(u).then(p),updateSetting:e=>g(`${n}jetpack/v4/settings`,r,{body:JSON.stringify(e)}).then(u).then(p),fetchSiteData:()=>h(`${n}jetpack/v4/site`,a).then(u).then(p).then(e=>JSON.parse(e.data)),fetchSiteFeatures:()=>h(`${n}jetpack/v4/site/features`,a).then(u).then(p).then(e=>JSON.parse(e.data)),fetchSiteProducts:()=>h(`${n}jetpack/v4/site/products`,a).then(u).then(p),fetchSitePurchases:()=>h(`${n}jetpack/v4/site/purchases`,a).then(u).then(p).then(e=>JSON.parse(e.data)),fetchSiteBenefits:()=>h(`${n}jetpack/v4/site/benefits`,a).then(u).then(p).then(e=>JSON.parse(e.data)),fetchSiteDiscount:()=>h(`${n}jetpack/v4/site/discount`,a).then(u).then(p).then(e=>e.data),fetchSetupQuestionnaire:()=>h(`${n}jetpack/v4/setup/questionnaire`,a).then(u).then(p),fetchRecommendationsData:()=>h(`${n}jetpack/v4/recommendations/data`,a).then(u).then(p),fetchRecommendationsProductSuggestions:()=>h(`${n}jetpack/v4/recommendations/product-suggestions`,a).then(u).then(p),fetchRecommendationsUpsell:()=>h(`${n}jetpack/v4/recommendations/upsell`,a).then(u).then(p),fetchRecommendationsConditional:()=>h(`${n}jetpack/v4/recommendations/conditional`,a).then(u).then(p),saveRecommendationsData:e=>g(`${n}jetpack/v4/recommendations/data`,r,{body:JSON.stringify({data:e})}).then(u),fetchProducts:()=>h(`${n}jetpack/v4/products`,a).then(u).then(p),fetchRewindStatus:()=>h(`${n}jetpack/v4/rewind`,a).then(u).then(p).then(e=>JSON.parse(e.data)),fetchScanStatus:()=>h(`${n}jetpack/v4/scan`,a).then(u).then(p).then(e=>JSON.parse(e.data)),dismissJetpackNotice:e=>g(`${n}jetpack/v4/notice/${e}`,r,{body:JSON.stringify({dismissed:!0})}).then(u).then(p),fetchPluginsData:()=>h(`${n}jetpack/v4/plugins`,a).then(u).then(p),fetchIntroOffers:()=>h(`${n}jetpack/v4/intro-offers`,a).then(u).then(p),fetchVerifySiteGoogleStatus:e=>h(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,a).then(u).then(p),verifySiteGoogle:e=>g(`${n}jetpack/v4/verify-site/google`,r,{body:JSON.stringify({keyring_id:e})}).then(u).then(p),submitSurvey:e=>g(`${n}jetpack/v4/marketing/survey`,r,{body:JSON.stringify(e)}).then(u).then(p),saveSetupQuestionnaire:e=>g(`${n}jetpack/v4/setup/questionnaire`,r,{body:JSON.stringify(e)}).then(u).then(p),updateLicensingError:e=>g(`${n}jetpack/v4/licensing/error`,r,{body:JSON.stringify(e)}).then(u).then(p),updateLicenseKey:e=>g(`${n}jetpack/v4/licensing/set-license`,r,{body:JSON.stringify({license:e})}).then(u).then(p),getUserLicensesCounts:()=>h(`${n}jetpack/v4/licensing/user/counts`,a).then(u).then(p),getUserLicenses:()=>h(`${n}jetpack/v4/licensing/user/licenses`,a).then(u).then(p),updateLicensingActivationNoticeDismiss:e=>g(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,r,{body:JSON.stringify({last_detached_count:e})}).then(u).then(p),updateRecommendationsStep:e=>g(`${n}jetpack/v4/recommendations/step`,r,{body:JSON.stringify({step:e})}).then(u),confirmIDCSafeMode:()=>g(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,r).then(u),startIDCFresh:e=>g(`${n}jetpack/v4/identity-crisis/start-fresh`,r,{body:JSON.stringify({redirect_uri:e})}).then(u).then(p),migrateIDC:()=>g(`${n}jetpack/v4/identity-crisis/migrate`,r).then(u),attachLicenses:e=>g(`${n}jetpack/v4/licensing/attach-licenses`,r,{body:JSON.stringify({licenses:e})}).then(u).then(p),fetchSearchPlanInfo:()=>h(`${c}jetpack/v4/search/plan`,a).then(u).then(p),fetchSearchSettings:()=>h(`${c}jetpack/v4/search/settings`,a).then(u).then(p),updateSearchSettings:e=>g(`${c}jetpack/v4/search/settings`,r,{body:JSON.stringify(e)}).then(u).then(p),fetchSearchStats:()=>h(`${c}jetpack/v4/search/stats`,a).then(u).then(p),fetchWafSettings:()=>h(`${n}jetpack/v4/waf`,a).then(u).then(p),updateWafSettings:e=>g(`${n}jetpack/v4/waf`,r,{body:JSON.stringify(e)}).then(u).then(p),fetchWordAdsSettings:()=>h(`${n}jetpack/v4/wordads/settings`,a).then(u).then(p),updateWordAdsSettings:e=>g(`${n}jetpack/v4/wordads/settings`,r,{body:JSON.stringify(e)}),fetchSearchPricing:()=>h(`${c}jetpack/v4/search/pricing`,a).then(u).then(p),fetchMigrationStatus:()=>h(`${n}jetpack/v4/migration/status`,a).then(u).then(p),fetchBackupUndoEvent:()=>h(`${n}jetpack/v4/site/backup/undo-event`,a).then(u).then(p),fetchBackupPreflightStatus:()=>h(`${n}jetpack/v4/site/backup/preflight`,a).then(u).then(p)};function h(e,t){return fetch(l(e),t)}function g(e,t,n){return fetch(e,Object.assign({},t,n)).catch(m)}function f(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}Object.assign(this,d)};function u(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise(()=>{throw e.redirected?new l(e.redirected):new r}):e.json().catch(e=>g(e)).then(t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n})}function p(e){return e.json().catch(t=>g(t,e.redirected,e.url))}function g(e,t,n){throw t?new a(n):new o}function m(){throw new d}},113(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(427),i=n(790);function c({color:e="#FFFFFF"}){return(0,i.jsx)(s.SVG,{clipRule:"evenodd",fillRule:"evenodd",width:"251",height:"47",viewBox:"0 0 251 47",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(s.Path,{d:"M20.256 17H17.04L14.928 13.04L5.544 13.04L3.504 17H0.336L8.976 1.016L11.472 1.016L20.256 17ZM13.752 10.856L10.152 4.136L6.672 10.856L13.752 10.856ZM42.7174 10.352C42.7174 14.312 40.1734 17.624 34.1494 17.624C28.4134 17.624 25.7494 14.504 25.7494 10.352L25.7494 1.016H28.7254L28.7254 10.4C28.7254 13.352 30.6694 15.104 34.3654 15.104C38.1574 15.104 39.7174 13.352 39.7174 10.4V1.016L42.7174 1.016V10.352ZM66.6443 3.512L59.6603 3.512V17H56.6603V3.512L49.6763 3.512V1.016L66.6443 1.016V3.512ZM91.1207 9.296C91.1207 13.544 87.4487 17.624 81.7607 17.624C76.0967 17.624 72.4247 13.544 72.4247 9.296V8.768C72.4247 4.448 76.0967 0.439999 81.7607 0.439999C87.4487 0.439999 91.1207 4.448 91.1207 8.768V9.296ZM88.0967 9.2V8.816C88.0967 5.72 85.8407 2.96 81.7607 2.96C77.6807 2.96 75.4487 5.72 75.4487 8.816V9.2C75.4487 12.296 77.6807 15.104 81.7607 15.104C85.8407 15.104 88.0967 12.296 88.0967 9.2ZM120.609 17H117.609V4.352L116.817 5.744L110.121 17H108.657L102.033 5.744L101.241 4.352V17H98.3128V1.016H102.465L108.777 11.984L109.521 13.328L110.265 11.984L116.505 1.016L120.609 1.016V17ZM146.748 17H143.532L141.42 13.04H132.036L129.996 17H126.828L135.468 1.016H137.964L146.748 17ZM140.244 10.856L136.644 4.136L133.164 10.856L140.244 10.856ZM166.919 3.512L159.935 3.512V17L156.935 17V3.512L149.951 3.512V1.016L166.919 1.016V3.512ZM190.136 3.512H183.152V17H180.152V3.512H173.168V1.016L190.136 1.016V3.512ZM200.346 17H197.346V1.016L200.346 1.016V17ZM225.532 3.632L223.66 5.528C222.22 4.208 220.108 2.96 217.252 2.96C212.98 2.96 210.58 5.888 210.58 8.936V9.248C210.58 12.272 213.004 15.104 217.468 15.104C220.132 15.104 222.34 13.832 223.732 12.536L225.532 14.432C223.78 16.16 220.804 17.624 217.276 17.624C211.228 17.624 207.556 13.688 207.556 9.368V8.84C207.556 4.52 211.564 0.439999 217.42 0.439999C220.804 0.439999 223.876 1.856 225.532 3.632ZM16.512 32.512H5.256L5.256 37.096H13.632V39.472H5.256L5.256 46H2.28L2.28 30.016H16.512V32.512ZM40.8426 38.296C40.8426 42.544 37.1706 46.624 31.4826 46.624C25.8186 46.624 22.1466 42.544 22.1466 38.296V37.768C22.1466 33.448 25.8186 29.44 31.4826 29.44C37.1706 29.44 40.8426 33.448 40.8426 37.768V38.296ZM37.8186 38.2V37.816C37.8186 34.72 35.5626 31.96 31.4826 31.96C27.4026 31.96 25.1706 34.72 25.1706 37.816V38.2C25.1706 41.296 27.4026 44.104 31.4826 44.104C35.5626 44.104 37.8186 41.296 37.8186 38.2ZM64.5227 46H61.8107C60.9947 46 60.6347 44.872 60.5387 43.432L60.4427 41.8C60.3467 40.216 59.6987 39.544 56.6987 39.544H51.0347V46H48.0347V30.016H56.7467C61.5467 30.016 63.7067 31.936 63.7067 34.408C63.7067 36.16 62.8187 37.816 59.6987 38.392C62.8187 38.632 63.4907 40.048 63.5147 41.92L63.5387 43.24C63.5627 44.344 63.7547 45.136 64.5227 45.928V46ZM60.6827 34.984V34.792C60.6827 33.64 59.7467 32.512 57.1787 32.512H51.0347V37.312H57.4427C59.6507 37.312 60.6827 36.256 60.6827 34.984ZM101.054 46H97.8384L95.7264 42.04L86.3424 42.04L84.3024 46H81.1344L89.7744 30.016H92.2704L101.054 46ZM94.5504 39.856L90.9504 33.136L87.4704 39.856H94.5504ZM123.597 46H121.677L121.221 43.84C119.685 45.616 117.501 46.624 114.789 46.624C109.125 46.624 105.453 42.736 105.453 38.296V38.008C105.453 33.472 109.461 29.44 115.317 29.44C118.917 29.44 121.845 30.928 123.429 32.632L121.557 34.528C120.117 33.208 117.885 31.96 115.293 31.96C110.829 31.96 108.477 34.816 108.477 37.936V38.2C108.477 41.32 110.997 44.104 115.077 44.104C118.173 44.104 120.381 42.208 120.381 40.288V40.12H115.461V37.744H123.597V46ZM145.697 46L131.177 46V30.016L145.697 30.016V32.512L134.177 32.512V36.616H143.033V39.04H134.177V43.504L145.697 43.504V46ZM170.003 46H167.411L157.019 35.296L156.011 34.168V46H153.011V30.016H155.891L165.971 40.696L167.003 41.848V30.016H170.003V46ZM195.19 32.632L193.318 34.528C191.878 33.208 189.766 31.96 186.91 31.96C182.638 31.96 180.238 34.888 180.238 37.936V38.248C180.238 41.272 182.662 44.104 187.126 44.104C189.79 44.104 191.998 42.832 193.39 41.536L195.19 43.432C193.438 45.16 190.462 46.624 186.934 46.624C180.886 46.624 177.214 42.688 177.214 38.368V37.84C177.214 33.52 181.222 29.44 187.078 29.44C190.462 29.44 193.534 30.856 195.19 32.632ZM205.164 46L202.164 46V30.016L205.164 30.016V46ZM227.855 46H213.335V30.016H227.855V32.512H216.335V36.616H225.191V39.04H216.335V43.504H227.855V46ZM251.009 41.512C251.009 44.632 247.601 46.624 242.849 46.624C239.609 46.624 236.609 45.736 234.137 44.56L235.241 42.184C237.761 43.432 240.425 44.176 242.993 44.176C246.449 44.176 247.985 43.048 247.985 41.824C247.985 38.008 234.593 40.552 234.593 34.696C234.593 31.72 237.809 29.44 242.873 29.44C246.017 29.44 248.945 30.544 250.745 31.72L249.113 33.736C247.625 32.776 245.177 31.888 242.777 31.888C239.657 31.888 237.593 32.944 237.593 34.312C237.593 37.792 251.009 35.464 251.009 41.512Z",fill:e})})}},533(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(427),i=n(790);function c({innerColor:e="#00A3E0",outerColor:t="#FFFFFF"}){return(0,i.jsxs)(s.SVG,{clipRule:"evenodd",fill:"none",fillRule:"evenodd",height:"43",viewBox:"0 0 47 43",width:"47",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39.3164 20.9589C39.3164 13.2129 33.656 6.30469 23.4214 6.30469C13.1867 6.30469 7.58624 13.2129 7.58624 20.9589V21.9206C7.58624 29.6677 13.1867 36.6942 23.4214 36.6942C33.656 36.6942 39.3164 29.6677 39.3164 21.9206V20.9589ZM23.4214 43C9.21187 43 0 32.7913 0 22.1604V20.8407C0 10.0285 9.21187 0 23.4214 0C37.6919 0 46.9038 10.0285 46.9038 20.8407V22.1604C46.9038 32.7913 37.6919 43 23.4214 43Z",fill:e}),(0,i.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M28.4548 14.1897C29.752 15.0401 30.1158 16.8077 29.2739 18.1343L22.712 28.4682C21.8691 29.7959 20.1348 30.1799 18.8397 29.3295C17.5446 28.477 17.1765 26.7137 18.0205 25.386L24.5824 15.0522C25.4253 13.7256 27.1597 13.3404 28.4548 14.1897Z",fill:t})]})}},112(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(427),i=n(104),c=n(109),o=n(866),a=n(22),r=n(609),l=n(659),d=n(790);const __=i.__,h=(0,r.forwardRef)((e,t)=>{const{children:n,variant:i="primary",size:r="normal",weight:h="bold",icon:u,iconSize:p,disabled:g,isDestructive:m,isLoading:f,isExternalLink:j,className:v,text:x,fullWidth:y,...A}=e,k=(0,a.A)(l.A.button,v,{[l.A.normal]:"normal"===r,[l.A.small]:"small"===r,[l.A.icon]:Boolean(u),[l.A.loading]:f,[l.A.regular]:"regular"===h,[l.A["full-width"]]:y,[l.A["is-icon-button"]]:Boolean(u)&&!n}),w="normal"===r?20:16,C=j&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.A,{size:w,icon:o.A,className:l.A["external-icon"]}),(0,d.jsx)(s.VisuallyHidden,{as:"span",children:/* translators: accessibility text */
__("(opens in a new tab)","automattic-for-agencies-client")})]}),b=j?"_blank":void 0,S=n?.[0]&&null!==n[0]&&"components-tooltip"!==n?.[0]?.props?.className,_={ref:t,target:b,variant:i,className:(0,a.A)(k,{"has-text":!!u&&S}),icon:j?void 0:u,iconSize:p,disabled:g,"aria-disabled":g,isDestructive:m,text:x,...A};return(0,d.jsxs)(s.Button,{..._,children:[f&&(0,d.jsx)(s.Spinner,{}),(0,d.jsx)("span",{children:n}),C]})});h.displayName="Button";const u=h},509(e,t,n){"use strict";n.d(t,{A:()=>l});var s=n(22),i=n(609),c=n(750);const o=Number(c.A.smcols),a=Number(c.A.mdcols),r=Number(c.A.lgcols),l=e=>{const{children:t,tagName:n="div",className:l}=e,d=Math.min(o,"number"==typeof e.sm?e.sm:o),h=Math.min(o,"object"==typeof e.sm?e.sm.start:0),u=Math.min(o,"object"==typeof e.sm?e.sm.end:0),p=Math.min(a,"number"==typeof e.md?e.md:a),g=Math.min(a,"object"==typeof e.md?e.md.start:0),m=Math.min(a,"object"==typeof e.md?e.md.end:0),f=Math.min(r,"number"==typeof e.lg?e.lg:r),j=Math.min(r,"object"==typeof e.lg?e.lg.start:0),v=Math.min(r,"object"==typeof e.lg?e.lg.end:0),x=(0,s.A)(l,{[c.A[`col-sm-${d}`]]:!(h&&u),[c.A[`col-sm-${h}-start`]]:h>0,[c.A[`col-sm-${u}-end`]]:u>0,[c.A[`col-md-${p}`]]:!(g&&m),[c.A[`col-md-${g}-start`]]:g>0,[c.A[`col-md-${m}-end`]]:m>0,[c.A[`col-lg-${f}`]]:!(j&&v),[c.A[`col-lg-${j}-start`]]:j>0,[c.A[`col-lg-${v}-end`]]:v>0});return(0,i.createElement)(n,{className:x},t)}},918(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(22),i=n(609),c=n(713);const o=({children:e,fluid:t=!1,tagName:n="div",className:o,horizontalGap:a=1,horizontalSpacing:r=1},l)=>{const d=(0,i.useMemo)(()=>{const e=`calc( var(--horizontal-spacing) * ${r} )`;return{paddingTop:e,paddingBottom:e,rowGap:`calc( var(--horizontal-spacing) * ${a} )`}},[a,r]),h=(0,s.A)(o,c.A.container,{[c.A.fluid]:t});return(0,i.createElement)(n,{className:h,style:d,ref:l},e)},a=(0,i.forwardRef)(o)},951(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(120),i=n.n(s),c=(n(144),n(790));const o=({color:e="#FFFFFF",className:t="",size:n=20})=>{const s=t+" jp-components-spinner",i={width:n,height:n,fontSize:n,borderTopColor:e},o={borderTopColor:e,borderRightColor:e};return(0,c.jsx)("div",{className:s,children:(0,c.jsx)("div",{className:"jp-components-spinner__outer",style:i,children:(0,c.jsx)("div",{className:"jp-components-spinner__inner",style:o})})})};o.propTypes={color:i().string,className:i().string,size:i().number};const a=o},723(e,t,n){"use strict";n.d(t,{Ay:()=>u});var s=n(609),i=n(167),c=n(790);const o={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},a={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},r={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},d={},h=(e,t,n)=>{const s={...o,...a,...r,...l};for(const t in s)e.style.setProperty(t,s[t]);n&&e.classList.add(i.A.global),t&&(d[t]={provided:!0,root:e})},u=({children:e=null,targetDom:t,id:n,withGlobalStyles:i=!0})=>{const o=(0,s.useRef)(),a=d?.[n]?.provided;return(0,s.useLayoutEffect)(()=>{if(!a)return t?h(t,n,i):void(o?.current&&h(o.current,n,i))},[t,o,a,n,i]),t?(0,c.jsx)(c.Fragment,{children:e}):(0,c.jsx)("div",{ref:o,children:e})}},924(e,t,n){"use strict";function s(e,t={}){const n={};let s;if("undefined"!=typeof window&&(s=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);for(const e in t)n[e]=encodeURIComponent(t[e]);!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(n.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),s&&(n.calypso_env=s);return"https://jetpack.com/redirect/?"+Object.keys(n).map(e=>e+"="+n[e]).join("&")}n.d(t,{A:()=>s})},439(e,t,n){let s={};try{s=n(422)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),s={missingConfig:!0}}const i=e=>Object.hasOwn(s,e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return s[e]}}},186(e,t,n){"use strict";n.d(t,{A:()=>g});var s=n(509),i=n(918),c=n(723),o=n(384),a=n(143),r=n(609),l=n(249),d=n(748),h=n(378),u=n(999),p=n(790);const g=()=>{const[e,t]=(0,r.useState)(!1),n=(0,r.useCallback)(()=>t(!0),[t]),{isUserConnected:g,isRegistered:m}=(0,a.useSelect)(e=>e(o.CONNECTION_STORE_ID).getConnectionStatus(),[]),f=(0,a.useSelect)(e=>e(o.CONNECTION_STORE_ID).getConnectionErrors(),[]),j=(0,r.useMemo)(()=>Object.keys(f).length||e?(0,p.jsx)(u.A,{}):m&&g?(0,p.jsx)(l.A,{}):(0,p.jsx)(d.A,{}),[m,g,f,e]),v=(0,r.useMemo)(()=>m&&g&&!Object.keys(f).length&&!e,[m,g,f,e]);return(0,p.jsx)(c.Ay,{targetDom:document.body,children:(0,p.jsx)(i.A,{horizontalSpacing:10,horizontalGap:3,children:(0,p.jsxs)(s.A,{sm:4,md:8,lg:12,children:[j,v&&(0,p.jsx)(h.A,{onDisconnect:n})]})})})}},610(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(533),i=n(113),c=n(94),o=n(790);function a({children:e}){return(0,o.jsxs)("div",{className:c.A.card,children:[(0,o.jsxs)("div",{className:c.A.card__column+" "+c.A["card__column--brand"],children:[(0,o.jsx)(s.A,{}),(0,o.jsx)(i.A,{})]}),(0,o.jsx)("div",{className:c.A.card__column+" "+c.A["card__column--content"],children:e})]})}},70(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(427),i=n(790);function c({color:e="#008A20"}){return(0,i.jsxs)(s.SVG,{clipRule:"evenodd",fillRule:"evenodd",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)(s.Rect,{width:"20",height:"20",rx:"10",fill:e}),(0,i.jsx)(s.Path,{d:"M15.2011 5.49999L8.52564 14.4777L4.65482 11.5996",stroke:"white",strokeWidth:"1.5"})]})}},207(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(427),i=n(790);function c({color:e="#029CD7"}){return(0,i.jsx)(s.SVG,{clipRule:"evenodd",fillRule:"evenodd",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(s.Path,{d:"M18.9348 5.99991L10.0342 17.9702L4.8731 14.1327",stroke:e,strokeWidth:"1.5"})})}},997(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(427),i=n(790);function c({color:e="#D63638"}){return(0,i.jsxs)(s.SVG,{clipRule:"evenodd",fillRule:"evenodd",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)(s.Rect,{width:"20",height:"20",rx:"10",fill:e}),(0,i.jsx)(s.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M9.9999 10.7956L12.7841 13.5799L13.5796 12.7844L10.7954 10.0001L13.5796 7.21591L12.7841 6.42042L9.9999 9.20465L7.21566 6.42041L6.42017 7.21591L9.20441 10.0001L6.42017 12.7844L7.21567 13.5799L9.9999 10.7956Z",fill:"white"})]})}},249(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(112),i=n(104),c=n(22),o=n(609),a=n(610),r=n(70),l=n(523),d=n(790);const __=i.__;function h(){const e=(0,o.useCallback)(()=>{const e=encodeURIComponent(window.location.href);window.location.href=`https://agencies.automattic.com?source=client-plugin&wp-admin-url=${e}`},[]);return(0,d.jsx)(a.A,{children:(0,d.jsxs)("div",{className:l.A.card,children:[(0,d.jsx)("h1",{children:__("Your site is connected to Automattic for Agencies","automattic-for-agencies-client")}),(0,d.jsxs)("p",{className:(0,c.A)(l.A.connection_status,l.A["connection_status--connected"]),children:[(0,d.jsx)(r.A,{}),__("Site is connected and syncing","automattic-for-agencies-client")]}),(0,d.jsx)("div",{children:(0,d.jsx)(s.A,{onClick:e,isExternalLink:!0,children:__("Visit the dashboard","automattic-for-agencies-client")})})]})})}},748(e,t,n){"use strict";n.d(t,{A:()=>j});var s=n(924),i=n(384),c=n(427),o=n(87),a=n(104),r=n(22),l=n(609),d=n(610),h=n(207),u=n(194),p=n(846),g=n(790);const __=a.__;function m({onShowSharingDetailsClick:e}){const{apiNonce:t,apiRoot:n,registrationNonce:a}=window.automatticForAgenciesClientInitialState;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h1",{children:__("Add this site to Automattic for Agencies by connecting now","automattic-for-agencies-client")}),(0,g.jsxs)("ul",{className:p.A.checklist,children:[(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),__("See your site in the Sites dashboard","automattic-for-agencies-client")]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),__("View any security and performance issues across all of your sites","automattic-for-agencies-client")]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),__("Update plugins across all sites in a couple of clicks","automattic-for-agencies-client")]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),__("Receive instant downtime alerts","automattic-for-agencies-client")]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),__("And more","automattic-for-agencies-client")]})]}),(0,g.jsxs)("div",{className:p.A["site-connection"],children:[(0,g.jsx)("div",{className:p.A["terms-of-service"],children:(0,o.createInterpolateElement)(__("By clicking connect this site, you agree to our Terms of Service and to sync your site‘s data with us.","automattic-for-agencies-client"),{strong:(0,g.jsx)("strong",{}),tosLink:(0,g.jsx)(c.ExternalLink,{className:p.A["terms-of-service__link"],href:(0,s.A)("wpcom-tos")}),shareDetailsLink:(0,g.jsx)("button",{className:"components-button is-link",onClick:e})})}),(0,g.jsx)("div",{className:p.A["connect-button-wrapper"],children:(0,g.jsx)(i.ConnectButton,{connectLabel:__("Connect this site","automattic-for-agencies-client"),apiRoot:n,apiNonce:t,registrationNonce:a,from:"automattic-for-agencies-client",redirectUri:"options-general.php?page=automattic-for-agencies-client"})})]})]})}function f({onCloseSharingDetailsClick:e}){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{children:(0,g.jsxs)("button",{className:"components-button components-button--back is-link",onClick:e,children:[(0,g.jsx)(u.A,{}),__("Go back to site connection","automattic-for-agencies-client")]})}),(0,g.jsxs)("div",{className:p.A.card__prose,children:[(0,g.jsx)("h2",{children:__("What data is synced between your site and WordPress.com","automattic-for-agencies-client")}),(0,g.jsx)("p",{children:__("Your privacy matters to us. We only collect the data necessary to provide your Automattic for Agencies portal experience.","automattic-for-agencies-client")})]}),(0,g.jsxs)("ul",{className:p.A.checklist,children:[(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),(0,g.jsx)("div",{children:(0,o.createInterpolateElement)(__("Options: To sync specific site options (and constants) that help us identify the changes to the features we power.","automattic-for-agencies-client"),{strong:(0,g.jsx)("strong",{})})})]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),(0,g.jsx)("div",{children:(0,o.createInterpolateElement)(__("Updates: To sync data about plugin, theme, and core updates and enable updating these from the Automattic for Agencies portal.","automattic-for-agencies-client"),{strong:(0,g.jsx)("strong",{})})})]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),(0,g.jsx)("div",{children:(0,o.createInterpolateElement)(__("Plugins: To sync plugin data, such as deletions and installations.","automattic-for-agencies-client"),{strong:(0,g.jsx)("strong",{})})})]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),(0,g.jsx)("div",{children:(0,o.createInterpolateElement)(__("Users: To sync information on the site's users and any related changes. This will be used for user management in the future.","automattic-for-agencies-client"),{strong:(0,g.jsx)("strong",{})})})]}),(0,g.jsxs)("li",{children:[(0,g.jsx)(h.A,{}),(0,g.jsx)("div",{children:(0,o.createInterpolateElement)(__("Stats: To sync heartbeat data. This is used to power downtime monitoring and the last 7-day stats charts.","automattic-for-agencies-client"),{strong:(0,g.jsx)("strong",{})})})]})]})]})}function j(){const[e,t]=(0,l.useState)(!1),n=(0,l.useCallback)(()=>t(!0),[]),s=(0,l.useCallback)(()=>t(!1),[]);return(0,g.jsx)(d.A,{children:(0,g.jsx)("div",{className:(0,r.A)(p.A.card,{[p.A["card--sharing"]]:e,[p.A["card--connection"]]:!e}),children:e?(0,g.jsx)(f,{onCloseSharingDetailsClick:s}):(0,g.jsx)(m,{onShowSharingDetailsClick:n})})})}},378(e,t,n){"use strict";n.d(t,{A:()=>h});var s=n(932),i=n(951),c=n(112),o=n(427),a=n(104),r=n(609),l=n(190),d=n(790);const __=a.__;function h({onDisconnect:e}){const{apiNonce:t,apiRoot:n}=window.automatticForAgenciesClientInitialState,[a,h]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),[g,m]=(0,r.useState)(!1),f=(0,r.useCallback)(()=>h(!0),[]),j=(0,r.useCallback)(()=>h(!1),[]),v=(0,r.useCallback)(()=>{p(!0),s.Ay.disconnectSite().then(()=>{p(!1),h(!1),e()}).catch(e=>{p(!1),m(e)})},[e]);return(0,r.useEffect)(()=>{s.Ay.setApiRoot(n),s.Ay.setApiNonce(t)},[n,t]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:l.A.disconnect_site_trigger,children:(0,d.jsx)(c.A,{variant:"link",size:"small",onClick:f,children:__("Disconnect site","automattic-for-agencies-client")})}),a&&(0,d.jsxs)(o.Modal,{title:__("Are you sure you want to disconnect this site?","automattic-for-agencies-client"),onRequestClose:j,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:l.A.disconnect_modal,children:[(0,d.jsx)("p",{children:__("It will no longer show up in the Automattic for Agencies dashboard and you won’t be able to update plugins with one click or be notified of any downtime.","automattic-for-agencies-client")}),(0,d.jsxs)("div",{className:l.A.disconnect_modal__actions,children:[(0,d.jsx)(c.A,{variant:"secondary",size:"small",disabled:u,onClick:j,children:__("Keep the site connected","automattic-for-agencies-client")}),(0,d.jsx)(c.A,{variant:"primary",isDestructive:!0,size:"small",isLoading:u,disabled:u,onClick:v,className:l.A.disconnect_button,children:u?(0,d.jsx)(i.A,{}):__("Yes, disconnect site","automattic-for-agencies-client")})]}),g&&(0,d.jsx)("p",{className:l.A.disconnect_modal__error,children:__("An error occurred disconnecting the site.","automattic-for-agencies-client")})]})]})}},999(e,t,n){"use strict";n.d(t,{A:()=>u});var s=n(384),i=n(143),c=n(104),o=n(22),a=n(609),r=n(610),l=n(997),d=n(588),h=n(790);const __=c.__;function u(){const{apiNonce:e,apiRoot:t,registrationNonce:n}=window.automatticForAgenciesClientInitialState,c=(0,i.useSelect)(e=>e(s.CONNECTION_STORE_ID).getConnectionErrors(),[]),u=(0,a.useMemo)(()=>{const e=Object.values(c);return e?Object.values(e)?.shift()?.error_message:null},[c]);return(0,h.jsx)(r.A,{children:(0,h.jsxs)("div",{className:d.A.card,children:[(0,h.jsx)("h1",{children:__("Your site was disconnected from Automattic for Agencies","automattic-for-agencies-client")}),(0,h.jsxs)("p",{className:(0,o.A)(d.A.connection_status,d.A["connection_status--disconnected"]),children:[(0,h.jsx)(l.A,{}),u||__("Site is disconnected","automattic-for-agencies-client")]}),(0,h.jsx)("div",{className:d.A["site-connection"],children:(0,h.jsx)("div",{className:d.A["connect-button-wrapper"],children:(0,h.jsx)(s.ConnectButton,{connectLabel:__("Reconnect this site now","automattic-for-agencies-client"),apiRoot:t,apiNonce:e,registrationNonce:n,from:"automattic-for-agencies-client",redirectUri:"options-general.php?page=automattic-for-agencies-client"})})})]})})}},194(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(790);const i=()=>(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)("rect",{x:"0",fill:"none",width:"24",height:"24"}),(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})})]})},422(e){"use strict";e.exports={consumer_slug:"automattic-for-agencies-client"}},384(e){"use strict";e.exports=window.JetpackConnection},609(e){"use strict";e.exports=window.React},790(e){"use strict";e.exports=window.ReactJSXRuntime},427(e){"use strict";e.exports=window.wp.components},143(e){"use strict";e.exports=window.wp.data},87(e){"use strict";e.exports=window.wp.element},104(e){"use strict";e.exports=window.wp.i18n},573(e){"use strict";e.exports=window.wp.primitives},832(e){"use strict";e.exports=window.wp.url},109(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(87),i=(0,s.forwardRef)(({icon:e,size:t=24,...n},i)=>(0,s.cloneElement)(e,{width:t,height:t,...n,ref:i}))},866(e,t,n){"use strict";n.d(t,{A:()=>c});var s=n(573),i=n(790),c=(0,i.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(s.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})})},22(e,t,n){"use strict";function s(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var c=e.length;for(t=0;ti});const i=function(){for(var e,t,n=0,i="",c=arguments.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(723),t=n(87),s=n(186),i=n(790);!function(){const n=document.getElementById("automattic-for-agencies-client-root");if(null===n)return;const c=(0,i.jsx)(e.Ay,{children:(0,i.jsx)(s.A,{})});t.createRoot(n).render(c)}()})()})();