From b63a85cbb4dd44ac8d4795bf84db7c6bb7541eb6 Mon Sep 17 00:00:00 2001 From: rcrdortiz Date: Thu, 26 Sep 2024 12:39:17 +0000 Subject: [PATCH] My Jetpack: fix highlights and purchases API calls when not connected (#39522) * We now disable the API call if Jetpack is not connect * changelog * Removed placeholder data * Removed enabled check from purchases * Returning null path when no userId for highlights endpoint * Updated implementation to rely oon not using a path instead of disabling * Changed from using the siteID as discriminator to using isSiteConnected * Changed to use enabled property again Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11052156521 Upstream-Ref: Automattic/jetpack@eaa996ed95380303562abf4aa057735608ee41b7 --- composer.json | 2 +- .../automattic/jetpack-backup/composer.json | 2 +- .../jetpack-my-jetpack/CHANGELOG.md | 8 +++ .../jetpack-my-jetpack/build/index.asset.php | 2 +- .../jetpack-my-jetpack/build/index.js | 4 +- .../src/class-initializer.php | 2 +- jetpack_vendor/i18n-map.php | 2 +- vendor/composer/installed.json | 62 +++++++++---------- vendor/composer/installed.php | 60 +++++++++--------- vendor/composer/jetpack_autoload_classmap.php | 60 +++++++++--------- 10 files changed, 106 insertions(+), 98 deletions(-) diff --git a/composer.json b/composer.json index 199b861a..ee46466b 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "automattic/jetpack-autoloader": "^3.1.0", "automattic/jetpack-composer-plugin": "^2.0.3", "automattic/jetpack-config": "^2.0.4", - "automattic/jetpack-my-jetpack": "^4.35.8", + "automattic/jetpack-my-jetpack": "^4.35.9-alpha", "automattic/jetpack-sync": "^3.13.1", "automattic/jetpack-backup": "^3.4.12-alpha", "automattic/jetpack-status": "^4.0.2" diff --git a/jetpack_vendor/automattic/jetpack-backup/composer.json b/jetpack_vendor/automattic/jetpack-backup/composer.json index f92ae4a6..854faa71 100644 --- a/jetpack_vendor/automattic/jetpack-backup/composer.json +++ b/jetpack_vendor/automattic/jetpack-backup/composer.json @@ -12,7 +12,7 @@ "automattic/jetpack-composer-plugin": "^2.0.3", "automattic/jetpack-config": "^2.0.4", "automattic/jetpack-connection": "^5.1.0", - "automattic/jetpack-my-jetpack": "^4.35.8", + "automattic/jetpack-my-jetpack": "^4.35.9-alpha", "automattic/jetpack-sync": "^3.13.1", "automattic/jetpack-status": "^4.0.2" }, diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md index 1a464590..40bfc422 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [4.35.9-alpha] - unreleased + +This is an alpha version! The changes listed here are not final. + +### Fixed +- Fixed a bug where the purchases and highlights APIs were being called without a valid Jetpack connection + ## [4.35.8] - 2024-09-25 ### Changed - Update dependencies. [#38910] @@ -1746,6 +1753,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Created package +[4.35.9-alpha]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.8...4.35.9-alpha [4.35.8]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.7...4.35.8 [4.35.7]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.6...4.35.7 [4.35.6]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.5...4.35.6 diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php index 049919d6..9ae4edf7 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f3d32fa62043d8218650'); + array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'd36b7beb5ef1a37ba370'); diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js index d3558f7d..f45c2bfb 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js @@ -18,7 +18,7 @@ __("Connected as %1$s (Owner).","jetpack-my-jetpack"),n.currentUser?.wpcomUser?. __("Connected as %1$s.","jetpack-my-jetpack"),n.currentUser?.wpcomUser?.display_name):__("User connected.","jetpack-my-jetpack"),{onClick:c,actionText:__("Manage","jetpack-my-jetpack"),text:s,status:"success"}})({hasProductsThatRequireUserConnection:D,hasUserConnectionBrokenModules:q,isUserConnected:S,userConnectionData:M,openManageUserConnectionDialog:W,handleConnectUser:X});return React.createElement("div",{id:"dylan",className:j.A["connection-status-card"]},React.createElement(n.H3,null,o),React.createElement(n.Ay,{variant:"body",mb:3},`${u} `,React.createElement(c.A,{href:(0,r.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),variant:"link",weight:"regular",isExternalLink:!0,onClick:Y},__("Learn more about connections","jetpack-my-jetpack"))),React.createElement("div",{className:j.A.status},React.createElement("img",{src:k,alt:"",className:j.A.cloud}),React.createElement("div",{className:(0,p.A)(j.A.line,z?"":J?j.A.error:j.A.warning)}),React.createElement("div",{className:j.A["avatar-wrapper"]},React.createElement("img",{src:z?b:A,alt:"",className:j.A.jetpack}),(D||q)&&React.createElement("img",{src:S&&O?O:y,alt:"",className:j.A.avatar})),"success"===ee?.status&&ee?.actionText&&React.createElement("div",{className:j.A["connect-action"]},React.createElement(_,{onClick:ee?.onClick,actionText:ee?.actionText}))),React.createElement("div",null,React.createElement(R,ee),z&&React.createElement(R,te),S&&M?.connectionOwner&&!M.currentUser?.isMaster&&React.createElement(R,{text:(0,l.sprintf)(/* translators: placeholder is the username of the Jetpack connection owner */ __("Also connected: %s (Owner).","jetpack-my-jetpack"),M.connectionOwner)})),React.createElement(s.ManageConnectionDialog,{apiRoot:e,apiNonce:t,onDisconnected:Z,connectedPlugins:d,connectedSiteId:C,connectedUser:M,isOpen:V,onClose:K,context:x}))}},3593:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(8837),c=a(4923),r=a(8117),s=a(1870),i=a(3981),l=a(4596);function o(){const{apiRoot:e,apiNonce:t,topJetpackMenuItemUrl:a,connectedPlugins:o}=(0,s.A)(),u=(0,i.A)(n.NM.Connection),m=(0,c.V)(),d=(0,r.A)(m);return React.createElement(l.A,{apiRoot:e,apiNonce:t,redirectUri:a,onConnectUser:u,connectedPlugins:o,requiresUserConnection:d.length>0,onDisconnected:()=>document?.location?.reload(!0)})}},5167:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(5918),c=a(8509),r=a(7425),s=a(6427),i=a(7723),l=a(2778),o=a(1609),u=a(3804),m=a(4526),d=a(9674),p=a(6225);const __=i.__,_n=i._n,h=()=>{const{recordEvent:e}=(0,m.A)(),{recommendedModules:t,redoEvaluation:a,removeEvaluationResult:i}=(0,u.A)();return(0,o.useEffect)((()=>{e("jetpack_myjetpack_evaluation_recommendations_view",{modules:t})}),[t,e]),React.createElement(n.A,{horizontalGap:2,horizontalSpacing:6},React.createElement(c.A,null,React.createElement(s.Flex,null,React.createElement(s.FlexItem,null,React.createElement(r.Ay,{variant:"headline-small",className:p.A.title},_n("Our recommendation for you","Our recommendations for you",t.length,"jetpack-my-jetpack")),React.createElement(r.Ay,null,__("Here are the tools that we think will help you reach your website goals:","jetpack-my-jetpack"))),React.createElement(s.FlexItem,null,React.createElement(s.DropdownMenu,{menuProps:{className:p.A["dropdown-menu"]},popoverProps:{position:"bottom left"},icon:l.A,label:__("Recommendations menu","jetpack-my-jetpack"),controls:[{title:__("Redo","jetpack-my-jetpack"),onClick:a},{title:__("Dismiss","jetpack-my-jetpack"),onClick:i}]})))),React.createElement(c.A,null,React.createElement(n.A,{tagName:"ul",className:p.A["recommendations-list"],horizontalGap:4,horizontalSpacing:2,fluid:!0},t.map((e=>{const t=d.z[e];return t&&React.createElement(c.A,{tagName:"li",key:e,lg:4},React.createElement(t,{recommendation:!0}))})))))}},1617:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(7723),c=a(1113),r=a(7474),s=a(1609),i=a.n(s),l=a(28),o=a(8870);const __=n.__;const u=function({onClick:e=()=>{},reload:t}){const a=t?"/?reload=true":"/";return i().createElement(l.N_,{to:a,className:o.A.link,onClick:e},i().createElement(c.A,{icon:r.A,className:o.A.icon}),__("Go back","jetpack-my-jetpack"))}},1651:(e,t,a)=>{"use strict";a.d(t,{k:()=>m});var n=a(1112),c=a(8478),r=a(6427),s=a(8443),i=a(7723),l=a(3022),o=a(1609),u=a(9331);a(4800);const __=i.__;function m({productName:e,giftedDate:t}){const[a,m]=(0,o.useState)(!1),d=(0,o.useCallback)((()=>m(!0)),[m]),p={position:"top center",placement:"top",animate:!0,noArrow:!1,resize:!1,flip:!1,offset:6,focusOnMount:"container",onClose:(0,o.useCallback)((()=>m(!1)),[m]),className:u.A.container},h=(0,l.A)(u.A.wrapper,"golden-token-icon-tooltip");return React.createElement("div",{className:h},React.createElement(n.A,{variant:"link",onClick:d},React.createElement(c.sT,{className:u.A.logo})),React.createElement("div",{className:u.A.helper},a&&React.createElement(r.Popover,p,React.createElement("div",null,React.createElement("div",{className:u.A.title},e),React.createElement("div",{className:u.A.content},(0,i.sprintf)( // translators: %1$s is a product name, %2$s is the date the product was gifted. -__("%1$s was gifted on %2$s. It gives you access to a lifetime subscription of Jetpack VaultPress Backup and Jetpack Scan.","jetpack-my-jetpack"),e,(0,s.dateI18n)("F j, Y",t)))))))}},6894:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6427),c=a(1609),r=a.n(c),s=a(146);const i=function(){const[e,t]=(0,c.useState)(!0),a=(0,c.useCallback)((()=>t(!1)),[]);if(!e)return null;if(!Object.hasOwn(window,"JP_IDENTITY_CRISIS__INITIAL_STATE"))return null;const{containerID:i,isSafeModeConfirmed:l}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;return!i||l?null:r().createElement(n.Modal,{onRequestClose:a,overlayClassName:s.A.modal},r().createElement("div",{id:i,className:s.A.container}))}},2660:(e,t,a)=>{"use strict";a.d(t,{I:()=>l});var n=a(1883),c=a(6427),r=a(9491),s=a(1609),i=a(4526);a(6632);const l=({children:e,className:t,icon:a="info-outline",iconSize:l=14,tracksEventName:o,tracksEventProps:u={}})=>{const{recordEvent:m}=(0,i.A)(),d=(0,s.useRef)(),p=(0,r.useViewportMatch)("medium","<"),[h,g]=(0,s.useState)(!1),v=(0,s.useCallback)((()=>g((e=>(!0==!e&&o&&m(`jetpack_${o}`,{page:"my-jetpack",...u}),!e)))),[m,o,u]),f=(0,s.useCallback)((()=>{d.current&&!d.current.contains(d.current.ownerDocument.activeElement)&&g(!1)}),[g,d]);return React.createElement("span",{className:t},React.createElement("button",{className:"info-tooltip__button",onClick:v,ref:d},React.createElement(n.A,{icon:a,size:l})),h&&React.createElement(c.Popover,{placement:p?"top-end":"right",noArrow:!1,offset:10,focusOnMount:"container",onClose:f},React.createElement("div",{className:"info-tooltip__content"},e)))}},3449:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(7506),c=a(3924),r=a(7723),s=a(1609),i=a.n(s),l=a(4526),o=a(4576);const __=r.__,u=e=>{const{isAgencyAccount:t=!1}=e,{recordEvent:a}=(0,l.A)();(0,s.useEffect)((()=>{a("jetpack_myjetpack_manage_banner_view",{})}),[a]);const r=(0,s.useCallback)((e=>{a("jetpack_myjetpack_manage_banner_click",{target:e,feature:"manage"})}),[a]),u=(0,s.useCallback)((()=>{r("jp-agencies-register-interest")}),[r]);return i().createElement(n.A,{icon:o,title:__("Manage client sites and grow your business","jetpack-my-jetpack"),description:__("Are you an agency or freelancer? We’re working on a new partnership program bringing together the best of Jetpack, Woo, WordPress.com, and Pressable. Get bulk discounts, referral commissions, and more.","jetpack-my-jetpack"),primaryCtaLabel:__("Sign up now","jetpack-my-jetpack"),primaryCtaURL:(0,c.A)("jetpack-for-agencies-register-interest"),primaryCtaIsExternalLink:!0,primaryCtaOnClick:u})}},2912:(e,t,a)=>{"use strict";a.d(t,{A:()=>V});var n=a(6072),c=a.n(n),r=a(442),s=a(8089),i=a(7656),l=a(2947),o=a(5918),u=a(8509),m=a(5640),d=a(8587),p=a(4082),h=a(3022),g=a(1609),v=a(6007),f=a(1504),w=a(3804),E=a(280),k=a(8242),y=a(9812),A=a(4526),b=a(1870),j=a(7436),R=a(3593),_=a(5167),C=a(6894),x=a(3449),N=a(3958),z=a(5487),S=a(8388),M=a(5055);const L=({message:e,title:t,options:a})=>{const{recordEvent:n}=(0,A.A)();(0,g.useEffect)((()=>{const e=a?.tracksArgs||{};n("jetpack_myjetpack_global_notice_view",{notice_id:a.id,...e})}),[a.id,n,a?.tracksArgs]);const[l]=(0,r.A)(["md"],[">"]),o=a.actions?.map((e=>React.createElement(s.A,c()({customClass:M.A.cta},e))));return React.createElement("div",{className:(0,h.A)(M.A.notice,{[M.A["bigger-than-medium"]]:l})},React.createElement(i.A,c()({hideCloseButton:!0},a,{title:t,actions:o}),React.createElement("div",{className:M.A.message},e)))};function V(){(0,p.rk)("explat_test_jetpack_implementation_aa_test"),(0,j.A)();const{redBubbleAlerts:e}=(0,k.A$)(),{jetpackManage:t={},adminUrl:a}=(0,k.A$)(),{isWelcomeBannerVisible:n}=(0,y.A)(),{isSectionVisible:c}=(0,w.A)(),{siteIsRegistered:r}=(0,b.A)(),{currentNotice:s}=(0,g.useContext)(v.g),{message:i,title:h,options:V}=s||{},{data:P,isLoading:H}=(0,E.A)({name:f._,query:{path:f.rR}}),{data:I,isLoading:B}=(0,E.A)({name:f.nw,query:{path:f.O2}}),O=P?.is_available,T=I?.user?.jwt,F=!B&&!H&&O&&T,U="1"===(0,k.A$)("userIsNewToJetpack"),{recordEvent:D}=(0,A.A)(),[q,J]=(0,g.useState)(!1);return(0,g.useLayoutEffect)((()=>{D("jetpack_myjetpack_page_view",{red_bubble_alerts:Object.keys(e).join(",")})}),[D,e]),window.location.hash.includes("?reload=true")&&(window.history.replaceState(null,"",window.location.href.replace("?reload=true","")),window.location.reload(),J(!0)),q?null:React.createElement(l.A,{siteAdminUrl:a},React.createElement("hr",{className:M.A.separator}),React.createElement(C.A,null),!U&&React.createElement(o.A,{horizontalSpacing:0},React.createElement(u.A,null,React.createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"}))),n?React.createElement(S.A,null,i&&r&&React.createElement(L,{message:i,title:h,options:V})):i&&React.createElement(o.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(u.A,null,React.createElement(L,{message:i,title:h,options:V}))),!n&&c&&React.createElement(_.A,null),React.createElement(z.A,null),t.isEnabled&&React.createElement(o.A,{horizontalSpacing:6,horizontalGap:i?3:6},React.createElement(u.A,null,React.createElement(x.A,{isAgencyAccount:t.isAgencyAccount}))),React.createElement(m.A,null,React.createElement(o.A,{horizontalSpacing:8},React.createElement(u.A,{sm:4,md:4,lg:6},React.createElement(N.A,null)),React.createElement(u.A,{sm:4,md:4,lg:6},React.createElement(R.A,null)))),F&&React.createElement(d.A,{jwt_token:T}))}},3958:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(7425),c=a(1112),r=a(7723),s=a(1609),i=a(8837),l=a(1504),o=a(280),u=a(8242),m=a(4526),d=a(1870),p=a(3981),h=a(6256),g=a(3542),v=a(8252),f=a(1651),w=a(4334);const __=r.__,_n=r._n;function E({purchase:e={}}){const{product_name:t}=e;return React.createElement(React.Fragment,null,React.createElement(n.hE,null,t),React.createElement(k,e))}function k(e){const{expiry_message:t,product_name:a,subscribed_date:c}=e;return(0,v.b)(e)?React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},React.createElement("span",{className:w.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(f.k,{productName:a,giftedDate:c})):React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},t)}function y({numberOfPurchases:e=0}){return React.createElement(React.Fragment,null,React.createElement(n.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(n.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function A({numberOfPurchases:e}){const{recordEvent:t}=(0,m.A)(),{isUserConnected:a}=(0,d.A)(),n=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),r=__("Purchase a plan","jetpack-my-jetpack"),l=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),o=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),v=(0,p.A)(i.NM.Connection),f=(0,s.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||v()}),[v,a,t]);let E=__("Activate a license","jetpack-my-jetpack");a||(E=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:k="",adminUrl:y=""}=(0,u.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:l,href:(0,h.A)(),weight:"regular",variant:"link",isExternalLink:!0},n)),React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:o,href:(0,g.A)(),weight:"regular",variant:"link",isExternalLink:!0},r)),k&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:f,href:a?`${y}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},E)))}function b(){const e=!!(0,u.A$)("userIsAdmin"),{data:t,isLoading:a,isError:n}=(0,o.A)({name:l.Ck,query:{path:l.tb}}),c=t&&!a&&!n,r=c?t.length:0;return React.createElement("div",{className:w.A.container},React.createElement(y,{numberOfPurchases:r}),React.createElement("div",{className:w.A.purchasesSection},c&&t.map((e=>React.createElement(E,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(A,{numberOfPurchases:r}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(6072),c=a.n(n),r=a(1112),s=a(7723),i=a(1113),l=a(3512),o=a(3883),u=a(4969),m=a(3022),d=a(6941),p=a.n(d),h=a(1609),g=a(8837),v=a(4923),f=a(4526),w=a(1413),E=a(1208);const __=s.__,k=p()("my-jetpack:product-card:action-button"),y=({status:e,admin:t,name:a,slug:n,onActivate:d,additionalActions:p,primaryActionOverride:y,onManage:A,onFixConnection:b,isFetching:j,isInstallingStandalone:R,className:_,onAdd:C,onInstall:x,onLearnMore:N,upgradeInInterstitial:z,isOwned:S})=>{const[M,L]=(0,h.useState)(!1),[V,P]=(0,h.useState)({}),{detail:H}=(0,v.A)(n),{manageUrl:I,purchaseUrl:B}=H,O=!I,T=(0,h.useRef)(null),F=(0,h.useRef)(null),{recordEvent:U}=(0,f.A)();"jetpack-ai"===n&&k(n,H);const D=j||R,q=p?.length>0,J=(0,h.useMemo)((()=>({variant:D?void 0:"primary",disabled:D,size:"small",weight:"regular",className:_})),[D,_]),G=(0,h.useCallback)((()=>{switch("jetpack-ai"===n&&k(n,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...J,href:`#/add-${n}`,variant:"primary",label:e,onClick:N,...y&&g.hp.ABSENT in y&&y[g.hp.ABSENT]}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...J,variant:"primary",label:e,onClick:x,...y&&g.hp.ABSENT_WITH_PLAN in y&&y[g.hp.ABSENT_WITH_PLAN]}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...J,href:B||`#/add-${n}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:C,...y&&g.hp.NEEDS_FIRST_SITE_CONNECTION in y&&y[g.hp.NEEDS_FIRST_SITE_CONNECTION]};case g.hp.NEEDS_PLAN:{const e=__("Get plan","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=S?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.NEEDS_PLAN in y&&y[g.hp.NEEDS_PLAN]}}case g.hp.CAN_UPGRADE:{const e=__("Upgrade","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=B||z?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.CAN_UPGRADE in y&&y[g.hp.CAN_UPGRADE]}}case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...J,disabled:O||J?.disabled,href:I,variant:"secondary",label:e,onClick:A,...y&&g.hp.ACTIVE in y&&y[g.hp.ACTIVE]}}case g.hp.SITE_CONNECTION_ERROR:return{...J,href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.SITE_CONNECTION_ERROR in y&&y[g.hp.SITE_CONNECTION_ERROR]};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.USER_CONNECTION_ERROR in y&&y[g.hp.USER_CONNECTION_ERROR]};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...J,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...y&&g.hp.INACTIVE in y&&y[g.hp.INACTIVE]};default:return null}}),[e,J,n,C,b,d,x,N,B,z,O,I,A,y,S]),$=(0,h.useMemo)((()=>q?[...p,G()]:[G()]),[p,G,q]),W=(0,h.useCallback)((()=>{U("jetpack_myjetpack_product_card_dropdown_toggle",{product:n,state:M?"closed":"open"})}),[M,U,n]),Q=(0,h.useCallback)((()=>{L(!M),W()}),[M,W]);if((0,h.useEffect)((()=>{P($[0])}),[$]),(0,w.A)(T,(e=>{F.current.contains(e.target)||(L(!1),W())})),!t)return React.createElement(r.A,c()({},J,{size:"small",variant:"link",weight:"regular"}),/* translators: placeholder is product name. */ /* translators: placeholder is product name. */ +__("%1$s was gifted on %2$s. It gives you access to a lifetime subscription of Jetpack VaultPress Backup and Jetpack Scan.","jetpack-my-jetpack"),e,(0,s.dateI18n)("F j, Y",t)))))))}},6894:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6427),c=a(1609),r=a.n(c),s=a(146);const i=function(){const[e,t]=(0,c.useState)(!0),a=(0,c.useCallback)((()=>t(!1)),[]);if(!e)return null;if(!Object.hasOwn(window,"JP_IDENTITY_CRISIS__INITIAL_STATE"))return null;const{containerID:i,isSafeModeConfirmed:l}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;return!i||l?null:r().createElement(n.Modal,{onRequestClose:a,overlayClassName:s.A.modal},r().createElement("div",{id:i,className:s.A.container}))}},2660:(e,t,a)=>{"use strict";a.d(t,{I:()=>l});var n=a(1883),c=a(6427),r=a(9491),s=a(1609),i=a(4526);a(6632);const l=({children:e,className:t,icon:a="info-outline",iconSize:l=14,tracksEventName:o,tracksEventProps:u={}})=>{const{recordEvent:m}=(0,i.A)(),d=(0,s.useRef)(),p=(0,r.useViewportMatch)("medium","<"),[h,g]=(0,s.useState)(!1),v=(0,s.useCallback)((()=>g((e=>(!0==!e&&o&&m(`jetpack_${o}`,{page:"my-jetpack",...u}),!e)))),[m,o,u]),f=(0,s.useCallback)((()=>{d.current&&!d.current.contains(d.current.ownerDocument.activeElement)&&g(!1)}),[g,d]);return React.createElement("span",{className:t},React.createElement("button",{className:"info-tooltip__button",onClick:v,ref:d},React.createElement(n.A,{icon:a,size:l})),h&&React.createElement(c.Popover,{placement:p?"top-end":"right",noArrow:!1,offset:10,focusOnMount:"container",onClose:f},React.createElement("div",{className:"info-tooltip__content"},e)))}},3449:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(7506),c=a(3924),r=a(7723),s=a(1609),i=a.n(s),l=a(4526),o=a(4576);const __=r.__,u=e=>{const{isAgencyAccount:t=!1}=e,{recordEvent:a}=(0,l.A)();(0,s.useEffect)((()=>{a("jetpack_myjetpack_manage_banner_view",{})}),[a]);const r=(0,s.useCallback)((e=>{a("jetpack_myjetpack_manage_banner_click",{target:e,feature:"manage"})}),[a]),u=(0,s.useCallback)((()=>{r("jp-agencies-register-interest")}),[r]);return i().createElement(n.A,{icon:o,title:__("Manage client sites and grow your business","jetpack-my-jetpack"),description:__("Are you an agency or freelancer? We’re working on a new partnership program bringing together the best of Jetpack, Woo, WordPress.com, and Pressable. Get bulk discounts, referral commissions, and more.","jetpack-my-jetpack"),primaryCtaLabel:__("Sign up now","jetpack-my-jetpack"),primaryCtaURL:(0,c.A)("jetpack-for-agencies-register-interest"),primaryCtaIsExternalLink:!0,primaryCtaOnClick:u})}},2912:(e,t,a)=>{"use strict";a.d(t,{A:()=>V});var n=a(6072),c=a.n(n),r=a(442),s=a(8089),i=a(7656),l=a(2947),o=a(5918),u=a(8509),m=a(5640),d=a(8587),p=a(4082),h=a(3022),g=a(1609),v=a(6007),f=a(1504),w=a(3804),E=a(280),k=a(8242),y=a(9812),A=a(4526),b=a(1870),j=a(7436),R=a(3593),_=a(5167),C=a(6894),x=a(3449),N=a(3958),z=a(5487),S=a(8388),M=a(5055);const L=({message:e,title:t,options:a})=>{const{recordEvent:n}=(0,A.A)();(0,g.useEffect)((()=>{const e=a?.tracksArgs||{};n("jetpack_myjetpack_global_notice_view",{notice_id:a.id,...e})}),[a.id,n,a?.tracksArgs]);const[l]=(0,r.A)(["md"],[">"]),o=a.actions?.map((e=>React.createElement(s.A,c()({customClass:M.A.cta},e))));return React.createElement("div",{className:(0,h.A)(M.A.notice,{[M.A["bigger-than-medium"]]:l})},React.createElement(i.A,c()({hideCloseButton:!0},a,{title:t,actions:o}),React.createElement("div",{className:M.A.message},e)))};function V(){(0,p.rk)("explat_test_jetpack_implementation_aa_test"),(0,j.A)();const{redBubbleAlerts:e}=(0,k.A$)(),{jetpackManage:t={},adminUrl:a}=(0,k.A$)(),{isWelcomeBannerVisible:n}=(0,y.A)(),{isSectionVisible:c}=(0,w.A)(),{siteIsRegistered:r}=(0,b.A)(),{currentNotice:s}=(0,g.useContext)(v.g),{message:i,title:h,options:V}=s||{},{data:P,isLoading:H}=(0,E.A)({name:f._,query:{path:f.rR}}),{data:I,isLoading:B}=(0,E.A)({name:f.nw,query:{path:f.O2}}),O=P?.is_available,T=I?.user?.jwt,F=!B&&!H&&O&&T,U="1"===(0,k.A$)("userIsNewToJetpack"),{recordEvent:D}=(0,A.A)(),[q,J]=(0,g.useState)(!1);return(0,g.useLayoutEffect)((()=>{D("jetpack_myjetpack_page_view",{red_bubble_alerts:Object.keys(e).join(",")})}),[D,e]),window.location.hash.includes("?reload=true")&&(window.history.replaceState(null,"",window.location.href.replace("?reload=true","")),window.location.reload(),J(!0)),q?null:React.createElement(l.A,{siteAdminUrl:a},React.createElement("hr",{className:M.A.separator}),React.createElement(C.A,null),!U&&React.createElement(o.A,{horizontalSpacing:0},React.createElement(u.A,null,React.createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"}))),n?React.createElement(S.A,null,i&&r&&React.createElement(L,{message:i,title:h,options:V})):i&&React.createElement(o.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(u.A,null,React.createElement(L,{message:i,title:h,options:V}))),!n&&c&&React.createElement(_.A,null),React.createElement(z.A,null),t.isEnabled&&React.createElement(o.A,{horizontalSpacing:6,horizontalGap:i?3:6},React.createElement(u.A,null,React.createElement(x.A,{isAgencyAccount:t.isAgencyAccount}))),React.createElement(m.A,null,React.createElement(o.A,{horizontalSpacing:8},React.createElement(u.A,{sm:4,md:4,lg:6},React.createElement(N.A,null)),React.createElement(u.A,{sm:4,md:4,lg:6},React.createElement(R.A,null)))),F&&React.createElement(d.A,{jwt_token:T}))}},3958:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(7425),c=a(1112),r=a(7723),s=a(1609),i=a(8837),l=a(1504),o=a(280),u=a(8242),m=a(4526),d=a(1870),p=a(3981),h=a(6256),g=a(3542),v=a(8252),f=a(1651),w=a(4334);const __=r.__,_n=r._n;function E({purchase:e={}}){const{product_name:t}=e;return React.createElement(React.Fragment,null,React.createElement(n.hE,null,t),React.createElement(k,e))}function k(e){const{expiry_message:t,product_name:a,subscribed_date:c}=e;return(0,v.b)(e)?React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},React.createElement("span",{className:w.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(f.k,{productName:a,giftedDate:c})):React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},t)}function y({numberOfPurchases:e=0}){return React.createElement(React.Fragment,null,React.createElement(n.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(n.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function A({numberOfPurchases:e}){const{recordEvent:t}=(0,m.A)(),{isUserConnected:a}=(0,d.A)(),n=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),r=__("Purchase a plan","jetpack-my-jetpack"),l=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),o=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),v=(0,p.A)(i.NM.Connection),f=(0,s.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||v()}),[v,a,t]);let E=__("Activate a license","jetpack-my-jetpack");a||(E=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:k="",adminUrl:y=""}=(0,u.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:l,href:(0,h.A)(),weight:"regular",variant:"link",isExternalLink:!0},n)),React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:o,href:(0,g.A)(),weight:"regular",variant:"link",isExternalLink:!0},r)),k&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:f,href:a?`${y}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},E)))}function b(){const e=!!(0,u.A$)("userIsAdmin"),{isSiteConnected:t}=(0,d.A)(),{data:a,isLoading:n,isError:c}=(0,o.A)({name:l.Ck,query:{path:l.tb},options:{enabled:t}}),r=a&&!n&&!c,s=r?a.length:0;return React.createElement("div",{className:w.A.container},React.createElement(y,{numberOfPurchases:s}),React.createElement("div",{className:w.A.purchasesSection},r&&a.map((e=>React.createElement(E,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(A,{numberOfPurchases:s}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(6072),c=a.n(n),r=a(1112),s=a(7723),i=a(1113),l=a(3512),o=a(3883),u=a(4969),m=a(3022),d=a(6941),p=a.n(d),h=a(1609),g=a(8837),v=a(4923),f=a(4526),w=a(1413),E=a(1208);const __=s.__,k=p()("my-jetpack:product-card:action-button"),y=({status:e,admin:t,name:a,slug:n,onActivate:d,additionalActions:p,primaryActionOverride:y,onManage:A,onFixConnection:b,isFetching:j,isInstallingStandalone:R,className:_,onAdd:C,onInstall:x,onLearnMore:N,upgradeInInterstitial:z,isOwned:S})=>{const[M,L]=(0,h.useState)(!1),[V,P]=(0,h.useState)({}),{detail:H}=(0,v.A)(n),{manageUrl:I,purchaseUrl:B}=H,O=!I,T=(0,h.useRef)(null),F=(0,h.useRef)(null),{recordEvent:U}=(0,f.A)();"jetpack-ai"===n&&k(n,H);const D=j||R,q=p?.length>0,J=(0,h.useMemo)((()=>({variant:D?void 0:"primary",disabled:D,size:"small",weight:"regular",className:_})),[D,_]),G=(0,h.useCallback)((()=>{switch("jetpack-ai"===n&&k(n,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...J,href:`#/add-${n}`,variant:"primary",label:e,onClick:N,...y&&g.hp.ABSENT in y&&y[g.hp.ABSENT]}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...J,variant:"primary",label:e,onClick:x,...y&&g.hp.ABSENT_WITH_PLAN in y&&y[g.hp.ABSENT_WITH_PLAN]}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...J,href:B||`#/add-${n}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:C,...y&&g.hp.NEEDS_FIRST_SITE_CONNECTION in y&&y[g.hp.NEEDS_FIRST_SITE_CONNECTION]};case g.hp.NEEDS_PLAN:{const e=__("Get plan","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=S?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.NEEDS_PLAN in y&&y[g.hp.NEEDS_PLAN]}}case g.hp.CAN_UPGRADE:{const e=__("Upgrade","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=B||z?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.CAN_UPGRADE in y&&y[g.hp.CAN_UPGRADE]}}case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...J,disabled:O||J?.disabled,href:I,variant:"secondary",label:e,onClick:A,...y&&g.hp.ACTIVE in y&&y[g.hp.ACTIVE]}}case g.hp.SITE_CONNECTION_ERROR:return{...J,href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.SITE_CONNECTION_ERROR in y&&y[g.hp.SITE_CONNECTION_ERROR]};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.USER_CONNECTION_ERROR in y&&y[g.hp.USER_CONNECTION_ERROR]};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...J,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...y&&g.hp.INACTIVE in y&&y[g.hp.INACTIVE]};default:return null}}),[e,J,n,C,b,d,x,N,B,z,O,I,A,y,S]),$=(0,h.useMemo)((()=>q?[...p,G()]:[G()]),[p,G,q]),W=(0,h.useCallback)((()=>{U("jetpack_myjetpack_product_card_dropdown_toggle",{product:n,state:M?"closed":"open"})}),[M,U,n]),Q=(0,h.useCallback)((()=>{L(!M),W()}),[M,W]);if((0,h.useEffect)((()=>{P($[0])}),[$]),(0,w.A)(T,(e=>{F.current.contains(e.target)||(L(!1),W())})),!t)return React.createElement(r.A,c()({},J,{size:"small",variant:"link",weight:"regular"}),/* translators: placeholder is product name. */ /* translators: placeholder is product name. */ (0,s.sprintf)(__("Learn about %s","jetpack-my-jetpack"),a));const K=q&&React.createElement("div",{ref:T,className:E.A["action-button-dropdown"]},React.createElement("ul",{className:E.A["dropdown-menu"]},[...p,G()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{P($[a]),L(!1),U("jetpack_myjetpack_product_card_dropdown_action_click",{product:n,action:e})},className:E.A["dropdown-item"]},React.createElement("div",{className:E.A["dropdown-item-label"]},e,t&&React.createElement(i.A,{icon:l.A,size:16})),e===V.label&&React.createElement("div",{className:E.A["active-action-checkmark"]},React.createElement(i.A,{icon:o.A,size:24,fill:"white"}))))))));return React.createElement(React.Fragment,null,React.createElement("div",{className:(0,m.A)(E.A["action-button"],q?E.A["has-additional-actions"]:null)},React.createElement(r.A,c()({},J,V),V.label),q&&React.createElement("button",{className:(0,m.A)(E.A["dropdown-chevron"],"primary"===V.variant?E.A.primary:E.A.secondary),onClick:Q,ref:F},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===V.variant?"white":"black"})),M&&K))}},5410:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(6072),c=a.n(n),r=a(7723),s=a(3022),i=a(1609),l=a(8837),o=a(8242),u=a(4526),m=a(2450),d=a(169),p=a(6710),h=a(7879),g=a(1887),v=a(2854),f=a(1208);const __=r.__,w=e=>{const t={isFetching:!1,isInstallingStandalone:!1,onActivate:()=>{},...e},{name:a,Description:n,status:r,onActivate:w,isFetching:E,isDataLoading:k,isInstallingStandalone:y,slug:A,additionalActions:b,primaryActionOverride:j,secondaryAction:R,children:_,onInstallStandalone:C,onMouseEnter:x,onMouseLeave:N,recommendation:z,customLoadTracks:S}=e,{ownedProducts:M}=(0,o.A$)("lifecycleStats"),L=M?.includes(A),V=r===l.hp.SITE_CONNECTION_ERROR||r===l.hp.USER_CONNECTION_ERROR,P=r===l.hp.ABSENT||r===l.hp.ABSENT_WITH_PLAN,H=r===l.hp.NEEDS_PLAN,I=(0,s.A)({[f.A.plugin_absent]:P,[f.A["is-purchase-required"]]:H,[f.A["is-link"]]:P,[f.A["has-error"]]:V}),{recordEvent:B}=(0,u.A)(),O=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_activate_click",{product:A}),w()}),[A,w,B]),T=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_add_click",{product:A})}),[A,B]),F=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_manage_click",{product:A})}),[A,B]),U=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_fixconnection_click",{product:A})}),[A,B]),D=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_learnmore_click",{product:A})}),[A,B]),q=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_install_standalone_plugin_click",{product:A}),C()}),[A,C,B]);return(0,i.useEffect)((()=>{B("jetpack_myjetpack_product_card_load",{product:A,status:r,...S})}),[B,A,r,S]),React.createElement(m.A,{title:a,className:(0,s.A)(f.A.container,I),headerRightContent:null,onMouseEnter:x,onMouseLeave:N},z&&React.createElement(p.A,{slug:A}),React.createElement(n,null),k?React.createElement("span",{className:f.A.loading},__("Loading…","jetpack-my-jetpack")):_,z?React.createElement(h.A,{slug:A}):React.createElement("div",{className:f.A.actions},React.createElement("div",{className:f.A.buttons},R&&R?.positionFirst&&React.createElement(g.A,R),React.createElement(d.A,c()({},t,{onActivate:O,onFixConnection:U,onManage:F,onAdd:T,onInstall:q,onLearnMore:D,className:f.A.button,additionalActions:b,primaryActionOverride:j,isOwned:L})),R&&!R?.positionFirst&&React.createElement(g.A,R)),React.createElement(v.A,{status:r,isFetching:E,isInstallingStandalone:y,isOwned:L})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7397),c=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=c.__,l=({slug:e})=>{const{discountPrice:t,fullPrice:a,currencyCode:c}=(0,i.A)(e);return React.createElement("div",{className:s.A.priceContainer},t&&React.createElement("span",{className:s.A.price},(0,n.Ay)(t,c)),React.createElement("span",{className:(0,r.A)(s.A.price,t&&s.A.discounted)},(0,n.Ay)(a,c)),React.createElement("span",{className:s.A.term},__("/month, billed yearly","jetpack-my-jetpack")))}},7879:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6072),c=a.n(n),r=a(1112),s=a(3022),i=a(1208),l=a(6147);const o=({slug:e})=>{const{secondaryAction:t,purchaseAction:a,isActivating:n}=(0,l.A)(e);return React.createElement("div",{className:i.A.actions},React.createElement("div",{className:(0,s.A)(i.A.buttons,i.A.upsell)},a&&React.createElement(r.A,c()({size:"small"},a),a.label),React.createElement(r.A,c()({size:"small",variant:"secondary",disabled:n},t),t.label)))}},1887:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(1112),c=a(7723);const __=c.__,r=e=>{const{shouldShowButton:t=()=>!0,...a}={size:"small",variant:"secondary",weight:"regular",label:__("Learn more","jetpack-my-jetpack"),...e};return!!t()&&React.createElement(n.A,a,a.label)}},2854:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7425),c=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=c.__,l=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:c})=>{const l=((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return __("Active","jetpack-my-jetpack");case s.hp.INACTIVE:case s.hp.MODULE_DISABLED:case s.hp.NEEDS_ACTIVATION:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.ABSENT:return __("Inactive","jetpack-my-jetpack");case s.hp.ABSENT_WITH_PLAN:return __("Needs Plugin","jetpack-my-jetpack");case s.hp.USER_CONNECTION_ERROR:return __("Needs user account","jetpack-my-jetpack");case s.hp.SITE_CONNECTION_ERROR:return __("Needs connection","jetpack-my-jetpack");case s.hp.NEEDS_PLAN:{const e=__("Needs plan","jetpack-my-jetpack"),a=__("Inactive","jetpack-my-jetpack");return t?e:a}default:return __("Inactive","jetpack-my-jetpack")}})(e,c),o=(0,r.A)(i.A.status,((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return i.A.active;case s.hp.ABSENT_WITH_PLAN:case s.hp.SITE_CONNECTION_ERROR:case s.hp.USER_CONNECTION_ERROR:return i.A.warning;case s.hp.INACTIVE:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.NEEDS_ACTIVATION:return i.A.inactive;case s.hp.NEEDS_PLAN:return t?i.A.warning:i.A.inactive;default:return i.A.inactive}})(e,c),{[i.A["is-fetching"]]:t||a});return React.createElement(n.Ay,{variant:"label",className:o},l)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(9384),c=a(7723),r=a(1609),s=a(8837),i=a(9935),l=a(4923),o=a(8242),u=a(4526),m=a(1870);const __=c.__,d=(e,t)=>{const a=e.status===s.hp.ACTIVE&&(e.isUpgradableByBundle.length||e.isUpgradable),n=e.pricingForUi.fullPrice||e.pricingForUi.tiers?.upgraded?.fullPrice;return e.status===s.hp.CAN_UPGRADE||a?n?{label:__("Upgrade","jetpack-my-jetpack"),onClick:t}:null:{label:__("Purchase","jetpack-my-jetpack"),onClick:t}},p=(e,t)=>{!e.isPluginActive||e.status===s.hp.NEEDS_ACTIVATION||(e.status,s.hp.NEEDS_PLAN);return{label:__("Learn more","jetpack-my-jetpack"),href:`#/add-${e.slug}`}},h=e=>{const{recordEvent:t}=(0,u.A)(),{detail:a}=(0,l.A)(e),{wpcomProductSlug:c,wpcomFreeProductSlug:s,...h}=(e=>{const{tiers:t,wpcomFreeProductSlug:a}=e;if(e.tiers){const{discountPrice:e,fullPrice:n,currencyCode:c,wpcomProductSlug:r,quantity:s}=t.upgraded;return{wpcomFreeProductSlug:a,wpcomProductSlug:s?`${r}:-q-${s}`:r,discountPrice:e&&e!==n?e/12:null,fullPrice:n/12,currencyCode:c}}const{discountPricePerMonth:n,fullPricePerMonth:c,currencyCode:r,isIntroductoryOffer:s,wpcomProductSlug:i}=e;return{wpcomFreeProductSlug:a,wpcomProductSlug:i,discountPrice:s?n:null,fullPrice:c,currencyCode:r}})(a.pricingForUi),{isUserConnected:g}=(0,m.A)(),{myJetpackUrl:v,siteSuffix:f}=(0,o.A$)(),{activate:w,isPending:E}=(0,i.A)(e),{run:k}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:c,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),{run:y}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:s,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),A=((0,r.useCallback)((()=>{s?y():w()}),[w,y,s]),(0,r.useCallback)((()=>{if(t("jetpack_myjetpack_evaluation_recommendations_checkout_click",{slug:e}),"crm"===e)return w(),void window.open("https://jetpackcrm.com/pricing/","_blank");k()}),[w,t,k,e]));return{secondaryAction:p(a),purchaseAction:d(a,A),isActivating:E,...h}}},8412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176);const i=e=>React.createElement(s.A,c()({slug:r.D_.JETPACK_AI,upgradeInInterstitial:!0},e))},9674:(e,t,a)=>{"use strict";a.d(t,{z:()=>h});var n=a(8412),c=a(6724),r=a(161),s=a(9838),i=a(3690),l=a(1686),o=a(4274),u=a(414),m=a(7769),d=a(4073),p=a(7631);const h={backup:r.A,protect:o.A,"anti-spam":c.A,boost:s.A,search:u.A,videopress:p.A,stats:d.A,crm:l.A,creator:i.A,social:m.A,ai:n.A,"jetpack-ai":n.A,extras:null,scan:null,security:null}},6724:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(6072),c=a.n(n),r=a(5739),s=a.n(r),i=a(1504),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.ANTI_SPAM},e));o.propTypes={admin:s().bool.isRequired};const u=o},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(6072),c=a.n(n),r=a(3924),s=a(7425),i=a(6427),l=a(7723),o=a(3022),u=a(2290),m=a(5739),d=a.n(m),p=a(1609),h=a(8837),g=a(1504),v=a(4923),f=a(280),w=a(8242),E=a(4526),k=a(6581),y=a(6176),A=a(3649);const __=l.__,_n=l._n,b=g.D_.BACKUP,j=e=>{const{detail:t}=(0,v.A)(b),{status:a}=t;return a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE?React.createElement(R,c()({slug:b},e)):React.createElement(y.A,c()({slug:b},e))},R=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),n=t?.last_rewindable_event,i=n?.published,o=t?.undo_backup_id,{recordEvent:m}=(0,E.A)(),{siteSuffix:d=""}=(0,w.A$)(),p={href:(0,r.A)("jetpack-backup-undo-cta",{path:o,site:d}),size:"small",variant:"primary",weight:"regular",label:__("Undo","jetpack-my-jetpack"),onClick:()=>{m("jetpack_myjetpack_backup_card_undo_click",{product:e.slug,undo_backup_id:o})},isExternalLink:!0};return React.createElement(y.A,c()({},e,{showMenu:!0,isDataLoading:a,Description:n?()=>React.createElement(s.Ay,{variant:"body-small",className:A.A.description},React.createElement("span",null,__("Activity Detected","jetpack-my-jetpack")),React.createElement("span",{className:A.A.time},(e=>{if(!e)return"";const t=new Date-new Date(e);if(t>0){const e=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),c=Math.floor(t%6e4/1e3);return e>0?(0,l.sprintf)( // translators: %s is the number of days since the last backup _n("%s day ago","%s days ago",e,"jetpack-my-jetpack"),e):a>0?(0,l.sprintf)( @@ -75,7 +75,7 @@ __("Wait for %d days to reset your limit, or upgrade now to a higher tier for ad // translators: %d is the number of days left in the month. __("Wait for %d days to reset your limit, per our fair usage policy.","jetpack-my-jetpack"),Math.floor((new Date(T?.nextStart||null)-new Date)/864e5)),{link:React.createElement("a",{href:(0,n.A)("ai-product-page-fair-usage-policy"),target:"_blank",rel:"noreferrer"})}),fe=U?ge:ve,we=__("Reach for More with Jetpack AI! Upgrade now for additional requests and keep your momentum going.","jetpack-my-jetpack"),Ee=(0,d.sprintf)( // translators: %s is the next upgrade value -__("Get %s requests","jetpack-my-jetpack"),O?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),ye=(0,R.A)("/add-jetpack-ai"),{recordEvent:Ae}=(0,A.A)(),be=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[Ae]),je=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:B?.slug||"",requests_count:I}),ye()}),[Ae,I,B,ye]),Re=(0,k.useCallback)((()=>N(!1)),[]);(0,k.useEffect)((()=>{Ae("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:B?.slug||"",requests_count:I})}),[I,B?.slug,Ae]),(0,k.useEffect)((()=>{N(se||ie)}),[se,ie]);const _e=React.createElement("span",{className:C.A["product-interstitial__new-badge"]},__("New","jetpack-my-jetpack")," ");return React.createElement(c.A,{showHeader:!1,showBackground:!0},React.createElement(r.A,{fluid:!0,horizontalSpacing:3,horizontalGap:2},React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__section-wrapper-wide"]},React.createElement(_.A,{onClick:e})),React.createElement("div",{className:(0,f.A)(C.A["product-interstitial__section-wrapper-wide"],C.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:C.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__hero-section"]},React.createElement("div",{className:C.A["product-interstitial__hero-content"]},React.createElement("h1",{className:C.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:C.A["product-interstitial__hero-sub-heading"]},__("Draft, transform, translate, and alter both new and existing content leveraging the capabilities of AI, inside the block editor.","jetpack-my-jetpack")),!G&&!q&&React.createElement(u.Button,{variant:"primary",onClick:je,className:C.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),G&&React.createElement(u.Button,{variant:"primary",onClick:be,href:K,className:C.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:C.A["product-interstitial__hero-side"]},W&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(l.KH,null),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},U?de:me),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},ue))),Q&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},I))),D&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},$)))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},E&&React.createElement("div",{className:C.A["product-interstitial__ai-notice"]},React.createElement(o.A,{actions:U?[React.createElement(u.Button,{isPrimary:!0,onClick:je},se?Ee:ke)]:{},onClose:Re,level:se?"warning":"error",title:se?pe:he},se?fe:we)),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__usage-videos"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/2OU6GCMs?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F07%2Fjetpack-ai-breve-poster.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:H}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},H,_e),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Simplify your writing with AI suggestions to fix long sentences and complex words and sound more confident. As you type, check your Reading grade score to make sure it suits your audience.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ae},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/GdXmtVtW?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-37.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:S}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use the AI block to generate content, or use our AI edit options in existing blocks. Use prompts or any of our recommended actions.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:v.A,href:ne},z?ce:re))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/HJCf8cXc?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fone-click-featured-images.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Create featured images to illustrate your content and make it more engaging with just one click. Use prompts to generate adjusted new featured images.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:Y},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/xjy2weWj?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F06%2Fjetpack-ai-title-optimization.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use AI to generate title suggestions based on your content, each with an explanation of why it works better. Save time and create engaging, SEO-friendly titles.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:X},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/OMI3zqid?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-38.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},V),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Quickly build forms using the Jetpack Forms block and AI. Use prompts to describe your form and AI will generate the elements in a few seconds.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ee},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/0vb0OJm7?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-39.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:P}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Get instant feedback on your post before publishing. AI will read your post and highlight opportunities to improve your publication.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:C.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Help us improving the accuracy of our results and feel free to give us ideas for future implementations and improvements.","jetpack-my-jetpack")," ",React.createElement(u.ExternalLink,{href:Z},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),l=a(8252);const __=c.__;function o(){const{userConnectionData:e}=(0,i.A)(),t=e?.currentUser?.wpcomUser?.display_name||e?.currentUser?.wpcomUser?.login||e?.currentUser?.username,{isLoading:a,data:c}=(0,s.A)({name:r.Ck,query:{path:r.tb}});if(a)return React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack"));const o=(0,l.M)(c);return React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:o,displayName:t}))}},9654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(7723),c=a(1113),r=a(5788),s=a(1871),i=a(6994),l=a(1609),o=a.n(l),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>o().createElement("div",{className:d.A["section-stats-highlights"]},o().createElement("h3",{className:d.A["section-title"]},o().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),o().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),o().createElement("div",{className:d.A["cards-list"]},o().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),o().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),o().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),o().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:i.A}),count:e?.comments,previousCount:t?.comments})))},3:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(6427),c=a(1113),r=a(6955),s=a(2510),i=a(3022),l=a(5739),o=a.n(l),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:l})=>{const o=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(o),v=Number.isFinite(o)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const a=e/t*100;return Math.abs(a)===1/0?100:Math.round(a)})(g,t):null;return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),l&&m().createElement("div",{className:p.A["stats-card-heading"]},l),m().createElement("div",{className:p.A["stats-card-count"]},m().createElement("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0},(0,d.A)(e)),null!==o?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:o<0,[p.A["stats-card-difference--negative"]]:o>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(o)},o<0&&m().createElement(c.A,{size:18,icon:r.A}),o>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},g>9999?(0,d.A)(g):(0,d.A)(g,{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:o().number,heading:o().node,icon:o().node,previousCount:o().number};const g=h},3336:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6427);const c=React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},1035:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(7723),c=a(1609),r=a(8837),s=a(1504),i=a(4923),l=a(280),o=a(8242),u=a(4526),m=a(1870),d=a(6176),p=a(9654);const __=n.__,h=()=>{const e="stats",{blogID:t}=(0,m.A)(),{detail:a}=(0,i.A)(e),{status:n}=a,h=!!(0,o.A$)("userIsAdmin"),{data:g}=(0,l.A)({name:s.MB,query:{path:(0,s.IM)(t)}}),v=g?.past_seven_days||{},f=g?.between_past_eight_and_fifteen_days||{},{recordEvent:w}=(0,u.A)(),E=(0,c.useCallback)((()=>{w("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[w]),k=(0,c.useCallback)((()=>!(n!==r.hp.CAN_UPGRADE)),[n]),y={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:E,shouldShowButton:k},A={[r.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[r.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[r.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return React.createElement(d.A,{admin:h,slug:e,primaryActionOverride:A,secondaryAction:y,showMenu:!0},React.createElement(p.A,{counts:v,previousCounts:f}))}},7881:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(8509),c=a(7425),r=a(5879),s=a(1112),i=a(4082),l=a(7723),o=a(1609),u=a(6007),m=a(1521),d=a(5350),p=a(4526),h=a(753),g=a(5225);const __=l.__,v=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:l}=(0,p.A)(),{setNotice:v,resetNotice:f}=(0,o.useContext)(u.g),w=__("Activate Jetpack in one click","jetpack-my-jetpack"),{refetch:E}=(0,d.A)(),k=(0,o.useCallback)((async()=>{l("jetpack_myjetpack_welcome_banner_connect_site_click"),t((e=>({...e,isLoading:!0}))),await e(),l("jetpack_myjetpack_welcome_banner_connect_site_success");try{await(0,h.A)(),(0,i.Pg)();const{variationName:e}=await(0,i.nQ)("jetpack_my_jetpack_evaluation_recommendations_202409");t((t=>({...t,variation:e})))}finally{f(),v(m.F,f),E(),t((e=>({...e,isLoading:!1})))}}),[e,t,l,E,f,v]);return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("Welcome to Jetpack!","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Unlock the power of your WordPress site with Jetpack, the complete toolkit for enhancing your site’s security, speed, and growth.","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack works behind the scenes to keep your site safe, make it lightning-fast, and to help you get more traffic.","jetpack-my-jetpack")),React.createElement(r.A,{agreeButtonLabel:w,mb:4}),React.createElement(s.A,{variant:"primary",disabled:a,isLoading:a,onClick:k},a?__("Activating…","jetpack-my-jetpack"):w)),React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,l=()=>React.createElement(n.A,{className:i.A["banner-evaluation"]},React.createElement("div",{className:i.A["banner-loader"]},React.createElement(r.Spinner,null)),React.createElement(c.Ay,{variant:"title-medium",mb:1},__("Finding the best Jetpack tools","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body-small"},__("We‘re crunching the numbers to find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")))},6259:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(8509),c=a(7425),r=a(1112),s=a(6427),i=a(7723),l=a(3022),o=a(1609),u=a(5225);const __=i.__,m={protect:__("Protect my site","jetpack-my-jetpack"),performance:__("Improve my site‘s performance","jetpack-my-jetpack"),audience:__("Grow my audience","jetpack-my-jetpack"),content:__("Create quality content","jetpack-my-jetpack"),unsure:__("I don‘t know","jetpack-my-jetpack")},d={protect:!1,performance:!1,audience:!1,content:!1,unsure:!1},p=({onSkipOnboarding:e,onSubmitEvaluation:t})=>{const[a,i]=(0,o.useState)(d),p=(0,o.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,o.useCallback)((()=>t(a)),[t,a]),g=Object.values(a).some((e=>e));return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:u.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("What would you like Jetpack to do?","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack does a lot. Select the items that are most important to you and we‘ll find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")),React.createElement("form",{className:u.A.form},Object.entries(m).map((([e,t])=>React.createElement(s.CheckboxControl,{key:e,className:u.A["form-checkbox"],label:t,checked:a[e],onChange:p(e)}))),React.createElement("div",{className:u.A["form-actions"]},React.createElement(r.A,{variant:"primary",text:__("See solutions","jetpack-my-jetpack"),onClick:h,disabled:!g}),React.createElement(r.A,{variant:"link",className:u.A["form-link-action"],text:__("Skip onboarding","jetpack-my-jetpack"),onClick:e})))),React.createElement(n.A,{sm:6,md:8,lg:6,className:(0,l.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),l=a(3022),o=a(1609),u=a(3804),m=a(4393),d=a(9812),p=a(4526),h=a(1870),g=a(2450),v=a(7881),f=a(9230),w=a(6259),E=a(5225);const __=s.__,k=({children:e})=>{const{recordEvent:t}=(0,p.A)(),{dismissWelcomeBanner:a}=(0,d.A)(),{recommendedModules:s,submitEvaluation:k,saveEvaluationResult:y}=(0,u.A)(),{siteIsRegistered:A,siteIsRegistering:b,isUserConnected:j,isSiteConnected:R,handleRegisterSite:_}=(0,h.A)({skipUserConnection:!0}),[C,x]=(0,o.useState)(!1),[N,z]=(0,o.useState)(""),[S,M]=(0,o.useState)({isLoading:!1,variation:"control"}),L=(0,o.useMemo)((()=>!A||S.isLoading?"connection":C?"evaluation-processing":s||"treatment"!==S.variation&&(0,m.A)()?"evaluation":null),[C,s,A,S.isLoading,S.variation]);(0,o.useEffect)((()=>{N!==L&&(t("jetpack_myjetpack_welcome_banner_step_view",{current_step:L}),z(L))}),[L,N,t]);const V=(0,o.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:L,is_user_connected:j,is_site_connected:R}),a()}),[t,L,j,R,a]),P=(0,o.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),a()}),[a,t]),H=(0,o.useCallback)((async e=>{const n=Object.keys(e).filter((t=>e[t]));x(!0),t("jetpack_myjetpack_welcome_banner_evaluation_submit",{goals:n});try{const e=await k(n);await y(e),a()}catch(e){x(!1)}}),[a,t,y,k]);return(0,o.useEffect)((()=>{L||a()}),[L,a]),L?React.createElement(n.A,{horizontalSpacing:6,horizontalGap:2},e&&React.createElement(c.A,null,e),React.createElement(c.A,{lg:12,className:E.A.banner},React.createElement(g.O,{className:(0,l.A)(E.A["banner-card"],"connection"===L&&E.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:E.A["banner-content"]},"connection"===L&&React.createElement(v.A,{onActivateSite:_,onUpdateWelcomeFlowExperiment:M,isActivating:b||S.isLoading}),"evaluation"===L&&React.createElement(w.A,{onSkipOnboarding:P,onSubmitEvaluation:H}),"evaluation-processing"===L&&React.createElement(f.A,null))),React.createElement(r.A,{className:E.A.dismiss,variant:"secondary","aria-label":__("Don’t show the welcome message again","jetpack-my-jetpack"),size:"small",icon:i.A,disabled:b,onClick:V}))):null}},8837:(e,t,a)=>{"use strict";a.d(t,{ED:()=>c,NM:()=>s,OM:()=>n,hp:()=>i,mk:()=>r});const n="my-jetpack-my-plans-manage",c="my-jetpack-my-plans-purchase",r="my-jetpack-my-plans-purchase-no-site",s={Home:"/",Connection:"/connection",AddAkismet:"/add-akismet",AddAntiSpam:"/add-anti-spam",AddBackup:"/add-backup",AddBoost:"/add-boost",AddCRM:"/add-crm",AddCreator:"/add-creator",AddJetpackAI:"/add-jetpack-ai",AddExtras:"/add-extras",AddProtect:"/add-protect/:feature?",AddScan:"/add-scan",AddSocial:"/add-social",AddSearch:"/add-search",AddVideoPress:"/add-videopress",AddStats:"/add-stats",AddLicense:"/add-license",RedeemToken:"/redeem-token"},i={ACTIVE:"active",INACTIVE:"inactive",MODULE_DISABLED:"module_disabled",SITE_CONNECTION_ERROR:"site_connection_error",ABSENT:"plugin_absent",ABSENT_WITH_PLAN:"plugin_absent_with_plan",NEEDS_PLAN:"needs_plan",NEEDS_ACTIVATION:"needs_activation",NEEDS_FIRST_SITE_CONNECTION:"needs_first_site_connection",USER_CONNECTION_ERROR:"user_connection_error",CAN_UPGRADE:"can_upgrade"}},3537:(e,t,a)=>{"use strict";a.d(t,{EX:()=>c,PG:()=>n,pv:()=>r});const n=100,c=200,r=300},6007:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,g:()=>r});var n=a(1609);const c={message:"",title:null,options:{level:"info",priority:0}},r=(0,n.createContext)({currentNotice:c,setNotice:null,resetNotice:null}),s=({children:e})=>{const[t,a]=(0,n.useState)(c),s=(0,n.useCallback)((()=>{a(c)}),[]),i=(0,n.useCallback)(((e,n)=>{if(!t.message||e.options.priority>t.options.priority){const t={...e.options,onClose:e.options?.onClose||(e.options?.hideCloseButton?void 0:n)};s(),a({...e,options:t})}}),[t.message,t.options.priority,s]);return React.createElement(r.Provider,{value:{currentNotice:t,setNotice:i,resetNotice:s}},e)}},1521:(e,t,a)=>{"use strict";a.d(t,{F:()=>r});var n=a(7723),c=a(3537);const r={message:(0,n.__)("Your site has been successfully connected.","jetpack-my-jetpack"),options:{id:"site-connection-success-notice",level:"success",actions:[],priority:c.pv,hideCloseButton:!1}}},6077:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,_:()=>r});var n=a(1609);const c=(0,n.createContext)({state:{},setState:()=>{}}),r=(e,t)=>{const{state:a,setState:r}=(0,n.useContext)(c),{[e]:s=t}=a;(0,n.useEffect)((()=>{void 0===a[e]&&r((a=>({...a,[e]:t})))}),[t,e,r,a]);return[s,(0,n.useCallback)((t=>{r((a=>({...a,[e]:t})))}),[e,r])]},s=({children:e})=>{const[t,a]=(0,n.useState)({});return React.createElement(c.Provider,{value:{state:t,setState:a}},e)}},1504:(e,t,a)=>{"use strict";a.d(t,{AD:()=>m,Ck:()=>_,DB:()=>r,D_:()=>z,Dz:()=>A,FW:()=>f,IM:()=>h,L6:()=>d,MB:()=>j,MD:()=>x,Md:()=>E,O2:()=>l,PM:()=>u,QO:()=>R,Rx:()=>v,Sm:()=>s,_:()=>k,dB:()=>C,gw:()=>b,jE:()=>w,jf:()=>o,no:()=>p,nw:()=>y,pN:()=>N,rR:()=>i,tb:()=>c,xF:()=>g});const n="my-jetpack/v1",c=`${n}/site/purchases`,r=`${n}/site/backup/undo-event`,s=`${n}/site/backup/count-items`,i=`${n}/chat/availability`,l=`${n}/chat/authentication`,o=`${n}/site/products`,u=`${n}/site/products-ownership`,m=`${n}/site/dismiss-welcome-banner`,d=`${n}/site/recommendations/evaluation`,p=`${n}/site/recommendations/evaluation/result`,h=e=>`jetpack/v4/stats-app/sites/${e}/stats/highlights`,g="product",v="product ownership",f="activate product",w="install product",E="available licenses",k="chat availability",y="chat authentication",A="backup history",b="backup stats",j="stats counts",R="dismiss welcome banner",_="purchases",C="evaluate site recommendations",x="save site evaluation result",N="remove site evaluation result",z={ANTI_SPAM:"anti-spam",BACKUP:"backup",BOOST:"boost",CRM:"crm",CREATOR:"creator",EXTRAS:"extras",JETPACK_AI:"jetpack-ai",SCAN:"scan",SEARCH:"search",SOCIAL:"social",SECURITY:"security",PROTECT:"protect",VIDEOPRESS:"videopress",STATS:"stats"}},3804:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(7723),c=a(1609),r=a(6077),s=a(4526),i=a(1504),l=a(929),o=a(8242),u=a(4393),m=a(9812);const __=n.__,d=()=>{const{recordEvent:e}=(0,s.A)(),{isWelcomeBannerVisible:t,showWelcomeBanner:a}=(0,m.A)(),[n,d]=(0,r._)("recommendedModules",(0,o.A$)("recommendedModules").modules),p=(0,c.useMemo)((()=>{const{ownedProducts:e=[]}=(0,o.A$)("lifecycleStats");return n?.filter((t=>!e.includes(t))).slice(0,3)}),[n]),h=(0,c.useMemo)((()=>{const{dismissed:e}=(0,o.A$)("recommendedModules");return!e&&!t&&(0,u.A)()}),[t]),[g,v]=(0,r._)("recommendedModulesVisible",h&&!!p?.length),{mutate:f}=(0,l.A)({name:i.dB,query:{path:i.L6,method:"GET"},errorMessage:__("Failed to evaluate site recommendations","jetpack-my-jetpack")}),{mutate:w}=(0,l.A)({name:i.MD,query:{path:i.no,method:"POST"},errorMessage:__("Failed to save evaluation results. Please try again","jetpack-my-jetpack")}),{mutate:E}=(0,l.A)({name:i.pN,query:{path:i.no,method:"DELETE"},errorMessage:__("Failed to hide evaluation results. Please try again","jetpack-my-jetpack")});return{submitEvaluation:(0,c.useCallback)((e=>new Promise(((t,a)=>{f({queryParams:{goals:e}},{onSuccess:t,onError:a})}))),[f]),saveEvaluationResult:(0,c.useCallback)((e=>new Promise(((t,a)=>{w({data:{recommendations:e}},{onSuccess:e=>{d(e),v(!0),t()},onError:a})}))),[w,v,d]),removeEvaluationResult:(0,c.useCallback)((()=>{E({},{onSuccess:()=>{v(!1),e("jetpack_myjetpack_evaluation_recommendations_dismiss_click")}})}),[E,e,v]),redoEvaluation:(0,c.useCallback)((()=>{v(!1),a(),e("jetpack_myjetpack_evaluation_recommendations_redo_click")}),[e,v,a]),recommendedModules:p,isSectionVisible:g}}},2447:(e,t,a)=>{"use strict";a.d(t,{M:()=>o});var n=a(7723),c=a(1609),r=a(3537),s=a(6007),i=a(1504);const __=n.__,l=[i.Ck,i.FW,i.jE],o=({infoName:e,isError:t,overrideMessage:a})=>{const{setNotice:i}=(0,c.useContext)(s.g),o=a??(0,n.sprintf)( +__("Get %s requests","jetpack-my-jetpack"),O?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),ye=(0,R.A)("/add-jetpack-ai"),{recordEvent:Ae}=(0,A.A)(),be=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[Ae]),je=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:B?.slug||"",requests_count:I}),ye()}),[Ae,I,B,ye]),Re=(0,k.useCallback)((()=>N(!1)),[]);(0,k.useEffect)((()=>{Ae("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:B?.slug||"",requests_count:I})}),[I,B?.slug,Ae]),(0,k.useEffect)((()=>{N(se||ie)}),[se,ie]);const _e=React.createElement("span",{className:C.A["product-interstitial__new-badge"]},__("New","jetpack-my-jetpack")," ");return React.createElement(c.A,{showHeader:!1,showBackground:!0},React.createElement(r.A,{fluid:!0,horizontalSpacing:3,horizontalGap:2},React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__section-wrapper-wide"]},React.createElement(_.A,{onClick:e})),React.createElement("div",{className:(0,f.A)(C.A["product-interstitial__section-wrapper-wide"],C.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:C.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__hero-section"]},React.createElement("div",{className:C.A["product-interstitial__hero-content"]},React.createElement("h1",{className:C.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:C.A["product-interstitial__hero-sub-heading"]},__("Draft, transform, translate, and alter both new and existing content leveraging the capabilities of AI, inside the block editor.","jetpack-my-jetpack")),!G&&!q&&React.createElement(u.Button,{variant:"primary",onClick:je,className:C.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),G&&React.createElement(u.Button,{variant:"primary",onClick:be,href:K,className:C.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:C.A["product-interstitial__hero-side"]},W&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(l.KH,null),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},U?de:me),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},ue))),Q&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},I))),D&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},$)))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},E&&React.createElement("div",{className:C.A["product-interstitial__ai-notice"]},React.createElement(o.A,{actions:U?[React.createElement(u.Button,{isPrimary:!0,onClick:je},se?Ee:ke)]:{},onClose:Re,level:se?"warning":"error",title:se?pe:he},se?fe:we)),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__usage-videos"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/2OU6GCMs?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F07%2Fjetpack-ai-breve-poster.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:H}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},H,_e),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Simplify your writing with AI suggestions to fix long sentences and complex words and sound more confident. As you type, check your Reading grade score to make sure it suits your audience.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ae},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/GdXmtVtW?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-37.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:S}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use the AI block to generate content, or use our AI edit options in existing blocks. Use prompts or any of our recommended actions.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:v.A,href:ne},z?ce:re))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/HJCf8cXc?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fone-click-featured-images.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Create featured images to illustrate your content and make it more engaging with just one click. Use prompts to generate adjusted new featured images.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:Y},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/xjy2weWj?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F06%2Fjetpack-ai-title-optimization.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use AI to generate title suggestions based on your content, each with an explanation of why it works better. Save time and create engaging, SEO-friendly titles.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:X},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/OMI3zqid?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-38.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},V),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Quickly build forms using the Jetpack Forms block and AI. Use prompts to describe your form and AI will generate the elements in a few seconds.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ee},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/0vb0OJm7?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-39.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:P}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Get instant feedback on your post before publishing. AI will read your post and highlight opportunities to improve your publication.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:C.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Help us improving the accuracy of our results and feel free to give us ideas for future implementations and improvements.","jetpack-my-jetpack")," ",React.createElement(u.ExternalLink,{href:Z},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),l=a(8252);const __=c.__;function o(){const{userConnectionData:e,isSiteConnected:t}=(0,i.A)(),a=e?.currentUser?.wpcomUser?.display_name||e?.currentUser?.wpcomUser?.login||e?.currentUser?.username,{isLoading:c,data:o}=(0,s.A)({name:r.Ck,query:{path:r.tb},options:{enabled:t}});if(c)return React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack"));const u=(0,l.M)(o);return React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:u,displayName:a}))}},9654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(7723),c=a(1113),r=a(5788),s=a(1871),i=a(6994),l=a(1609),o=a.n(l),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>o().createElement("div",{className:d.A["section-stats-highlights"]},o().createElement("h3",{className:d.A["section-title"]},o().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),o().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),o().createElement("div",{className:d.A["cards-list"]},o().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),o().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),o().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),o().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:i.A}),count:e?.comments,previousCount:t?.comments})))},3:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(6427),c=a(1113),r=a(6955),s=a(2510),i=a(3022),l=a(5739),o=a.n(l),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:l})=>{const o=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(o),v=Number.isFinite(o)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const a=e/t*100;return Math.abs(a)===1/0?100:Math.round(a)})(g,t):null;return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),l&&m().createElement("div",{className:p.A["stats-card-heading"]},l),m().createElement("div",{className:p.A["stats-card-count"]},m().createElement("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0},(0,d.A)(e)),null!==o?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:o<0,[p.A["stats-card-difference--negative"]]:o>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(o)},o<0&&m().createElement(c.A,{size:18,icon:r.A}),o>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},g>9999?(0,d.A)(g):(0,d.A)(g,{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:o().number,heading:o().node,icon:o().node,previousCount:o().number};const g=h},3336:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6427);const c=React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},1035:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(7723),c=a(1609),r=a(8837),s=a(1504),i=a(4923),l=a(280),o=a(8242),u=a(4526),m=a(1870),d=a(6176),p=a(9654);const __=n.__,h=()=>{const e="stats",{blogID:t,isSiteConnected:a}=(0,m.A)(),{detail:n}=(0,i.A)(e),{status:h}=n,g=!!(0,o.A$)("userIsAdmin"),{data:v}=(0,l.A)({name:s.MB,query:{path:(0,s.IM)(t)},options:{enabled:a}}),f=v?.past_seven_days||{},w=v?.between_past_eight_and_fifteen_days||{},{recordEvent:E}=(0,u.A)(),k=(0,c.useCallback)((()=>{E("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[E]),y=(0,c.useCallback)((()=>!(h!==r.hp.CAN_UPGRADE)),[h]),A={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:y},b={[r.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[r.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[r.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return React.createElement(d.A,{admin:g,slug:e,primaryActionOverride:b,secondaryAction:A,showMenu:!0},React.createElement(p.A,{counts:f,previousCounts:w}))}},7881:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(8509),c=a(7425),r=a(5879),s=a(1112),i=a(4082),l=a(7723),o=a(1609),u=a(6007),m=a(1521),d=a(5350),p=a(4526),h=a(753),g=a(5225);const __=l.__,v=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:l}=(0,p.A)(),{setNotice:v,resetNotice:f}=(0,o.useContext)(u.g),w=__("Activate Jetpack in one click","jetpack-my-jetpack"),{refetch:E}=(0,d.A)(),k=(0,o.useCallback)((async()=>{l("jetpack_myjetpack_welcome_banner_connect_site_click"),t((e=>({...e,isLoading:!0}))),await e(),l("jetpack_myjetpack_welcome_banner_connect_site_success");try{await(0,h.A)(),(0,i.Pg)();const{variationName:e}=await(0,i.nQ)("jetpack_my_jetpack_evaluation_recommendations_202409");t((t=>({...t,variation:e})))}finally{f(),v(m.F,f),E(),t((e=>({...e,isLoading:!1})))}}),[e,t,l,E,f,v]);return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("Welcome to Jetpack!","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Unlock the power of your WordPress site with Jetpack, the complete toolkit for enhancing your site’s security, speed, and growth.","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack works behind the scenes to keep your site safe, make it lightning-fast, and to help you get more traffic.","jetpack-my-jetpack")),React.createElement(r.A,{agreeButtonLabel:w,mb:4}),React.createElement(s.A,{variant:"primary",disabled:a,isLoading:a,onClick:k},a?__("Activating…","jetpack-my-jetpack"):w)),React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,l=()=>React.createElement(n.A,{className:i.A["banner-evaluation"]},React.createElement("div",{className:i.A["banner-loader"]},React.createElement(r.Spinner,null)),React.createElement(c.Ay,{variant:"title-medium",mb:1},__("Finding the best Jetpack tools","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body-small"},__("We‘re crunching the numbers to find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")))},6259:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(8509),c=a(7425),r=a(1112),s=a(6427),i=a(7723),l=a(3022),o=a(1609),u=a(5225);const __=i.__,m={protect:__("Protect my site","jetpack-my-jetpack"),performance:__("Improve my site‘s performance","jetpack-my-jetpack"),audience:__("Grow my audience","jetpack-my-jetpack"),content:__("Create quality content","jetpack-my-jetpack"),unsure:__("I don‘t know","jetpack-my-jetpack")},d={protect:!1,performance:!1,audience:!1,content:!1,unsure:!1},p=({onSkipOnboarding:e,onSubmitEvaluation:t})=>{const[a,i]=(0,o.useState)(d),p=(0,o.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,o.useCallback)((()=>t(a)),[t,a]),g=Object.values(a).some((e=>e));return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:u.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("What would you like Jetpack to do?","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack does a lot. Select the items that are most important to you and we‘ll find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")),React.createElement("form",{className:u.A.form},Object.entries(m).map((([e,t])=>React.createElement(s.CheckboxControl,{key:e,className:u.A["form-checkbox"],label:t,checked:a[e],onChange:p(e)}))),React.createElement("div",{className:u.A["form-actions"]},React.createElement(r.A,{variant:"primary",text:__("See solutions","jetpack-my-jetpack"),onClick:h,disabled:!g}),React.createElement(r.A,{variant:"link",className:u.A["form-link-action"],text:__("Skip onboarding","jetpack-my-jetpack"),onClick:e})))),React.createElement(n.A,{sm:6,md:8,lg:6,className:(0,l.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),l=a(3022),o=a(1609),u=a(3804),m=a(4393),d=a(9812),p=a(4526),h=a(1870),g=a(2450),v=a(7881),f=a(9230),w=a(6259),E=a(5225);const __=s.__,k=({children:e})=>{const{recordEvent:t}=(0,p.A)(),{dismissWelcomeBanner:a}=(0,d.A)(),{recommendedModules:s,submitEvaluation:k,saveEvaluationResult:y}=(0,u.A)(),{siteIsRegistered:A,siteIsRegistering:b,isUserConnected:j,isSiteConnected:R,handleRegisterSite:_}=(0,h.A)({skipUserConnection:!0}),[C,x]=(0,o.useState)(!1),[N,z]=(0,o.useState)(""),[S,M]=(0,o.useState)({isLoading:!1,variation:"control"}),L=(0,o.useMemo)((()=>!A||S.isLoading?"connection":C?"evaluation-processing":s||"treatment"!==S.variation&&(0,m.A)()?"evaluation":null),[C,s,A,S.isLoading,S.variation]);(0,o.useEffect)((()=>{N!==L&&(t("jetpack_myjetpack_welcome_banner_step_view",{current_step:L}),z(L))}),[L,N,t]);const V=(0,o.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:L,is_user_connected:j,is_site_connected:R}),a()}),[t,L,j,R,a]),P=(0,o.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),a()}),[a,t]),H=(0,o.useCallback)((async e=>{const n=Object.keys(e).filter((t=>e[t]));x(!0),t("jetpack_myjetpack_welcome_banner_evaluation_submit",{goals:n});try{const e=await k(n);await y(e),a()}catch(e){x(!1)}}),[a,t,y,k]);return(0,o.useEffect)((()=>{L||a()}),[L,a]),L?React.createElement(n.A,{horizontalSpacing:6,horizontalGap:2},e&&React.createElement(c.A,null,e),React.createElement(c.A,{lg:12,className:E.A.banner},React.createElement(g.O,{className:(0,l.A)(E.A["banner-card"],"connection"===L&&E.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:E.A["banner-content"]},"connection"===L&&React.createElement(v.A,{onActivateSite:_,onUpdateWelcomeFlowExperiment:M,isActivating:b||S.isLoading}),"evaluation"===L&&React.createElement(w.A,{onSkipOnboarding:P,onSubmitEvaluation:H}),"evaluation-processing"===L&&React.createElement(f.A,null))),React.createElement(r.A,{className:E.A.dismiss,variant:"secondary","aria-label":__("Don’t show the welcome message again","jetpack-my-jetpack"),size:"small",icon:i.A,disabled:b,onClick:V}))):null}},8837:(e,t,a)=>{"use strict";a.d(t,{ED:()=>c,NM:()=>s,OM:()=>n,hp:()=>i,mk:()=>r});const n="my-jetpack-my-plans-manage",c="my-jetpack-my-plans-purchase",r="my-jetpack-my-plans-purchase-no-site",s={Home:"/",Connection:"/connection",AddAkismet:"/add-akismet",AddAntiSpam:"/add-anti-spam",AddBackup:"/add-backup",AddBoost:"/add-boost",AddCRM:"/add-crm",AddCreator:"/add-creator",AddJetpackAI:"/add-jetpack-ai",AddExtras:"/add-extras",AddProtect:"/add-protect/:feature?",AddScan:"/add-scan",AddSocial:"/add-social",AddSearch:"/add-search",AddVideoPress:"/add-videopress",AddStats:"/add-stats",AddLicense:"/add-license",RedeemToken:"/redeem-token"},i={ACTIVE:"active",INACTIVE:"inactive",MODULE_DISABLED:"module_disabled",SITE_CONNECTION_ERROR:"site_connection_error",ABSENT:"plugin_absent",ABSENT_WITH_PLAN:"plugin_absent_with_plan",NEEDS_PLAN:"needs_plan",NEEDS_ACTIVATION:"needs_activation",NEEDS_FIRST_SITE_CONNECTION:"needs_first_site_connection",USER_CONNECTION_ERROR:"user_connection_error",CAN_UPGRADE:"can_upgrade"}},3537:(e,t,a)=>{"use strict";a.d(t,{EX:()=>c,PG:()=>n,pv:()=>r});const n=100,c=200,r=300},6007:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,g:()=>r});var n=a(1609);const c={message:"",title:null,options:{level:"info",priority:0}},r=(0,n.createContext)({currentNotice:c,setNotice:null,resetNotice:null}),s=({children:e})=>{const[t,a]=(0,n.useState)(c),s=(0,n.useCallback)((()=>{a(c)}),[]),i=(0,n.useCallback)(((e,n)=>{if(!t.message||e.options.priority>t.options.priority){const t={...e.options,onClose:e.options?.onClose||(e.options?.hideCloseButton?void 0:n)};s(),a({...e,options:t})}}),[t.message,t.options.priority,s]);return React.createElement(r.Provider,{value:{currentNotice:t,setNotice:i,resetNotice:s}},e)}},1521:(e,t,a)=>{"use strict";a.d(t,{F:()=>r});var n=a(7723),c=a(3537);const r={message:(0,n.__)("Your site has been successfully connected.","jetpack-my-jetpack"),options:{id:"site-connection-success-notice",level:"success",actions:[],priority:c.pv,hideCloseButton:!1}}},6077:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,_:()=>r});var n=a(1609);const c=(0,n.createContext)({state:{},setState:()=>{}}),r=(e,t)=>{const{state:a,setState:r}=(0,n.useContext)(c),{[e]:s=t}=a;(0,n.useEffect)((()=>{void 0===a[e]&&r((a=>({...a,[e]:t})))}),[t,e,r,a]);return[s,(0,n.useCallback)((t=>{r((a=>({...a,[e]:t})))}),[e,r])]},s=({children:e})=>{const[t,a]=(0,n.useState)({});return React.createElement(c.Provider,{value:{state:t,setState:a}},e)}},1504:(e,t,a)=>{"use strict";a.d(t,{AD:()=>m,Ck:()=>_,DB:()=>r,D_:()=>z,Dz:()=>A,FW:()=>f,IM:()=>h,L6:()=>d,MB:()=>j,MD:()=>x,Md:()=>E,O2:()=>l,PM:()=>u,QO:()=>R,Rx:()=>v,Sm:()=>s,_:()=>k,dB:()=>C,gw:()=>b,jE:()=>w,jf:()=>o,no:()=>p,nw:()=>y,pN:()=>N,rR:()=>i,tb:()=>c,xF:()=>g});const n="my-jetpack/v1",c=`${n}/site/purchases`,r=`${n}/site/backup/undo-event`,s=`${n}/site/backup/count-items`,i=`${n}/chat/availability`,l=`${n}/chat/authentication`,o=`${n}/site/products`,u=`${n}/site/products-ownership`,m=`${n}/site/dismiss-welcome-banner`,d=`${n}/site/recommendations/evaluation`,p=`${n}/site/recommendations/evaluation/result`,h=e=>`jetpack/v4/stats-app/sites/${e}/stats/highlights`,g="product",v="product ownership",f="activate product",w="install product",E="available licenses",k="chat availability",y="chat authentication",A="backup history",b="backup stats",j="stats counts",R="dismiss welcome banner",_="purchases",C="evaluate site recommendations",x="save site evaluation result",N="remove site evaluation result",z={ANTI_SPAM:"anti-spam",BACKUP:"backup",BOOST:"boost",CRM:"crm",CREATOR:"creator",EXTRAS:"extras",JETPACK_AI:"jetpack-ai",SCAN:"scan",SEARCH:"search",SOCIAL:"social",SECURITY:"security",PROTECT:"protect",VIDEOPRESS:"videopress",STATS:"stats"}},3804:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(7723),c=a(1609),r=a(6077),s=a(4526),i=a(1504),l=a(929),o=a(8242),u=a(4393),m=a(9812);const __=n.__,d=()=>{const{recordEvent:e}=(0,s.A)(),{isWelcomeBannerVisible:t,showWelcomeBanner:a}=(0,m.A)(),[n,d]=(0,r._)("recommendedModules",(0,o.A$)("recommendedModules").modules),p=(0,c.useMemo)((()=>{const{ownedProducts:e=[]}=(0,o.A$)("lifecycleStats");return n?.filter((t=>!e.includes(t))).slice(0,3)}),[n]),h=(0,c.useMemo)((()=>{const{dismissed:e}=(0,o.A$)("recommendedModules");return!e&&!t&&(0,u.A)()}),[t]),[g,v]=(0,r._)("recommendedModulesVisible",h&&!!p?.length),{mutate:f}=(0,l.A)({name:i.dB,query:{path:i.L6,method:"GET"},errorMessage:__("Failed to evaluate site recommendations","jetpack-my-jetpack")}),{mutate:w}=(0,l.A)({name:i.MD,query:{path:i.no,method:"POST"},errorMessage:__("Failed to save evaluation results. Please try again","jetpack-my-jetpack")}),{mutate:E}=(0,l.A)({name:i.pN,query:{path:i.no,method:"DELETE"},errorMessage:__("Failed to hide evaluation results. Please try again","jetpack-my-jetpack")});return{submitEvaluation:(0,c.useCallback)((e=>new Promise(((t,a)=>{f({queryParams:{goals:e}},{onSuccess:t,onError:a})}))),[f]),saveEvaluationResult:(0,c.useCallback)((e=>new Promise(((t,a)=>{w({data:{recommendations:e}},{onSuccess:e=>{d(e),v(!0),t()},onError:a})}))),[w,v,d]),removeEvaluationResult:(0,c.useCallback)((()=>{E({},{onSuccess:()=>{v(!1),e("jetpack_myjetpack_evaluation_recommendations_dismiss_click")}})}),[E,e,v]),redoEvaluation:(0,c.useCallback)((()=>{v(!1),a(),e("jetpack_myjetpack_evaluation_recommendations_redo_click")}),[e,v,a]),recommendedModules:p,isSectionVisible:g}}},2447:(e,t,a)=>{"use strict";a.d(t,{M:()=>o});var n=a(7723),c=a(1609),r=a(3537),s=a(6007),i=a(1504);const __=n.__,l=[i.Ck,i.FW,i.jE],o=({infoName:e,isError:t,overrideMessage:a})=>{const{setNotice:i}=(0,c.useContext)(s.g),o=a??(0,n.sprintf)( // translators: %s is the name of the information being fetched, e.g. "site purchases". __("There was an error fetching your %s information. Check your site connectivity and try again.","jetpack-my-jetpack"),e);(0,c.useEffect)((()=>{t&&l.includes(e)&&i({message:o,options:{id:"fetching-error-notice",level:"error",priority:r.PG}})}),[o,i,t,e])}},9935:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(7723),c=a(4526),r=a(1504),s=a(929),i=a(8242),l=a(4923);const __=n.__,o=e=>{const{detail:t,refetch:a}=(0,l.A)(e),{recordEvent:o}=(0,c.A)(),{mutate:u,isPending:m,isSuccess:d}=(0,s.A)({name:r.FW,query:{path:`${r.jf}/${e}`,method:"POST"},options:{onSuccess:()=>{(e=>{const{standalonePluginInfo:t,isPluginActive:a}=e;return t?.hasStandalonePlugin?t?.isStandaloneActive:a})(t)||(o("jetpack_myjetpack_product_activated",{product:e}),(e=>{const{items:t}=(0,i.A$)("products");t[e]?.standalone_plugin_info.has_standalone_plugin&&(window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_active=!0,window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_installed=!0)})(e)),a()}},errorMessage:(0,n.sprintf)( // translators: %$1s: Jetpack Product name diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php b/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php index f56f2b96..c783bd2e 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php @@ -42,7 +42,7 @@ class Initializer { * * @var string */ - const PACKAGE_VERSION = '4.35.8'; + const PACKAGE_VERSION = '4.35.9-alpha'; /** * HTML container ID for the IDC screen on My Jetpack page. diff --git a/jetpack_vendor/i18n-map.php b/jetpack_vendor/i18n-map.php index 4da1fe22..6c3108a9 100644 --- a/jetpack_vendor/i18n-map.php +++ b/jetpack_vendor/i18n-map.php @@ -50,7 +50,7 @@ ), 'jetpack-my-jetpack' => array( 'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack', - 'ver' => '4.35.8', + 'ver' => '4.35.9-alpha1727353487', ), 'jetpack-password-checker' => array( 'path' => 'jetpack_vendor/automattic/jetpack-password-checker', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index c53ac102..c388eb2c 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -7,7 +7,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats", - "reference": "b9fa20e5c29340b1c7f9a2a814f561aac199e497" + "reference": "0beec1f0ac6ad3391000078ba0b5c576cf3aea12" }, "require": { "php": ">=7.0" @@ -60,7 +60,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "b61b98120ed8a18bff283e5f9e2502ce0803995e" + "reference": "15102899529f1c60ed526e29999c384514492130" }, "require": { "php": ">=7.0" @@ -125,7 +125,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "54787743a173c6abea1c9f8bb630bca2cadd03ea" + "reference": "6cade3a5a528b1eec47b3f94c8f7a43bf340e163" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -194,7 +194,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-autoloader", - "reference": "b44ed20b9e00c7b680b3b13aa453d2b39c2424c8" + "reference": "e10428aae140ffb58bcf1c697223ed85e6a59312" }, "require": { "composer-plugin-api": "^1.1 || ^2.0", @@ -261,7 +261,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-backup", - "reference": "b144df52916ef19015fc3e7fcd0795fd2b2fc1d7" + "reference": "148ab38909676690a46f86e18b7eb93d772e9583" }, "require": { "automattic/jetpack-admin-ui": "^0.4.5", @@ -271,7 +271,7 @@ "automattic/jetpack-composer-plugin": "^2.0.3", "automattic/jetpack-config": "^2.0.4", "automattic/jetpack-connection": "^5.1.0", - "automattic/jetpack-my-jetpack": "^4.35.8", + "automattic/jetpack-my-jetpack": "^4.35.9-alpha", "automattic/jetpack-status": "^4.0.2", "automattic/jetpack-sync": "^3.13.1", "php": ">=7.0" @@ -351,7 +351,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-backup-helper-script-manager", - "reference": "80747f2a06a953d3b3e504d0c4d253f48a6b11d3" + "reference": "eac35fe7116c3f2996ca1c91965627a428aeead5" }, "require": { "php": ">=7.0" @@ -411,7 +411,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-core", - "reference": "e00806e20e673a4948f8b7c611f8f1ebcecc8a4a" + "reference": "cbaf36e3f859bc57f055898ef13818ae8f070d29" }, "require": { "automattic/jetpack-connection": "^5.1.0", @@ -479,7 +479,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score", - "reference": "abce0b1c02900ed1ccd86e61416a700f84ad3287" + "reference": "9ff703b8b301894477e958fadd38f7dd75d2bee9" }, "require": { "automattic/jetpack-boost-core": "^0.2.12", @@ -555,7 +555,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin", - "reference": "c06ea85f06e077eff84374f9f7e7276a118fe3a7" + "reference": "b4cf03404ae4864a94d0eb3d2e39c36c8cdfd44e" }, "require": { "composer-plugin-api": "^2.1.0", @@ -615,7 +615,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-config", - "reference": "873932f2df0f109898cca66e95eac1d7ef3a6a2f" + "reference": "ad86c31d382b505e5d4f517e58fe11a115655acc" }, "require": { "php": ">=7.0" @@ -690,7 +690,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "60054fb36c277735ae2e13692eba5172dfb8a70b" + "reference": "64b87734f2e583cc3de59e539f2e7334f7ccfd9a" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -780,7 +780,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "9050215885b5a54a0b2d1e9d5dde6b5ec1b5d7e9" + "reference": "3b49686783a2adc29673cfbd4d37cf5292eefe31" }, "require": { "php": ">=7.0" @@ -834,7 +834,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "4e6f28ba6cd0a1cd22d2ee3be954505a3d883fa1" + "reference": "97b4d864fc6be5800e2056204ec2a4b2e6632b5f" }, "require": { "php": ">=7.0" @@ -887,7 +887,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-explat", - "reference": "c1be3f21083184b0be9d715497b897944710ac94" + "reference": "45784ffc4906d41649e43428a45691980e32b862" }, "require": { "automattic/jetpack-connection": "^5.1.0", @@ -962,7 +962,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "850695908b5891a9bdfd4092c3f9579e4c388991" + "reference": "e20e91320a8ab49f3540f6d7d861452caf420cd0" }, "require": { "php": ">=7.0" @@ -1020,7 +1020,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "2cdd545e49e37a6ecc7dcb13b3c0e7844c43c56d" + "reference": "8d8919b33468f13e5fadcf1674247b9bdd9804b3" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -1095,7 +1095,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-licensing", - "reference": "f8f42b09bb872d5bbe5189cd6b2829c69a2dfc15" + "reference": "59b35a0e61b1c3e20b29e630cf0c6535435e1675" }, "require": { "automattic/jetpack-connection": "^5.1.0", @@ -1157,7 +1157,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "76f38dc279e84e3e9416b8d6c4363c32d4e85876" + "reference": "83f1e18449f3671a5fd2b73cc3c0444cdc484213" }, "require": { "php": ">=7.0" @@ -1205,12 +1205,12 @@ }, { "name": "automattic/jetpack-my-jetpack", - "version": "4.35.8", - "version_normalized": "4.35.8.0", + "version": "4.35.9-alpha.1727353487", + "version_normalized": "4.35.9.0-alpha1727353487", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack", - "reference": "a86a0cd95efda8656be4fec6eedf7b7d2f4e282c" + "reference": "7dd1f513f6d71c3ebea9888ad020a8d26ed32dd6" }, "require": { "automattic/jetpack-admin-ui": "^0.4.5", @@ -1312,7 +1312,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "840150837c072d0c948b1ed6babd552d87d86bfd" + "reference": "1b42c217a4aade5d822bb522283ffee2e5b466f5" }, "require": { "php": ">=7.0" @@ -1373,7 +1373,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "c00a9847ba4d1dea6b37e77294569a35ece8eaf1" + "reference": "36ff3bf36523a750fc9233b521d3fa1518f106dc" }, "require": { "automattic/jetpack-connection": "^5.1.0", @@ -1441,7 +1441,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer", - "reference": "ddf2063873b26b9a394acde7e75c2e03d13bdc33" + "reference": "40dd9052ee00175126e9b6273b6689be3ede6f6f" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -1497,7 +1497,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-models", - "reference": "595d3a5d1b1780ceb820cba2e347ab8a452d1786" + "reference": "4b44156cc05d3562e07c381e4ff27c06c04ec313" }, "require": { "php": ">=7.0" @@ -1567,7 +1567,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-status", - "reference": "29c623422824b8e459049fa9eb9f6bdf638789af" + "reference": "3477f7e9b033ffe3edec1ce5bd3b9c56c005fa37" }, "require": { "automattic/jetpack-connection": "^5.1.0", @@ -1642,7 +1642,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "847f007f44a095a82a3768b77ea872a6185432f4" + "reference": "37de09c4d443e6fac41632db993831d273c20032" }, "require": { "automattic/jetpack-status": "^4.0.2", @@ -1697,7 +1697,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "76f671eea691abf89c32e2cb8796347db7a8f2f0" + "reference": "c686c70ee5220b7571ccbf29a563e6254dee9398" }, "require": { "php": ">=7.0" @@ -1751,7 +1751,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "21954aa01fb7046ae3311764291cba68c5426f4a" + "reference": "6c77c5a3369987bdd57ac8f340c4c368b2c46a4f" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -1815,7 +1815,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "cd50166fd7bd5b48e645787b5ed8060f1ed528c3" + "reference": "ab1e7247e9d58b1bc90be9a8283bad397a589c7a" }, "require": { "automattic/jetpack-connection": "^5.1.0", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 4df7f928..6d41627b 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-a8c-mc-stats' => array( 'pretty_version' => '2.0.2', 'version' => '2.0.2.0', - 'reference' => 'b9fa20e5c29340b1c7f9a2a814f561aac199e497', + 'reference' => '0beec1f0ac6ad3391000078ba0b5c576cf3aea12', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-a8c-mc-stats', 'aliases' => array(), @@ -22,7 +22,7 @@ 'automattic/jetpack-admin-ui' => array( 'pretty_version' => '0.4.5', 'version' => '0.4.5.0', - 'reference' => 'b61b98120ed8a18bff283e5f9e2502ce0803995e', + 'reference' => '15102899529f1c60ed526e29999c384514492130', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-admin-ui', 'aliases' => array(), @@ -31,7 +31,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '2.3.8', 'version' => '2.3.8.0', - 'reference' => '54787743a173c6abea1c9f8bb630bca2cadd03ea', + 'reference' => '6cade3a5a528b1eec47b3f94c8f7a43bf340e163', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-autoloader' => array( 'pretty_version' => '3.1.0', 'version' => '3.1.0.0', - 'reference' => 'b44ed20b9e00c7b680b3b13aa453d2b39c2424c8', + 'reference' => 'e10428aae140ffb58bcf1c697223ed85e6a59312', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-backup' => array( 'pretty_version' => '3.4.12-alpha.1727274022', 'version' => '3.4.12.0-alpha1727274022', - 'reference' => 'b144df52916ef19015fc3e7fcd0795fd2b2fc1d7', + 'reference' => '148ab38909676690a46f86e18b7eb93d772e9583', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-backup', 'aliases' => array(), @@ -58,7 +58,7 @@ 'automattic/jetpack-backup-helper-script-manager' => array( 'pretty_version' => '0.2.7', 'version' => '0.2.7.0', - 'reference' => '80747f2a06a953d3b3e504d0c4d253f48a6b11d3', + 'reference' => 'eac35fe7116c3f2996ca1c91965627a428aeead5', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-backup-helper-script-manager', 'aliases' => array(), @@ -67,7 +67,7 @@ 'automattic/jetpack-boost-core' => array( 'pretty_version' => '0.2.12', 'version' => '0.2.12.0', - 'reference' => 'e00806e20e673a4948f8b7c611f8f1ebcecc8a4a', + 'reference' => 'cbaf36e3f859bc57f055898ef13818ae8f070d29', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-core', 'aliases' => array(), @@ -76,7 +76,7 @@ 'automattic/jetpack-boost-speed-score' => array( 'pretty_version' => '0.3.12', 'version' => '0.3.12.0', - 'reference' => 'abce0b1c02900ed1ccd86e61416a700f84ad3287', + 'reference' => '9ff703b8b301894477e958fadd38f7dd75d2bee9', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-speed-score', 'aliases' => array(), @@ -85,7 +85,7 @@ 'automattic/jetpack-composer-plugin' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => 'c06ea85f06e077eff84374f9f7e7276a118fe3a7', + 'reference' => 'b4cf03404ae4864a94d0eb3d2e39c36c8cdfd44e', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-config' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '873932f2df0f109898cca66e95eac1d7ef3a6a2f', + 'reference' => 'ad86c31d382b505e5d4f517e58fe11a115655acc', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-connection' => array( 'pretty_version' => '5.1.0', 'version' => '5.1.0.0', - 'reference' => '60054fb36c277735ae2e13692eba5172dfb8a70b', + 'reference' => '64b87734f2e583cc3de59e539f2e7334f7ccfd9a', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection', 'aliases' => array(), @@ -112,7 +112,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '9050215885b5a54a0b2d1e9d5dde6b5ec1b5d7e9', + 'reference' => '3b49686783a2adc29673cfbd4d37cf5292eefe31', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '2.1.5', 'version' => '2.1.5.0', - 'reference' => '4e6f28ba6cd0a1cd22d2ee3be954505a3d883fa1', + 'reference' => '97b4d864fc6be5800e2056204ec2a4b2e6632b5f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-device-detection', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-explat' => array( 'pretty_version' => '0.1.9', 'version' => '0.1.9.0', - 'reference' => 'c1be3f21083184b0be9d715497b897944710ac94', + 'reference' => '45784ffc4906d41649e43428a45691980e32b862', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.3.0', 'version' => '0.3.0.0', - 'reference' => '850695908b5891a9bdfd4092c3f9579e4c388991', + 'reference' => 'e20e91320a8ab49f3540f6d7d861452caf420cd0', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip', 'aliases' => array(), @@ -148,7 +148,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '3.1.23', 'version' => '3.1.23.0', - 'reference' => '2cdd545e49e37a6ecc7dcb13b3c0e7844c43c56d', + 'reference' => '8d8919b33468f13e5fadcf1674247b9bdd9804b3', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm', 'aliases' => array(), @@ -157,7 +157,7 @@ 'automattic/jetpack-licensing' => array( 'pretty_version' => '2.0.10', 'version' => '2.0.10.0', - 'reference' => 'f8f42b09bb872d5bbe5189cd6b2829c69a2dfc15', + 'reference' => '59b35a0e61b1c3e20b29e630cf0c6535435e1675', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing', 'aliases' => array(), @@ -166,16 +166,16 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '76f38dc279e84e3e9416b8d6c4363c32d4e85876', + 'reference' => '83f1e18449f3671a5fd2b73cc3c0444cdc484213', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-my-jetpack' => array( - 'pretty_version' => '4.35.8', - 'version' => '4.35.8.0', - 'reference' => 'a86a0cd95efda8656be4fec6eedf7b7d2f4e282c', + 'pretty_version' => '4.35.9-alpha.1727353487', + 'version' => '4.35.9.0-alpha1727353487', + 'reference' => '7dd1f513f6d71c3ebea9888ad020a8d26ed32dd6', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-my-jetpack', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-password-checker' => array( 'pretty_version' => '0.3.2', 'version' => '0.3.2.0', - 'reference' => '840150837c072d0c948b1ed6babd552d87d86bfd', + 'reference' => '1b42c217a4aade5d822bb522283ffee2e5b466f5', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-password-checker', 'aliases' => array(), @@ -193,7 +193,7 @@ 'automattic/jetpack-plans' => array( 'pretty_version' => '0.4.11', 'version' => '0.4.11.0', - 'reference' => 'c00a9847ba4d1dea6b37e77294569a35ece8eaf1', + 'reference' => '36ff3bf36523a750fc9233b521d3fa1518f106dc', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -202,7 +202,7 @@ 'automattic/jetpack-plugins-installer' => array( 'pretty_version' => '0.4.3', 'version' => '0.4.3.0', - 'reference' => 'ddf2063873b26b9a394acde7e75c2e03d13bdc33', + 'reference' => '40dd9052ee00175126e9b6273b6689be3ede6f6f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-plugins-installer', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-protect-models' => array( 'pretty_version' => '0.3.0', 'version' => '0.3.0.0', - 'reference' => '595d3a5d1b1780ceb820cba2e347ab8a452d1786', + 'reference' => '4b44156cc05d3562e07c381e4ff27c06c04ec313', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-models', 'aliases' => array(), @@ -220,7 +220,7 @@ 'automattic/jetpack-protect-status' => array( 'pretty_version' => '0.2.0', 'version' => '0.2.0.0', - 'reference' => '29c623422824b8e459049fa9eb9f6bdf638789af', + 'reference' => '3477f7e9b033ffe3edec1ce5bd3b9c56c005fa37', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status', 'aliases' => array(), @@ -229,7 +229,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '847f007f44a095a82a3768b77ea872a6185432f4', + 'reference' => '37de09c4d443e6fac41632db993831d273c20032', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect', 'aliases' => array(), @@ -238,7 +238,7 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => '76f671eea691abf89c32e2cb8796347db7a8f2f0', + 'reference' => 'c686c70ee5220b7571ccbf29a563e6254dee9398', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles', 'aliases' => array(), @@ -247,7 +247,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '4.0.2', 'version' => '4.0.2.0', - 'reference' => '21954aa01fb7046ae3311764291cba68c5426f4a', + 'reference' => '6c77c5a3369987bdd57ac8f340c4c368b2c46a4f', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status', 'aliases' => array(), @@ -256,7 +256,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '3.13.1', 'version' => '3.13.1.0', - 'reference' => 'cd50166fd7bd5b48e645787b5ed8060f1ed528c3', + 'reference' => 'ab1e7247e9d58b1bc90be9a8283bad397a589c7a', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-sync', 'aliases' => array(), diff --git a/vendor/composer/jetpack_autoload_classmap.php b/vendor/composer/jetpack_autoload_classmap.php index f70a206f..84513c0d 100644 --- a/vendor/composer/jetpack_autoload_classmap.php +++ b/vendor/composer/jetpack_autoload_classmap.php @@ -383,123 +383,123 @@ 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-status/src/class-modules.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Activitylog' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-activitylog.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Hybrid_Product' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Initializer' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Jetpack_Manage' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-jetpack-manage.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Module_Product' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-module-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Product' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Anti_Spam' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Backup' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-backup.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Boost' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-boost.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Creator' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-creator.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Crm' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-crm.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Extras' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-extras.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Jetpack_Ai' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Protect' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-protect.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Scan' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-scan.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search_Stats' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Security' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-security.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Social' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Starter' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-starter.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Stats' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Videopress' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-videopress.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_AI' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Product_Data' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-product-data.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Purchases' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-purchases.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Recommendations_Evaluation' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-recommendations-evaluation.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Zendesk_Chat' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-zendesk-chat.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Wpcom_Products' => array( - 'version' => '4.35.8.0', + 'version' => '4.35.9.0-alpha1727353487', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-wpcom-products.php' ), 'Automattic\\Jetpack\\Partner' => array(