diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md index 7497f4ca..e7384f40 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md @@ -12,6 +12,9 @@ This is an alpha version! The changes listed here are not final. ### Added - Add new WAF status on Protect card for when WAF is unsupported +### Changed +- Show an upgrade CTA anytime a product has an available upgrade + ## [5.3.0] - 2025-01-06 ### Added - My Jetpack: Added a new status for when Protect detects threats on the site. [#40628] 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 88c17361..3816bc74 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-dom', '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' => '84046aa3393a0eb9cd9c'); + array('jetpack-connection', 'jetpack-script-data', 'react', 'react-dom', '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' => '82cd9f738294716d43b4'); diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js index d84f97af..8528f733 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js @@ -26,8 +26,8 @@ __("Expired on %1$s","jetpack-my-jetpack"),t):!a&&m?(0,s.sprintf)( // translators: %1$s is the name of the hosting partner. i.e.- Bluehost, InMotion, Pressable, Jurassic Ninja, etc.. __("Managed by: %1$s","jetpack-my-jetpack"),m):(0,s.sprintf)( // translators: %1$s is the formatted date to display, i.e.- November 24th, 2024 -__("Expires on %1$s","jetpack-my-jetpack"),t)}),[a,b,A,m,h]),_=(0,l.useCallback)((()=>b?A?React.createElement(n.A,{href:f,isExternalLink:!0,variant:"link",weight:"regular"},__("Renew subscription","jetpack-my-jetpack")):React.createElement(n.A,{href:v,isExternalLink:!0,variant:"link",weight:"regular"},__("Resume subscription","jetpack-my-jetpack")):null),[b,A,v,f]);return(0,w.b)(e)?React.createElement(c.Ay,{variant:"body",className:y.A["expire-date"]},React.createElement("span",{className:y.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(E.k,{productName:d,giftedDate:h})):React.createElement(React.Fragment,null,React.createElement(c.Ay,{variant:"body",className:(0,i.A)(y.A["expire-date"],j)},R()),b&&React.createElement(c.Ay,null,_()))},j=({numberOfPurchases:e=0})=>React.createElement(React.Fragment,null,React.createElement(c.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(c.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack"))),R=({numberOfPurchases:e})=>{const{recordEvent:t}=(0,h.A)(),{isUserConnected:a}=(0,g.A)(),{complete:c}=(0,m.V)(),r=c.hasPaidPlanForProduct,s=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),i=__("Purchase a plan","jetpack-my-jetpack"),u=(0,l.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),d=(0,l.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),w=(0,v.A)(o.NM.ConnectionSkipPricing),E=(0,l.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||w()}),[w,a,t]);let A=__("Activate a license","jetpack-my-jetpack");a||(A=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:b="",adminUrl:j=""}=(0,p.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:y.A["actions-list-item"]},React.createElement(n.A,{onClick:u,href:(0,f.A)(),weight:"regular",variant:"link",isExternalLink:!0},s)),!r&&React.createElement("li",{className:y.A["actions-list-item"]},React.createElement(n.A,{onClick:d,href:(0,k.A)(),weight:"regular",variant:"link",isExternalLink:!0},i)),!r&&b&&React.createElement("li",{className:y.A["actions-list-item"]},React.createElement(n.A,{onClick:E,href:a?`${j}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},A)))},_=()=>{const e=!!(0,p.A$)("userIsAdmin"),{isSiteConnected:t}=(0,g.A)(),a=(0,d.A)({name:u.Ck,query:{path:u.tb},options:{enabled:t}}),{isLoading:c,isError:n}=a,r=a.data,s=r&&!c&&!n,i=s?r.length:0;return React.createElement("div",{className:y.A.container},React.createElement(j,{numberOfPurchases:i}),React.createElement("div",{className:y.A.purchasesSection},s&&r.map((e=>React.createElement(A,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(R,{numberOfPurchases:i}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>A});var c=a(6072),n=a.n(c),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),k=a(1870),w=a(1413),E=a(1208);const __=s.__,y=p()("my-jetpack:product-card:action-button"),A=({status:e,admin:t,name:a,slug:c,onActivate:d,additionalActions:p,primaryActionOverride:A,onManage:b,onFixUserConnection:j,onFixSiteConnection:R,isFetching:_,isInstallingStandalone:C,className:x,onAdd:N,onInstall:M,onLearnMore:z,upgradeInInterstitial:S,isOwned:L})=>{const[P,V]=(0,h.useState)(!1),[H,I]=(0,h.useState)({}),{detail:B}=(0,v.A)(c),{manageUrl:O,purchaseUrl:T,managePaidPlanPurchaseUrl:F,renewPaidPlanPurchaseUrl:D}=B,{siteIsRegistering:U}=(0,k.A)(),q=!O,G=(0,h.useRef)(null),J=(0,h.useRef)(null),{recordEvent:$}=(0,f.A)();"jetpack-ai"===c&&y(c,B);const W=_||C||U&&e===g.hp.SITE_CONNECTION_ERROR,Q=p?.length>0,K=(0,h.useMemo)((()=>({variant:W?void 0:"primary",disabled:W,size:"small",weight:"regular",className:x})),[W,x]),Z=(0,h.useCallback)((()=>{switch("jetpack-ai"===c&&y(c,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...K,href:`#/add-${c}`,variant:"primary",label:e,onClick:z,...A?.[g.hp.ABSENT]??{}}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...K,variant:"primary",label:e,onClick:M,...A?.[g.hp.ABSENT_WITH_PLAN]??{}}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...K,href:T||`#/add-${c}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:N,...A?.[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=L?e:t;return{...K,href:T||`#/add-${c}`,variant:"primary",label:a,onClick:N,...A?.[g.hp.NEEDS_PLAN]??{}}}case g.hp.CAN_UPGRADE:{const e=__("Upgrade","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=T||S?e:t;return{...K,href:T||`#/add-${c}`,variant:"primary",label:a,onClick:N,...A?.[g.hp.CAN_UPGRADE]??{}}}case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...K,disabled:q||K?.disabled,href:O,variant:"secondary",label:e,onClick:b,...A?.[g.hp.ACTIVE]??{}}}case g.hp.SITE_CONNECTION_ERROR:return{...K,variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:R,...A?.[g.hp.SITE_CONNECTION_ERROR]??{}};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection?skip_pricing=true",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:j,...A?.[g.hp.USER_CONNECTION_ERROR]??{}};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...K,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...A?.[g.hp.INACTIVE]??{}};case g.hp.EXPIRING_SOON:return{...K,href:D,variant:"primary",label:__("Renew my plan","jetpack-my-jetpack"),...A?.[g.hp.EXPIRING_SOON]??{}};case g.hp.EXPIRED:return{...K,href:F,variant:"primary",label:__("Resume my plan","jetpack-my-jetpack"),...A?.[g.hp.EXPIRED]??{}};case g.hp.NEEDS_ATTENTION__ERROR:{const e={...K,href:O,variant:"primary",label:__("Troubleshoot","jetpack-my-jetpack"),...A?.[g.hp.NEEDS_ATTENTION__ERROR]??{}};switch(c){case"backup":return{...e,href:"https://jetpack.com/support/backup/troubleshooting-jetpack-backup/"};case"protect":return{...e,label:__("Fix threats","jetpack-my-jetpack")};default:return e}}case g.hp.NEEDS_ATTENTION__WARNING:{const e={...K,href:O,variant:"primary",label:__("Troubleshoot","jetpack-my-jetpack"),...A?.[g.hp.NEEDS_ATTENTION__WARNING]??{}};return"protect"===c?{...e,label:__("Fix threats","jetpack-my-jetpack")}:{...e}}default:return{...K,href:T||`#/add-${c}`,label:__("Learn more","jetpack-my-jetpack"),onClick:N}}}),[e,K,c,N,j,R,d,M,z,T,S,q,O,b,A,L,F,D]),Y=(0,h.useMemo)((()=>Q?[...p,Z()]:[Z()]),[p,Z,Q]),X=(0,h.useCallback)((()=>{$("jetpack_myjetpack_product_card_dropdown_toggle",{product:c,state:P?"closed":"open"})}),[P,$,c]),ee=(0,h.useCallback)((()=>{V(!P),X()}),[P,X]);if((0,h.useEffect)((()=>{I(Y[0])}),[Y]),(0,w.A)(G,(e=>{J.current.contains(e.target)||(V(!1),X())})),!t)return React.createElement(r.A,n()({},K,{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 te=Q&&React.createElement("div",{ref:G,className:E.A["action-button-dropdown"]},React.createElement("ul",{className:E.A["dropdown-menu"]},[...p,Z()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{I(Y[a]),V(!1),$("jetpack_myjetpack_product_card_dropdown_action_click",{product:c,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===H.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,n()({},K,H),H.label),Q&&React.createElement("button",{className:(0,m.A)(E.A["dropdown-chevron"],"primary"===H.variant?E.A.primary:E.A.secondary),onClick:ee,ref:J},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===H.variant?"white":"black"})),P&&te))}},5410:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var c=a(6072),n=a.n(c),r=a(7723),s=a(3022),i=a(1609),l=a(8837),o=a(8242),u=a(4526),m=a(6312),d=a(1870),p=a(2450),h=a(169),g=a(6710),v=a(7879),f=a(1887),k=a(2854),w=a(1208);const __=r.__,E=e=>{const t={isFetching:!1,isInstallingStandalone:!1,onActivate:()=>{},...e},{name:a,Description:c,status:r,onActivate:E,isFetching:y,isDataLoading:A,isInstallingStandalone:b,slug:j,additionalActions:R,primaryActionOverride:_,secondaryAction:C,children:x,onInstallStandalone:N,onMouseEnter:M,onMouseLeave:z,recommendation:S,customLoadTracks:L}=e,{ownedProducts:P}=(0,o.A$)("lifecycleStats"),V=P?.includes(j),H=r===l.hp.EXPIRED||r===l.hp.NEEDS_ATTENTION__ERROR,I=r===l.hp.EXPIRING_SOON||r===l.hp.NEEDS_ATTENTION__WARNING,B=r===l.hp.ABSENT||r===l.hp.ABSENT_WITH_PLAN,O=r===l.hp.NEEDS_PLAN,T=(0,s.A)({[w.A.plugin_absent]:B,[w.A["is-purchase-required"]]:O,[w.A["is-link"]]:B,[w.A["has-error"]]:H,[w.A["has-warning"]]:I}),{recordEvent:F}=(0,u.A)(),{siteIsRegistering:D}=(0,d.A)(),U=y||D&&r===l.hp.SITE_CONNECTION_ERROR,{connectSite:q}=(0,m.A)({tracksInfo:{event:"jetpack_myjetpack_product_card_fix_site_connection",properties:{}}}),G=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_activate_click",{product:j}),E()}),[j,E,F]),J=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_add_click",{product:j})}),[j,F]),$=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_manage_click",{product:j})}),[j,F]),W=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_fixconnection_click",{product:j})}),[j,F]),Q=(0,i.useCallback)((({e:e})=>{q(e)}),[q]),K=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_learnmore_click",{product:j})}),[j,F]),Z=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_install_standalone_plugin_click",{product:j}),N()}),[j,N,F]);return(0,i.useEffect)((()=>{F("jetpack_myjetpack_product_card_load",{product:j,status:r,...L})}),[F,j,r,L]),React.createElement(p.A,{title:a,className:(0,s.A)(w.A.container,T),headerRightContent:null,onMouseEnter:M,onMouseLeave:z},S&&React.createElement(g.A,{slug:j}),React.createElement(c,null),A?React.createElement("span",{className:w.A.loading},__("Loading…","jetpack-my-jetpack")):x,S?React.createElement(v.A,{slug:j}):React.createElement("div",{className:w.A.actions},React.createElement("div",{className:w.A.buttons},C&&C?.positionFirst&&React.createElement(f.A,C),React.createElement(h.A,n()({},t,{onActivate:G,onFixUserConnection:W,onFixSiteConnection:Q,onManage:$,onAdd:J,onInstall:Z,onLearnMore:K,className:w.A.button,additionalActions:R,primaryActionOverride:_,isOwned:V})),C&&!C?.positionFirst&&React.createElement(f.A,C)),React.createElement(k.A,{status:r,isFetching:U,isInstallingStandalone:b,isOwned:V,suppressNeedsAttention:"protect"===j})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var c=a(7397),n=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=n.__,l=({slug:e})=>{const{discountPrice:t,fullPrice:a,currencyCode:n,isFeature:l,hasFreeOffering:o}=(0,i.A)(e),u=l&&o&&!a;return React.createElement("div",{className:s.A.priceContainer},t&&React.createElement("span",{className:s.A.price},(0,c.Ay)(t,n)),React.createElement("span",{className:(0,r.A)(s.A.price,{[s.A.discounted]:t})},!u&&(0,c.Ay)(a,n),u&&__("Free","jetpack-my-jetpack")),!u&&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 c=a(6072),n=a.n(c),r=a(1112),s=a(3022),i=a(1208),l=a(6147);const o=({slug:e})=>{const{secondaryAction:t,primaryAction:a,isFeature:c,isActivating:o,isInstalling:u}=(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,n()({size:"small",disabled:c&&(o||u)},a),a.label),t&&React.createElement(r.A,n()({size:"small",variant:"secondary",disabled:o},t),t.label)))}},1887:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var c=a(1112),n=a(7723);const __=n.__,r=e=>{const{shouldShowButton:t=()=>!0,...a}={size:"small",variant:"secondary",weight:"regular",label:__("Learn more","jetpack-my-jetpack"),...e};return!!t()&&React.createElement(c.A,a,a.label)}},2854:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var c=a(7425),n=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=n.__,l=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:n,suppressNeedsAttention:l=!1})=>{const o=((e,t,a)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return __("Active","jetpack-my-jetpack");case s.hp.EXPIRING_SOON:return __("Expires soon","jetpack-my-jetpack");case s.hp.EXPIRED:return __("Expired plan","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}case s.hp.NEEDS_ATTENTION__WARNING:case s.hp.NEEDS_ATTENTION__ERROR:{const e=__("Active","jetpack-my-jetpack"),t=__("Needs attention","jetpack-my-jetpack");return a?e:t}default:return __("Inactive","jetpack-my-jetpack")}})(e,n,l),u=(0,r.A)(i.A.status,((e,t,a)=>{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:case s.hp.EXPIRING_SOON: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;case s.hp.EXPIRED:case s.hp.NEEDS_ATTENTION__WARNING:return a?i.A.active:i.A.warning;case s.hp.NEEDS_ATTENTION__ERROR:return a?i.A.active:i.A.error;default:return i.A.inactive}})(e,n,l),{[i.A["is-fetching"]]:t||a});return React.createElement(c.Ay,{variant:"label",className:u},o)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var c=a(9384),n=a(7723),r=a(1609),s=a(8837),i=a(9935),l=a(4367),o=a(4923),u=a(8242),m=a(4526),d=a(1870);const __=n.__,p=(e,{onCheckout:t,onActivate:a,onInstall:c,onManage:n})=>{const r=e.status===s.hp.ACTIVE&&(e.isUpgradableByBundle.length||e.isUpgradable),i=e.pricingForUi.fullPrice||e.pricingForUi.tiers?.upgraded?.fullPrice;return e.status===s.hp.CAN_UPGRADE||r?i?{label:__("Upgrade","jetpack-my-jetpack"),onClick:t}:null:e.isFeature?((e,{onActivate:t,onInstall:a,onManage:c})=>{switch(e.status){case s.hp.MODULE_DISABLED:return{label:__("Activate","jetpack-my-jetpack"),onClick:t};case s.hp.ABSENT:return{label:__("Install","jetpack-my-jetpack"),onClick:a};case s.hp.USER_CONNECTION_ERROR:return{label:__("Connect","jetpack-my-jetpack"),href:"#/connection"};default:return{label:__("Manage","jetpack-my-jetpack"),href:e.manageUrl,onClick:c}}})(e,{onActivate:a,onInstall:c,onManage:n}):{label:__("Purchase","jetpack-my-jetpack"),onClick:t}},h=(e,t)=>{if(e.isFeature)return null;!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}`}},g=e=>{const{recordEvent:t}=(0,m.A)(),{detail:a}=(0,o.A)(e),{wpcomProductSlug:n,wpcomFreeProductSlug:s,...g}=(e=>{const{tiers:t,wpcomFreeProductSlug:a,introductoryOffer:c}=e;if(e.tiers){const{discountPrice:e,fullPrice:c,currencyCode:n,wpcomProductSlug:r,quantity:s,introductoryOffer:i}=t.upgraded;return{wpcomFreeProductSlug:a,wpcomProductSlug:s?`${r}:-q-${s}`:r,discountPrice:e&&e!==c&&!i?.reason?e/12:null,fullPrice:c/12,currencyCode:n}}const{discountPrice:n,discountPricePerMonth:r,fullPrice:s,fullPricePerMonth:i,currencyCode:l,wpcomProductSlug:o}=e;return{wpcomFreeProductSlug:a,wpcomProductSlug:o,discountPrice:n&&n!==s&&!c?.reason?r:null,fullPrice:i,currencyCode:l}})(a.pricingForUi),{install:v,isPending:f}=(0,l.A)(e),{isUserConnected:k}=(0,d.A)(),{myJetpackUrl:w,siteSuffix:E}=(0,u.A$)(),{activate:y,isPending:A}=(0,i.A)(e),{run:b}=(0,c.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:n,redirectUrl:w,connectAfterCheckout:!k,siteSuffix:E}),{run:j}=(0,c.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:s,redirectUrl:w,connectAfterCheckout:!k,siteSuffix:E}),R=(0,r.useCallback)((()=>{s?j():y()}),[y,j,s]),_=(0,r.useCallback)((()=>{if(t("jetpack_myjetpack_evaluation_recommendations_checkout_click",{slug:e}),"crm"===e)return y(),void window.open("https://jetpackcrm.com/pricing/","_blank");b()}),[y,t,b,e]),C=(0,r.useCallback)((()=>{t("jetpack_myjetpack_evaluation_recommendations_install_plugin_click",{product:e}),v()}),[e,v,t]),x=(0,r.useCallback)((()=>{t("jetpack_myjetpack_evaluation_recommendations_manage_click",{product:e})}),[e,t]);return{secondaryAction:h(a),primaryAction:p(a,{onCheckout:_,onActivate:R,onInstall:C,onManage:x}),isFeature:a.isFeature,hasFreeOffering:a.hasFreeOffering,isActivating:A,isInstalling:f,...g}}},8412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var c=a(6072),n=a.n(c),r=a(1504),s=a(6176);const i=e=>React.createElement(s.A,n()({slug:r.D_.JETPACK_AI,upgradeInInterstitial:!0},e))},9674:(e,t,a)=>{"use strict";a.d(t,{z:()=>w});var c=a(8412),n=a(6724),r=a(161),s=a(9838),i=a(5375),l=a(1686),o=a(5383),u=a(5243),m=a(4274),d=a(2917),p=a(414),h=a(7014),g=a(4169),v=a(7769),f=a(4073),k=a(7631);const w={backup:r.A,protect:m.A,"anti-spam":n.A,boost:s.A,search:p.A,videopress:k.A,stats:f.A,crm:l.A,social:v.A,ai:c.A,"jetpack-ai":c.A,security:h.A,growth:o.A,complete:i.A,extras:null,scan:null,creator:null,newsletter:u.A,"related-posts":d.A,"site-accelerator":g.A}},6724:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var c=a(6072),n=a.n(c),r=a(8120),s=a.n(r),i=a(1504),l=a(6176);const o=e=>React.createElement(l.A,n()({slug:i.D_.ANTI_SPAM},e));o.propTypes={admin:s().bool};const u=o},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var c=a(6072),n=a.n(c),r=a(7425),s=a(3924),i=a(6427),l=a(7723),o=a(3022),u=a(2290),m=a(8120),d=a.n(m),p=a(1609),h=a(8837),g=a(1504),v=a(4923),f=a(280),k=a(8242),w=a(4526),E=a(271),y=a(6581),A=a(6176),b=a(2660),j=a(3649);const __=l.__,_n=l._n,R=g.D_.BACKUP,_=e=>{const{detail:t}=(0,v.A)(R),{status:a}=t,{backup_failure:c}=(0,k.A$)("redBubbleAlerts")||{},{status:s}=c||{},i=a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE,{title:l,text:o}=(0,E.t)()||{};return i?React.createElement(C,n()({slug:R},e)):React.createElement(A.A,n()({slug:R,Description:()=>null},e),a===h.hp.NEEDS_ATTENTION__ERROR&&c&&React.createElement("div",{className:j.A.backupErrorContainer},React.createElement("div",{className:j.A.iconContainer},React.createElement(u.A,{icon:"notice",size:16,className:j.A.iconError})),React.createElement("div",{className:j.A.contentContainer},React.createElement(r.Ay,{variant:"body-small",className:"value-section__heading"},__("The last backup attempt failed.","jetpack-my-jetpack"),React.createElement(b.I,{tracksEventName:"backup_card_tooltip_open",tracksEventProps:{location:"backup-error",status:a,backup_status:s,feature:"jetpack-backup"},expandOnMobile:!0},React.createElement(React.Fragment,null,React.createElement("h3",null,l),React.createElement("p",null,o),React.createElement("p",null,__("Check out our troubleshooting guide or contact your hosting provider to resolve the issue.","jetpack-my-jetpack"))))),React.createElement(r.Ay,{variant:"body-small",className:j.A.error_description},__("Check out our troubleshooting guide.","jetpack-my-jetpack")))))},C=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),c=t?.last_rewindable_event,i=c?.published,o=t?.undo_backup_id,{recordEvent:m}=(0,w.A)(),{siteSuffix:d=""}=(0,k.A$)(),p={href:(0,s.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(A.A,n()({},e,{showMenu:!0,isDataLoading:a,Description:c?()=>React.createElement(r.Ay,{variant:"body-small",className:j.A.description},React.createElement("span",null,__("Activity Detected","jetpack-my-jetpack")),React.createElement("span",{className:j.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),c=Math.floor(t%36e5/6e4),n=Math.floor(t%6e4/1e3);return e>0?(0,l.sprintf)( +__("Expires on %1$s","jetpack-my-jetpack"),t)}),[a,b,A,m,h]),_=(0,l.useCallback)((()=>b?A?React.createElement(n.A,{href:f,isExternalLink:!0,variant:"link",weight:"regular"},__("Renew subscription","jetpack-my-jetpack")):React.createElement(n.A,{href:v,isExternalLink:!0,variant:"link",weight:"regular"},__("Resume subscription","jetpack-my-jetpack")):null),[b,A,v,f]);return(0,w.b)(e)?React.createElement(c.Ay,{variant:"body",className:y.A["expire-date"]},React.createElement("span",{className:y.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(E.k,{productName:d,giftedDate:h})):React.createElement(React.Fragment,null,React.createElement(c.Ay,{variant:"body",className:(0,i.A)(y.A["expire-date"],j)},R()),b&&React.createElement(c.Ay,null,_()))},j=({numberOfPurchases:e=0})=>React.createElement(React.Fragment,null,React.createElement(c.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(c.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack"))),R=({numberOfPurchases:e})=>{const{recordEvent:t}=(0,h.A)(),{isUserConnected:a}=(0,g.A)(),{complete:c}=(0,m.V)(),r=c.hasPaidPlanForProduct,s=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),i=__("Purchase a plan","jetpack-my-jetpack"),u=(0,l.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),d=(0,l.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),w=(0,v.A)(o.NM.ConnectionSkipPricing),E=(0,l.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||w()}),[w,a,t]);let A=__("Activate a license","jetpack-my-jetpack");a||(A=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:b="",adminUrl:j=""}=(0,p.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:y.A["actions-list-item"]},React.createElement(n.A,{onClick:u,href:(0,f.A)(),weight:"regular",variant:"link",isExternalLink:!0},s)),!r&&React.createElement("li",{className:y.A["actions-list-item"]},React.createElement(n.A,{onClick:d,href:(0,k.A)(),weight:"regular",variant:"link",isExternalLink:!0},i)),!r&&b&&React.createElement("li",{className:y.A["actions-list-item"]},React.createElement(n.A,{onClick:E,href:a?`${j}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},A)))},_=()=>{const e=!!(0,p.A$)("userIsAdmin"),{isSiteConnected:t}=(0,g.A)(),a=(0,d.A)({name:u.Ck,query:{path:u.tb},options:{enabled:t}}),{isLoading:c,isError:n}=a,r=a.data,s=r&&!c&&!n,i=s?r.length:0;return React.createElement("div",{className:y.A.container},React.createElement(j,{numberOfPurchases:i}),React.createElement("div",{className:y.A.purchasesSection},s&&r.map((e=>React.createElement(A,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(R,{numberOfPurchases:i}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>A});var c=a(6072),n=a.n(c),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),k=a(1870),w=a(1413),E=a(1208);const __=s.__,y=p()("my-jetpack:product-card:action-button"),A=({status:e,admin:t,name:a,slug:c,onActivate:d,additionalActions:p,primaryActionOverride:A,onManage:b,onFixUserConnection:j,onFixSiteConnection:R,isFetching:_,isInstallingStandalone:C,className:x,onAdd:N,onInstall:M,onLearnMore:z,isOwned:S})=>{const[L,P]=(0,h.useState)(!1),[V,H]=(0,h.useState)({}),{detail:I}=(0,v.A)(c),{manageUrl:B,purchaseUrl:O,managePaidPlanPurchaseUrl:T,renewPaidPlanPurchaseUrl:F}=I,{siteIsRegistering:D}=(0,k.A)(),U=!B,q=(0,h.useRef)(null),G=(0,h.useRef)(null),{recordEvent:J}=(0,f.A)();"jetpack-ai"===c&&y(c,I);const $=_||C||D&&e===g.hp.SITE_CONNECTION_ERROR,W=p?.length>0,Q=(0,h.useMemo)((()=>({variant:$?void 0:"primary",disabled:$,size:"small",weight:"regular",className:x})),[$,x]),K=(0,h.useCallback)((()=>{switch("jetpack-ai"===c&&y(c,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...Q,href:`#/add-${c}`,variant:"primary",label:e,onClick:z,...A?.[g.hp.ABSENT]??{}}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...Q,variant:"primary",label:e,onClick:M,...A?.[g.hp.ABSENT_WITH_PLAN]??{}}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...Q,href:O||`#/add-${c}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:N,...A?.[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{...Q,href:O||`#/add-${c}`,variant:"primary",label:a,onClick:N,...A?.[g.hp.NEEDS_PLAN]??{}}}case g.hp.CAN_UPGRADE:return{...Q,href:O||`#/add-${c}`,variant:"primary",label:__("Upgrade","jetpack-my-jetpack"),onClick:N,...A?.[g.hp.CAN_UPGRADE]??{}};case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...Q,disabled:U||Q?.disabled,href:B,variant:"secondary",label:e,onClick:b,...A?.[g.hp.ACTIVE]??{}}}case g.hp.SITE_CONNECTION_ERROR:return{...Q,variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:R,...A?.[g.hp.SITE_CONNECTION_ERROR]??{}};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection?skip_pricing=true",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:j,...A?.[g.hp.USER_CONNECTION_ERROR]??{}};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...Q,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...A?.[g.hp.INACTIVE]??{}};case g.hp.EXPIRING_SOON:return{...Q,href:F,variant:"primary",label:__("Renew my plan","jetpack-my-jetpack"),...A?.[g.hp.EXPIRING_SOON]??{}};case g.hp.EXPIRED:return{...Q,href:T,variant:"primary",label:__("Resume my plan","jetpack-my-jetpack"),...A?.[g.hp.EXPIRED]??{}};case g.hp.NEEDS_ATTENTION__ERROR:{const e={...Q,href:B,variant:"primary",label:__("Troubleshoot","jetpack-my-jetpack"),...A?.[g.hp.NEEDS_ATTENTION__ERROR]??{}};switch(c){case"backup":return{...e,href:"https://jetpack.com/support/backup/troubleshooting-jetpack-backup/"};case"protect":return{...e,label:__("Fix threats","jetpack-my-jetpack")};default:return e}}case g.hp.NEEDS_ATTENTION__WARNING:{const e={...Q,href:B,variant:"primary",label:__("Troubleshoot","jetpack-my-jetpack"),...A?.[g.hp.NEEDS_ATTENTION__WARNING]??{}};return"protect"===c?{...e,label:__("Fix threats","jetpack-my-jetpack")}:{...e}}default:return{...Q,href:O||`#/add-${c}`,label:__("Learn more","jetpack-my-jetpack"),onClick:N}}}),[e,Q,c,N,j,R,d,M,z,O,U,B,b,A,S,T,F]),Z=(0,h.useMemo)((()=>W?[...p,K()]:[K()]),[p,K,W]),Y=(0,h.useCallback)((()=>{J("jetpack_myjetpack_product_card_dropdown_toggle",{product:c,state:L?"closed":"open"})}),[L,J,c]),X=(0,h.useCallback)((()=>{P(!L),Y()}),[L,Y]);if((0,h.useEffect)((()=>{H(Z[0])}),[Z]),(0,w.A)(q,(e=>{G.current.contains(e.target)||(P(!1),Y())})),!t)return React.createElement(r.A,n()({},Q,{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 ee=W&&React.createElement("div",{ref:q,className:E.A["action-button-dropdown"]},React.createElement("ul",{className:E.A["dropdown-menu"]},[...p,K()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{H(Z[a]),P(!1),J("jetpack_myjetpack_product_card_dropdown_action_click",{product:c,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"],W?E.A["has-additional-actions"]:null)},React.createElement(r.A,n()({},Q,V),V.label),W&&React.createElement("button",{className:(0,m.A)(E.A["dropdown-chevron"],"primary"===V.variant?E.A.primary:E.A.secondary),onClick:X,ref:G},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===V.variant?"white":"black"})),L&&ee))}},5410:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var c=a(6072),n=a.n(c),r=a(7723),s=a(3022),i=a(1609),l=a(8837),o=a(8242),u=a(4526),m=a(6312),d=a(1870),p=a(2450),h=a(169),g=a(6710),v=a(7879),f=a(1887),k=a(2854),w=a(1208);const __=r.__,E=e=>{const t={isFetching:!1,isInstallingStandalone:!1,onActivate:()=>{},...e},{name:a,Description:c,status:r,onActivate:E,isFetching:y,isDataLoading:A,isInstallingStandalone:b,slug:j,additionalActions:R,primaryActionOverride:_,secondaryAction:C,children:x,onInstallStandalone:N,onMouseEnter:M,onMouseLeave:z,recommendation:S,customLoadTracks:L}=e,{ownedProducts:P}=(0,o.A$)("lifecycleStats"),V=P?.includes(j),H=r===l.hp.EXPIRED||r===l.hp.NEEDS_ATTENTION__ERROR,I=r===l.hp.EXPIRING_SOON||r===l.hp.NEEDS_ATTENTION__WARNING,B=r===l.hp.ABSENT||r===l.hp.ABSENT_WITH_PLAN,O=r===l.hp.NEEDS_PLAN,T=(0,s.A)({[w.A.plugin_absent]:B,[w.A["is-purchase-required"]]:O,[w.A["is-link"]]:B,[w.A["has-error"]]:H,[w.A["has-warning"]]:I}),{recordEvent:F}=(0,u.A)(),{siteIsRegistering:D}=(0,d.A)(),U=y||D&&r===l.hp.SITE_CONNECTION_ERROR,{connectSite:q}=(0,m.A)({tracksInfo:{event:"jetpack_myjetpack_product_card_fix_site_connection",properties:{}}}),G=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_activate_click",{product:j}),E()}),[j,E,F]),J=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_add_click",{product:j})}),[j,F]),$=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_manage_click",{product:j})}),[j,F]),W=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_fixconnection_click",{product:j})}),[j,F]),Q=(0,i.useCallback)((({e:e})=>{q(e)}),[q]),K=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_learnmore_click",{product:j})}),[j,F]),Z=(0,i.useCallback)((()=>{F("jetpack_myjetpack_product_card_install_standalone_plugin_click",{product:j}),N()}),[j,N,F]);return(0,i.useEffect)((()=>{F("jetpack_myjetpack_product_card_load",{product:j,status:r,...L})}),[F,j,r,L]),React.createElement(p.A,{title:a,className:(0,s.A)(w.A.container,T),headerRightContent:null,onMouseEnter:M,onMouseLeave:z},S&&React.createElement(g.A,{slug:j}),React.createElement(c,null),A?React.createElement("span",{className:w.A.loading},__("Loading…","jetpack-my-jetpack")):x,S?React.createElement(v.A,{slug:j}):React.createElement("div",{className:w.A.actions},React.createElement("div",{className:w.A.buttons},C&&C?.positionFirst&&React.createElement(f.A,C),React.createElement(h.A,n()({},t,{onActivate:G,onFixUserConnection:W,onFixSiteConnection:Q,onManage:$,onAdd:J,onInstall:Z,onLearnMore:K,className:w.A.button,additionalActions:R,primaryActionOverride:_,isOwned:V})),C&&!C?.positionFirst&&React.createElement(f.A,C)),React.createElement(k.A,{status:r,isFetching:U,isInstallingStandalone:b,isOwned:V,suppressNeedsAttention:"protect"===j})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var c=a(7397),n=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=n.__,l=({slug:e})=>{const{discountPrice:t,fullPrice:a,currencyCode:n,isFeature:l,hasFreeOffering:o}=(0,i.A)(e),u=l&&o&&!a;return React.createElement("div",{className:s.A.priceContainer},t&&React.createElement("span",{className:s.A.price},(0,c.Ay)(t,n)),React.createElement("span",{className:(0,r.A)(s.A.price,{[s.A.discounted]:t})},!u&&(0,c.Ay)(a,n),u&&__("Free","jetpack-my-jetpack")),!u&&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 c=a(6072),n=a.n(c),r=a(1112),s=a(3022),i=a(1208),l=a(6147);const o=({slug:e})=>{const{secondaryAction:t,primaryAction:a,isFeature:c,isActivating:o,isInstalling:u}=(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,n()({size:"small",disabled:c&&(o||u)},a),a.label),t&&React.createElement(r.A,n()({size:"small",variant:"secondary",disabled:o},t),t.label)))}},1887:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var c=a(1112),n=a(7723);const __=n.__,r=e=>{const{shouldShowButton:t=()=>!0,...a}={size:"small",variant:"secondary",weight:"regular",label:__("Learn more","jetpack-my-jetpack"),...e};return!!t()&&React.createElement(c.A,a,a.label)}},2854:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var c=a(7425),n=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=n.__,l=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:n,suppressNeedsAttention:l=!1})=>{const o=((e,t,a)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return __("Active","jetpack-my-jetpack");case s.hp.EXPIRING_SOON:return __("Expires soon","jetpack-my-jetpack");case s.hp.EXPIRED:return __("Expired plan","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}case s.hp.NEEDS_ATTENTION__WARNING:case s.hp.NEEDS_ATTENTION__ERROR:{const e=__("Active","jetpack-my-jetpack"),t=__("Needs attention","jetpack-my-jetpack");return a?e:t}default:return __("Inactive","jetpack-my-jetpack")}})(e,n,l),u=(0,r.A)(i.A.status,((e,t,a)=>{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:case s.hp.EXPIRING_SOON: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;case s.hp.EXPIRED:case s.hp.NEEDS_ATTENTION__WARNING:return a?i.A.active:i.A.warning;case s.hp.NEEDS_ATTENTION__ERROR:return a?i.A.active:i.A.error;default:return i.A.inactive}})(e,n,l),{[i.A["is-fetching"]]:t||a});return React.createElement(c.Ay,{variant:"label",className:u},o)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var c=a(9384),n=a(7723),r=a(1609),s=a(8837),i=a(9935),l=a(4367),o=a(4923),u=a(8242),m=a(4526),d=a(1870);const __=n.__,p=(e,{onCheckout:t,onActivate:a,onInstall:c,onManage:n})=>{const r=e.status===s.hp.ACTIVE&&(e.isUpgradableByBundle.length||e.isUpgradable),i=e.pricingForUi.fullPrice||e.pricingForUi.tiers?.upgraded?.fullPrice;return e.status===s.hp.CAN_UPGRADE||r?i?{label:__("Upgrade","jetpack-my-jetpack"),onClick:t}:null:e.isFeature?((e,{onActivate:t,onInstall:a,onManage:c})=>{switch(e.status){case s.hp.MODULE_DISABLED:return{label:__("Activate","jetpack-my-jetpack"),onClick:t};case s.hp.ABSENT:return{label:__("Install","jetpack-my-jetpack"),onClick:a};case s.hp.USER_CONNECTION_ERROR:return{label:__("Connect","jetpack-my-jetpack"),href:"#/connection"};default:return{label:__("Manage","jetpack-my-jetpack"),href:e.manageUrl,onClick:c}}})(e,{onActivate:a,onInstall:c,onManage:n}):{label:__("Purchase","jetpack-my-jetpack"),onClick:t}},h=(e,t)=>{if(e.isFeature)return null;!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}`}},g=e=>{const{recordEvent:t}=(0,m.A)(),{detail:a}=(0,o.A)(e),{wpcomProductSlug:n,wpcomFreeProductSlug:s,...g}=(e=>{const{tiers:t,wpcomFreeProductSlug:a,introductoryOffer:c}=e;if(e.tiers){const{discountPrice:e,fullPrice:c,currencyCode:n,wpcomProductSlug:r,quantity:s,introductoryOffer:i}=t.upgraded;return{wpcomFreeProductSlug:a,wpcomProductSlug:s?`${r}:-q-${s}`:r,discountPrice:e&&e!==c&&!i?.reason?e/12:null,fullPrice:c/12,currencyCode:n}}const{discountPrice:n,discountPricePerMonth:r,fullPrice:s,fullPricePerMonth:i,currencyCode:l,wpcomProductSlug:o}=e;return{wpcomFreeProductSlug:a,wpcomProductSlug:o,discountPrice:n&&n!==s&&!c?.reason?r:null,fullPrice:i,currencyCode:l}})(a.pricingForUi),{install:v,isPending:f}=(0,l.A)(e),{isUserConnected:k}=(0,d.A)(),{myJetpackUrl:w,siteSuffix:E}=(0,u.A$)(),{activate:y,isPending:A}=(0,i.A)(e),{run:b}=(0,c.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:n,redirectUrl:w,connectAfterCheckout:!k,siteSuffix:E}),{run:j}=(0,c.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:s,redirectUrl:w,connectAfterCheckout:!k,siteSuffix:E}),R=(0,r.useCallback)((()=>{s?j():y()}),[y,j,s]),_=(0,r.useCallback)((()=>{if(t("jetpack_myjetpack_evaluation_recommendations_checkout_click",{slug:e}),"crm"===e)return y(),void window.open("https://jetpackcrm.com/pricing/","_blank");b()}),[y,t,b,e]),C=(0,r.useCallback)((()=>{t("jetpack_myjetpack_evaluation_recommendations_install_plugin_click",{product:e}),v()}),[e,v,t]),x=(0,r.useCallback)((()=>{t("jetpack_myjetpack_evaluation_recommendations_manage_click",{product:e})}),[e,t]);return{secondaryAction:h(a),primaryAction:p(a,{onCheckout:_,onActivate:R,onInstall:C,onManage:x}),isFeature:a.isFeature,hasFreeOffering:a.hasFreeOffering,isActivating:A,isInstalling:f,...g}}},8412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var c=a(6072),n=a.n(c),r=a(1504),s=a(6176);const i=e=>React.createElement(s.A,n()({slug:r.D_.JETPACK_AI,upgradeInInterstitial:!0},e))},9674:(e,t,a)=>{"use strict";a.d(t,{z:()=>w});var c=a(8412),n=a(6724),r=a(161),s=a(9838),i=a(5375),l=a(1686),o=a(5383),u=a(5243),m=a(4274),d=a(2917),p=a(414),h=a(7014),g=a(4169),v=a(7769),f=a(4073),k=a(7631);const w={backup:r.A,protect:m.A,"anti-spam":n.A,boost:s.A,search:p.A,videopress:k.A,stats:f.A,crm:l.A,social:v.A,ai:c.A,"jetpack-ai":c.A,security:h.A,growth:o.A,complete:i.A,extras:null,scan:null,creator:null,newsletter:u.A,"related-posts":d.A,"site-accelerator":g.A}},6724:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var c=a(6072),n=a.n(c),r=a(8120),s=a.n(r),i=a(1504),l=a(6176);const o=e=>React.createElement(l.A,n()({slug:i.D_.ANTI_SPAM},e));o.propTypes={admin:s().bool};const u=o},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var c=a(6072),n=a.n(c),r=a(7425),s=a(3924),i=a(6427),l=a(7723),o=a(3022),u=a(2290),m=a(8120),d=a.n(m),p=a(1609),h=a(8837),g=a(1504),v=a(4923),f=a(280),k=a(8242),w=a(4526),E=a(271),y=a(6581),A=a(6176),b=a(2660),j=a(3649);const __=l.__,_n=l._n,R=g.D_.BACKUP,_=e=>{const{detail:t}=(0,v.A)(R),{status:a}=t,{backup_failure:c}=(0,k.A$)("redBubbleAlerts")||{},{status:s}=c||{},i=a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE,{title:l,text:o}=(0,E.t)()||{};return i?React.createElement(C,n()({slug:R},e)):React.createElement(A.A,n()({slug:R,Description:()=>null},e),a===h.hp.NEEDS_ATTENTION__ERROR&&c&&React.createElement("div",{className:j.A.backupErrorContainer},React.createElement("div",{className:j.A.iconContainer},React.createElement(u.A,{icon:"notice",size:16,className:j.A.iconError})),React.createElement("div",{className:j.A.contentContainer},React.createElement(r.Ay,{variant:"body-small",className:"value-section__heading"},__("The last backup attempt failed.","jetpack-my-jetpack"),React.createElement(b.I,{tracksEventName:"backup_card_tooltip_open",tracksEventProps:{location:"backup-error",status:a,backup_status:s,feature:"jetpack-backup"},expandOnMobile:!0},React.createElement(React.Fragment,null,React.createElement("h3",null,l),React.createElement("p",null,o),React.createElement("p",null,__("Check out our troubleshooting guide or contact your hosting provider to resolve the issue.","jetpack-my-jetpack"))))),React.createElement(r.Ay,{variant:"body-small",className:j.A.error_description},__("Check out our troubleshooting guide.","jetpack-my-jetpack")))))},C=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),c=t?.last_rewindable_event,i=c?.published,o=t?.undo_backup_id,{recordEvent:m}=(0,w.A)(),{siteSuffix:d=""}=(0,k.A$)(),p={href:(0,s.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(A.A,n()({},e,{showMenu:!0,isDataLoading:a,Description:c?()=>React.createElement(r.Ay,{variant:"body-small",className:j.A.description},React.createElement("span",null,__("Activity Detected","jetpack-my-jetpack")),React.createElement("span",{className:j.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),c=Math.floor(t%36e5/6e4),n=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)( // translators: %s is the number of hours since the last backup diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php index c341a9f8..7cec298d 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php @@ -128,20 +128,15 @@ public static function get_paid_plan_product_slugs() { } /** - * Determine if the site has an Akismet plan. + * Check if the product has a free plan + * In this case we are only checking for an API key. The has_paid_plan_for_product will check to see if the specific site has a paid plan * - * @return bool - whether an API key was found + * @return bool */ - public static function has_paid_plan_for_product() { - if ( parent::has_paid_plan_for_product() ) { - return true; - } - // As a fallback, we're checking if the site has an API key for Akismet. - // Note that some Akismet Plans are free - we're just checking for an API key and don't have the perspective of the plan attached to it here + public static function has_free_plan_for_product() { $akismet_api_key = apply_filters( 'akismet_get_api_key', defined( 'WPCOM_API_KEY' ) ? constant( 'WPCOM_API_KEY' ) : get_option( 'wordpress_api_key' ) ); if ( ! empty( $akismet_api_key ) ) { return true; - } return false; diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php index e8d2ca67..5e747988 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php @@ -643,7 +643,7 @@ public static function has_trial_support() { * @return boolean */ public static function is_upgradable() { - return false; + return ! static::has_paid_plan_for_product() && ! static::is_bundle_product(); } /** diff --git a/jetpack_vendor/i18n-map.php b/jetpack_vendor/i18n-map.php index 78906af0..123d97d5 100644 --- a/jetpack_vendor/i18n-map.php +++ b/jetpack_vendor/i18n-map.php @@ -46,7 +46,7 @@ ), 'jetpack-my-jetpack' => array( 'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack', - 'ver' => '5.3.1-alpha1736358246', + 'ver' => '5.3.1-alpha1736441489', ), 'jetpack-password-checker' => array( 'path' => 'jetpack_vendor/automattic/jetpack-password-checker', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index d86440ac..527cf70b 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": "61296fde511cc781e4a2cdd1f1014cbf183e8271" + "reference": "0eb887c2f2e11021096b662c39ef369ee9e3c7da" }, "require": { "php": ">=7.2" @@ -63,7 +63,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "793e3a6a384b6809b7052aa72bbff88ee1271bf9" + "reference": "792b2e872f8cf6774e794bb41e66da52f00129ad" }, "require": { "php": ">=7.2" @@ -131,7 +131,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "20781aac58e047b5646a69d9f36eb107ee78f931" + "reference": "916f7e4a4e500dedd872b15c3cc079b1f5268f46" }, "require": { "automattic/jetpack-constants": "^3.0.1", @@ -203,7 +203,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-autoloader", - "reference": "b2bc73b7f3de1ef2d25ab27b24e2532523bbd50c" + "reference": "114621849c2b7ced4fed9b20ac73175b93ba2416" }, "require": { "composer-plugin-api": "^2.2", @@ -274,7 +274,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-core", - "reference": "8415dcdeb0c0cc1b7d7306da1bad75c3864d45fd" + "reference": "678b10c4f55751e9f1f907def930fb60ca527a74" }, "require": { "automattic/jetpack-connection": "^6.2.2", @@ -345,7 +345,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score", - "reference": "9c5ffd49f7aee08cb964193c3f16251b5a4a355d" + "reference": "97ae79ebfac4989f56a46618a0e5a49c4394a854" }, "require": { "automattic/jetpack-boost-core": "^0.3.3", @@ -424,7 +424,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin", - "reference": "fe179fabb4344ba30d2a5df5f1e161713dfe9e4f" + "reference": "2bf64f5fc38da6449fd3bd8ea85e86791de80cda" }, "require": { "composer-plugin-api": "^2.2", @@ -487,7 +487,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-config", - "reference": "559f2e9ab0415b8bc96ddd8fae58b9909dbef40e" + "reference": "65dc76e4bc42bdd66ca85d505cbb9d236dcf635c" }, "require": { "php": ">=7.2" @@ -562,7 +562,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "13993dec9d7791213bc6992a64457936b3808953" + "reference": "09629f76ebcdf50375b89667f6bdbfe658829f85" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -655,7 +655,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "95bb8267493255d450ca238231813aaf8154afc1" + "reference": "d4f0ea6a19cfcffdfb2a4e0e508def0282f4afbe" }, "require": { "php": ">=7.2" @@ -712,7 +712,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "f8b774c1a1448c7ae0066f624264451b633c5bec" + "reference": "5a728ae3d5384123907dec359bac0757a88a6255" }, "require": { "php": ">=7.2" @@ -768,7 +768,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-explat", - "reference": "56f135fc7bd6eba10211049208fa9addbfc9b328" + "reference": "c081b47a902dce663c514a6185ec61d863978341" }, "require": { "automattic/jetpack-connection": "^6.2.2", @@ -846,7 +846,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "3c6ba351b72eaeeca6a837d53e3c308d620eeecb" + "reference": "d2a966eef2e2e721757f389e6e4293486feaff5d" }, "require": { "php": ">=7.2" @@ -907,7 +907,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "f84d7220960a1166bd1cd192ed75b4b0fad1f444" + "reference": "6295bc9526aa6d43eeded30371281c9102aa9fbe" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -985,7 +985,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-licensing", - "reference": "55230592a6f693f8ac788b24429da8872e54dbfd" + "reference": "05cdbf29596c907a8ee9bea9e88376b5e9a5bbc2" }, "require": { "automattic/jetpack-connection": "^6.2.2", @@ -1050,7 +1050,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "ea7b32dc2db91dc2634bc0d1131a91fc76852723" + "reference": "fca203fd57e7cc0ce4170b54f4d7e3068762e47c" }, "require": { "php": ">=7.2" @@ -1101,12 +1101,12 @@ }, { "name": "automattic/jetpack-my-jetpack", - "version": "5.3.1-alpha.1736358246", - "version_normalized": "5.3.1.0-alpha1736358246", + "version": "5.3.1-alpha.1736441489", + "version_normalized": "5.3.1.0-alpha1736441489", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack", - "reference": "e10aab95488e461e2f0f99799abeb50f7a6cfcbb" + "reference": "aa015bd094b3ce7a7b714591d331986aad15361c" }, "require": { "automattic/jetpack-admin-ui": "^0.5.1", @@ -1211,7 +1211,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "4ab0c49f33dd9449a8f317247e3d0ba01474f141" + "reference": "b1f51595bd30a3190d1ea7e160beff05740e39f8" }, "require": { "php": ">=7.2" @@ -1275,7 +1275,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "828afa7abf6574b99e60c9d0570d260713caaf97" + "reference": "d624e0bf954e220288df58367e7d7adfe480ea75" }, "require": { "automattic/jetpack-connection": "^6.2.2", @@ -1346,7 +1346,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer", - "reference": "e70eee4af8e86251e2898bf57c5b9f7c1271aa20" + "reference": "68aba7e7a84c0fe148ba184823197d2b4d1b16e5" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -1405,7 +1405,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-post-list", - "reference": "f6bf157f03cee339c131e89c1f7709379b7e0e00" + "reference": "a53e5229ae957b023e6602059c580a00af63028d" }, "require": { "automattic/jetpack-assets": "^4.0.2", @@ -1473,7 +1473,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-models", - "reference": "41dde2691c032a8cd60c0b782ab29654d509ebce" + "reference": "b9a36b60073228f1d3d10c8449cba2ff20558d65" }, "require": { "php": ">=7.2" @@ -1546,7 +1546,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-status", - "reference": "178ff828e75a62c93a70945e42894555f1ff9820" + "reference": "8535c38004f0213b5d360456f2fa77d8cac59dc0" }, "require": { "automattic/jetpack-connection": "^6.2.2", @@ -1624,7 +1624,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-publicize", - "reference": "05032ae71c49a228c4b58e01c4eea894adf83944" + "reference": "014a787b4c881ba5a6c17ba09119c2ee6021f10d" }, "require": { "automattic/jetpack-assets": "^4.0.2", @@ -1709,7 +1709,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "1b5701c6479e3e3c4077a435c3278e7dcb90c29e" + "reference": "8c147294986cd7643cff1eda450c1734051f43f1" }, "require": { "automattic/jetpack-status": "^5.0.1", @@ -1767,7 +1767,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "41cc721275b84effdf29fa162256d01ed29251cc" + "reference": "06cf21924fe10e3af4e44a28eff53078f6c0723a" }, "require": { "php": ">=7.2" @@ -1824,7 +1824,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "415c83dbe1b653bb0384ba1048c5b97380e79cd1" + "reference": "a9b0b81143c726857af8ebde85b307d1c368c03a" }, "require": { "automattic/jetpack-constants": "^3.0.1", @@ -1891,7 +1891,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "0acfc0949671a8b0dc47a9208a54c1551d51555d" + "reference": "1fc5c69e0900cc9f96b1658736074b15ab8679e3" }, "require": { "automattic/jetpack-connection": "^6.2.2", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 0581351e..36c7f204 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-a8c-mc-stats' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '61296fde511cc781e4a2cdd1f1014cbf183e8271', + 'reference' => '0eb887c2f2e11021096b662c39ef369ee9e3c7da', '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.5.1', 'version' => '0.5.1.0', - 'reference' => '793e3a6a384b6809b7052aa72bbff88ee1271bf9', + 'reference' => '792b2e872f8cf6774e794bb41e66da52f00129ad', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-admin-ui', 'aliases' => array(), @@ -31,7 +31,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '4.0.2', 'version' => '4.0.2.0', - 'reference' => '20781aac58e047b5646a69d9f36eb107ee78f931', + 'reference' => '916f7e4a4e500dedd872b15c3cc079b1f5268f46', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-autoloader' => array( 'pretty_version' => '5.0.0', 'version' => '5.0.0.0', - 'reference' => 'b2bc73b7f3de1ef2d25ab27b24e2532523bbd50c', + 'reference' => '114621849c2b7ced4fed9b20ac73175b93ba2416', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-boost-core' => array( 'pretty_version' => '0.3.3', 'version' => '0.3.3.0', - 'reference' => '8415dcdeb0c0cc1b7d7306da1bad75c3864d45fd', + 'reference' => '678b10c4f55751e9f1f907def930fb60ca527a74', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-core', 'aliases' => array(), @@ -58,7 +58,7 @@ 'automattic/jetpack-boost-speed-score' => array( 'pretty_version' => '0.4.0', 'version' => '0.4.0.0', - 'reference' => '9c5ffd49f7aee08cb964193c3f16251b5a4a355d', + 'reference' => '97ae79ebfac4989f56a46618a0e5a49c4394a854', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-speed-score', 'aliases' => array(), @@ -67,7 +67,7 @@ 'automattic/jetpack-composer-plugin' => array( 'pretty_version' => '4.0.0', 'version' => '4.0.0.0', - 'reference' => 'fe179fabb4344ba30d2a5df5f1e161713dfe9e4f', + 'reference' => '2bf64f5fc38da6449fd3bd8ea85e86791de80cda', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin', 'aliases' => array(), @@ -76,7 +76,7 @@ 'automattic/jetpack-config' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '559f2e9ab0415b8bc96ddd8fae58b9909dbef40e', + 'reference' => '65dc76e4bc42bdd66ca85d505cbb9d236dcf635c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config', 'aliases' => array(), @@ -85,7 +85,7 @@ 'automattic/jetpack-connection' => array( 'pretty_version' => '6.2.2', 'version' => '6.2.2.0', - 'reference' => '13993dec9d7791213bc6992a64457936b3808953', + 'reference' => '09629f76ebcdf50375b89667f6bdbfe658829f85', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '3.0.1', 'version' => '3.0.1.0', - 'reference' => '95bb8267493255d450ca238231813aaf8154afc1', + 'reference' => 'd4f0ea6a19cfcffdfb2a4e0e508def0282f4afbe', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => 'f8b774c1a1448c7ae0066f624264451b633c5bec', + 'reference' => '5a728ae3d5384123907dec359bac0757a88a6255', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-device-detection', 'aliases' => array(), @@ -112,7 +112,7 @@ 'automattic/jetpack-explat' => array( 'pretty_version' => '0.2.3', 'version' => '0.2.3.0', - 'reference' => '56f135fc7bd6eba10211049208fa9addbfc9b328', + 'reference' => 'c081b47a902dce663c514a6185ec61d863978341', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.4.1', 'version' => '0.4.1.0', - 'reference' => '3c6ba351b72eaeeca6a837d53e3c308d620eeecb', + 'reference' => 'd2a966eef2e2e721757f389e6e4293486feaff5d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '4.0.3', 'version' => '4.0.3.0', - 'reference' => 'f84d7220960a1166bd1cd192ed75b4b0fad1f444', + 'reference' => '6295bc9526aa6d43eeded30371281c9102aa9fbe', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-licensing' => array( 'pretty_version' => '3.0.2', 'version' => '3.0.2.0', - 'reference' => '55230592a6f693f8ac788b24429da8872e54dbfd', + 'reference' => '05cdbf29596c907a8ee9bea9e88376b5e9a5bbc2', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing', 'aliases' => array(), @@ -148,16 +148,16 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => 'ea7b32dc2db91dc2634bc0d1131a91fc76852723', + 'reference' => 'fca203fd57e7cc0ce4170b54f4d7e3068762e47c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-my-jetpack' => array( - 'pretty_version' => '5.3.1-alpha.1736358246', - 'version' => '5.3.1.0-alpha1736358246', - 'reference' => 'e10aab95488e461e2f0f99799abeb50f7a6cfcbb', + 'pretty_version' => '5.3.1-alpha.1736441489', + 'version' => '5.3.1.0-alpha1736441489', + 'reference' => 'aa015bd094b3ce7a7b714591d331986aad15361c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-my-jetpack', 'aliases' => array(), @@ -166,7 +166,7 @@ 'automattic/jetpack-password-checker' => array( 'pretty_version' => '0.4.1', 'version' => '0.4.1.0', - 'reference' => '4ab0c49f33dd9449a8f317247e3d0ba01474f141', + 'reference' => 'b1f51595bd30a3190d1ea7e160beff05740e39f8', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-password-checker', 'aliases' => array(), @@ -175,7 +175,7 @@ 'automattic/jetpack-plans' => array( 'pretty_version' => '0.5.1', 'version' => '0.5.1.0', - 'reference' => '828afa7abf6574b99e60c9d0570d260713caaf97', + 'reference' => 'd624e0bf954e220288df58367e7d7adfe480ea75', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-plugins-installer' => array( 'pretty_version' => '0.5.0', 'version' => '0.5.0.0', - 'reference' => 'e70eee4af8e86251e2898bf57c5b9f7c1271aa20', + 'reference' => '68aba7e7a84c0fe148ba184823197d2b4d1b16e5', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-plugins-installer', 'aliases' => array(), @@ -193,7 +193,7 @@ 'automattic/jetpack-post-list' => array( 'pretty_version' => '0.7.3-alpha.1736419796', 'version' => '0.7.3.0-alpha1736419796', - 'reference' => 'f6bf157f03cee339c131e89c1f7709379b7e0e00', + 'reference' => 'a53e5229ae957b023e6602059c580a00af63028d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-post-list', 'aliases' => array(), @@ -202,7 +202,7 @@ 'automattic/jetpack-protect-models' => array( 'pretty_version' => '0.4.1', 'version' => '0.4.1.0', - 'reference' => '41dde2691c032a8cd60c0b782ab29654d509ebce', + 'reference' => 'b9a36b60073228f1d3d10c8449cba2ff20558d65', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-models', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-protect-status' => array( 'pretty_version' => '0.4.1', 'version' => '0.4.1.0', - 'reference' => '178ff828e75a62c93a70945e42894555f1ff9820', + 'reference' => '8535c38004f0213b5d360456f2fa77d8cac59dc0', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status', 'aliases' => array(), @@ -220,7 +220,7 @@ 'automattic/jetpack-publicize' => array( 'pretty_version' => '0.57.2-alpha.1736424336', 'version' => '0.57.2.0-alpha1736424336', - 'reference' => '05032ae71c49a228c4b58e01c4eea894adf83944', + 'reference' => '014a787b4c881ba5a6c17ba09119c2ee6021f10d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-publicize', 'aliases' => array(), @@ -229,7 +229,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '3.0.1', 'version' => '3.0.1.0', - 'reference' => '1b5701c6479e3e3c4077a435c3278e7dcb90c29e', + 'reference' => '8c147294986cd7643cff1eda450c1734051f43f1', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect', 'aliases' => array(), @@ -238,7 +238,7 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '3.0.1', 'version' => '3.0.1.0', - 'reference' => '41cc721275b84effdf29fa162256d01ed29251cc', + 'reference' => '06cf21924fe10e3af4e44a28eff53078f6c0723a', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles', 'aliases' => array(), @@ -256,7 +256,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '5.0.1', 'version' => '5.0.1.0', - 'reference' => '415c83dbe1b653bb0384ba1048c5b97380e79cd1', + 'reference' => 'a9b0b81143c726857af8ebde85b307d1c368c03a', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status', 'aliases' => array(), @@ -265,7 +265,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '4.3.0-alpha.1736289477', 'version' => '4.3.0.0-alpha1736289477', - 'reference' => '0acfc0949671a8b0dc47a9208a54c1551d51555d', + 'reference' => '1fc5c69e0900cc9f96b1658736074b15ab8679e3', '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 89a7886d..31c44da8 100644 --- a/vendor/composer/jetpack_autoload_classmap.php +++ b/vendor/composer/jetpack_autoload_classmap.php @@ -339,143 +339,143 @@ 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-status/src/class-modules.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Activitylog' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-activitylog.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Hybrid_Product' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Initializer' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Jetpack_Manage' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-jetpack-manage.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Module_Product' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-module-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Product' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Anti_Spam' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Backup' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-backup.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Boost' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-boost.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Complete' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-complete.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Creator' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-creator.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Crm' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-crm.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Extras' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-extras.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Growth' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-growth.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Jetpack_Ai' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Newsletter' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-newsletter.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Protect' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-protect.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Related_Posts' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-related-posts.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Scan' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-scan.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search_Stats' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Security' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-security.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Site_Accelerator' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-site-accelerator.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Social' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Starter' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-starter.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Stats' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Videopress' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-videopress.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_AI' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Product_Data' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-product-data.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Purchases' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-purchases.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Recommendations_Evaluation' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-recommendations-evaluation.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Zendesk_Chat' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-zendesk-chat.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Wpcom_Products' => array( - 'version' => '5.3.1.0-alpha1736358246', + 'version' => '5.3.1.0-alpha1736441489', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-wpcom-products.php' ), 'Automattic\\Jetpack\\Partner' => array(