diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md index 5c33dc9a..65b9b670 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This is an alpha version! The changes listed here are not final. +### Changed +- Remove creator card and update paid plan checks to account for growth + ## [5.0.1] - 2024-11-18 ### Changed - Update dependencies. [#38910] 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 8ba6a199..43a84910 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.asset.php @@ -1 +1 @@ - array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'db398117c2c37674d62a'); + array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'd26b372214e521ebacbe'); diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js index 3875a15b..286bd141 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js @@ -19,7 +19,7 @@ __("Connected as %1$s.","jetpack-my-jetpack"),n.currentUser?.wpcomUser?.display_ __("Also connected: %s (Owner).","jetpack-my-jetpack"),S.connectionOwner)})),React.createElement(s.ManageConnectionDialog,{apiRoot:e,apiNonce:t,onDisconnected:Z,connectedPlugins:d,connectedSiteId:C,connectedUser:S,isOpen:V,onClose:K,context:x}))}},3593:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(8837),c=a(4923),r=a(8117),s=a(1870),i=a(3981),l=a(4596);function o(){const{apiRoot:e,apiNonce:t,topJetpackMenuItemUrl:a,connectedPlugins:o}=(0,s.A)(),u=(0,i.A)(n.NM.Connection),m=(0,c.V)(),d=(0,r.A)(m);return React.createElement(l.A,{apiRoot:e,apiNonce:t,redirectUri:a,onConnectUser:u,connectedPlugins:o,requiresUserConnection:d.length>0,onDisconnected:()=>document?.location?.reload(!0)})}},5167:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var n=a(5918),c=a(8509),r=a(7425),s=a(6427),i=a(7723),l=a(2778),o=a(8888),u=a(9115),m=a(3022),d=a(1609),p=a(3804),h=a(4526),g=a(9674),v=a(6225);const __=i.__,_n=i._n,f=()=>{const e=(0,d.useRef)(null),{recordEvent:t}=(0,h.A)(),{recommendedModules:a,redoEvaluation:i,removeEvaluationResult:f}=(0,p.A)(),[w,E]=(0,d.useState)(!0),[k,y]=(0,d.useState)(!1),A=(0,d.useCallback)((()=>{if(e.current){const{scrollLeft:t,scrollWidth:a,clientWidth:n}=e.current;E(0===t),y(t+n>=a)}}),[e]),b=(e,t,a=24)=>{if(e.current){const n=e.current.querySelector("li").clientWidth;e.current.scrollBy({left:t*(n+a),behavior:"smooth"})}},j=(0,d.useCallback)((()=>{b(e,1),t("jetpack_myjetpack_recommendations_slide_arrow_click",{direction:"next"})}),[t,e]),R=(0,d.useCallback)((()=>{b(e,-1),t("jetpack_myjetpack_recommendations_slide_arrow_click",{direction:"previous"})}),[t,e]),_=_n("Our recommendation for you","Our recommendations for you",a.length,"jetpack-my-jetpack"),C=__("Redo","jetpack-my-jetpack"),x=__("Dismiss","jetpack-my-jetpack");return(0,d.useEffect)((()=>{const t=e.current;if(t)return t.addEventListener("scroll",A),A(),()=>{t.removeEventListener("scroll",A)}}),[A]),(0,d.useEffect)((()=>{t("jetpack_myjetpack_evaluation_recommendations_view",{modules:a})}),[a,t]),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:v.A.title},_),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:v.A["dropdown-menu"]},popoverProps:{position:"bottom left"},icon:l.A,label:__("Recommendations menu","jetpack-my-jetpack"),controls:[{title:C,onClick:i},{title:x,onClick:f}]})))),React.createElement(c.A,null,React.createElement(n.A,{ref:e,tagName:"ul",className:v.A["recommendations-list"],horizontalGap:4,horizontalSpacing:2,fluid:!0},a.map((e=>{const t=g.z[e];return t&&React.createElement(c.A,{tagName:"li",key:e,lg:4},React.createElement(t,{recommendation:!0}))}))),React.createElement(s.Flex,{align:"center",justify:"center"},React.createElement(s.FlexItem,null,React.createElement(s.Button,{className:(0,m.A)(v.A["slider-button"],v.A["prev-button"]),onClick:R,disabled:w,"aria-disabled":w,"aria-label":__("Previous","jetpack-my-jetpack")},React.createElement(s.Icon,{icon:o.A}))),React.createElement(s.FlexItem,null,React.createElement(s.Button,{className:(0,m.A)(v.A["slider-button"],v.A["next-button"]),onClick:j,disabled:k,"aria-disabled":k,"aria-label":__("Next","jetpack-my-jetpack")},React.createElement(s.Icon,{icon:u.A}))))))}},1617:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(7723),c=a(1113),r=a(7474),s=a(1609),i=a.n(s),l=a(28),o=a(8870);const __=n.__;const u=function({onClick:e=()=>{},reload:t}){const a=t?"/?reload=true":"/";return i().createElement(l.N_,{to:a,className:o.A.link,onClick:e},i().createElement(c.A,{icon:r.A,className:o.A.icon}),__("Go back","jetpack-my-jetpack"))}},1651:(e,t,a)=>{"use strict";a.d(t,{k:()=>m});var n=a(1112),c=a(8478),r=a(6427),s=a(8443),i=a(7723),l=a(3022),o=a(1609),u=a(9331);a(4800);const __=i.__;function m({productName:e,giftedDate:t}){const[a,m]=(0,o.useState)(!1),d=(0,o.useCallback)((()=>m(!0)),[m]),p={position:"top center",placement:"top",animate:!0,noArrow:!1,resize:!1,flip:!1,offset:6,focusOnMount:"container",onClose:(0,o.useCallback)((()=>m(!1)),[m]),className:u.A.container},h=(0,l.A)(u.A.wrapper,"golden-token-icon-tooltip");return React.createElement("div",{className:h},React.createElement(n.A,{variant:"link",onClick:d},React.createElement(c.sT,{className:u.A.logo})),React.createElement("div",{className:u.A.helper},a&&React.createElement(r.Popover,p,React.createElement("div",null,React.createElement("div",{className:u.A.title},e),React.createElement("div",{className:u.A.content},(0,i.sprintf)( // translators: %1$s is a product name, %2$s is the date the product was gifted. __("%1$s was gifted on %2$s. It gives you access to a lifetime subscription of Jetpack VaultPress Backup and Jetpack Scan.","jetpack-my-jetpack"),e,(0,s.dateI18n)("F j, Y",t)))))))}},6894:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6427),c=a(1609),r=a.n(c),s=a(146);const i=function(){const[e,t]=(0,c.useState)(!0),a=(0,c.useCallback)((()=>t(!1)),[]);if(!e)return null;if(!Object.hasOwn(window,"JP_IDENTITY_CRISIS__INITIAL_STATE"))return null;const{containerID:i,isSafeModeConfirmed:l}=window.JP_IDENTITY_CRISIS__INITIAL_STATE;return!i||l?null:r().createElement(n.Modal,{onRequestClose:a,overlayClassName:s.A.modal},r().createElement("div",{id:i,className:s.A.container}))}},2660:(e,t,a)=>{"use strict";a.d(t,{I:()=>l});var n=a(1883),c=a(6427),r=a(9491),s=a(1609),i=a(4526);a(6632);const l=({children:e,className:t,icon:a="info-outline",iconSize:l=14,tracksEventName:o,tracksEventProps:u={}})=>{const{recordEvent:m}=(0,i.A)(),d=(0,s.useRef)(),p=(0,r.useViewportMatch)("medium","<"),[h,g]=(0,s.useState)(!1),v=(0,s.useCallback)((()=>g((e=>(!0==!e&&o&&m(`jetpack_${o}`,{page:"my-jetpack",...u}),!e)))),[m,o,u]),f=(0,s.useCallback)((()=>{d.current&&!d.current.contains(d.current.ownerDocument.activeElement)&&g(!1)}),[g,d]);return React.createElement("span",{className:t},React.createElement("button",{className:"info-tooltip__button",onClick:v,ref:d},React.createElement(n.A,{icon:a,size:l})),h&&React.createElement(c.Popover,{placement:p?"top-end":"right",noArrow:!1,offset:10,focusOnMount:"container",onClose:f},React.createElement("div",{className:"info-tooltip__content"},e)))}},3449:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(7506),c=a(3924),r=a(7723),s=a(1609),i=a.n(s),l=a(4526),o=a(4576);const __=r.__,u=e=>{const{isAgencyAccount:t=!1}=e,{recordEvent:a}=(0,l.A)();(0,s.useEffect)((()=>{a("jetpack_myjetpack_manage_banner_view",{})}),[a]);const r=(0,s.useCallback)((e=>{a("jetpack_myjetpack_manage_banner_click",{target:e,feature:"manage"})}),[a]),u=(0,s.useCallback)((()=>{r("jp-agencies-register-interest")}),[r]);return i().createElement(n.A,{icon:o,title:__("Manage client sites and grow your business","jetpack-my-jetpack"),description:__("Are you an agency or freelancer? We’re working on a new partnership program bringing together the best of Jetpack, Woo, WordPress.com, and Pressable. Get bulk discounts, referral commissions, and more.","jetpack-my-jetpack"),primaryCtaLabel:__("Sign up now","jetpack-my-jetpack"),primaryCtaURL:(0,c.A)("jetpack-for-agencies-register-interest"),primaryCtaIsExternalLink:!0,primaryCtaOnClick:u})}},2912:(e,t,a)=>{"use strict";a.d(t,{A:()=>L});var n=a(6072),c=a.n(n),r=a(442),s=a(8089),i=a(7656),l=a(2947),o=a(5918),u=a(8509),m=a(5640),d=a(8587),p=a(3022),h=a(1609),g=a(6007),v=a(1504),f=a(3804),w=a(280),E=a(8242),k=a(9812),y=a(4526),A=a(1870),b=a(7436),j=a(3593),R=a(5167),_=a(6894),C=a(3449),x=a(3958),N=a(5487),z=a(8388),M=a(5055);const S=({message:e,title:t,options:a})=>{const{recordEvent:n}=(0,y.A)();(0,h.useEffect)((()=>{const e=a?.tracksArgs||{};n("jetpack_myjetpack_global_notice_view",{notice_id:a.id,...e})}),[a.id,n,a?.tracksArgs]);const[l]=(0,r.A)(["md"],[">"]),o=a.actions?.map((e=>React.createElement(s.A,c()({key:e.key||e.label,customClass:M.A.cta},e))));return React.createElement("div",{className:(0,p.A)(M.A.notice,{[M.A["bigger-than-medium"]]:l})},React.createElement(i.A,c()({hideCloseButton:!0},a,{title:t,actions:o}),React.createElement("div",{className:M.A.message},e)))};function L(){const[e,t]=(0,h.useState)({isLoading:!1,variation:"control"});(0,b.A)();const{redBubbleAlerts:a}=(0,E.A$)(),{isAtomic:n=!1,jetpackManage:c={},adminUrl:r}=(0,E.A$)(),{isWelcomeBannerVisible:s}=(0,k.A)(),{isSectionVisible:i}=(0,f.A)(),{siteIsRegistered:p}=(0,A.A)(),{currentNotice:L}=(0,h.useContext)(g.g),{message:V,title:P,options:H}=L||{},{data:I,isLoading:B}=(0,w.A)({name:v._,query:{path:v.rR}}),{data:O,isLoading:T}=(0,w.A)({name:v.nw,query:{path:v.O2}}),F=I?.is_available,U=O?.user?.jwt,D=!T&&!B&&F&&U,q="1"===(0,E.A$)("userIsNewToJetpack"),{recordEvent:J}=(0,y.A)(),[G,$]=(0,h.useState)(!1);return(0,h.useLayoutEffect)((()=>{J("jetpack_myjetpack_page_view",{red_bubble_alerts:Object.keys(a).join(",")})}),[J,a]),window.location.hash.includes("?reload=true")&&(window.history.replaceState(null,"",window.location.href.replace("?reload=true","")),window.location.reload(),$(!0)),G?null:React.createElement(l.A,{siteAdminUrl:r},React.createElement("hr",{className:M.A.separator}),React.createElement(_.A,null),!q&&React.createElement(o.A,{horizontalSpacing:0},React.createElement(u.A,null,React.createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"}))),s?React.createElement(z.A,{welcomeFlowExperiment:e,setWelcomeFlowExperiment:t},V&&p&&React.createElement(S,{message:V,title:P,options:H})):V&&React.createElement(o.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(u.A,null,React.createElement(S,{message:V,title:P,options:H}))),!s&&i&&React.createElement(R.A,null),React.createElement(N.A,null),c.isEnabled&&React.createElement(o.A,{horizontalSpacing:6,horizontalGap:V?3:6},React.createElement(u.A,null,React.createElement(C.A,{isAgencyAccount:c.isAgencyAccount}))),React.createElement(m.A,null,React.createElement(o.A,{horizontalSpacing:8},React.createElement(u.A,{sm:4,md:4,lg:6},React.createElement(x.A,null)),React.createElement(u.A,{sm:4,md:4,lg:6},!n&&React.createElement(j.A,null)))),D&&React.createElement(d.A,{jwt_token:U}))}},3958:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(7425),c=a(1112),r=a(7723),s=a(1609),i=a(8837),l=a(1504),o=a(280),u=a(8242),m=a(4526),d=a(1870),p=a(3981),h=a(6256),g=a(3542),v=a(8252),f=a(1651),w=a(4334);const __=r.__,_n=r._n;function E({purchase:e={}}){const{product_name:t}=e;return React.createElement(React.Fragment,null,React.createElement(n.hE,null,t),React.createElement(k,e))}function k(e){const{expiry_message:t,product_name:a,subscribed_date:c}=e;return(0,v.b)(e)?React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},React.createElement("span",{className:w.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(f.k,{productName:a,giftedDate:c})):React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},t)}function y({numberOfPurchases:e=0}){return React.createElement(React.Fragment,null,React.createElement(n.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(n.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function A({numberOfPurchases:e}){const{recordEvent:t}=(0,m.A)(),{isUserConnected:a}=(0,d.A)(),n=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),r=__("Purchase a plan","jetpack-my-jetpack"),l=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),o=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),v=(0,p.A)(i.NM.Connection),f=(0,s.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||v()}),[v,a,t]);let E=__("Activate a license","jetpack-my-jetpack");a||(E=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:k="",adminUrl:y=""}=(0,u.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:l,href:(0,h.A)(),weight:"regular",variant:"link",isExternalLink:!0},n)),React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:o,href:(0,g.A)(),weight:"regular",variant:"link",isExternalLink:!0},r)),k&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:f,href:a?`${y}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},E)))}function b(){const e=!!(0,u.A$)("userIsAdmin"),{isSiteConnected:t}=(0,d.A)(),{data:a,isLoading:n,isError:c}=(0,o.A)({name:l.Ck,query:{path:l.tb},options:{enabled:t}}),r=a&&!n&&!c,s=r?a.length:0;return React.createElement("div",{className:w.A.container},React.createElement(y,{numberOfPurchases:s}),React.createElement("div",{className:w.A.purchasesSection},r&&a.map((e=>React.createElement(E,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(A,{numberOfPurchases:s}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(6072),c=a.n(n),r=a(1112),s=a(7723),i=a(1113),l=a(3512),o=a(3883),u=a(4969),m=a(3022),d=a(6941),p=a.n(d),h=a(1609),g=a(8837),v=a(4923),f=a(4526),w=a(1413),E=a(1208);const __=s.__,k=p()("my-jetpack:product-card:action-button"),y=({status:e,admin:t,name:a,slug:n,onActivate:d,additionalActions:p,primaryActionOverride:y,onManage:A,onFixConnection:b,isFetching:j,isInstallingStandalone:R,className:_,onAdd:C,onInstall:x,onLearnMore:N,upgradeInInterstitial:z,isOwned:M})=>{const[S,L]=(0,h.useState)(!1),[V,P]=(0,h.useState)({}),{detail:H}=(0,v.A)(n),{manageUrl:I,purchaseUrl:B}=H,O=!I,T=(0,h.useRef)(null),F=(0,h.useRef)(null),{recordEvent:U}=(0,f.A)();"jetpack-ai"===n&&k(n,H);const D=j||R,q=p?.length>0,J=(0,h.useMemo)((()=>({variant:D?void 0:"primary",disabled:D,size:"small",weight:"regular",className:_})),[D,_]),G=(0,h.useCallback)((()=>{switch("jetpack-ai"===n&&k(n,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...J,href:`#/add-${n}`,variant:"primary",label:e,onClick:N,...y&&g.hp.ABSENT in y&&y[g.hp.ABSENT]}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...J,variant:"primary",label:e,onClick:x,...y&&g.hp.ABSENT_WITH_PLAN in y&&y[g.hp.ABSENT_WITH_PLAN]}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...J,href:B||`#/add-${n}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:C,...y&&g.hp.NEEDS_FIRST_SITE_CONNECTION in y&&y[g.hp.NEEDS_FIRST_SITE_CONNECTION]};case g.hp.NEEDS_PLAN:{const e=__("Get plan","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=M?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.NEEDS_PLAN in y&&y[g.hp.NEEDS_PLAN]}}case g.hp.CAN_UPGRADE:{const e=__("Upgrade","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=B||z?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.CAN_UPGRADE in y&&y[g.hp.CAN_UPGRADE]}}case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...J,disabled:O||J?.disabled,href:I,variant:"secondary",label:e,onClick:A,...y&&g.hp.ACTIVE in y&&y[g.hp.ACTIVE]}}case g.hp.SITE_CONNECTION_ERROR:return{...J,href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.SITE_CONNECTION_ERROR in y&&y[g.hp.SITE_CONNECTION_ERROR]};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.USER_CONNECTION_ERROR in y&&y[g.hp.USER_CONNECTION_ERROR]};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...J,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...y&&g.hp.INACTIVE in y&&y[g.hp.INACTIVE]};default:return null}}),[e,J,n,C,b,d,x,N,B,z,O,I,A,y,M]),$=(0,h.useMemo)((()=>q?[...p,G()]:[G()]),[p,G,q]),W=(0,h.useCallback)((()=>{U("jetpack_myjetpack_product_card_dropdown_toggle",{product:n,state:S?"closed":"open"})}),[S,U,n]),Q=(0,h.useCallback)((()=>{L(!S),W()}),[S,W]);if((0,h.useEffect)((()=>{P($[0])}),[$]),(0,w.A)(T,(e=>{F.current.contains(e.target)||(L(!1),W())})),!t)return React.createElement(r.A,c()({},J,{size:"small",variant:"link",weight:"regular"}),/* translators: placeholder is product name. */ /* translators: placeholder is product name. */ -(0,s.sprintf)(__("Learn about %s","jetpack-my-jetpack"),a));const K=q&&React.createElement("div",{ref:T,className:E.A["action-button-dropdown"]},React.createElement("ul",{className:E.A["dropdown-menu"]},[...p,G()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{P($[a]),L(!1),U("jetpack_myjetpack_product_card_dropdown_action_click",{product:n,action:e})},className:E.A["dropdown-item"]},React.createElement("div",{className:E.A["dropdown-item-label"]},e,t&&React.createElement(i.A,{icon:l.A,size:16})),e===V.label&&React.createElement("div",{className:E.A["active-action-checkmark"]},React.createElement(i.A,{icon:o.A,size:24,fill:"white"}))))))));return React.createElement(React.Fragment,null,React.createElement("div",{className:(0,m.A)(E.A["action-button"],q?E.A["has-additional-actions"]:null)},React.createElement(r.A,c()({},J,V),V.label),q&&React.createElement("button",{className:(0,m.A)(E.A["dropdown-chevron"],"primary"===V.variant?E.A.primary:E.A.secondary),onClick:Q,ref:F},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===V.variant?"white":"black"})),S&&K))}},5410:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(6072),c=a.n(n),r=a(7723),s=a(3022),i=a(1609),l=a(8837),o=a(8242),u=a(4526),m=a(2450),d=a(169),p=a(6710),h=a(7879),g=a(1887),v=a(2854),f=a(1208);const __=r.__,w=e=>{const t={isFetching:!1,isInstallingStandalone:!1,onActivate:()=>{},...e},{name:a,Description:n,status:r,onActivate:w,isFetching:E,isDataLoading:k,isInstallingStandalone:y,slug:A,additionalActions:b,primaryActionOverride:j,secondaryAction:R,children:_,onInstallStandalone:C,onMouseEnter:x,onMouseLeave:N,recommendation:z,customLoadTracks:M}=e,{ownedProducts:S}=(0,o.A$)("lifecycleStats"),L=S?.includes(A),V=r===l.hp.SITE_CONNECTION_ERROR||r===l.hp.USER_CONNECTION_ERROR,P=r===l.hp.ABSENT||r===l.hp.ABSENT_WITH_PLAN,H=r===l.hp.NEEDS_PLAN,I=(0,s.A)({[f.A.plugin_absent]:P,[f.A["is-purchase-required"]]:H,[f.A["is-link"]]:P,[f.A["has-error"]]:V}),{recordEvent:B}=(0,u.A)(),O=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_activate_click",{product:A}),w()}),[A,w,B]),T=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_add_click",{product:A})}),[A,B]),F=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_manage_click",{product:A})}),[A,B]),U=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_fixconnection_click",{product:A})}),[A,B]),D=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_learnmore_click",{product:A})}),[A,B]),q=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_install_standalone_plugin_click",{product:A}),C()}),[A,C,B]);return(0,i.useEffect)((()=>{B("jetpack_myjetpack_product_card_load",{product:A,status:r,...M})}),[B,A,r,M]),React.createElement(m.A,{title:a,className:(0,s.A)(f.A.container,I),headerRightContent:null,onMouseEnter:x,onMouseLeave:N},z&&React.createElement(p.A,{slug:A}),React.createElement(n,null),k?React.createElement("span",{className:f.A.loading},__("Loading…","jetpack-my-jetpack")):_,z?React.createElement(h.A,{slug:A}):React.createElement("div",{className:f.A.actions},React.createElement("div",{className:f.A.buttons},R&&R?.positionFirst&&React.createElement(g.A,R),React.createElement(d.A,c()({},t,{onActivate:O,onFixConnection:U,onManage:F,onAdd:T,onInstall:q,onLearnMore:D,className:f.A.button,additionalActions:b,primaryActionOverride:j,isOwned:L})),R&&!R?.positionFirst&&React.createElement(g.A,R)),React.createElement(v.A,{status:r,isFetching:E,isInstallingStandalone:y,isOwned:L})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7397),c=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=c.__,l=({slug:e})=>{const{discountPrice:t,fullPrice:a,currencyCode:c}=(0,i.A)(e);return React.createElement("div",{className:s.A.priceContainer},t&&React.createElement("span",{className:s.A.price},(0,n.Ay)(t,c)),React.createElement("span",{className:(0,r.A)(s.A.price,t&&s.A.discounted)},(0,n.Ay)(a,c)),React.createElement("span",{className:s.A.term},__("/month, billed yearly","jetpack-my-jetpack")))}},7879:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6072),c=a.n(n),r=a(1112),s=a(3022),i=a(1208),l=a(6147);const o=({slug:e})=>{const{secondaryAction:t,purchaseAction:a,isActivating:n}=(0,l.A)(e);return React.createElement("div",{className:i.A.actions},React.createElement("div",{className:(0,s.A)(i.A.buttons,i.A.upsell)},a&&React.createElement(r.A,c()({size:"small"},a),a.label),React.createElement(r.A,c()({size:"small",variant:"secondary",disabled:n},t),t.label)))}},1887:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(1112),c=a(7723);const __=c.__,r=e=>{const{shouldShowButton:t=()=>!0,...a}={size:"small",variant:"secondary",weight:"regular",label:__("Learn more","jetpack-my-jetpack"),...e};return!!t()&&React.createElement(n.A,a,a.label)}},2854:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7425),c=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=c.__,l=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:c})=>{const l=((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return __("Active","jetpack-my-jetpack");case s.hp.INACTIVE:case s.hp.MODULE_DISABLED:case s.hp.NEEDS_ACTIVATION:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.ABSENT:return __("Inactive","jetpack-my-jetpack");case s.hp.ABSENT_WITH_PLAN:return __("Needs Plugin","jetpack-my-jetpack");case s.hp.USER_CONNECTION_ERROR:return __("Needs user account","jetpack-my-jetpack");case s.hp.SITE_CONNECTION_ERROR:return __("Needs connection","jetpack-my-jetpack");case s.hp.NEEDS_PLAN:{const e=__("Needs plan","jetpack-my-jetpack"),a=__("Inactive","jetpack-my-jetpack");return t?e:a}default:return __("Inactive","jetpack-my-jetpack")}})(e,c),o=(0,r.A)(i.A.status,((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return i.A.active;case s.hp.ABSENT_WITH_PLAN:case s.hp.SITE_CONNECTION_ERROR:case s.hp.USER_CONNECTION_ERROR:return i.A.warning;case s.hp.INACTIVE:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.NEEDS_ACTIVATION:return i.A.inactive;case s.hp.NEEDS_PLAN:return t?i.A.warning:i.A.inactive;default:return i.A.inactive}})(e,c),{[i.A["is-fetching"]]:t||a});return React.createElement(n.Ay,{variant:"label",className:o},l)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(9384),c=a(7723),r=a(1609),s=a(8837),i=a(9935),l=a(4923),o=a(8242),u=a(4526),m=a(1870);const __=c.__,d=(e,t)=>{const a=e.status===s.hp.ACTIVE&&(e.isUpgradableByBundle.length||e.isUpgradable),n=e.pricingForUi.fullPrice||e.pricingForUi.tiers?.upgraded?.fullPrice;return e.status===s.hp.CAN_UPGRADE||a?n?{label:__("Upgrade","jetpack-my-jetpack"),onClick:t}:null:{label:__("Purchase","jetpack-my-jetpack"),onClick:t}},p=(e,t)=>{!e.isPluginActive||e.status===s.hp.NEEDS_ACTIVATION||(e.status,s.hp.NEEDS_PLAN);return{label:__("Learn more","jetpack-my-jetpack"),href:`#/add-${e.slug}`}},h=e=>{const{recordEvent:t}=(0,u.A)(),{detail:a}=(0,l.A)(e),{wpcomProductSlug:c,wpcomFreeProductSlug:s,...h}=(e=>{const{tiers:t,wpcomFreeProductSlug:a}=e;if(e.tiers){const{discountPrice:e,fullPrice:n,currencyCode:c,wpcomProductSlug:r,quantity:s}=t.upgraded;return{wpcomFreeProductSlug:a,wpcomProductSlug:s?`${r}:-q-${s}`:r,discountPrice:e&&e!==n?e/12:null,fullPrice:n/12,currencyCode:c}}const{discountPricePerMonth:n,fullPricePerMonth:c,currencyCode:r,isIntroductoryOffer:s,wpcomProductSlug:i}=e;return{wpcomFreeProductSlug:a,wpcomProductSlug:i,discountPrice:s?n:null,fullPrice:c,currencyCode:r}})(a.pricingForUi),{isUserConnected:g}=(0,m.A)(),{myJetpackUrl:v,siteSuffix:f}=(0,o.A$)(),{activate:w,isPending:E}=(0,i.A)(e),{run:k}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:c,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),{run:y}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:s,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),A=((0,r.useCallback)((()=>{s?y():w()}),[w,y,s]),(0,r.useCallback)((()=>{if(t("jetpack_myjetpack_evaluation_recommendations_checkout_click",{slug:e}),"crm"===e)return w(),void window.open("https://jetpackcrm.com/pricing/","_blank");k()}),[w,t,k,e]));return{secondaryAction:p(a),purchaseAction:d(a,A),isActivating:E,...h}}},8412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176);const i=e=>React.createElement(s.A,c()({slug:r.D_.JETPACK_AI,upgradeInInterstitial:!0},e))},9674:(e,t,a)=>{"use strict";a.d(t,{z:()=>h});var n=a(8412),c=a(6724),r=a(161),s=a(9838),i=a(3690),l=a(1686),o=a(4274),u=a(414),m=a(7769),d=a(4073),p=a(7631);const h={backup:r.A,protect:o.A,"anti-spam":c.A,boost:s.A,search:u.A,videopress:p.A,stats:d.A,crm:l.A,creator:i.A,social:m.A,ai:n.A,"jetpack-ai":n.A,extras:null,scan:null,security:null}},6724:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(6072),c=a.n(n),r=a(5739),s=a.n(r),i=a(1504),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.ANTI_SPAM},e));o.propTypes={admin:s().bool.isRequired};const u=o},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(6072),c=a.n(n),r=a(3924),s=a(7425),i=a(6427),l=a(7723),o=a(3022),u=a(2290),m=a(5739),d=a.n(m),p=a(1609),h=a(8837),g=a(1504),v=a(4923),f=a(280),w=a(8242),E=a(4526),k=a(6581),y=a(6176),A=a(3649);const __=l.__,_n=l._n,b=g.D_.BACKUP,j=e=>{const{detail:t}=(0,v.A)(b),{status:a}=t;return a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE?React.createElement(R,c()({slug:b},e)):React.createElement(y.A,c()({slug:b},e))},R=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),n=t?.last_rewindable_event,i=n?.published,o=t?.undo_backup_id,{recordEvent:m}=(0,E.A)(),{siteSuffix:d=""}=(0,w.A$)(),p={href:(0,r.A)("jetpack-backup-undo-cta",{path:o,site:d}),size:"small",variant:"primary",weight:"regular",label:__("Undo","jetpack-my-jetpack"),onClick:()=>{m("jetpack_myjetpack_backup_card_undo_click",{product:e.slug,undo_backup_id:o})},isExternalLink:!0};return React.createElement(y.A,c()({},e,{showMenu:!0,isDataLoading:a,Description:n?()=>React.createElement(s.Ay,{variant:"body-small",className:A.A.description},React.createElement("span",null,__("Activity Detected","jetpack-my-jetpack")),React.createElement("span",{className:A.A.time},(e=>{if(!e)return"";const t=new Date-new Date(e);if(t>0){const e=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),c=Math.floor(t%6e4/1e3);return e>0?(0,l.sprintf)( +(0,s.sprintf)(__("Learn about %s","jetpack-my-jetpack"),a));const K=q&&React.createElement("div",{ref:T,className:E.A["action-button-dropdown"]},React.createElement("ul",{className:E.A["dropdown-menu"]},[...p,G()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{P($[a]),L(!1),U("jetpack_myjetpack_product_card_dropdown_action_click",{product:n,action:e})},className:E.A["dropdown-item"]},React.createElement("div",{className:E.A["dropdown-item-label"]},e,t&&React.createElement(i.A,{icon:l.A,size:16})),e===V.label&&React.createElement("div",{className:E.A["active-action-checkmark"]},React.createElement(i.A,{icon:o.A,size:24,fill:"white"}))))))));return React.createElement(React.Fragment,null,React.createElement("div",{className:(0,m.A)(E.A["action-button"],q?E.A["has-additional-actions"]:null)},React.createElement(r.A,c()({},J,V),V.label),q&&React.createElement("button",{className:(0,m.A)(E.A["dropdown-chevron"],"primary"===V.variant?E.A.primary:E.A.secondary),onClick:Q,ref:F},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===V.variant?"white":"black"})),S&&K))}},5410:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(6072),c=a.n(n),r=a(7723),s=a(3022),i=a(1609),l=a(8837),o=a(8242),u=a(4526),m=a(2450),d=a(169),p=a(6710),h=a(7879),g=a(1887),v=a(2854),f=a(1208);const __=r.__,w=e=>{const t={isFetching:!1,isInstallingStandalone:!1,onActivate:()=>{},...e},{name:a,Description:n,status:r,onActivate:w,isFetching:E,isDataLoading:k,isInstallingStandalone:y,slug:A,additionalActions:b,primaryActionOverride:j,secondaryAction:R,children:_,onInstallStandalone:C,onMouseEnter:x,onMouseLeave:N,recommendation:z,customLoadTracks:M}=e,{ownedProducts:S}=(0,o.A$)("lifecycleStats"),L=S?.includes(A),V=r===l.hp.SITE_CONNECTION_ERROR||r===l.hp.USER_CONNECTION_ERROR,P=r===l.hp.ABSENT||r===l.hp.ABSENT_WITH_PLAN,H=r===l.hp.NEEDS_PLAN,I=(0,s.A)({[f.A.plugin_absent]:P,[f.A["is-purchase-required"]]:H,[f.A["is-link"]]:P,[f.A["has-error"]]:V}),{recordEvent:B}=(0,u.A)(),O=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_activate_click",{product:A}),w()}),[A,w,B]),T=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_add_click",{product:A})}),[A,B]),F=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_manage_click",{product:A})}),[A,B]),U=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_fixconnection_click",{product:A})}),[A,B]),D=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_learnmore_click",{product:A})}),[A,B]),q=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_install_standalone_plugin_click",{product:A}),C()}),[A,C,B]);return(0,i.useEffect)((()=>{B("jetpack_myjetpack_product_card_load",{product:A,status:r,...M})}),[B,A,r,M]),React.createElement(m.A,{title:a,className:(0,s.A)(f.A.container,I),headerRightContent:null,onMouseEnter:x,onMouseLeave:N},z&&React.createElement(p.A,{slug:A}),React.createElement(n,null),k?React.createElement("span",{className:f.A.loading},__("Loading…","jetpack-my-jetpack")):_,z?React.createElement(h.A,{slug:A}):React.createElement("div",{className:f.A.actions},React.createElement("div",{className:f.A.buttons},R&&R?.positionFirst&&React.createElement(g.A,R),React.createElement(d.A,c()({},t,{onActivate:O,onFixConnection:U,onManage:F,onAdd:T,onInstall:q,onLearnMore:D,className:f.A.button,additionalActions:b,primaryActionOverride:j,isOwned:L})),R&&!R?.positionFirst&&React.createElement(g.A,R)),React.createElement(v.A,{status:r,isFetching:E,isInstallingStandalone:y,isOwned:L})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7397),c=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=c.__,l=({slug:e})=>{const{discountPrice:t,fullPrice:a,currencyCode:c}=(0,i.A)(e);return React.createElement("div",{className:s.A.priceContainer},t&&React.createElement("span",{className:s.A.price},(0,n.Ay)(t,c)),React.createElement("span",{className:(0,r.A)(s.A.price,t&&s.A.discounted)},(0,n.Ay)(a,c)),React.createElement("span",{className:s.A.term},__("/month, billed yearly","jetpack-my-jetpack")))}},7879:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6072),c=a.n(n),r=a(1112),s=a(3022),i=a(1208),l=a(6147);const o=({slug:e})=>{const{secondaryAction:t,purchaseAction:a,isActivating:n}=(0,l.A)(e);return React.createElement("div",{className:i.A.actions},React.createElement("div",{className:(0,s.A)(i.A.buttons,i.A.upsell)},a&&React.createElement(r.A,c()({size:"small"},a),a.label),React.createElement(r.A,c()({size:"small",variant:"secondary",disabled:n},t),t.label)))}},1887:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(1112),c=a(7723);const __=c.__,r=e=>{const{shouldShowButton:t=()=>!0,...a}={size:"small",variant:"secondary",weight:"regular",label:__("Learn more","jetpack-my-jetpack"),...e};return!!t()&&React.createElement(n.A,a,a.label)}},2854:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7425),c=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=c.__,l=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:c})=>{const l=((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return __("Active","jetpack-my-jetpack");case s.hp.INACTIVE:case s.hp.MODULE_DISABLED:case s.hp.NEEDS_ACTIVATION:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.ABSENT:return __("Inactive","jetpack-my-jetpack");case s.hp.ABSENT_WITH_PLAN:return __("Needs Plugin","jetpack-my-jetpack");case s.hp.USER_CONNECTION_ERROR:return __("Needs user account","jetpack-my-jetpack");case s.hp.SITE_CONNECTION_ERROR:return __("Needs connection","jetpack-my-jetpack");case s.hp.NEEDS_PLAN:{const e=__("Needs plan","jetpack-my-jetpack"),a=__("Inactive","jetpack-my-jetpack");return t?e:a}default:return __("Inactive","jetpack-my-jetpack")}})(e,c),o=(0,r.A)(i.A.status,((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return i.A.active;case s.hp.ABSENT_WITH_PLAN:case s.hp.SITE_CONNECTION_ERROR:case s.hp.USER_CONNECTION_ERROR:return i.A.warning;case s.hp.INACTIVE:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.NEEDS_ACTIVATION:return i.A.inactive;case s.hp.NEEDS_PLAN:return t?i.A.warning:i.A.inactive;default:return i.A.inactive}})(e,c),{[i.A["is-fetching"]]:t||a});return React.createElement(n.Ay,{variant:"label",className:o},l)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(9384),c=a(7723),r=a(1609),s=a(8837),i=a(9935),l=a(4923),o=a(8242),u=a(4526),m=a(1870);const __=c.__,d=(e,t)=>{const a=e.status===s.hp.ACTIVE&&(e.isUpgradableByBundle.length||e.isUpgradable),n=e.pricingForUi.fullPrice||e.pricingForUi.tiers?.upgraded?.fullPrice;return e.status===s.hp.CAN_UPGRADE||a?n?{label:__("Upgrade","jetpack-my-jetpack"),onClick:t}:null:{label:__("Purchase","jetpack-my-jetpack"),onClick:t}},p=(e,t)=>{!e.isPluginActive||e.status===s.hp.NEEDS_ACTIVATION||(e.status,s.hp.NEEDS_PLAN);return{label:__("Learn more","jetpack-my-jetpack"),href:`#/add-${e.slug}`}},h=e=>{const{recordEvent:t}=(0,u.A)(),{detail:a}=(0,l.A)(e),{wpcomProductSlug:c,wpcomFreeProductSlug:s,...h}=(e=>{const{tiers:t,wpcomFreeProductSlug:a}=e;if(e.tiers){const{discountPrice:e,fullPrice:n,currencyCode:c,wpcomProductSlug:r,quantity:s}=t.upgraded;return{wpcomFreeProductSlug:a,wpcomProductSlug:s?`${r}:-q-${s}`:r,discountPrice:e&&e!==n?e/12:null,fullPrice:n/12,currencyCode:c}}const{discountPricePerMonth:n,fullPricePerMonth:c,currencyCode:r,isIntroductoryOffer:s,wpcomProductSlug:i}=e;return{wpcomFreeProductSlug:a,wpcomProductSlug:i,discountPrice:s?n:null,fullPrice:c,currencyCode:r}})(a.pricingForUi),{isUserConnected:g}=(0,m.A)(),{myJetpackUrl:v,siteSuffix:f}=(0,o.A$)(),{activate:w,isPending:E}=(0,i.A)(e),{run:k}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:c,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),{run:y}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:s,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),A=((0,r.useCallback)((()=>{s?y():w()}),[w,y,s]),(0,r.useCallback)((()=>{if(t("jetpack_myjetpack_evaluation_recommendations_checkout_click",{slug:e}),"crm"===e)return w(),void window.open("https://jetpackcrm.com/pricing/","_blank");k()}),[w,t,k,e]));return{secondaryAction:p(a),purchaseAction:d(a,A),isActivating:E,...h}}},8412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176);const i=e=>React.createElement(s.A,c()({slug:r.D_.JETPACK_AI,upgradeInInterstitial:!0},e))},9674:(e,t,a)=>{"use strict";a.d(t,{z:()=>p});var n=a(8412),c=a(6724),r=a(161),s=a(9838),i=a(1686),l=a(4274),o=a(414),u=a(7769),m=a(4073),d=a(7631);const p={backup:r.A,protect:l.A,"anti-spam":c.A,boost:s.A,search:o.A,videopress:d.A,stats:m.A,crm:i.A,social:u.A,ai:n.A,"jetpack-ai":n.A,extras:null,scan:null,security:null,creator:null}},6724:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(6072),c=a.n(n),r=a(5739),s=a.n(r),i=a(1504),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.ANTI_SPAM},e));o.propTypes={admin:s().bool.isRequired};const u=o},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(6072),c=a.n(n),r=a(3924),s=a(7425),i=a(6427),l=a(7723),o=a(3022),u=a(2290),m=a(5739),d=a.n(m),p=a(1609),h=a(8837),g=a(1504),v=a(4923),f=a(280),w=a(8242),E=a(4526),k=a(6581),y=a(6176),A=a(3649);const __=l.__,_n=l._n,b=g.D_.BACKUP,j=e=>{const{detail:t}=(0,v.A)(b),{status:a}=t;return a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE?React.createElement(R,c()({slug:b},e)):React.createElement(y.A,c()({slug:b},e))},R=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),n=t?.last_rewindable_event,i=n?.published,o=t?.undo_backup_id,{recordEvent:m}=(0,E.A)(),{siteSuffix:d=""}=(0,w.A$)(),p={href:(0,r.A)("jetpack-backup-undo-cta",{path:o,site:d}),size:"small",variant:"primary",weight:"regular",label:__("Undo","jetpack-my-jetpack"),onClick:()=>{m("jetpack_myjetpack_backup_card_undo_click",{product:e.slug,undo_backup_id:o})},isExternalLink:!0};return React.createElement(y.A,c()({},e,{showMenu:!0,isDataLoading:a,Description:n?()=>React.createElement(s.Ay,{variant:"body-small",className:A.A.description},React.createElement("span",null,__("Activity Detected","jetpack-my-jetpack")),React.createElement("span",{className:A.A.time},(e=>{if(!e)return"";const t=new Date-new Date(e);if(t>0){const e=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),c=Math.floor(t%6e4/1e3);return e>0?(0,l.sprintf)( // translators: %s is the number of days since the last backup _n("%s day ago","%s days ago",e,"jetpack-my-jetpack"),e):a>0?(0,l.sprintf)( // translators: %s is the number of hours since the last backup @@ -41,7 +41,7 @@ _n("%d video","%d videos",e,"jetpack-my-jetpack"),e),audio:e=>(0,l.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:d().object};const _=j},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),l=a(7723),o=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 __=l.__,w=()=>{const{recordEvent:e}=(0,g.A)(),[t,a]=(0,m.useState)(!1),[l,w]=(0,m.useState)(""),[E,k]=(0,m.useState)(null),[y,A]=(0,m.useState)(null),[b,j]=(0,m.useState)(!1),[R,_]=(0,m.useState)(!1),[C,x]=(0,m.useState)(!1),N=(0,i.useViewportMatch)("medium","<"),{siteUrl:z="",latestBoostSpeedScores:M}=(0,h.A$)(),{apiRoot:S,apiNonce:L,isSiteConnected:V}=(0,v.A)(),{detail:P}=(0,p.A)("boost"),{status:H}=P,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(k,t),B(A,a),(e=>{const{mobile:t,desktop:a}=e||{};t&&a&&w((0,n.T)(t,a))})(t)},T=async()=>{V?(a(!0),(0,n.sE)(!0,S,z,L).then((e=>{const t=(0,n.T)(e.current.mobile,e.current.desktop);w(t),B(k,e.current),B(A,M.scores),a(!1)})).catch((t=>{e("jetpack_boost_speed_score_error",{feature:"jetpack-boost",position:"my-jetpack",error:t}),M&&M.scores?O(M):j(!0),a(!1)}))):j(!0)},F=(0,m.useMemo)((()=>y&&E?E{_(!0)}),[_]),q=(0,m.useCallback)((()=>{_(!1)}),[_]);return(0,m.useEffect)((()=>{M?I?(0,n.US)(1e3*M.timestamp)<1?O(M):T():(0,n.US)(1e3*M.timestamp)<14?O(M):T():T()}),[]),(0,m.useEffect)((()=>{t||!R||C||(e("jetpack_boost_card_tooltip_viewed",{feature:"jetpack-boost",position:"my-jetpack"}),x(!0))}),[t,R,e,C]),!b&&React.createElement("div",{className:"mj-boost-speed-score",role:"presentation",onMouseEnter:D,onMouseLeave:q,onClick:R?q:D,onFocus:D,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"},l,!t&&R&&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")," ",l),React.createElement("p",{className:"boost-score-tooltip__content"},U))))),React.createElement("div",{className:"mj-boost-speed-score__bar"},React.createElement(r.A,{score:E,active:E>0,isLoading:t,showPrevScores:!1,scoreBarType:"desktop",noBoostScoreTooltip:null})),!!F&&React.createElement("div",{className:"mj-boost-speed-score__increase"},React.createElement(o.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),l=a(6176),o=a(9520);const __=r.__,u=e=>{const t={[s.hp.ABSENT]:{label:__("Boost your site","jetpack-my-jetpack")}};return React.createElement(l.A,c()({slug:i.D_.BOOST,primaryActionOverride:t},e),React.createElement(o.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),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.CREATOR,upgradeInInterstitial:!0},e));o.propTypes={admin:s().bool.isRequired};const u=o},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),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.CRM},e));o.propTypes={admin:s().bool.isRequired};const u=o},5487:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(8509),c=a(5918),r=a(766),s=a(7425),i=a(7723),l=a(1609),o=a(1504),u=a(5350),m=a(8242),d=a(1035),p=a(8412),h=a(6724),g=a(161),v=a(9838),f=a(3690),w=a(1686),E=a(4274),k=a(414),y=a(7769),A=a(4073),b=a(1218),j=a(7631);const __=i.__,R=({slugs:e})=>{const{showFullJetpackStatsCard:t=!1}=(0,m.A$)("myJetpackFlags"),{isAtomic:a=!1,userIsAdmin:r=!1}=(0,m.A$)(),s={backup:g.A,protect:E.A,"anti-spam":h.A,boost:v.A,search:k.A,videopress:j.A,stats:A.A,crm:w.A,creator:a?null:f.A,social:y.A,"jetpack-ai":p.A},i=e.filter((e=>(e!==o.D_.STATS||!t)&&!!s[e]));return React.createElement(React.Fragment,null,e.includes("stats")&&t&&React.createElement(n.A,{className:b.A.fullStatsCard},React.createElement(d.A,null)),React.createElement(c.A,{className:b.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}))}))))},_=({noticeMessage:e})=>{const{data:{ownedProducts:t,unownedProducts:a}}=(0,u.A)(),i=(0,l.useMemo)((()=>t.length>0?__("Discover more","jetpack-my-jetpack"):__("Discover all Jetpack Products","jetpack-my-jetpack")),[t.length]),o=e=>e.filter((e=>"scan"!==e&&"security"!==e&&"extras"!==e)),m=o(t),d=o(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:b.A.cardListTitle},React.createElement(s.Ay,{variant:"headline-small"},__("My products","jetpack-my-jetpack"))),React.createElement(R,{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:b.A.cardListTitle},React.createElement(s.Ay,{variant:"headline-small"},i)),React.createElement(R,{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),l=a(2660),o=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:o.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)(o.A.valueSectionHeading,"value-section__heading")},__("Auto-Firewall","jetpack-my-jetpack"),React.createElement(l.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:o.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:()=>l});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176),i=a(7765);const l=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),l=a(6581),o=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:l}=n||{};return(t||(0,o.w)())&&a?l?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,l.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,l.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),l=a(2584),o=a(7915);a(538);const u=()=>{const{detail:e}=(0,n.A)("protect"),{isPluginActive:t=!1}=e||{},a=(0,l.A)(),u=(0,o.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:()=>E});var n=a(1883),c=a(6427),r=a(9491),s=a(7723),i=a(3022),l=a(1609),o=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.__,E=()=>{const{detail:e}=(0,o.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,l.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(k,{numThreats:i,criticalThreatCount:m}):React.createElement(y,{status:"success"}):i?React.createElement(k,{numThreats:i}):React.createElement(y,{status:"partial"}):React.createElement(y,{status:"off"})};function k({numThreats:e,criticalThreatCount:t}){const{recordEvent:a}=(0,m.A)(),s=(0,l.useRef)(),o=(0,r.useViewportMatch)("medium","<"),[u,d]=(0,l.useState)(!1),p=(0,w.T)(),{scanThreatsTooltip:g}=p,v=(0,l.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,l.useCallback)((()=>{s.current&&!s.current.contains(s.current.ownerDocument.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:o?"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:()=>l});var n=a(7723),c=a(1609),r=a(4923),s=a(8242),i=a(4542);const __=n.__,_n=n._n,l=()=>{const{detail:e}=(0,r.A)("protect"),{isPluginActive:t=!1}=e||{},{plugins:a,themes:l,protect:{scanData:o}}=(0,s.A$)(),{plugins:u,themes:m,last_checked:d=null}=o||{},p=u.length||Object.keys(a).length,h=m.length||Object.keys(l).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" */ +__("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")}}},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),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.CRM},e));o.propTypes={admin:s().bool.isRequired};const u=o},5487:(e,t,a)=>{"use strict";a.d(t,{A:()=>R});var n=a(8509),c=a(5918),r=a(766),s=a(7425),i=a(7723),l=a(1609),o=a(1504),u=a(5350),m=a(8242),d=a(1035),p=a(8412),h=a(6724),g=a(161),v=a(9838),f=a(1686),w=a(4274),E=a(414),k=a(7769),y=a(4073),A=a(1218),b=a(7631);const __=i.__,j=({slugs:e})=>{const{showFullJetpackStatsCard:t=!1}=(0,m.A$)("myJetpackFlags"),{userIsAdmin:a=!1}=(0,m.A$)(),r={backup:g.A,protect:w.A,"anti-spam":h.A,boost:v.A,search:E.A,videopress:b.A,stats:y.A,crm:f.A,social:k.A,"jetpack-ai":p.A},s=e.filter((e=>(e!==o.D_.STATS||!t)&&!!r[e]));return React.createElement(React.Fragment,null,e.includes("stats")&&t&&React.createElement(n.A,{className:A.A.fullStatsCard},React.createElement(d.A,null)),React.createElement(c.A,{className:A.A.cardlist,tagName:"ul",fluid:!0,horizontalSpacing:0,horizontalGap:3},s.map((e=>{const t=r[e];return React.createElement(n.A,{tagName:"li",sm:4,md:4,lg:4,key:e},React.createElement(t,{admin:"1"===a}))}))))},R=({noticeMessage:e})=>{const{data:{ownedProducts:t,unownedProducts:a}}=(0,u.A)(),i=(0,l.useMemo)((()=>t.length>0?__("Discover more","jetpack-my-jetpack"):__("Discover all Jetpack Products","jetpack-my-jetpack")),[t.length]),o=e=>e.filter((e=>"scan"!==e&&"security"!==e&&"extras"!==e)),m=o(t),d=o(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(j,{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(j,{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),l=a(2660),o=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:o.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)(o.A.valueSectionHeading,"value-section__heading")},__("Auto-Firewall","jetpack-my-jetpack"),React.createElement(l.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:o.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:()=>l});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176),i=a(7765);const l=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),l=a(6581),o=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:l}=n||{};return(t||(0,o.w)())&&a?l?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,l.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,l.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),l=a(2584),o=a(7915);a(538);const u=()=>{const{detail:e}=(0,n.A)("protect"),{isPluginActive:t=!1}=e||{},a=(0,l.A)(),u=(0,o.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:()=>E});var n=a(1883),c=a(6427),r=a(9491),s=a(7723),i=a(3022),l=a(1609),o=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.__,E=()=>{const{detail:e}=(0,o.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,l.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(k,{numThreats:i,criticalThreatCount:m}):React.createElement(y,{status:"success"}):i?React.createElement(k,{numThreats:i}):React.createElement(y,{status:"partial"}):React.createElement(y,{status:"off"})};function k({numThreats:e,criticalThreatCount:t}){const{recordEvent:a}=(0,m.A)(),s=(0,l.useRef)(),o=(0,r.useViewportMatch)("medium","<"),[u,d]=(0,l.useState)(!1),p=(0,w.T)(),{scanThreatsTooltip:g}=p,v=(0,l.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,l.useCallback)((()=>{s.current&&!s.current.contains(s.current.ownerDocument.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:o?"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:()=>l});var n=a(7723),c=a(1609),r=a(4923),s=a(8242),i=a(4542);const __=n.__,_n=n._n,l=()=>{const{detail:e}=(0,r.A)("protect"),{isPluginActive:t=!1}=e||{},{plugins:a,themes:l,protect:{scanData:o}}=(0,s.A$)(),{plugins:u,themes:m,last_checked:d=null}=o||{},p=u.length||Object.keys(a).length,h=m.length||Object.keys(l).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. */ _n("%d plugin","%d plugins",p,"jetpack-my-jetpack"),p)+" "+/* translators: The ampersand symbol here (&) is meaning "and". */ __("&","jetpack-my-jetpack")+" "+(0,n.sprintf)(/* translators: %d is the number of themes installed on the site. */ @@ -67,15 +67,15 @@ __("trial for the first month, then $%s /month, billed yearly","jetpack-my-jetpa __("Install %s","jetpack-my-jetpack"),J):(0,o.sprintf)(/* translators: placeholder is product name. */ __("Get %s","jetpack-my-jetpack"),J),$=z||(V?__("Start for Free","jetpack-my-jetpack"):G),W=(0,d.useCallback)((()=>{w(!0),m({is_free_plan:V,cta_text:$}),t?.(O,a,u)}),[m,t,O,a,u,V,$]),Q=T||f,K=T||e||s||i,Z=!L?.reason;return React.createElement(n.N0,{primary:!V},React.createElement(n.i7,null,V?React.createElement(c.A,{price:0,legend:"",currency:"USD",hidePriceFraction:!0}):!N&&React.createElement(c.A,{price:F,offPrice:Z?U:F,legend:q,currency:M,hideDiscountLabel:D,showNotOffPrice:Z,hidePriceFraction:!0}),React.createElement(r.A,{fullWidth:!0,variant:V?"secondary":"primary",onClick:W,isLoading:Q,disabled:K},$)),b.map(((e,t)=>{const{included:a,description:c,struck_description:r,info:s}=e.tiers[u],i=r||c?React.createElement(React.Fragment,null,r?React.createElement(React.Fragment,null,React.createElement("del",null,r)," "):null,c?React.createElement("strong",null,c):null):null;return React.createElement(n.eY,{key:t,isIncluded:a,label:i,tooltipTitle:s?.title,tooltipInfo:s?.content?React.createElement("div",{dangerouslySetInnerHTML:{__html:s?.content}}):null,tooltipClassName:s?.class})})))};v.propTypes={cantInstallPlugin:m().bool.isRequired,onProductButtonClick:m().func.isRequired,detail:m().object.isRequired,tier:m().string.isRequired,trackProductButtonClick:m().func.isRequired,preferProductName:m().bool.isRequired};const f=({slug:e,onProductButtonClick:t,trackProductButtonClick:a,isFetching:c,isFetchingSuccess:l,preferProductName:u,feature:m})=>{const{fileSystemWriteAccess:g="no"}=(0,h.A$)(),{detail:f}=(0,p.A)(e),{description:w,featuresByTier:E=[],pluginSlug:k,status:y,tiers:A=[],hasPaidPlanForProduct:b,title:j,pricingForUi:{tiers:R}}=f,_="plugin_absent"===y&&"no"===g,C=_&&React.createElement(s.A,{level:"error",hideCloseButton:!0,title:React.createElement(i.Ay,null,(0,o.sprintf)( // translators: %s is the plugin name. -__("Due to your server settings, we can't automatically install the plugin for you. Please manually install the %s plugin.","jetpack-my-jetpack"),j)),actions:[React.createElement(r.A,{key:"get",variant:"secondary",href:`https://wordpress.org/plugins/${k}`,isExternalLink:!0},__("Get plugin","jetpack-my-jetpack"))]}),x=(0,d.useMemo)((()=>E.map((e=>({name:e?.name,tooltipTitle:e?.info?.title,tooltipInfo:e?.info?.content?React.createElement("div",{dangerouslySetInnerHTML:{__html:e?.info?.content}}):null})))),[E]);return React.createElement(React.Fragment,null,C,React.createElement(n.Ay,{title:w,items:x},A.map(((e,n)=>b&&(e=>{const{isFree:t}=R[e];return t})(e)?null:React.createElement(v,{key:n,tier:e,feature:m,detail:f,isFetching:c,isFetchingSuccess:l,onProductButtonClick:t,trackProductButtonClick:a,primary:0===n,cantInstallPlugin:_,preferProductName:u})))))};f.propTypes={slug:m().string.isRequired,onProductButtonClick:m().func.isRequired,trackProductButtonClick:m().func.isRequired,isFetching:m().bool.isRequired,preferProductName:m().bool.isRequired};const w=f},6092:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>V,B8:()=>B,C:()=>D,Gf:()=>J,JM:()=>G,QX:()=>T,X7:()=>O,og:()=>U,qT:()=>F,t7:()=>q,wU:()=>P,xE:()=>H,yX:()=>I});var n=a(2947),c=a(5918),r=a(8509),s=a(7425),i=a(1112),l=a(5879),o=a(6087),u=a(7723),m=a(3022),d=a(1609),p=a.n(d),h=a(9539),g=a(8837),v=a(9935),f=a(4923),w=a(8242),E=a(4526),k=a(3588),y=a(1870),A=a(3981),b=a(1617),j=a(4720),R=a(3574),_=a(8769),C=a(5296),x=a(4660),N=a(7642),z=a(15),M=a(9409),S=a(7899),L=a(5044);const __=u.__;function V({bundle:e,existingLicenseKeyUrl:t="admin.php?page=my-jetpack#/add-license",installsPlugin:a=!1,slug:h,supportingInfo:_,preferProductName:C=!1,children:x=null,imageContainerClassName:N="",ctaButtonLabel:z=null,hideTOS:M=!1,quantity:L=null,directCheckout:V=!1,highlightLastFeature:P=!1,ctaCallback:H=null,feature:I=null}){const{detail:B}=(0,f.A)(h),{detail:O}=(0,f.A)(e),{activate:T,isPending:F,isSuccess:U}=(0,v.A)(h);let D=B?.postActivationUrl||null;I&&B?.postActivationUrlsByFeature?.[I]&&(D=B.postActivationUrlsByFeature[I]);const{isUpgradableByBundle:q,tiers:J,pricingForUi:G}=B,{recordEvent:$}=(0,E.A)(),{onClickGoBack:W}=(0,k.L)({slug:h}),{myJetpackCheckoutUri:Q=""}=(0,w.A$)(),{siteIsRegistering:K,handleRegisterSite:Z}=(0,y.A)({skipUserConnection:!0,redirectUri:D}),Y=!M&&!!e,X=B?.title,ee=O?.title,te=[/* translators: %s is the product name */ /* translators: %s is the product name */ +__("Due to your server settings, we can't automatically install the plugin for you. Please manually install the %s plugin.","jetpack-my-jetpack"),j)),actions:[React.createElement(r.A,{key:"get",variant:"secondary",href:`https://wordpress.org/plugins/${k}`,isExternalLink:!0},__("Get plugin","jetpack-my-jetpack"))]}),x=(0,d.useMemo)((()=>E.map((e=>({name:e?.name,tooltipTitle:e?.info?.title,tooltipInfo:e?.info?.content?React.createElement("div",{dangerouslySetInnerHTML:{__html:e?.info?.content}}):null})))),[E]);return React.createElement(React.Fragment,null,C,React.createElement(n.Ay,{title:w,items:x},A.map(((e,n)=>b&&(e=>{const{isFree:t}=R[e];return t})(e)?null:React.createElement(v,{key:n,tier:e,feature:m,detail:f,isFetching:c,isFetchingSuccess:l,onProductButtonClick:t,trackProductButtonClick:a,primary:0===n,cantInstallPlugin:_,preferProductName:u})))))};f.propTypes={slug:m().string.isRequired,onProductButtonClick:m().func.isRequired,trackProductButtonClick:m().func.isRequired,isFetching:m().bool.isRequired,preferProductName:m().bool.isRequired};const w=f},6092:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>V,C:()=>U,Gf:()=>q,JM:()=>J,QX:()=>O,X7:()=>B,og:()=>F,qT:()=>T,t7:()=>D,wU:()=>P,xE:()=>H,yX:()=>I});var n=a(2947),c=a(5918),r=a(8509),s=a(7425),i=a(1112),l=a(5879),o=a(6087),u=a(7723),m=a(3022),d=a(1609),p=a.n(d),h=a(9539),g=a(8837),v=a(9935),f=a(4923),w=a(8242),E=a(4526),k=a(3588),y=a(1870),A=a(3981),b=a(1617),j=a(4720),R=a(3574),_=a(8769),C=a(5296),x=a(4660),N=a(7642),z=a(15),M=a(9409),S=a(7899),L=a(5044);const __=u.__;function V({bundle:e,existingLicenseKeyUrl:t="admin.php?page=my-jetpack#/add-license",installsPlugin:a=!1,slug:h,supportingInfo:_,preferProductName:C=!1,children:x=null,imageContainerClassName:N="",ctaButtonLabel:z=null,hideTOS:M=!1,quantity:L=null,directCheckout:V=!1,highlightLastFeature:P=!1,ctaCallback:H=null,feature:I=null}){const{detail:B}=(0,f.A)(h),{detail:O}=(0,f.A)(e),{activate:T,isPending:F,isSuccess:U}=(0,v.A)(h);let D=B?.postActivationUrl||null;I&&B?.postActivationUrlsByFeature?.[I]&&(D=B.postActivationUrlsByFeature[I]);const{isUpgradableByBundle:q,tiers:J,pricingForUi:G}=B,{recordEvent:$}=(0,E.A)(),{onClickGoBack:W}=(0,k.L)({slug:h}),{myJetpackCheckoutUri:Q=""}=(0,w.A$)(),{siteIsRegistering:K,handleRegisterSite:Z}=(0,y.A)({skipUserConnection:!0,redirectUri:D}),Y=!M&&!!e,X=B?.title,ee=O?.title,te=[/* translators: %s is the product name */ /* translators: %s is the product name */ (0,u.sprintf)(__("Get %s","jetpack-my-jetpack"),X),/* translators: %s is the bundled product name */ /* translators: %s is the bundled product name */ -(0,u.sprintf)(__("Get %s","jetpack-my-jetpack"),ee)];(0,d.useEffect)((()=>{$("jetpack_myjetpack_product_interstitial_view",{product:h})}),[$,h]);const ae=(0,d.useCallback)(((e=!1)=>e?"":"crm"===h?"jetpack-crm":G?.tiers?.upgraded?.wpcomProductSlug?G.tiers.upgraded.wpcomProductSlug:G.wpcomProductSlug),[h,G]),ne=(0,d.useCallback)((t=>{const{customSlug:a=null,isFreePlan:n=!1,ctaText:c=null}=t||{};$("jetpack_myjetpack_product_interstitial_add_link_click",{product:a||(e??h),product_slug:ae(n),cta_text:c})}),[$,h,ae,e]),ce=(0,A.A)(g.NM.Home),re=(0,d.useCallback)(((e,t,a)=>{H?.({slug:h,product:t,tier:a}),t?.isBundle||V?e?.():T({productId:h},{onSettled:n=>{let c=n?.post_checkout_url||Q;I&&n?.post_checkout_urls_by_feature?.[I]&&(c=n.post_checkout_urls_by_feature[I]);const r=t?.hasPaidPlanForProduct,s=a?t?.pricingForUi?.tiers?.[a]?.isFree:t?.pricingForUi?.isFree,i=!s&&!r||a&&t?.pricingForUi?.tiers?.[a]&&!s&&t?.isUpgradable;"zero-bs-crm"!==t.pluginSlug||r?i?e?.(null,c):Z().then((e=>{if(!e)return ce()})):window.location.href="https://jetpackcrm.com/pricing/"}})}),[Q,I,H,h,V,T,Z,ce]);return p().createElement(n.A,{showHeader:!1,showBackground:!1},p().createElement(c.A,{horizontalSpacing:3,horizontalGap:3},p().createElement(r.A,{className:S.A["product-interstitial__header"]},p().createElement(b.A,{onClick:W}),t&&p().createElement(s.Ay,{variant:"body-small"},(0,o.createInterpolateElement)(__("Already have an existing plan or license key? Get started.","jetpack-my-jetpack"),{a:p().createElement(i.A,{className:S.A["product-interstitial__license-activation-link"],href:t,variant:"link"})}))),p().createElement(r.A,null,J&&J.length?p().createElement(R.A,{slug:h,clickHandler:re,onProductButtonClick:re,trackProductButtonClick:ne,preferProductName:C,isFetching:F||K,isFetchingSuccess:U,feature:I}):p().createElement(c.A,{className:q?null:S.A.container,horizontalSpacing:0,horizontalGap:0,fluid:!0},p().createElement(r.A,{sm:4,md:4,lg:7},p().createElement(j.A,{slug:h,trackButtonClick:ne,onClick:a?re:void 0,className:q?S.A.container:null,supportingInfo:_,preferProductName:C,ctaButtonLabel:z,hideTOS:M||Y,quantity:L,highlightLastFeature:P,isFetching:F||K,isFetchingSuccess:U})),p().createElement(r.A,{sm:4,md:4,lg:5,className:(0,m.A)(S.A.imageContainer,N)},e?p().createElement(j.A,{slug:e,trackButtonClick:ne,onClick:re,className:q?S.A.container:null,hideTOS:M||Y,quantity:L,highlightLastFeature:P,isFetching:F,isFetchingSuccess:U}):x))),p().createElement(r.A,null,Y&&p().createElement("div",{className:S.A["tos-container"]},p().createElement(l.A,{multipleButtons:te})))))}function P(){const e="anti-spam",{detail:t}=(0,f.A)(e),{isPluginActive:a}=t;return p().createElement(V,{slug:e,installsPlugin:!0,bundle:"security",existingLicenseKeyUrl:a?"admin.php?page=akismet-key-config":null,preferProductName:!0})}function H(){return p().createElement(V,{slug:"backup",installsPlugin:!0,bundle:"security"})}function I(){return p().createElement(V,{slug:"boost",installsPlugin:!0},p().createElement("img",{src:_,alt:"Boost"}))}function B(){return p().createElement(V,{slug:"creator",installsPlugin:!0})}function O(){return p().createElement(V,{slug:"crm",installsPlugin:!0},p().createElement("img",{src:C,alt:"CRM"}))}function T(){return p().createElement(V,{slug:"extras",installsPlugin:!0},p().createElement("img",{src:x,alt:"Extras"}))}function F(){const{feature:e}=(0,h.g)();return p().createElement(V,{slug:"protect",feature:e,installsPlugin:!0})}function U(){return p().createElement(V,{slug:"scan",installsPlugin:!0,bundle:"security"})}function D(){return p().createElement(V,{slug:"social",installsPlugin:!0},p().createElement("img",{src:z,alt:__("Image displaying logos of social media platforms supported by Jetpack Social.","jetpack-my-jetpack")}))}function q(){const{detail:e}=(0,f.A)("search");return p().createElement(V,{slug:"search",installsPlugin:!0,supportingInfo:(e?.pricingForUi?.trialAvailable?__("Jetpack Search Free supports up to 5,000 records and 500 search requests per month for free. You will be asked to upgrade to a paid plan if you exceed these limits for three continuous months.","jetpack-my-jetpack"):"")+__("For the paid plan, pricing will automatically adjust based on the number of records in your search index. If you grow into a new pricing tier, we'll let you know before your next billing cycle.","jetpack-my-jetpack")},p().createElement("img",{src:N,alt:"Search"}))}function J(){return p().createElement(V,{slug:"stats",directCheckout:!0,installsPlugin:!0,ctaButtonLabel:__("Get Stats","jetpack-my-jetpack")},p().createElement("img",{src:M,alt:__("Illustration showing the Stats feature, highlighting important statistics for your site.","jetpack-my-jetpack")}))}function G(){return p().createElement(V,{slug:"videopress",installsPlugin:!0},p().createElement("img",{src:L,alt:"VideoPress"}))}},3418:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(1112),c=a(6087),r=a(7723),s=a(6941),i=a.n(s),l=a(1609),o=a(6092),u=a(4923),m=a(1870),d=a(9923),p=a(1298);const __=r.__,h=i()("my-jetpack:product-interstitial:jetpack-ai");function g(){const{detail:e}=(0,u.A)("jetpack-ai");h(e);const t=e?.aiAssistantFeature?.tierPlansEnabled||!1,{userConnectionData:a}=(0,m.A)(),{currentUser:r}=a,{wpcomUser:s}=r,i=`jetpack_ai_optfree_${r?.id||0}_${r?.blogId||0}_${s?.ID||0}`,g=(0,l.useCallback)((({tier:e})=>{"free"===e&&localStorage.setItem(i,!0)}),[i]),v=(0,c.createInterpolateElement)(__("* Limits apply for high request capacity. Learn more about it here.","jetpack-my-jetpack"),{link:React.createElement(n.A,{href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy",variant:"link",weight:"regular",size:"small",target:"_blank"})});return React.createElement(o.Ay,{slug:"jetpack-ai",installsPlugin:!0,imageContainerClassName:p.A.aiImageContainer,hideTOS:!0,directCheckout:!1,ctaCallback:g,ctaButtonLabel:__("Upgrade","jetpack-my-jetpack"),supportingInfo:t?null:v},React.createElement("img",{src:d,alt:"Jetpack AI"}))}},8823:(e,t,a)=>{"use strict";a.d(t,{A:()=>N});var n=a(3924),c=a(2947),r=a(5918),s=a(8509),i=a(7142),l=a(8478),o=a(7656),u=a(6427),m=a(6087),d=a(7723),p=a(1113),h=a(3883),g=a(748),v=a(5459),f=a(3022),w=a(6941),E=a.n(w),k=a(1609),y=a(4923),A=a(4526),b=a(3588),j=a(1870),R=a(3981),_=a(1617),C=a(1298);const __=d.__,x=E()("my-jetpack:product-interstitial:jetpack-ai-product-page");function N(){const{onClickGoBack:e}=(0,b.L)("jetpack-ai"),{detail:t}=(0,y.A)("jetpack-ai"),{description:a,aiAssistantFeature:w}=t,[E,N]=(0,k.useState)(!1),{isRegistered:z}=(0,j.A)(),M=__("Generate and edit content faster with Jetpack AI Assistant","jetpack-my-jetpack"),S=__("Create featured images with one click","jetpack-my-jetpack"),L=__("Optimize your titles effortlessly","jetpack-my-jetpack"),V=__("Build forms using prompts","jetpack-my-jetpack"),P=__("Get feedback on posts","jetpack-my-jetpack"),H=__("Make your writing easy to read","jetpack-my-jetpack");x(w);const{requestsCount:I=0,currentTier:B,nextTier:O,usagePeriod:T,isOverLimit:F,tierPlansEnabled:U}=w||{},D=0===B?.value,q=1===B?.value,J=!D&&!q||q&&!U,G=!q&&J&&!O&&B,$=D&&20-I>=0?20-I:0,W=J&&!D&&T,Q=J||q,K=(0,n.A)("jetpack-ai-tiers-more-requests-contact"),Z=(0,n.A)("jetpack-ai-feedback"),Y=(0,n.A)("jetpack-ai-product-page-featured-image-link"),X=(0,n.A)("jetpack-ai-product-page-title-optimization-link"),ee=(0,n.A)("jetpack-ai-product-page-form-link"),te=(0,n.A)("jetpack-ai-product-page-content-feedback-link"),ae=(0,n.A)("jetpack-ai-product-page-breve"),ne=z?"post-new.php?use_ai_block=1&_wpnonce="+window?.jetpackAi?.nonce:"#/connection",ce=__("Create new post","jetpack-my-jetpack"),re=__("Connect to Jetpack to start using the AI Assistant","jetpack-my-jetpack"),se=F&&J,ie=F&&D,le=B?.limit||0,oe=T?.requestsCount||0,ue=U?le-oe>=0?le-oe:0:oe,me=__("Requests this month","jetpack-my-jetpack"),de=__("Requests for this month","jetpack-my-jetpack"),pe=__("You've reached your request limit for this month","jetpack-my-jetpack"),he=__("You've used all your free requests","jetpack-my-jetpack"),ge=(0,d.sprintf)( +(0,u.sprintf)(__("Get %s","jetpack-my-jetpack"),ee)];(0,d.useEffect)((()=>{$("jetpack_myjetpack_product_interstitial_view",{product:h})}),[$,h]);const ae=(0,d.useCallback)(((e=!1)=>e?"":"crm"===h?"jetpack-crm":G?.tiers?.upgraded?.wpcomProductSlug?G.tiers.upgraded.wpcomProductSlug:G.wpcomProductSlug),[h,G]),ne=(0,d.useCallback)((t=>{const{customSlug:a=null,isFreePlan:n=!1,ctaText:c=null}=t||{};$("jetpack_myjetpack_product_interstitial_add_link_click",{product:a||(e??h),product_slug:ae(n),cta_text:c})}),[$,h,ae,e]),ce=(0,A.A)(g.NM.Home),re=(0,d.useCallback)(((e,t,a)=>{H?.({slug:h,product:t,tier:a}),t?.isBundle||V?e?.():T({productId:h},{onSettled:n=>{let c=n?.post_checkout_url||Q;I&&n?.post_checkout_urls_by_feature?.[I]&&(c=n.post_checkout_urls_by_feature[I]);const r=t?.hasPaidPlanForProduct,s=a?t?.pricingForUi?.tiers?.[a]?.isFree:t?.pricingForUi?.isFree,i=!s&&!r||a&&t?.pricingForUi?.tiers?.[a]&&!s&&t?.isUpgradable;"zero-bs-crm"!==t.pluginSlug||r?i?e?.(null,c):Z().then((e=>{if(!e)return ce()})):window.location.href="https://jetpackcrm.com/pricing/"}})}),[Q,I,H,h,V,T,Z,ce]);return p().createElement(n.A,{showHeader:!1,showBackground:!1},p().createElement(c.A,{horizontalSpacing:3,horizontalGap:3},p().createElement(r.A,{className:S.A["product-interstitial__header"]},p().createElement(b.A,{onClick:W}),t&&p().createElement(s.Ay,{variant:"body-small"},(0,o.createInterpolateElement)(__("Already have an existing plan or license key? Get started.","jetpack-my-jetpack"),{a:p().createElement(i.A,{className:S.A["product-interstitial__license-activation-link"],href:t,variant:"link"})}))),p().createElement(r.A,null,J&&J.length?p().createElement(R.A,{slug:h,clickHandler:re,onProductButtonClick:re,trackProductButtonClick:ne,preferProductName:C,isFetching:F||K,isFetchingSuccess:U,feature:I}):p().createElement(c.A,{className:q?null:S.A.container,horizontalSpacing:0,horizontalGap:0,fluid:!0},p().createElement(r.A,{sm:4,md:4,lg:7},p().createElement(j.A,{slug:h,trackButtonClick:ne,onClick:a?re:void 0,className:q?S.A.container:null,supportingInfo:_,preferProductName:C,ctaButtonLabel:z,hideTOS:M||Y,quantity:L,highlightLastFeature:P,isFetching:F||K,isFetchingSuccess:U})),p().createElement(r.A,{sm:4,md:4,lg:5,className:(0,m.A)(S.A.imageContainer,N)},e?p().createElement(j.A,{slug:e,trackButtonClick:ne,onClick:re,className:q?S.A.container:null,hideTOS:M||Y,quantity:L,highlightLastFeature:P,isFetching:F,isFetchingSuccess:U}):x))),p().createElement(r.A,null,Y&&p().createElement("div",{className:S.A["tos-container"]},p().createElement(l.A,{multipleButtons:te})))))}function P(){const e="anti-spam",{detail:t}=(0,f.A)(e),{isPluginActive:a}=t;return p().createElement(V,{slug:e,installsPlugin:!0,bundle:"security",existingLicenseKeyUrl:a?"admin.php?page=akismet-key-config":null,preferProductName:!0})}function H(){return p().createElement(V,{slug:"backup",installsPlugin:!0,bundle:"security"})}function I(){return p().createElement(V,{slug:"boost",installsPlugin:!0},p().createElement("img",{src:_,alt:"Boost"}))}function B(){return p().createElement(V,{slug:"crm",installsPlugin:!0},p().createElement("img",{src:C,alt:"CRM"}))}function O(){return p().createElement(V,{slug:"extras",installsPlugin:!0},p().createElement("img",{src:x,alt:"Extras"}))}function T(){const{feature:e}=(0,h.g)();return p().createElement(V,{slug:"protect",feature:e,installsPlugin:!0})}function F(){return p().createElement(V,{slug:"scan",installsPlugin:!0,bundle:"security"})}function U(){return p().createElement(V,{slug:"social",installsPlugin:!0},p().createElement("img",{src:z,alt:__("Image displaying logos of social media platforms supported by Jetpack Social.","jetpack-my-jetpack")}))}function D(){const{detail:e}=(0,f.A)("search");return p().createElement(V,{slug:"search",installsPlugin:!0,supportingInfo:(e?.pricingForUi?.trialAvailable?__("Jetpack Search Free supports up to 5,000 records and 500 search requests per month for free. You will be asked to upgrade to a paid plan if you exceed these limits for three continuous months.","jetpack-my-jetpack"):"")+__("For the paid plan, pricing will automatically adjust based on the number of records in your search index. If you grow into a new pricing tier, we'll let you know before your next billing cycle.","jetpack-my-jetpack")},p().createElement("img",{src:N,alt:"Search"}))}function q(){return p().createElement(V,{slug:"stats",directCheckout:!0,installsPlugin:!0,ctaButtonLabel:__("Get Stats","jetpack-my-jetpack")},p().createElement("img",{src:M,alt:__("Illustration showing the Stats feature, highlighting important statistics for your site.","jetpack-my-jetpack")}))}function J(){return p().createElement(V,{slug:"videopress",installsPlugin:!0},p().createElement("img",{src:L,alt:"VideoPress"}))}},3418:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(1112),c=a(6087),r=a(7723),s=a(6941),i=a.n(s),l=a(1609),o=a(6092),u=a(4923),m=a(1870),d=a(9923),p=a(1298);const __=r.__,h=i()("my-jetpack:product-interstitial:jetpack-ai");function g(){const{detail:e}=(0,u.A)("jetpack-ai");h(e);const t=e?.aiAssistantFeature?.tierPlansEnabled||!1,{userConnectionData:a}=(0,m.A)(),{currentUser:r}=a,{wpcomUser:s}=r,i=`jetpack_ai_optfree_${r?.id||0}_${r?.blogId||0}_${s?.ID||0}`,g=(0,l.useCallback)((({tier:e})=>{"free"===e&&localStorage.setItem(i,!0)}),[i]),v=(0,c.createInterpolateElement)(__("* Limits apply for high request capacity. Learn more about it here.","jetpack-my-jetpack"),{link:React.createElement(n.A,{href:"https://jetpack.com/redirect/?source=ai-assistant-fair-usage-policy",variant:"link",weight:"regular",size:"small",target:"_blank"})});return React.createElement(o.Ay,{slug:"jetpack-ai",installsPlugin:!0,imageContainerClassName:p.A.aiImageContainer,hideTOS:!0,directCheckout:!1,ctaCallback:g,ctaButtonLabel:__("Upgrade","jetpack-my-jetpack"),supportingInfo:t?null:v},React.createElement("img",{src:d,alt:"Jetpack AI"}))}},8823:(e,t,a)=>{"use strict";a.d(t,{A:()=>N});var n=a(3924),c=a(2947),r=a(5918),s=a(8509),i=a(7142),l=a(8478),o=a(7656),u=a(6427),m=a(6087),d=a(7723),p=a(1113),h=a(3883),g=a(748),v=a(5459),f=a(3022),w=a(6941),E=a.n(w),k=a(1609),y=a(4923),A=a(4526),b=a(3588),j=a(1870),R=a(3981),_=a(1617),C=a(1298);const __=d.__,x=E()("my-jetpack:product-interstitial:jetpack-ai-product-page");function N(){const{onClickGoBack:e}=(0,b.L)("jetpack-ai"),{detail:t}=(0,y.A)("jetpack-ai"),{description:a,aiAssistantFeature:w}=t,[E,N]=(0,k.useState)(!1),{isRegistered:z}=(0,j.A)(),M=__("Generate and edit content faster with Jetpack AI Assistant","jetpack-my-jetpack"),S=__("Create featured images with one click","jetpack-my-jetpack"),L=__("Optimize your titles effortlessly","jetpack-my-jetpack"),V=__("Build forms using prompts","jetpack-my-jetpack"),P=__("Get feedback on posts","jetpack-my-jetpack"),H=__("Make your writing easy to read","jetpack-my-jetpack");x(w);const{requestsCount:I=0,currentTier:B,nextTier:O,usagePeriod:T,isOverLimit:F,tierPlansEnabled:U}=w||{},D=0===B?.value,q=1===B?.value,J=!D&&!q||q&&!U,G=!q&&J&&!O&&B,$=D&&20-I>=0?20-I:0,W=J&&!D&&T,Q=J||q,K=(0,n.A)("jetpack-ai-tiers-more-requests-contact"),Z=(0,n.A)("jetpack-ai-feedback"),Y=(0,n.A)("jetpack-ai-product-page-featured-image-link"),X=(0,n.A)("jetpack-ai-product-page-title-optimization-link"),ee=(0,n.A)("jetpack-ai-product-page-form-link"),te=(0,n.A)("jetpack-ai-product-page-content-feedback-link"),ae=(0,n.A)("jetpack-ai-product-page-breve"),ne=z?"post-new.php?use_ai_block=1&_wpnonce="+window?.jetpackAi?.nonce:"#/connection",ce=__("Create new post","jetpack-my-jetpack"),re=__("Connect to Jetpack to start using the AI Assistant","jetpack-my-jetpack"),se=F&&J,ie=F&&D,le=B?.limit||0,oe=T?.requestsCount||0,ue=U?le-oe>=0?le-oe:0:oe,me=__("Requests this month","jetpack-my-jetpack"),de=__("Requests for this month","jetpack-my-jetpack"),pe=__("You've reached your request limit for this month","jetpack-my-jetpack"),he=__("You've used all your free requests","jetpack-my-jetpack"),ge=(0,d.sprintf)( // translators: %d is the number of days left in the month. __("Wait for %d days to reset your limit, or upgrade now to a higher tier for additional requests and keep your work moving forward.","jetpack-my-jetpack"),Math.floor((new Date(T?.nextStart||null)-new Date)/864e5)),ve=(0,m.createInterpolateElement)((0,d.sprintf)( // translators: %d is the number of days left in the month. __("Wait for %d days to reset your limit, per our fair usage policy.","jetpack-my-jetpack"),Math.floor((new Date(T?.nextStart||null)-new Date)/864e5)),{link:React.createElement("a",{href:(0,n.A)("ai-product-page-fair-usage-policy"),target:"_blank",rel:"noreferrer"})}),fe=U?ge:ve,we=__("Reach for More with Jetpack AI! Upgrade now for additional requests and keep your momentum going.","jetpack-my-jetpack"),Ee=(0,d.sprintf)( // translators: %s is the next upgrade value -__("Get %s requests","jetpack-my-jetpack"),O?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),ye=(0,R.A)("/add-jetpack-ai"),{recordEvent:Ae}=(0,A.A)(),be=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[Ae]),je=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:B?.slug||"",requests_count:I}),ye()}),[Ae,I,B,ye]),Re=(0,k.useCallback)((()=>N(!1)),[]);(0,k.useEffect)((()=>{Ae("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:B?.slug||"",requests_count:I})}),[I,B?.slug,Ae]),(0,k.useEffect)((()=>{N(se||ie)}),[se,ie]);const _e=React.createElement("span",{className:C.A["product-interstitial__new-badge"]},__("New","jetpack-my-jetpack")," ");return React.createElement(c.A,{showHeader:!1,showBackground:!0},React.createElement(r.A,{fluid:!0,horizontalSpacing:3,horizontalGap:2},React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__section-wrapper-wide"]},React.createElement(_.A,{onClick:e})),React.createElement("div",{className:(0,f.A)(C.A["product-interstitial__section-wrapper-wide"],C.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:C.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__hero-section"]},React.createElement("div",{className:C.A["product-interstitial__hero-content"]},React.createElement("h1",{className:C.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:C.A["product-interstitial__hero-sub-heading"]},__("Draft, transform, translate, and alter both new and existing content leveraging the capabilities of AI, inside the block editor.","jetpack-my-jetpack")),!G&&!q&&React.createElement(u.Button,{variant:"primary",onClick:je,className:C.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),G&&React.createElement(u.Button,{variant:"primary",onClick:be,href:K,className:C.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:C.A["product-interstitial__hero-side"]},W&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(l.KH,null),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},U?de:me),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},ue))),Q&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},I))),D&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},$)))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},E&&React.createElement("div",{className:C.A["product-interstitial__ai-notice"]},React.createElement(o.A,{actions:U?[React.createElement(u.Button,{key:"upgrade",isPrimary:!0,onClick:je},se?Ee:ke)]:{},onClose:Re,level:se?"warning":"error",title:se?pe:he},se?fe:we)),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__usage-videos"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/2OU6GCMs?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F07%2Fjetpack-ai-breve-poster.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:H}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},H,_e),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Simplify your writing with AI suggestions to fix long sentences and complex words and sound more confident. As you type, check your Reading grade score to make sure it suits your audience.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ae},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/GdXmtVtW?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-37.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use the AI block to generate content, or use our AI edit options in existing blocks. Use prompts or any of our recommended actions.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:v.A,href:ne},z?ce:re))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/HJCf8cXc?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fone-click-featured-images.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:S}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Create featured images to illustrate your content and make it more engaging with just one click. Use prompts to generate adjusted new featured images.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:Y},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/xjy2weWj?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F06%2Fjetpack-ai-title-optimization.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use AI to generate title suggestions based on your content, each with an explanation of why it works better. Save time and create engaging, SEO-friendly titles.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:X},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/OMI3zqid?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-38.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},V),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Quickly build forms using the Jetpack Forms block and AI. Use prompts to describe your form and AI will generate the elements in a few seconds.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ee},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/0vb0OJm7?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-39.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:P}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Get instant feedback on your post before publishing. AI will read your post and highlight opportunities to improve your publication.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:C.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Help us improving the accuracy of our results and feel free to give us ideas for future implementations and improvements.","jetpack-my-jetpack")," ",React.createElement(u.ExternalLink,{href:Z},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),l=a(8252);const __=c.__;function o(){const{userConnectionData:e,isSiteConnected:t}=(0,i.A)(),a=e?.currentUser?.wpcomUser?.display_name||e?.currentUser?.wpcomUser?.login||e?.currentUser?.username,{isLoading:c,data:o}=(0,s.A)({name:r.Ck,query:{path:r.tb},options:{enabled:t}});if(c)return React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack"));const u=(0,l.M)(o);return React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:u,displayName:a}))}},9654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(7723),c=a(1113),r=a(5788),s=a(1871),i=a(6994),l=a(1609),o=a.n(l),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>o().createElement("div",{className:d.A["section-stats-highlights"]},o().createElement("h3",{className:d.A["section-title"]},o().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),o().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),o().createElement("div",{className:d.A["cards-list"]},o().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),o().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),o().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),o().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:i.A}),count:e?.comments,previousCount:t?.comments})))},3:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(6427),c=a(1113),r=a(6955),s=a(2510),i=a(3022),l=a(5739),o=a.n(l),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:l})=>{const o=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(o),v=Number.isFinite(o)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const a=e/t*100;return Math.abs(a)===1/0?100:Math.round(a)})(g,t):null;return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),l&&m().createElement("div",{className:p.A["stats-card-heading"]},l),m().createElement("div",{className:p.A["stats-card-count"]},m().createElement("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0},(0,d.A)(e)),null!==o?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:o<0,[p.A["stats-card-difference--negative"]]:o>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(o)},o<0&&m().createElement(c.A,{size:18,icon:r.A}),o>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},g>9999?(0,d.A)(g):(0,d.A)(g,{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:o().number,heading:o().node,icon:o().node,previousCount:o().number};const g=h},3336:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6427);const c=React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},1035:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(7723),c=a(1609),r=a(8837),s=a(1504),i=a(4923),l=a(280),o=a(8242),u=a(4526),m=a(1870),d=a(6176),p=a(9654);const __=n.__,h=()=>{const e="stats",{blogID:t,isSiteConnected:a}=(0,m.A)(),{detail:n}=(0,i.A)(e),{status:h}=n,g=!!(0,o.A$)("userIsAdmin"),{data:v}=(0,l.A)({name:s.MB,query:{path:(0,s.IM)(t)},options:{enabled:a}}),f=v?.past_seven_days||{},w=v?.between_past_eight_and_fifteen_days||{},{recordEvent:E}=(0,u.A)(),k=(0,c.useCallback)((()=>{E("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[E]),y=(0,c.useCallback)((()=>!(h!==r.hp.CAN_UPGRADE)),[h]),A={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:y},b={[r.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[r.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[r.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return React.createElement(d.A,{admin:g,slug:e,primaryActionOverride:b,secondaryAction:A,showMenu:!0},React.createElement(p.A,{counts:f,previousCounts:w}))}},7881:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(3924),c=a(8509),r=a(7425),s=a(5879),i=a(1112),l=a(4082),o=a(7723),u=a(1609),m=a(6007),d=a(1521),p=a(5350),h=a(8242),g=a(4526),v=a(753),f=a(5225);const __=o.__,w=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:o}=(0,g.A)(),{setNotice:w,resetNotice:E}=(0,u.useContext)(m.g),{siteSuffix:k,adminUrl:y}=(0,h.A$)(),A=`${`?connect_after_checkout=true&admin_url=${encodeURIComponent(y)}&from_site_slug=${k}&source=my-jetpack`}${`&redirect_to=${encodeURIComponent(window.location.href)}`}&unlinked=1`,b=(0,n.A)("jetpack-my-jetpack-site-only-plans",{query:A}),j=__("Activate Jetpack in one click","jetpack-my-jetpack"),{refetch:R}=(0,p.A)(),_=(0,u.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,v.A)(),(0,l.Pg)();const{variationName:e}=await(0,l.nQ)("jetpack_my_jetpack_recommendations_pricing_page_202411");t((t=>({...t,variation:e??"control"}))),"treatment"===e&&(window.location.href=b)}finally{E(),w(d.F,E),R(),t((e=>({...e,isLoading:!1})))}}),[b,e,t,o,R,E,w]);return React.createElement(React.Fragment,null,React.createElement(c.A,{sm:6,md:8,lg:6,className:f.A["banner-description"]},React.createElement(r.Ay,{variant:"headline-small",mb:3},__("Welcome to Jetpack!","jetpack-my-jetpack")),React.createElement(r.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(r.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(s.A,{agreeButtonLabel:j,mb:4}),React.createElement(i.A,{variant:"primary",disabled:a,isLoading:a,onClick:_},a?__("Activating…","jetpack-my-jetpack"):j)),React.createElement(c.A,{sm:6,md:8,lg:6,className:f.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,l=()=>React.createElement(n.A,{className:i.A["banner-evaluation"]},React.createElement("div",{className:i.A["banner-loader"]},React.createElement(r.Spinner,null)),React.createElement(c.Ay,{variant:"title-medium",mb:1},__("Finding the best Jetpack tools","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body-small"},__("We‘re crunching the numbers to find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")))},6259:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(8509),c=a(7425),r=a(1112),s=a(6427),i=a(7723),l=a(3022),o=a(1609),u=a(5225);const __=i.__,m={protect:__("Protect my site","jetpack-my-jetpack"),performance:__("Improve my site‘s performance","jetpack-my-jetpack"),audience:__("Grow my audience","jetpack-my-jetpack"),content:__("Create quality content","jetpack-my-jetpack"),unsure:__("I don‘t know","jetpack-my-jetpack")},d={protect:!1,performance:!1,audience:!1,content:!1,unsure:!1},p=({onSkipOnboarding:e,onSubmitEvaluation:t})=>{const[a,i]=(0,o.useState)(d),p=(0,o.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,o.useCallback)((()=>t(a)),[t,a]),g=Object.values(a).some((e=>e));return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:u.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("What would you like Jetpack to do?","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack does a lot. Select the items that are most important to you and we‘ll find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")),React.createElement("form",{className:u.A.form},Object.entries(m).map((([e,t])=>React.createElement(s.CheckboxControl,{key:e,className:u.A["form-checkbox"],label:t,checked:a[e],onChange:p(e),__nextHasNoMarginBottom:!0}))),React.createElement("div",{className:u.A["form-actions"]},React.createElement(r.A,{variant:"primary",text:__("See solutions","jetpack-my-jetpack"),onClick:h,disabled:!g}),React.createElement(r.A,{variant:"link",className:u.A["form-link-action"],text:__("Skip onboarding","jetpack-my-jetpack"),onClick:e})))),React.createElement(n.A,{sm:6,md:8,lg:6,className:(0,l.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),l=a(3022),o=a(1609),u=a(3804),m=a(4393),d=a(9812),p=a(4526),h=a(1870),g=a(2450),v=a(7881),f=a(9230),w=a(6259),E=a(5225);const __=s.__,k=({welcomeFlowExperiment:e,setWelcomeFlowExperiment:t,children:a})=>{const{recordEvent:s}=(0,p.A)(),{dismissWelcomeBanner:k}=(0,d.A)(),{recommendedModules:y,submitEvaluation:A,saveEvaluationResult:b}=(0,u.A)(),{siteIsRegistered:j,siteIsRegistering:R,isUserConnected:_,isSiteConnected:C,handleRegisterSite:x}=(0,h.A)({skipUserConnection:!0}),[N,z]=(0,o.useState)(!1),[M,S]=(0,o.useState)(""),L=(0,o.useMemo)((()=>!j||e.isLoading?"connection":N?"evaluation-processing":y||(0,m.A)()?"evaluation":null),[N,y,j,e.isLoading]);(0,o.useEffect)((()=>{M!==L&&(s("jetpack_myjetpack_welcome_banner_step_view",{current_step:L}),S(L))}),[L,M,s]);const V=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:L,is_user_connected:_,is_site_connected:C}),k()}),[s,L,_,C,k]),P=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),k()}),[k,s]),H=(0,o.useCallback)((async e=>{const t=Object.keys(e).filter((t=>e[t]));z(!0),s("jetpack_myjetpack_welcome_banner_evaluation_submit",{goals:t});try{const e=await A(t);await b(e),k()}catch(e){z(!1)}}),[k,s,b,A]);return(0,o.useEffect)((()=>{L||k()}),[L,k]),L?React.createElement(n.A,{horizontalSpacing:6,horizontalGap:2},a&&React.createElement(c.A,null,a),React.createElement(c.A,{lg:12,className:E.A.banner},React.createElement(g.O,{className:(0,l.A)(E.A["banner-card"],"connection"===L&&E.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:E.A["banner-content"]},"connection"===L&&React.createElement(v.A,{onActivateSite:x,onUpdateWelcomeFlowExperiment:t,isActivating:R||e.isLoading}),"evaluation"===L&&React.createElement(w.A,{onSkipOnboarding:P,onSubmitEvaluation:H}),"evaluation-processing"===L&&React.createElement(f.A,null))),React.createElement(r.A,{className:E.A.dismiss,variant:"secondary","aria-label":__("Don’t show the welcome message again","jetpack-my-jetpack"),size:"small",icon:i.A,disabled:R,onClick:V}))):null}},8837:(e,t,a)=>{"use strict";a.d(t,{ED:()=>c,NM:()=>s,OM:()=>n,hp:()=>i,mk:()=>r});const n="my-jetpack-my-plans-manage",c="my-jetpack-my-plans-purchase",r="my-jetpack-my-plans-purchase-no-site",s={Home:"/",Connection:"/connection",AddAkismet:"/add-akismet",AddAntiSpam:"/add-anti-spam",AddBackup:"/add-backup",AddBoost:"/add-boost",AddCRM:"/add-crm",AddCreator:"/add-creator",AddJetpackAI:"/add-jetpack-ai",AddExtras:"/add-extras",AddProtect:"/add-protect/:feature?",AddScan:"/add-scan",AddSocial:"/add-social",AddSearch:"/add-search",AddVideoPress:"/add-videopress",AddStats:"/add-stats",AddLicense:"/add-license",RedeemToken:"/redeem-token"},i={ACTIVE:"active",INACTIVE:"inactive",MODULE_DISABLED:"module_disabled",SITE_CONNECTION_ERROR:"site_connection_error",ABSENT:"plugin_absent",ABSENT_WITH_PLAN:"plugin_absent_with_plan",NEEDS_PLAN:"needs_plan",NEEDS_ACTIVATION:"needs_activation",NEEDS_FIRST_SITE_CONNECTION:"needs_first_site_connection",USER_CONNECTION_ERROR:"user_connection_error",CAN_UPGRADE:"can_upgrade"}},3537:(e,t,a)=>{"use strict";a.d(t,{EX:()=>c,PG:()=>n,pv:()=>r});const n=100,c=200,r=300},6007:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,g:()=>r});var n=a(1609);const c={message:"",title:null,options:{level:"info",priority:0}},r=(0,n.createContext)({currentNotice:c,setNotice:null,resetNotice:null}),s=({children:e})=>{const[t,a]=(0,n.useState)(c),s=(0,n.useCallback)((()=>{a(c)}),[]),i=(0,n.useCallback)(((e,n)=>{if(!t.message||e.options.priority>t.options.priority){const t={...e.options,onClose:e.options?.onClose||(e.options?.hideCloseButton?void 0:n)};s(),a({...e,options:t})}}),[t.message,t.options.priority,s]);return React.createElement(r.Provider,{value:{currentNotice:t,setNotice:i,resetNotice:s}},e)}},1521:(e,t,a)=>{"use strict";a.d(t,{F:()=>r});var n=a(7723),c=a(3537);const r={message:(0,n.__)("Your site has been successfully connected.","jetpack-my-jetpack"),options:{id:"site-connection-success-notice",level:"success",actions:[],priority:c.pv,hideCloseButton:!1}}},6077:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,_:()=>r});var n=a(1609);const c=(0,n.createContext)({state:{},setState:()=>{}}),r=(e,t)=>{const{state:a,setState:r}=(0,n.useContext)(c),{[e]:s=t}=a;(0,n.useEffect)((()=>{void 0===a[e]&&r((a=>({...a,[e]:t})))}),[t,e,r,a]);return[s,(0,n.useCallback)((t=>{r((a=>({...a,[e]:t})))}),[e,r])]},s=({children:e})=>{const[t,a]=(0,n.useState)({});return React.createElement(c.Provider,{value:{state:t,setState:a}},e)}},1504:(e,t,a)=>{"use strict";a.d(t,{AD:()=>m,Ck:()=>_,DB:()=>r,D_:()=>z,Dz:()=>A,FW:()=>f,IM:()=>h,L6:()=>d,MB:()=>j,MD:()=>x,Md:()=>E,O2:()=>l,PM:()=>u,QO:()=>R,Rx:()=>v,Sm:()=>s,_:()=>k,dB:()=>C,gw:()=>b,jE:()=>w,jf:()=>o,no:()=>p,nw:()=>y,pN:()=>N,rR:()=>i,tb:()=>c,xF:()=>g});const n="my-jetpack/v1",c=`${n}/site/purchases`,r=`${n}/site/backup/undo-event`,s=`${n}/site/backup/count-items`,i=`${n}/chat/availability`,l=`${n}/chat/authentication`,o=`${n}/site/products`,u=`${n}/site/products-ownership`,m=`${n}/site/dismiss-welcome-banner`,d=`${n}/site/recommendations/evaluation`,p=`${n}/site/recommendations/evaluation/result`,h=e=>`jetpack/v4/stats-app/sites/${e}/stats/highlights`,g="product",v="product ownership",f="activate product",w="install product",E="available licenses",k="chat availability",y="chat authentication",A="backup history",b="backup stats",j="stats counts",R="dismiss welcome banner",_="purchases",C="evaluate site recommendations",x="save site evaluation result",N="remove site evaluation result",z={ANTI_SPAM:"anti-spam",BACKUP:"backup",BOOST:"boost",CRM:"crm",CREATOR:"creator",EXTRAS:"extras",JETPACK_AI:"jetpack-ai",SCAN:"scan",SEARCH:"search",SOCIAL:"social",SECURITY:"security",PROTECT:"protect",VIDEOPRESS:"videopress",STATS:"stats"}},3804:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(7723),c=a(1609),r=a(6077),s=a(4526),i=a(1504),l=a(929),o=a(8242),u=a(4393),m=a(9812);const __=n.__,d=()=>{const{recordEvent:e}=(0,s.A)(),{isWelcomeBannerVisible:t,showWelcomeBanner:a}=(0,m.A)(),[n,d]=(0,r._)("recommendedModules",(0,o.A$)("recommendedModules").modules),[p,h]=(0,r._)("isFirstRun",(0,o.A$)("recommendedModules").isFirstRun),g=(0,c.useMemo)((()=>{const e=(0,o.A$)("lifecycleStats")?.ownedProducts||[];return n?.filter((t=>!e.includes(t))).slice(0,5)}),[n]),v=(0,c.useMemo)((()=>{const{dismissed:e}=(0,o.A$)("recommendedModules");return!e&&!t&&(0,u.A)()}),[t]),[f,w]=(0,r._)("recommendedModulesVisible",v&&!!g?.length),{mutate:E}=(0,l.A)({name:i.dB,query:{path:i.L6,method:"GET"},errorMessage:__("Failed to evaluate site recommendations","jetpack-my-jetpack")}),{mutate:k}=(0,l.A)({name:i.MD,query:{path:i.no,method:"POST"},errorMessage:__("Failed to save evaluation results. Please try again","jetpack-my-jetpack")}),{mutate:y}=(0,l.A)({name:i.pN,query:{path:i.no,method:"DELETE"},errorMessage:__("Failed to hide evaluation results. Please try again","jetpack-my-jetpack")});return{submitEvaluation:(0,c.useCallback)((e=>new Promise(((t,a)=>{E({queryParams:{goals:e}},{onSuccess:t,onError:a})}))),[E]),saveEvaluationResult:(0,c.useCallback)((e=>new Promise(((t,a)=>{k({data:{recommendations:e}},{onSuccess:e=>{d(e),w(!0),t()},onError:a})}))),[k,w,d]),removeEvaluationResult:(0,c.useCallback)((()=>{y({},{onSuccess:()=>{w(!1),h(!1),e("jetpack_myjetpack_evaluation_recommendations_dismiss_click")}})}),[y,e,h,w]),redoEvaluation:(0,c.useCallback)((()=>{w(!1),h(!1),a(),e("jetpack_myjetpack_evaluation_recommendations_redo_click")}),[e,h,w,a]),recommendedModules:g,isSectionVisible:f,isFirstRun:p}}},2447:(e,t,a)=>{"use strict";a.d(t,{M:()=>o});var n=a(7723),c=a(1609),r=a(3537),s=a(6007),i=a(1504);const __=n.__,l=[i.Ck,i.FW,i.jE],o=({infoName:e,isError:t,overrideMessage:a})=>{const{setNotice:i}=(0,c.useContext)(s.g),o=a??(0,n.sprintf)( +__("Get %s requests","jetpack-my-jetpack"),O?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),ye=(0,R.A)("/add-jetpack-ai"),{recordEvent:Ae}=(0,A.A)(),be=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[Ae]),je=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:B?.slug||"",requests_count:I}),ye()}),[Ae,I,B,ye]),Re=(0,k.useCallback)((()=>N(!1)),[]);(0,k.useEffect)((()=>{Ae("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:B?.slug||"",requests_count:I})}),[I,B?.slug,Ae]),(0,k.useEffect)((()=>{N(se||ie)}),[se,ie]);const _e=React.createElement("span",{className:C.A["product-interstitial__new-badge"]},__("New","jetpack-my-jetpack")," ");return React.createElement(c.A,{showHeader:!1,showBackground:!0},React.createElement(r.A,{fluid:!0,horizontalSpacing:3,horizontalGap:2},React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__section-wrapper-wide"]},React.createElement(_.A,{onClick:e})),React.createElement("div",{className:(0,f.A)(C.A["product-interstitial__section-wrapper-wide"],C.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:C.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__hero-section"]},React.createElement("div",{className:C.A["product-interstitial__hero-content"]},React.createElement("h1",{className:C.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:C.A["product-interstitial__hero-sub-heading"]},__("Draft, transform, translate, and alter both new and existing content leveraging the capabilities of AI, inside the block editor.","jetpack-my-jetpack")),!G&&!q&&React.createElement(u.Button,{variant:"primary",onClick:je,className:C.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),G&&React.createElement(u.Button,{variant:"primary",onClick:be,href:K,className:C.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:C.A["product-interstitial__hero-side"]},W&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(l.KH,null),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},U?de:me),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},ue))),Q&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},I))),D&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},$)))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},E&&React.createElement("div",{className:C.A["product-interstitial__ai-notice"]},React.createElement(o.A,{actions:U?[React.createElement(u.Button,{key:"upgrade",isPrimary:!0,onClick:je},se?Ee:ke)]:{},onClose:Re,level:se?"warning":"error",title:se?pe:he},se?fe:we)),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__usage-videos"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/2OU6GCMs?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F07%2Fjetpack-ai-breve-poster.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:H}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},H,_e),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Simplify your writing with AI suggestions to fix long sentences and complex words and sound more confident. As you type, check your Reading grade score to make sure it suits your audience.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ae},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/GdXmtVtW?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-37.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use the AI block to generate content, or use our AI edit options in existing blocks. Use prompts or any of our recommended actions.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:v.A,href:ne},z?ce:re))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/HJCf8cXc?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fone-click-featured-images.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:S}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Create featured images to illustrate your content and make it more engaging with just one click. Use prompts to generate adjusted new featured images.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:Y},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/xjy2weWj?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F06%2Fjetpack-ai-title-optimization.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use AI to generate title suggestions based on your content, each with an explanation of why it works better. Save time and create engaging, SEO-friendly titles.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:X},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/OMI3zqid?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-38.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},V),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Quickly build forms using the Jetpack Forms block and AI. Use prompts to describe your form and AI will generate the elements in a few seconds.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ee},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/0vb0OJm7?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-39.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:P}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Get instant feedback on your post before publishing. AI will read your post and highlight opportunities to improve your publication.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:C.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Help us improving the accuracy of our results and feel free to give us ideas for future implementations and improvements.","jetpack-my-jetpack")," ",React.createElement(u.ExternalLink,{href:Z},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),l=a(8252);const __=c.__;function o(){const{userConnectionData:e,isSiteConnected:t}=(0,i.A)(),a=e?.currentUser?.wpcomUser?.display_name||e?.currentUser?.wpcomUser?.login||e?.currentUser?.username,{isLoading:c,data:o}=(0,s.A)({name:r.Ck,query:{path:r.tb},options:{enabled:t}});if(c)return React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack"));const u=(0,l.M)(o);return React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:u,displayName:a}))}},9654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(7723),c=a(1113),r=a(5788),s=a(1871),i=a(6994),l=a(1609),o=a.n(l),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>o().createElement("div",{className:d.A["section-stats-highlights"]},o().createElement("h3",{className:d.A["section-title"]},o().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),o().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),o().createElement("div",{className:d.A["cards-list"]},o().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),o().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),o().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),o().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:i.A}),count:e?.comments,previousCount:t?.comments})))},3:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(6427),c=a(1113),r=a(6955),s=a(2510),i=a(3022),l=a(5739),o=a.n(l),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:l})=>{const o=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(o),v=Number.isFinite(o)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const a=e/t*100;return Math.abs(a)===1/0?100:Math.round(a)})(g,t):null;return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),l&&m().createElement("div",{className:p.A["stats-card-heading"]},l),m().createElement("div",{className:p.A["stats-card-count"]},m().createElement("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0},(0,d.A)(e)),null!==o?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:o<0,[p.A["stats-card-difference--negative"]]:o>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(o)},o<0&&m().createElement(c.A,{size:18,icon:r.A}),o>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},g>9999?(0,d.A)(g):(0,d.A)(g,{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:o().number,heading:o().node,icon:o().node,previousCount:o().number};const g=h},3336:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6427);const c=React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},1035:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(7723),c=a(1609),r=a(8837),s=a(1504),i=a(4923),l=a(280),o=a(8242),u=a(4526),m=a(1870),d=a(6176),p=a(9654);const __=n.__,h=()=>{const e="stats",{blogID:t,isSiteConnected:a}=(0,m.A)(),{detail:n}=(0,i.A)(e),{status:h}=n,g=!!(0,o.A$)("userIsAdmin"),{data:v}=(0,l.A)({name:s.MB,query:{path:(0,s.IM)(t)},options:{enabled:a}}),f=v?.past_seven_days||{},w=v?.between_past_eight_and_fifteen_days||{},{recordEvent:E}=(0,u.A)(),k=(0,c.useCallback)((()=>{E("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[E]),y=(0,c.useCallback)((()=>!(h!==r.hp.CAN_UPGRADE)),[h]),A={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:y},b={[r.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[r.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[r.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return React.createElement(d.A,{admin:g,slug:e,primaryActionOverride:b,secondaryAction:A,showMenu:!0},React.createElement(p.A,{counts:f,previousCounts:w}))}},7881:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(3924),c=a(8509),r=a(7425),s=a(5879),i=a(1112),l=a(4082),o=a(7723),u=a(1609),m=a(6007),d=a(1521),p=a(5350),h=a(8242),g=a(4526),v=a(753),f=a(5225);const __=o.__,w=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:o}=(0,g.A)(),{setNotice:w,resetNotice:E}=(0,u.useContext)(m.g),{siteSuffix:k,adminUrl:y}=(0,h.A$)(),A=`${`?connect_after_checkout=true&admin_url=${encodeURIComponent(y)}&from_site_slug=${k}&source=my-jetpack`}${`&redirect_to=${encodeURIComponent(window.location.href)}`}&unlinked=1`,b=(0,n.A)("jetpack-my-jetpack-site-only-plans",{query:A}),j=__("Activate Jetpack in one click","jetpack-my-jetpack"),{refetch:R}=(0,p.A)(),_=(0,u.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,v.A)(),(0,l.Pg)();const{variationName:e}=await(0,l.nQ)("jetpack_my_jetpack_recommendations_pricing_page_202411");t((t=>({...t,variation:e??"control"}))),"treatment"===e&&(window.location.href=b)}finally{E(),w(d.F,E),R(),t((e=>({...e,isLoading:!1})))}}),[b,e,t,o,R,E,w]);return React.createElement(React.Fragment,null,React.createElement(c.A,{sm:6,md:8,lg:6,className:f.A["banner-description"]},React.createElement(r.Ay,{variant:"headline-small",mb:3},__("Welcome to Jetpack!","jetpack-my-jetpack")),React.createElement(r.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(r.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(s.A,{agreeButtonLabel:j,mb:4}),React.createElement(i.A,{variant:"primary",disabled:a,isLoading:a,onClick:_},a?__("Activating…","jetpack-my-jetpack"):j)),React.createElement(c.A,{sm:6,md:8,lg:6,className:f.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,l=()=>React.createElement(n.A,{className:i.A["banner-evaluation"]},React.createElement("div",{className:i.A["banner-loader"]},React.createElement(r.Spinner,null)),React.createElement(c.Ay,{variant:"title-medium",mb:1},__("Finding the best Jetpack tools","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body-small"},__("We‘re crunching the numbers to find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")))},6259:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(8509),c=a(7425),r=a(1112),s=a(6427),i=a(7723),l=a(3022),o=a(1609),u=a(5225);const __=i.__,m={protect:__("Protect my site","jetpack-my-jetpack"),performance:__("Improve my site‘s performance","jetpack-my-jetpack"),audience:__("Grow my audience","jetpack-my-jetpack"),content:__("Create quality content","jetpack-my-jetpack"),unsure:__("I don‘t know","jetpack-my-jetpack")},d={protect:!1,performance:!1,audience:!1,content:!1,unsure:!1},p=({onSkipOnboarding:e,onSubmitEvaluation:t})=>{const[a,i]=(0,o.useState)(d),p=(0,o.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,o.useCallback)((()=>t(a)),[t,a]),g=Object.values(a).some((e=>e));return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:u.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("What would you like Jetpack to do?","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack does a lot. Select the items that are most important to you and we‘ll find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")),React.createElement("form",{className:u.A.form},Object.entries(m).map((([e,t])=>React.createElement(s.CheckboxControl,{key:e,className:u.A["form-checkbox"],label:t,checked:a[e],onChange:p(e),__nextHasNoMarginBottom:!0}))),React.createElement("div",{className:u.A["form-actions"]},React.createElement(r.A,{variant:"primary",text:__("See solutions","jetpack-my-jetpack"),onClick:h,disabled:!g}),React.createElement(r.A,{variant:"link",className:u.A["form-link-action"],text:__("Skip onboarding","jetpack-my-jetpack"),onClick:e})))),React.createElement(n.A,{sm:6,md:8,lg:6,className:(0,l.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),l=a(3022),o=a(1609),u=a(3804),m=a(4393),d=a(9812),p=a(4526),h=a(1870),g=a(2450),v=a(7881),f=a(9230),w=a(6259),E=a(5225);const __=s.__,k=({welcomeFlowExperiment:e,setWelcomeFlowExperiment:t,children:a})=>{const{recordEvent:s}=(0,p.A)(),{dismissWelcomeBanner:k}=(0,d.A)(),{recommendedModules:y,submitEvaluation:A,saveEvaluationResult:b}=(0,u.A)(),{siteIsRegistered:j,siteIsRegistering:R,isUserConnected:_,isSiteConnected:C,handleRegisterSite:x}=(0,h.A)({skipUserConnection:!0}),[N,z]=(0,o.useState)(!1),[M,S]=(0,o.useState)(""),L=(0,o.useMemo)((()=>!j||e.isLoading?"connection":N?"evaluation-processing":y||(0,m.A)()?"evaluation":null),[N,y,j,e.isLoading]);(0,o.useEffect)((()=>{M!==L&&(s("jetpack_myjetpack_welcome_banner_step_view",{current_step:L}),S(L))}),[L,M,s]);const V=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:L,is_user_connected:_,is_site_connected:C}),k()}),[s,L,_,C,k]),P=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),k()}),[k,s]),H=(0,o.useCallback)((async e=>{const t=Object.keys(e).filter((t=>e[t]));z(!0),s("jetpack_myjetpack_welcome_banner_evaluation_submit",{goals:t});try{const e=await A(t);await b(e),k()}catch(e){z(!1)}}),[k,s,b,A]);return(0,o.useEffect)((()=>{L||k()}),[L,k]),L?React.createElement(n.A,{horizontalSpacing:6,horizontalGap:2},a&&React.createElement(c.A,null,a),React.createElement(c.A,{lg:12,className:E.A.banner},React.createElement(g.O,{className:(0,l.A)(E.A["banner-card"],"connection"===L&&E.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:E.A["banner-content"]},"connection"===L&&React.createElement(v.A,{onActivateSite:x,onUpdateWelcomeFlowExperiment:t,isActivating:R||e.isLoading}),"evaluation"===L&&React.createElement(w.A,{onSkipOnboarding:P,onSubmitEvaluation:H}),"evaluation-processing"===L&&React.createElement(f.A,null))),React.createElement(r.A,{className:E.A.dismiss,variant:"secondary","aria-label":__("Don’t show the welcome message again","jetpack-my-jetpack"),size:"small",icon:i.A,disabled:R,onClick:V}))):null}},8837:(e,t,a)=>{"use strict";a.d(t,{ED:()=>c,NM:()=>s,OM:()=>n,hp:()=>i,mk:()=>r});const n="my-jetpack-my-plans-manage",c="my-jetpack-my-plans-purchase",r="my-jetpack-my-plans-purchase-no-site",s={Home:"/",Connection:"/connection",AddAkismet:"/add-akismet",AddAntiSpam:"/add-anti-spam",AddBackup:"/add-backup",AddBoost:"/add-boost",AddCRM:"/add-crm",AddJetpackAI:"/add-jetpack-ai",AddExtras:"/add-extras",AddProtect:"/add-protect/:feature?",AddScan:"/add-scan",AddSocial:"/add-social",AddSearch:"/add-search",AddVideoPress:"/add-videopress",AddStats:"/add-stats",AddLicense:"/add-license",RedeemToken:"/redeem-token"},i={ACTIVE:"active",INACTIVE:"inactive",MODULE_DISABLED:"module_disabled",SITE_CONNECTION_ERROR:"site_connection_error",ABSENT:"plugin_absent",ABSENT_WITH_PLAN:"plugin_absent_with_plan",NEEDS_PLAN:"needs_plan",NEEDS_ACTIVATION:"needs_activation",NEEDS_FIRST_SITE_CONNECTION:"needs_first_site_connection",USER_CONNECTION_ERROR:"user_connection_error",CAN_UPGRADE:"can_upgrade"}},3537:(e,t,a)=>{"use strict";a.d(t,{EX:()=>c,PG:()=>n,pv:()=>r});const n=100,c=200,r=300},6007:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,g:()=>r});var n=a(1609);const c={message:"",title:null,options:{level:"info",priority:0}},r=(0,n.createContext)({currentNotice:c,setNotice:null,resetNotice:null}),s=({children:e})=>{const[t,a]=(0,n.useState)(c),s=(0,n.useCallback)((()=>{a(c)}),[]),i=(0,n.useCallback)(((e,n)=>{if(!t.message||e.options.priority>t.options.priority){const t={...e.options,onClose:e.options?.onClose||(e.options?.hideCloseButton?void 0:n)};s(),a({...e,options:t})}}),[t.message,t.options.priority,s]);return React.createElement(r.Provider,{value:{currentNotice:t,setNotice:i,resetNotice:s}},e)}},1521:(e,t,a)=>{"use strict";a.d(t,{F:()=>r});var n=a(7723),c=a(3537);const r={message:(0,n.__)("Your site has been successfully connected.","jetpack-my-jetpack"),options:{id:"site-connection-success-notice",level:"success",actions:[],priority:c.pv,hideCloseButton:!1}}},6077:(e,t,a)=>{"use strict";a.d(t,{A:()=>s,_:()=>r});var n=a(1609);const c=(0,n.createContext)({state:{},setState:()=>{}}),r=(e,t)=>{const{state:a,setState:r}=(0,n.useContext)(c),{[e]:s=t}=a;(0,n.useEffect)((()=>{void 0===a[e]&&r((a=>({...a,[e]:t})))}),[t,e,r,a]);return[s,(0,n.useCallback)((t=>{r((a=>({...a,[e]:t})))}),[e,r])]},s=({children:e})=>{const[t,a]=(0,n.useState)({});return React.createElement(c.Provider,{value:{state:t,setState:a}},e)}},1504:(e,t,a)=>{"use strict";a.d(t,{AD:()=>m,Ck:()=>_,DB:()=>r,D_:()=>z,Dz:()=>A,FW:()=>f,IM:()=>h,L6:()=>d,MB:()=>j,MD:()=>x,Md:()=>E,O2:()=>l,PM:()=>u,QO:()=>R,Rx:()=>v,Sm:()=>s,_:()=>k,dB:()=>C,gw:()=>b,jE:()=>w,jf:()=>o,no:()=>p,nw:()=>y,pN:()=>N,rR:()=>i,tb:()=>c,xF:()=>g});const n="my-jetpack/v1",c=`${n}/site/purchases`,r=`${n}/site/backup/undo-event`,s=`${n}/site/backup/count-items`,i=`${n}/chat/availability`,l=`${n}/chat/authentication`,o=`${n}/site/products`,u=`${n}/site/products-ownership`,m=`${n}/site/dismiss-welcome-banner`,d=`${n}/site/recommendations/evaluation`,p=`${n}/site/recommendations/evaluation/result`,h=e=>`jetpack/v4/stats-app/sites/${e}/stats/highlights`,g="product",v="product ownership",f="activate product",w="install product",E="available licenses",k="chat availability",y="chat authentication",A="backup history",b="backup stats",j="stats counts",R="dismiss welcome banner",_="purchases",C="evaluate site recommendations",x="save site evaluation result",N="remove site evaluation result",z={ANTI_SPAM:"anti-spam",BACKUP:"backup",BOOST:"boost",CRM:"crm",CREATOR:"creator",EXTRAS:"extras",JETPACK_AI:"jetpack-ai",SCAN:"scan",SEARCH:"search",SOCIAL:"social",SECURITY:"security",PROTECT:"protect",VIDEOPRESS:"videopress",STATS:"stats"}},3804:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(7723),c=a(1609),r=a(6077),s=a(4526),i=a(1504),l=a(929),o=a(8242),u=a(4393),m=a(9812);const __=n.__,d=()=>{const{recordEvent:e}=(0,s.A)(),{isWelcomeBannerVisible:t,showWelcomeBanner:a}=(0,m.A)(),[n,d]=(0,r._)("recommendedModules",(0,o.A$)("recommendedModules").modules),[p,h]=(0,r._)("isFirstRun",(0,o.A$)("recommendedModules").isFirstRun),g=(0,c.useMemo)((()=>{const e=(0,o.A$)("lifecycleStats")?.ownedProducts||[];return n?.filter((t=>!e.includes(t))).slice(0,5)}),[n]),v=(0,c.useMemo)((()=>{const{dismissed:e}=(0,o.A$)("recommendedModules");return!e&&!t&&(0,u.A)()}),[t]),[f,w]=(0,r._)("recommendedModulesVisible",v&&!!g?.length),{mutate:E}=(0,l.A)({name:i.dB,query:{path:i.L6,method:"GET"},errorMessage:__("Failed to evaluate site recommendations","jetpack-my-jetpack")}),{mutate:k}=(0,l.A)({name:i.MD,query:{path:i.no,method:"POST"},errorMessage:__("Failed to save evaluation results. Please try again","jetpack-my-jetpack")}),{mutate:y}=(0,l.A)({name:i.pN,query:{path:i.no,method:"DELETE"},errorMessage:__("Failed to hide evaluation results. Please try again","jetpack-my-jetpack")});return{submitEvaluation:(0,c.useCallback)((e=>new Promise(((t,a)=>{E({queryParams:{goals:e}},{onSuccess:t,onError:a})}))),[E]),saveEvaluationResult:(0,c.useCallback)((e=>new Promise(((t,a)=>{k({data:{recommendations:e}},{onSuccess:e=>{d(e),w(!0),t()},onError:a})}))),[k,w,d]),removeEvaluationResult:(0,c.useCallback)((()=>{y({},{onSuccess:()=>{w(!1),h(!1),e("jetpack_myjetpack_evaluation_recommendations_dismiss_click")}})}),[y,e,h,w]),redoEvaluation:(0,c.useCallback)((()=>{w(!1),h(!1),a(),e("jetpack_myjetpack_evaluation_recommendations_redo_click")}),[e,h,w,a]),recommendedModules:g,isSectionVisible:f,isFirstRun:p}}},2447:(e,t,a)=>{"use strict";a.d(t,{M:()=>o});var n=a(7723),c=a(1609),r=a(3537),s=a(6007),i=a(1504);const __=n.__,l=[i.Ck,i.FW,i.jE],o=({infoName:e,isError:t,overrideMessage:a})=>{const{setNotice:i}=(0,c.useContext)(s.g),o=a??(0,n.sprintf)( // translators: %s is the name of the information being fetched, e.g. "site purchases". __("There was an error fetching your %s information. Check your site connectivity and try again.","jetpack-my-jetpack"),e);(0,c.useEffect)((()=>{t&&l.includes(e)&&i({message:o,options:{id:"fetching-error-notice",level:"error",priority:r.PG}})}),[o,i,t,e])}},9935:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(7723),c=a(4526),r=a(1504),s=a(929),i=a(8242),l=a(4923);const __=n.__,o=e=>{const{detail:t,refetch:a}=(0,l.A)(e),{recordEvent:o}=(0,c.A)(),{mutate:u,isPending:m,isSuccess:d}=(0,s.A)({name:r.FW,query:{path:`${r.jf}/${e}`,method:"POST"},options:{onSuccess:()=>{(e=>{const{standalonePluginInfo:t,isPluginActive:a}=e;return t?.hasStandalonePlugin?t?.isStandaloneActive:a})(t)||(o("jetpack_myjetpack_product_activated",{product:e}),(e=>{const{items:t}=(0,i.A$)("products");t[e]?.standalone_plugin_info.has_standalone_plugin&&(window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_active=!0,window.myJetpackInitialState.products.items[e].standalone_plugin_info.is_standalone_installed=!0)})(e)),a()}},errorMessage:(0,n.sprintf)( // translators: %$1s: Jetpack Product name @@ -95,4 +95,4 @@ _n("%s day ago","%s days ago",Math.floor(r),"jetpack-my-jetpack"),Math.floor(r)) // translators: placeholder is a number amount of hours i.e. "5 hours ago". _n("%s hour ago","%s hours ago",Math.floor(r),"jetpack-my-jetpack"),Math.floor(r)):(r=c/60,r>1?(0,n.sprintf)( // translators: placeholder is a number amount of minutes i.e. "5 minutes ago". -_n("%s minute ago","%s minutes ago",Math.floor(r),"jetpack-my-jetpack"),Math.floor(r)):__("a few seconds ago","jetpack-my-jetpack")))))}},6309:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-lock-cef570e11997f185e23d.png"},7139:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-success-c5c132e713a79e05985f.png"},2822:(e,t,a)=>{"use strict";e.exports=a.p+"images/apple-92dacafad84e79708a74.svg"},8395:(e,t,a)=>{"use strict";e.exports=a.p+"images/connect-c399837fe1621b176d10.png"},5975:(e,t,a)=>{"use strict";e.exports=a.p+"images/github-45c648158e3e86b560f5.svg"},5519:(e,t,a)=>{"use strict";e.exports=a.p+"images/google-dec2a429bf1d8e83f9ad.svg"},6579:(e,t,a)=>{"use strict";e.exports=a.p+"images/wordpress-1fc3e0ba6c52e9707900.svg"},5042:(e,t,a)=>{"use strict";e.exports=a.p+"images/cloud-81ac85ba680343200f54.svg"},3168:(e,t,a)=>{"use strict";e.exports=a.p+"images/empty-avatar-fea23feddfa99b07c2e8.svg"},7757:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-gray-7eeb5eb060c8adea8622.svg"},7319:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-9de1caef5eb5c22da5d6.svg"},4576:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-manage-3a7ecaa604823c98c3cf.svg"},6068:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-inactive-cba3b43d918377b506e5.svg"},850:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-off-47426e7b562ef20ae513.svg"},4538:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-partial-48b279219c6389a129b9.svg"},4516:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-success-e64a26c3a6d0888fba06.svg"},8769:(e,t,a)=>{"use strict";e.exports=a.p+"images/boost-9e9a227e7e7280d0aa85.png"},5296:(e,t,a)=>{"use strict";e.exports=a.p+"images/crm-8a2b204e2c720730e928.png"},4660:(e,t,a)=>{"use strict";e.exports=a.p+"images/extras-c6bd0796750901faa7fd.png"},9923:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-ai-d29bf65dcea46074d72f.png"},7642:(e,t,a)=>{"use strict";e.exports=a.p+"images/search-d177a31292d96d5ccbc2.png"},15:(e,t,a)=>{"use strict";e.exports=a.p+"images/social-b8744a40c7c19a7bcc37.png"},9409:(e,t,a)=>{"use strict";e.exports=a.p+"images/stats-95b42796ede4f632b642.png"},5044:(e,t,a)=>{"use strict";e.exports=a.p+"images/videopress-9c064bc7b89c386e5e50.png"},5990:e=>{"use strict";e.exports={consumer_slug:"my_jetpack"}},9384:e=>{"use strict";e.exports=window.JetpackConnection},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},1455:e=>{"use strict";e.exports=window.wp.apiFetch},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},8443:e=>{"use strict";e.exports=window.wp.date},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";a.d(t,{m:()=>r});var n=a(5530),c=a(698),r=new class extends n.Q{#e;#t;#a;constructor(){super(),this.#a=e=>{if(!c.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#a=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}}},9101:(e,t,a)=>{"use strict";a.d(t,{PL:()=>c});var n=a(698);function c(e){return{onFetch:(t,a)=>{const c=async()=>{const a=t.options,c=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[],o={pages:[],pageParams:[]};let u=!1;const m=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),d=async(e,a,c)=>{if(u)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);const r={queryKey:t.queryKey,pageParam:a,direction:c?"backward":"forward",meta:t.options.meta};var s;s=r,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",(()=>{u=!0})),t.signal)});const i=await m(r),{maxPages:l}=t.options,o=c?n.ZZ:n.y9;return{pages:o(e.pages,i,l),pageParams:o(e.pageParams,a,l)}};let p;if(c&&i.length){const e="backward"===c,t={pages:i,pageParams:l},n=(e?s:r)(a,t);p=await d(t,n,e)}else{p=await d(o,l[0]??a.initialPageParam);const t=e??i.length;for(let e=1;et.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=c}}}function r(e,{pages:t,pageParams:a}){const n=t.length-1;return e.getNextPageParam(t[n],t,a[n],a)}function s(e,{pages:t,pageParams:a}){return e.getPreviousPageParam?.(t[0],t,a[0],a)}},4352:(e,t,a)=>{"use strict";a.d(t,{$:()=>i,s:()=>s});var n=a(1795),c=a(1450),r=a(4610),s=class extends c.k{#n;#c;#r;#s;constructor(e){super(),this.mutationId=e.mutationId,this.#c=e.defaultOptions,this.#r=e.mutationCache,this.#n=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter((t=>t!==e)),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>(this.#s=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#s.promise),a="pending"===this.state.status;try{if(!a){this.#i({type:"pending",variables:e}),await(this.#r.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#i({type:"pending",context:t,variables:e})}const n=await t();return await(this.#r.config.onSuccess?.(n,e,this.state.context,this)),await(this.options.onSuccess?.(n,e,this.state.context)),await(this.#r.config.onSettled?.(n,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(n,null,e,this.state.context)),this.#i({type:"success",data:n}),n}catch(t){try{throw await(this.#r.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#i({type:"error",error:t})}}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,r.v_)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n.j.batch((()=>{this.#n.forEach((t=>{t.onMutationUpdate(e)})),this.#r.notify({mutation:this,type:"updated",action:e})}))}};function i(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},7708:(e,t,a)=>{"use strict";a.d(t,{q:()=>i});var n=a(1795),c=a(4352),r=a(698),s=a(5530),i=class extends s.Q{constructor(e={}){super(),this.config=e,this.#l=[],this.#o=0}#l;#o;#u;build(e,t,a){const n=new c.s({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:a});return this.add(n),n}add(e){this.#l.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#l=this.#l.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){n.j.batch((()=>{this.#l.forEach((e=>{this.remove(e)}))}))}getAll(){return this.#l}find(e){const t={exact:!0,...e};return this.#l.find((e=>(0,r.nJ)(t,e)))}findAll(e={}){return this.#l.filter((t=>(0,r.nJ)(e,t)))}notify(e){n.j.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){return this.#u=(this.#u??Promise.resolve()).then((()=>{const e=this.#l.filter((e=>e.state.isPaused));return n.j.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(r.lQ)))),Promise.resolve())))})).then((()=>{this.#u=void 0})),this.#u}}},4158:(e,t,a)=>{"use strict";a.d(t,{_:()=>i});var n=a(4352),c=a(1795),r=a(5530),s=a(698),i=class extends r.Q{#m;#d=void 0;#p;#h;constructor(e,t){super(),this.#m=e,this.setOptions(t),this.bindMethods(),this.#g()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#m.defaultMutationOptions(e),(0,s.f8)(t,this.options)||this.#m.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#p?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#g(),this.#v(e)}getCurrentResult(){return this.#d}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#g(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#m.getMutationCache().build(this.#m,this.options),this.#p.addObserver(this),this.#p.execute(e)}#g(){const e=this.#p?.state??(0,n.$)();this.#d={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){c.j.batch((()=>{if(this.#h&&this.hasListeners()){const t=this.#d.variables,a=this.#d.context;"success"===e?.type?(this.#h.onSuccess?.(e.data,t,a),this.#h.onSettled?.(e.data,null,t,a)):"error"===e?.type&&(this.#h.onError?.(e.error,t,a),this.#h.onSettled?.(void 0,e.error,t,a))}this.listeners.forEach((e=>{e(this.#d)}))}))}}},1795:(e,t,a)=>{"use strict";a.d(t,{j:()=>n});var n=function(){let e=[],t=0,a=e=>{e()},n=e=>{e()},c=e=>setTimeout(e,0);const r=n=>{t?e.push(n):c((()=>{a(n)}))},s=()=>{const t=e;e=[],t.length&&c((()=>{n((()=>{t.forEach((e=>{a(e)}))}))}))};return{batch:e=>{let a;t++;try{a=e()}finally{t--,t||s()}return a},batchCalls:e=>(...t)=>{r((()=>{e(...t)}))},schedule:r,setNotifyFunction:e=>{a=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{c=e}}}()},5873:(e,t,a)=>{"use strict";a.d(t,{t:()=>r});var n=a(5530),c=a(698),r=new class extends n.Q{#f=!0;#t;#a;constructor(){super(),this.#a=e=>{if(!c.S$&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#a=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#f!==e&&(this.#f=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#f}}},4135:(e,t,a)=>{"use strict";a.d(t,{X:()=>i});var n=a(698),c=a(1795),r=a(4610),s=a(1450),i=class extends s.k{#w;#E;#k;#y;#s;#n;#c;#A;constructor(e){super(),this.#A=!1,this.#c=e.defaultOptions,this.#b(e.options),this.#n=[],this.#k=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#w=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,a=void 0!==t,n=a?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#w,this.scheduleGc()}get meta(){return this.options.meta}#b(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#n.length||"idle"!==this.state.fetchStatus||this.#k.remove(this)}setData(e,t){const a=(0,n.pl)(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#y;return this.#s?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#w)}isActive(){return this.#n.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#n.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,n.j3)(this.state.dataUpdatedAt,e)}onFocus(){const e=this.#n.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){const e=this.#n.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#k.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#n.includes(e)&&(this.#n=this.#n.filter((t=>t!==e)),this.#n.length||(this.#s&&(this.#A?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#k.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#n.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#y)return this.#s?.continueRetry(),this.#y;if(e&&this.#b(e),!this.options.queryFn){const e=this.#n.find((e=>e.options.queryFn));e&&this.#b(e.options)}const a=new AbortController,n={queryKey:this.queryKey,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#A=!0,a.signal)})};c(n);const s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.#A=!1,this.options.persister?this.options.persister(this.options.queryFn,n,this):this.options.queryFn(n)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))};c(s),this.options.behavior?.onFetch(s,this),this.#E=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#i({type:"fetch",meta:s.fetchOptions?.meta});const i=e=>{(0,r.wm)(e)&&e.silent||this.#i({type:"error",error:e}),(0,r.wm)(e)||(this.#k.config.onError?.(e,this),this.#k.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#s=(0,r.II)({fn:s.fetchFn,abort:a.abort.bind(a),onSuccess:e=>{void 0!==e?(this.setData(e),this.#k.config.onSuccess?.(e,this),this.#k.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):i(new Error(`${this.queryHash} data is undefined`))},onError:i,onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode}),this.#y=this.#s.promise,this.#y}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:(0,r.v_)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return(0,r.wm)(a)&&a.revert&&this.#E?{...this.#E,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),c.j.batch((()=>{this.#n.forEach((e=>{e.onQueryUpdate()})),this.#k.notify({query:this,type:"updated",action:e})}))}}},3205:(e,t,a)=>{"use strict";a.d(t,{$:()=>i});var n=a(698),c=a(4135),r=a(1795),s=a(5530),i=class extends s.Q{constructor(e={}){super(),this.config=e,this.#j=new Map}#j;build(e,t,a){const r=t.queryKey,s=t.queryHash??(0,n.F$)(r,t);let i=this.get(s);return i||(i=new c.X({cache:this,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#j.has(e.queryHash)||(this.#j.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#j.get(e.queryHash);t&&(e.destroy(),t===e&&this.#j.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){r.j.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#j.get(e)}getAll(){return[...this.#j.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>(0,n.MK)(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,n.MK)(e,t))):t}notify(e){r.j.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){r.j.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){r.j.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}}},116:(e,t,a)=>{"use strict";a.d(t,{E:()=>u});var n=a(698),c=a(3205),r=a(7708),s=a(2464),i=a(5873),l=a(1795),o=a(9101),u=class{#R;#r;#c;#_;#C;#x;#N;#z;constructor(e={}){this.#R=e.queryCache||new c.$,this.#r=e.mutationCache||new r.q,this.#c=e.defaultOptions||{},this.#_=new Map,this.#C=new Map,this.#x=0}mount(){this.#x++,1===this.#x&&(this.#N=s.m.subscribe((()=>{s.m.isFocused()&&(this.resumePausedMutations(),this.#R.onFocus())})),this.#z=i.t.subscribe((()=>{i.t.isOnline()&&(this.resumePausedMutations(),this.#R.onOnline())})))}unmount(){this.#x--,0===this.#x&&(this.#N?.(),this.#N=void 0,this.#z?.(),this.#z=void 0)}isFetching(e){return this.#R.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){return this.#R.find({queryKey:e})?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return void 0!==t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,a){const c=this.#R.find({queryKey:e}),r=c?.state.data,s=(0,n.Zw)(t,r);if(void 0===s)return;const i=this.defaultQueryOptions({queryKey:e});return this.#R.build(this,i).setData(s,{...a,manual:!0})}setQueriesData(e,t,a){return l.j.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,a)]))))}getQueryState(e){return this.#R.find({queryKey:e})?.state}removeQueries(e){const t=this.#R;l.j.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const a=this.#R,n={type:"active",...e};return l.j.batch((()=>(a.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const a={revert:!0,...t},c=l.j.batch((()=>this.#R.findAll(e).map((e=>e.cancel(a)))));return Promise.all(c).then(n.lQ).catch(n.lQ)}invalidateQueries(e={},t={}){return l.j.batch((()=>{if(this.#R.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const a={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(a,t)}))}refetchQueries(e={},t){const a={...t,cancelRefetch:t?.cancelRefetch??!0},c=l.j.batch((()=>this.#R.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,a);return a.throwOnError||(t=t.catch(n.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(c).then(n.lQ)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const a=this.#R.build(this,t);return a.isStaleByTime(t.staleTime)?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.lQ).catch(n.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,o.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.lQ).catch(n.lQ)}resumePausedMutations(){return this.#r.resumePausedMutations()}getQueryCache(){return this.#R}getMutationCache(){return this.#r}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#_.set((0,n.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#_.values()];let a={};return t.forEach((t=>{(0,n.Cp)(e,t.queryKey)&&(a={...a,...t.defaultOptions})})),a}setMutationDefaults(e,t){this.#C.set((0,n.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#C.values()];let a={};return t.forEach((t=>{(0,n.Cp)(e,t.mutationKey)&&(a={...a,...t.defaultOptions})})),a}defaultQueryOptions(e){if(e?._defaulted)return e;const t={...this.#c.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),void 0===t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#R.clear(),this.#r.clear()}}},3397:(e,t,a)=>{"use strict";a.d(t,{$:()=>l});var n=a(698),c=a(1795),r=a(2464),s=a(5530),i=a(4610),l=class extends s.Q{constructor(e,t){super(),this.options=t,this.#m=e,this.#M=null,this.bindMethods(),this.setOptions(t)}#m;#S=void 0;#L=void 0;#d=void 0;#V;#P;#M;#H;#I;#B;#O;#T;#F;#U=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#S.addObserver(this),o(this.#S,this.options)?this.#D():this.updateResult(),this.#q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#S,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#S,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#J(),this.#G(),this.#S.removeObserver(this)}setOptions(e,t){const a=this.options,c=this.#S;if(this.options=this.#m.defaultQueryOptions(e),(0,n.f8)(a,this.options)||this.#m.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#S,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=a.queryKey),this.#$();const r=this.hasListeners();r&&m(this.#S,c,this.options,a)&&this.#D(),this.updateResult(t),!r||this.#S===c&&this.options.enabled===a.enabled&&this.options.staleTime===a.staleTime||this.#W();const s=this.#Q();!r||this.#S===c&&this.options.enabled===a.enabled&&s===this.#F||this.#K(s)}getOptimisticResult(e){const t=this.#m.getQueryCache().build(this.#m,e),a=this.createResult(t,e);return function(e,t){if(!(0,n.f8)(e.getCurrentResult(),t))return!0;return!1}(this,a)&&(this.#d=a,this.#P=this.options,this.#V=this.#S.state),a}getCurrentResult(){return this.#d}trackResult(e){const t={};return Object.keys(e).forEach((a=>{Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:()=>(this.#U.add(a),e[a])})})),t}getCurrentQuery(){return this.#S}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#m.defaultQueryOptions(e),a=this.#m.getQueryCache().build(this.#m,t);return a.isFetchingOptimistic=!0,a.fetch().then((()=>this.createResult(a,t)))}fetch(e){return this.#D({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#d)))}#D(e){this.#$();let t=this.#S.fetch(this.options,e);return e?.throwOnError||(t=t.catch(n.lQ)),t}#W(){if(this.#J(),n.S$||this.#d.isStale||!(0,n.gn)(this.options.staleTime))return;const e=(0,n.j3)(this.#d.dataUpdatedAt,this.options.staleTime)+1;this.#O=setTimeout((()=>{this.#d.isStale||this.updateResult()}),e)}#Q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#S):this.options.refetchInterval)??!1}#K(e){this.#G(),this.#F=e,!n.S$&&!1!==this.options.enabled&&(0,n.gn)(this.#F)&&0!==this.#F&&(this.#T=setInterval((()=>{(this.options.refetchIntervalInBackground||r.m.isFocused())&&this.#D()}),this.#F))}#q(){this.#W(),this.#K(this.#Q())}#J(){this.#O&&(clearTimeout(this.#O),this.#O=void 0)}#G(){this.#T&&(clearInterval(this.#T),this.#T=void 0)}createResult(e,t){const a=this.#S,c=this.options,r=this.#d,s=this.#V,l=this.#P,u=e!==a?e.state:this.#L,{state:p}=e;let h,{error:g,errorUpdatedAt:v,fetchStatus:f,status:w}=p,E=!1;if(t._optimisticResults){const n=this.hasListeners(),r=!n&&o(e,t),s=n&&m(e,a,t,c);(r||s)&&(f=(0,i.v_)(e.options.networkMode)?"fetching":"paused",p.dataUpdatedAt||(w="pending")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.select&&void 0!==p.data)if(r&&p.data===s?.data&&t.select===this.#H)h=this.#I;else try{this.#H=t.select,h=t.select(p.data),h=(0,n.pl)(r?.data,h,t),this.#I=h,this.#M=null}catch(e){this.#M=e}else h=p.data;if(void 0!==t.placeholderData&&void 0===h&&"pending"===w){let e;if(r?.isPlaceholderData&&t.placeholderData===l?.placeholderData)e=r.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#B?.state.data,this.#B):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#M=null}catch(e){this.#M=e}void 0!==e&&(w="success",h=(0,n.pl)(r?.data,e,t),E=!0)}this.#M&&(g=this.#M,h=this.#I,v=Date.now(),w="error");const k="fetching"===f,y="pending"===w,A="error"===w,b=y&&k;return{status:w,fetchStatus:f,isPending:y,isSuccess:"success"===w,isError:A,isInitialLoading:b,isLoading:b,data:h,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:k,isRefetching:k&&!y,isLoadingError:A&&0===p.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:E,isRefetchError:A&&0!==p.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch}}updateResult(e){const t=this.#d,a=this.createResult(this.#S,this.options);if(this.#V=this.#S.state,this.#P=this.options,void 0!==this.#V.data&&(this.#B=this.#S),(0,n.f8)(a,t))return;this.#d=a;const c={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,a="function"==typeof e?e():e;if("all"===a||!a&&!this.#U.size)return!0;const n=new Set(a??this.#U);return this.options.throwOnError&&n.add("error"),Object.keys(this.#d).some((e=>{const a=e;return this.#d[a]!==t[a]&&n.has(a)}))})()&&(c.listeners=!0),this.#v({...c,...e})}#$(){const e=this.#m.getQueryCache().build(this.#m,this.options);if(e===this.#S)return;const t=this.#S;this.#S=e,this.#L=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#q()}#v(e){c.j.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#d)})),this.#m.getQueryCache().notify({query:this.#S,type:"observerResultsUpdated"})}))}};function o(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,a){if(!1!==t.enabled){const n="function"==typeof a?a(e):a;return"always"===n||!1!==n&&d(e,t)}return!1}function m(e,t,a,n){return!1!==a.enabled&&(e!==t||!1===n.enabled)&&(!a.suspense||"error"!==e.state.status)&&d(e,a)}function d(e,t){return e.isStaleByTime(t.staleTime)}},1450:(e,t,a)=>{"use strict";a.d(t,{k:()=>c});var n=a(698),c=class{#Z;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.gcTime)&&(this.#Z=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.S$?1/0:3e5))}clearGcTimeout(){this.#Z&&(clearTimeout(this.#Z),this.#Z=void 0)}}},4610:(e,t,a)=>{"use strict";a.d(t,{II:()=>u,v_:()=>i,wm:()=>o});var n=a(2464),c=a(5873),r=a(698);function s(e){return Math.min(1e3*2**e,3e4)}function i(e){return"online"!==(e??"online")||c.t.isOnline()}var l=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function o(e){return e instanceof l}function u(e){let t,a,o,u=!1,m=0,d=!1;const p=new Promise(((e,t)=>{a=e,o=t})),h=()=>!n.m.isFocused()||"always"!==e.networkMode&&!c.t.isOnline(),g=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),a(n))},v=a=>{d||(d=!0,e.onError?.(a),t?.(),o(a))},f=()=>new Promise((a=>{t=e=>{const t=d||!h();return t&&a(e),t},e.onPause?.()})).then((()=>{t=void 0,d||e.onContinue?.()})),w=()=>{if(d)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch((t=>{if(d)return;const a=e.retry??(r.S$?0:3),n=e.retryDelay??s,c="function"==typeof n?n(m,t):n,i=!0===a||"number"==typeof a&&m{if(h())return f()})).then((()=>{u?v(t):w()}))):v(t)}))};return i(e.networkMode)?w():f().then(w),{promise:p,cancel:t=>{d||(v(new l(t)),e.abort?.())},continue:()=>{const e=t?.();return e?p:Promise.resolve()},cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},5530:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},698:(e,t,a)=>{"use strict";a.d(t,{Cp:()=>d,EN:()=>m,F$:()=>u,MK:()=>l,S$:()=>n,ZZ:()=>y,Zw:()=>r,f8:()=>h,gn:()=>s,j3:()=>i,lQ:()=>c,nJ:()=>o,pl:()=>E,y9:()=>k,yy:()=>w});var n="undefined"==typeof window||"Deno"in window;function c(){}function r(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function i(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){const{type:a="all",exact:n,fetchStatus:c,predicate:r,queryKey:s,stale:i}=e;if(s)if(n){if(t.queryHash!==u(s,t.options))return!1}else if(!d(t.queryKey,s))return!1;if("all"!==a){const e=t.isActive();if("active"===a&&!e)return!1;if("inactive"===a&&e)return!1}return("boolean"!=typeof i||t.isStale()===i)&&((void 0===c||c===t.state.fetchStatus)&&!(r&&!r(t)))}function o(e,t){const{exact:a,status:n,predicate:c,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(a){if(m(t.options.mutationKey)!==m(r))return!1}else if(!d(t.options.mutationKey,r))return!1}return(!n||t.state.status===n)&&!(c&&!c(t))}function u(e,t){return(t?.queryKeyHashFn||m)(e)}function m(e){return JSON.stringify(e,((e,t)=>v(t)?Object.keys(t).sort().reduce(((e,a)=>(e[a]=t[a],e)),{}):t))}function d(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((a=>!d(e[a],t[a]))))}function p(e,t){if(e===t)return e;const a=g(e)&&g(t);if(a||v(e)&&v(t)){const n=a?e:Object.keys(e),c=n.length,r=a?t:Object.keys(t),s=r.length,i=a?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)}))}function E(e,t,a){return"function"==typeof a.structuralSharing?a.structuralSharing(e,t):!1!==a.structuralSharing?p(e,t):t}function k(e,t,a=0){const n=[...e,t];return a&&n.length>a?n.slice(1):n}function y(e,t,a=0){const n=[t,...e];return a&&n.length>a?n.slice(0,-1):n}},7115:(e,t,a)=>{"use strict";a.d(t,{Ht:()=>i,jE:()=>s});var n=a(1609),c=a(790),r=n.createContext(void 0),s=e=>{const t=n.useContext(r);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i=({client:e,children:t})=>(n.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,c.jsx)(r.Provider,{value:e,children:t}))},9690:(e,t,a)=>{"use strict";a.d(t,{h:()=>s});var n=a(1609);a(790);function c(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var r=n.createContext(c()),s=()=>n.useContext(r)},4804:(e,t,a)=>{"use strict";a.d(t,{$1:()=>i,LJ:()=>r,wZ:()=>s});var n=a(1609),c=a(5492),r=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},s=e=>{n.useEffect((()=>{e.clearReset()}),[e])},i=({result:e,errorResetBoundary:t,throwOnError:a,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(0,c.G)(a,[e.error,n])},4796:(e,t,a)=>{"use strict";a.d(t,{w:()=>r});var n=a(1609),c=n.createContext(!1),r=()=>n.useContext(c);c.Provider},937:(e,t,a)=>{"use strict";a.d(t,{EU:()=>c,iL:()=>r,tu:()=>n});var n=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},c=(e,t)=>e?.suspense&&t.isPending,r=(e,t,a)=>t.fetchOptimistic(e).catch((()=>{a.clearReset()}))},4611:(e,t,a)=>{"use strict";a.d(t,{t:()=>u});var n=a(1609),c=a(1795),r=a(9690),s=a(7115),i=a(4796),l=a(4804),o=a(937);function u(e,t,a){const u=(0,s.jE)(a),m=(0,i.w)(),d=(0,r.h)(),p=u.defaultQueryOptions(e);p._optimisticResults=m?"isRestoring":"optimistic",(0,o.tu)(p),(0,l.LJ)(p,d),(0,l.wZ)(d);const[h]=n.useState((()=>new t(u,p))),g=h.getOptimisticResult(p);if(n.useSyncExternalStore(n.useCallback((e=>{const t=m?()=>{}:h.subscribe(c.j.batchCalls(e));return h.updateResult(),t}),[h,m]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),n.useEffect((()=>{h.setOptions(p,{listeners:!1})}),[p,h]),(0,o.EU)(p,g))throw(0,o.iL)(p,h,d);if((0,l.$1)({result:g,errorResetBoundary:d,throwOnError:p.throwOnError,query:u.getQueryCache().get(p.queryHash)}))throw g.error;return p.notifyOnChangeProps?g:h.trackResult(g)}},4613:(e,t,a)=>{"use strict";a.d(t,{n:()=>l});var n=a(1609),c=a(4158),r=a(1795),s=a(7115),i=a(5492);function l(e,t){const a=(0,s.jE)(t),[l]=n.useState((()=>new c._(a,e)));n.useEffect((()=>{l.setOptions(e)}),[l,e]);const u=n.useSyncExternalStore(n.useCallback((e=>l.subscribe(r.j.batchCalls(e))),[l]),(()=>l.getCurrentResult()),(()=>l.getCurrentResult())),m=n.useCallback(((e,t)=>{l.mutate(e,t).catch(o)}),[l]);if(u.error&&(0,i.G)(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:m,mutateAsync:u.mutate}}function o(){}},5104:(e,t,a)=>{"use strict";a.d(t,{I:()=>r});var n=a(3397),c=a(4611);function r(e,t){return(0,c.t)(e,n.$,t)}},5492:(e,t,a)=>{"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}a.d(t,{G:()=>n})},3022:(e,t,a)=>{"use strict";function n(e){var t,a,c="";if("string"==typeof e||"number"==typeof e)c+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;tc});const c=function(){for(var e,t,a=0,c="",r=arguments.length;a{"use strict";a.d(t,{A:()=>u});var n=a(3924),c=a(6087),r=a(7723),s=a(8120),i=a(1609),l=a(1183);const __=r.__,o=e=>{const{productId:t,siteRawUrl:a}=e,r=`https://cloud.jetpack.com/landing/${a}`,s=(0,l.p)(t),o={jetpack_anti_spam:{title:__("Jetpack Anti-spam is active!","jetpack-my-jetpack"),text:__("We'll take care of everything from here. Now you can enjoy a spam-free site!","jetpack-my-jetpack")},jetpack_backup:{title:__("Jetpack Backup is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups and restore your site on cloud.jetpack.com. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_complete:{title:__("Jetpack Complete is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on cloud.jetpack.com. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_scan:{title:__("Jetpack Scan is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your security scans on cloud.jetpack.com.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_search:{title:__("Jetpack Search is active!","jetpack-my-jetpack"),text:__("Next, we'll help you customize the Search experience for your visitors.","jetpack-my-jetpack")},jetpack_security:{title:__("Jetpack Security is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on cloud.jetpack.com. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_videopress:{title:__("Jetpack VideoPress is active!","jetpack-my-jetpack"),text:__("Experience high-quality, ad-free video built specifically for WordPress.","jetpack-my-jetpack")},jetpack_social_advanced:{title:__("Jetpack Social Advanced is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("Create amazing link previews for your posts using Social Image Generator. Learn more here.

Learn how to make the most out of Jetpack Social here.

","jetpack-my-jetpack"),{a:i.createElement("a",{href:(0,n.A)("jetpack-social-sig-support-page"),target:"_blank",rel:"noreferrer"}),br:i.createElement("br",null),link:i.createElement("a",{href:(0,n.A)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},jetpack_social_basic:{title:__("Jetpack Social Basic is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("Enjoy unlimited shares with Jetpack Social Basic. Learn how to make the most out of Jetpack Social here.","jetpack-my-jetpack"),{a:i.createElement("a",{href:(0,n.A)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},default:{title:__("Your product is active!","jetpack-my-jetpack"),text:__("You're all set!","jetpack-my-jetpack")}};return i.createElement("div",{className:"jp-license-activation-screen-success-info--product-details"},i.createElement("h1",null,o[s].title," ",String.fromCodePoint(127881)),i.createElement("p",null,o[s].text))};o.propTypes={dashboardUrl:s.string,productId:s.number};const u=o},1183:(e,t,a)=>{"use strict";a.d(t,{p:()=>c});const n={jetpack_anti_spam:[2110,2111],jetpack_backup:[2100,2101,2102,2103,2112,2113,2114,2115],jetpack_complete:[2014,2015],jetpack_scan:[2106,2107,2108,2109],jetpack_search:[2104,2105],jetpack_security:[2010,2011,2012,2013,2016,2017,2019,2020],jetpack_videopress:[2116,2117],jetpack_social_advanced:[2602,2603,2604],jetpack_social_basic:[2503,2504,2037]};function c(e){return Object.keys(n).find((t=>n[t].includes(e)))||"default"}},3010:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(1455),c=a(6087);const r=async()=>(await n({path:"wp/v2/plugins"})).filter((e=>"active"===e.status));function s(){const[e,t]=(0,c.useState)([]),[a,n]=(0,c.useState)(!0),s=(0,c.useCallback)((async()=>{try{const e=await r();t(e)}catch{t([])}finally{n(!1)}}),[]);return(0,c.useEffect)((()=>{s()}),[s]),[e,a]}}},t={};function a(n){var c=t[n];if(void 0!==c)return c.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var c=n.length-1;c>-1&&(!e||!/^http(s?):/.test(e));)e=n[c--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{"use strict";var e=a(723),t=a(116),n=a(7115),c=a(6087),r=a(1609),s=a(9539),i=a(28),l=a(8848),o=a(1499),u=a(2912),m=a(6092),d=a(3418),p=a(8823),h=a(7265),g=a(8837),v=a(6007),f=a(6077),w=a(8242);a(4118);function E(){const e=(0,s.zy)();return(0,r.useEffect)((()=>window.scrollTo(0,0)),[e]),null}const k=()=>{const a=new t.E,{loadAddLicenseScreen:c}=(0,w.A$)();return React.createElement(e.Ay,null,React.createElement(v.A,null,React.createElement(f.A,null,React.createElement(n.Ht,{client:a},React.createElement(i.I9,null,React.createElement(E,null),React.createElement(s.BV,null,React.createElement(s.qh,{path:g.NM.Home,element:React.createElement(u.A,null)}),React.createElement(s.qh,{path:g.NM.Connection,element:React.createElement(o.A,null)}),React.createElement(s.qh,{path:g.NM.AddAkismet,element:React.createElement(m.wU,null)}),React.createElement(s.qh,{path:g.NM.AddAntiSpam,element:React.createElement(s.C5,{replace:!0,to:g.NM.AddAkismet})}),React.createElement(s.qh,{path:g.NM.AddBackup,element:React.createElement(m.xE,null)}),React.createElement(s.qh,{path:g.NM.AddBoost,element:React.createElement(m.yX,null)}),React.createElement(s.qh,{path:g.NM.AddCRM,element:React.createElement(m.X7,null)}),React.createElement(s.qh,{path:g.NM.AddCreator,element:React.createElement(m.B8,null)}),React.createElement(s.qh,{path:g.NM.AddJetpackAI,element:React.createElement(d.A,null)}),React.createElement(s.qh,{path:g.NM.AddExtras,element:React.createElement(m.QX,null)}),React.createElement(s.qh,{path:g.NM.AddProtect,element:React.createElement(m.qT,null)}),React.createElement(s.qh,{path:g.NM.AddScan,element:React.createElement(m.og,null)}),React.createElement(s.qh,{path:g.NM.AddSocial,element:React.createElement(m.C,null)}),React.createElement(s.qh,{path:g.NM.AddSearch,element:React.createElement(m.t7,null)}),React.createElement(s.qh,{path:g.NM.AddVideoPress,element:React.createElement(m.JM,null)}),React.createElement(s.qh,{path:g.NM.AddStats,element:React.createElement(m.Gf,null)}),c&&React.createElement(s.qh,{path:g.NM.AddLicense,element:React.createElement(l.A,null)}),React.createElement(s.qh,{path:g.NM.RedeemToken,element:React.createElement(h.A,null)}),React.createElement(s.qh,{path:"/redeem-token",element:React.createElement(h.A,null)}),React.createElement(s.qh,{path:"/jetpack-ai",element:React.createElement(p.A,null)})))))))};!function(){const e=document.getElementById("my-jetpack-container");null!==e&&(0,c.createRoot)(e).render(React.createElement(k,null))}()})()})(); \ No newline at end of file +_n("%s minute ago","%s minutes ago",Math.floor(r),"jetpack-my-jetpack"),Math.floor(r)):__("a few seconds ago","jetpack-my-jetpack")))))}},6309:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-lock-cef570e11997f185e23d.png"},7139:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-license-activation-with-success-c5c132e713a79e05985f.png"},2822:(e,t,a)=>{"use strict";e.exports=a.p+"images/apple-92dacafad84e79708a74.svg"},8395:(e,t,a)=>{"use strict";e.exports=a.p+"images/connect-c399837fe1621b176d10.png"},5975:(e,t,a)=>{"use strict";e.exports=a.p+"images/github-45c648158e3e86b560f5.svg"},5519:(e,t,a)=>{"use strict";e.exports=a.p+"images/google-dec2a429bf1d8e83f9ad.svg"},6579:(e,t,a)=>{"use strict";e.exports=a.p+"images/wordpress-1fc3e0ba6c52e9707900.svg"},5042:(e,t,a)=>{"use strict";e.exports=a.p+"images/cloud-81ac85ba680343200f54.svg"},3168:(e,t,a)=>{"use strict";e.exports=a.p+"images/empty-avatar-fea23feddfa99b07c2e8.svg"},7757:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-gray-7eeb5eb060c8adea8622.svg"},7319:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-9de1caef5eb5c22da5d6.svg"},4576:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-manage-3a7ecaa604823c98c3cf.svg"},6068:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-inactive-cba3b43d918377b506e5.svg"},850:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-off-47426e7b562ef20ae513.svg"},4538:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-partial-48b279219c6389a129b9.svg"},4516:(e,t,a)=>{"use strict";e.exports=a.p+"images/shield-success-e64a26c3a6d0888fba06.svg"},8769:(e,t,a)=>{"use strict";e.exports=a.p+"images/boost-9e9a227e7e7280d0aa85.png"},5296:(e,t,a)=>{"use strict";e.exports=a.p+"images/crm-8a2b204e2c720730e928.png"},4660:(e,t,a)=>{"use strict";e.exports=a.p+"images/extras-c6bd0796750901faa7fd.png"},9923:(e,t,a)=>{"use strict";e.exports=a.p+"images/jetpack-ai-d29bf65dcea46074d72f.png"},7642:(e,t,a)=>{"use strict";e.exports=a.p+"images/search-d177a31292d96d5ccbc2.png"},15:(e,t,a)=>{"use strict";e.exports=a.p+"images/social-b8744a40c7c19a7bcc37.png"},9409:(e,t,a)=>{"use strict";e.exports=a.p+"images/stats-95b42796ede4f632b642.png"},5044:(e,t,a)=>{"use strict";e.exports=a.p+"images/videopress-9c064bc7b89c386e5e50.png"},5990:e=>{"use strict";e.exports={consumer_slug:"my_jetpack"}},9384:e=>{"use strict";e.exports=window.JetpackConnection},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},1455:e=>{"use strict";e.exports=window.wp.apiFetch},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},7143:e=>{"use strict";e.exports=window.wp.data},8443:e=>{"use strict";e.exports=window.wp.date},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6072:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";a.d(t,{m:()=>r});var n=a(5530),c=a(698),r=new class extends n.Q{#e;#t;#a;constructor(){super(),this.#a=e=>{if(!c.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#a=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{e()}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}}},9101:(e,t,a)=>{"use strict";a.d(t,{PL:()=>c});var n=a(698);function c(e){return{onFetch:(t,a)=>{const c=async()=>{const a=t.options,c=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[],o={pages:[],pageParams:[]};let u=!1;const m=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),d=async(e,a,c)=>{if(u)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);const r={queryKey:t.queryKey,pageParam:a,direction:c?"backward":"forward",meta:t.options.meta};var s;s=r,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",(()=>{u=!0})),t.signal)});const i=await m(r),{maxPages:l}=t.options,o=c?n.ZZ:n.y9;return{pages:o(e.pages,i,l),pageParams:o(e.pageParams,a,l)}};let p;if(c&&i.length){const e="backward"===c,t={pages:i,pageParams:l},n=(e?s:r)(a,t);p=await d(t,n,e)}else{p=await d(o,l[0]??a.initialPageParam);const t=e??i.length;for(let e=1;et.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=c}}}function r(e,{pages:t,pageParams:a}){const n=t.length-1;return e.getNextPageParam(t[n],t,a[n],a)}function s(e,{pages:t,pageParams:a}){return e.getPreviousPageParam?.(t[0],t,a[0],a)}},4352:(e,t,a)=>{"use strict";a.d(t,{$:()=>i,s:()=>s});var n=a(1795),c=a(1450),r=a(4610),s=class extends c.k{#n;#c;#r;#s;constructor(e){super(),this.mutationId=e.mutationId,this.#c=e.defaultOptions,this.#r=e.mutationCache,this.#n=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#n=this.#n.filter((t=>t!==e)),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#n.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>(this.#s=(0,r.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#s.promise),a="pending"===this.state.status;try{if(!a){this.#i({type:"pending",variables:e}),await(this.#r.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#i({type:"pending",context:t,variables:e})}const n=await t();return await(this.#r.config.onSuccess?.(n,e,this.state.context,this)),await(this.options.onSuccess?.(n,e,this.state.context)),await(this.#r.config.onSettled?.(n,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(n,null,e,this.state.context)),this.#i({type:"success",data:n}),n}catch(t){try{throw await(this.#r.config.onError?.(t,e,this.state.context,this)),await(this.options.onError?.(t,e,this.state.context)),await(this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,t,e,this.state.context)),t}finally{this.#i({type:"error",error:t})}}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,r.v_)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),n.j.batch((()=>{this.#n.forEach((t=>{t.onMutationUpdate(e)})),this.#r.notify({mutation:this,type:"updated",action:e})}))}};function i(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},7708:(e,t,a)=>{"use strict";a.d(t,{q:()=>i});var n=a(1795),c=a(4352),r=a(698),s=a(5530),i=class extends s.Q{constructor(e={}){super(),this.config=e,this.#l=[],this.#o=0}#l;#o;#u;build(e,t,a){const n=new c.s({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:a});return this.add(n),n}add(e){this.#l.push(e),this.notify({type:"added",mutation:e})}remove(e){this.#l=this.#l.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){n.j.batch((()=>{this.#l.forEach((e=>{this.remove(e)}))}))}getAll(){return this.#l}find(e){const t={exact:!0,...e};return this.#l.find((e=>(0,r.nJ)(t,e)))}findAll(e={}){return this.#l.filter((t=>(0,r.nJ)(e,t)))}notify(e){n.j.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){return this.#u=(this.#u??Promise.resolve()).then((()=>{const e=this.#l.filter((e=>e.state.isPaused));return n.j.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(r.lQ)))),Promise.resolve())))})).then((()=>{this.#u=void 0})),this.#u}}},4158:(e,t,a)=>{"use strict";a.d(t,{_:()=>i});var n=a(4352),c=a(1795),r=a(5530),s=a(698),i=class extends r.Q{#m;#d=void 0;#p;#h;constructor(e,t){super(),this.#m=e,this.setOptions(t),this.bindMethods(),this.#g()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#m.defaultMutationOptions(e),(0,s.f8)(t,this.options)||this.#m.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#p,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.EN)(t.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#p?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#p?.removeObserver(this)}onMutationUpdate(e){this.#g(),this.#v(e)}getCurrentResult(){return this.#d}reset(){this.#p?.removeObserver(this),this.#p=void 0,this.#g(),this.#v()}mutate(e,t){return this.#h=t,this.#p?.removeObserver(this),this.#p=this.#m.getMutationCache().build(this.#m,this.options),this.#p.addObserver(this),this.#p.execute(e)}#g(){const e=this.#p?.state??(0,n.$)();this.#d={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#v(e){c.j.batch((()=>{if(this.#h&&this.hasListeners()){const t=this.#d.variables,a=this.#d.context;"success"===e?.type?(this.#h.onSuccess?.(e.data,t,a),this.#h.onSettled?.(e.data,null,t,a)):"error"===e?.type&&(this.#h.onError?.(e.error,t,a),this.#h.onSettled?.(void 0,e.error,t,a))}this.listeners.forEach((e=>{e(this.#d)}))}))}}},1795:(e,t,a)=>{"use strict";a.d(t,{j:()=>n});var n=function(){let e=[],t=0,a=e=>{e()},n=e=>{e()},c=e=>setTimeout(e,0);const r=n=>{t?e.push(n):c((()=>{a(n)}))},s=()=>{const t=e;e=[],t.length&&c((()=>{n((()=>{t.forEach((e=>{a(e)}))}))}))};return{batch:e=>{let a;t++;try{a=e()}finally{t--,t||s()}return a},batchCalls:e=>(...t)=>{r((()=>{e(...t)}))},schedule:r,setNotifyFunction:e=>{a=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{c=e}}}()},5873:(e,t,a)=>{"use strict";a.d(t,{t:()=>r});var n=a(5530),c=a(698),r=new class extends n.Q{#f=!0;#t;#a;constructor(){super(),this.#a=e=>{if(!c.S$&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#a=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#f!==e&&(this.#f=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#f}}},4135:(e,t,a)=>{"use strict";a.d(t,{X:()=>i});var n=a(698),c=a(1795),r=a(4610),s=a(1450),i=class extends s.k{#w;#E;#k;#y;#s;#n;#c;#A;constructor(e){super(),this.#A=!1,this.#c=e.defaultOptions,this.#b(e.options),this.#n=[],this.#k=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#w=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,a=void 0!==t,n=a?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#w,this.scheduleGc()}get meta(){return this.options.meta}#b(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#n.length||"idle"!==this.state.fetchStatus||this.#k.remove(this)}setData(e,t){const a=(0,n.pl)(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#y;return this.#s?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#w)}isActive(){return this.#n.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#n.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,n.j3)(this.state.dataUpdatedAt,e)}onFocus(){const e=this.#n.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){const e=this.#n.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.#n.includes(e)||(this.#n.push(e),this.clearGcTimeout(),this.#k.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#n.includes(e)&&(this.#n=this.#n.filter((t=>t!==e)),this.#n.length||(this.#s&&(this.#A?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#k.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#n.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#y)return this.#s?.continueRetry(),this.#y;if(e&&this.#b(e),!this.options.queryFn){const e=this.#n.find((e=>e.options.queryFn));e&&this.#b(e.options)}const a=new AbortController,n={queryKey:this.queryKey,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#A=!0,a.signal)})};c(n);const s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.#A=!1,this.options.persister?this.options.persister(this.options.queryFn,n,this):this.options.queryFn(n)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))};c(s),this.options.behavior?.onFetch(s,this),this.#E=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#i({type:"fetch",meta:s.fetchOptions?.meta});const i=e=>{(0,r.wm)(e)&&e.silent||this.#i({type:"error",error:e}),(0,r.wm)(e)||(this.#k.config.onError?.(e,this),this.#k.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#s=(0,r.II)({fn:s.fetchFn,abort:a.abort.bind(a),onSuccess:e=>{void 0!==e?(this.setData(e),this.#k.config.onSuccess?.(e,this),this.#k.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):i(new Error(`${this.queryHash} data is undefined`))},onError:i,onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode}),this.#y=this.#s.promise,this.#y}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:(0,r.v_)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return(0,r.wm)(a)&&a.revert&&this.#E?{...this.#E,fetchStatus:"idle"}:{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),c.j.batch((()=>{this.#n.forEach((e=>{e.onQueryUpdate()})),this.#k.notify({query:this,type:"updated",action:e})}))}}},3205:(e,t,a)=>{"use strict";a.d(t,{$:()=>i});var n=a(698),c=a(4135),r=a(1795),s=a(5530),i=class extends s.Q{constructor(e={}){super(),this.config=e,this.#j=new Map}#j;build(e,t,a){const r=t.queryKey,s=t.queryHash??(0,n.F$)(r,t);let i=this.get(s);return i||(i=new c.X({cache:this,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#j.has(e.queryHash)||(this.#j.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#j.get(e.queryHash);t&&(e.destroy(),t===e&&this.#j.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){r.j.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#j.get(e)}getAll(){return[...this.#j.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>(0,n.MK)(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,n.MK)(e,t))):t}notify(e){r.j.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){r.j.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){r.j.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}}},116:(e,t,a)=>{"use strict";a.d(t,{E:()=>u});var n=a(698),c=a(3205),r=a(7708),s=a(2464),i=a(5873),l=a(1795),o=a(9101),u=class{#R;#r;#c;#_;#C;#x;#N;#z;constructor(e={}){this.#R=e.queryCache||new c.$,this.#r=e.mutationCache||new r.q,this.#c=e.defaultOptions||{},this.#_=new Map,this.#C=new Map,this.#x=0}mount(){this.#x++,1===this.#x&&(this.#N=s.m.subscribe((()=>{s.m.isFocused()&&(this.resumePausedMutations(),this.#R.onFocus())})),this.#z=i.t.subscribe((()=>{i.t.isOnline()&&(this.resumePausedMutations(),this.#R.onOnline())})))}unmount(){this.#x--,0===this.#x&&(this.#N?.(),this.#N=void 0,this.#z?.(),this.#z=void 0)}isFetching(e){return this.#R.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){return this.#R.find({queryKey:e})?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return void 0!==t?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,a){const c=this.#R.find({queryKey:e}),r=c?.state.data,s=(0,n.Zw)(t,r);if(void 0===s)return;const i=this.defaultQueryOptions({queryKey:e});return this.#R.build(this,i).setData(s,{...a,manual:!0})}setQueriesData(e,t,a){return l.j.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,a)]))))}getQueryState(e){return this.#R.find({queryKey:e})?.state}removeQueries(e){const t=this.#R;l.j.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const a=this.#R,n={type:"active",...e};return l.j.batch((()=>(a.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const a={revert:!0,...t},c=l.j.batch((()=>this.#R.findAll(e).map((e=>e.cancel(a)))));return Promise.all(c).then(n.lQ).catch(n.lQ)}invalidateQueries(e={},t={}){return l.j.batch((()=>{if(this.#R.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const a={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(a,t)}))}refetchQueries(e={},t){const a={...t,cancelRefetch:t?.cancelRefetch??!0},c=l.j.batch((()=>this.#R.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,a);return a.throwOnError||(t=t.catch(n.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(c).then(n.lQ)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const a=this.#R.build(this,t);return a.isStaleByTime(t.staleTime)?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.lQ).catch(n.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,o.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.lQ).catch(n.lQ)}resumePausedMutations(){return this.#r.resumePausedMutations()}getQueryCache(){return this.#R}getMutationCache(){return this.#r}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#_.set((0,n.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#_.values()];let a={};return t.forEach((t=>{(0,n.Cp)(e,t.queryKey)&&(a={...a,...t.defaultOptions})})),a}setMutationDefaults(e,t){this.#C.set((0,n.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#C.values()];let a={};return t.forEach((t=>{(0,n.Cp)(e,t.mutationKey)&&(a={...a,...t.defaultOptions})})),a}defaultQueryOptions(e){if(e?._defaulted)return e;const t={...this.#c.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),void 0===t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#R.clear(),this.#r.clear()}}},3397:(e,t,a)=>{"use strict";a.d(t,{$:()=>l});var n=a(698),c=a(1795),r=a(2464),s=a(5530),i=a(4610),l=class extends s.Q{constructor(e,t){super(),this.options=t,this.#m=e,this.#M=null,this.bindMethods(),this.setOptions(t)}#m;#S=void 0;#L=void 0;#d=void 0;#V;#P;#M;#H;#I;#B;#O;#T;#F;#U=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#S.addObserver(this),o(this.#S,this.options)?this.#D():this.updateResult(),this.#q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#S,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#S,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#J(),this.#G(),this.#S.removeObserver(this)}setOptions(e,t){const a=this.options,c=this.#S;if(this.options=this.#m.defaultQueryOptions(e),(0,n.f8)(a,this.options)||this.#m.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#S,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=a.queryKey),this.#$();const r=this.hasListeners();r&&m(this.#S,c,this.options,a)&&this.#D(),this.updateResult(t),!r||this.#S===c&&this.options.enabled===a.enabled&&this.options.staleTime===a.staleTime||this.#W();const s=this.#Q();!r||this.#S===c&&this.options.enabled===a.enabled&&s===this.#F||this.#K(s)}getOptimisticResult(e){const t=this.#m.getQueryCache().build(this.#m,e),a=this.createResult(t,e);return function(e,t){if(!(0,n.f8)(e.getCurrentResult(),t))return!0;return!1}(this,a)&&(this.#d=a,this.#P=this.options,this.#V=this.#S.state),a}getCurrentResult(){return this.#d}trackResult(e){const t={};return Object.keys(e).forEach((a=>{Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:()=>(this.#U.add(a),e[a])})})),t}getCurrentQuery(){return this.#S}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#m.defaultQueryOptions(e),a=this.#m.getQueryCache().build(this.#m,t);return a.isFetchingOptimistic=!0,a.fetch().then((()=>this.createResult(a,t)))}fetch(e){return this.#D({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#d)))}#D(e){this.#$();let t=this.#S.fetch(this.options,e);return e?.throwOnError||(t=t.catch(n.lQ)),t}#W(){if(this.#J(),n.S$||this.#d.isStale||!(0,n.gn)(this.options.staleTime))return;const e=(0,n.j3)(this.#d.dataUpdatedAt,this.options.staleTime)+1;this.#O=setTimeout((()=>{this.#d.isStale||this.updateResult()}),e)}#Q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#S):this.options.refetchInterval)??!1}#K(e){this.#G(),this.#F=e,!n.S$&&!1!==this.options.enabled&&(0,n.gn)(this.#F)&&0!==this.#F&&(this.#T=setInterval((()=>{(this.options.refetchIntervalInBackground||r.m.isFocused())&&this.#D()}),this.#F))}#q(){this.#W(),this.#K(this.#Q())}#J(){this.#O&&(clearTimeout(this.#O),this.#O=void 0)}#G(){this.#T&&(clearInterval(this.#T),this.#T=void 0)}createResult(e,t){const a=this.#S,c=this.options,r=this.#d,s=this.#V,l=this.#P,u=e!==a?e.state:this.#L,{state:p}=e;let h,{error:g,errorUpdatedAt:v,fetchStatus:f,status:w}=p,E=!1;if(t._optimisticResults){const n=this.hasListeners(),r=!n&&o(e,t),s=n&&m(e,a,t,c);(r||s)&&(f=(0,i.v_)(e.options.networkMode)?"fetching":"paused",p.dataUpdatedAt||(w="pending")),"isRestoring"===t._optimisticResults&&(f="idle")}if(t.select&&void 0!==p.data)if(r&&p.data===s?.data&&t.select===this.#H)h=this.#I;else try{this.#H=t.select,h=t.select(p.data),h=(0,n.pl)(r?.data,h,t),this.#I=h,this.#M=null}catch(e){this.#M=e}else h=p.data;if(void 0!==t.placeholderData&&void 0===h&&"pending"===w){let e;if(r?.isPlaceholderData&&t.placeholderData===l?.placeholderData)e=r.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#B?.state.data,this.#B):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#M=null}catch(e){this.#M=e}void 0!==e&&(w="success",h=(0,n.pl)(r?.data,e,t),E=!0)}this.#M&&(g=this.#M,h=this.#I,v=Date.now(),w="error");const k="fetching"===f,y="pending"===w,A="error"===w,b=y&&k;return{status:w,fetchStatus:f,isPending:y,isSuccess:"success"===w,isError:A,isInitialLoading:b,isLoading:b,data:h,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:k,isRefetching:k&&!y,isLoadingError:A&&0===p.dataUpdatedAt,isPaused:"paused"===f,isPlaceholderData:E,isRefetchError:A&&0!==p.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch}}updateResult(e){const t=this.#d,a=this.createResult(this.#S,this.options);if(this.#V=this.#S.state,this.#P=this.options,void 0!==this.#V.data&&(this.#B=this.#S),(0,n.f8)(a,t))return;this.#d=a;const c={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,a="function"==typeof e?e():e;if("all"===a||!a&&!this.#U.size)return!0;const n=new Set(a??this.#U);return this.options.throwOnError&&n.add("error"),Object.keys(this.#d).some((e=>{const a=e;return this.#d[a]!==t[a]&&n.has(a)}))})()&&(c.listeners=!0),this.#v({...c,...e})}#$(){const e=this.#m.getQueryCache().build(this.#m,this.options);if(e===this.#S)return;const t=this.#S;this.#S=e,this.#L=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#q()}#v(e){c.j.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#d)})),this.#m.getQueryCache().notify({query:this.#S,type:"observerResultsUpdated"})}))}};function o(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,a){if(!1!==t.enabled){const n="function"==typeof a?a(e):a;return"always"===n||!1!==n&&d(e,t)}return!1}function m(e,t,a,n){return!1!==a.enabled&&(e!==t||!1===n.enabled)&&(!a.suspense||"error"!==e.state.status)&&d(e,a)}function d(e,t){return e.isStaleByTime(t.staleTime)}},1450:(e,t,a)=>{"use strict";a.d(t,{k:()=>c});var n=a(698),c=class{#Z;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.gcTime)&&(this.#Z=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.S$?1/0:3e5))}clearGcTimeout(){this.#Z&&(clearTimeout(this.#Z),this.#Z=void 0)}}},4610:(e,t,a)=>{"use strict";a.d(t,{II:()=>u,v_:()=>i,wm:()=>o});var n=a(2464),c=a(5873),r=a(698);function s(e){return Math.min(1e3*2**e,3e4)}function i(e){return"online"!==(e??"online")||c.t.isOnline()}var l=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function o(e){return e instanceof l}function u(e){let t,a,o,u=!1,m=0,d=!1;const p=new Promise(((e,t)=>{a=e,o=t})),h=()=>!n.m.isFocused()||"always"!==e.networkMode&&!c.t.isOnline(),g=n=>{d||(d=!0,e.onSuccess?.(n),t?.(),a(n))},v=a=>{d||(d=!0,e.onError?.(a),t?.(),o(a))},f=()=>new Promise((a=>{t=e=>{const t=d||!h();return t&&a(e),t},e.onPause?.()})).then((()=>{t=void 0,d||e.onContinue?.()})),w=()=>{if(d)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch((t=>{if(d)return;const a=e.retry??(r.S$?0:3),n=e.retryDelay??s,c="function"==typeof n?n(m,t):n,i=!0===a||"number"==typeof a&&m{if(h())return f()})).then((()=>{u?v(t):w()}))):v(t)}))};return i(e.networkMode)?w():f().then(w),{promise:p,cancel:t=>{d||(v(new l(t)),e.abort?.())},continue:()=>{const e=t?.();return e?p:Promise.resolve()},cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},5530:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},698:(e,t,a)=>{"use strict";a.d(t,{Cp:()=>d,EN:()=>m,F$:()=>u,MK:()=>l,S$:()=>n,ZZ:()=>y,Zw:()=>r,f8:()=>h,gn:()=>s,j3:()=>i,lQ:()=>c,nJ:()=>o,pl:()=>E,y9:()=>k,yy:()=>w});var n="undefined"==typeof window||"Deno"in window;function c(){}function r(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function i(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){const{type:a="all",exact:n,fetchStatus:c,predicate:r,queryKey:s,stale:i}=e;if(s)if(n){if(t.queryHash!==u(s,t.options))return!1}else if(!d(t.queryKey,s))return!1;if("all"!==a){const e=t.isActive();if("active"===a&&!e)return!1;if("inactive"===a&&e)return!1}return("boolean"!=typeof i||t.isStale()===i)&&((void 0===c||c===t.state.fetchStatus)&&!(r&&!r(t)))}function o(e,t){const{exact:a,status:n,predicate:c,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(a){if(m(t.options.mutationKey)!==m(r))return!1}else if(!d(t.options.mutationKey,r))return!1}return(!n||t.state.status===n)&&!(c&&!c(t))}function u(e,t){return(t?.queryKeyHashFn||m)(e)}function m(e){return JSON.stringify(e,((e,t)=>v(t)?Object.keys(t).sort().reduce(((e,a)=>(e[a]=t[a],e)),{}):t))}function d(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((a=>!d(e[a],t[a]))))}function p(e,t){if(e===t)return e;const a=g(e)&&g(t);if(a||v(e)&&v(t)){const n=a?e:Object.keys(e),c=n.length,r=a?t:Object.keys(t),s=r.length,i=a?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)}))}function E(e,t,a){return"function"==typeof a.structuralSharing?a.structuralSharing(e,t):!1!==a.structuralSharing?p(e,t):t}function k(e,t,a=0){const n=[...e,t];return a&&n.length>a?n.slice(1):n}function y(e,t,a=0){const n=[t,...e];return a&&n.length>a?n.slice(0,-1):n}},7115:(e,t,a)=>{"use strict";a.d(t,{Ht:()=>i,jE:()=>s});var n=a(1609),c=a(790),r=n.createContext(void 0),s=e=>{const t=n.useContext(r);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i=({client:e,children:t})=>(n.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]),(0,c.jsx)(r.Provider,{value:e,children:t}))},9690:(e,t,a)=>{"use strict";a.d(t,{h:()=>s});var n=a(1609);a(790);function c(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var r=n.createContext(c()),s=()=>n.useContext(r)},4804:(e,t,a)=>{"use strict";a.d(t,{$1:()=>i,LJ:()=>r,wZ:()=>s});var n=a(1609),c=a(5492),r=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},s=e=>{n.useEffect((()=>{e.clearReset()}),[e])},i=({result:e,errorResetBoundary:t,throwOnError:a,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(0,c.G)(a,[e.error,n])},4796:(e,t,a)=>{"use strict";a.d(t,{w:()=>r});var n=a(1609),c=n.createContext(!1),r=()=>n.useContext(c);c.Provider},937:(e,t,a)=>{"use strict";a.d(t,{EU:()=>c,iL:()=>r,tu:()=>n});var n=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},c=(e,t)=>e?.suspense&&t.isPending,r=(e,t,a)=>t.fetchOptimistic(e).catch((()=>{a.clearReset()}))},4611:(e,t,a)=>{"use strict";a.d(t,{t:()=>u});var n=a(1609),c=a(1795),r=a(9690),s=a(7115),i=a(4796),l=a(4804),o=a(937);function u(e,t,a){const u=(0,s.jE)(a),m=(0,i.w)(),d=(0,r.h)(),p=u.defaultQueryOptions(e);p._optimisticResults=m?"isRestoring":"optimistic",(0,o.tu)(p),(0,l.LJ)(p,d),(0,l.wZ)(d);const[h]=n.useState((()=>new t(u,p))),g=h.getOptimisticResult(p);if(n.useSyncExternalStore(n.useCallback((e=>{const t=m?()=>{}:h.subscribe(c.j.batchCalls(e));return h.updateResult(),t}),[h,m]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),n.useEffect((()=>{h.setOptions(p,{listeners:!1})}),[p,h]),(0,o.EU)(p,g))throw(0,o.iL)(p,h,d);if((0,l.$1)({result:g,errorResetBoundary:d,throwOnError:p.throwOnError,query:u.getQueryCache().get(p.queryHash)}))throw g.error;return p.notifyOnChangeProps?g:h.trackResult(g)}},4613:(e,t,a)=>{"use strict";a.d(t,{n:()=>l});var n=a(1609),c=a(4158),r=a(1795),s=a(7115),i=a(5492);function l(e,t){const a=(0,s.jE)(t),[l]=n.useState((()=>new c._(a,e)));n.useEffect((()=>{l.setOptions(e)}),[l,e]);const u=n.useSyncExternalStore(n.useCallback((e=>l.subscribe(r.j.batchCalls(e))),[l]),(()=>l.getCurrentResult()),(()=>l.getCurrentResult())),m=n.useCallback(((e,t)=>{l.mutate(e,t).catch(o)}),[l]);if(u.error&&(0,i.G)(l.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:m,mutateAsync:u.mutate}}function o(){}},5104:(e,t,a)=>{"use strict";a.d(t,{I:()=>r});var n=a(3397),c=a(4611);function r(e,t){return(0,c.t)(e,n.$,t)}},5492:(e,t,a)=>{"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}a.d(t,{G:()=>n})},3022:(e,t,a)=>{"use strict";function n(e){var t,a,c="";if("string"==typeof e||"number"==typeof e)c+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;tc});const c=function(){for(var e,t,a=0,c="",r=arguments.length;a{"use strict";a.d(t,{A:()=>u});var n=a(3924),c=a(6087),r=a(7723),s=a(8120),i=a(1609),l=a(1183);const __=r.__,o=e=>{const{productId:t,siteRawUrl:a}=e,r=`https://cloud.jetpack.com/landing/${a}`,s=(0,l.p)(t),o={jetpack_anti_spam:{title:__("Jetpack Anti-spam is active!","jetpack-my-jetpack"),text:__("We'll take care of everything from here. Now you can enjoy a spam-free site!","jetpack-my-jetpack")},jetpack_backup:{title:__("Jetpack Backup is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups and restore your site on cloud.jetpack.com. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_complete:{title:__("Jetpack Complete is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on cloud.jetpack.com. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_scan:{title:__("Jetpack Scan is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your security scans on cloud.jetpack.com.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_search:{title:__("Jetpack Search is active!","jetpack-my-jetpack"),text:__("Next, we'll help you customize the Search experience for your visitors.","jetpack-my-jetpack")},jetpack_security:{title:__("Jetpack Security is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on cloud.jetpack.com. If you ever lose access to your site, you can restore it there.","jetpack-my-jetpack"),{a:i.createElement("a",{href:r})})},jetpack_videopress:{title:__("Jetpack VideoPress is active!","jetpack-my-jetpack"),text:__("Experience high-quality, ad-free video built specifically for WordPress.","jetpack-my-jetpack")},jetpack_social_advanced:{title:__("Jetpack Social Advanced is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("Create amazing link previews for your posts using Social Image Generator. Learn more here.

Learn how to make the most out of Jetpack Social here.

","jetpack-my-jetpack"),{a:i.createElement("a",{href:(0,n.A)("jetpack-social-sig-support-page"),target:"_blank",rel:"noreferrer"}),br:i.createElement("br",null),link:i.createElement("a",{href:(0,n.A)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},jetpack_social_basic:{title:__("Jetpack Social Basic is active!","jetpack-my-jetpack"),text:(0,c.createInterpolateElement)(__("Enjoy unlimited shares with Jetpack Social Basic. Learn how to make the most out of Jetpack Social here.","jetpack-my-jetpack"),{a:i.createElement("a",{href:(0,n.A)("social-plugin-publicize-support-admin-page"),target:"_blank",rel:"noreferrer"})})},default:{title:__("Your product is active!","jetpack-my-jetpack"),text:__("You're all set!","jetpack-my-jetpack")}};return i.createElement("div",{className:"jp-license-activation-screen-success-info--product-details"},i.createElement("h1",null,o[s].title," ",String.fromCodePoint(127881)),i.createElement("p",null,o[s].text))};o.propTypes={dashboardUrl:s.string,productId:s.number};const u=o},1183:(e,t,a)=>{"use strict";a.d(t,{p:()=>c});const n={jetpack_anti_spam:[2110,2111],jetpack_backup:[2100,2101,2102,2103,2112,2113,2114,2115],jetpack_complete:[2014,2015],jetpack_scan:[2106,2107,2108,2109],jetpack_search:[2104,2105],jetpack_security:[2010,2011,2012,2013,2016,2017,2019,2020],jetpack_videopress:[2116,2117],jetpack_social_advanced:[2602,2603,2604],jetpack_social_basic:[2503,2504,2037]};function c(e){return Object.keys(n).find((t=>n[t].includes(e)))||"default"}},3010:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(1455),c=a(6087);const r=async()=>(await n({path:"wp/v2/plugins"})).filter((e=>"active"===e.status));function s(){const[e,t]=(0,c.useState)([]),[a,n]=(0,c.useState)(!0),s=(0,c.useCallback)((async()=>{try{const e=await r();t(e)}catch{t([])}finally{n(!1)}}),[]);return(0,c.useEffect)((()=>{s()}),[s]),[e,a]}}},t={};function a(n){var c=t[n];if(void 0!==c)return c.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var c=n.length-1;c>-1&&(!e||!/^http(s?):/.test(e));)e=n[c--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{"use strict";var e=a(723),t=a(116),n=a(7115),c=a(6087),r=a(1609),s=a(9539),i=a(28),l=a(8848),o=a(1499),u=a(2912),m=a(6092),d=a(3418),p=a(8823),h=a(7265),g=a(8837),v=a(6007),f=a(6077),w=a(8242);a(4118);function E(){const e=(0,s.zy)();return(0,r.useEffect)((()=>window.scrollTo(0,0)),[e]),null}const k=()=>{const a=new t.E,{loadAddLicenseScreen:c}=(0,w.A$)();return React.createElement(e.Ay,null,React.createElement(v.A,null,React.createElement(f.A,null,React.createElement(n.Ht,{client:a},React.createElement(i.I9,null,React.createElement(E,null),React.createElement(s.BV,null,React.createElement(s.qh,{path:g.NM.Home,element:React.createElement(u.A,null)}),React.createElement(s.qh,{path:g.NM.Connection,element:React.createElement(o.A,null)}),React.createElement(s.qh,{path:g.NM.AddAkismet,element:React.createElement(m.wU,null)}),React.createElement(s.qh,{path:g.NM.AddAntiSpam,element:React.createElement(s.C5,{replace:!0,to:g.NM.AddAkismet})}),React.createElement(s.qh,{path:g.NM.AddBackup,element:React.createElement(m.xE,null)}),React.createElement(s.qh,{path:g.NM.AddBoost,element:React.createElement(m.yX,null)}),React.createElement(s.qh,{path:g.NM.AddCRM,element:React.createElement(m.X7,null)}),React.createElement(s.qh,{path:g.NM.AddJetpackAI,element:React.createElement(d.A,null)}),React.createElement(s.qh,{path:g.NM.AddExtras,element:React.createElement(m.QX,null)}),React.createElement(s.qh,{path:g.NM.AddProtect,element:React.createElement(m.qT,null)}),React.createElement(s.qh,{path:g.NM.AddScan,element:React.createElement(m.og,null)}),React.createElement(s.qh,{path:g.NM.AddSocial,element:React.createElement(m.C,null)}),React.createElement(s.qh,{path:g.NM.AddSearch,element:React.createElement(m.t7,null)}),React.createElement(s.qh,{path:g.NM.AddVideoPress,element:React.createElement(m.JM,null)}),React.createElement(s.qh,{path:g.NM.AddStats,element:React.createElement(m.Gf,null)}),c&&React.createElement(s.qh,{path:g.NM.AddLicense,element:React.createElement(l.A,null)}),React.createElement(s.qh,{path:g.NM.RedeemToken,element:React.createElement(h.A,null)}),React.createElement(s.qh,{path:"/redeem-token",element:React.createElement(h.A,null)}),React.createElement(s.qh,{path:"/jetpack-ai",element:React.createElement(p.A,null)})))))))};!function(){const e=document.getElementById("my-jetpack-container");null!==e&&(0,c.createRoot)(e).render(React.createElement(k,null))}()})()})(); \ No newline at end of file diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php index 80913a97..317eeaf3 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php @@ -156,6 +156,7 @@ public static function has_paid_plan_for_product() { 'jetpack_business', 'jetpack_premium', 'jetpack_personal', + 'jetpack_growth', ); // For atomic sites, do a feature check to see if the republicize feature is available // This feature is available by default on all Jetpack sites diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php index 6f1118cf..fa9aaf61 100644 --- a/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php +++ b/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php @@ -194,7 +194,10 @@ public static function is_upgradable() { if ( ! is_wp_error( $purchases_data ) && is_array( $purchases_data ) && ! empty( $purchases_data ) ) { foreach ( $purchases_data as $purchase ) { // Jetpack complete includes Stats commercial & cannot be upgraded - if ( str_starts_with( $purchase->product_slug, 'jetpack_complete' ) ) { + if ( + str_starts_with( $purchase->product_slug, 'jetpack_complete' ) || + str_starts_with( $purchase->product_slug, 'jetpack_growth' ) + ) { return false; } elseif ( // Stats commercial purchased with highest tier cannot be upgraded. @@ -229,7 +232,11 @@ public static function has_paid_plan_for_product() { if ( is_array( $purchases_data ) && ! empty( $purchases_data ) ) { foreach ( $purchases_data as $purchase ) { // Stats is available as standalone product and as part of the Complete plan. - if ( strpos( $purchase->product_slug, 'jetpack_stats' ) !== false || str_starts_with( $purchase->product_slug, 'jetpack_complete' ) ) { + if ( + strpos( $purchase->product_slug, 'jetpack_stats' ) !== false || + str_starts_with( $purchase->product_slug, 'jetpack_complete' ) || + str_starts_with( $purchase->product_slug, 'jetpack_growth' ) + ) { return true; } } diff --git a/jetpack_vendor/i18n-map.php b/jetpack_vendor/i18n-map.php index 96825a80..f97aac16 100644 --- a/jetpack_vendor/i18n-map.php +++ b/jetpack_vendor/i18n-map.php @@ -46,7 +46,7 @@ ), 'jetpack-my-jetpack' => array( 'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack', - 'ver' => '5.0.2-alpha1731961756', + 'ver' => '5.0.2-alpha1732045171', ), 'jetpack-password-checker' => array( 'path' => 'jetpack_vendor/automattic/jetpack-password-checker', diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index db419917..0d2bac78 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": "7830793f1318a6a6dc6006b8d25e90f1e02c150d" + "reference": "df932d01e5402de88a7af298476c10be393b7e17" }, "require": { "php": ">=7.2" @@ -63,7 +63,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui", - "reference": "887ddd7285c6c98d012a1fe2ed76c8898720c860" + "reference": "a8a8ea7b2e5dd471900c144758653fa218b7dfc2" }, "require": { "php": ">=7.2" @@ -131,7 +131,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-assets", - "reference": "005152ba43588c8839ae83c990263a0e24b2e845" + "reference": "21ac44ef7b2ca61902aa36e12c8987076ee4051c" }, "require": { "automattic/jetpack-constants": "^3.0.0", @@ -203,7 +203,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-autoloader", - "reference": "c1d722a198fda7ca0f2175033a1f1db09329f9c0" + "reference": "f13d5e7c4f45c993945043d9b7502e36d40f8db0" }, "require": { "composer-plugin-api": "^1.1 || ^2.0", @@ -274,7 +274,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-core", - "reference": "01b7798fcbe71ac996285d5307f899b0e28372a3" + "reference": "87bb3dee78e83ce6f81db9bbaff1988024616202" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", @@ -345,7 +345,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score", - "reference": "cf52ea9ed82f9d130c8259c29cc4f1833b8963fd" + "reference": "55ac737da7cb1eaddab3d48f606b95da00d9c80d" }, "require": { "automattic/jetpack-boost-core": "^0.3.0", @@ -424,7 +424,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin", - "reference": "c3f706ce0e5950ce92f57866033c512ebab334c3" + "reference": "035087df97eb7f9f5175d714afbe080835fb6beb" }, "require": { "composer-plugin-api": "^2.1.0", @@ -487,7 +487,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-config", - "reference": "03777ea848f0ab19e1c7cf4e84ef0b5a849c6582" + "reference": "b3e236240ef255107e0af9d3a538a9a4e0f37602" }, "require": { "php": ">=7.2" @@ -562,7 +562,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-connection", - "reference": "23c0d62ad7dfd108b57e8f2608cc5371881de0bd" + "reference": "35eb104c20db098fedf53a170ef056f5e294ca86" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -655,7 +655,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-constants", - "reference": "fb5ac92d38784c587b4e33f6c6b30dad10d672f2" + "reference": "97e10bc612989aa5adbd57a88f66e8f606bcfbfc" }, "require": { "php": ">=7.2" @@ -712,7 +712,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-device-detection", - "reference": "4d7ce6a6b4a8ee5b66e4407f0a29df8a09381bd5" + "reference": "67494a72e035273d17302c81e8a2835d38251be1" }, "require": { "php": ">=7.2" @@ -768,7 +768,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-explat", - "reference": "47d76f2a1941b4ff317ba4dfd89398c82cac85fc" + "reference": "9d829040ef707faba089e0a8e2d30c3a5fc7e630" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", @@ -846,7 +846,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-ip", - "reference": "38320a253f423b9e1082939d27500b7570dafc73" + "reference": "5d9ba7162740fa949dc3a033b8bc6bbdf8c4b39e" }, "require": { "php": ">=7.2" @@ -907,7 +907,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-jitm", - "reference": "3b7e14aa5e9d637c69ac3e01685662efc54ea323" + "reference": "818b01c5bb553e383262de0dfab222c1043bacc7" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -985,7 +985,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-licensing", - "reference": "03e848a5c18e647fd3ea61fcbd240d5e0a130904" + "reference": "2b571ac61067850e0e0e95713e396ab635066d41" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", @@ -1050,7 +1050,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-logo", - "reference": "ff40d53f277a4fabed7ad9f6bbde379bd18fb0ac" + "reference": "46cf4b6e4551fb8281b640ea861b6af71a65defb" }, "require": { "php": ">=7.2" @@ -1101,12 +1101,12 @@ }, { "name": "automattic/jetpack-my-jetpack", - "version": "5.0.2-alpha.1731961756", - "version_normalized": "5.0.2.0-alpha1731961756", + "version": "5.0.2-alpha.1732045171", + "version_normalized": "5.0.2.0-alpha1732045171", "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack", - "reference": "5971c23dfe1818ca50f7d52e7e9542722e3b14ee" + "reference": "f850325183632afa00dfb00d0b1b5eaa26293dc3" }, "require": { "automattic/jetpack-admin-ui": "^0.5.0", @@ -1211,7 +1211,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-password-checker", - "reference": "05a265990f8239a4a8608d8c7b143aafef0aee0e" + "reference": "3f980d2bedbf9edeaf527c3de0cd96c52c7aa7da" }, "require": { "php": ">=7.2" @@ -1275,7 +1275,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plans", - "reference": "82f1513fc0d759ccee21de6bfb81e9ba66ace9ce" + "reference": "cba5b6aa106fbbd97b43fc5945d81b671777bf1c" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", @@ -1346,7 +1346,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer", - "reference": "de1c37658ee0964190b834ff22d4dbdae343db16" + "reference": "074f49bdd41b0a522fd40f05c5bf586d4bab5e71" }, "require": { "automattic/jetpack-a8c-mc-stats": "^3.0.0", @@ -1405,7 +1405,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-models", - "reference": "76a679d36adcd2b947a4819a2b60f92ce31725a1" + "reference": "2b87dbf2c4240b898ecdb0790281f125e2042ac4" }, "require": { "php": ">=7.2" @@ -1478,7 +1478,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-protect-status", - "reference": "1956d27a4ffc764a3ed3d4f1dce981d960acf84b" + "reference": "a67c0b8ca62a68e9de51c3501c51903082b8630e" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", @@ -1556,7 +1556,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-redirect", - "reference": "84fcb243c808187ba79d1bf7ac679489b1fb8996" + "reference": "1e9a0a9a517820700d2ae3cb53b6d64d2783183c" }, "require": { "automattic/jetpack-status": "^5.0.1-alpha", @@ -1614,7 +1614,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-roles", - "reference": "deb8a4ba38174e2c0b860b69f94dd51a800c89a9" + "reference": "a052cc9ea5b2da1325048d0bc82b028a48ae34f2" }, "require": { "php": ">=7.2" @@ -1671,7 +1671,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-search", - "reference": "00100a880e6163ae627b21ee7f4d18e06df60999" + "reference": "f61eb2dbdfa8507c420ccc5fac6f97624e78fc0d" }, "require": { "automattic/jetpack-assets": "^4.0.0-alpha", @@ -1762,7 +1762,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-stats", - "reference": "626a5c8793bc2e12ab83679aa4b88d40a7309da1" + "reference": "07ff56dff0e25bbde64c1e5ced3e75f07b1ca8be" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", @@ -1832,7 +1832,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-status", - "reference": "053b22be90640507aa1cc3d7d6e877d5acf982c6" + "reference": "718c762bbed67e2866e4589e146bd536d4427244" }, "require": { "automattic/jetpack-constants": "^3.0.0", @@ -1899,7 +1899,7 @@ "dist": { "type": "path", "url": "/tmp/jetpack-build/Automattic/jetpack-sync", - "reference": "04489fee95e3ea45348426c04ca3071fa83fbe18" + "reference": "7ee1d82531ec6d8ab6e111d5e475bbb40425ca5f" }, "require": { "automattic/jetpack-connection": "^6.1.0-alpha", diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 8c793154..a3024dc0 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -13,7 +13,7 @@ 'automattic/jetpack-a8c-mc-stats' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '7830793f1318a6a6dc6006b8d25e90f1e02c150d', + 'reference' => 'df932d01e5402de88a7af298476c10be393b7e17', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-a8c-mc-stats', 'aliases' => array(), @@ -22,7 +22,7 @@ 'automattic/jetpack-admin-ui' => array( 'pretty_version' => '0.5.0', 'version' => '0.5.0.0', - 'reference' => '887ddd7285c6c98d012a1fe2ed76c8898720c860', + 'reference' => 'a8a8ea7b2e5dd471900c144758653fa218b7dfc2', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-admin-ui', 'aliases' => array(), @@ -31,7 +31,7 @@ 'automattic/jetpack-assets' => array( 'pretty_version' => '4.0.0-alpha.1731948564', 'version' => '4.0.0.0-alpha1731948564', - 'reference' => '005152ba43588c8839ae83c990263a0e24b2e845', + 'reference' => '21ac44ef7b2ca61902aa36e12c8987076ee4051c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets', 'aliases' => array(), @@ -40,7 +40,7 @@ 'automattic/jetpack-autoloader' => array( 'pretty_version' => '5.0.0-alpha.1731948564', 'version' => '5.0.0.0-alpha1731948564', - 'reference' => 'c1d722a198fda7ca0f2175033a1f1db09329f9c0', + 'reference' => 'f13d5e7c4f45c993945043d9b7502e36d40f8db0', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-autoloader', 'aliases' => array(), @@ -49,7 +49,7 @@ 'automattic/jetpack-boost-core' => array( 'pretty_version' => '0.3.0', 'version' => '0.3.0.0', - 'reference' => '01b7798fcbe71ac996285d5307f899b0e28372a3', + 'reference' => '87bb3dee78e83ce6f81db9bbaff1988024616202', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-core', 'aliases' => array(), @@ -58,7 +58,7 @@ 'automattic/jetpack-boost-speed-score' => array( 'pretty_version' => '0.4.0', 'version' => '0.4.0.0', - 'reference' => 'cf52ea9ed82f9d130c8259c29cc4f1833b8963fd', + 'reference' => '55ac737da7cb1eaddab3d48f606b95da00d9c80d', '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' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => 'c3f706ce0e5950ce92f57866033c512ebab334c3', + 'reference' => '035087df97eb7f9f5175d714afbe080835fb6beb', 'type' => 'composer-plugin', 'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin', 'aliases' => array(), @@ -76,7 +76,7 @@ 'automattic/jetpack-config' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '03777ea848f0ab19e1c7cf4e84ef0b5a849c6582', + 'reference' => 'b3e236240ef255107e0af9d3a538a9a4e0f37602', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config', 'aliases' => array(), @@ -85,7 +85,7 @@ 'automattic/jetpack-connection' => array( 'pretty_version' => '6.1.0-alpha.1732030233', 'version' => '6.1.0.0-alpha1732030233', - 'reference' => '23c0d62ad7dfd108b57e8f2608cc5371881de0bd', + 'reference' => '35eb104c20db098fedf53a170ef056f5e294ca86', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection', 'aliases' => array(), @@ -94,7 +94,7 @@ 'automattic/jetpack-constants' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => 'fb5ac92d38784c587b4e33f6c6b30dad10d672f2', + 'reference' => '97e10bc612989aa5adbd57a88f66e8f606bcfbfc', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants', 'aliases' => array(), @@ -103,7 +103,7 @@ 'automattic/jetpack-device-detection' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '4d7ce6a6b4a8ee5b66e4407f0a29df8a09381bd5', + 'reference' => '67494a72e035273d17302c81e8a2835d38251be1', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-device-detection', 'aliases' => array(), @@ -112,7 +112,7 @@ 'automattic/jetpack-explat' => array( 'pretty_version' => '0.2.1-alpha.1731956635', 'version' => '0.2.1.0-alpha1731956635', - 'reference' => '47d76f2a1941b4ff317ba4dfd89398c82cac85fc', + 'reference' => '9d829040ef707faba089e0a8e2d30c3a5fc7e630', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat', 'aliases' => array(), @@ -121,7 +121,7 @@ 'automattic/jetpack-ip' => array( 'pretty_version' => '0.4.0', 'version' => '0.4.0.0', - 'reference' => '38320a253f423b9e1082939d27500b7570dafc73', + 'reference' => '5d9ba7162740fa949dc3a033b8bc6bbdf8c4b39e', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip', 'aliases' => array(), @@ -130,7 +130,7 @@ 'automattic/jetpack-jitm' => array( 'pretty_version' => '4.0.0', 'version' => '4.0.0.0', - 'reference' => '3b7e14aa5e9d637c69ac3e01685662efc54ea323', + 'reference' => '818b01c5bb553e383262de0dfab222c1043bacc7', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm', 'aliases' => array(), @@ -139,7 +139,7 @@ 'automattic/jetpack-licensing' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '03e848a5c18e647fd3ea61fcbd240d5e0a130904', + 'reference' => '2b571ac61067850e0e0e95713e396ab635066d41', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing', 'aliases' => array(), @@ -148,16 +148,16 @@ 'automattic/jetpack-logo' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => 'ff40d53f277a4fabed7ad9f6bbde379bd18fb0ac', + 'reference' => '46cf4b6e4551fb8281b640ea861b6af71a65defb', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo', 'aliases' => array(), 'dev_requirement' => false, ), 'automattic/jetpack-my-jetpack' => array( - 'pretty_version' => '5.0.2-alpha.1731961756', - 'version' => '5.0.2.0-alpha1731961756', - 'reference' => '5971c23dfe1818ca50f7d52e7e9542722e3b14ee', + 'pretty_version' => '5.0.2-alpha.1732045171', + 'version' => '5.0.2.0-alpha1732045171', + 'reference' => 'f850325183632afa00dfb00d0b1b5eaa26293dc3', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-my-jetpack', 'aliases' => array(), @@ -166,7 +166,7 @@ 'automattic/jetpack-password-checker' => array( 'pretty_version' => '0.4.0', 'version' => '0.4.0.0', - 'reference' => '05a265990f8239a4a8608d8c7b143aafef0aee0e', + 'reference' => '3f980d2bedbf9edeaf527c3de0cd96c52c7aa7da', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-password-checker', 'aliases' => array(), @@ -175,7 +175,7 @@ 'automattic/jetpack-plans' => array( 'pretty_version' => '0.5.0', 'version' => '0.5.0.0', - 'reference' => '82f1513fc0d759ccee21de6bfb81e9ba66ace9ce', + 'reference' => 'cba5b6aa106fbbd97b43fc5945d81b671777bf1c', 'type' => 'library', 'install_path' => __DIR__ . '/../automattic/jetpack-plans', 'aliases' => array(), @@ -184,7 +184,7 @@ 'automattic/jetpack-plugins-installer' => array( 'pretty_version' => '0.5.0', 'version' => '0.5.0.0', - 'reference' => 'de1c37658ee0964190b834ff22d4dbdae343db16', + 'reference' => '074f49bdd41b0a522fd40f05c5bf586d4bab5e71', '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.4.0', 'version' => '0.4.0.0', - 'reference' => '76a679d36adcd2b947a4819a2b60f92ce31725a1', + 'reference' => '2b87dbf2c4240b898ecdb0790281f125e2042ac4', '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.3.0', 'version' => '0.3.0.0', - 'reference' => '1956d27a4ffc764a3ed3d4f1dce981d960acf84b', + 'reference' => 'a67c0b8ca62a68e9de51c3501c51903082b8630e', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status', 'aliases' => array(), @@ -211,7 +211,7 @@ 'automattic/jetpack-redirect' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => '84fcb243c808187ba79d1bf7ac679489b1fb8996', + 'reference' => '1e9a0a9a517820700d2ae3cb53b6d64d2783183c', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect', 'aliases' => array(), @@ -220,7 +220,7 @@ 'automattic/jetpack-roles' => array( 'pretty_version' => '3.0.0', 'version' => '3.0.0.0', - 'reference' => 'deb8a4ba38174e2c0b860b69f94dd51a800c89a9', + 'reference' => 'a052cc9ea5b2da1325048d0bc82b028a48ae34f2', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles', 'aliases' => array(), @@ -229,7 +229,7 @@ 'automattic/jetpack-search' => array( 'pretty_version' => '0.47.0', 'version' => '0.47.0.0', - 'reference' => '00100a880e6163ae627b21ee7f4d18e06df60999', + 'reference' => 'f61eb2dbdfa8507c420ccc5fac6f97624e78fc0d', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-search', 'aliases' => array(), @@ -247,7 +247,7 @@ 'automattic/jetpack-stats' => array( 'pretty_version' => '0.14.0', 'version' => '0.14.0.0', - 'reference' => '626a5c8793bc2e12ab83679aa4b88d40a7309da1', + 'reference' => '07ff56dff0e25bbde64c1e5ced3e75f07b1ca8be', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-stats', 'aliases' => array(), @@ -256,7 +256,7 @@ 'automattic/jetpack-status' => array( 'pretty_version' => '5.0.1-alpha.1731948564', 'version' => '5.0.1.0-alpha1731948564', - 'reference' => '053b22be90640507aa1cc3d7d6e877d5acf982c6', + 'reference' => '718c762bbed67e2866e4589e146bd536d4427244', 'type' => 'jetpack-library', 'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status', 'aliases' => array(), @@ -265,7 +265,7 @@ 'automattic/jetpack-sync' => array( 'pretty_version' => '4.0.0', 'version' => '4.0.0.0', - 'reference' => '04489fee95e3ea45348426c04ca3071fa83fbe18', + 'reference' => '7ee1d82531ec6d8ab6e111d5e475bbb40425ca5f', '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 88f3b3a4..b7c3c82f 100644 --- a/vendor/composer/jetpack_autoload_classmap.php +++ b/vendor/composer/jetpack_autoload_classmap.php @@ -339,123 +339,123 @@ 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-status/src/class-modules.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Activitylog' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-activitylog.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Hybrid_Product' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Initializer' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Jetpack_Manage' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-jetpack-manage.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Module_Product' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-module-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Product' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Anti_Spam' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Backup' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-backup.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Boost' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-boost.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Creator' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-creator.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Crm' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-crm.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Extras' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-extras.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Jetpack_Ai' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Protect' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-protect.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Scan' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-scan.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Search_Stats' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Security' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-security.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Social' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Starter' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-starter.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Stats' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Products\\Videopress' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-videopress.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_AI' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-ai.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Product_Data' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-product-data.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Purchases' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-purchases.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Recommendations_Evaluation' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-recommendations-evaluation.php' ), 'Automattic\\Jetpack\\My_Jetpack\\REST_Zendesk_Chat' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-zendesk-chat.php' ), 'Automattic\\Jetpack\\My_Jetpack\\Wpcom_Products' => array( - 'version' => '5.0.2.0-alpha1731961756', + 'version' => '5.0.2.0-alpha1732045171', 'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-wpcom-products.php' ), 'Automattic\\Jetpack\\Partner' => array(