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 a335cd24..caf635f5 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-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' => '9935331c529ee529cc95'); + array('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' => 'e348a883743b5b5e6e83'); diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js index 72b9f067..d484bcc2 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js @@ -17,27 +17,27 @@ __("Connected as %1$s%2$s.","jetpack-my-jetpack"),n.currentUser?.wpcomUser?.disp __("Also connected: %s (Owner).","jetpack-my-jetpack"),M.connectionOwner)})),React.createElement(i.A,{apiRoot:e,apiNonce:t,onDisconnected:Z,connectedPlugins:p,connectedSiteId:C,connectedUser:M,isOpen:P,onClose:K,context:x}))}},3593:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8837),c=a(4923),r=a(8117),s=a(1870),i=a(3981),o=a(4596);function l(){const{apiRoot:e,apiNonce:t,topJetpackMenuItemUrl:a,connectedPlugins:l}=(0,s.A)(),u=(0,i.A)(n.NM.Connection),m=(0,c.V)(),d=(0,r.A)(m);return React.createElement(o.A,{apiRoot:e,apiNonce:t,redirectUri:a,onConnectUser:u,connectedPlugins:l,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),o=a(2778),l=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,l.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:o.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),o=a(28),l=a(8870);const __=n.__;const u=function({onClick:e=()=>{},reload:t}){const a=t?"/?reload=true":"/";return i().createElement(o.N_,{to:a,className:l.A.link,onClick:e},i().createElement(c.A,{icon:r.A,className:l.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),o=a(3022),l=a(1609),u=a(9331);a(4800);const __=i.__;function m({productName:e,giftedDate:t}){const[a,m]=(0,l.useState)(!1),d=(0,l.useCallback)((()=>m(!0)),[m]),p={position:"top center",placement:"top",animate:!0,noArrow:!1,resize:!1,flip:!1,offset:6,focusOnMount:"container",onClose:(0,l.useCallback)((()=>m(!1)),[m]),className:u.A.container},h=(0,o.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:o}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;return!i||o?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:()=>o});var n=a(1883),c=a(6427),r=a(9491),s=a(1609),i=a(4526);a(6632);const o=({children:e,className:t,icon:a="info-outline",iconSize:o=14,tracksEventName:l,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&&l&&m(`jetpack_${l}`,{page:"my-jetpack",...u}),!e)))),[m,l,u]),f=(0,s.useCallback)((()=>{d.current&&!d.current.contains(document.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:o})),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),o=a(4526),l=a(4576);const __=r.__,u=e=>{const{isAgencyAccount:t=!1}=e,{recordEvent:a}=(0,o.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:l,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:()=>P});var n=a(6072),c=a.n(n),r=a(442),s=a(8089),i=a(7656),o=a(2947),l=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),k=a(280),E=a(8242),y=a(9812),A=a(4526),b=a(1870),_=a(7436),j=a(3593),R=a(5167),C=a(6894),x=a(3449),N=a(3958),S=a(5487),z=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[o]=(0,r.A)(["md"],[">"]),l=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"]]:o})},React.createElement(i.A,c()({hideCloseButton:!0},a,{title:t,actions:l}),React.createElement("div",{className:M.A.message},e)))};function P(){(0,p.rk)("explat_test_jetpack_implementation_aa_test"),(0,_.A)();const{redBubbleAlerts:e}=(0,E.A$)(),{jetpackManage:t={},adminUrl:a}=(0,E.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:P}=s||{},{data:V,isLoading:H}=(0,k.A)({name:f._,query:{path:f.rR}}),{data:I,isLoading:B}=(0,k.A)({name:f.nw,query:{path:f.O2}}),O=V?.is_available,T=I?.user?.jwt,F=!B&&!H&&O&&T,D="1"===(0,E.A$)("userIsNewToJetpack"),{recordEvent:U}=(0,A.A)(),[q,J]=(0,g.useState)(!1);return(0,g.useLayoutEffect)((()=>{U("jetpack_myjetpack_page_view",{red_bubble_alerts:Object.keys(e).join(",")})}),[U,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(o.A,{siteAdminUrl:a},React.createElement("hr",{className:M.A.separator}),React.createElement(C.A,null),!D&&React.createElement(l.A,{horizontalSpacing:0},React.createElement(u.A,null,React.createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"}))),n?React.createElement(z.A,null,i&&r&&React.createElement(L,{message:i,title:h,options:P})):i&&React.createElement(l.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(u.A,null,React.createElement(L,{message:i,title:h,options:P}))),c&&React.createElement(R.A,null),React.createElement(S.A,null),t.isEnabled&&React.createElement(l.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(l.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(j.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),o=a(1504),l=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 k({purchase:e={}}){const{product_name:t}=e;return React.createElement(React.Fragment,null,React.createElement(n.hE,null,t),React.createElement(E,e))}function E(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)();let n=__("Purchase a plan","jetpack-my-jetpack");e>=1&&(n=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"));const r=(0,s.useCallback)((()=>{t(e?"jetpack_myjetpack_plans_manage_click":"jetpack_myjetpack_plans_purchase_click")}),[e,t]),o=(0,p.A)(i.NM.Connection),l=(0,s.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||o()}),[o,a,t]);let v=__("Activate a license","jetpack-my-jetpack");a||(v=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:f="",adminUrl:k=""}=(0,u.A$)();return React.createElement("ul",null,React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:r,href:e?(0,h.A)():(0,g.A)(),weight:"regular",variant:"link",isExternalLink:!0},n)),f&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:l,href:a?`${k}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},v)))}function b(){const e=!!(0,u.A$)("userIsAdmin"),{data:t,isLoading:a,isError:n}=(0,l.A)({name:o.Ck,query:{path:o.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(k,{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),o=a(3512),l=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),k=a(1208);const __=s.__,E=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:_,isInstallingStandalone:j,className:R,onAdd:C,onInstall:x,onLearnMore:N,upgradeInInterstitial:S,isOwned:z})=>{const[M,L]=(0,h.useState)(!1),[P,V]=(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:D}=(0,f.A)();"jetpack-ai"===n&&E(n,H);const U=_||j,q=p?.length>0,J=(0,h.useMemo)((()=>({variant:U?void 0:"primary",disabled:U,size:"small",weight:"regular",className:R})),[U,R]),G=(0,h.useCallback)((()=>{switch("jetpack-ai"===n&&E(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=z?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||S?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,S,O,I,A,y,z]),$=(0,h.useMemo)((()=>q?[...p,G()]:[G()]),[p,G,q]),Q=(0,h.useCallback)((()=>{D("jetpack_myjetpack_product_card_dropdown_toggle",{product:n,state:M?"closed":"open"})}),[M,D,n]),W=(0,h.useCallback)((()=>{L(!M),Q()}),[M,Q]);if((0,h.useEffect)((()=>{V($[0])}),[$]),(0,w.A)(T,(e=>{F.current.contains(e.target)||(L(!1),Q())})),!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:k.A["action-button-dropdown"]},React.createElement("ul",{className:k.A["dropdown-menu"]},[...p,G()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{V($[a]),L(!1),D("jetpack_myjetpack_product_card_dropdown_action_click",{product:n,action:e})},className:k.A["dropdown-item"]},React.createElement("div",{className:k.A["dropdown-item-label"]},e,t&&React.createElement(i.A,{icon:o.A,size:16})),e===P.label&&React.createElement("div",{className:k.A["active-action-checkmark"]},React.createElement(i.A,{icon:l.A,size:24,fill:"white"}))))))));return React.createElement(React.Fragment,null,React.createElement("div",{className:(0,m.A)(k.A["action-button"],q?k.A["has-additional-actions"]:null)},React.createElement(r.A,c()({},J,P),P.label),q&&React.createElement("button",{className:(0,m.A)(k.A["dropdown-chevron"],"primary"===P.variant?k.A.primary:k.A.secondary),onClick:W,ref:F},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===P.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),o=a(8837),l=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:k,isDataLoading:E,isInstallingStandalone:y,slug:A,additionalActions:b,primaryActionOverride:_,secondaryAction:j,children:R,onInstallStandalone:C,onMouseEnter:x,onMouseLeave:N,recommendation:S,customLoadTracks:z}=e,{ownedProducts:M}=(0,l.A$)("lifecycleStats"),L=M?.includes(A),P=r===o.hp.SITE_CONNECTION_ERROR||r===o.hp.USER_CONNECTION_ERROR,V=r===o.hp.ABSENT||r===o.hp.ABSENT_WITH_PLAN,H=r===o.hp.NEEDS_PLAN,I=(0,s.A)({[f.A.plugin_absent]:V,[f.A["is-purchase-required"]]:H,[f.A["is-link"]]:V,[f.A["has-error"]]:P}),{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]),D=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_fixconnection_click",{product:A})}),[A,B]),U=(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,...z})}),[B,A,r,z]),React.createElement(m.A,{title:a,className:(0,s.A)(f.A.container,I),headerRightContent:null,onMouseEnter:x,onMouseLeave:N},S&&React.createElement(p.A,{slug:A}),React.createElement(n,null),E?React.createElement("span",{className:f.A.loading},__("Loading…","jetpack-my-jetpack")):R,S?React.createElement(h.A,{slug:A}):React.createElement("div",{className:f.A.actions},React.createElement("div",{className:f.A.buttons},j&&j?.positionFirst&&React.createElement(g.A,j),React.createElement(d.A,c()({},t,{onActivate:O,onFixConnection:D,onManage:F,onAdd:T,onInstall:q,onLearnMore:U,className:f.A.button,additionalActions:b,primaryActionOverride:_,isOwned:L})),j&&!j?.positionFirst&&React.createElement(g.A,j)),React.createElement(v.A,{status:r,isFetching:k,isInstallingStandalone:y,isOwned:L})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(7397),c=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=c.__,o=({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:()=>l});var n=a(6072),c=a.n(n),r=a(1112),s=a(3022),i=a(1208),o=a(6147);const l=({slug:e})=>{const{secondaryAction:t,purchaseAction:a,isActivating:n}=(0,o.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:()=>o});var n=a(7425),c=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=c.__,o=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:c})=>{const o=((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),l=(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:l},o)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(2558),c=a(7723),r=a(1609),s=a(8837),i=a(9935),o=a(4923),l=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,o.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,l.A$)(),{activate:w,isPending:k}=(0,i.A)(e),{run:E}=(0,n.A)({from:"my-jetpack",productSlug:c,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),{run:y}=(0,n.A)({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");E()}),[w,t,E,e]));return{secondaryAction:p(a),purchaseAction:d(a,A),isActivating:k,...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),o=a(1686),l=a(4274),u=a(414),m=a(7769),d=a(4073),p=a(7631);const h={backup:r.A,protect:l.A,"anti-spam":c.A,boost:s.A,search:u.A,videopress:p.A,stats:d.A,crm:o.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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.ANTI_SPAM},e));l.propTypes={admin:s().bool.isRequired};const u=l},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>R});var n=a(6072),c=a.n(n),r=a(3924),s=a(7425),i=a(7975),o=a(6427),l=a(7723),u=a(3022),m=a(2290),d=a(5739),p=a.n(d),h=a(1609),g=a(8837),v=a(1504),f=a(4923),w=a(280),k=a(8242),E=a(4526),y=a(6176),A=a(3649);const __=l.__,_n=l._n,b=v.D_.BACKUP,_=e=>{const{detail:t}=(0,f.A)(b),{status:a}=t;return a===g.hp.ACTIVE||a===g.hp.CAN_UPGRADE?React.createElement(j,c()({slug:b},e)):React.createElement(y.A,c()({slug:b},e))},j=e=>{const{data:t,isLoading:a}=(0,w.A)({name:v.Dz,query:{path:v.DB}}),n=t?.last_rewindable_event,i=n?.published,o=t?.undo_backup_id,{recordEvent:u}=(0,E.A)(),{siteSuffix:d=""}=(0,k.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:()=>{u("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)( +(0,s.sprintf)(__("Learn about %s","jetpack-my-jetpack"),a));const K=q&&React.createElement("div",{ref:T,className:k.A["action-button-dropdown"]},React.createElement("ul",{className:k.A["dropdown-menu"]},[...p,G()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{V($[a]),L(!1),D("jetpack_myjetpack_product_card_dropdown_action_click",{product:n,action:e})},className:k.A["dropdown-item"]},React.createElement("div",{className:k.A["dropdown-item-label"]},e,t&&React.createElement(i.A,{icon:o.A,size:16})),e===P.label&&React.createElement("div",{className:k.A["active-action-checkmark"]},React.createElement(i.A,{icon:l.A,size:24,fill:"white"}))))))));return React.createElement(React.Fragment,null,React.createElement("div",{className:(0,m.A)(k.A["action-button"],q?k.A["has-additional-actions"]:null)},React.createElement(r.A,c()({},J,P),P.label),q&&React.createElement("button",{className:(0,m.A)(k.A["dropdown-chevron"],"primary"===P.variant?k.A.primary:k.A.secondary),onClick:W,ref:F},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===P.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),o=a(8837),l=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:k,isDataLoading:E,isInstallingStandalone:y,slug:A,additionalActions:b,primaryActionOverride:_,secondaryAction:j,children:R,onInstallStandalone:C,onMouseEnter:x,onMouseLeave:N,recommendation:S,customLoadTracks:z}=e,{ownedProducts:M}=(0,l.A$)("lifecycleStats"),L=M?.includes(A),P=r===o.hp.SITE_CONNECTION_ERROR||r===o.hp.USER_CONNECTION_ERROR,V=r===o.hp.ABSENT||r===o.hp.ABSENT_WITH_PLAN,H=r===o.hp.NEEDS_PLAN,I=(0,s.A)({[f.A.plugin_absent]:V,[f.A["is-purchase-required"]]:H,[f.A["is-link"]]:V,[f.A["has-error"]]:P}),{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]),D=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_fixconnection_click",{product:A})}),[A,B]),U=(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,...z})}),[B,A,r,z]),React.createElement(m.A,{title:a,className:(0,s.A)(f.A.container,I),headerRightContent:null,onMouseEnter:x,onMouseLeave:N},S&&React.createElement(p.A,{slug:A}),React.createElement(n,null),E?React.createElement("span",{className:f.A.loading},__("Loading…","jetpack-my-jetpack")):R,S?React.createElement(h.A,{slug:A}):React.createElement("div",{className:f.A.actions},React.createElement("div",{className:f.A.buttons},j&&j?.positionFirst&&React.createElement(g.A,j),React.createElement(d.A,c()({},t,{onActivate:O,onFixConnection:D,onManage:F,onAdd:T,onInstall:q,onLearnMore:U,className:f.A.button,additionalActions:b,primaryActionOverride:_,isOwned:L})),j&&!j?.positionFirst&&React.createElement(g.A,j)),React.createElement(v.A,{status:r,isFetching:k,isInstallingStandalone:y,isOwned:L})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(7397),c=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=c.__,o=({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:()=>l});var n=a(6072),c=a.n(n),r=a(1112),s=a(3022),i=a(1208),o=a(6147);const l=({slug:e})=>{const{secondaryAction:t,purchaseAction:a,isActivating:n}=(0,o.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:()=>o});var n=a(7425),c=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=c.__,o=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:c})=>{const o=((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),l=(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:l},o)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(2558),c=a(7723),r=a(1609),s=a(8837),i=a(9935),o=a(4923),l=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,o.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,l.A$)(),{activate:w,isPending:k}=(0,i.A)(e),{run:E}=(0,n.A)({from:"my-jetpack",productSlug:c,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),{run:y}=(0,n.A)({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");E()}),[w,t,E,e]));return{secondaryAction:p(a),purchaseAction:d(a,A),isActivating:k,...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),o=a(1686),l=a(4274),u=a(414),m=a(7769),d=a(4073),p=a(7631);const h={backup:r.A,protect:l.A,"anti-spam":c.A,boost:s.A,search:u.A,videopress:p.A,stats:d.A,crm:o.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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.ANTI_SPAM},e));l.propTypes={admin:s().bool.isRequired};const u=l},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>R});var n=a(6072),c=a.n(n),r=a(3924),s=a(7425),i=a(6427),o=a(7723),l=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),k=a(4526),E=a(6581),y=a(6176),A=a(3649);const __=o.__,_n=o._n,b=g.D_.BACKUP,_=e=>{const{detail:t}=(0,v.A)(b),{status:a}=t;return a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE?React.createElement(j,c()({slug:b},e)):React.createElement(y.A,c()({slug:b},e))},j=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),n=t?.last_rewindable_event,i=n?.published,l=t?.undo_backup_id,{recordEvent:m}=(0,k.A)(),{siteSuffix:d=""}=(0,w.A$)(),p={href:(0,r.A)("jetpack-backup-undo-cta",{path:l,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:l})},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,o.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)( +_n("%s day ago","%s days ago",e,"jetpack-my-jetpack"),e):a>0?(0,o.sprintf)( // translators: %s is the number of hours since the last backup -_n("%s hour ago","%s hours ago",a,"jetpack-my-jetpack"),a):n>0?(0,l.sprintf)( +_n("%s hour ago","%s hours ago",a,"jetpack-my-jetpack"),a):n>0?(0,o.sprintf)( // translators: %s is the number of minutes since the last backup -_n("%s minute ago","%s minutes ago",n,"jetpack-my-jetpack"),n):(0,l.sprintf)( +_n("%s minute ago","%s minutes ago",n,"jetpack-my-jetpack"),n):(0,o.sprintf)( // translators: %s is the number of seconds since the last backup -_n("%s second ago","%s seconds ago",c,"jetpack-my-jetpack"),c)}})(i))):null,additionalActions:n?[p]:[]}),n?React.createElement("div",{className:A.A.activity},React.createElement(m.A,{icon:n.gridicon,size:24}),React.createElement("p",{className:A.A.summary},n.summary)):null)};_.propTypes={admin:p().bool.isRequired},(e=>{const{data:t,isLoading:a}=(0,w.A)({name:v.gw,query:{path:v.Sm}}),n=(0,h.useMemo)((()=>{const e=[];return t?(Object.keys(t).forEach((a=>{0!==t[a]&&e.push([a,t[a]])})),e.sort(((e,t)=>e[1]{const a=e[0].split("_")[1],n=e[1];return React.createElement("li",{className:(0,u.A)(A.A["main-stat"],`main-stat-${t}`),key:t+a},React.createElement(React.Fragment,null,React.createElement("span",{className:(0,u.A)(A.A["visual-stat"]),"aria-hidden":"true"},(e=>{switch(e){case"post":return React.createElement(m.A,{icon:"posts",size:24});case"page":return React.createElement(m.A,{icon:"pages",size:24});default:return React.createElement(m.A,{icon:e,size:24})}})(a),React.createElement("span",null,(0,i.A)(n,r))),React.createElement(o.VisuallyHidden,null,({comment:e=>(0,l.sprintf)( +_n("%s second ago","%s seconds ago",c,"jetpack-my-jetpack"),c)}})(i))):null,additionalActions:n?[p]:[]}),n?React.createElement("div",{className:A.A.activity},React.createElement(u.A,{icon:n.gridicon,size:24}),React.createElement("p",{className:A.A.summary},n.summary)):null)};_.propTypes={admin:d().bool.isRequired},(e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.gw,query:{path:g.Sm}}),n=(0,p.useMemo)((()=>{const e=[];return t?(Object.keys(t).forEach((a=>{0!==t[a]&&e.push([a,t[a]])})),e.sort(((e,t)=>e[1]{const a=e[0].split("_")[1],n=e[1];return React.createElement("li",{className:(0,l.A)(A.A["main-stat"],`main-stat-${t}`),key:t+a},React.createElement(React.Fragment,null,React.createElement("span",{className:(0,l.A)(A.A["visual-stat"]),"aria-hidden":"true"},(e=>{switch(e){case"post":return React.createElement(u.A,{icon:"posts",size:24});case"page":return React.createElement(u.A,{icon:"pages",size:24});default:return React.createElement(u.A,{icon:e,size:24})}})(a),React.createElement("span",null,(0,E.A)(n))),React.createElement(i.VisuallyHidden,null,({comment:e=>(0,o.sprintf)( // translators: %d is the number of comments -_n("%d comment","%d comments",e,"jetpack-my-jetpack"),e),post:e=>(0,l.sprintf)( +_n("%d comment","%d comments",e,"jetpack-my-jetpack"),e),post:e=>(0,o.sprintf)( // translators: %d is the number of posts -_n("%d post","%d posts",e,"jetpack-my-jetpack"),e),page:e=>(0,l.sprintf)( +_n("%d post","%d posts",e,"jetpack-my-jetpack"),e),page:e=>(0,o.sprintf)( // translators: %d is the number of pages -_n("%d page","%d pages",e,"jetpack-my-jetpack"),e),image:e=>(0,l.sprintf)( +_n("%d page","%d pages",e,"jetpack-my-jetpack"),e),image:e=>(0,o.sprintf)( // translators: %d is the number of images -_n("%d image","%d images",e,"jetpack-my-jetpack"),e),video:e=>(0,l.sprintf)( +_n("%d image","%d images",e,"jetpack-my-jetpack"),e),video:e=>(0,o.sprintf)( // translators: %d is the number of videos -_n("%d video","%d videos",e,"jetpack-my-jetpack"),e),audio:e=>(0,l.sprintf)( +_n("%d video","%d videos",e,"jetpack-my-jetpack"),e),audio:e=>(0,o.sprintf)( // translators: %d is the number of files -_n("%d audio file","%d audio files",e,"jetpack-my-jetpack"),e)}[c=a]||(e=>`${e} ${c}`))(n))));var c})))))}).propTypes={productData:p().object};const R=_},9520:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(8454),c=a(6461),r=a(580),s=a(6427),i=a(9491),o=a(7723),l=a(1113),u=a(2510),m=a(1609),d=a(8837),p=a(4923),h=a(8242),g=a(4526),v=a(1870),f=a(6683);a(2106);const __=o.__,w=()=>{const{recordEvent:e}=(0,g.A)(),[t,a]=(0,m.useState)(!1),[o,w]=(0,m.useState)(""),[k,E]=(0,m.useState)(null),[y,A]=(0,m.useState)(null),[b,_]=(0,m.useState)(!1),[j,R]=(0,m.useState)(!1),[C,x]=(0,m.useState)(!1),N=(0,i.useViewportMatch)("medium","<"),{siteUrl:S="",latestBoostSpeedScores:z}=(0,h.A$)(),{apiRoot:M,apiNonce:L,isSiteConnected:P}=(0,v.A)(),{detail:V}=(0,p.A)("boost"),{status:H}=V,I=H===d.hp.ACTIVE||H===d.hp.CAN_UPGRADE,B=(e,t)=>{const{mobile:a,desktop:n}=t||{};var c,r;a&&n&&e((c=a,r=n,Math.round((c+r)/2)))},O=e=>{const{scores:t,previousScores:a}=e||{};B(E,t),B(A,a),(e=>{const{mobile:t,desktop:a}=e||{};t&&a&&w((0,n.T)(t,a))})(t)},T=async()=>{P?(a(!0),(0,n.sE)(!0,M,S,L).then((e=>{const t=(0,n.T)(e.current.mobile,e.current.desktop);w(t),B(E,e.current),B(A,z.scores),a(!1)})).catch((t=>{e("jetpack_boost_speed_score_error",{feature:"jetpack-boost",position:"my-jetpack",error:t}),z&&z.scores?O(z):_(!0),a(!1)}))):_(!0)},F=(0,m.useMemo)((()=>y&&k?k{R(!0)}),[R]),q=(0,m.useCallback)((()=>{R(!1)}),[R]);return(0,m.useEffect)((()=>{z?I?(0,n.US)(1e3*z.timestamp)<1?O(z):T():(0,n.US)(1e3*z.timestamp)<14?O(z):T():T()}),[]),(0,m.useEffect)((()=>{t||!j||C||(e("jetpack_boost_card_tooltip_viewed",{feature:"jetpack-boost",position:"my-jetpack"}),x(!0))}),[t,j,e,C]),!b&&React.createElement("div",{className:"mj-boost-speed-score",role:"presentation",onMouseEnter:U,onMouseLeave:q,onClick:j?q:U,onFocus:U,onBlur:q},t?React.createElement(c.A,{color:"#23282d",size:16}):React.createElement(React.Fragment,null,React.createElement("div",{className:"mj-boost-speed-score__grade"},React.createElement("span",null,__("Your website’s overall speed score:","jetpack-my-jetpack")),React.createElement("span",{className:"mj-boost-speed-score__grade--letter"},o,!t&&j&&React.createElement(s.Popover,{placement:N?"top-end":"top-start",noArrow:!1,offset:10},React.createElement("div",{className:"boost-score-tooltip__parent"},React.createElement("p",{className:"boost-score-tooltip__heading"},__("Site speed performance:","jetpack-my-jetpack")," ",o),React.createElement("p",{className:"boost-score-tooltip__content"},D))))),React.createElement("div",{className:"mj-boost-speed-score__bar"},React.createElement(r.A,{score:k,active:k>0,isLoading:t,showPrevScores:!1,scoreBarType:"desktop",noBoostScoreTooltip:null})),!!F&&React.createElement("div",{className:"mj-boost-speed-score__increase"},React.createElement(l.A,{size:18,icon:u.A}),React.createElement("span",null,F))))}},9838:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(6072),c=a.n(n),r=a(7723),s=a(8837),i=a(1504),o=a(6176),l=a(9520);const __=r.__,u=e=>{const t={[s.hp.ABSENT]:{label:__("Boost your site","jetpack-my-jetpack")}};return React.createElement(o.A,c()({slug:i.D_.BOOST,primaryActionOverride:t},e),React.createElement(l.A,null))}},6683:(e,t,a)=>{"use strict";a.d(t,{R:()=>r});var n=a(7723),c=a(4923);const __=n.__;function r({speedLetterGrade:e,boostScoreIncrease:t}){const{detail:a}=(0,c.A)("boost"),{isPluginActive:r,hasPaidPlanForProduct:s}=a;if(r){if(s){if(t)return(0,n.sprintf)(/* translators: %d is the number (positive integer) of points the speed has increased */ +_n("%d audio file","%d audio files",e,"jetpack-my-jetpack"),e)}[c=a]||(e=>`${e} ${c}`))(n))));var c})))))}).propTypes={productData:d().object};const R=_},9520:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(8454),c=a(6461),r=a(580),s=a(6427),i=a(9491),o=a(7723),l=a(1113),u=a(2510),m=a(1609),d=a(8837),p=a(4923),h=a(8242),g=a(4526),v=a(1870),f=a(6683);a(2106);const __=o.__,w=()=>{const{recordEvent:e}=(0,g.A)(),[t,a]=(0,m.useState)(!1),[o,w]=(0,m.useState)(""),[k,E]=(0,m.useState)(null),[y,A]=(0,m.useState)(null),[b,_]=(0,m.useState)(!1),[j,R]=(0,m.useState)(!1),[C,x]=(0,m.useState)(!1),N=(0,i.useViewportMatch)("medium","<"),{siteUrl:S="",latestBoostSpeedScores:z}=(0,h.A$)(),{apiRoot:M,apiNonce:L,isSiteConnected:P}=(0,v.A)(),{detail:V}=(0,p.A)("boost"),{status:H}=V,I=H===d.hp.ACTIVE||H===d.hp.CAN_UPGRADE,B=(e,t)=>{const{mobile:a,desktop:n}=t||{};var c,r;a&&n&&e((c=a,r=n,Math.round((c+r)/2)))},O=e=>{const{scores:t,previousScores:a}=e||{};B(E,t),B(A,a),(e=>{const{mobile:t,desktop:a}=e||{};t&&a&&w((0,n.T)(t,a))})(t)},T=async()=>{P?(a(!0),(0,n.sE)(!0,M,S,L).then((e=>{const t=(0,n.T)(e.current.mobile,e.current.desktop);w(t),B(E,e.current),B(A,z.scores),a(!1)})).catch((t=>{e("jetpack_boost_speed_score_error",{feature:"jetpack-boost",position:"my-jetpack",error:t}),z&&z.scores?O(z):_(!0),a(!1)}))):_(!0)},F=(0,m.useMemo)((()=>y&&k?k{R(!0)}),[R]),q=(0,m.useCallback)((()=>{R(!1)}),[R]);return(0,m.useEffect)((()=>{z?I?(0,n.US)(1e3*z.timestamp)<1?O(z):T():(0,n.US)(1e3*z.timestamp)<14?O(z):T():T()}),[]),(0,m.useEffect)((()=>{t||!j||C||(e("jetpack_boost_card_tooltip_viewed",{feature:"jetpack-boost",position:"my-jetpack"}),x(!0))}),[t,j,e,C]),!b&&React.createElement("div",{className:"mj-boost-speed-score",role:"presentation",onMouseEnter:U,onMouseLeave:q,onClick:j?q:U,onFocus:U,onBlur:q},t?React.createElement(c.A,{color:"#23282d",size:16}):React.createElement(React.Fragment,null,React.createElement("div",{className:"mj-boost-speed-score__grade"},React.createElement("span",null,__("Your website’s overall speed score:","jetpack-my-jetpack")),React.createElement("span",{className:"mj-boost-speed-score__grade--letter"},o,!t&&j&&React.createElement(s.Popover,{placement:N?"top-end":"top-start",noArrow:!1,offset:10},React.createElement("div",{className:"boost-score-tooltip__parent"},React.createElement("p",{className:"boost-score-tooltip__heading"},__("Site speed performance:","jetpack-my-jetpack")," ",o),React.createElement("p",{className:"boost-score-tooltip__content"},D))))),React.createElement("div",{className:"mj-boost-speed-score__bar"},React.createElement(r.A,{score:k,active:k>0,isLoading:t,showPrevScores:!1,scoreBarType:"desktop",noBoostScoreTooltip:null})),!!F&&React.createElement("div",{className:"mj-boost-speed-score__increase"},React.createElement(l.A,{size:18,icon:u.A}),React.createElement("span",null,F))))}},9838:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(6072),c=a.n(n),r=a(7723),s=a(8837),i=a(1504),o=a(6176),l=a(9520);const __=r.__,u=e=>{const t={[s.hp.ABSENT]:{label:__("Boost your site","jetpack-my-jetpack")}};return React.createElement(o.A,c()({slug:i.D_.BOOST,primaryActionOverride:t},e),React.createElement(l.A,null))}},6683:(e,t,a)=>{"use strict";a.d(t,{R:()=>r});var n=a(7723),c=a(4923);const __=n.__;function r({speedLetterGrade:e,boostScoreIncrease:t}){const{detail:a}=(0,c.A)("boost"),{isPluginActive:r,hasPaidPlanForProduct:s}=a;if(r){if(s){if(t)return(0,n.sprintf)(/* translators: %d is the number (positive integer) of points the speed has increased */ __("Your speed has improved by %d points! Boost is working to enhance your performance with automated tools.","jetpack-my-jetpack"),t);switch(e){case"A":return __("Your site is fast! Boost is working to enhance your performance with automated tools.","jetpack-my-jetpack");case"B":case"C":case"D":case"E":case"F":return __("Visit the Boost dashboard to view your historical speed scores and manage your product settings.","jetpack-my-jetpack");default:return __("Visit the Boost dashboard to view your site’s speed scores and manage your product settings.","jetpack-my-jetpack")}}if(t)return(0,n.sprintf)(/* translators: %d is the number (integer) of points the speed has increased */ __("Your speed has improved by %d points! Upgrade Boost to unlock automated CSS and image optimization tools to maintain your high score.","jetpack-my-jetpack"),t);switch(e){case"A":return __("Your site is fast! But maintaining a high speed isn’t easy. Upgrade Boost to use automated CSS and image optimization tools to improve your performance on the go.","jetpack-my-jetpack");case"B":return __("You are one step away from making your site blazing fast. Upgrade Boost to use automated CSS and image optimization tools to improve your performance.","jetpack-my-jetpack");default:return __("Improve your performance with automated CSS and image optimization tools by upgrading Boost.","jetpack-my-jetpack")}}switch(e){case"A":return __("Your site is fast! But maintaining a high speed isn’t easy. Use Boost’s automated acceleration tools to optimize your performance on the go.","jetpack-my-jetpack");case"B":return __("You are one step away from making your site blazing fast. Install Boost to enhance your site’s performance like top websites, no developer needed.","jetpack-my-jetpack");default:return __("Your site needs performance improvements. Make your site blazing fast with Boost’s simple dashboard and acceleration tools.","jetpack-my-jetpack")}}},3690:(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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.CREATOR,upgradeInInterstitial:!0},e));l.propTypes={admin:s().bool.isRequired};const u=l},1686:(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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.CRM},e));l.propTypes={admin:s().bool.isRequired};const u=l},5487:(e,t,a)=>{"use strict";a.d(t,{A:()=>j});var n=a(8509),c=a(5918),r=a(766),s=a(7425),i=a(7723),o=a(1609),l=a(1504),u=a(8242),m=a(1035),d=a(8412),p=a(6724),h=a(161),g=a(9838),v=a(3690),f=a(1686),w=a(4274),k=a(414),E=a(7769),y=a(4073),A=a(1218),b=a(7631);const __=i.__,_=({slugs:e})=>{const{showFullJetpackStatsCard:t=!1}=(0,u.A$)("myJetpackFlags"),{isAtomic:a=!1,userIsAdmin:r=!1}=(0,u.A$)(),s={backup:h.A,protect:w.A,"anti-spam":p.A,boost:g.A,search:k.A,videopress:b.A,stats:y.A,crm:f.A,creator:a?null:v.A,social:E.A,"jetpack-ai":d.A},i=e.filter((e=>(e!==l.D_.STATS||!t)&&!!s[e]));return React.createElement(React.Fragment,null,e.includes("stats")&&t&&React.createElement(n.A,{className:A.A.fullStatsCard},React.createElement(m.A,null)),React.createElement(c.A,{className:A.A.cardlist,tagName:"ul",fluid:!0,horizontalSpacing:0,horizontalGap:3},i.map((e=>{const t=s[e];return React.createElement(n.A,{tagName:"li",sm:4,md:4,lg:4,key:e},React.createElement(t,{admin:"1"===r}))}))))},j=({noticeMessage:e})=>{const{ownedProducts:t=[],unownedProducts:a=[]}=(0,u.A$)("lifecycleStats"),i=(0,o.useMemo)((()=>t.length>0?__("Discover more","jetpack-my-jetpack"):__("Discover all Jetpack Products","jetpack-my-jetpack")),[t.length]),l=e=>e.filter((e=>"scan"!==e&&"security"!==e&&"extras"!==e)),m=l(t),d=l(a);return React.createElement(React.Fragment,null,m.length>0&&React.createElement(r.A,null,React.createElement(c.A,{horizontalSpacing:6,horizontalGap:e?3:6},React.createElement(n.A,null,React.createElement(n.A,{sm:4,md:8,lg:12,className:A.A.cardListTitle},React.createElement(s.Ay,{variant:"headline-small"},__("My products","jetpack-my-jetpack"))),React.createElement(_,{slugs:m})))),d.length>0&&React.createElement(c.A,{horizontalSpacing:6,horizontalGap:e?3:6},React.createElement(n.A,null,React.createElement(n.A,{sm:4,md:8,lg:12,className:A.A.cardListTitle},React.createElement(s.Ay,{variant:"headline-small"},i)),React.createElement(_,{slugs:d}))))}},3293:(e,t,a)=>{"use strict";a.d(t,{Q:()=>h});var n=a(7723),c=a(3022),r=a(4923),s=a(8242),i=a(1870),o=a(2660),l=a(1218),u=a(6068),m=a(850),d=a(4516),p=a(7915);const __=n.__,h=()=>{const{detail:e}=(0,r.A)("protect"),{isPluginActive:t=!1}=e||{},{isSiteConnected:a}=(0,i.A)(),{protect:{wafConfig:n}}=(0,s.A$)(),{jetpack_waf_automatic_rules:c}=n||{};return t&&a?c?React.createElement(g,{status:"active"}):React.createElement(g,{status:"inactive"}):React.createElement(g,{status:"off"})};function g({status:e}){const{detail:t}=(0,r.A)("protect"),{hasPaidPlanForProduct:a=!1}=t||{},n=(0,p.T)(),{autoFirewallTooltip:s}=n;return"active"===e?React.createElement(React.Fragment,null,React.createElement("div",{className:l.A.valueSectionHeading},__("Auto-Firewall","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:d,alt:__("Shield icon - Auto-Firewall Status: On","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("On","jetpack-my-jetpack")))):"inactive"===e?React.createElement(React.Fragment,null,React.createElement("div",{className:(0,c.A)(l.A.valueSectionHeading,"value-section__heading")},__("Auto-Firewall","jetpack-my-jetpack"),React.createElement(o.I,{tracksEventName:"protect_card_tooltip_open",tracksEventProps:{location:"auto-firewall",status:e,feature:"jetpack-protect",has_paid_plan:a}},React.createElement(React.Fragment,null,React.createElement("h3",null,s.title),React.createElement("p",null,s.text)))),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:u,alt:__("Shield icon - Auto-Firewall Status: Inactive","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("Inactive","jetpack-my-jetpack")))):React.createElement(React.Fragment,null,React.createElement("div",{className:l.A.valueSectionHeading},__("Auto-Firewall","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:m,alt:__("Shield icon - Auto-Firewall Status: Off","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("Off","jetpack-my-jetpack"))))}},4274:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176),i=a(7765);const o=e=>React.createElement(s.A,c()({},e,{slug:r.D_.PROTECT,upgradeInInterstitial:!0}),React.createElement(i.A,null))},66:(e,t,a)=>{"use strict";a.d(t,{f:()=>g});var n=a(7723),c=a(3022),r=a(4923),s=a(8242),i=a(1870),o=a(6581),l=a(3658),u=a(2660),m=a(1218),d=a(850),p=a(4538),h=a(7915);const __=n.__,g=()=>{const{detail:e}=(0,r.A)("protect"),{isPluginActive:t=!1}=e||{},{isSiteConnected:a}=(0,i.A)(),{protect:{wafConfig:n}}=(0,s.A$)(),{blocked_logins:c,brute_force_protection:o}=n||{};return(t||(0,l.w)())&&a?o?React.createElement(v,{status:"active"}):React.createElement(v,{status:"inactive"}):a&&c>0?React.createElement(v,{status:"inactive"}):React.createElement(v,{status:"off"})};function v({status:e}){const{protect:{wafConfig:t}}=(0,s.A$)(),{blocked_logins:a}=t||{},n=(0,h.T)(),{blockedLoginsTooltip:r}=n;return"active"===e?a>0?React.createElement(React.Fragment,null,React.createElement("div",{className:m.A.valueSectionHeading},__("Logins Blocked","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",{className:"logins_blocked__count"},(0,o.A)(a)))):React.createElement(React.Fragment,null,React.createElement("div",{className:(0,c.A)(m.A.valueSectionHeading,"value-section__heading")},__("Logins Blocked","jetpack-my-jetpack"),React.createElement(u.I,{tracksEventName:"protect_card_tooltip_open",tracksEventProps:{location:"blocked-logins",status:e,feature:"jetpack-protect",message:"no data yet"}},React.createElement(React.Fragment,null,React.createElement("h3",null,r.title),React.createElement("p",null,r.text)))),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:p,alt:__("Shield icon - Brute Force Protection Status: Active","jetpack-my-jetpack")})))):"inactive"===e?React.createElement(React.Fragment,null,React.createElement("div",{className:(0,c.A)(m.A.valueSectionHeading,"value-section__heading")},__("Logins Blocked","jetpack-my-jetpack"),React.createElement(u.I,{tracksEventName:"protect_card_tooltip_open",tracksEventProps:{location:"blocked-logins",feature:"jetpack-protect",status:e}},React.createElement(React.Fragment,null,React.createElement("h3",null,r.title),React.createElement("p",null,r.text)))),React.createElement("div",{className:"value-section__data"},a>0?React.createElement(React.Fragment,null,React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:d,alt:__("Shield icon - Brute Force Protection Status: Inactive","jetpack-my-jetpack")})),React.createElement("div",{className:"logins_blocked__count"},(0,o.A)(a))):React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:d,alt:__("Shield icon - Brute Force Protection Status: Inactive","jetpack-my-jetpack")})))):React.createElement(React.Fragment,null,React.createElement("div",{className:m.A.valueSectionHeading},__("Logins Blocked","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:d,alt:__("Shield icon - Brute Force Protection Status: Off","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("Off","jetpack-my-jetpack"))))}},7765:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(4923),c=a(2660),r=a(3293),s=a(66),i=a(1512),o=a(2584),l=a(7915);a(538);const u=()=>{const{detail:e}=(0,n.A)("protect"),{isPluginActive:t=!1}=e||{},a=(0,o.A)(),u=(0,l.T)(),{pluginsThemesTooltip:m}=u;return React.createElement(React.Fragment,null,React.createElement("div",{className:"value-section__last-scan"},a&&React.createElement("div",null,a),!t&&React.createElement(c.I,{tracksEventName:"protect_card_tooltip_open",tracksEventProps:{location:"plugins&themes",feature:"jetpack-protect",status:"inactive"}},React.createElement(React.Fragment,null,React.createElement("h3",null,m.title),React.createElement("p",null,m.text)))),React.createElement("div",{className:"value-section"},React.createElement("div",{className:"value-section__scan-threats"},React.createElement(i.v,null)),React.createElement("div",{className:"value-section__auto-firewall"},React.createElement(r.Q,null)),React.createElement("div",{className:"value-section__logins-blocked"},React.createElement(s.f,null))))}},1512:(e,t,a)=>{"use strict";a.d(t,{v:()=>k});var n=a(1883),c=a(6427),r=a(9491),s=a(7723),i=a(3022),o=a(1609),l=a(4923),u=a(8242),m=a(4526),d=a(1870),p=a(2660),h=a(1218),g=a(850),v=a(4538),f=a(4516),w=a(7915);const __=s.__,k=()=>{const{detail:e}=(0,l.A)("protect"),{isPluginActive:t=!1,hasPaidPlanForProduct:a}=e||{},{isSiteConnected:n}=(0,d.A)(),{protect:{scanData:c}}=(0,u.A$)(),{plugins:r,themes:s,num_threats:i=0}=c||{},m=(0,o.useMemo)((()=>{const{core:e,database:t,files:a,num_plugins_threats:n,num_themes_threats:i}=c||{};return[...n?r.reduce(((e,t)=>e.concat(t.threats)),[]):[],...i?s.reduce(((e,t)=>e.concat(t.threats)),[]):[],...e?.threats??[],...t,...a].reduce(((e,t)=>t.severity>=5?e+=1:e),0)}),[r,s,c]);return t&&n?a?i?React.createElement(E,{numThreats:i,criticalThreatCount:m}):React.createElement(y,{status:"success"}):i?React.createElement(E,{numThreats:i}):React.createElement(y,{status:"partial"}):React.createElement(y,{status:"off"})};function E({numThreats:e,criticalThreatCount:t}){const{recordEvent:a}=(0,m.A)(),s=(0,o.useRef)(),l=(0,r.useViewportMatch)("medium","<"),[u,d]=(0,o.useState)(!1),p=(0,w.T)(),{scanThreatsTooltip:g}=p,v=(0,o.useCallback)((()=>d((t=>(!0==!t&&a("jetpack_protect_card_tooltip_open",{page:"my-jetpack",feature:"jetpack-protect",location:"scan",has_paid_plan:!0,threats:e}),!t)))),[e,a]),f=(0,o.useCallback)((()=>{s.current&&!s.current.contains(document.activeElement)&&d(!1)}),[d,s]);return t?React.createElement(React.Fragment,null,React.createElement("div",{className:(0,i.A)(h.A.valueSectionHeading,"value-section__heading")},__("Threats","jetpack-my-jetpack"),React.createElement("div",{className:"scan-threats__critical-threat-container"},React.createElement("button",{className:"info-tooltip__button",onClick:v,ref:s},React.createElement(n.A,{className:"scan_threats__icon-critical",icon:"info",size:14}),React.createElement("span",{className:"scan-threats__critical-threat-count"},t)),u&&React.createElement(c.Popover,{placement:l?"top-end":"right",noArrow:!1,offset:10,focusOnMount:"container",onClose:f},React.createElement(React.Fragment,null,React.createElement("h3",null,g.title),React.createElement("p",null,g.text))))),React.createElement("div",{className:"value-section__data"},React.createElement("div",{className:"scan-threats__critical-threats"},React.createElement("div",{className:"scan-threats__threat-count"},e)))):React.createElement(React.Fragment,null,React.createElement("div",{className:h.A.valueSectionHeading},__("Threats","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",{className:"scan-threats__threat-count"},e)))}function y({status:e}){const t=(0,w.T)(),{scanThreatsTooltip:a}=t;return"success"===e?React.createElement(React.Fragment,null,React.createElement("div",{className:h.A.valueSectionHeading},__("Scan","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:f,alt:__("Shield icon - Scan Status: Secure","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("Secure","jetpack-my-jetpack")))):"partial"===e?React.createElement(React.Fragment,null,React.createElement("div",{className:(0,i.A)(h.A.valueSectionHeading,"value-section__heading")},__("Scan","jetpack-my-jetpack"),React.createElement(p.I,{tracksEventName:"protect_card_tooltip_open",tracksEventProps:{location:"scan",status:e,feature:"jetpack-protect",has_paid_plan:!1,threats:0}},React.createElement(React.Fragment,null,React.createElement("h3",null,a.title),React.createElement("p",null,a.text)))),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:v,alt:__("Shield icon - Scan Status: Partial","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("Partial","jetpack-my-jetpack")))):React.createElement(React.Fragment,null,React.createElement("div",{className:h.A.valueSectionHeading},__("Scan","jetpack-my-jetpack")),React.createElement("div",{className:"value-section__data"},React.createElement("div",null,React.createElement("img",{className:"value-section__status-icon",src:g,alt:__("Shield icon - Scan Status: Off","jetpack-my-jetpack")})),React.createElement("div",{className:"value-section__status-text"},__("Off","jetpack-my-jetpack"))))}},2584:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(7723),c=a(1609),r=a(4923),s=a(8242),i=a(4542);const __=n.__,_n=n._n,o=()=>{const{detail:e}=(0,r.A)("protect"),{isPluginActive:t=!1}=e||{},{plugins:a,themes:o,protect:{scanData:l}}=(0,s.A$)(),{plugins:u,themes:m,last_checked:d=null}=l||{},p=u.length||Object.keys(a).length,h=m.length||Object.keys(o).length,g=!!d&&(0,i._)(Date.parse(d));return(0,c.useMemo)((()=>t?g?(0,n.sprintf)(/* translators: %s is how long ago since the last scan took place, i.e.- "17 hours ago" */ __("Last scan: %s","jetpack-my-jetpack"),g):null:(0,n.sprintf)(/* translators: %d is the number of plugins installed on the site. */ @@ -52,7 +52,7 @@ _n("%d theme","%d themes",_,"jetpack-my-jetpack"),_))},scanThreatsTooltip:m&&k?{ __("The last scan identified %s. But don’t worry, use the “Auto-fix” button in the product to automatically fix most threats.","jetpack-my-jetpack"),(0,c.sprintf)(/* translators: %d is the number of detected scan threats on the site. */ _n("%d critical threat.","%d critical threats.",k,"jetpack-my-jetpack"),k))}:{title:__("Elevate your malware protection","jetpack-my-jetpack"),text:__("We’ve checked items against our database, and all appears well. For a more detailed, line-by-line malware scan, consider upgrading your plan.","jetpack-my-jetpack")},autoFirewallTooltip:m&&!E?{title:__("Auto-Firewall: Inactive","jetpack-my-jetpack"),text:(0,n.createInterpolateElement)(__("You have Auto-Firewall disabled, visit your Protect firewall settings to activate.","jetpack-my-jetpack"),{a:(0,r.createElement)("a",{href:j,onClick:R})})}:{title:__("Auto-Firewall: Inactive","jetpack-my-jetpack"),text:__("Upgrade required for activation. Manual rules available.","jetpack-my-jetpack")},blockedLoginsTooltip:x}}},414:(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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.SEARCH,showMenu:!0},e));l.propTypes={admin:s().bool.isRequired};const u=l},7769:(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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.SOCIAL,showMenu:!0},e));l.propTypes={admin:s().bool.isRequired};const u=l},4073:(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),o=a(6176);const l=e=>React.createElement(o.A,c()({slug:i.D_.STATS,showMenu:!0},e));l.propTypes={admin:s().bool.isRequired};const u=l},7631:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(7425),c=a(1609),r=a(8837),s=a(1504),i=a(4923),o=a(8242),l=a(6176),u=a(2660),m=a(6544),d=a(3554),p=a(7167);a(6101);const h=s.D_.VIDEOPRESS,g=({admin:e})=>{const{detail:t}=(0,i.A)(h),{status:a}=t||{},{videopress:s}=(0,o.A$)(),{activeAndNoVideos:g}=(0,m.A)(),{videoCount:v=0,featuredStats:f}=s||{},w=a===r.hp.ACTIVE||a===r.hp.CAN_UPGRADE,k=(0,d.A)({isPluginActive:w,videoCount:v}),E={stats_period:f?.period,video_count:v},y=(0,c.useCallback)((()=>React.createElement(n.Ay,{variant:"body-small",className:"description"},k||t.description,w&&!v&&React.createElement(u.I,{className:"videopress-card__no-video-tooltip",tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"description",feature:"jetpack-videopress",status:a,video_count:v}},React.createElement("h3",null,g.title),React.createElement("p",null,g.text)))),[k,t.description,v,a,g,w]);return React.createElement(l.A,{slug:h,showMenu:!0,admin:e,Description:y,customLoadTracks:E},React.createElement(p.A,{isPluginActive:w,data:s}))}},6544:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(3924),c=a(6087),r=a(7723),s=a(1609),i=a(8242),o=a(4526);const __=r.__,_n=r._n,l=()=>{const{recordEvent:e}=(0,o.A)(),{videopress:t}=(0,i.A$)(),{featuredStats:a,videoCount:l}=t||{},{period:u}=a||{},m=(0,n.A)("jetpack-videopress-my-jetpack-tooltip"),d=(0,s.useCallback)((()=>{e("jetpack_videopress_card_tooltip_content_link_click",{location:"video_count",feature:"jetpack-videopress",page:"my-jetpack",path:m})}),[e,m]),p={title:__("The finest video for WordPress","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)((0,r.sprintf)( // translators: %d is the number of videos in the Media Library that could benefit from VideoPress. -_n("You have %d video in your Media Library that could benefit from VideoPress. Start hosting it today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.","You have %d videos in your Media Library that could benefit from VideoPress. Start hosting them today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.",l,"jetpack-my-jetpack"),l),{a:(0,s.createElement)("a",{href:m,target:"_blank",rel:"noreferrer noopener",onClick:d})})},h={title:__("The finest video for WordPress","jetpack-my-jetpack"),text:__("Give your videos a boost! 🚀 Try hosting with VideoPress for superior quality and performance.","jetpack-my-jetpack")},g={title:__("High-quality video, wherever your audience is","jetpack-my-jetpack"),text:__("Success! 🌟 Your video is live and gathering views.","jetpack-my-jetpack")},v=__("30-Day views","jetpack-my-jetpack"),f=__("Yearly views","jetpack-my-jetpack"),w=__("This metric shows your total video views over the past 30 days, compared to the previous 30 days.","jetpack-my-jetpack"),k=__("This metric shows your total video views over the past year.","jetpack-my-jetpack"),E={title:"day"===u?v:f,text:"day"===u?w:k},y=__("This metric shows your total video viewing time over the past 30 days, compared to the previous 30 days.","jetpack-my-jetpack"),A=__("This metric shows total video viewing time for the last year.","jetpack-my-jetpack");return{inactiveWithVideos:p,activeAndNoVideos:h,viewsWithoutPlan:g,viewsWithPlan:E,watchTime:{title:__("Total time watched","jetpack-my-jetpack"),text:"day"===u?y:A}}}},3554:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(7723),c=a(2434);const __=n.__,r=({isPluginActive:e,videoCount:t})=>!e&&t?(0,c.A)(__("Load your existing videos faster and without ads.","jetpack-my-jetpack")):e&&!t?(0,c.A)(__("Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video.","jetpack-my-jetpack")):""},7167:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(7723),c=a(1113),r=a(2510),s=a(6955),i=a(3022),o=a(1504),l=a(4923),u=a(6581),m=a(2753),d=a(2660),p=a(1218),h=a(6544);a(6101);const __=n.__,g=({value:e,previousValue:t,formattedValue:a,formattedDifference:n,period:o})=>{const l=e>t;return React.createElement("div",{className:"videopress-card__value-section__value-container"},React.createElement("span",{className:"videopress-card__value-section__value"},a),e!==t&&"day"===o&&React.createElement("div",{className:(0,i.A)("videopress-card__value-section__previous-value",l?"increase":"decrease")},React.createElement(c.A,{size:18,icon:l?r.A:s.A}),React.createElement("span",null,n)))},v=({isPluginActive:e,data:t})=>{const{detail:a}=(0,l.A)(o.D_.VIDEOPRESS),{status:n,hasPaidPlanForProduct:c}=a||{},{videoCount:r,featuredStats:s}=t||{},{inactiveWithVideos:v,viewsWithoutPlan:f,viewsWithPlan:w,watchTime:k}=(0,h.A)(),E={maximumFractionDigits:1,notation:"compact"};if(!r)return null;const y={feature:"jetpack-videopress",has_paid_plan:c,status:n};if(!e)return React.createElement("div",{className:"videopress-card__value-section"},React.createElement("div",{className:"videopress-card__value-section__container"},React.createElement("span",{className:p.A.valueSectionHeading},__("Existing videos","jetpack-my-jetpack"),React.createElement(d.I,{className:"videopress-card__no-video-tooltip",tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"existing_videos",feature:"jetpack-videopress",status:n,video_count:r}},React.createElement("h3",null,v.title),React.createElement("p",null,v.text))),React.createElement("span",{className:"videopress-card__video-count"},r)));const A=s?.data?.views?.current,b=s?.data?.watch_time?.current,_=s?.data?.views?.previous,j=s?.data?.watch_time?.previous,R=s?.period,C=Math.abs(A-_),x=Math.abs(b-j);if(void 0===A||void 0===b)return null;const N=__("30-Day views","jetpack-my-jetpack"),S=__("Yearly views","jetpack-my-jetpack");return React.createElement("div",{className:"videopress-card__value-section"},React.createElement("div",{className:"videopress-card__value-section__container"},React.createElement("span",{className:(0,i.A)(p.A.valueSectionHeading,"videopress-card__value-section__heading")},"day"===R?N:S,React.createElement(d.I,{tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"views",current_views:A,previous_views:_,period:R,...y}},c||0===A?React.createElement(React.Fragment,null,React.createElement("h3",null,w.title),React.createElement("p",null,w.text)):React.createElement(React.Fragment,null,React.createElement("h3",null,f.title),React.createElement("p",null,f.text)))),React.createElement(g,{value:A,previousValue:_,formattedValue:(0,u.A)(A,E),formattedDifference:(0,u.A)(C,E),period:R})),React.createElement("div",{className:"videopress-card__value-section__container"},React.createElement("span",{className:(0,i.A)(p.A.valueSectionHeading,"videopress-card__value-section__heading")},__("Total time watched","jetpack-my-jetpack"),React.createElement(d.I,{tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"watch_time",current_watch_time:b,previous_watch_time:j,period:R,...y}},React.createElement("h3",null,k.title),React.createElement("p",null,k.text))),React.createElement(g,{value:b,previousValue:j,formattedValue:(0,m.A)(b),formattedDifference:(0,m.A)(x),period:R})))}},3614:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(6427),c=a(5739),r=a.n(c),s=a(1609),i=a.n(s);const o=({children:e,className:t,href:a,isLoading:c=!1,onClick:r,isPrimary:s=!0,disabled:o=!1})=>i().createElement(n.Button,{onClick:r,className:t,href:a,variant:s?"primary":"secondary",disabled:c||o},c?i().createElement(n.Spinner,null):e);o.propTypes={className:r().string,isLoading:r().bool,isPrimary:r().bool,disabled:r().bool};const l=o},4720:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(7397),c=a(7425),r=a(8478),s=a(2266),i=a(5879),o=a(2558),l=a(6427),u=a(7723),m=a(1113),d=a(5459),p=a(3883),h=a(3022),g=a(1609),v=a.n(g),f=a(4923),w=a(8242),k=a(4526),E=a(1524),y=a(3614),A=a(9084);const __=u.__;function b({value:e,currency:t,isOld:a}){if(!e||!t)return null;const r=(0,n.vA)(e,t),s=(0,h.A)(A.A.price,{[A.A["is-old"]]:a});return v().createElement(c.Ay,{className:s,variant:"headline-medium",component:"p"},v().createElement(c.Ay,{component:"sup",variant:"title-medium"},r.symbol),r.integer,v().createElement(c.Ay,{component:"sup",variant:"title-medium"},r.fraction))}const _=({slug:e,onClick:t,trackButtonClick:a=()=>{},className:n,preferProductName:_,supportingInfo:j,ctaButtonLabel:R=null,hideTOS:C=!1,quantity:x=null,highlightLastFeature:N=!1,isFetching:S=!1})=>{const{fileSystemWriteAccess:z="no",siteSuffix:M="",adminUrl:L="",myJetpackCheckoutUri:P=""}=(0,w.A$)(),{detail:V}=(0,f.A)(e),{name:H,title:I,longDescription:B,features:O,disclaimers:T,pricingForUi:F,isBundle:D,supportedProducts:U,hasPaidPlanForProduct:q,status:J,pluginSlug:G,postCheckoutUrl:$}=V,Q="plugin_absent"===J&&"no"===z,{isFree:W,trialAvailable:K,fullPricePerMonth:Z,currencyCode:Y,discountPricePerMonth:X,wpcomProductSlug:ee,wpcomFreeProductSlug:te,introductoryOffer:ae,productTerm:ne}=F,{recordEvent:ce}=(0,k.A)(),re=!W&&!q||null!=x,se=(0,E.y)(),ie=(0,g.useCallback)((()=>$||(se||P)),[$,se,P])(),{run:oe,hasCheckoutStarted:le}=(0,o.A)({productSlug:ee,redirectUrl:ie,siteSuffix:M,adminUrl:L,connectAfterCheckout:!0,from:"my-jetpack",quantity:x,useBlogIdSuffix:!0}),{run:ue,hasCheckoutStarted:me}=(0,o.A)({productSlug:te,redirectUrl:ie,siteSuffix:M,adminUrl:L,connectAfterCheckout:!0,from:"my-jetpack",quantity:x,useBlogIdSuffix:!0}),de=D?U.join("_plus_").split("_").map(((e,t)=>{if("plus"===e)return v().createElement(m.A,{className:A.A["plus-icon"],key:`icon-plugs${t}`,icon:d.A,size:14});const a=(0,r.Wy)(e);return v().createElement(a,{key:e,size:24})})):null;let pe;pe="month"===ae?.intervalUnit&&1===ae?.intervalCount?(0,u.sprintf)( +_n("You have %d video in your Media Library that could benefit from VideoPress. Start hosting it today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.","You have %d videos in your Media Library that could benefit from VideoPress. Start hosting them today to unlock multiple benefits: enhanced quality add-free streaming, faster load times, customizable player controls.",l,"jetpack-my-jetpack"),l),{a:(0,s.createElement)("a",{href:m,target:"_blank",rel:"noreferrer noopener",onClick:d})})},h={title:__("The finest video for WordPress","jetpack-my-jetpack"),text:__("Give your videos a boost! 🚀 Try hosting with VideoPress for superior quality and performance.","jetpack-my-jetpack")},g={title:__("High-quality video, wherever your audience is","jetpack-my-jetpack"),text:__("Success! 🌟 Your video is live and gathering views.","jetpack-my-jetpack")},v=__("30-Day views","jetpack-my-jetpack"),f=__("Yearly views","jetpack-my-jetpack"),w=__("This metric shows your total video views over the past 30 days, compared to the previous 30 days.","jetpack-my-jetpack"),k=__("This metric shows your total video views over the past year.","jetpack-my-jetpack"),E={title:"day"===u?v:f,text:"day"===u?w:k},y=__("This metric shows your total video viewing time over the past 30 days, compared to the previous 30 days.","jetpack-my-jetpack"),A=__("This metric shows total video viewing time for the last year.","jetpack-my-jetpack");return{inactiveWithVideos:p,activeAndNoVideos:h,viewsWithoutPlan:g,viewsWithPlan:E,watchTime:{title:__("Total time watched","jetpack-my-jetpack"),text:"day"===u?y:A}}}},3554:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(7723),c=a(2434);const __=n.__,r=({isPluginActive:e,videoCount:t})=>!e&&t?(0,c.A)(__("Load your existing videos faster and without ads.","jetpack-my-jetpack")):e&&!t?(0,c.A)(__("Stunning-quality, ad-free video in the WordPress Editor. Begin by uploading your first video.","jetpack-my-jetpack")):""},7167:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(7723),c=a(1113),r=a(2510),s=a(6955),i=a(3022),o=a(1504),l=a(4923),u=a(6581),m=a(2753),d=a(2660),p=a(1218),h=a(6544);a(6101);const __=n.__,g=({value:e,previousValue:t,formattedValue:a,formattedDifference:n,period:o})=>{const l=e>t;return React.createElement("div",{className:"videopress-card__value-section__value-container"},React.createElement("span",{className:"videopress-card__value-section__value"},a),e!==t&&"day"===o&&React.createElement("div",{className:(0,i.A)("videopress-card__value-section__previous-value",l?"increase":"decrease")},React.createElement(c.A,{size:18,icon:l?r.A:s.A}),React.createElement("span",null,n)))},v=({isPluginActive:e,data:t})=>{const{detail:a}=(0,l.A)(o.D_.VIDEOPRESS),{status:n,hasPaidPlanForProduct:c}=a||{},{videoCount:r,featuredStats:s}=t||{},{inactiveWithVideos:v,viewsWithoutPlan:f,viewsWithPlan:w,watchTime:k}=(0,h.A)();if(!r)return null;const E={feature:"jetpack-videopress",has_paid_plan:c,status:n};if(!e)return React.createElement("div",{className:"videopress-card__value-section"},React.createElement("div",{className:"videopress-card__value-section__container"},React.createElement("span",{className:p.A.valueSectionHeading},__("Existing videos","jetpack-my-jetpack"),React.createElement(d.I,{className:"videopress-card__no-video-tooltip",tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"existing_videos",feature:"jetpack-videopress",status:n,video_count:r}},React.createElement("h3",null,v.title),React.createElement("p",null,v.text))),React.createElement("span",{className:"videopress-card__video-count"},r)));const y=s?.data?.views?.current,A=s?.data?.watch_time?.current,b=s?.data?.views?.previous,_=s?.data?.watch_time?.previous,j=s?.period,R=Math.abs(y-b),C=Math.abs(A-_);if(void 0===y||void 0===A)return null;const x=__("30-Day views","jetpack-my-jetpack"),N=__("Yearly views","jetpack-my-jetpack");return React.createElement("div",{className:"videopress-card__value-section"},React.createElement("div",{className:"videopress-card__value-section__container"},React.createElement("span",{className:(0,i.A)(p.A.valueSectionHeading,"videopress-card__value-section__heading")},"day"===j?x:N,React.createElement(d.I,{tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"views",current_views:y,previous_views:b,period:j,...E}},c||0===y?React.createElement(React.Fragment,null,React.createElement("h3",null,w.title),React.createElement("p",null,w.text)):React.createElement(React.Fragment,null,React.createElement("h3",null,f.title),React.createElement("p",null,f.text)))),React.createElement(g,{value:y,previousValue:b,formattedValue:(0,u.A)(y),formattedDifference:(0,u.A)(R),period:j})),React.createElement("div",{className:"videopress-card__value-section__container"},React.createElement("span",{className:(0,i.A)(p.A.valueSectionHeading,"videopress-card__value-section__heading")},__("Total time watched","jetpack-my-jetpack"),React.createElement(d.I,{tracksEventName:"videopress_card_tooltip_open",tracksEventProps:{location:"watch_time",current_watch_time:A,previous_watch_time:_,period:j,...E}},React.createElement("h3",null,k.title),React.createElement("p",null,k.text))),React.createElement(g,{value:A,previousValue:_,formattedValue:(0,m.A)(A),formattedDifference:(0,m.A)(C),period:j})))}},3614:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(6427),c=a(5739),r=a.n(c),s=a(1609),i=a.n(s);const o=({children:e,className:t,href:a,isLoading:c=!1,onClick:r,isPrimary:s=!0,disabled:o=!1})=>i().createElement(n.Button,{onClick:r,className:t,href:a,variant:s?"primary":"secondary",disabled:c||o},c?i().createElement(n.Spinner,null):e);o.propTypes={className:r().string,isLoading:r().bool,isPrimary:r().bool,disabled:r().bool};const l=o},4720:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(7397),c=a(7425),r=a(8478),s=a(2266),i=a(5879),o=a(2558),l=a(6427),u=a(7723),m=a(1113),d=a(5459),p=a(3883),h=a(3022),g=a(1609),v=a.n(g),f=a(4923),w=a(8242),k=a(4526),E=a(1524),y=a(3614),A=a(9084);const __=u.__;function b({value:e,currency:t,isOld:a}){if(!e||!t)return null;const r=(0,n.vA)(e,t),s=(0,h.A)(A.A.price,{[A.A["is-old"]]:a});return v().createElement(c.Ay,{className:s,variant:"headline-medium",component:"p"},v().createElement(c.Ay,{component:"sup",variant:"title-medium"},r.symbol),r.integer,v().createElement(c.Ay,{component:"sup",variant:"title-medium"},r.fraction))}const _=({slug:e,onClick:t,trackButtonClick:a=()=>{},className:n,preferProductName:_,supportingInfo:j,ctaButtonLabel:R=null,hideTOS:C=!1,quantity:x=null,highlightLastFeature:N=!1,isFetching:S=!1})=>{const{fileSystemWriteAccess:z="no",siteSuffix:M="",adminUrl:L="",myJetpackCheckoutUri:P=""}=(0,w.A$)(),{detail:V}=(0,f.A)(e),{name:H,title:I,longDescription:B,features:O,disclaimers:T,pricingForUi:F,isBundle:D,supportedProducts:U,hasPaidPlanForProduct:q,status:J,pluginSlug:G,postCheckoutUrl:$}=V,Q="plugin_absent"===J&&"no"===z,{isFree:W,trialAvailable:K,fullPricePerMonth:Z,currencyCode:Y,discountPricePerMonth:X,wpcomProductSlug:ee,wpcomFreeProductSlug:te,introductoryOffer:ae,productTerm:ne}=F,{recordEvent:ce}=(0,k.A)(),re=!W&&!q||null!=x,se=(0,E.y)(),ie=(0,g.useCallback)((()=>$||(se||P)),[$,se,P])(),{run:oe,hasCheckoutStarted:le}=(0,o.A)({productSlug:ee,redirectUrl:ie,siteSuffix:M,adminUrl:L,connectAfterCheckout:!0,from:"my-jetpack",quantity:x,useBlogIdSuffix:!0}),{run:ue,hasCheckoutStarted:me}=(0,o.A)({productSlug:te,redirectUrl:ie,siteSuffix:M,adminUrl:L,connectAfterCheckout:!0,from:"my-jetpack",quantity:x,useBlogIdSuffix:!0}),de=D?U.join("_plus_").split("_").map(((e,t)=>{if("plus"===e)return v().createElement(m.A,{className:A.A["plus-icon"],key:`icon-plugs${t}`,icon:d.A,size:14});const a=(0,r.Wy)(e);return v().createElement(a,{key:e,size:24})})):null;let pe;pe="month"===ae?.intervalUnit&&1===ae?.intervalCount?(0,u.sprintf)( // translators: %s is the monthly price for a product __("trial for the first month, then $%s /month, billed yearly","jetpack-my-jetpack"),Z):"year"===ne?__("/month, paid yearly","jetpack-my-jetpack"):__("/month","jetpack-my-jetpack",0);const he=(0,g.useCallback)((t=>{ce("jetpack_myjetpack_product_card_disclaimer_click",{id:t,product:e})}),[e,ce]);function ge({slug:e}){const t=(0,r.Wy)(e);return t?v().createElement("div",{className:A.A["product-icon"]},v().createElement(t,null)):null}const ve=(!D||D&&!q)&&K,fe=H&&_?H:I,we=!D&&q?(0,u.sprintf)(/* translators: placeholder is product name. */ __("Install %s","jetpack-my-jetpack"),fe):(0,u.sprintf)(/* translators: placeholder is product name. */ @@ -71,7 +71,7 @@ __("Due to your server settings, we can't automatically install the plugin for y // translators: %d is the number of days left in the month. __("Wait for %d days to reset your limit","jetpack-my-jetpack"),Math.floor((new Date(O?.nextStart||null)-new Date)/864e5)),ge=__(", or upgrade now to a higher tier for additional requests and keep your work moving forward.","jetpack-my-jetpack"),ve=F?he+ge:he+".",fe=__("Reach for More with Jetpack AI! Upgrade now for additional requests and keep your momentum going.","jetpack-my-jetpack"),we=(0,m.sprintf)( // translators: %s is the next upgrade value -__("Get %s requests","jetpack-my-jetpack"),B?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),Ee=(0,_.A)("/add-jetpack-ai"),{recordEvent:ye}=(0,y.A)(),Ae=(0,k.useCallback)((()=>{ye("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[ye]),be=(0,k.useCallback)((()=>{ye("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:I?.slug||"",requests_count:H}),Ee()}),[ye,H,I,Ee]),_e=(0,k.useCallback)((()=>x(!1)),[]);(0,k.useEffect)((()=>{ye("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:I?.slug||"",requests_count:H})}),[H,I?.slug,ye]),(0,k.useEffect)((()=>{x(re||se)}),[re,se]);const je=React.createElement("span",{className:R.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,v.A)(R.A["product-interstitial__section"])},React.createElement("div",{className:R.A["product-interstitial__section-wrapper-wide"]},React.createElement(j.A,{onClick:e})),React.createElement("div",{className:(0,v.A)(R.A["product-interstitial__section-wrapper-wide"],R.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:R.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,v.A)(R.A["product-interstitial__section"])},React.createElement("div",{className:R.A["product-interstitial__hero-section"]},React.createElement("div",{className:R.A["product-interstitial__hero-content"]},React.createElement("h1",{className:R.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:R.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")),!J&&!U&&React.createElement(u.Button,{variant:"primary",onClick:be,className:R.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),J&&React.createElement(u.Button,{variant:"primary",onClick:Ae,href:W,className:R.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:R.A["product-interstitial__hero-side"]},$&&React.createElement(u.Card,{className:R.A["stats-card"]},React.createElement(o.KH,null),React.createElement("div",null,React.createElement("div",{className:R.A["product-interstitial__stats-card-text"]},F?me:ue),React.createElement("div",{className:R.A["product-interstitial__stats-card-value"]},le))),Q&&React.createElement(u.Card,{className:R.A["stats-card"]},React.createElement(d.A,{icon:p.A,className:R.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:R.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:R.A["product-interstitial__stats-card-value"]},H))),D&&React.createElement(u.Card,{className:R.A["stats-card"]},React.createElement(d.A,{icon:p.A,className:R.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:R.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:R.A["product-interstitial__stats-card-value"]},G)))))),React.createElement(s.A,{className:R.A["product-interstitial__section"]},React.createElement("div",{className:R.A["product-interstitial__section-wrapper"]},w&&React.createElement("div",{className:R.A["product-interstitial__ai-notice"]},React.createElement(l.A,{actions:F?[React.createElement(u.Button,{isPrimary:!0,onClick:be},re?we:ke)]:{},onClose:_e,level:re?"warning":"error",title:re?de:pe},re?ve:fe)),React.createElement("h2",{className:R.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:R.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:R.A["product-interstitial__usage-videos"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},V,je),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:g.A,href:ae},N?ne:ce))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:z}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},z),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:Z},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:Y},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:X},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:ee},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:R.A["product-interstitial__section"]},React.createElement("div",{className:R.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:R.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:R.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:R.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:K},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),o=a(8252);const __=c.__;function l(){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}}),l=(0,o.M)(c);return a?React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack")):React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:l,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),o=a(1609),l=a.n(o),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>l().createElement("div",{className:d.A["section-stats-highlights"]},l().createElement("h3",{className:d.A["section-title"]},l().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),l().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),l().createElement("div",{className:d.A["cards-list"]},l().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:l().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),l().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:l().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),l().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:l().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),l().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:l().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),o=a(5739),l=a.n(o),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:o})=>{const l=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(l),v=Number.isFinite(l)?((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,f={maximumFractionDigits:1,notation:"compact"};return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),o&&m().createElement("div",{className:p.A["stats-card-heading"]},o),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,f)),null!==l?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:l<0,[p.A["stats-card-difference--negative"]]:l>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(l)},l<0&&m().createElement(c.A,{size:18,icon:r.A}),l>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},(0,d.A)(g,g>9999?f:{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:l().number,heading:l().node,icon:l().node,previousCount:l().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),o=a(280),l=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,l.A$)("userIsAdmin"),{data:g}=(0,o.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)(),k=(0,c.useCallback)((()=>{w("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[w]),E=(0,c.useCallback)((()=>!(n!==r.hp.CAN_UPGRADE)),[n]),y={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:E},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:()=>g});var n=a(8509),c=a(7425),r=a(5879),s=a(1112),i=a(4082),o=a(7723),l=a(1609),u=a(6007),m=a(1521),d=a(4526),p=a(753),h=a(5225);const __=o.__,g=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:o}=(0,d.A)(),{setNotice:g,resetNotice:v}=(0,l.useContext)(u.g),f=__("Activate Jetpack in one click","jetpack-my-jetpack"),w=(0,l.useCallback)((async()=>{o("jetpack_myjetpack_welcome_banner_connect_site_click"),t((e=>({...e,isLoading:!0}))),await e(),o("jetpack_myjetpack_welcome_banner_connect_site_success");try{await(0,p.A)(),(0,i.Pg)();const{variationName:e}=await(0,i.nQ)("jetpack_my_jetpack_post_connection_flow_202408");"treatment"!==e&&(window.location.href="admin.php?page=my-jetpack#/connection"),t((t=>({...t,variation:e})))}finally{v(),g(m.F,v),t((e=>({...e,isLoading:!1})))}}),[e,t,o,v,g]);return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:h.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:f,mb:4}),React.createElement(s.A,{variant:"primary",disabled:a,isLoading:a,onClick:w},a?__("Activating…","jetpack-my-jetpack"):f)),React.createElement(n.A,{sm:6,md:8,lg:6,className:h.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,o=()=>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),o=a(3022),l=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,l.useState)(d),p=(0,l.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,l.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,o.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),o=a(3022),l=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),k=a(5225);const __=s.__,E=({children:e})=>{const{recordEvent:t}=(0,p.A)(),{dismissWelcomeBanner:a}=(0,d.A)(),{recommendedModules:s,submitEvaluation:E,saveEvaluationResult:y}=(0,u.A)(),{siteIsRegistered:A,siteIsRegistering:b,isUserConnected:_,isSiteConnected:j,handleRegisterSite:R}=(0,h.A)({skipUserConnection:!0}),[C,x]=(0,l.useState)(!1),[N,S]=(0,l.useState)(""),[z,M]=(0,l.useState)({isLoading:!1,variation:"control"}),L=(0,l.useMemo)((()=>!A||z.isLoading?"connection":C?"evaluation-processing":s||"control"!==z.variation&&(0,m.A)()?"evaluation":null),[C,s,A,z.isLoading,z.variation]);(0,l.useEffect)((()=>{N!==L&&(t("jetpack_myjetpack_welcome_banner_step_view",{current_step:L}),S(L))}),[L,N,t]);const P=(0,l.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:L,is_user_connected:_,is_site_connected:j}),a()}),[t,L,_,j,a]),V=(0,l.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),a()}),[a,t]),H=(0,l.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 E(n);await y(e),a()}catch(e){x(!1)}}),[a,t,y,E]);return(0,l.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:k.A.banner},React.createElement(g.O,{className:(0,o.A)(k.A["banner-card"],"connection"===L&&k.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:k.A["banner-content"]},"connection"===L&&React.createElement(v.A,{onActivateSite:R,onUpdateWelcomeFlowExperiment:M,isActivating:b||z.isLoading}),"evaluation"===L&&React.createElement(w.A,{onSkipOnboarding:V,onSubmitEvaluation:H}),"evaluation-processing"===L&&React.createElement(f.A,null))),React.createElement(r.A,{className:k.A.dismiss,variant:"secondary","aria-label":__("Don’t show the welcome message again","jetpack-my-jetpack"),size:"small",icon:i.A,disabled:b,onClick:P}))):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",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:()=>u,Ck:()=>_,DB:()=>r,D_:()=>x,Dz:()=>E,FW:()=>g,IM:()=>p,L6:()=>m,MB:()=>A,MD:()=>R,Md:()=>f,O2:()=>o,QO:()=>b,Sm:()=>s,_:()=>w,dB:()=>j,gw:()=>y,jE:()=>v,jf:()=>l,no:()=>d,nw:()=>k,pN:()=>C,rR:()=>i,tb:()=>c,xF:()=>h});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`,o=`${n}/chat/authentication`,l=`${n}/site/products`,u=`${n}/site/dismiss-welcome-banner`,m=`${n}/site/recommendations/evaluation`,d=`${n}/site/recommendations/evaluation/result`,p=e=>`jetpack/v4/stats-app/sites/${e}/stats/highlights`,h="product",g="activate product",v="install product",f="available licenses",w="chat availability",k="chat authentication",E="backup history",y="backup stats",A="stats counts",b="dismiss welcome banner",_="purchases",j="evaluate site recommendations",R="save site evaluation result",C="remove site evaluation result",x={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),o=a(929),l=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,l.A$)("recommendedModules").modules),p=(0,c.useMemo)((()=>{const{ownedProducts:e=[]}=(0,l.A$)("lifecycleStats");return n?.filter((t=>!e.includes(t))).slice(0,3)}),[n]),h=(0,c.useMemo)((()=>{const{dismissed:e}=(0,l.A$)("recommendedModules");return!e&&!t&&(0,u.A)()}),[t]),[g,v]=(0,r._)("recommendedModulesVisible",h&&!!p?.length),{mutate:f}=(0,o.A)({name:i.dB,query:{path:i.L6,method:"GET"},errorMessage:__("Failed to evaluate site recommendations","jetpack-my-jetpack")}),{mutate:w}=(0,o.A)({name:i.MD,query:{path:i.no,method:"POST"},errorMessage:__("Failed to save evaluation results. Please try again","jetpack-my-jetpack")}),{mutate:k}=(0,o.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)((()=>{k({},{onSuccess:()=>{v(!1),e("jetpack_myjetpack_evaluation_recommendations_dismiss_click")}})}),[k,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:()=>l});var n=a(7723),c=a(1609),r=a(3537),s=a(6007),i=a(1504);const __=n.__,o=[i.Ck,i.FW,i.jE],l=({infoName:e,isError:t,overrideMessage:a})=>{const{setNotice:i}=(0,c.useContext)(s.g),l=a??(0,n.sprintf)( +__("Get %s requests","jetpack-my-jetpack"),B?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),Ee=(0,_.A)("/add-jetpack-ai"),{recordEvent:ye}=(0,y.A)(),Ae=(0,k.useCallback)((()=>{ye("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[ye]),be=(0,k.useCallback)((()=>{ye("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:I?.slug||"",requests_count:H}),Ee()}),[ye,H,I,Ee]),_e=(0,k.useCallback)((()=>x(!1)),[]);(0,k.useEffect)((()=>{ye("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:I?.slug||"",requests_count:H})}),[H,I?.slug,ye]),(0,k.useEffect)((()=>{x(re||se)}),[re,se]);const je=React.createElement("span",{className:R.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,v.A)(R.A["product-interstitial__section"])},React.createElement("div",{className:R.A["product-interstitial__section-wrapper-wide"]},React.createElement(j.A,{onClick:e})),React.createElement("div",{className:(0,v.A)(R.A["product-interstitial__section-wrapper-wide"],R.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:R.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,v.A)(R.A["product-interstitial__section"])},React.createElement("div",{className:R.A["product-interstitial__hero-section"]},React.createElement("div",{className:R.A["product-interstitial__hero-content"]},React.createElement("h1",{className:R.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:R.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")),!J&&!U&&React.createElement(u.Button,{variant:"primary",onClick:be,className:R.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),J&&React.createElement(u.Button,{variant:"primary",onClick:Ae,href:W,className:R.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:R.A["product-interstitial__hero-side"]},$&&React.createElement(u.Card,{className:R.A["stats-card"]},React.createElement(o.KH,null),React.createElement("div",null,React.createElement("div",{className:R.A["product-interstitial__stats-card-text"]},F?me:ue),React.createElement("div",{className:R.A["product-interstitial__stats-card-value"]},le))),Q&&React.createElement(u.Card,{className:R.A["stats-card"]},React.createElement(d.A,{icon:p.A,className:R.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:R.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:R.A["product-interstitial__stats-card-value"]},H))),D&&React.createElement(u.Card,{className:R.A["stats-card"]},React.createElement(d.A,{icon:p.A,className:R.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:R.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:R.A["product-interstitial__stats-card-value"]},G)))))),React.createElement(s.A,{className:R.A["product-interstitial__section"]},React.createElement("div",{className:R.A["product-interstitial__section-wrapper"]},w&&React.createElement("div",{className:R.A["product-interstitial__ai-notice"]},React.createElement(l.A,{actions:F?[React.createElement(u.Button,{isPrimary:!0,onClick:be},re?we:ke)]:{},onClose:_e,level:re?"warning":"error",title:re?de:pe},re?ve:fe)),React.createElement("h2",{className:R.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:R.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:R.A["product-interstitial__usage-videos"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},V,je),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:g.A,href:ae},N?ne:ce))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:z}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},z),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:Z},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:Y},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:X},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:R.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:R.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:R.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:R.A["product-interstitial__usage-videos-link"],icon:h.A,target:"_blank",href:ee},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:R.A["product-interstitial__section"]},React.createElement("div",{className:R.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:R.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:R.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:R.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:K},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),o=a(8252);const __=c.__;function l(){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}}),l=(0,o.M)(c);return a?React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack")):React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:l,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),o=a(1609),l=a.n(o),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>l().createElement("div",{className:d.A["section-stats-highlights"]},l().createElement("h3",{className:d.A["section-title"]},l().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),l().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),l().createElement("div",{className:d.A["cards-list"]},l().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:l().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),l().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:l().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),l().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:l().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),l().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:l().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),o=a(5739),l=a.n(o),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:o})=>{const l=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(l),v=Number.isFinite(l)?((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),o&&m().createElement("div",{className:p.A["stats-card-heading"]},o),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!==l?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:l<0,[p.A["stats-card-difference--negative"]]:l>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(l)},l<0&&m().createElement(c.A,{size:18,icon:r.A}),l>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:l().number,heading:l().node,icon:l().node,previousCount:l().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),o=a(280),l=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,l.A$)("userIsAdmin"),{data:g}=(0,o.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)(),k=(0,c.useCallback)((()=>{w("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[w]),E=(0,c.useCallback)((()=>!(n!==r.hp.CAN_UPGRADE)),[n]),y={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:E},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:()=>g});var n=a(8509),c=a(7425),r=a(5879),s=a(1112),i=a(4082),o=a(7723),l=a(1609),u=a(6007),m=a(1521),d=a(4526),p=a(753),h=a(5225);const __=o.__,g=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:o}=(0,d.A)(),{setNotice:g,resetNotice:v}=(0,l.useContext)(u.g),f=__("Activate Jetpack in one click","jetpack-my-jetpack"),w=(0,l.useCallback)((async()=>{o("jetpack_myjetpack_welcome_banner_connect_site_click"),t((e=>({...e,isLoading:!0}))),await e(),o("jetpack_myjetpack_welcome_banner_connect_site_success");try{await(0,p.A)(),(0,i.Pg)();const{variationName:e}=await(0,i.nQ)("jetpack_my_jetpack_post_connection_flow_202408");"treatment"!==e&&(window.location.href="admin.php?page=my-jetpack#/connection"),t((t=>({...t,variation:e})))}finally{v(),g(m.F,v),t((e=>({...e,isLoading:!1})))}}),[e,t,o,v,g]);return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:h.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:f,mb:4}),React.createElement(s.A,{variant:"primary",disabled:a,isLoading:a,onClick:w},a?__("Activating…","jetpack-my-jetpack"):f)),React.createElement(n.A,{sm:6,md:8,lg:6,className:h.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,o=()=>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),o=a(3022),l=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,l.useState)(d),p=(0,l.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,l.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,o.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),o=a(3022),l=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),k=a(5225);const __=s.__,E=({children:e})=>{const{recordEvent:t}=(0,p.A)(),{dismissWelcomeBanner:a}=(0,d.A)(),{recommendedModules:s,submitEvaluation:E,saveEvaluationResult:y}=(0,u.A)(),{siteIsRegistered:A,siteIsRegistering:b,isUserConnected:_,isSiteConnected:j,handleRegisterSite:R}=(0,h.A)({skipUserConnection:!0}),[C,x]=(0,l.useState)(!1),[N,S]=(0,l.useState)(""),[z,M]=(0,l.useState)({isLoading:!1,variation:"control"}),L=(0,l.useMemo)((()=>!A||z.isLoading?"connection":C?"evaluation-processing":s||"control"!==z.variation&&(0,m.A)()?"evaluation":null),[C,s,A,z.isLoading,z.variation]);(0,l.useEffect)((()=>{N!==L&&(t("jetpack_myjetpack_welcome_banner_step_view",{current_step:L}),S(L))}),[L,N,t]);const P=(0,l.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:L,is_user_connected:_,is_site_connected:j}),a()}),[t,L,_,j,a]),V=(0,l.useCallback)((()=>{t("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),a()}),[a,t]),H=(0,l.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 E(n);await y(e),a()}catch(e){x(!1)}}),[a,t,y,E]);return(0,l.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:k.A.banner},React.createElement(g.O,{className:(0,o.A)(k.A["banner-card"],"connection"===L&&k.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:k.A["banner-content"]},"connection"===L&&React.createElement(v.A,{onActivateSite:R,onUpdateWelcomeFlowExperiment:M,isActivating:b||z.isLoading}),"evaluation"===L&&React.createElement(w.A,{onSkipOnboarding:V,onSubmitEvaluation:H}),"evaluation-processing"===L&&React.createElement(f.A,null))),React.createElement(r.A,{className:k.A.dismiss,variant:"secondary","aria-label":__("Don’t show the welcome message again","jetpack-my-jetpack"),size:"small",icon:i.A,disabled:b,onClick:P}))):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",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:()=>u,Ck:()=>_,DB:()=>r,D_:()=>x,Dz:()=>E,FW:()=>g,IM:()=>p,L6:()=>m,MB:()=>A,MD:()=>R,Md:()=>f,O2:()=>o,QO:()=>b,Sm:()=>s,_:()=>w,dB:()=>j,gw:()=>y,jE:()=>v,jf:()=>l,no:()=>d,nw:()=>k,pN:()=>C,rR:()=>i,tb:()=>c,xF:()=>h});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`,o=`${n}/chat/authentication`,l=`${n}/site/products`,u=`${n}/site/dismiss-welcome-banner`,m=`${n}/site/recommendations/evaluation`,d=`${n}/site/recommendations/evaluation/result`,p=e=>`jetpack/v4/stats-app/sites/${e}/stats/highlights`,h="product",g="activate product",v="install product",f="available licenses",w="chat availability",k="chat authentication",E="backup history",y="backup stats",A="stats counts",b="dismiss welcome banner",_="purchases",j="evaluate site recommendations",R="save site evaluation result",C="remove site evaluation result",x={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),o=a(929),l=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,l.A$)("recommendedModules").modules),p=(0,c.useMemo)((()=>{const{ownedProducts:e=[]}=(0,l.A$)("lifecycleStats");return n?.filter((t=>!e.includes(t))).slice(0,3)}),[n]),h=(0,c.useMemo)((()=>{const{dismissed:e}=(0,l.A$)("recommendedModules");return!e&&!t&&(0,u.A)()}),[t]),[g,v]=(0,r._)("recommendedModulesVisible",h&&!!p?.length),{mutate:f}=(0,o.A)({name:i.dB,query:{path:i.L6,method:"GET"},errorMessage:__("Failed to evaluate site recommendations","jetpack-my-jetpack")}),{mutate:w}=(0,o.A)({name:i.MD,query:{path:i.no,method:"POST"},errorMessage:__("Failed to save evaluation results. Please try again","jetpack-my-jetpack")}),{mutate:k}=(0,o.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)((()=>{k({},{onSuccess:()=>{v(!1),e("jetpack_myjetpack_evaluation_recommendations_dismiss_click")}})}),[k,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:()=>l});var n=a(7723),c=a(1609),r=a(3537),s=a(6007),i=a(1504);const __=n.__,o=[i.Ck,i.FW,i.jE],l=({infoName:e,isError:t,overrideMessage:a})=>{const{setNotice:i}=(0,c.useContext)(s.g),l=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&&o.includes(e)&&i({message:l,options:{id:"fetching-error-notice",level:"error",priority:r.PG}})}),[l,i,t,e])}},9935:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7723),c=a(4526),r=a(1504),s=a(929),i=a(8242),o=a(4923);const __=n.__,l=e=>{const{detail:t,refetch:a}=(0,o.A)(e),{recordEvent:l}=(0,c.A)(),{mutate:u,isPending:m}=(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)||(l("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/i18n-map.php b/jetpack_vendor/i18n-map.php index c18bd593..408670be 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' => '4.34.0-alpha1724947756', + 'ver' => '4.34.0-alpha1725025526', ), 'jetpack-password-checker' => array( 'path' => 'jetpack_vendor/automattic/jetpack-password-checker', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 78ab67c9..e98a93b3 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": "595ae082f5d15062df432c176a98b2526090d109" + "reference": "e00ae93f3afd628707f3e1281147114db5ee54b0" }, "require": { "php": ">=7.0" @@ -60,7 +60,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "8e2f7f649214585e392f475f8f5fdecc0060664c" + "reference": "ae92a14aecb07a9136755555e183c45fb8fd8fdb" }, "require": { "php": ">=7.0" @@ -125,7 +125,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "b33a23694839dd510e3e4eb2c2c2c13f735ba4a2" + "reference": "301d5257ffc5c0dd94297e7ebfbc4d5574254ea7" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -194,7 +194,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-autoloader", - "reference": "c652daba3b7bca9ecc326768dc76e6244b97e1af" + "reference": "d02d9bd00af15b5b6a17f0a51c58aaea5f1b5f7b" }, "require": { "composer-plugin-api": "^1.1 || ^2.0", @@ -261,7 +261,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-core", - "reference": "ea327be6f12cbd9fb5688bb43ffe8b6b2751d362" + "reference": "5839d4c4b966d71c9ada8d39fae02835c7dece1c" }, "require": { "automattic/jetpack-connection": "^2.12.5", @@ -329,7 +329,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score", - "reference": "19e0e25c46a49c02ca1899daa8a93b3b7d6c5228" + "reference": "a72d8dd6be0a2f2f1054fb10814e3063629d507c" }, "require": { "automattic/jetpack-boost-core": "^0.2.9", @@ -405,7 +405,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin", - "reference": "54bc33db271df4cc617aa8cd7c4bf637f6cfda85" + "reference": "56bb3c5e72407fd5390fbc3c214aa59665ecb815" }, "require": { "composer-plugin-api": "^2.1.0", @@ -465,7 +465,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-config", - "reference": "3a7b04fb2a6e4d69015c0e02047b678b312fdbcd" + "reference": "9e4e2cbd617aa8e6c1c29c00774042f125f35a96" }, "require": { "php": ">=7.0" @@ -540,7 +540,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "63dd4c422b971b755dd0622575e822a3f5074780" + "reference": "12ffdf481326a0c5c53614b77f0cafb088b43d57" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -627,7 +627,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "70b85bb5b28ede4f64322f81e3ceac053e771bec" + "reference": "0fb8fcee7e9bfc92201925e57b5f5d8104a8e5a1" }, "require": { "php": ">=7.0" @@ -681,7 +681,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "8ba9b4af7a3dad8c2f42037c308f8bd9b272910c" + "reference": "9ef66d39cfd275c7411d45ea27730dd99736b754" }, "require": { "php": ">=7.0" @@ -734,7 +734,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-explat", - "reference": "40c507146a263c93f64013a2a0b0cc80b82493e6" + "reference": "c32396c2cbf0f034a48e3b54c4b5e76a49591d49" }, "require": { "automattic/jetpack-connection": "^2.12.5", @@ -809,7 +809,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "5eb966992084e174c5d268ea4dd6f1942f811476" + "reference": "186fbe8db1b6f011a43ee5d19992227d59a6d2b4" }, "require": { "php": ">=7.0" @@ -867,7 +867,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "747590f226a35415fa0e5d0ef74358336763bfd7" + "reference": "22a9ef8cd608e3c02982afa973e8a9582e5e1413" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -942,7 +942,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-licensing", - "reference": "c0edc73741099bfe2275d328d64f9aaff94bee02" + "reference": "7662b5d5b6b488eabae95490271d07a8ba726f5b" }, "require": { "automattic/jetpack-connection": "^2.12.5", @@ -1004,7 +1004,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "05c42536dce8333bad5b6f90c9223eac13896c79" + "reference": "d779b6f550503a135f69ddaeeb92afc9445ebd16" }, "require": { "php": ">=7.0" @@ -1052,12 +1052,12 @@ }, { "name": "automattic/jetpack-my-jetpack", - "version": "4.34.0-alpha.1724947756", - "version_normalized": "4.34.0.0-alpha1724947756", + "version": "4.34.0-alpha.1725025526", + "version_normalized": "4.34.0.0-alpha1725025526", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack", - "reference": "9b76b18f744bc746ceebabeb5ab7483de0bcb49c" + "reference": "4d33d3b37dac3bd35506223cfc40a069d766bd92" }, "require": { "automattic/jetpack-admin-ui": "^0.4.4", @@ -1159,7 +1159,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "971e9c2f8bfc459c536b0f844bb8d125e264513e" + "reference": "54ab3ee64fdedb5bf5dac59688016f398496aed2" }, "require": { "php": ">=7.0" @@ -1220,7 +1220,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "b6da031714c2b64f5aae69cf6f389f478140f5e4" + "reference": "99f2cc74ed2ee08365cf69d6368599eb04afafad" }, "require": { "automattic/jetpack-connection": "^2.12.5", @@ -1288,7 +1288,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer", - "reference": "818c864278d2936aae7c6cf65d6ac4ea5eac6ef0" + "reference": "37ef8eea408c699825e980c998d10a7e66c01124" }, "require": { "automattic/jetpack-a8c-mc-stats": "^2.0.2", @@ -1344,7 +1344,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-models", - "reference": "be10edd17d54657a14a408b54f27da424ecbcb1a" + "reference": "6e9789dd30cc659bfb69257013368298fcb06277" }, "require": { "php": ">=7.0" @@ -1414,7 +1414,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-status", - "reference": "4d29127653b92e9bf930894ad7b513a9d7b11556" + "reference": "7d5e31877803025ef921c6c5d6b4d6a7211323b0" }, "require": { "automattic/jetpack-connection": "^2.12.5", @@ -1489,7 +1489,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "648770d3056dde6b5a24fb46690380f2630ecc5b" + "reference": "758e020b3aa01a7104296b56c1a39f6cfef1371b" }, "require": { "automattic/jetpack-status": "^3.3.4", @@ -1544,7 +1544,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "6f3e50f920b5d09962d2e2ff1916ce86d88d38a0" + "reference": "3aebaf7aef94d9f1467d761ba4b1ef9628479d32" }, "require": { "php": ">=7.0" @@ -1598,7 +1598,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-search", - "reference": "24aad2e7c2a86285eca43c7eadbee44396ad838a" + "reference": "b6743817074cf55e26e98d48ae90c9aa4ee91528" }, "require": { "automattic/jetpack-assets": "^2.3.5", @@ -1686,7 +1686,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "b26a4aec6b8c17f0ce0ccaa3a684ae2a777a6bf6" + "reference": "6f023c7e044d286525afc77e5022c17d1cc47509" }, "require": { "automattic/jetpack-connection": "^2.12.5", @@ -1753,7 +1753,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "24a4da965550142453cbb061ea5507233118601d" + "reference": "fc6dfdcfe3f5019cf95f60742f1d640dd309f0eb" }, "require": { "automattic/jetpack-constants": "^2.0.4", @@ -1817,7 +1817,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "9fefb27353617f3ff8f6f39a4ad70aca6bd9f601" + "reference": "34567bb29704e3df27299e17563e5e3517a1350b" }, "require": { "automattic/jetpack-connection": "^2.12.5", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 429defda..a9b90613 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' => '595ae082f5d15062df432c176a98b2526090d109', + 'reference' => 'e00ae93f3afd628707f3e1281147114db5ee54b0', '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.4', 'version' => '0.4.4.0', - 'reference' => '8e2f7f649214585e392f475f8f5fdecc0060664c', + 'reference' => 'ae92a14aecb07a9136755555e183c45fb8fd8fdb', '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.5', 'version' => '2.3.5.0', - 'reference' => 'b33a23694839dd510e3e4eb2c2c2c13f735ba4a2', + 'reference' => '301d5257ffc5c0dd94297e7ebfbc4d5574254ea7', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-autoloader' => array( 'pretty_version' => '3.0.10', 'version' => '3.0.10.0', - 'reference' => 'c652daba3b7bca9ecc326768dc76e6244b97e1af', + 'reference' => 'd02d9bd00af15b5b6a17f0a51c58aaea5f1b5f7b', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-boost-core' => array( 'pretty_version' => '0.2.9', 'version' => '0.2.9.0', - 'reference' => 'ea327be6f12cbd9fb5688bb43ffe8b6b2751d362', + 'reference' => '5839d4c4b966d71c9ada8d39fae02835c7dece1c', '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.3.12', 'version' => '0.3.12.0', - 'reference' => '19e0e25c46a49c02ca1899daa8a93b3b7d6c5228', + 'reference' => 'a72d8dd6be0a2f2f1054fb10814e3063629d507c', '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' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => '54bc33db271df4cc617aa8cd7c4bf637f6cfda85', + 'reference' => '56bb3c5e72407fd5390fbc3c214aa59665ecb815', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin', 'aliases' => array(), @@ -76,7 +76,7 @@ 'automattic/jetpack-config' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '3a7b04fb2a6e4d69015c0e02047b678b312fdbcd', + 'reference' => '9e4e2cbd617aa8e6c1c29c00774042f125f35a96', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config', 'aliases' => array(), @@ -85,7 +85,7 @@ 'automattic/jetpack-connection' => array( 'pretty_version' => '2.12.5', 'version' => '2.12.5.0', - 'reference' => '63dd4c422b971b755dd0622575e822a3f5074780', + 'reference' => '12ffdf481326a0c5c53614b77f0cafb088b43d57', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '70b85bb5b28ede4f64322f81e3ceac053e771bec', + 'reference' => '0fb8fcee7e9bfc92201925e57b5f5d8104a8e5a1', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '2.1.4', 'version' => '2.1.4.0', - 'reference' => '8ba9b4af7a3dad8c2f42037c308f8bd9b272910c', + 'reference' => '9ef66d39cfd275c7411d45ea27730dd99736b754', '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.1.5', 'version' => '0.1.5.0', - 'reference' => '40c507146a263c93f64013a2a0b0cc80b82493e6', + 'reference' => 'c32396c2cbf0f034a48e3b54c4b5e76a49591d49', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.2.3', 'version' => '0.2.3.0', - 'reference' => '5eb966992084e174c5d268ea4dd6f1942f811476', + 'reference' => '186fbe8db1b6f011a43ee5d19992227d59a6d2b4', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '3.1.19', 'version' => '3.1.19.0', - 'reference' => '747590f226a35415fa0e5d0ef74358336763bfd7', + 'reference' => '22a9ef8cd608e3c02982afa973e8a9582e5e1413', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-licensing' => array( 'pretty_version' => '2.0.7', 'version' => '2.0.7.0', - 'reference' => 'c0edc73741099bfe2275d328d64f9aaff94bee02', + 'reference' => '7662b5d5b6b488eabae95490271d07a8ba726f5b', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing', 'aliases' => array(), @@ -148,16 +148,16 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '2.0.4', 'version' => '2.0.4.0', - 'reference' => '05c42536dce8333bad5b6f90c9223eac13896c79', + 'reference' => 'd779b6f550503a135f69ddaeeb92afc9445ebd16', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-my-jetpack' => array( - 'pretty_version' => '4.34.0-alpha.1724947756', - 'version' => '4.34.0.0-alpha1724947756', - 'reference' => '9b76b18f744bc746ceebabeb5ab7483de0bcb49c', + 'pretty_version' => '4.34.0-alpha.1725025526', + 'version' => '4.34.0.0-alpha1725025526', + 'reference' => '4d33d3b37dac3bd35506223cfc40a069d766bd92', '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.3.2', 'version' => '0.3.2.0', - 'reference' => '971e9c2f8bfc459c536b0f844bb8d125e264513e', + 'reference' => '54ab3ee64fdedb5bf5dac59688016f398496aed2', '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.4.8', 'version' => '0.4.8.0', - 'reference' => 'b6da031714c2b64f5aae69cf6f389f478140f5e4', + 'reference' => '99f2cc74ed2ee08365cf69d6368599eb04afafad', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-plugins-installer' => array( 'pretty_version' => '0.4.2', 'version' => '0.4.2.0', - 'reference' => '818c864278d2936aae7c6cf65d6ac4ea5eac6ef0', + 'reference' => '37ef8eea408c699825e980c998d10a7e66c01124', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-plugins-installer', 'aliases' => array(), @@ -193,7 +193,7 @@ 'automattic/jetpack-protect-models' => array( 'pretty_version' => '0.2.1', 'version' => '0.2.1.0', - 'reference' => 'be10edd17d54657a14a408b54f27da424ecbcb1a', + 'reference' => '6e9789dd30cc659bfb69257013368298fcb06277', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-models', 'aliases' => array(), @@ -202,7 +202,7 @@ 'automattic/jetpack-protect-status' => array( 'pretty_version' => '0.1.3', 'version' => '0.1.3.0', - 'reference' => '4d29127653b92e9bf930894ad7b513a9d7b11556', + 'reference' => '7d5e31877803025ef921c6c5d6b4d6a7211323b0', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => '648770d3056dde6b5a24fb46690380f2630ecc5b', + 'reference' => '758e020b3aa01a7104296b56c1a39f6cfef1371b', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect', 'aliases' => array(), @@ -220,7 +220,7 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '2.0.3', 'version' => '2.0.3.0', - 'reference' => '6f3e50f920b5d09962d2e2ff1916ce86d88d38a0', + 'reference' => '3aebaf7aef94d9f1467d761ba4b1ef9628479d32', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles', 'aliases' => array(), @@ -229,7 +229,7 @@ 'automattic/jetpack-search' => array( 'pretty_version' => '0.45.0-alpha.1724905418', 'version' => '0.45.0.0-alpha1724905418', - 'reference' => '24aad2e7c2a86285eca43c7eadbee44396ad838a', + 'reference' => 'b6743817074cf55e26e98d48ae90c9aa4ee91528', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-search', 'aliases' => array(), @@ -247,7 +247,7 @@ 'automattic/jetpack-stats' => array( 'pretty_version' => '0.13.1', 'version' => '0.13.1.0', - 'reference' => 'b26a4aec6b8c17f0ce0ccaa3a684ae2a777a6bf6', + 'reference' => '6f023c7e044d286525afc77e5022c17d1cc47509', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-stats', 'aliases' => array(), @@ -256,7 +256,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '3.3.4', 'version' => '3.3.4.0', - 'reference' => '24a4da965550142453cbb061ea5507233118601d', + 'reference' => 'fc6dfdcfe3f5019cf95f60742f1d640dd309f0eb', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status', 'aliases' => array(), @@ -265,7 +265,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '3.9.0-alpha.1724928414', 'version' => '3.9.0.0-alpha1724928414', - 'reference' => '9fefb27353617f3ff8f6f39a4ad70aca6bd9f601', + 'reference' => '34567bb29704e3df27299e17563e5e3517a1350b', '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 94233f77..ee13934d 100644 --- a/vendor/composer/jetpack_autoload_classmap.php +++ b/vendor/composer/jetpack_autoload_classmap.php @@ -335,123 +335,123 @@ 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-status/src/class-modules.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Activitylog' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-activitylog.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Hybrid_Product' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Initializer' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Jetpack_Manage' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-jetpack-manage.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Module_Product' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-module-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Product' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Anti_Spam' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Backup' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-backup.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Boost' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-boost.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Creator' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-creator.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Crm' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-crm.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Extras' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-extras.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Jetpack_Ai' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Protect' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-protect.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Scan' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-scan.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search_Stats' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Security' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-security.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Social' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Starter' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-starter.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Stats' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Videopress' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-videopress.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_AI' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Product_Data' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-product-data.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Purchases' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-purchases.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Recommendations_Evaluation' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-recommendations-evaluation.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Zendesk_Chat' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-zendesk-chat.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Wpcom_Products' => array( - 'version' => '4.34.0.0-alpha1724947756', + 'version' => '4.34.0.0-alpha1725025526', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-wpcom-products.php' ), 'Automattic\\Jetpack\\Partner' => array(