diff --git a/composer.json b/composer.json
index ab2b7fe2..8e35c7ca 100644
--- a/composer.json
+++ b/composer.json
@@ -8,7 +8,7 @@
"automattic/jetpack-composer-plugin": "^2.0.3",
"automattic/jetpack-config": "^2.0.4",
"automattic/jetpack-connection": "^5.1.3",
- "automattic/jetpack-my-jetpack": "^4.35.12",
+ "automattic/jetpack-my-jetpack": "^4.35.13-alpha",
"automattic/jetpack-search": "^0.45.8-alpha",
"automattic/jetpack-stats": "^0.13.3",
"automattic/jetpack-status": "^4.0.2",
diff --git a/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php b/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php
index f6c26fe4..8caec28d 100644
--- a/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php
+++ b/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.asset.php
@@ -1 +1 @@
- array('jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'ad66694505b56e5daaf7');
+ array('jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '087d67cbaedaadbdfce4');
diff --git a/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.js b/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.js
index eb748631..d298b6e3 100644
--- a/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.js
+++ b/jetpack_vendor/automattic/jetpack-connection/dist/jetpack-connection.js
@@ -4,4 +4,4 @@ __("(opens in a new tab)","jetpack-connection"))),A=f?"_blank":void 0,N=t?.[0]&&
__("Icon for the product %s","jetpack-connection"),t.title)}):t.icon),React.createElement("h1",{className:"jp-components__pricing-card__title"},t.title),React.createElement("div",{className:"jp-components__pricing-card__pricing"},t.priceBefore!==t.priceAfter&&t.priceAfter>0?React.createElement("div",{className:"jp-components__pricing-card__price-before"},React.createElement("span",{className:"jp-components__pricing-card__currency"},l.symbol),React.createElement("span",{className:"jp-components__pricing-card__price"},l.integer),a(l)&&React.createElement("span",{className:"jp-components__pricing-card__price-decimal"}," ",l.fraction),React.createElement("div",{className:"jp-components__pricing-card__price-strikethrough"})):React.createElement(i.A,{width:"100%",height:48}),t.priceAfter>0&&React.createElement(React.Fragment,null,React.createElement("div",{className:"jp-components__pricing-card__price-after"},React.createElement("span",{className:"jp-components__pricing-card__currency"},p.symbol),React.createElement("span",{className:"jp-components__pricing-card__price"},p.integer),a(p)&&React.createElement("span",{className:"jp-components__pricing-card__price-decimal"},p.fraction)),React.createElement("span",{className:"jp-components__pricing-card__price-details"},n))),t.children&&React.createElement("div",{className:"jp-components__pricing-card__extra-content-wrapper"},t.children),t.tosText&&React.createElement("div",{className:"jp-components__pricing-card__tos"},t.tosText),t.ctaText&&React.createElement(React.Fragment,null,!t.tosText&&React.createElement("div",{className:"jp-components__pricing-card__tos"},React.createElement(s.A,{agreeButtonLabel:t.ctaText})),React.createElement("div",{className:"jp-components__pricing-card__cta"},React.createElement(c.Button,{className:"jp-components__pricing-card__button",label:t.ctaText,onClick:t.onCtaClick},t.ctaText))),t.infoText&&React.createElement("div",{className:"jp-components__pricing-card__info"},t.infoText))}},6461:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(3619),i=t.n(o),c=t(1609),r=t.n(c);t(8325);const s=({color:e="#FFFFFF",className:n="",size:t=20})=>{const o=n+" jp-components-spinner",i={width:t,height:t,fontSize:t,borderTopColor:e},c={borderTopColor:e,borderRightColor:e};return r().createElement("div",{className:o},r().createElement("div",{className:"jp-components-spinner__outer",style:i},r().createElement("div",{className:"jp-components-spinner__inner",style:c})))};s.propTypes={color:i().string,className:i().string,size:i().number};const a=s},5879:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(8579),i=t.n(o),c=t(6087),r=t(7723),s=t(2231),a=t(3924),l=t(7425);t(9634);const __=r.__,p=({multipleButtonsLabels:e})=>Array.isArray(e)&&e.length>1?(0,c.createInterpolateElement)((0,r.sprintf)(/* translators: %1$s is button label 1 and %2$s is button label 2 */
__("By clicking %1$s or %2$s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),e[0],e[1]),{strong:React.createElement("strong",null),tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,c.createInterpolateElement)(__("By clicking the buttons above, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),{tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({agreeButtonLabel:e})=>(0,c.createInterpolateElement)((0,r.sprintf)(/* translators: %s is a button label */
__("By clicking %s, you agree to our Terms of Service and to sync your site‘s data with us.","jetpack-connection"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(u,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(u,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({slug:e,children:n})=>React.createElement("a",{className:"terms-of-service__link",href:(0,a.A)(e),rel:"noopener noreferrer",target:"_blank"},n),m=({className:e,multipleButtons:n,agreeButtonLabel:t,...o})=>React.createElement(l.Ay,i()({className:(0,s.A)(e,"terms-of-service")},o),n?React.createElement(p,{multipleButtonsLabels:n}):React.createElement(d,{agreeButtonLabel:t}))},110:(e,n,t)=>{"use strict";t.d(n,{Q:()=>o,Z:()=>i});const o={"headline-medium":"h1","headline-small":"h2","headline-small-regular":"h2","title-medium":"h3","title-medium-semi-bold":"h3","title-small":"h4",body:"p","body-small":"p","body-extra-small":"p","body-extra-small-bold":"p",label:"p"},i=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},7425:(e,n,t)=>{"use strict";t.d(n,{Ay:()=>d});var o=t(8579),i=t.n(o),c=t(2231),r=t(1609),s=t.n(r),a=t(110),l=t(4495);const p=(0,r.forwardRef)((({variant:e="body",children:n,component:t,className:o,...p},d)=>{const u=t||a.Q[e]||"span",m=(0,r.useMemo)((()=>a.Z.reduce(((e,n)=>(void 0!==p[n]&&(e+=l.A[`${n}-${p[n]}`]+" ",delete p[n]),e)),"")),[p]);return p.ref=d,s().createElement(u,i()({className:(0,c.A)(l.A.reset,l.A[e],o,m)},p),n)}));p.displayName="Text";const d=p},3924:(e,n,t)=>{"use strict";function o(e,n={}){const t={};let o;if("undefined"!=typeof window&&(o=window?.JP_CONNECTION_INITIAL_STATE?.calypsoEnv),0===e.search("https://")){const n=new URL(e);e=`https://${n.host}${n.pathname}`,t.url=encodeURIComponent(e)}else t.source=encodeURIComponent(e);for(const e in n)t[e]=encodeURIComponent(n[e]);!Object.keys(t).includes("site")&&"undefined"!=typeof jetpack_redirects&&Object.hasOwn(jetpack_redirects,"currentSiteRawUrl")&&(t.site=jetpack_redirects.currentBlogID??jetpack_redirects.currentSiteRawUrl),o&&(t.calypso_env=o);return"https://jetpack.com/redirect/?"+Object.keys(t).map((e=>e+"="+t[e])).join("&")}t.d(n,{A:()=>o})},6439:(e,n,t)=>{let o={};try{o=t(9074)}catch{console.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),o={missingConfig:!0}}const i=e=>Object.hasOwn(o,e);e.exports={jetpackConfigHas:i,jetpackConfigGet:e=>{if(!i(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return o[e]}}},8421:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var o=t(8089),i=t(7723),c=t(3619),r=t.n(c),s=t(1609),a=t.n(s),l=t(9660);const __=i.__,p=e=>{const{apiRoot:n,apiNonce:t,connectLabel:i=__("Connect","jetpack-connection"),registrationNonce:c,redirectUri:r=null,from:s,autoTrigger:p=!1}=e,{handleRegisterSite:d,isRegistered:u,isUserConnected:m,siteIsRegistering:g,userIsConnecting:h,registrationError:_}=(0,l.A)({registrationNonce:c,redirectUri:r,apiRoot:n,apiNonce:t,autoTrigger:p,from:s});return a().createElement(a().Fragment,null,(!u||!m)&&a().createElement(o.A,{label:i,onClick:d,displayError:!!_,isLoading:g||h}))};p.propTypes={connectLabel:r().string,apiRoot:r().string.isRequired,apiNonce:r().string.isRequired,from:r().string,redirectUri:r().string.isRequired,registrationNonce:r().string.isRequired,autoTrigger:r().bool};const d=p},6212:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(7723),i=t(1609),c=t.n(i),r=t(9660),s=t(5582);const __=o.__,a=({title:e,buttonLabel:n,loadingLabel:t,apiRoot:o,apiNonce:i,registrationNonce:a,from:l,redirectUri:p,images:d,children:u,assetBaseUrl:m,autoTrigger:g,footer:h,skipUserConnection:_,logo:y})=>{const{handleRegisterSite:f,siteIsRegistering:b,userIsConnecting:k,registrationError:C,isOfflineMode:E}=(0,r.A)({registrationNonce:a,redirectUri:p,apiRoot:o,apiNonce:i,autoTrigger:g,from:l,skipUserConnection:_}),v=Boolean(C),j=b||k,w=C?.response?.code;return c().createElement(s.A,{title:e||__("Over 5 million WordPress sites are faster and more secure","jetpack-connection"),images:d||[],assetBaseUrl:m,buttonLabel:n||__("Set up Jetpack","jetpack-connection"),loadingLabel:t,handleButtonClick:f,displayButtonError:v,errorCode:w,buttonIsLoading:j,footer:h,isOfflineMode:E,logo:y},u)}},5582:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(5879),i=t(8089),c=t(3924),r=t(6087),s=t(7723),a=t(1609),l=t.n(a),p=t(2668);t(1772);const __=s.__,d=(e,n)=>{switch(e){case"fail_domain_forbidden":case"fail_ip_forbidden":case"fail_domain_tld":case"fail_subdomain_wpcom":case"siteurl_private_ip":return __("Your site host is on a private network. Jetpack can only connect to public sites.","jetpack-connection");case"connection_disabled":return __("This site has been suspended.","jetpack-connection")}if(n)return(0,r.createInterpolateElement)(__("Unavailable in Offline Mode","jetpack-connection"),{a:l().createElement("a",{href:(0,c.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})})},u=({title:e,images:n,children:t,assetBaseUrl:c,isLoading:r,buttonLabel:s,handleButtonClick:a,displayButtonError:u,errorCode:m,buttonIsLoading:g,loadingLabel:h,footer:_,isOfflineMode:y,logo:f})=>l().createElement(p.A,{title:e,assetBaseUrl:c,images:n,className:"jp-connection__connect-screen"+(r?" jp-connection__connect-screen__loading":""),logo:f},l().createElement("div",{className:"jp-connection__connect-screen__content"},t,l().createElement("div",{className:"jp-connection__connect-screen__tos"},l().createElement(o.A,{agreeButtonLabel:s})),l().createElement(i.A,{label:s,onClick:a,displayError:u||y,errorMessage:d(m,y),isLoading:g,isDisabled:y}),l().createElement("span",{className:"jp-connection__connect-screen__loading-message",role:"status"},g?h||__("Loading","jetpack-connection"):""),_&&l().createElement("div",{className:"jp-connection__connect-screen__footer"},_)))},5745:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(1609),i=t.n(o);const c=({images:e,assetBaseUrl:n=""})=>{if(!e?.length)return null;const t=e.map(((e,t)=>i().createElement(i().Fragment,{key:t},i().createElement("img",{src:n+e,alt:""}))));return i().createElement("div",{className:"jp-connection__connect-screen__image-slider"},t)}},2668:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(7142),i=t(2231),c=t(1609),r=t.n(c),s=t(5745);t(9064);const a=({title:e,children:n,className:t,assetBaseUrl:c,images:a,logo:l,rna:p=!1})=>{const d=a?.length;return r().createElement("div",{className:(0,i.A)("jp-connection__connect-screen-layout",d?"jp-connection__connect-screen-layout__two-columns":"",t?" "+t:"")},p&&r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs"},r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__green"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__yellow"}),r().createElement("div",{className:"jp-connection__connect-screen-layout__color-blobs__blue"})),r().createElement("div",{className:"jp-connection__connect-screen-layout__left"},l||r().createElement(o.A,null),r().createElement("h2",null,e),n),d?r().createElement("div",{className:"jp-connection__connect-screen-layout__right"},r().createElement(s.A,{images:a,assetBaseUrl:c})):null)}},7945:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=t(2558),l=t(9660),p=t(401);const __=o.__,d=e=>{const{title:n=__("Over 5 million WordPress sites are faster and more secure","jetpack-connection"),autoTrigger:t=!1,buttonLabel:o=__("Set up Jetpack","jetpack-connection"),apiRoot:i,apiNonce:c,registrationNonce:r,from:d,redirectUri:u,children:m,priceBefore:g,priceAfter:h,pricingIcon:_,pricingTitle:y,pricingCurrencyCode:f="USD",wpcomProductSlug:b,siteProductAvailabilityHandler:k,logo:C,rna:E=!1}=e,{handleRegisterSite:v,siteIsRegistering:j,userIsConnecting:w,registrationError:A,isOfflineMode:N}=(0,l.A)({registrationNonce:r,redirectUri:u,apiRoot:i,apiNonce:c,autoTrigger:t,from:d}),S=b||"",{run:R,hasCheckoutStarted:T}=(0,a.A)({productSlug:S,redirectUrl:u,siteProductAvailabilityHandler:k,from:d}),O=Boolean(A),I=j||w||T,P=S?R:v;return s().createElement(p.A,{title:n,buttonLabel:o,priceBefore:g,priceAfter:h,pricingIcon:_,pricingTitle:y,pricingCurrencyCode:f,handleButtonClick:P,displayButtonError:O,buttonIsLoading:I,logo:C,isOfflineMode:N,rna:E},m)};d.propTypes={title:c().string,buttonLabel:c().string,apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,registrationNonce:c().string.isRequired,from:c().string,redirectUri:c().string.isRequired,autoTrigger:c().bool,pricingTitle:c().string.isRequired,pricingIcon:c().oneOfType([c().string,c().element]),priceBefore:c().number.isRequired,priceAfter:c().number.isRequired,pricingCurrencyCode:c().string,wpcomProductSlug:c().string,checkSiteHasWpcomProduct:c().func,logo:c().element};const u=d},401:(e,n,t)=>{"use strict";t.d(n,{A:()=>b});var o=t(8089),i=t(3924),c=t(9957),r=t(5879),s=t(6087),a=t(7723),l=t(2231),p=t(4804),d=t.n(p),u=t(3619),m=t.n(u),g=t(1609),h=t.n(g),_=t(2668);t(381);const __=a.__,y=d()("jetpack:connection:ConnectScreenRequiredPlanVisual"),f=e=>{const{title:n,buttonLabel:t,children:a,priceBefore:p,priceAfter:d,pricingIcon:u,pricingTitle:m,pricingCurrencyCode:g="USD",isLoading:f=!1,handleButtonClick:b=()=>{},displayButtonError:k=!1,buttonIsLoading:C=!1,logo:E,isOfflineMode:v,rna:j=!1}=e;y("props are %o",e);const w=(0,s.createInterpolateElement)(__("Already have a subscription? ","jetpack-connection"),{connectButton:h().createElement(o.A,{label:__("Log in to get started","jetpack-connection"),onClick:b,isLoading:C})}),A=v?(0,s.createInterpolateElement)(__("Unavailable in Offline Mode","jetpack-connection"),{a:h().createElement("a",{href:(0,i.A)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"})}):void 0;return h().createElement(_.A,{title:n,className:(0,l.A)("jp-connection__connect-screen-required-plan",f?"jp-connection__connect-screen-required-plan__loading":"",j?"rna":""),logo:E,rna:j},h().createElement("div",{className:"jp-connection__connect-screen-required-plan__content"},a,h().createElement("div",{className:"jp-connection__connect-screen-required-plan__pricing-card"},h().createElement(c.A,{title:m,icon:u,priceBefore:p,currencyCode:g,priceAfter:d},h().createElement(r.A,{agreeButtonLabel:t}),h().createElement(o.A,{label:t,onClick:b,displayError:k||v,errorMessage:A,isLoading:C,isDisabled:v}))),!v&&h().createElement("div",{className:"jp-connection__connect-screen-required-plan__with-subscription"},w)))};f.propTypes={pricingTitle:m().string.isRequired,priceBefore:m().number.isRequired,priceAfter:m().number.isRequired,pricingCurrencyCode:m().string,title:m().string,buttonLabel:m().string,pricingIcon:m().oneOfType([m().string,m().element]),isLoading:m().bool,handleButtonClick:m().func,displayButtonError:m().bool,buttonIsLoading:m().bool,logo:m().element,isOfflineMode:m().bool};const b=f},7840:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(5932),i=t(3619),c=t.n(i),r=t(1609);const s=e=>{const{redirectFunc:n=e=>window.location.assign(e),connectUrl:t,redirectUri:i=null,from:c}=e,[s,a]=(0,r.useState)(null);return t&&t!==s&&a(t),(0,r.useEffect)((()=>{s||o.Ay.fetchAuthorizationUrl(i).then((e=>a(e.authorizeUrl))).catch((e=>{throw e}))}),[]),s?(n(s+(c?(s.includes("?")?"&":"?")+"from="+encodeURIComponent(c):"")),null):null};s.propTypes={connectUrl:c().string,redirectUri:c().string.isRequired,from:c().string,redirectFunc:c().func};const a=s},648:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=t(7499);const __=o.__,l=e=>{const{connectedPlugins:n,disconnectingPlugin:t}=e,o=(0,r.useMemo)((()=>{if(n){return Object.keys(n).map((e=>Object.assign({slug:e},n[e]))).filter((e=>t!==e.slug))}return[]}),[n,t]);return n&&o.length>0?s().createElement(s().Fragment,null,s().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack-connection"))),s().createElement("div",{className:"jp-connection__disconnect-card__group"},o.map((e=>s().createElement(a.A,{title:e.name,key:e.slug}))))):null};l.propTypes={connectedPlugins:c().array,disconnectingPlugin:c().string};const p=l},7088:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(442),i=t(6461),c=t(6427),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(4175);const __=r.__,u=e=>{const{message:n,isRestoringConnection:t,restoreConnectionCallback:s,restoreConnectionError:a}=e,[l]=(0,o.A)(["md"],[">"]),u=d.A.notice+(l?" "+d.A["bigger-than-medium"]:""),m=p().createElement(c.Icon,{icon:p().createElement(c.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p().createElement(c.Path,{d:"M11.7815 4.93772C11.8767 4.76626 12.1233 4.76626 12.2185 4.93772L20.519 19.8786C20.6116 20.0452 20.4911 20.25 20.3005 20.25H3.69951C3.50889 20.25 3.3884 20.0452 3.48098 19.8786L11.7815 4.93772Z",stroke:"#D63638",strokeWidth:"1.5"}),p().createElement(c.Path,{d:"M13 10H11V15H13V10Z",fill:"#D63638"}),p().createElement(c.Path,{d:"M13 16H11V18H13V16Z",fill:"#D63638"}))});if(!n)return null;if(t)return p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u},p().createElement("div",{className:d.A.message},p().createElement(i.A,{color:"#B32D2E",size:24}),__("Reconnecting Jetpack","jetpack-connection")));const g=a?p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u+" "+d.A.error},p().createElement("div",{className:d.A.message},m,(0,r.sprintf)(/* translators: placeholder is the error. */
-__("There was an error reconnecting Jetpack. Error: %s","jetpack-connection"),a))):null;return p().createElement(p().Fragment,null,g,p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u},p().createElement("div",{className:d.A.message},m,n),s&&p().createElement("a",{onClick:s,onKeyDown:s,className:d.A.button,href:"#"},__("Restore Connection","jetpack-connection"))))};u.propTypes={message:a().string.isRequired,restoreConnectionCallback:a().func,isRestoringConnection:a().bool,restoreConnectionError:a().string};const m=u},7499:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(3619),i=t.n(o),c=t(1609),r=t.n(c);t(7419);const s=e=>{const{title:n,value:t,description:o}=e;return r().createElement("div",{className:"jp-connection__disconnect-card card"},r().createElement("div",{className:"jp-connection__disconnect-card__card-content"},r().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},n),(t||o)&&r().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},r().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},t),r().createElement("div",{className:"jp-connection__disconnect-card__card-description"},o))))};s.propTypes={title:i().string,value:i().oneOfType([i().string,i().number]),description:i().string};const a=s},3269:(e,n,t)=>{"use strict";t.d(n,{A:()=>y});var o=t(372),i=t(5932),c=t(6439),r=t(6427),s=t(7723),a=t(3619),l=t.n(a),p=t(1609),d=t.n(p),u=(t(785),t(4472)),m=t(8503),g=t(412),h=t(8090);const __=s.__,_=e=>{const[n,t]=(0,p.useState)(!1),[s,a]=(0,p.useState)(!1),[l,_]=(0,p.useState)(!1),[y,f]=(0,p.useState)(!1),[b,k]=(0,p.useState)(!1),[C,E]=(0,p.useState)(!1),{apiRoot:v,apiNonce:j,connectedPlugins:w,title:A=__("Are you sure you want to disconnect?","jetpack-connection"),pluginScreenDisconnectCallback:N,onDisconnected:S,onError:R,disconnectStepComponent:T,context:O="jetpack-dashboard",connectedUser:I={},connectedSiteId:P,isOpen:D,onClose:x}=e;let U="";(0,c.jetpackConfigHas)("consumer_slug")&&(U=(0,c.jetpackConfigGet)("consumer_slug"));const F=(0,p.useMemo)((()=>({context:O,plugin:U})),[O,U]);(0,p.useEffect)((()=>{i.Ay.setApiRoot(v),i.Ay.setApiNonce(j)}),[v,j]),(0,p.useEffect)((()=>{I&&I.ID&&I.login&&o.A.initialize(I.ID,I.login)}),[I,I.ID,I.login]),(0,p.useEffect)((()=>{D&&o.A.tracks.recordEvent("jetpack_disconnect_dialog_open",F)}),[D,F]),(0,p.useEffect)((()=>{D&&(s?!s||y||b?y&&!b?o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},F)):b&&o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},F)):o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},F)):o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},F)))}),[D,s,y,b,F]);const L=(0,p.useCallback)((()=>{i.Ay.disconnectSite().then((()=>{t(!1),a(!0)})).catch((e=>{t(!1),_(e),R&&R(e)}))}),[t,a,_,R]),B=(0,p.useCallback)(((e,n)=>{E(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);o.A.tracks.recordEvent("jetpack_disconnect_survey_submit",n),k(!0),E(!1)})).catch((e=>{o.A.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},n)),k(!0),E(!1)}))}),[E,k]),M=(0,p.useCallback)((e=>{e&&e.preventDefault(),_(!1),t(!0),"plugins"!==O?L():N&&N(e)}),[_,t,N,O,L]),$=(0,p.useCallback)((e=>o.A.tracks.recordEvent(e,F)),[F]),J=(0,p.useCallback)((()=>!(!I.ID||!P)),[I,P]),z=(0,p.useCallback)(((e,n,t)=>{if(t&&t.preventDefault(),!J())return void k(!0);const o={site_id:P,user_id:I.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:n||null}}},i=Object.assign({},F,{disconnect_reason:e});B(o,i)}),[B,k,J,P,I,F]),q=(0,p.useCallback)((e=>{e&&e.preventDefault(),S&&S(),x()}),[S,x]),G=(0,p.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]);return d().createElement(d().Fragment,null,D&&d().createElement(r.Modal,{title:"",contentLabel:A,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:x,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(s?" jp-connection__disconnect-dialog__success":"")},s?!s||y||b?y&&!b?d().createElement(g.A,{isSubmittingFeedback:C,onFeedBackProvided:z,onExit:q}):b?d().createElement(h.A,{onExit:q}):void 0:d().createElement(m.A,{canProvideFeedback:J(),onProvideFeedback:G,onExit:q}):d().createElement(u.A,{title:A,connectedPlugins:w,disconnectStepComponent:T,isDisconnecting:n,closeModal:x,onDisconnect:M,disconnectError:l,context:O,disconnectingPlugin:U,trackModalClick:$})))};_.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,title:l().string,onDisconnected:l().func,onError:l().func,context:l().string,connectedPlugins:l().oneOfType([l().array,l().object]),pluginScreenDisconnectCallback:l().func,disconnectStepComponent:l().element,connectedUser:l().object,connectedSiteId:l().number,isOpen:l().bool,onClose:l().func};const y=_},8503:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(9121),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(2365);const __=r.__,u=e=>{const{onExit:n,canProvideFeedback:t,onProvideFeedback:r}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(o.A,{icon:"unlink",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},p().createElement("h1",null,(0,c.createInterpolateElement)(__("Jetpack has been
successfully disconnected.","jetpack-connection"),{br:p().createElement("br",null)})),t&&p().createElement(p().Fragment,null,p().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-connection")),p().createElement("p",null,p().createElement(i.Button,{variant:"primary",onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-connection"))),p().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("No thank you","jetpack-connection"))),!t&&p().createElement(p().Fragment,null,p().createElement("p",null,p().createElement(i.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection"))))))};u.propTypes={onExit:a().func,onProvideFeedback:a().func,canProvideFeedback:a().bool};const m=u},4472:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(3924),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(648);const __=r.__,u=e=>{const{title:n,isDisconnecting:t,onDisconnect:r,disconnectError:s,disconnectStepComponent:a,connectedPlugins:u,disconnectingPlugin:m,closeModal:g,context:h,trackModalClick:_}=e,y=(0,l.useCallback)((()=>_("jetpack_disconnect_dialog_click_learn_about")),[_]),f=(0,l.useCallback)((()=>_("jetpack_disconnect_dialog_click_support")),[_]),b=(0,l.useCallback)((()=>{_("jetpack_disconnect_dialog_click_stay_connected"),g()}),[_,g]),k=(0,l.useCallback)((e=>{_("jetpack_disconnect_dialog_click_disconnect"),r(e)}),[_,r]),C=(0,l.useCallback)((e=>{"Escape"!==e.key||t||b()}),[b,t]);(0,l.useEffect)((()=>(document.addEventListener("keydown",C,!1),()=>{document.removeEventListener("keydown",C,!1)})),[]);return p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},n),p().createElement(d.A,{connectedPlugins:u,disconnectingPlugin:m}),a,(()=>{if(!(u&&Object.keys(u).filter((e=>e!==m)).length)&&!a)return p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-connection"),p().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-connection")))})()),p().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},p().createElement("div",{className:"jp-row"},p().createElement("div",{className:"lg-col-span-8 md-col-span-9 sm-col-span-4"},p().createElement("p",null,(0,c.createInterpolateElement)(__("Need help? Learn more about the Jetpack connection or contact Jetpack support.","jetpack-connection"),{strong:p().createElement("strong",null),jpConnectionInfoLink:p().createElement(i.ExternalLink,{href:(0,o.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__disconnect-dialog__link",onClick:y}),jpSupportLink:p().createElement(i.ExternalLink,{href:(0,o.A)("jetpack-support"),className:"jp-connection__disconnect-dialog__link",onClick:f})}))),p().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-4 md-col-span-7 sm-col-span-4"},p().createElement(i.Button,{variant:"primary",disabled:t,onClick:b,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===h?__("Cancel","jetpack-connection"):__("Stay connected","jetpack-connection",0)),(()=>{let e=__("Disconnect","jetpack-connection");return t?e=__("Disconnecting…","jetpack-connection"):"plugins"===h&&(e=__("Deactivate","jetpack-connection")),p().createElement(i.Button,{variant:"primary",disabled:t,onClick:k,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),s&&p().createElement("p",{className:"jp-connection__disconnect-dialog__error"},s)))};u.propTypes={title:a().string,isDisconnecting:a().bool,onDisconnect:a().func,disconnectError:a().bool,disconnectStepComponent:a().element,connectedPlugins:a().array,disconnectingPlugin:a().string,closeModal:a().func,context:a().string,trackModalClick:a().func};const m=u},412:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=(t(255),t(2951));const __=o.__,l=e=>{const{onExit:n,onFeedBackProvided:t,isSubmittingFeedback:o}=e;return s().createElement("div",{className:"jp-connection__disconnect-dialog__content"},s().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-connection")),s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-connection")),s().createElement(a.A,{onSubmit:t,isSubmittingFeedback:o}),s().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("Skip for now","jetpack-connection")))};l.PropTypes={onExit:c().func,onFeedBackProvided:c().func,isSubmittingFeedback:c().bool};const p=l},8090:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(9121),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(9362);const __=r.__,u=e=>{const{onExit:n}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(o.A,{format:"vertical",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},p().createElement("h1",null,__("Thank you!","jetpack-connection")),p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,c.createInterpolateElement)(__("Your answer has been submitted.
Thanks for your input on how we can improve Jetpack.","jetpack-connection"),{br:p().createElement("br",null)})),p().createElement(i.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection"))))};u.PropTypes={onExit:a().func,assetBaseUrl:a().string};const m=u},2951:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var o=t(6427),i=t(7723),c=t(3619),r=t.n(c),s=t(1609),a=t.n(s),l=t(8233);const __=i.__,p=e=>{const{onSubmit:n,isSubmittingFeedback:t}=e,[i,c]=(0,s.useState)(),[r,p]=(0,s.useState)(),d=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-connection")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-connection")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-connection")},{id:"buggy",answerText:__("It's buggy.","jetpack-connection")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-connection")}],u="another-reason",m=(0,s.useCallback)((()=>{n(i,i===u?r:"")}),[n,u,r,i]),g=(0,s.useCallback)((e=>{const n=e.target.value;e.stopPropagation(),p(n)}),[p]),h=e=>e===i?"jp-connect__disconnect-survey-card--selected":"",_=(0,s.useCallback)(((e,n)=>{switch(n.key){case"Enter":case"Space":case"Spacebar":case" ":c(e)}}),[c]);return a().createElement(a().Fragment,null,a().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},d.map((e=>a().createElement(l.A,{id:e.id,onClick:c,onKeyDown:_,className:"card jp-connect__disconnect-survey-card "+h(e.id)},a().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),a().createElement(l.A,{id:u,key:u,onClick:c,onKeyDown:_,className:"card jp-connect__disconnect-survey-card "+h(u)},a().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-connection")," ",a().createElement("input",{placeholder:__("share your experience","jetpack-connection"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:r,onChange:g,maxLength:1e3})))),a().createElement("p",null,a().createElement(o.Button,{disabled:!i||t,variant:"primary",onClick:m,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},t?__("Submitting…","jetpack-connection"):__("Submit Feedback","jetpack-connection",0))))};p.PropTypes={onSubmit:r().func,isSubmittingFeedback:r().bool};const d=p},8233:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(1609),i=t.n(o);t(255);const c=e=>{const{id:n,onClick:t,onKeyDown:c,children:r,className:s}=e,a=(0,o.useCallback)((()=>{t(n)}),[n,t]),l=(0,o.useCallback)((e=>{c(n,e)}),[n,c]);return i().createElement("div",{tabIndex:"0",role:"button",onClick:a,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+s},r)}},7018:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r);t(3732);const __=o.__,a=e=>{const{title:n,isLoading:t=!1,width:o="100%",displayTOS:i,scrollToIframe:c=!1,connectUrl:a,onComplete:l,onThirdPartyCookiesBlocked:p,location:d}=e;let{height:u="300"}=e;const m=(0,r.useRef)(void 0),g=(0,r.useRef)(void 0),h=e=>{if(g.current&&e.source===g.current.contentWindow)switch(e.data){case"close":window.removeEventListener("message",h),l&&l();break;case"wpcom_nocookie":p&&p()}};(0,r.useEffect)((()=>{c&&window.scrollTo(0,m.current.offsetTop-10),window.addEventListener("message",h)}));let _=a.replace("authorize/","authorize_iframe/");return _.includes("?")||(_+="?"),i&&(_+="&display-tos",u=(parseInt(u)+50).toString()),_+="&iframe_height="+parseInt(u),d&&(_+="&iframe_source="+d),s().createElement("div",{className:"dops-card fade-in jp-iframe-wrap",ref:m},s().createElement("h1",null,n),t?s().createElement("p",null,__("Loading…","jetpack-connection")):s().createElement("iframe",{title:n,width:o,height:u,src:_,ref:g}))};a.propTypes={title:c().string.isRequired,isLoading:c().bool,width:c().string,height:c().string,connectUrl:c().string.isRequired,displayTOS:c().bool.isRequired,scrollToIframe:c().bool,onComplete:c().func,onThirdPartyCookiesBlocked:c().func,location:c().string};const l=a},4981:(e,n,t)=>{"use strict";t.d(n,{A:()=>C});var o=t(7425),i=t(3924),c=t(1112),r=t(6427),s=t(6087),a=t(7723),l=t(7750),p=t(1386),d=t(8391),u=t(2231),m=t(3619),g=t.n(m),h=t(1609),_=t.n(h),y=t(3269);t(2057);const __=a.__,f=e=>{const{title:n=__("Manage your Jetpack connection","jetpack-connection"),apiRoot:t,apiNonce:c,connectedPlugins:s,onDisconnected:a,context:l="jetpack-dashboard",connectedUser:p={},connectedSiteId:d,isOpen:u=!1,onClose:m}=e,[g,f]=(0,h.useState)(!1),C=(0,h.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]),E=(0,h.useCallback)((e=>{e&&e.preventDefault(),f(!1)}),[f]);return _().createElement(_().Fragment,null,u&&_().createElement(_().Fragment,null,_().createElement(r.Modal,{title:"",contentLabel:n,aria:{labelledby:"jp-connection__manage-dialog__heading"},shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__manage-dialog"},_().createElement("div",{className:"jp-connection__manage-dialog__content"},_().createElement("h1",{id:"jp-connection__manage-dialog__heading"},n),_().createElement(o.Ay,{className:"jp-connection__manage-dialog__large-text"},__("At least one user must be connected for your Jetpack products to work properly.","jetpack-connection")),_().createElement(b,{title:__("Transfer ownership to another admin","jetpack-connection"),link:(0,i.A)("calypso-settings-manage-connection",{site:window?.myJetpackInitialState?.siteSuffix}),key:"transfer",action:"transfer"}),_().createElement(b,{title:__("Disconnect Jetpack","jetpack-connection"),onClick:C,key:"disconnect",action:"disconnect"})),_().createElement(k,{onClose:m})),_().createElement(y.A,{apiRoot:t,apiNonce:c,onDisconnected:a,connectedPlugins:s,connectedSiteId:d,connectedUser:p,isOpen:g,onClose:E,context:l})))},b=({title:e,onClick:n=()=>null,link:t="#",action:o})=>_().createElement("div",{className:"jp-connection__manage-dialog__action-card card"},_().createElement("div",{className:"jp-connection__manage-dialog__action-card__card-content"},_().createElement("a",{href:t,className:(0,u.A)("jp-connection__manage-dialog__action-card__card-headline",o),onClick:n},e,_().createElement(l.A,{icon:"disconnect"===o?p.A:d.A,className:"jp-connection__manage-dialog__action-card__icon"})))),k=({onClose:e})=>_().createElement("div",{className:"jp-row jp-connection__manage-dialog__actions"},_().createElement("div",{className:"jp-connection__manage-dialog__text-wrap lg-col-span-9 md-col-span-7 sm-col-span-3"},_().createElement(o.Ay,null,(0,s.createInterpolateElement)(__("Need help? Learn more about the Jetpack connection or contact Jetpack support","jetpack-connection"),{strong:_().createElement("strong",null),connectionInfoLink:_().createElement(r.ExternalLink,{href:(0,i.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__manage-dialog__link"}),supportLink:_().createElement(r.ExternalLink,{href:(0,i.A)("jetpack-support"),className:"jp-connection__manage-dialog__link"})}))),_().createElement("div",{className:"jp-connection__manage-dialog__button-wrap lg-col-span-3 md-col-span-1 sm-col-span-1"},_().createElement(c.A,{weight:"regular",variant:"secondary",onClick:e,className:"jp-connection__manage-dialog__btn-dismiss"},__("Cancel","jetpack-connection"))));f.propTypes={title:g().string,apiRoot:g().string.isRequired,apiNonce:g().string.isRequired,connectedPlugins:g().oneOfType([g().array,g().object]),onDisconnected:g().func,context:g().string,connectedUser:g().object,connectedSiteId:g().number,isOpen:g().bool,onClose:g().func};const C=f},9660:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(5932),i=t(7999),c=t(7143),r=t(1609),s=t(4293);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{},l=({registrationNonce:e=a.registrationNonce,apiRoot:n=a.apiRoot,apiNonce:t=a.apiNonce,redirectUri:i,autoTrigger:l,from:p,skipUserConnection:d}={})=>{const{registerSite:u,connectUser:m,refreshConnectedPlugins:g}=(0,c.useDispatch)(s.a),h=(0,c.useSelect)((e=>e(s.a).getRegistrationError())),{siteIsRegistering:_,userIsConnecting:y,userConnectionData:f,connectedPlugins:b,connectionErrors:k,isRegistered:C,isUserConnected:E,hasConnectedOwner:v,isOfflineMode:j}=(0,c.useSelect)((e=>({siteIsRegistering:e(s.a).getSiteIsRegistering(),userIsConnecting:e(s.a).getUserIsConnecting(),userConnectionData:e(s.a).getUserConnectionData(),connectedPlugins:e(s.a).getConnectedPlugins(),connectionErrors:e(s.a).getConnectionErrors(),isOfflineMode:e(s.a).getIsOfflineMode(),...e(s.a).getConnectionStatus()}))),w=()=>d?i?(window.location=i,Promise.resolve(i)):Promise.resolve():m({from:p,redirectUri:i}),A=n=>(n&&n.preventDefault(),C?w():u({registrationNonce:e,redirectUri:i,from:p}).then((()=>w())));return(0,r.useEffect)((()=>{o.Ay.setApiRoot(n),o.Ay.setApiNonce(t)}),[n,t]),(0,r.useEffect)((()=>{!l||_||y||A()}),[]),{handleRegisterSite:A,handleConnectUser:w,refreshConnectedPlugins:g,isRegistered:C,isUserConnected:E,siteIsRegistering:_,userIsConnecting:y,registrationError:h,userConnectionData:f,hasConnectedOwner:v,connectedPlugins:b,connectionErrors:k,isOfflineMode:j}}},3765:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(7999);function i(){const e=("undefined"!=typeof window&&window?.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection)?.calypsoEnv;switch(e){case"development":return"http://calypso.localhost:3000/";case"wpcalypso":return"https://wpcalypso.wordpress.com/";case"horizon":return"https://horizon.wordpress.com/";default:return"https://wordpress.com/"}}},4617:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o=e=>{window.location.replace(e)}},9628:(e,n,t)=>{"use strict";t.d(n,{A:()=>r,R:()=>s});var o=t(7088),i=t(9660),c=t(1713);function r(){const{connectionErrors:e}=(0,i.A)({}),n=Object.values(e).shift(),t=n&&Object.values(n).length&&Object.values(n).shift().error_message;return{hasConnectionError:Boolean(t),connectionErrorMessage:t}}const s=()=>{const{hasConnectionError:e,connectionErrorMessage:n}=r(),{restoreConnection:t,isRestoringConnection:i,restoreConnectionError:s}=(0,c.A)();return e?React.createElement(o.A,{isRestoringConnection:i,restoreConnectionError:s,restoreConnectionCallback:t,message:n}):null}},2558:(e,n,t)=>{"use strict";t.d(n,{A:()=>f});var o=t(5932),i=t(3765),c=t(7999),r=t(7143),s=t(4804),a=t.n(s),l=t(1609),p=t(9660),d=t(4293);const u=a()("jetpack:connection:useProductCheckoutWorkflow"),{registrationNonce:m,apiRoot:g,apiNonce:h,siteSuffix:_}=window?.JP_CONNECTION_INITIAL_STATE||(0,c.getScriptData)()?.connection||{},y=()=>"undefined"!=typeof window?window?.myJetpackInitialState?.adminUrl:null;function f({productSlug:e,redirectUrl:n,siteSuffix:t=_,adminUrl:c=y(),connectAfterCheckout:s=!1,siteProductAvailabilityHandler:a=null,quantity:f=null,from:b,useBlogIdSuffix:k=!1}={}){u("productSlug is %s",e),u("redirectUrl is %s",n),u("siteSuffix is %s",t),u("from is %s",b);const[C,E]=(0,l.useState)(!1),{registerSite:v}=(0,r.useDispatch)(d.a),j=(0,r.useSelect)((e=>e(d.a).getBlogId()),[]);u("blogID is %s",j??"undefined"),k=k&&!!j;const{isUserConnected:w,isRegistered:A,handleConnectUser:N}=(0,p.A)({redirectUri:n,from:b}),S=(0,l.useMemo)((()=>{const o=(0,i.A)(),r=(!A||!w)&&s,a=r?"checkout/jetpack/":`checkout/${k?j.toString():t}/`,l=new URL(`${o}${a}${e}${null!=f?`:-q-${f}`:""}`);return r?(l.searchParams.set("connect_after_checkout",!0),l.searchParams.set("admin_url",c),l.searchParams.set("from_site_slug",t)):l.searchParams.set("site",t),l.searchParams.set("source",b),l.searchParams.set("redirect_to",n),w||l.searchParams.set("unlinked","1"),l}),[A,w,s,t,f,e,b,n,c,k,j]);u("isRegistered is %s",A),u("isUserConnected is %s",w),u("connectAfterCheckout is %s",s),u("checkoutUrl is %s",S);const R=(e=null)=>Promise.resolve(a&&a()).then((n=>{if(e&&S.searchParams.set("redirect_to",e),n)return u("handleAfterRegistration: Site has a product associated"),N();u("handleAfterRegistration: Site does not have a product associated. Redirecting to checkout %s",S),window.location.href=S}));return(0,l.useEffect)((()=>{o.Ay.setApiRoot(g),o.Ay.setApiNonce(h)}),[]),{run:(e,t=null)=>(e&&e.preventDefault(),E(!0),s?((e=null)=>{e&&S.searchParams.set("redirect_to",e),u("Redirecting to connectAfterCheckout flow: %s",S),window.location.href=S})(t):A?R(t):void v({registrationNonce:m,redirectUri:n}).then((()=>R(t)))),isRegistered:A,hasCheckoutStarted:C}}},1713:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(5932),i=t(7999),c=t(7143),r=t(1609),s=t(4293);const{apiRoot:a,apiNonce:l}=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{};function p(){const[e,n]=(0,r.useState)(!1),[t,i]=(0,r.useState)(null),{disconnectUserSuccess:p,setConnectionErrors:d}=(0,c.useDispatch)(s.a);return(0,r.useEffect)((()=>{o.Ay.setApiRoot(a),o.Ay.setApiNonce(l)}),[]),{restoreConnection:(e=!0)=>(n(!0),i(null),o.Ay.reconnect().then((n=>("in_progress"===n.status?(p(),d({}),e&&(window.location.href="/wp-admin/admin.php?page=my-jetpack#/connection")):window.location.reload(),n))).catch((e=>{throw i(e),n(!1),e}))),isRestoringConnection:e,restoreConnectionError:t}}},8980:(e,n,t)=>{"use strict";t.d(n,{AY:()=>g.A,F0:()=>o.A,Hx:()=>y.a,JC:()=>l.A,Jl:()=>i.A,Ni:()=>u.A,Ob:()=>b.A,Rc:()=>p.R,Sx:()=>p.A,ag:()=>_.A,bo:()=>d.A,cS:()=>f.A,d1:()=>h.A,mX:()=>a.A,nM:()=>c.A,pK:()=>r.A,w5:()=>m.A,xW:()=>s.A});var o=t(6212),i=t(2668),c=t(7945),r=t(8421),s=t(7018),a=t(7840),l=t(7088),p=t(9628),d=t(3269),u=t(7499),m=t(9660),g=t(4981),h=t(4617),_=t(3765),y=t(4293),f=t(2558),b=t(1713)},3935:(e,n,t)=>{"use strict";t.d(n,{A1:()=>a,Ay:()=>E,DO:()=>s,Ij:()=>r,Kl:()=>m,LW:()=>l,MU:()=>g,XY:()=>p,ZO:()=>c,dz:()=>d,gH:()=>u,v_:()=>i});var o=t(5932);const i="SET_CONNECTION_STATUS",c="SET_CONNECTION_STATUS_IS_FETCHING",r="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",p="SET_AUTHORIZATION_URL",d="DISCONNECT_USER_SUCCESS",u="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",g="SET_IS_OFFLINE_MODE",h=e=>({type:i,connectionStatus:e}),_=e=>({type:r,isRegistering:e}),y=e=>({type:s,isConnecting:e}),f=e=>({type:a,registrationError:e}),b=()=>({type:l}),k=e=>({type:p,authorizationUrl:e}),C=e=>({type:u,connectedPlugins:e});const E={setConnectionStatus:h,setConnectionStatusIsFetching:e=>({type:c,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:_,setUserIsConnecting:y,setRegistrationError:f,clearRegistrationError:b,setAuthorizationUrl:k,registerSite:function*({registrationNonce:e,redirectUri:n,from:t=""}){yield b(),yield _(!0);try{const o=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:n,from:t};return yield h({isRegistered:!0}),yield k(o.authorizeUrl),yield _(!1),Promise.resolve(o)}catch(e){return yield f(e),yield _(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:n,redirectUri:t}={}){yield y(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:n,redirectUri:t}},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((n=>o.Ay.fetchConnectedPlugins().then((t=>{e(C(t)),n(t)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:g,isOfflineMode:e})}},2494:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(5932),i=t(7143),c=t(2279);const r={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>o.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:n,from:t})=>o.Ay.registerSite(e,n,t),CONNECT_USER:(0,i.createRegistryControl)((({resolveSelect:e})=>({from:n,redirectFunc:t,redirectUri:o}={})=>new Promise(((i,r)=>{e(c.A).getAuthorizationUrl(o).then((e=>{const o=t||(e=>window.location.assign(e)),c=new URL(e);n&&c.searchParams.set("from",encodeURIComponent(n));const r=c.toString();o(r),i(r)})).catch((e=>{r(e)}))}))))}},5051:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(7143),i=t(3935);const c=(0,o.combineReducers)({connectionStatus:(e={},n)=>{switch(n.type){case i.v_:return{...e,...n.connectionStatus};case i.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,n)=>n.type===i.ZO?n.isFetching:e,siteIsRegistering:(e=!1,n)=>n.type===i.Ij?n.isRegistering:e,userIsConnecting:(e=!1,n)=>n.type===i.DO?n.isConnecting:e,registrationError:(e,n)=>{switch(n.type){case i.LW:return!1;case i.A1:return n.registrationError;default:return e}},authorizationUrl:(e,n)=>n.type===i.XY?n.authorizationUrl:e,userConnectionData:(e,n)=>(n.type,e),connectedPlugins:(e={},n)=>n.type===i.gH?n.connectedPlugins:e,connectionErrors:(e={},n)=>n.type===i.Kl?n.connectionErrors:e,isOfflineMode:(e=!1,n)=>n.type===i.MU?n.isConnecting:e})},8019:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(7143),i=t(3935),c=t(2279);const r={...{getAuthorizationUrl:{isFulfilled:(e,...n)=>{const t=Boolean(e.authorizationUrl),i=(0,o.select)(c.A).hasFinishedResolution("getAuthorizationUrl",n);return t&&!i&&(0,o.dispatch)(c.A).finishResolution("getAuthorizationUrl",n),t},*fulfill(e){const n=yield i.Ay.fetchAuthorizationUrl(e);yield i.Ay.setAuthorizationUrl(n.authorizeUrl)}}}}},2676:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},8734:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(7143);class i{static store=null;static mayBeInit(e,n){null===i.store&&(i.store=(0,o.createReduxStore)(e,n),(0,o.register)(i.store))}}const c=i},2279:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o="jetpack-connection"},4293:(e,n,t)=>{"use strict";t.d(n,{a:()=>p.A});var o=t(7999),i=t(3935),c=t(2494),r=t(5051),s=t(8019),a=t(2676),l=t(8734),p=t(2279);const d=window.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection;d||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.A.mayBeInit(p.A,{__experimentalUseThunks:!0,reducer:r.A,actions:i.Ay,selectors:a.A,resolvers:s.A,controls:c.A,initialState:d||{}})},2365:(e,n,t)=>{"use strict";e.exports=t.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},9362:(e,n,t)=>{"use strict";e.exports=t.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},9074:e=>{"use strict";e.exports={consumer_slug:"connection_package"}},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},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},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},8579:e=>{function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";function o(e){var n,t,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var c=e.length;for(n=0;ni});const i=function(){for(var e,n,t=0,i="",c=arguments.length;t{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(e=n.currentScript.src),!e)){var o=n.getElementsByTagName("script");if(o.length)for(var i=o.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=o[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{CONNECTION_STORE_ID:()=>e.Hx,ConnectButton:()=>e.pK,ConnectScreen:()=>e.F0,ConnectScreenLayout:()=>e.Jl,ConnectScreenRequiredPlan:()=>e.nM,ConnectUser:()=>e.mX,ConnectionError:()=>e.Rc,ConnectionErrorNotice:()=>e.JC,DisconnectCard:()=>e.Ni,DisconnectDialog:()=>e.bo,InPlaceConnection:()=>e.xW,ManageConnectionDialog:()=>e.AY,getCalypsoOrigin:()=>e.ag,thirdPartyCookiesFallbackHelper:()=>e.d1,useConnection:()=>e.w5,useConnectionErrorNotice:()=>e.Sx,useProductCheckoutWorkflow:()=>e.cS,useRestoreConnection:()=>e.Ob});var e=t(8980)})(),o})()));
\ No newline at end of file
+__("There was an error reconnecting Jetpack. Error: %s","jetpack-connection"),a))):null;return p().createElement(p().Fragment,null,g,p().createElement(c.Notice,{status:"error",isDismissible:!1,className:u},p().createElement("div",{className:d.A.message},m,n),s&&p().createElement("a",{onClick:s,onKeyDown:s,className:d.A.button,href:"#"},__("Restore Connection","jetpack-connection"))))};u.propTypes={message:a().string.isRequired,restoreConnectionCallback:a().func,isRestoringConnection:a().bool,restoreConnectionError:a().string};const m=u},7499:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(3619),i=t.n(o),c=t(1609),r=t.n(c);t(7419);const s=e=>{const{title:n,value:t,description:o}=e;return r().createElement("div",{className:"jp-connection__disconnect-card card"},r().createElement("div",{className:"jp-connection__disconnect-card__card-content"},r().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},n),(t||o)&&r().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},r().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},t),r().createElement("div",{className:"jp-connection__disconnect-card__card-description"},o))))};s.propTypes={title:i().string,value:i().oneOfType([i().string,i().number]),description:i().string};const a=s},3269:(e,n,t)=>{"use strict";t.d(n,{A:()=>y});var o=t(372),i=t(5932),c=t(6439),r=t(6427),s=t(7723),a=t(3619),l=t.n(a),p=t(1609),d=t.n(p),u=(t(785),t(4472)),m=t(8503),g=t(412),h=t(8090);const __=s.__,_=e=>{const[n,t]=(0,p.useState)(!1),[s,a]=(0,p.useState)(!1),[l,_]=(0,p.useState)(!1),[y,f]=(0,p.useState)(!1),[b,k]=(0,p.useState)(!1),[C,E]=(0,p.useState)(!1),{apiRoot:v,apiNonce:j,connectedPlugins:w,title:A=__("Are you sure you want to disconnect?","jetpack-connection"),pluginScreenDisconnectCallback:N,onDisconnected:S,onError:R,disconnectStepComponent:T,context:O="jetpack-dashboard",connectedUser:I={},connectedSiteId:P,isOpen:D,onClose:x}=e;let U="";(0,c.jetpackConfigHas)("consumer_slug")&&(U=(0,c.jetpackConfigGet)("consumer_slug"));const F=(0,p.useMemo)((()=>({context:O,plugin:U})),[O,U]);(0,p.useEffect)((()=>{i.Ay.setApiRoot(v),i.Ay.setApiNonce(j)}),[v,j]),(0,p.useEffect)((()=>{I&&I.ID&&I.login&&o.A.initialize(I.ID,I.login)}),[I,I.ID,I.login]),(0,p.useEffect)((()=>{D&&o.A.tracks.recordEvent("jetpack_disconnect_dialog_open",F)}),[D,F]),(0,p.useEffect)((()=>{D&&(s?!s||y||b?y&&!b?o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},F)):b&&o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},F)):o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},F)):o.A.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},F)))}),[D,s,y,b,F]);const L=(0,p.useCallback)((()=>{i.Ay.disconnectSite().then((()=>{t(!1),a(!0)})).catch((e=>{t(!1),_(e),R&&R(e)}))}),[t,a,_,R]),B=(0,p.useCallback)(((e,n)=>{E(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);o.A.tracks.recordEvent("jetpack_disconnect_survey_submit",n),k(!0),E(!1)})).catch((e=>{o.A.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},n)),k(!0),E(!1)}))}),[E,k]),M=(0,p.useCallback)((e=>{e&&e.preventDefault(),_(!1),t(!0),"plugins"!==O?L():N&&N(e)}),[_,t,N,O,L]),$=(0,p.useCallback)((e=>o.A.tracks.recordEvent(e,F)),[F]),J=(0,p.useCallback)((()=>!(!I.ID||!P)),[I,P]),z=(0,p.useCallback)(((e,n,t)=>{if(t&&t.preventDefault(),!J())return void k(!0);const o={site_id:P,user_id:I.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:n||null}}},i=Object.assign({},F,{disconnect_reason:e});B(o,i)}),[B,k,J,P,I,F]),q=(0,p.useCallback)((e=>{e&&e.preventDefault(),S&&S(),x()}),[S,x]),G=(0,p.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]);return d().createElement(d().Fragment,null,D&&d().createElement(r.Modal,{title:"",contentLabel:A,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:x,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(s?" jp-connection__disconnect-dialog__success":"")},s?!s||y||b?y&&!b?d().createElement(g.A,{isSubmittingFeedback:C,onFeedBackProvided:z,onExit:q}):b?d().createElement(h.A,{onExit:q}):void 0:d().createElement(m.A,{canProvideFeedback:J(),onProvideFeedback:G,onExit:q}):d().createElement(u.A,{title:A,connectedPlugins:w,disconnectStepComponent:T,isDisconnecting:n,closeModal:x,onDisconnect:M,disconnectError:l,context:O,disconnectingPlugin:U,trackModalClick:$})))};_.propTypes={apiRoot:l().string.isRequired,apiNonce:l().string.isRequired,title:l().string,onDisconnected:l().func,onError:l().func,context:l().string,connectedPlugins:l().oneOfType([l().array,l().object]),pluginScreenDisconnectCallback:l().func,disconnectStepComponent:l().element,connectedUser:l().object,connectedSiteId:l().number,isOpen:l().bool,onClose:l().func};const y=_},8503:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(9121),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(2365);const __=r.__,u=e=>{const{onExit:n,canProvideFeedback:t,onProvideFeedback:r}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(o.A,{icon:"unlink",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},p().createElement("h1",null,(0,c.createInterpolateElement)(__("Jetpack has been
successfully disconnected.","jetpack-connection"),{br:p().createElement("br",null)})),t&&p().createElement(p().Fragment,null,p().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack-connection")),p().createElement("p",null,p().createElement(i.Button,{variant:"primary",onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack-connection"))),p().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("No thank you","jetpack-connection"))),!t&&p().createElement(p().Fragment,null,p().createElement("p",null,p().createElement(i.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection"))))))};u.propTypes={onExit:a().func,onProvideFeedback:a().func,canProvideFeedback:a().bool};const m=u},4472:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(3924),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(648);const __=r.__,u=e=>{const{title:n,isDisconnecting:t,onDisconnect:r,disconnectError:s,disconnectStepComponent:a,connectedPlugins:u,disconnectingPlugin:m,closeModal:g,context:h,trackModalClick:_}=e,y=(0,l.useCallback)((()=>_("jetpack_disconnect_dialog_click_learn_about")),[_]),f=(0,l.useCallback)((()=>_("jetpack_disconnect_dialog_click_support")),[_]),b=(0,l.useCallback)((()=>{_("jetpack_disconnect_dialog_click_stay_connected"),g()}),[_,g]),k=(0,l.useCallback)((e=>{_("jetpack_disconnect_dialog_click_disconnect"),r(e)}),[_,r]),C=(0,l.useCallback)((e=>{"Escape"!==e.key||t||b()}),[b,t]);(0,l.useEffect)((()=>(document.addEventListener("keydown",C,!1),()=>{document.removeEventListener("keydown",C,!1)})),[]);return p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},n),p().createElement(d.A,{connectedPlugins:u,disconnectingPlugin:m}),a,(()=>{if(!(u&&Object.keys(u).filter((e=>e!==m)).length)&&!a)return p().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack-connection"),p().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack-connection")))})()),p().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},p().createElement("div",{className:"jp-row"},p().createElement("div",{className:"lg-col-span-8 md-col-span-9 sm-col-span-4"},p().createElement("p",null,(0,c.createInterpolateElement)(__("Need help? Learn more about the Jetpack connection or contact Jetpack support.","jetpack-connection"),{strong:p().createElement("strong",null),jpConnectionInfoLink:p().createElement(i.ExternalLink,{href:(0,o.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__disconnect-dialog__link",onClick:y}),jpSupportLink:p().createElement(i.ExternalLink,{href:(0,o.A)("jetpack-support"),className:"jp-connection__disconnect-dialog__link",onClick:f})}))),p().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-4 md-col-span-7 sm-col-span-4"},p().createElement(i.Button,{variant:"primary",disabled:t,onClick:b,className:"jp-connection__disconnect-dialog__btn-dismiss"},"plugins"===h?__("Cancel","jetpack-connection"):__("Stay connected","jetpack-connection",0)),(()=>{let e=__("Disconnect","jetpack-connection");return t?e=__("Disconnecting…","jetpack-connection"):"plugins"===h&&(e=__("Deactivate","jetpack-connection")),p().createElement(i.Button,{variant:"primary",disabled:t,onClick:k,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),s&&p().createElement("p",{className:"jp-connection__disconnect-dialog__error"},s)))};u.propTypes={title:a().string,isDisconnecting:a().bool,onDisconnect:a().func,disconnectError:a().bool,disconnectStepComponent:a().element,connectedPlugins:a().array,disconnectingPlugin:a().string,closeModal:a().func,context:a().string,trackModalClick:a().func};const m=u},412:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r),a=(t(255),t(2951));const __=o.__,l=e=>{const{onExit:n,onFeedBackProvided:t,isSubmittingFeedback:o}=e;return s().createElement("div",{className:"jp-connection__disconnect-dialog__content"},s().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack-connection")),s().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack-connection")),s().createElement(a.A,{onSubmit:t,isSubmittingFeedback:o}),s().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:n},__("Skip for now","jetpack-connection")))};l.PropTypes={onExit:c().func,onFeedBackProvided:c().func,isSubmittingFeedback:c().bool};const p=l},8090:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var o=t(9121),i=t(6427),c=t(6087),r=t(7723),s=t(3619),a=t.n(s),l=t(1609),p=t.n(l),d=t(9362);const __=r.__,u=e=>{const{onExit:n}=e;return p().createElement("div",{className:"jp-connection__disconnect-dialog__content"},p().createElement(o.A,{format:"vertical",imageUrl:d}),p().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},p().createElement("h1",null,__("Thank you!","jetpack-connection")),p().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,c.createInterpolateElement)(__("Your answer has been submitted.
Thanks for your input on how we can improve Jetpack.","jetpack-connection"),{br:p().createElement("br",null)})),p().createElement(i.Button,{variant:"primary",onClick:n,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack-connection"))))};u.PropTypes={onExit:a().func,assetBaseUrl:a().string};const m=u},2951:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var o=t(6427),i=t(7723),c=t(3619),r=t.n(c),s=t(1609),a=t.n(s),l=t(8233);const __=i.__,p=e=>{const{onSubmit:n,isSubmittingFeedback:t}=e,[i,c]=(0,s.useState)(),[r,p]=(0,s.useState)(),d=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack-connection")},{id:"not-working",answerText:__("I can't get it to work.","jetpack-connection")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack-connection")},{id:"buggy",answerText:__("It's buggy.","jetpack-connection")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack-connection")}],u="another-reason",m=(0,s.useCallback)((()=>{n(i,i===u?r:"")}),[n,u,r,i]),g=(0,s.useCallback)((e=>{const n=e.target.value;e.stopPropagation(),p(n)}),[p]),h=e=>e===i?"jp-connect__disconnect-survey-card--selected":"",_=(0,s.useCallback)(((e,n)=>{switch(n.key){case"Enter":case"Space":case"Spacebar":case" ":c(e)}}),[c]);return a().createElement(a().Fragment,null,a().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},d.map((e=>a().createElement(l.A,{key:e.id,id:e.id,onClick:c,onKeyDown:_,className:"card jp-connect__disconnect-survey-card "+h(e.id)},a().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),a().createElement(l.A,{id:u,key:u,onClick:c,onKeyDown:_,className:"card jp-connect__disconnect-survey-card "+h(u)},a().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack-connection")," ",a().createElement("input",{placeholder:__("share your experience","jetpack-connection"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:r,onChange:g,maxLength:1e3})))),a().createElement("p",null,a().createElement(o.Button,{disabled:!i||t,variant:"primary",onClick:m,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},t?__("Submitting…","jetpack-connection"):__("Submit Feedback","jetpack-connection",0))))};p.PropTypes={onSubmit:r().func,isSubmittingFeedback:r().bool};const d=p},8233:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(1609),i=t.n(o);t(255);const c=e=>{const{id:n,onClick:t,onKeyDown:c,children:r,className:s}=e,a=(0,o.useCallback)((()=>{t(n)}),[n,t]),l=(0,o.useCallback)((e=>{c(n,e)}),[n,c]);return i().createElement("div",{tabIndex:"0",role:"button",onClick:a,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+s},r)}},7018:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(7723),i=t(3619),c=t.n(i),r=t(1609),s=t.n(r);t(3732);const __=o.__,a=e=>{const{title:n,isLoading:t=!1,width:o="100%",displayTOS:i,scrollToIframe:c=!1,connectUrl:a,onComplete:l,onThirdPartyCookiesBlocked:p,location:d}=e;let{height:u="300"}=e;const m=(0,r.useRef)(void 0),g=(0,r.useRef)(void 0),h=e=>{if(g.current&&e.source===g.current.contentWindow)switch(e.data){case"close":window.removeEventListener("message",h),l&&l();break;case"wpcom_nocookie":p&&p()}};(0,r.useEffect)((()=>{c&&window.scrollTo(0,m.current.offsetTop-10),window.addEventListener("message",h)}));let _=a.replace("authorize/","authorize_iframe/");return _.includes("?")||(_+="?"),i&&(_+="&display-tos",u=(parseInt(u)+50).toString()),_+="&iframe_height="+parseInt(u),d&&(_+="&iframe_source="+d),s().createElement("div",{className:"dops-card fade-in jp-iframe-wrap",ref:m},s().createElement("h1",null,n),t?s().createElement("p",null,__("Loading…","jetpack-connection")):s().createElement("iframe",{title:n,width:o,height:u,src:_,ref:g}))};a.propTypes={title:c().string.isRequired,isLoading:c().bool,width:c().string,height:c().string,connectUrl:c().string.isRequired,displayTOS:c().bool.isRequired,scrollToIframe:c().bool,onComplete:c().func,onThirdPartyCookiesBlocked:c().func,location:c().string};const l=a},4981:(e,n,t)=>{"use strict";t.d(n,{A:()=>C});var o=t(7425),i=t(3924),c=t(1112),r=t(6427),s=t(6087),a=t(7723),l=t(7750),p=t(1386),d=t(8391),u=t(2231),m=t(3619),g=t.n(m),h=t(1609),_=t.n(h),y=t(3269);t(2057);const __=a.__,f=e=>{const{title:n=__("Manage your Jetpack connection","jetpack-connection"),apiRoot:t,apiNonce:c,connectedPlugins:s,onDisconnected:a,context:l="jetpack-dashboard",connectedUser:p={},connectedSiteId:d,isOpen:u=!1,onClose:m}=e,[g,f]=(0,h.useState)(!1),C=(0,h.useCallback)((e=>{e&&e.preventDefault(),f(!0)}),[f]),E=(0,h.useCallback)((e=>{e&&e.preventDefault(),f(!1)}),[f]);return _().createElement(_().Fragment,null,u&&_().createElement(_().Fragment,null,_().createElement(r.Modal,{title:"",contentLabel:n,aria:{labelledby:"jp-connection__manage-dialog__heading"},shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__manage-dialog"},_().createElement("div",{className:"jp-connection__manage-dialog__content"},_().createElement("h1",{id:"jp-connection__manage-dialog__heading"},n),_().createElement(o.Ay,{className:"jp-connection__manage-dialog__large-text"},__("At least one user must be connected for your Jetpack products to work properly.","jetpack-connection")),_().createElement(b,{title:__("Transfer ownership to another admin","jetpack-connection"),link:(0,i.A)("calypso-settings-manage-connection",{site:window?.myJetpackInitialState?.siteSuffix}),key:"transfer",action:"transfer"}),_().createElement(b,{title:__("Disconnect Jetpack","jetpack-connection"),onClick:C,key:"disconnect",action:"disconnect"})),_().createElement(k,{onClose:m})),_().createElement(y.A,{apiRoot:t,apiNonce:c,onDisconnected:a,connectedPlugins:s,connectedSiteId:d,connectedUser:p,isOpen:g,onClose:E,context:l})))},b=({title:e,onClick:n=()=>null,link:t="#",action:o})=>_().createElement("div",{className:"jp-connection__manage-dialog__action-card card"},_().createElement("div",{className:"jp-connection__manage-dialog__action-card__card-content"},_().createElement("a",{href:t,className:(0,u.A)("jp-connection__manage-dialog__action-card__card-headline",o),onClick:n},e,_().createElement(l.A,{icon:"disconnect"===o?p.A:d.A,className:"jp-connection__manage-dialog__action-card__icon"})))),k=({onClose:e})=>_().createElement("div",{className:"jp-row jp-connection__manage-dialog__actions"},_().createElement("div",{className:"jp-connection__manage-dialog__text-wrap lg-col-span-9 md-col-span-7 sm-col-span-3"},_().createElement(o.Ay,null,(0,s.createInterpolateElement)(__("Need help? Learn more about the Jetpack connection or contact Jetpack support","jetpack-connection"),{strong:_().createElement("strong",null),connectionInfoLink:_().createElement(r.ExternalLink,{href:(0,i.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),className:"jp-connection__manage-dialog__link"}),supportLink:_().createElement(r.ExternalLink,{href:(0,i.A)("jetpack-support"),className:"jp-connection__manage-dialog__link"})}))),_().createElement("div",{className:"jp-connection__manage-dialog__button-wrap lg-col-span-3 md-col-span-1 sm-col-span-1"},_().createElement(c.A,{weight:"regular",variant:"secondary",onClick:e,className:"jp-connection__manage-dialog__btn-dismiss"},__("Cancel","jetpack-connection"))));f.propTypes={title:g().string,apiRoot:g().string.isRequired,apiNonce:g().string.isRequired,connectedPlugins:g().oneOfType([g().array,g().object]),onDisconnected:g().func,context:g().string,connectedUser:g().object,connectedSiteId:g().number,isOpen:g().bool,onClose:g().func};const C=f},9660:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var o=t(5932),i=t(7999),c=t(7143),r=t(1609),s=t(4293);const a=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{},l=({registrationNonce:e=a.registrationNonce,apiRoot:n=a.apiRoot,apiNonce:t=a.apiNonce,redirectUri:i,autoTrigger:l,from:p,skipUserConnection:d}={})=>{const{registerSite:u,connectUser:m,refreshConnectedPlugins:g}=(0,c.useDispatch)(s.a),h=(0,c.useSelect)((e=>e(s.a).getRegistrationError())),{siteIsRegistering:_,userIsConnecting:y,userConnectionData:f,connectedPlugins:b,connectionErrors:k,isRegistered:C,isUserConnected:E,hasConnectedOwner:v,isOfflineMode:j}=(0,c.useSelect)((e=>({siteIsRegistering:e(s.a).getSiteIsRegistering(),userIsConnecting:e(s.a).getUserIsConnecting(),userConnectionData:e(s.a).getUserConnectionData(),connectedPlugins:e(s.a).getConnectedPlugins(),connectionErrors:e(s.a).getConnectionErrors(),isOfflineMode:e(s.a).getIsOfflineMode(),...e(s.a).getConnectionStatus()}))),w=()=>d?i?(window.location=i,Promise.resolve(i)):Promise.resolve():m({from:p,redirectUri:i}),A=n=>(n&&n.preventDefault(),C?w():u({registrationNonce:e,redirectUri:i,from:p}).then((()=>w())));return(0,r.useEffect)((()=>{o.Ay.setApiRoot(n),o.Ay.setApiNonce(t)}),[n,t]),(0,r.useEffect)((()=>{!l||_||y||A()}),[]),{handleRegisterSite:A,handleConnectUser:w,refreshConnectedPlugins:g,isRegistered:C,isUserConnected:E,siteIsRegistering:_,userIsConnecting:y,registrationError:h,userConnectionData:f,hasConnectedOwner:v,connectedPlugins:b,connectionErrors:k,isOfflineMode:j}}},3765:(e,n,t)=>{"use strict";t.d(n,{A:()=>i});var o=t(7999);function i(){const e=("undefined"!=typeof window&&window?.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection)?.calypsoEnv;switch(e){case"development":return"http://calypso.localhost:3000/";case"wpcalypso":return"https://wpcalypso.wordpress.com/";case"horizon":return"https://horizon.wordpress.com/";default:return"https://wordpress.com/"}}},4617:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o=e=>{window.location.replace(e)}},9628:(e,n,t)=>{"use strict";t.d(n,{A:()=>r,R:()=>s});var o=t(7088),i=t(9660),c=t(1713);function r(){const{connectionErrors:e}=(0,i.A)({}),n=Object.values(e).shift(),t=n&&Object.values(n).length&&Object.values(n).shift().error_message;return{hasConnectionError:Boolean(t),connectionErrorMessage:t}}const s=()=>{const{hasConnectionError:e,connectionErrorMessage:n}=r(),{restoreConnection:t,isRestoringConnection:i,restoreConnectionError:s}=(0,c.A)();return e?React.createElement(o.A,{isRestoringConnection:i,restoreConnectionError:s,restoreConnectionCallback:t,message:n}):null}},2558:(e,n,t)=>{"use strict";t.d(n,{A:()=>f});var o=t(5932),i=t(3765),c=t(7999),r=t(7143),s=t(4804),a=t.n(s),l=t(1609),p=t(9660),d=t(4293);const u=a()("jetpack:connection:useProductCheckoutWorkflow"),{registrationNonce:m,apiRoot:g,apiNonce:h,siteSuffix:_}=window?.JP_CONNECTION_INITIAL_STATE||(0,c.getScriptData)()?.connection||{},y=()=>"undefined"!=typeof window?window?.myJetpackInitialState?.adminUrl:null;function f({productSlug:e,redirectUrl:n,siteSuffix:t=_,adminUrl:c=y(),connectAfterCheckout:s=!1,siteProductAvailabilityHandler:a=null,quantity:f=null,from:b,useBlogIdSuffix:k=!1}={}){u("productSlug is %s",e),u("redirectUrl is %s",n),u("siteSuffix is %s",t),u("from is %s",b);const[C,E]=(0,l.useState)(!1),{registerSite:v}=(0,r.useDispatch)(d.a),j=(0,r.useSelect)((e=>e(d.a).getBlogId()),[]);u("blogID is %s",j??"undefined"),k=k&&!!j;const{isUserConnected:w,isRegistered:A,handleConnectUser:N}=(0,p.A)({redirectUri:n,from:b}),S=(0,l.useMemo)((()=>{const o=(0,i.A)(),r=(!A||!w)&&s,a=r?"checkout/jetpack/":`checkout/${k?j.toString():t}/`,l=new URL(`${o}${a}${e}${null!=f?`:-q-${f}`:""}`);return r?(l.searchParams.set("connect_after_checkout",!0),l.searchParams.set("admin_url",c),l.searchParams.set("from_site_slug",t)):l.searchParams.set("site",t),l.searchParams.set("source",b),l.searchParams.set("redirect_to",n),w||l.searchParams.set("unlinked","1"),l}),[A,w,s,t,f,e,b,n,c,k,j]);u("isRegistered is %s",A),u("isUserConnected is %s",w),u("connectAfterCheckout is %s",s),u("checkoutUrl is %s",S);const R=(e=null)=>Promise.resolve(a&&a()).then((n=>{if(e&&S.searchParams.set("redirect_to",e),n)return u("handleAfterRegistration: Site has a product associated"),N();u("handleAfterRegistration: Site does not have a product associated. Redirecting to checkout %s",S),window.location.href=S}));return(0,l.useEffect)((()=>{o.Ay.setApiRoot(g),o.Ay.setApiNonce(h)}),[]),{run:(e,t=null)=>(e&&e.preventDefault(),E(!0),s?((e=null)=>{e&&S.searchParams.set("redirect_to",e),u("Redirecting to connectAfterCheckout flow: %s",S),window.location.href=S})(t):A?R(t):void v({registrationNonce:m,redirectUri:n}).then((()=>R(t)))),isRegistered:A,hasCheckoutStarted:C}}},1713:(e,n,t)=>{"use strict";t.d(n,{A:()=>p});var o=t(5932),i=t(7999),c=t(7143),r=t(1609),s=t(4293);const{apiRoot:a,apiNonce:l}=window?.JP_CONNECTION_INITIAL_STATE||(0,i.getScriptData)()?.connection||{};function p(){const[e,n]=(0,r.useState)(!1),[t,i]=(0,r.useState)(null),{disconnectUserSuccess:p,setConnectionErrors:d}=(0,c.useDispatch)(s.a);return(0,r.useEffect)((()=>{o.Ay.setApiRoot(a),o.Ay.setApiNonce(l)}),[]),{restoreConnection:(e=!0)=>(n(!0),i(null),o.Ay.reconnect().then((n=>("in_progress"===n.status?(p(),d({}),e&&(window.location.href="/wp-admin/admin.php?page=my-jetpack#/connection")):window.location.reload(),n))).catch((e=>{throw i(e),n(!1),e}))),isRestoringConnection:e,restoreConnectionError:t}}},8980:(e,n,t)=>{"use strict";t.d(n,{AY:()=>g.A,F0:()=>o.A,Hx:()=>y.a,JC:()=>l.A,Jl:()=>i.A,Ni:()=>u.A,Ob:()=>b.A,Rc:()=>p.R,Sx:()=>p.A,ag:()=>_.A,bo:()=>d.A,cS:()=>f.A,d1:()=>h.A,mX:()=>a.A,nM:()=>c.A,pK:()=>r.A,w5:()=>m.A,xW:()=>s.A});var o=t(6212),i=t(2668),c=t(7945),r=t(8421),s=t(7018),a=t(7840),l=t(7088),p=t(9628),d=t(3269),u=t(7499),m=t(9660),g=t(4981),h=t(4617),_=t(3765),y=t(4293),f=t(2558),b=t(1713)},3935:(e,n,t)=>{"use strict";t.d(n,{A1:()=>a,Ay:()=>E,DO:()=>s,Ij:()=>r,Kl:()=>m,LW:()=>l,MU:()=>g,XY:()=>p,ZO:()=>c,dz:()=>d,gH:()=>u,v_:()=>i});var o=t(5932);const i="SET_CONNECTION_STATUS",c="SET_CONNECTION_STATUS_IS_FETCHING",r="SET_SITE_IS_REGISTERING",s="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",l="CLEAR_REGISTRATION_ERROR",p="SET_AUTHORIZATION_URL",d="DISCONNECT_USER_SUCCESS",u="SET_CONNECTED_PLUGINS",m="SET_CONNECTION_ERRORS",g="SET_IS_OFFLINE_MODE",h=e=>({type:i,connectionStatus:e}),_=e=>({type:r,isRegistering:e}),y=e=>({type:s,isConnecting:e}),f=e=>({type:a,registrationError:e}),b=()=>({type:l}),k=e=>({type:p,authorizationUrl:e}),C=e=>({type:u,connectedPlugins:e});const E={setConnectionStatus:h,setConnectionStatusIsFetching:e=>({type:c,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:_,setUserIsConnecting:y,setRegistrationError:f,clearRegistrationError:b,setAuthorizationUrl:k,registerSite:function*({registrationNonce:e,redirectUri:n,from:t=""}){yield b(),yield _(!0);try{const o=yield{type:"REGISTER_SITE",registrationNonce:e,redirectUri:n,from:t};return yield h({isRegistered:!0}),yield k(o.authorizeUrl),yield _(!1),Promise.resolve(o)}catch(e){return yield f(e),yield _(!1),Promise.reject(e)}},connectUser:function*({from:e,redirectFunc:n,redirectUri:t}={}){yield y(!0),yield{type:"CONNECT_USER",from:e,redirectFunc:n,redirectUri:t}},disconnectUserSuccess:()=>({type:d}),setConnectedPlugins:C,refreshConnectedPlugins:()=>async({dispatch:e})=>await new Promise((n=>o.Ay.fetchConnectedPlugins().then((t=>{e(C(t)),n(t)})))),setConnectionErrors:e=>({type:m,connectionErrors:e}),setIsOfflineMode:e=>({type:g,isOfflineMode:e})}},2494:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(5932),i=t(7143),c=t(2279);const r={FETCH_AUTHORIZATION_URL:({redirectUri:e})=>o.Ay.fetchAuthorizationUrl(e),REGISTER_SITE:({registrationNonce:e,redirectUri:n,from:t})=>o.Ay.registerSite(e,n,t),CONNECT_USER:(0,i.createRegistryControl)((({resolveSelect:e})=>({from:n,redirectFunc:t,redirectUri:o}={})=>new Promise(((i,r)=>{e(c.A).getAuthorizationUrl(o).then((e=>{const o=t||(e=>window.location.assign(e)),c=new URL(e);n&&c.searchParams.set("from",encodeURIComponent(n));const r=c.toString();o(r),i(r)})).catch((e=>{r(e)}))}))))}},5051:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(7143),i=t(3935);const c=(0,o.combineReducers)({connectionStatus:(e={},n)=>{switch(n.type){case i.v_:return{...e,...n.connectionStatus};case i.dz:return{...e,isUserConnected:!1}}return e},connectionStatusIsFetching:(e=!1,n)=>n.type===i.ZO?n.isFetching:e,siteIsRegistering:(e=!1,n)=>n.type===i.Ij?n.isRegistering:e,userIsConnecting:(e=!1,n)=>n.type===i.DO?n.isConnecting:e,registrationError:(e,n)=>{switch(n.type){case i.LW:return!1;case i.A1:return n.registrationError;default:return e}},authorizationUrl:(e,n)=>n.type===i.XY?n.authorizationUrl:e,userConnectionData:(e,n)=>(n.type,e),connectedPlugins:(e={},n)=>n.type===i.gH?n.connectedPlugins:e,connectionErrors:(e={},n)=>n.type===i.Kl?n.connectionErrors:e,isOfflineMode:(e=!1,n)=>n.type===i.MU?n.isConnecting:e})},8019:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(7143),i=t(3935),c=t(2279);const r={...{getAuthorizationUrl:{isFulfilled:(e,...n)=>{const t=Boolean(e.authorizationUrl),i=(0,o.select)(c.A).hasFinishedResolution("getAuthorizationUrl",n);return t&&!i&&(0,o.dispatch)(c.A).finishResolution("getAuthorizationUrl",n),t},*fulfill(e){const n=yield i.Ay.fetchAuthorizationUrl(e);yield i.Ay.setAuthorizationUrl(n.authorizeUrl)}}}}},2676:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o={...{getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:()=>!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1,getUserConnectionData:e=>e.userConnectionData||!1,getConnectedPlugins:e=>e.connectedPlugins||[],getConnectionErrors:e=>e.connectionErrors||[],getIsOfflineMode:e=>e.isOfflineMode||!1,getWpcomUser:e=>e?.userConnectionData?.currentUser?.wpcomUser,getBlogId:e=>e?.userConnectionData?.currentUser?.blogId}}},8734:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var o=t(7143);class i{static store=null;static mayBeInit(e,n){null===i.store&&(i.store=(0,o.createReduxStore)(e,n),(0,o.register)(i.store))}}const c=i},2279:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});const o="jetpack-connection"},4293:(e,n,t)=>{"use strict";t.d(n,{a:()=>p.A});var o=t(7999),i=t(3935),c=t(2494),r=t(5051),s=t(8019),a=t(2676),l=t(8734),p=t(2279);const d=window.JP_CONNECTION_INITIAL_STATE||(0,o.getScriptData)()?.connection;d||console.error("Jetpack Connection package: Initial state is missing. Check documentation to see how to use the Connection composer package to set up the initial state."),l.A.mayBeInit(p.A,{__experimentalUseThunks:!0,reducer:r.A,actions:i.Ay,selectors:a.A,resolvers:s.A,controls:c.A,initialState:d||{}})},2365:(e,n,t)=>{"use strict";e.exports=t.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},9362:(e,n,t)=>{"use strict";e.exports=t.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},9074:e=>{"use strict";e.exports={consumer_slug:"connection_package"}},7999:e=>{"use strict";e.exports=window.JetpackScriptDataModule},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},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},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},8579:e=>{function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var n=1;n{"use strict";function o(e){var n,t,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var c=e.length;for(n=0;ni});const i=function(){for(var e,n,t=0,i="",c=arguments.length;t{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(e=n.currentScript.src),!e)){var o=n.getElementsByTagName("script");if(o.length)for(var i=o.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=o[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})();var o={};return(()=>{"use strict";t.r(o),t.d(o,{CONNECTION_STORE_ID:()=>e.Hx,ConnectButton:()=>e.pK,ConnectScreen:()=>e.F0,ConnectScreenLayout:()=>e.Jl,ConnectScreenRequiredPlan:()=>e.nM,ConnectUser:()=>e.mX,ConnectionError:()=>e.Rc,ConnectionErrorNotice:()=>e.JC,DisconnectCard:()=>e.Ni,DisconnectDialog:()=>e.bo,InPlaceConnection:()=>e.xW,ManageConnectionDialog:()=>e.AY,getCalypsoOrigin:()=>e.ag,thirdPartyCookiesFallbackHelper:()=>e.d1,useConnection:()=>e.w5,useConnectionErrorNotice:()=>e.Sx,useProductCheckoutWorkflow:()=>e.cS,useRestoreConnection:()=>e.Ob});var e=t(8980)})(),o})()));
\ No newline at end of file
diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md
index 6685d607..2d7af914 100644
--- a/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md
+++ b/jetpack_vendor/automattic/jetpack-my-jetpack/CHANGELOG.md
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [4.35.13-alpha] - unreleased
+
+This is an alpha version! The changes listed here are not final.
+
## [4.35.12] - 2024-10-10
### Changed
- Update Boost's pricing table to include latest feature list. [#39130]
@@ -1772,6 +1776,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Created package
+[4.35.13-alpha]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.12...4.35.13-alpha
[4.35.12]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.11...4.35.12
[4.35.11]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.10...4.35.11
[4.35.10]: https://github.com/Automattic/jetpack-my-jetpack/compare/4.35.9...4.35.10
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 b4f0db2a..a3ea3764 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' => 'a00dd480dcda312e75e8');
+ 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' => '3474a740a76ca6af140b');
diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js
index a1dd3abc..f937d3d1 100644
--- a/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js
+++ b/jetpack_vendor/automattic/jetpack-my-jetpack/build/index.js
@@ -18,7 +18,7 @@ __("Connected as %1$s (Owner).","jetpack-my-jetpack"),n.currentUser?.wpcomUser?.
__("Connected as %1$s.","jetpack-my-jetpack"),n.currentUser?.wpcomUser?.display_name):__("User connected.","jetpack-my-jetpack"),{onClick:c,actionText:__("Manage","jetpack-my-jetpack"),text:s,status:"success"}})({hasProductsThatRequireUserConnection:D,hasUserConnectionBrokenModules:q,isUserConnected:S,userConnectionData:M,openManageUserConnectionDialog:W,handleConnectUser:X});return React.createElement("div",{id:"dylan",className:j.A["connection-status-card"]},React.createElement(n.H3,null,o),React.createElement(n.Ay,{variant:"body",mb:3},`${u} `,React.createElement(c.A,{href:(0,r.A)("why-the-wordpress-com-connection-is-important-for-jetpack"),variant:"link",weight:"regular",isExternalLink:!0,onClick:Y},__("Learn more about connections","jetpack-my-jetpack"))),React.createElement("div",{className:j.A.status},React.createElement("img",{src:k,alt:"",className:j.A.cloud}),React.createElement("div",{className:(0,p.A)(j.A.line,z?"":J?j.A.error:j.A.warning)}),React.createElement("div",{className:j.A["avatar-wrapper"]},React.createElement("img",{src:z?b:A,alt:"",className:j.A.jetpack}),(D||q)&&React.createElement("img",{src:S&&O?O:y,alt:"",className:j.A.avatar})),"success"===ee?.status&&ee?.actionText&&React.createElement("div",{className:j.A["connect-action"]},React.createElement(_,{onClick:ee?.onClick,actionText:ee?.actionText}))),React.createElement("div",null,React.createElement(R,ee),z&&React.createElement(R,te),S&&M?.connectionOwner&&!M.currentUser?.isMaster&&React.createElement(R,{text:(0,l.sprintf)(/* translators: placeholder is the username of the Jetpack connection owner */
__("Also connected: %s (Owner).","jetpack-my-jetpack"),M.connectionOwner)})),React.createElement(s.ManageConnectionDialog,{apiRoot:e,apiNonce:t,onDisconnected:Z,connectedPlugins:d,connectedSiteId:C,connectedUser:M,isOpen:V,onClose:K,context:x}))}},3593:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(8837),c=a(4923),r=a(8117),s=a(1870),i=a(3981),l=a(4596);function o(){const{apiRoot:e,apiNonce:t,topJetpackMenuItemUrl:a,connectedPlugins:o}=(0,s.A)(),u=(0,i.A)(n.NM.Connection),m=(0,c.V)(),d=(0,r.A)(m);return React.createElement(l.A,{apiRoot:e,apiNonce:t,redirectUri:a,onConnectUser:u,connectedPlugins:o,requiresUserConnection:d.length>0,onDisconnected:()=>document?.location?.reload(!0)})}},5167:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(5918),c=a(8509),r=a(7425),s=a(6427),i=a(6087),l=a(7723),o=a(2778),u=a(1609),m=a(3804),d=a(4526),p=a(3542),h=a(9674),g=a(6225);const __=l.__,_n=l._n,v=({welcomeFlowExperimentVariation:e})=>{const{recordEvent:t}=(0,d.A)(),{recommendedModules:a,isFirstRun:l,redoEvaluation:v,removeEvaluationResult:f}=(0,m.A)(),w="treatment"===e,E=(0,u.useCallback)((()=>{t("jetpack_myjetpack_evaluation_recommendations_explore_all_plans_click")}),[t]),k=_n("Our recommendation for you","Our recommendations for you",a.length,"jetpack-my-jetpack"),y=__("Recommended for your site","jetpack-my-jetpack"),A=__("Redo","jetpack-my-jetpack"),b=__("Customize recommendations","jetpack-my-jetpack"),j=__("Dismiss","jetpack-my-jetpack"),R=__("Close","jetpack-my-jetpack"),_=__("Start over? Analyze again for fresh recommendations!","jetpack-my-jetpack"),C=__("Find your perfect match by letting us know what you’re looking for!","jetpack-my-jetpack");return(0,u.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:g.A.title},w&&l?y:k),!w&&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:g.A["dropdown-menu"]},popoverProps:{position:"bottom left"},icon:o.A,label:__("Recommendations menu","jetpack-my-jetpack"),controls:[{title:w&&l?b:A,onClick:v},{title:w&&l?R:j,onClick:f}]})))),React.createElement(c.A,null,React.createElement(n.A,{tagName:"ul",className:g.A["recommendations-list"],horizontalGap:4,horizontalSpacing:2,fluid:!0},a.map((e=>{const t=h.z[e];return t&&React.createElement(c.A,{tagName:"li",key:e,lg:4},React.createElement(t,{recommendation:!0}))})))),w&&React.createElement(c.A,null,React.createElement(s.Flex,null,React.createElement(s.FlexItem,null,React.createElement(r.Ay,{variant:"body"},(0,i.createInterpolateElement)(l?C:_,{link:React.createElement(s.Button,{variant:"link",className:g.A["evaluation-footer-link"],onClick:v})}))),React.createElement(s.FlexItem,null,React.createElement(r.Ay,{variant:"body"},React.createElement(s.Button,{variant:"link",className:g.A["evaluation-footer-link"],href:(0,p.A)(),onClick:E},__("Explore all Jetpack plans","jetpack-my-jetpack")))))))}},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),S=a(5055);const M=({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()({customClass:S.A.cta},e))));return React.createElement("div",{className:(0,p.A)(S.A.notice,{[S.A["bigger-than-medium"]]:l})},React.createElement(i.A,c()({hideCloseButton:!0},a,{title:t,actions:o}),React.createElement("div",{className:S.A.message},e)))};function L(){const[e,t]=(0,h.useState)({isLoading:!1,variation:"control"});(0,b.A)();const{redBubbleAlerts:a}=(0,E.A$)(),{jetpackManage:n={},adminUrl:c}=(0,E.A$)(),{isWelcomeBannerVisible:r}=(0,k.A)(),{isSectionVisible:s}=(0,f.A)(),{siteIsRegistered:i}=(0,A.A)(),{currentNotice:p}=(0,h.useContext)(g.g),{message:L,title:V,options:P}=p||{},{data:H,isLoading:I}=(0,w.A)({name:v._,query:{path:v.rR}}),{data:B,isLoading:O}=(0,w.A)({name:v.nw,query:{path:v.O2}}),T=H?.is_available,F=B?.user?.jwt,U=!O&&!I&&T&&F,D="1"===(0,E.A$)("userIsNewToJetpack"),{recordEvent:q}=(0,y.A)(),[J,G]=(0,h.useState)(!1);return(0,h.useLayoutEffect)((()=>{q("jetpack_myjetpack_page_view",{red_bubble_alerts:Object.keys(a).join(",")})}),[q,a]),window.location.hash.includes("?reload=true")&&(window.history.replaceState(null,"",window.location.href.replace("?reload=true","")),window.location.reload(),G(!0)),J?null:React.createElement(l.A,{siteAdminUrl:c},React.createElement("hr",{className:S.A.separator}),React.createElement(_.A,null),!D&&React.createElement(o.A,{horizontalSpacing:0},React.createElement(u.A,null,React.createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"}))),r?React.createElement(z.A,{welcomeFlowExperiment:e,setWelcomeFlowExperiment:t},L&&i&&React.createElement(M,{message:L,title:V,options:P})):L&&React.createElement(o.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(u.A,null,React.createElement(M,{message:L,title:V,options:P}))),!r&&s&&React.createElement(R.A,{welcomeFlowExperimentVariation:e.variation}),React.createElement(N.A,null),n.isEnabled&&React.createElement(o.A,{horizontalSpacing:6,horizontalGap:L?3:6},React.createElement(u.A,null,React.createElement(C.A,{isAgencyAccount:n.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},React.createElement(j.A,null)))),U&&React.createElement(d.A,{jwt_token:F}))}},3958:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(7425),c=a(1112),r=a(7723),s=a(1609),i=a(8837),l=a(1504),o=a(280),u=a(8242),m=a(4526),d=a(1870),p=a(3981),h=a(6256),g=a(3542),v=a(8252),f=a(1651),w=a(4334);const __=r.__,_n=r._n;function E({purchase:e={}}){const{product_name:t}=e;return React.createElement(React.Fragment,null,React.createElement(n.hE,null,t),React.createElement(k,e))}function k(e){const{expiry_message:t,product_name:a,subscribed_date:c}=e;return(0,v.b)(e)?React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},React.createElement("span",{className:w.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(f.k,{productName:a,giftedDate:c})):React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},t)}function y({numberOfPurchases:e=0}){return React.createElement(React.Fragment,null,React.createElement(n.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(n.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function A({numberOfPurchases:e}){const{recordEvent:t}=(0,m.A)(),{isUserConnected:a}=(0,d.A)(),n=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),r=__("Purchase a plan","jetpack-my-jetpack"),l=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),o=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),v=(0,p.A)(i.NM.Connection),f=(0,s.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||v()}),[v,a,t]);let E=__("Activate a license","jetpack-my-jetpack");a||(E=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:k="",adminUrl:y=""}=(0,u.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:l,href:(0,h.A)(),weight:"regular",variant:"link",isExternalLink:!0},n)),React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:o,href:(0,g.A)(),weight:"regular",variant:"link",isExternalLink:!0},r)),k&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:f,href:a?`${y}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},E)))}function b(){const e=!!(0,u.A$)("userIsAdmin"),{isSiteConnected:t}=(0,d.A)(),{data:a,isLoading:n,isError:c}=(0,o.A)({name:l.Ck,query:{path:l.tb},options:{enabled:t}}),r=a&&!n&&!c,s=r?a.length:0;return React.createElement("div",{className:w.A.container},React.createElement(y,{numberOfPurchases:s}),React.createElement("div",{className:w.A.purchasesSection},r&&a.map((e=>React.createElement(E,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(A,{numberOfPurchases:s}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(6072),c=a.n(n),r=a(1112),s=a(7723),i=a(1113),l=a(3512),o=a(3883),u=a(4969),m=a(3022),d=a(6941),p=a.n(d),h=a(1609),g=a(8837),v=a(4923),f=a(4526),w=a(1413),E=a(1208);const __=s.__,k=p()("my-jetpack:product-card:action-button"),y=({status:e,admin:t,name:a,slug:n,onActivate:d,additionalActions:p,primaryActionOverride:y,onManage:A,onFixConnection:b,isFetching:j,isInstallingStandalone:R,className:_,onAdd:C,onInstall:x,onLearnMore:N,upgradeInInterstitial:z,isOwned:S})=>{const[M,L]=(0,h.useState)(!1),[V,P]=(0,h.useState)({}),{detail:H}=(0,v.A)(n),{manageUrl:I,purchaseUrl:B}=H,O=!I,T=(0,h.useRef)(null),F=(0,h.useRef)(null),{recordEvent:U}=(0,f.A)();"jetpack-ai"===n&&k(n,H);const D=j||R,q=p?.length>0,J=(0,h.useMemo)((()=>({variant:D?void 0:"primary",disabled:D,size:"small",weight:"regular",className:_})),[D,_]),G=(0,h.useCallback)((()=>{switch("jetpack-ai"===n&&k(n,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...J,href:`#/add-${n}`,variant:"primary",label:e,onClick:N,...y&&g.hp.ABSENT in y&&y[g.hp.ABSENT]}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...J,variant:"primary",label:e,onClick:x,...y&&g.hp.ABSENT_WITH_PLAN in y&&y[g.hp.ABSENT_WITH_PLAN]}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...J,href:B||`#/add-${n}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:C,...y&&g.hp.NEEDS_FIRST_SITE_CONNECTION in y&&y[g.hp.NEEDS_FIRST_SITE_CONNECTION]};case g.hp.NEEDS_PLAN:{const e=__("Get plan","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=S?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.NEEDS_PLAN in y&&y[g.hp.NEEDS_PLAN]}}case g.hp.CAN_UPGRADE:{const e=__("Upgrade","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=B||z?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.CAN_UPGRADE in y&&y[g.hp.CAN_UPGRADE]}}case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...J,disabled:O||J?.disabled,href:I,variant:"secondary",label:e,onClick:A,...y&&g.hp.ACTIVE in y&&y[g.hp.ACTIVE]}}case g.hp.SITE_CONNECTION_ERROR:return{...J,href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.SITE_CONNECTION_ERROR in y&&y[g.hp.SITE_CONNECTION_ERROR]};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.USER_CONNECTION_ERROR in y&&y[g.hp.USER_CONNECTION_ERROR]};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...J,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...y&&g.hp.INACTIVE in y&&y[g.hp.INACTIVE]};default:return null}}),[e,J,n,C,b,d,x,N,B,z,O,I,A,y,S]),$=(0,h.useMemo)((()=>q?[...p,G()]:[G()]),[p,G,q]),W=(0,h.useCallback)((()=>{U("jetpack_myjetpack_product_card_dropdown_toggle",{product:n,state:M?"closed":"open"})}),[M,U,n]),Q=(0,h.useCallback)((()=>{L(!M),W()}),[M,W]);if((0,h.useEffect)((()=>{P($[0])}),[$]),(0,w.A)(T,(e=>{F.current.contains(e.target)||(L(!1),W())})),!t)return React.createElement(r.A,c()({},J,{size:"small",variant:"link",weight:"regular"}),/* translators: placeholder is product name. */ /* translators: placeholder is product name. */
+__("%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),S=a(5055);const M=({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:S.A.cta},e))));return React.createElement("div",{className:(0,p.A)(S.A.notice,{[S.A["bigger-than-medium"]]:l})},React.createElement(i.A,c()({hideCloseButton:!0},a,{title:t,actions:o}),React.createElement("div",{className:S.A.message},e)))};function L(){const[e,t]=(0,h.useState)({isLoading:!1,variation:"control"});(0,b.A)();const{redBubbleAlerts:a}=(0,E.A$)(),{jetpackManage:n={},adminUrl:c}=(0,E.A$)(),{isWelcomeBannerVisible:r}=(0,k.A)(),{isSectionVisible:s}=(0,f.A)(),{siteIsRegistered:i}=(0,A.A)(),{currentNotice:p}=(0,h.useContext)(g.g),{message:L,title:V,options:P}=p||{},{data:H,isLoading:I}=(0,w.A)({name:v._,query:{path:v.rR}}),{data:B,isLoading:O}=(0,w.A)({name:v.nw,query:{path:v.O2}}),T=H?.is_available,F=B?.user?.jwt,U=!O&&!I&&T&&F,D="1"===(0,E.A$)("userIsNewToJetpack"),{recordEvent:q}=(0,y.A)(),[J,G]=(0,h.useState)(!1);return(0,h.useLayoutEffect)((()=>{q("jetpack_myjetpack_page_view",{red_bubble_alerts:Object.keys(a).join(",")})}),[q,a]),window.location.hash.includes("?reload=true")&&(window.history.replaceState(null,"",window.location.href.replace("?reload=true","")),window.location.reload(),G(!0)),J?null:React.createElement(l.A,{siteAdminUrl:c},React.createElement("hr",{className:S.A.separator}),React.createElement(_.A,null),!D&&React.createElement(o.A,{horizontalSpacing:0},React.createElement(u.A,null,React.createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"}))),r?React.createElement(z.A,{welcomeFlowExperiment:e,setWelcomeFlowExperiment:t},L&&i&&React.createElement(M,{message:L,title:V,options:P})):L&&React.createElement(o.A,{horizontalSpacing:3,horizontalGap:3},React.createElement(u.A,null,React.createElement(M,{message:L,title:V,options:P}))),!r&&s&&React.createElement(R.A,{welcomeFlowExperimentVariation:e.variation}),React.createElement(N.A,null),n.isEnabled&&React.createElement(o.A,{horizontalSpacing:6,horizontalGap:L?3:6},React.createElement(u.A,null,React.createElement(C.A,{isAgencyAccount:n.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},React.createElement(j.A,null)))),U&&React.createElement(d.A,{jwt_token:F}))}},3958:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(7425),c=a(1112),r=a(7723),s=a(1609),i=a(8837),l=a(1504),o=a(280),u=a(8242),m=a(4526),d=a(1870),p=a(3981),h=a(6256),g=a(3542),v=a(8252),f=a(1651),w=a(4334);const __=r.__,_n=r._n;function E({purchase:e={}}){const{product_name:t}=e;return React.createElement(React.Fragment,null,React.createElement(n.hE,null,t),React.createElement(k,e))}function k(e){const{expiry_message:t,product_name:a,subscribed_date:c}=e;return(0,v.b)(e)?React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},React.createElement("span",{className:w.A["expire-date--with-icon"]},__("Never Expires","jetpack-my-jetpack")),React.createElement(f.k,{productName:a,giftedDate:c})):React.createElement(n.Ay,{variant:"body",className:w.A["expire-date"]},t)}function y({numberOfPurchases:e=0}){return React.createElement(React.Fragment,null,React.createElement(n.H3,null,_n("Your plan","Your plans",e,"jetpack-my-jetpack")),0===e&&React.createElement(n.Ay,{variant:"body"},__("Want to power up your Jetpack?","jetpack-my-jetpack")))}function A({numberOfPurchases:e}){const{recordEvent:t}=(0,m.A)(),{isUserConnected:a}=(0,d.A)(),n=_n("Manage your plan","Manage your plans",e,"jetpack-my-jetpack"),r=__("Purchase a plan","jetpack-my-jetpack"),l=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_manage_click")}),[t]),o=(0,s.useCallback)((()=>{t("jetpack_myjetpack_plans_purchase_click")}),[t]),v=(0,p.A)(i.NM.Connection),f=(0,s.useCallback)((()=>{t("jetpack_myjetpack_activate_license_click"),a||v()}),[v,a,t]);let E=__("Activate a license","jetpack-my-jetpack");a||(E=__("Activate a license (requires a user connection)","jetpack-my-jetpack"));const{loadAddLicenseScreen:k="",adminUrl:y=""}=(0,u.A$)();return React.createElement("ul",null,e>0&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:l,href:(0,h.A)(),weight:"regular",variant:"link",isExternalLink:!0},n)),React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:o,href:(0,g.A)(),weight:"regular",variant:"link",isExternalLink:!0},r)),k&&React.createElement("li",{className:w.A["actions-list-item"]},React.createElement(c.A,{onClick:f,href:a?`${y}admin.php?page=my-jetpack#/add-license`:void 0,variant:"link",weight:"regular"},E)))}function b(){const e=!!(0,u.A$)("userIsAdmin"),{isSiteConnected:t}=(0,d.A)(),{data:a,isLoading:n,isError:c}=(0,o.A)({name:l.Ck,query:{path:l.tb},options:{enabled:t}}),r=a&&!n&&!c,s=r?a.length:0;return React.createElement("div",{className:w.A.container},React.createElement(y,{numberOfPurchases:s}),React.createElement("div",{className:w.A.purchasesSection},r&&a.map((e=>React.createElement(E,{key:`purchase-${e.product_name}`,purchase:e})))),e&&React.createElement(A,{numberOfPurchases:s}))}},169:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var n=a(6072),c=a.n(n),r=a(1112),s=a(7723),i=a(1113),l=a(3512),o=a(3883),u=a(4969),m=a(3022),d=a(6941),p=a.n(d),h=a(1609),g=a(8837),v=a(4923),f=a(4526),w=a(1413),E=a(1208);const __=s.__,k=p()("my-jetpack:product-card:action-button"),y=({status:e,admin:t,name:a,slug:n,onActivate:d,additionalActions:p,primaryActionOverride:y,onManage:A,onFixConnection:b,isFetching:j,isInstallingStandalone:R,className:_,onAdd:C,onInstall:x,onLearnMore:N,upgradeInInterstitial:z,isOwned:S})=>{const[M,L]=(0,h.useState)(!1),[V,P]=(0,h.useState)({}),{detail:H}=(0,v.A)(n),{manageUrl:I,purchaseUrl:B}=H,O=!I,T=(0,h.useRef)(null),F=(0,h.useRef)(null),{recordEvent:U}=(0,f.A)();"jetpack-ai"===n&&k(n,H);const D=j||R,q=p?.length>0,J=(0,h.useMemo)((()=>({variant:D?void 0:"primary",disabled:D,size:"small",weight:"regular",className:_})),[D,_]),G=(0,h.useCallback)((()=>{switch("jetpack-ai"===n&&k(n,e),e){case g.hp.ABSENT:{const e=__("Learn more","jetpack-my-jetpack");return{...J,href:`#/add-${n}`,variant:"primary",label:e,onClick:N,...y&&g.hp.ABSENT in y&&y[g.hp.ABSENT]}}case g.hp.ABSENT_WITH_PLAN:{const e=__("Install Plugin","jetpack-my-jetpack");return{...J,variant:"primary",label:e,onClick:x,...y&&g.hp.ABSENT_WITH_PLAN in y&&y[g.hp.ABSENT_WITH_PLAN]}}case g.hp.NEEDS_FIRST_SITE_CONNECTION:return{...J,href:B||`#/add-${n}`,variant:"primary",label:__("Learn more","jetpack-my-jetpack"),onClick:C,...y&&g.hp.NEEDS_FIRST_SITE_CONNECTION in y&&y[g.hp.NEEDS_FIRST_SITE_CONNECTION]};case g.hp.NEEDS_PLAN:{const e=__("Get plan","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=S?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.NEEDS_PLAN in y&&y[g.hp.NEEDS_PLAN]}}case g.hp.CAN_UPGRADE:{const e=__("Upgrade","jetpack-my-jetpack"),t=__("Learn more","jetpack-my-jetpack"),a=B||z?e:t;return{...J,href:B||`#/add-${n}`,variant:"primary",label:a,onClick:C,...y&&g.hp.CAN_UPGRADE in y&&y[g.hp.CAN_UPGRADE]}}case g.hp.ACTIVE:{const e=__("View","jetpack-my-jetpack");return{...J,disabled:O||J?.disabled,href:I,variant:"secondary",label:e,onClick:A,...y&&g.hp.ACTIVE in y&&y[g.hp.ACTIVE]}}case g.hp.SITE_CONNECTION_ERROR:return{...J,href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.SITE_CONNECTION_ERROR in y&&y[g.hp.SITE_CONNECTION_ERROR]};case g.hp.USER_CONNECTION_ERROR:return{href:"#/connection",variant:"primary",label:__("Connect","jetpack-my-jetpack"),onClick:b,...y&&g.hp.USER_CONNECTION_ERROR in y&&y[g.hp.USER_CONNECTION_ERROR]};case g.hp.INACTIVE:case g.hp.MODULE_DISABLED:case g.hp.NEEDS_ACTIVATION:return{...J,variant:"secondary",label:__("Activate","jetpack-my-jetpack"),onClick:d,...y&&g.hp.INACTIVE in y&&y[g.hp.INACTIVE]};default:return null}}),[e,J,n,C,b,d,x,N,B,z,O,I,A,y,S]),$=(0,h.useMemo)((()=>q?[...p,G()]:[G()]),[p,G,q]),W=(0,h.useCallback)((()=>{U("jetpack_myjetpack_product_card_dropdown_toggle",{product:n,state:M?"closed":"open"})}),[M,U,n]),Q=(0,h.useCallback)((()=>{L(!M),W()}),[M,W]);if((0,h.useEffect)((()=>{P($[0])}),[$]),(0,w.A)(T,(e=>{F.current.contains(e.target)||(L(!1),W())})),!t)return React.createElement(r.A,c()({},J,{size:"small",variant:"link",weight:"regular"}),/* translators: placeholder is product name. */ /* translators: placeholder is product name. */
(0,s.sprintf)(__("Learn about %s","jetpack-my-jetpack"),a));const K=q&&React.createElement("div",{ref:T,className:E.A["action-button-dropdown"]},React.createElement("ul",{className:E.A["dropdown-menu"]},[...p,G()].map((({label:e,isExternalLink:t},a)=>React.createElement("li",{key:a},React.createElement("button",{onClick:()=>{P($[a]),L(!1),U("jetpack_myjetpack_product_card_dropdown_action_click",{product:n,action:e})},className:E.A["dropdown-item"]},React.createElement("div",{className:E.A["dropdown-item-label"]},e,t&&React.createElement(i.A,{icon:l.A,size:16})),e===V.label&&React.createElement("div",{className:E.A["active-action-checkmark"]},React.createElement(i.A,{icon:o.A,size:24,fill:"white"}))))))));return React.createElement(React.Fragment,null,React.createElement("div",{className:(0,m.A)(E.A["action-button"],q?E.A["has-additional-actions"]:null)},React.createElement(r.A,c()({},J,V),V.label),q&&React.createElement("button",{className:(0,m.A)(E.A["dropdown-chevron"],"primary"===V.variant?E.A.primary:E.A.secondary),onClick:Q,ref:F},React.createElement(i.A,{icon:u.A,size:24,fill:"primary"===V.variant?"white":"black"})),M&&K))}},5410:(e,t,a)=>{"use strict";a.d(t,{A:()=>w});var n=a(6072),c=a.n(n),r=a(7723),s=a(3022),i=a(1609),l=a(8837),o=a(8242),u=a(4526),m=a(2450),d=a(169),p=a(6710),h=a(7879),g=a(1887),v=a(2854),f=a(1208);const __=r.__,w=e=>{const t={isFetching:!1,isInstallingStandalone:!1,onActivate:()=>{},...e},{name:a,Description:n,status:r,onActivate:w,isFetching:E,isDataLoading:k,isInstallingStandalone:y,slug:A,additionalActions:b,primaryActionOverride:j,secondaryAction:R,children:_,onInstallStandalone:C,onMouseEnter:x,onMouseLeave:N,recommendation:z,customLoadTracks:S}=e,{ownedProducts:M}=(0,o.A$)("lifecycleStats"),L=M?.includes(A),V=r===l.hp.SITE_CONNECTION_ERROR||r===l.hp.USER_CONNECTION_ERROR,P=r===l.hp.ABSENT||r===l.hp.ABSENT_WITH_PLAN,H=r===l.hp.NEEDS_PLAN,I=(0,s.A)({[f.A.plugin_absent]:P,[f.A["is-purchase-required"]]:H,[f.A["is-link"]]:P,[f.A["has-error"]]:V}),{recordEvent:B}=(0,u.A)(),O=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_activate_click",{product:A}),w()}),[A,w,B]),T=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_add_click",{product:A})}),[A,B]),F=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_manage_click",{product:A})}),[A,B]),U=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_fixconnection_click",{product:A})}),[A,B]),D=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_learnmore_click",{product:A})}),[A,B]),q=(0,i.useCallback)((()=>{B("jetpack_myjetpack_product_card_install_standalone_plugin_click",{product:A}),C()}),[A,C,B]);return(0,i.useEffect)((()=>{B("jetpack_myjetpack_product_card_load",{product:A,status:r,...S})}),[B,A,r,S]),React.createElement(m.A,{title:a,className:(0,s.A)(f.A.container,I),headerRightContent:null,onMouseEnter:x,onMouseLeave:N},z&&React.createElement(p.A,{slug:A}),React.createElement(n,null),k?React.createElement("span",{className:f.A.loading},__("Loading…","jetpack-my-jetpack")):_,z?React.createElement(h.A,{slug:A}):React.createElement("div",{className:f.A.actions},React.createElement("div",{className:f.A.buttons},R&&R?.positionFirst&&React.createElement(g.A,R),React.createElement(d.A,c()({},t,{onActivate:O,onFixConnection:U,onManage:F,onAdd:T,onInstall:q,onLearnMore:D,className:f.A.button,additionalActions:b,primaryActionOverride:j,isOwned:L})),R&&!R?.positionFirst&&React.createElement(g.A,R)),React.createElement(v.A,{status:r,isFetching:E,isInstallingStandalone:y,isOwned:L})))}},6710:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7397),c=a(7723),r=a(3022),s=a(1208),i=a(6147);const __=c.__,l=({slug:e})=>{const{discountPrice:t,fullPrice:a,currencyCode:c}=(0,i.A)(e);return React.createElement("div",{className:s.A.priceContainer},t&&React.createElement("span",{className:s.A.price},(0,n.Ay)(t,c)),React.createElement("span",{className:(0,r.A)(s.A.price,t&&s.A.discounted)},(0,n.Ay)(a,c)),React.createElement("span",{className:s.A.term},__("/month, billed yearly","jetpack-my-jetpack")))}},7879:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(6072),c=a.n(n),r=a(1112),s=a(3022),i=a(1208),l=a(6147);const o=({slug:e})=>{const{secondaryAction:t,purchaseAction:a,isActivating:n}=(0,l.A)(e);return React.createElement("div",{className:i.A.actions},React.createElement("div",{className:(0,s.A)(i.A.buttons,i.A.upsell)},a&&React.createElement(r.A,c()({size:"small"},a),a.label),React.createElement(r.A,c()({size:"small",variant:"secondary",disabled:n},t),t.label)))}},1887:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(1112),c=a(7723);const __=c.__,r=e=>{const{shouldShowButton:t=()=>!0,...a}={size:"small",variant:"secondary",weight:"regular",label:__("Learn more","jetpack-my-jetpack"),...e};return!!t()&&React.createElement(n.A,a,a.label)}},2854:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(7425),c=a(7723),r=a(3022),s=a(8837),i=a(1208);const __=c.__,l=({status:e,isFetching:t,isInstallingStandalone:a,isOwned:c})=>{const l=((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return __("Active","jetpack-my-jetpack");case s.hp.INACTIVE:case s.hp.MODULE_DISABLED:case s.hp.NEEDS_ACTIVATION:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.ABSENT:return __("Inactive","jetpack-my-jetpack");case s.hp.ABSENT_WITH_PLAN:return __("Needs Plugin","jetpack-my-jetpack");case s.hp.USER_CONNECTION_ERROR:return __("Needs user account","jetpack-my-jetpack");case s.hp.SITE_CONNECTION_ERROR:return __("Needs connection","jetpack-my-jetpack");case s.hp.NEEDS_PLAN:{const e=__("Needs plan","jetpack-my-jetpack"),a=__("Inactive","jetpack-my-jetpack");return t?e:a}default:return __("Inactive","jetpack-my-jetpack")}})(e,c),o=(0,r.A)(i.A.status,((e,t)=>{switch(e){case s.hp.ACTIVE:case s.hp.CAN_UPGRADE:return i.A.active;case s.hp.ABSENT_WITH_PLAN:case s.hp.SITE_CONNECTION_ERROR:case s.hp.USER_CONNECTION_ERROR:return i.A.warning;case s.hp.INACTIVE:case s.hp.NEEDS_FIRST_SITE_CONNECTION:case s.hp.NEEDS_ACTIVATION:return i.A.inactive;case s.hp.NEEDS_PLAN:return t?i.A.warning:i.A.inactive;default:return i.A.inactive}})(e,c),{[i.A["is-fetching"]]:t||a});return React.createElement(n.Ay,{variant:"label",className:o},l)}},6147:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(9384),c=a(7723),r=a(1609),s=a(8837),i=a(9935),l=a(4923),o=a(8242),u=a(4526),m=a(1870);const __=c.__,d=(e,t)=>{const a=e.status===s.hp.ACTIVE&&(e.isUpgradableByBundle.length||e.isUpgradable),n=e.pricingForUi.fullPrice||e.pricingForUi.tiers?.upgraded?.fullPrice;return e.status===s.hp.CAN_UPGRADE||a?n?{label:__("Upgrade","jetpack-my-jetpack"),onClick:t}:null:{label:__("Purchase","jetpack-my-jetpack"),onClick:t}},p=(e,t)=>{!e.isPluginActive||e.status===s.hp.NEEDS_ACTIVATION||(e.status,s.hp.NEEDS_PLAN);return{label:__("Learn more","jetpack-my-jetpack"),href:`#/add-${e.slug}`}},h=e=>{const{recordEvent:t}=(0,u.A)(),{detail:a}=(0,l.A)(e),{wpcomProductSlug:c,wpcomFreeProductSlug:s,...h}=(e=>{const{tiers:t,wpcomFreeProductSlug:a}=e;if(e.tiers){const{discountPrice:e,fullPrice:n,currencyCode:c,wpcomProductSlug:r,quantity:s}=t.upgraded;return{wpcomFreeProductSlug:a,wpcomProductSlug:s?`${r}:-q-${s}`:r,discountPrice:e&&e!==n?e/12:null,fullPrice:n/12,currencyCode:c}}const{discountPricePerMonth:n,fullPricePerMonth:c,currencyCode:r,isIntroductoryOffer:s,wpcomProductSlug:i}=e;return{wpcomFreeProductSlug:a,wpcomProductSlug:i,discountPrice:s?n:null,fullPrice:c,currencyCode:r}})(a.pricingForUi),{isUserConnected:g}=(0,m.A)(),{myJetpackUrl:v,siteSuffix:f}=(0,o.A$)(),{activate:w,isPending:E}=(0,i.A)(e),{run:k}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:c,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),{run:y}=(0,n.useProductCheckoutWorkflow)({from:"my-jetpack",productSlug:s,redirectUrl:v,connectAfterCheckout:!g,siteSuffix:f}),A=((0,r.useCallback)((()=>{s?y():w()}),[w,y,s]),(0,r.useCallback)((()=>{if(t("jetpack_myjetpack_evaluation_recommendations_checkout_click",{slug:e}),"crm"===e)return w(),void window.open("https://jetpackcrm.com/pricing/","_blank");k()}),[w,t,k,e]));return{secondaryAction:p(a),purchaseAction:d(a,A),isActivating:E,...h}}},8412:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(6072),c=a.n(n),r=a(1504),s=a(6176);const i=e=>React.createElement(s.A,c()({slug:r.D_.JETPACK_AI,upgradeInInterstitial:!0},e))},9674:(e,t,a)=>{"use strict";a.d(t,{z:()=>h});var n=a(8412),c=a(6724),r=a(161),s=a(9838),i=a(3690),l=a(1686),o=a(4274),u=a(414),m=a(7769),d=a(4073),p=a(7631);const h={backup:r.A,protect:o.A,"anti-spam":c.A,boost:s.A,search:u.A,videopress:p.A,stats:d.A,crm:l.A,creator:i.A,social:m.A,ai:n.A,"jetpack-ai":n.A,extras:null,scan:null,security:null}},6724:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var n=a(6072),c=a.n(n),r=a(5739),s=a.n(r),i=a(1504),l=a(6176);const o=e=>React.createElement(l.A,c()({slug:i.D_.ANTI_SPAM},e));o.propTypes={admin:s().bool.isRequired};const u=o},161:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(6072),c=a.n(n),r=a(3924),s=a(7425),i=a(6427),l=a(7723),o=a(3022),u=a(2290),m=a(5739),d=a.n(m),p=a(1609),h=a(8837),g=a(1504),v=a(4923),f=a(280),w=a(8242),E=a(4526),k=a(6581),y=a(6176),A=a(3649);const __=l.__,_n=l._n,b=g.D_.BACKUP,j=e=>{const{detail:t}=(0,v.A)(b),{status:a}=t;return a===h.hp.ACTIVE||a===h.hp.CAN_UPGRADE?React.createElement(R,c()({slug:b},e)):React.createElement(y.A,c()({slug:b},e))},R=e=>{const{data:t,isLoading:a}=(0,f.A)({name:g.Dz,query:{path:g.DB}}),n=t?.last_rewindable_event,i=n?.published,o=t?.undo_backup_id,{recordEvent:m}=(0,E.A)(),{siteSuffix:d=""}=(0,w.A$)(),p={href:(0,r.A)("jetpack-backup-undo-cta",{path:o,site:d}),size:"small",variant:"primary",weight:"regular",label:__("Undo","jetpack-my-jetpack"),onClick:()=>{m("jetpack_myjetpack_backup_card_undo_click",{product:e.slug,undo_backup_id:o})},isExternalLink:!0};return React.createElement(y.A,c()({},e,{showMenu:!0,isDataLoading:a,Description:n?()=>React.createElement(s.Ay,{variant:"body-small",className:A.A.description},React.createElement("span",null,__("Activity Detected","jetpack-my-jetpack")),React.createElement("span",{className:A.A.time},(e=>{if(!e)return"";const t=new Date-new Date(e);if(t>0){const e=Math.floor(t/864e5),a=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),c=Math.floor(t%6e4/1e3);return e>0?(0,l.sprintf)(
// translators: %s is the number of days since the last backup
_n("%s day ago","%s days ago",e,"jetpack-my-jetpack"),e):a>0?(0,l.sprintf)(
@@ -67,7 +67,7 @@ __("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:S,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,{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),S=a(9409),M=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:S=!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=!S&&!!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,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),S=a(9409),M=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:S=!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=!S&&!!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:M.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:M.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:M.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?M.A.container:null,supportingInfo:_,preferProductName:C,ctaButtonLabel:z,hideTOS:S||Y,quantity:L,highlightLastFeature:P,isFetching:F||K,isFetchingSuccess:U})),p().createElement(r.A,{sm:4,md:4,lg:5,className:(0,m.A)(M.A.imageContainer,N)},e?p().createElement(j.A,{slug:e,trackButtonClick:ne,onClick:re,className:q?M.A.container:null,hideTOS:S||Y,quantity:L,highlightLastFeature:P,isFetching:F,isFetchingSuccess:U}):x))),p().createElement(r.A,null,Y&&p().createElement("div",{className:M.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:S,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)(),S=__("Generate and edit content faster with Jetpack AI Assistant","jetpack-my-jetpack"),M=__("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.
@@ -75,7 +75,7 @@ __("Wait for %d days to reset your limit, or upgrade now to a higher tier for ad
// translators: %d is the number of days left in the month.
__("Wait for %d days to reset your limit, per our fair usage policy.","jetpack-my-jetpack"),Math.floor((new Date(T?.nextStart||null)-new Date)/864e5)),{link:React.createElement("a",{href:(0,n.A)("ai-product-page-fair-usage-policy"),target:"_blank",rel:"noreferrer"})}),fe=U?ge:ve,we=__("Reach for More with Jetpack AI! Upgrade now for additional requests and keep your momentum going.","jetpack-my-jetpack"),Ee=(0,d.sprintf)(
// translators: %s is the next upgrade value
-__("Get %s requests","jetpack-my-jetpack"),O?.value||"more"),ke=__("Upgrade now","jetpack-my-jetpack"),ye=(0,R.A)("/add-jetpack-ai"),{recordEvent:Ae}=(0,A.A)(),be=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_contact_us",{placement:"product-page"})}),[Ae]),je=(0,k.useCallback)((()=>{Ae("jetpack_ai_upgrade_button",{placement:"product-page",context:"my-jetpack",current_tier_slug:B?.slug||"",requests_count:I}),ye()}),[Ae,I,B,ye]),Re=(0,k.useCallback)((()=>N(!1)),[]);(0,k.useEffect)((()=>{Ae("jetpack_ai_myjetpack_product_page_view",{current_tier_slug:B?.slug||"",requests_count:I})}),[I,B?.slug,Ae]),(0,k.useEffect)((()=>{N(se||ie)}),[se,ie]);const _e=React.createElement("span",{className:C.A["product-interstitial__new-badge"]},__("New","jetpack-my-jetpack")," ");return React.createElement(c.A,{showHeader:!1,showBackground:!0},React.createElement(r.A,{fluid:!0,horizontalSpacing:3,horizontalGap:2},React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__section-wrapper-wide"]},React.createElement(_.A,{onClick:e})),React.createElement("div",{className:(0,f.A)(C.A["product-interstitial__section-wrapper-wide"],C.A["product-interstitial__product-header"])},React.createElement(i.A,null),React.createElement("div",{className:C.A["product-interstitial__product-header-name"]},__("AI Assistant","jetpack-my-jetpack")))),React.createElement(s.A,{className:(0,f.A)(C.A["product-interstitial__section"])},React.createElement("div",{className:C.A["product-interstitial__hero-section"]},React.createElement("div",{className:C.A["product-interstitial__hero-content"]},React.createElement("h1",{className:C.A["product-interstitial__hero-heading"]},a),React.createElement("div",{className:C.A["product-interstitial__hero-sub-heading"]},__("Draft, transform, translate, and alter both new and existing content leveraging the capabilities of AI, inside the block editor.","jetpack-my-jetpack")),!G&&!q&&React.createElement(u.Button,{variant:"primary",onClick:je,className:C.A["product-interstitial__hero-cta"]},__("Get more requests","jetpack-my-jetpack")),G&&React.createElement(u.Button,{variant:"primary",onClick:be,href:K,className:C.A["product-interstitial__hero-cta"]},__("Contact Us","jetpack-my-jetpack"))),React.createElement("div",{className:C.A["product-interstitial__hero-side"]},W&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(l.KH,null),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},U?de:me),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},ue))),Q&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("All-time requests used","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},I))),D&&React.createElement(u.Card,{className:C.A["stats-card"]},React.createElement(p.A,{icon:h.A,className:C.A["stats-card-icon-check"]}),React.createElement("div",null,React.createElement("div",{className:C.A["product-interstitial__stats-card-text"]},__("Free requests available","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__stats-card-value"]},$)))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},E&&React.createElement("div",{className:C.A["product-interstitial__ai-notice"]},React.createElement(o.A,{actions:U?[React.createElement(u.Button,{isPrimary:!0,onClick:je},se?Ee:ke)]:{},onClose:Re,level:se?"warning":"error",title:se?pe:he},se?fe:we)),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("AI Features","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Discover all the Jetpack features powered by AI","jetpack-my-jetpack")),React.createElement("div",{className:C.A["product-interstitial__usage-videos"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/2OU6GCMs?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F07%2Fjetpack-ai-breve-poster.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:H}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},H,_e),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Simplify your writing with AI suggestions to fix long sentences and complex words and sound more confident. As you type, check your Reading grade score to make sure it suits your audience.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ae},__("Learn more","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/GdXmtVtW?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-37.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:S}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use the AI block to generate content, or use our AI edit options in existing blocks. Use prompts or any of our recommended actions.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:v.A,href:ne},z?ce:re))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/HJCf8cXc?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fone-click-featured-images.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Create featured images to illustrate your content and make it more engaging with just one click. Use prompts to generate adjusted new featured images.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:Y},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/xjy2weWj?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F06%2Fjetpack-ai-title-optimization.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use AI to generate title suggestions based on your content, each with an explanation of why it works better. Save time and create engaging, SEO-friendly titles.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:X},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/OMI3zqid?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-38.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},V),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Quickly build forms using the Jetpack Forms block and AI. Use prompts to describe your form and AI will generate the elements in a few seconds.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ee},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/0vb0OJm7?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-39.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:P}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Get instant feedback on your post before publishing. AI will read your post and highlight opportunities to improve your publication.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:C.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Help us improving the accuracy of our results and feel free to give us ideas for future implementations and improvements.","jetpack-my-jetpack")," ",React.createElement(u.ExternalLink,{href:Z},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),l=a(8252);const __=c.__;function o(){const{userConnectionData:e,isSiteConnected:t}=(0,i.A)(),a=e?.currentUser?.wpcomUser?.display_name||e?.currentUser?.wpcomUser?.login||e?.currentUser?.username,{isLoading:c,data:o}=(0,s.A)({name:r.Ck,query:{path:r.tb},options:{enabled:t}});if(c)return React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack"));const u=(0,l.M)(o);return React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:u,displayName:a}))}},9654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(7723),c=a(1113),r=a(5788),s=a(1871),i=a(6994),l=a(1609),o=a.n(l),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>o().createElement("div",{className:d.A["section-stats-highlights"]},o().createElement("h3",{className:d.A["section-title"]},o().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),o().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),o().createElement("div",{className:d.A["cards-list"]},o().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),o().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),o().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),o().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:i.A}),count:e?.comments,previousCount:t?.comments})))},3:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(6427),c=a(1113),r=a(6955),s=a(2510),i=a(3022),l=a(5739),o=a.n(l),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:l})=>{const o=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(o),v=Number.isFinite(o)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const a=e/t*100;return Math.abs(a)===1/0?100:Math.round(a)})(g,t):null;return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),l&&m().createElement("div",{className:p.A["stats-card-heading"]},l),m().createElement("div",{className:p.A["stats-card-count"]},m().createElement("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0},(0,d.A)(e)),null!==o?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:o<0,[p.A["stats-card-difference--negative"]]:o>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(o)},o<0&&m().createElement(c.A,{size:18,icon:r.A}),o>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},g>9999?(0,d.A)(g):(0,d.A)(g,{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:o().number,heading:o().node,icon:o().node,previousCount:o().number};const g=h},3336:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6427);const c=React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},1035:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(7723),c=a(1609),r=a(8837),s=a(1504),i=a(4923),l=a(280),o=a(8242),u=a(4526),m=a(1870),d=a(6176),p=a(9654);const __=n.__,h=()=>{const e="stats",{blogID:t,isSiteConnected:a}=(0,m.A)(),{detail:n}=(0,i.A)(e),{status:h}=n,g=!!(0,o.A$)("userIsAdmin"),{data:v}=(0,l.A)({name:s.MB,query:{path:(0,s.IM)(t)},options:{enabled:a}}),f=v?.past_seven_days||{},w=v?.between_past_eight_and_fifteen_days||{},{recordEvent:E}=(0,u.A)(),k=(0,c.useCallback)((()=>{E("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[E]),y=(0,c.useCallback)((()=>!(h!==r.hp.CAN_UPGRADE)),[h]),A={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:y},b={[r.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[r.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[r.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return React.createElement(d.A,{admin:g,slug:e,primaryActionOverride:b,secondaryAction:A,showMenu:!0},React.createElement(p.A,{counts:f,previousCounts:w}))}},7881:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(8509),c=a(7425),r=a(5879),s=a(1112),i=a(4082),l=a(7723),o=a(1609),u=a(6007),m=a(1521),d=a(5350),p=a(4526),h=a(753),g=a(5225);const __=l.__,v=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:l}=(0,p.A)(),{setNotice:v,resetNotice:f}=(0,o.useContext)(u.g),w=__("Activate Jetpack in one click","jetpack-my-jetpack"),{refetch:E}=(0,d.A)(),k=(0,o.useCallback)((async()=>{l("jetpack_myjetpack_welcome_banner_connect_site_click"),t((e=>({...e,isLoading:!0}))),await e(),l("jetpack_myjetpack_welcome_banner_connect_site_success");try{await(0,h.A)(),(0,i.Pg)();const{variationName:e}=await(0,i.nQ)("jetpack_my_jetpack_welcome_flow_display_default_recommendations_upfront_202410");t((t=>({...t,variation:e??"control"})))}finally{f(),v(m.F,f),E(),t((e=>({...e,isLoading:!1})))}}),[e,t,l,E,f,v]);return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("Welcome to Jetpack!","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Unlock the power of your WordPress site with Jetpack, the complete toolkit for enhancing your site’s security, speed, and growth.","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack works behind the scenes to keep your site safe, make it lightning-fast, and to help you get more traffic.","jetpack-my-jetpack")),React.createElement(r.A,{agreeButtonLabel:w,mb:4}),React.createElement(s.A,{variant:"primary",disabled:a,isLoading:a,onClick:k},a?__("Activating…","jetpack-my-jetpack"):w)),React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,l=()=>React.createElement(n.A,{className:i.A["banner-evaluation"]},React.createElement("div",{className:i.A["banner-loader"]},React.createElement(r.Spinner,null)),React.createElement(c.Ay,{variant:"title-medium",mb:1},__("Finding the best Jetpack tools","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body-small"},__("We‘re crunching the numbers to find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")))},6259:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(8509),c=a(7425),r=a(1112),s=a(6427),i=a(7723),l=a(3022),o=a(1609),u=a(5225);const __=i.__,m={protect:__("Protect my site","jetpack-my-jetpack"),performance:__("Improve my site‘s performance","jetpack-my-jetpack"),audience:__("Grow my audience","jetpack-my-jetpack"),content:__("Create quality content","jetpack-my-jetpack"),unsure:__("I don‘t know","jetpack-my-jetpack")},d={protect:!1,performance:!1,audience:!1,content:!1,unsure:!1},p=({onSkipOnboarding:e,onSubmitEvaluation:t})=>{const[a,i]=(0,o.useState)(d),p=(0,o.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,o.useCallback)((()=>t(a)),[t,a]),g=Object.values(a).some((e=>e));return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:u.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("What would you like Jetpack to do?","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack does a lot. Select the items that are most important to you and we‘ll find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")),React.createElement("form",{className:u.A.form},Object.entries(m).map((([e,t])=>React.createElement(s.CheckboxControl,{key:e,className:u.A["form-checkbox"],label:t,checked:a[e],onChange:p(e)}))),React.createElement("div",{className:u.A["form-actions"]},React.createElement(r.A,{variant:"primary",text:__("See solutions","jetpack-my-jetpack"),onClick:h,disabled:!g}),React.createElement(r.A,{variant:"link",className:u.A["form-link-action"],text:__("Skip onboarding","jetpack-my-jetpack"),onClick:e})))),React.createElement(n.A,{sm:6,md:8,lg:6,className:(0,l.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),l=a(3022),o=a(1609),u=a(3804),m=a(4393),d=a(9812),p=a(4526),h=a(1870),g=a(2450),v=a(7881),f=a(9230),w=a(6259),E=a(5225);const __=s.__,k=({welcomeFlowExperiment:e,setWelcomeFlowExperiment:t,children:a})=>{const{recordEvent:s}=(0,p.A)(),{dismissWelcomeBanner:k}=(0,d.A)(),{recommendedModules:y,isFirstRun:A,submitEvaluation:b,saveEvaluationResult:j}=(0,u.A)(),{siteIsRegistered:R,siteIsRegistering:_,isUserConnected:C,isSiteConnected:x,handleRegisterSite:N}=(0,h.A)({skipUserConnection:!0}),[z,S]=(0,o.useState)(!1),[M,L]=(0,o.useState)(""),V=(0,o.useMemo)((()=>!R||e.isLoading?"connection":z?"evaluation-processing":y||(0,m.A)()?"treatment"===e.variation&&!y&&(0,m.A)()?"evaluation-processing":"evaluation":null),[z,y,R,e.isLoading,e.variation]);(0,o.useEffect)((()=>{M!==V&&(s("jetpack_myjetpack_welcome_banner_step_view",{current_step:V}),L(V))}),[V,M,s]);const P=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:V,is_user_connected:C,is_site_connected:x}),k()}),[s,V,C,x,k]),H=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),k()}),[k,s]),I=(0,o.useCallback)((async e=>{const t=Object.keys(e).filter((t=>e[t]));S(!0),s("jetpack_myjetpack_welcome_banner_evaluation_submit",{goals:t});try{const e=await b(t);await j(e),k()}catch(e){S(!1)}}),[k,s,j,b]);return(0,o.useEffect)((()=>{"treatment"===e.variation&&!y&&A&&"connection"===M&&"evaluation-processing"===V&&I({protect:!0,performance:!0,audience:!0,content:!0,unsure:!1})}),[V,M,y,e.variation,I,A]),(0,o.useEffect)((()=>{V||k()}),[V,k]),V?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"===V&&E.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:E.A["banner-content"]},"connection"===V&&React.createElement(v.A,{onActivateSite:N,onUpdateWelcomeFlowExperiment:t,isActivating:_||e.isLoading}),"evaluation"===V&&React.createElement(w.A,{onSkipOnboarding:H,onSubmitEvaluation:I}),"evaluation-processing"===V&&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:_,onClick:P}))):null}},8837:(e,t,a)=>{"use strict";a.d(t,{ED:()=>c,NM:()=>s,OM:()=>n,hp:()=>i,mk:()=>r});const n="my-jetpack-my-plans-manage",c="my-jetpack-my-plans-purchase",r="my-jetpack-my-plans-purchase-no-site",s={Home:"/",Connection:"/connection",AddAkismet:"/add-akismet",AddAntiSpam:"/add-anti-spam",AddBackup:"/add-backup",AddBoost:"/add-boost",AddCRM:"/add-crm",AddCreator:"/add-creator",AddJetpackAI:"/add-jetpack-ai",AddExtras:"/add-extras",AddProtect:"/add-protect/: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,3)}),[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:S}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},S),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use the AI block to generate content, or use our AI edit options in existing blocks. Use prompts or any of our recommended actions.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:v.A,href:ne},z?ce:re))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/HJCf8cXc?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fone-click-featured-images.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:M}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},M),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Create featured images to illustrate your content and make it more engaging with just one click. Use prompts to generate adjusted new featured images.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:Y},__("Learn about featured images","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/xjy2weWj?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F06%2Fjetpack-ai-title-optimization.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:L}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},L),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Use AI to generate title suggestions based on your content, each with an explanation of why it works better. Save time and create engaging, SEO-friendly titles.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:X},__("Learn about Jetpack SEO tools","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/OMI3zqid?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-38.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:V}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},V),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Quickly build forms using the Jetpack Forms block and AI. Use prompts to describe your form and AI will generate the elements in a few seconds.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:ee},__("Learn about forms","jetpack-my-jetpack")))),React.createElement("div",{className:C.A["product-interstitial__usage-videos-item"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-video"]},React.createElement("iframe",{width:"280",height:"157",src:"https://videopress.com/embed/0vb0OJm7?posterUrl=https%3A%2F%2Fjetpackme.files.wordpress.com%2F2024%2F02%2Fimage-39.png%3Fw%3D560",allowFullScreen:!0,allow:"clipboard-write",title:P}),React.createElement("script",{src:"https://videopress.com/videopress-iframe.js"})),React.createElement("div",{className:C.A["product-interstitial__usage-videos-content"]},React.createElement("div",{className:C.A["product-interstitial__usage-videos-heading"]},P),React.createElement("div",{className:C.A["product-interstitial__usage-videos-text"]},__("Get instant feedback on your post before publishing. AI will read your post and highlight opportunities to improve your publication.","jetpack-my-jetpack")),React.createElement(u.Button,{className:C.A["product-interstitial__usage-videos-link"],icon:g.A,target:"_blank",href:te},__("Learn more","jetpack-my-jetpack"))))))),React.createElement(s.A,{className:C.A["product-interstitial__section"]},React.createElement("div",{className:C.A["product-interstitial__section-wrapper"]},React.createElement("div",{className:C.A["product-interstitial__section-emoji"]},"👋"),React.createElement("h2",{className:C.A["product-interstitial__section-heading"]},__("Do you have any feedback?","jetpack-my-jetpack")),React.createElement("p",{className:C.A["product-interstitial__section-sub-heading"]},__("Help us improving the accuracy of our results and feel free to give us ideas for future implementations and improvements.","jetpack-my-jetpack")," ",React.createElement(u.ExternalLink,{href:Z},__("Share your feedback!","jetpack-my-jetpack")))))))}},7265:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(1040),c=a(7723),r=a(1504),s=a(280),i=a(1870),l=a(8252);const __=c.__;function o(){const{userConnectionData:e,isSiteConnected:t}=(0,i.A)(),a=e?.currentUser?.wpcomUser?.display_name||e?.currentUser?.wpcomUser?.login||e?.currentUser?.username,{isLoading:c,data:o}=(0,s.A)({name:r.Ck,query:{path:r.tb},options:{enabled:t}});if(c)return React.createElement(React.Fragment,null,__("Checking gold status…","jetpack-my-jetpack"));const u=(0,l.M)(o);return React.createElement(React.Fragment,null,React.createElement(n._,{tokenRedeemed:u,displayName:a}))}},9654:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(7723),c=a(1113),r=a(5788),s=a(1871),i=a(6994),l=a(1609),o=a.n(l),u=a(3),m=a(3336),d=a(3747);const __=n.__,p=({counts:e,previousCounts:t})=>o().createElement("div",{className:d.A["section-stats-highlights"]},o().createElement("h3",{className:d.A["section-title"]},o().createElement("span",null,__("7-day highlights","jetpack-my-jetpack")),o().createElement("small",{className:d.A["section-description"]},__("Compared to previous period","jetpack-my-jetpack"))),o().createElement("div",{className:d.A["cards-list"]},o().createElement(u.A,{heading:__("Views","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:m.A}),count:e?.views,previousCount:t?.views}),o().createElement(u.A,{heading:__("Visitors","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:r.A}),count:e?.visitors,previousCount:t?.visitors}),o().createElement(u.A,{heading:__("Likes","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:s.A}),count:e?.likes,previousCount:t?.likes}),o().createElement(u.A,{heading:__("Comments","jetpack-my-jetpack"),icon:o().createElement(c.A,{icon:i.A}),count:e?.comments,previousCount:t?.comments})))},3:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var n=a(6427),c=a(1113),r=a(6955),s=a(2510),i=a(3022),l=a(5739),o=a.n(l),u=a(1609),m=a.n(u),d=a(6581),p=a(3747);const h=({count:e=0,previousCount:t=0,icon:a,heading:l})=>{const o=(h=t,"number"!=typeof(u=e)||"number"!=typeof h?null:u-h);var u,h;const g=Math.abs(o),v=Number.isFinite(o)?((e,t)=>{if("number"!=typeof e||"number"!=typeof t)return null;if(0===e&&0===t)return 0;const a=e/t*100;return Math.abs(a)===1/0?100:Math.round(a)})(g,t):null;return m().createElement(n.Card,{className:p.A["stats-card"]},a&&m().createElement("div",{className:p.A["stats-card-icon"]},a),l&&m().createElement("div",{className:p.A["stats-card-heading"]},l),m().createElement("div",{className:p.A["stats-card-count"]},m().createElement("span",{className:p.A["stats-card-count-value"],title:Number.isFinite(e)?String(e):void 0},(0,d.A)(e)),null!==o?m().createElement("span",{className:(0,i.A)(p.A["stats-card-difference"],{[p.A["stats-card-difference--positive"]]:o<0,[p.A["stats-card-difference--negative"]]:o>0})},m().createElement("span",{className:p.A["stats-card-difference-icon"],title:String(o)},o<0&&m().createElement(c.A,{size:18,icon:r.A}),o>0&&m().createElement(c.A,{size:18,icon:s.A})),m().createElement("span",{className:p.A["stats-card-difference-absolute-value"]},g>9999?(0,d.A)(g):(0,d.A)(g,{})),null!==v&&m().createElement("span",{className:p.A["stats-card-difference-absolute-percentage"]},"(",v,"%)")):null))};h.propTypes={count:o().number,heading:o().node,icon:o().node,previousCount:o().number};const g=h},3336:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var n=a(6427);const c=React.createElement(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},React.createElement(n.Path,{d:"m4 13 .67.336.003-.005a2.42 2.42 0 0 1 .094-.17c.071-.122.18-.302.329-.52.298-.435.749-1.017 1.359-1.598C7.673 9.883 9.498 8.75 12 8.75s4.326 1.132 5.545 2.293c.61.581 1.061 1.163 1.36 1.599a8.29 8.29 0 0 1 .422.689l.002.005L20 13l.67-.336v-.003l-.003-.005-.008-.015-.028-.052a9.752 9.752 0 0 0-.489-.794 11.6 11.6 0 0 0-1.562-1.838C17.174 8.617 14.998 7.25 12 7.25S6.827 8.618 5.42 9.957c-.702.669-1.22 1.337-1.563 1.839a9.77 9.77 0 0 0-.516.845l-.008.015-.002.005-.001.002v.001L4 13Zm8 3a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z"}))},1035:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var n=a(7723),c=a(1609),r=a(8837),s=a(1504),i=a(4923),l=a(280),o=a(8242),u=a(4526),m=a(1870),d=a(6176),p=a(9654);const __=n.__,h=()=>{const e="stats",{blogID:t,isSiteConnected:a}=(0,m.A)(),{detail:n}=(0,i.A)(e),{status:h}=n,g=!!(0,o.A$)("userIsAdmin"),{data:v}=(0,l.A)({name:s.MB,query:{path:(0,s.IM)(t)},options:{enabled:a}}),f=v?.past_seven_days||{},w=v?.between_past_eight_and_fifteen_days||{},{recordEvent:E}=(0,u.A)(),k=(0,c.useCallback)((()=>{E("jetpack_myjetpack_stats_card_seedetailedstats_click",{product:e})}),[E]),y=(0,c.useCallback)((()=>!(h!==r.hp.CAN_UPGRADE)),[h]),A={href:"admin.php?page=stats",label:__("View detailed stats","jetpack-my-jetpack"),onClick:k,shouldShowButton:y},b={[r.hp.ACTIVE]:{label:__("View detailed stats","jetpack-my-jetpack")},[r.hp.SITE_CONNECTION_ERROR]:{label:__("Connect Jetpack to use Stats","jetpack-my-jetpack")},[r.hp.NEEDS_FIRST_SITE_CONNECTION]:{href:`#/add-${e}`}};return React.createElement(d.A,{admin:g,slug:e,primaryActionOverride:b,secondaryAction:A,showMenu:!0},React.createElement(p.A,{counts:f,previousCounts:w}))}},7881:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(8509),c=a(7425),r=a(5879),s=a(1112),i=a(4082),l=a(7723),o=a(1609),u=a(6007),m=a(1521),d=a(5350),p=a(4526),h=a(753),g=a(5225);const __=l.__,v=({onActivateSite:e,onUpdateWelcomeFlowExperiment:t,isActivating:a})=>{const{recordEvent:l}=(0,p.A)(),{setNotice:v,resetNotice:f}=(0,o.useContext)(u.g),w=__("Activate Jetpack in one click","jetpack-my-jetpack"),{refetch:E}=(0,d.A)(),k=(0,o.useCallback)((async()=>{l("jetpack_myjetpack_welcome_banner_connect_site_click"),t((e=>({...e,isLoading:!0}))),await e(),l("jetpack_myjetpack_welcome_banner_connect_site_success");try{await(0,h.A)(),(0,i.Pg)();const{variationName:e}=await(0,i.nQ)("jetpack_my_jetpack_welcome_flow_display_default_recommendations_upfront_202410");t((t=>({...t,variation:e??"control"})))}finally{f(),v(m.F,f),E(),t((e=>({...e,isLoading:!1})))}}),[e,t,l,E,f,v]);return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("Welcome to Jetpack!","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Unlock the power of your WordPress site with Jetpack, the complete toolkit for enhancing your site’s security, speed, and growth.","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack works behind the scenes to keep your site safe, make it lightning-fast, and to help you get more traffic.","jetpack-my-jetpack")),React.createElement(r.A,{agreeButtonLabel:w,mb:4}),React.createElement(s.A,{variant:"primary",disabled:a,isLoading:a,onClick:k},a?__("Activating…","jetpack-my-jetpack"):w)),React.createElement(n.A,{sm:6,md:8,lg:6,className:g.A["banner-image"]}))}},9230:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var n=a(8509),c=a(7425),r=a(6427),s=a(7723),i=a(5225);const __=s.__,l=()=>React.createElement(n.A,{className:i.A["banner-evaluation"]},React.createElement("div",{className:i.A["banner-loader"]},React.createElement(r.Spinner,null)),React.createElement(c.Ay,{variant:"title-medium",mb:1},__("Finding the best Jetpack tools","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body-small"},__("We‘re crunching the numbers to find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")))},6259:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(8509),c=a(7425),r=a(1112),s=a(6427),i=a(7723),l=a(3022),o=a(1609),u=a(5225);const __=i.__,m={protect:__("Protect my site","jetpack-my-jetpack"),performance:__("Improve my site‘s performance","jetpack-my-jetpack"),audience:__("Grow my audience","jetpack-my-jetpack"),content:__("Create quality content","jetpack-my-jetpack"),unsure:__("I don‘t know","jetpack-my-jetpack")},d={protect:!1,performance:!1,audience:!1,content:!1,unsure:!1},p=({onSkipOnboarding:e,onSubmitEvaluation:t})=>{const[a,i]=(0,o.useState)(d),p=(0,o.useCallback)((e=>t=>{i((a=>({...a,[e]:t})))}),[i]),h=(0,o.useCallback)((()=>t(a)),[t,a]),g=Object.values(a).some((e=>e));return React.createElement(React.Fragment,null,React.createElement(n.A,{sm:6,md:8,lg:6,className:u.A["banner-description"]},React.createElement(c.Ay,{variant:"headline-small",mb:3},__("What would you like Jetpack to do?","jetpack-my-jetpack")),React.createElement(c.Ay,{variant:"body",mb:2},__("Jetpack does a lot. Select the items that are most important to you and we‘ll find the Jetpack tools that are the best match for your site.","jetpack-my-jetpack")),React.createElement("form",{className:u.A.form},Object.entries(m).map((([e,t])=>React.createElement(s.CheckboxControl,{key:e,className:u.A["form-checkbox"],label:t,checked:a[e],onChange:p(e)}))),React.createElement("div",{className:u.A["form-actions"]},React.createElement(r.A,{variant:"primary",text:__("See solutions","jetpack-my-jetpack"),onClick:h,disabled:!g}),React.createElement(r.A,{variant:"link",className:u.A["form-link-action"],text:__("Skip onboarding","jetpack-my-jetpack"),onClick:e})))),React.createElement(n.A,{sm:6,md:8,lg:6,className:(0,l.A)(u.A["banner-image-evaluation"],{[u.A["is-selected"]]:g})}))}},8388:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var n=a(5918),c=a(8509),r=a(1112),s=a(7723),i=a(991),l=a(3022),o=a(1609),u=a(3804),m=a(4393),d=a(9812),p=a(4526),h=a(1870),g=a(2450),v=a(7881),f=a(9230),w=a(6259),E=a(5225);const __=s.__,k=({welcomeFlowExperiment:e,setWelcomeFlowExperiment:t,children:a})=>{const{recordEvent:s}=(0,p.A)(),{dismissWelcomeBanner:k}=(0,d.A)(),{recommendedModules:y,isFirstRun:A,submitEvaluation:b,saveEvaluationResult:j}=(0,u.A)(),{siteIsRegistered:R,siteIsRegistering:_,isUserConnected:C,isSiteConnected:x,handleRegisterSite:N}=(0,h.A)({skipUserConnection:!0}),[z,S]=(0,o.useState)(!1),[M,L]=(0,o.useState)(""),V=(0,o.useMemo)((()=>!R||e.isLoading?"connection":z?"evaluation-processing":y||(0,m.A)()?"treatment"===e.variation&&!y&&(0,m.A)()?"evaluation-processing":"evaluation":null),[z,y,R,e.isLoading,e.variation]);(0,o.useEffect)((()=>{M!==V&&(s("jetpack_myjetpack_welcome_banner_step_view",{current_step:V}),L(V))}),[V,M,s]);const P=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_dismiss_click",{current_step:V,is_user_connected:C,is_site_connected:x}),k()}),[s,V,C,x,k]),H=(0,o.useCallback)((()=>{s("jetpack_myjetpack_welcome_banner_skip_recommendations_click"),k()}),[k,s]),I=(0,o.useCallback)((async e=>{const t=Object.keys(e).filter((t=>e[t]));S(!0),s("jetpack_myjetpack_welcome_banner_evaluation_submit",{goals:t});try{const e=await b(t);await j(e),k()}catch(e){S(!1)}}),[k,s,j,b]);return(0,o.useEffect)((()=>{"treatment"===e.variation&&!y&&A&&"connection"===M&&"evaluation-processing"===V&&I({protect:!0,performance:!0,audience:!0,content:!0,unsure:!1})}),[V,M,y,e.variation,I,A]),(0,o.useEffect)((()=>{V||k()}),[V,k]),V?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"===V&&E.A["is-mandatory"])},React.createElement(n.A,{horizontalSpacing:0,horizontalGap:0,className:E.A["banner-content"]},"connection"===V&&React.createElement(v.A,{onActivateSite:N,onUpdateWelcomeFlowExperiment:t,isActivating:_||e.isLoading}),"evaluation"===V&&React.createElement(w.A,{onSkipOnboarding:H,onSubmitEvaluation:I}),"evaluation-processing"===V&&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:_,onClick:P}))):null}},8837:(e,t,a)=>{"use strict";a.d(t,{ED:()=>c,NM:()=>s,OM:()=>n,hp:()=>i,mk:()=>r});const n="my-jetpack-my-plans-manage",c="my-jetpack-my-plans-purchase",r="my-jetpack-my-plans-purchase-no-site",s={Home:"/",Connection:"/connection",AddAkismet:"/add-akismet",AddAntiSpam:"/add-anti-spam",AddBackup:"/add-backup",AddBoost:"/add-boost",AddCRM:"/add-crm",AddCreator:"/add-creator",AddJetpackAI:"/add-jetpack-ai",AddExtras:"/add-extras",AddProtect:"/add-protect/: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,3)}),[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
diff --git a/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php b/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php
index 9503cbdc..30dd74c3 100644
--- a/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php
+++ b/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php
@@ -42,7 +42,7 @@ class Initializer {
*
* @var string
*/
- const PACKAGE_VERSION = '4.35.12';
+ const PACKAGE_VERSION = '4.35.13-alpha';
/**
* HTML container ID for the IDC screen on My Jetpack page.
diff --git a/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md b/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md
index e26893ed..892f3edb 100644
--- a/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md
+++ b/jetpack_vendor/automattic/jetpack-search/CHANGELOG.md
@@ -12,6 +12,9 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Updated package dependencies.
+### Fixed
+- Add `key` to tag and cat lists in `SearchResultMinimal` to improve behavior if lists change at runtime.
+
## [0.45.7] - 2024-10-07
### Changed
- Updated package dependencies. [#39592]
diff --git a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php
index a7fd0764..1bbee93d 100644
--- a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php
+++ b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.asset.php
@@ -1 +1 @@
- array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '2537b787fba892edb496');
+ array('lodash', 'react', 'react-dom', 'react-jsx-runtime', 'wp-block-editor', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '12e0e7a491c644230363');
diff --git a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js
index 03367b19..c655285c 100644
--- a/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js
+++ b/jetpack_vendor/automattic/jetpack-search/build/customberg/jp-search-configure.js
@@ -13,7 +13,7 @@ __("%s (selected)","jetpack-search-pkg"),r):r;return React.createElement(s.Butto
_n("%d review","%d reviews",t,"jetpack-search-pkg"),t)),a().createElement("span",{className:"screen-reader-text"},(0,s.sprintf)(/* Translators: the first placeholder is the average product rating out of 5; the second is the number of product reviews. */
_n("Average rating of %1$d out of 5 from %2$d review.","Average rating of %1$d out of 5 from %2$d reviews.",t,"jetpack-search-pkg"),Number(e).toFixed(2),t)))}},3845:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(7723),n=r(3257),a=r.n(n),o=r(1609),i=r.n(o),c=r(7479);const __=s.__;class l extends o.Component{scrollElement=document.getElementsByClassName(c.tr)[0];componentDidMount(){this.scrollElement.addEventListener("scroll",this.checkScroll)}componentDidUnmount(){this.scrollElement.removeEventListener("scroll",this.checkScroll)}checkScroll=a()((()=>{const e=this.scrollElement.clientHeight+this.scrollElement.scrollTop+c.ZJ;this.props.enableLoadOnScroll&&e>=this.scrollElement.scrollHeight&&this.props.onLoadNextPage()}),100);render(){return i().createElement("button",{className:"jetpack-instant-search__scroll-button",disabled:this.props.isLoading,onClick:this.props.onLoadNextPage},this.props.isLoading?i().createElement("span",null,__("Loading…","jetpack-search-pkg")):i().createElement("span",null,__("Load more","jetpack-search-pkg")))}}const u=l},459:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var s=r(4224),n=r.n(s),a=r(3257),o=r.n(a),i=r(1609),c=r.n(i),l=r(5795),u=r(4952),p=r(7479),h=r(3089),d=r(6122),f=r(8924),m=r(999),g=r(538),y=r(6084),v=r(8165),_=r(6973),b=r(8568);class w extends i.Component{static defaultProps={overlayOptions:{},widgets:[]};constructor(){super(...arguments),this.state={isVisible:!!this.props.initialIsVisible,overlayOptionsCustomizerOverride:{}},this.getResults=o()(this.getResults,200),this.props.enableAnalytics?this.initializeAnalytics():(0,f.Re)(),this.props.shouldIntegrateWithDom?this.props.initializeQueryValues():this.props.disableQueryStringIntegration()}static getDerivedStateFromProps(e,t){return{overlayOptions:{...e.overlayOptions,...t.overlayOptionsCustomizerOverride}}}componentDidMount(){(this.props.initialShowResults&&this.props.initialIsVisible||this.props.isInCustomizer)&&this.getResults(),this.props.hasActiveQuery&&this.props.overlayOptions.enableFilteringOpensOverlay&&this.showResults()}componentDidUpdate(e,t){e.searchQuery===this.props.searchQuery&&e.sort===this.props.sort&&n()(e.filters)===n()(this.props.filters)&&n()(e.staticFilters)===n()(this.props.staticFilters)||this.onChangeQueryString(this.props.isHistoryNavigation),t.overlayOptions.defaultSort!==this.state.overlayOptions.defaultSort&&this.props.setSort(this.state.overlayOptions.defaultSort),n()(t.overlayOptions.excludedPostTypes)!==n()(this.state.overlayOptions.excludedPostTypes)&&this.getResults()}initializeAnalytics(){(0,f.ze)(),!window[p.O5].preventTrackingCookiesReset&&(0,f.kX)(),(0,f.wk)(this.props.options.siteId)}getResultFormat=()=>{if(this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==p.$K)return p.yj;return(0,d.lz)()||this.state.overlayOptions.resultFormat};initializeStaticFilters=()=>{const e=(0,h.PM)();e.length>0&&0===Object.keys(this.props.staticFilters).length&&e.forEach((e=>this.props.setStaticFilter(e.filter_id,e.selected,!0)))};hideResults=e=>{this.props.shouldIntegrateWithDom&&(0,d.fX)(this.props.initialHref,(()=>{this.setState({isVisible:!1}),this.props.clearQueryValues()}),e)};toggleResults=e=>{this.props.shouldIntegrateWithDom&&this.state.isVisible!==e&&(e&&this.initializeStaticFilters(),this.setState({isVisible:e}))};showResults=this.toggleResults.bind(this,!0);onChangeQueryString=e=>{this.getResults(),this.props.hasActiveQuery&&!this.state.isVisible&&this.showResults(),!this.props.hasActiveQuery&&e&&this.hideResults(e),null!==this.props.searchQuery&&document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.value=this.props.searchQuery}))};loadNextPage=()=>{this.props.hasNextPage&&this.getResults({pageHandle:this.props.response.page_handle})};getResults=({pageHandle:e}={})=>{this.props.makeSearchRequest({aggregations:e?{}:this.props.aggregations,excludedPostTypes:this.state.overlayOptions.excludedPostTypes,filter:this.props.filters,staticFilters:this.props.staticFilters,pageHandle:e,query:this.props.searchQuery,resultFormat:this.getResultFormat(),siteId:this.props.options.siteId,additionalBlogIds:this.props.options.additionalBlogIds,sort:this.props.sort,postsPerPage:this.props.options.postsPerPage,adminQueryFilter:this.props.options.adminQueryFilter,highlightFields:this.props.options.highlightFields,isInCustomizer:this.props.isInCustomizer})};updateOverlayOptions=(e,t)=>{this.setState((t=>({overlayOptionsCustomizerOverride:{...t.overlayOptionsCustomizerOverride,...e}})),t)};render(){const e=this.getResultFormat(),t=this.props.shouldCreatePortal?l.createPortal:e=>e;return c().createElement(i.Fragment,null,this.props.isInCustomizer&&c().createElement(y.A,{showResults:this.showResults,toggleResults:this.toggleResults,updateOverlayOptions:this.updateOverlayOptions}),this.props.shouldIntegrateWithDom&&c().createElement(v.A,{initializeQueryValues:this.props.initializeQueryValues,isVisible:this.state.isVisible,overlayOptions:this.state.overlayOptions,setFilter:this.props.setFilter,setSearchQuery:this.props.setSearchQuery,showResults:this.showResults,themeOptions:this.props.themeOptions}),t(c().createElement(_.A,{closeColor:this.state.overlayOptions.closeColor,closeOverlay:this.hideResults,colorTheme:this.state.overlayOptions.colorTheme,hasOverlayWidgets:this.props.hasOverlayWidgets,isVisible:this.state.isVisible},c().createElement(b.A,{closeOverlay:this.hideResults,enableLoadOnScroll:this.state.overlayOptions.enableInfScroll,enableFilteringOpensOverlay:this.state.overlayOptions.enableFilteringOpensOverlay,enableSort:this.state.overlayOptions.enableSort,filters:this.props.filters,staticFilters:this.props.staticFilters,hasError:this.props.hasError,hasNextPage:this.props.hasNextPage,highlightColor:this.state.overlayOptions.highlightColor,isLoading:this.props.isLoading,isPhotonEnabled:this.props.options.isPhotonEnabled,isPrivateSite:this.props.options.isPrivateSite,isVisible:this.state.isVisible,locale:this.props.options.locale,onChangeSearch:this.props.setSearchQuery,onChangeSort:this.props.setSort,onLoadNextPage:this.loadNextPage,overlayTrigger:this.state.overlayOptions.overlayTrigger,postTypes:this.props.options.postTypes,response:this.props.response,resultFormat:e,searchQuery:this.props.searchQuery,showPoweredBy:this.state.overlayOptions.showPoweredBy,sort:this.props.sort,widgets:this.props.options.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay,hasNonSearchWidgets:this.props.options.hasNonSearchWidgets,additionalBlogIds:this.props.options.additionalBlogIds,showPostDate:this.state.overlayOptions.enablePostDate})),document.body))}}const E=(0,u.Ng)(((e,t)=>({filters:(0,g.gA)(e),staticFilters:(0,g.kJ)(e),hasActiveQuery:(0,g.xp)(e),hasError:(0,g.JD)(e),isHistoryNavigation:(0,g.xk)(e),hasNextPage:(0,g.rB)(e),isLoading:(0,g.VP)(e),response:(0,g.mi)(e),searchQuery:(0,g.V8)(e),sort:(0,g.FD)(e,t.overlayOptions.defaultSort),widgetOutsideOverlay:(0,g.S7)(e)})),{clearQueryValues:m.Qt,disableQueryStringIntegration:m.go,initializeQueryValues:m.JF,makeSearchRequest:m.oZ,setStaticFilter:m.$6,setFilter:m.R6,setSearchQuery:m.Ri,setSort:m.d1})(w)},3297:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(7723),n=r(4436),a=r.n(n),o=r(1609),i=r.n(o),c=r(7479),l=r(1539);const __=s.__;let u=null;const p=e=>{const[t]=(0,o.useState)((()=>a()("jetpack-instant-search__box-input-"))),r=(0,o.useRef)(null);return(0,o.useEffect)((()=>{var t;e.isVisible?(t=r.current,()=>{u=t.ownerDocument.activeElement,t.focus()})():e.shouldRestoreFocus&&u&&u.focus()}),[e.isVisible,e.shouldRestoreFocus]),i().createElement(o.Fragment,null,i().createElement("div",{className:"jetpack-instant-search__box"},i().createElement("label",{className:"jetpack-instant-search__box-label",htmlFor:t},i().createElement("div",{className:"jetpack-instant-search__box-gridicon"},i().createElement(l.A,{icon:"search",size:24})),i().createElement("input",{autoComplete:"off",id:t,className:"search-field "+c.Md,inputMode:"search",onChange:e.isVisible?e.onChange:null,ref:r,placeholder:__("Search…","jetpack-search-pkg"),type:"search",value:e.searchQuery??""}),"string"==typeof e.searchQuery&&e.searchQuery.length>0&&
/* Translators: Button is used to clear the search input query. */
-i().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"),onClick:e.onClear}),i().createElement("button",{className:"screen-reader-text assistive-text",tabIndex:"-1"},__("Search","jetpack-search-pkg")))))}},1242:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s),a=r(1168);const o=e=>n().createElement("div",{className:"jetpack-instant-search__search-form-controls",role:"form"},e.children,e.enableSort&&n().createElement(a.A,{onChange:e.onChangeSort,resultFormat:e.resultFormat,value:e.sort}))},5450:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,t:()=>h});var s=r(3022),n=r(4436),a=r.n(n),o=r(1609),i=r.n(o),c=r(4952),l=r(1557),u=r.n(l),p=r(7574);const h=e=>e.split(" ").join("T");class d extends o.Component{filtersList=(0,o.createRef)();idPrefix=a()("jetpack-instant-search__search-filter-");getIdentifier(){return"postType"===this.props.type?"post_types":"author"===this.props.type?"authors":"blogId"===this.props.type?"blog_ids":"date"===this.props.type?`${this.props.configuration.interval}_${this.props.configuration.field}`:"taxonomy"===this.props.type?this.props.configuration.taxonomy:"group"===this.props.type?this.props.configuration.filter_id:void 0}isChecked(e){return Boolean(this.props.value&&this.props.value.includes(e))}toggleFilter=()=>{this.props.onChange(this.getIdentifier(),(0,p.e)(this.filtersList.current))};toggleStaticFilter=e=>{this.props.onChange(this.getIdentifier(),e.target.value)};renderDate=({key_as_string:e,doc_count:t})=>{const{locale:r="en-US"}=this.props;return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,className:"jetpack-instant-search__search-filter-list-label"},new Date(h(e)).toLocaleString(r,function(e){switch(e){case"day":return{year:"numeric",month:"long",day:"numeric"};case"month":return{year:"numeric",month:"long"};case"year":return{year:"numeric"}}return{year:"numeric",month:"long"}}(this.props.configuration.interval))," ","(",t,")"))};renderPostType=({key:e,doc_count:t})=>{const r=e in this.props.postTypes?this.props.postTypes[e].singular_name:e;return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-post-types-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-post-types-${e}`,className:"jetpack-instant-search__search-filter-list-label"},u()(r)," (",t,")"))};renderAuthor=({key:e,doc_count:t})=>{const[r,s]=e&&e.split(/\/(.+)/);return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(r),disabled:!this.isChecked(r)&&0===t,id:`${this.idPrefix}-authors-${r}`,name:r,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-authors-${r}`,className:"jetpack-instant-search__search-filter-list-label"},u()(s)," (",t,")"))};renderBlogId=({key:e,doc_count:t})=>{const r=e.toString(),s=this.props.blogIdFilteringLabels?.[e]||r;return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(r),disabled:!this.isChecked(r)&&0===t,id:`${this.idPrefix}-blog-ids-${r}`,name:r,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-blog-ids-${r}`,className:"jetpack-instant-search__search-filter-list-label"},u()(s)," (",t,")"))};renderTaxonomy=({key:e,doc_count:t})=>{const[r,s]=e&&e.split(/\/(.+)/);return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(r),disabled:!this.isChecked(r)&&0===t,id:`${this.idPrefix}-taxonomies-${r}`,name:r,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-taxonomies-${r}`,className:"jetpack-instant-search__search-filter-list-label"},u()(s)," (",t,")"))};renderGroup=e=>i().createElement("div",{className:"jetpack-instant-search__search-filter-group-item"},i().createElement("input",{checked:this.isChecked(e.value),id:`${this.idPrefix}-groups-${e.value}`,name:this.props.configuration.filter_id,onChange:this.toggleStaticFilter,value:e.value,type:"radio",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-groups-${e.value}`,className:"jetpack-instant-search__search-filter-list-label"},e.name));renderDates(){return[...this.props.aggregation.buckets.filter((e=>!!e)).map(this.renderDate)].reverse().slice(0,this.props.configuration.count)}renderPostTypes(){return this.props.aggregation.buckets.map(this.renderPostType)}renderAuthors(){return this.props.aggregation.buckets.map(this.renderAuthor)}renderBlogIds(){return this.props.aggregation.buckets.map(this.renderBlogId)}renderTaxonomies(){return this.props.aggregation.buckets.map(this.renderTaxonomy)}renderGroups(){return this.props.configuration.values.map(this.renderGroup)}render(){return i().createElement("div",{id:`${this.idPrefix}-${this.props.type}`},i().createElement("h3",{className:"jetpack-instant-search__search-filter-sub-heading"},this.props.configuration.name),i().createElement("div",{ref:this.filtersList},i().createElement("div",{className:(0,s.A)("jetpack-instant-search__search-filter-list","jetpack-instant-search__search-static-filter-list",`jetpack-instant-search__search-static-filter-variation-${this.props.configuration.variation}`)},"group"===this.props.type&&this.renderGroups()),this.props.aggregation&&"buckets"in this.props.aggregation&&i().createElement("div",{className:"jetpack-instant-search__search-filter-list"},"date"===this.props.type&&this.renderDates(),"postType"===this.props.type&&this.renderPostTypes(),"author"===this.props.type&&this.renderAuthors(),"blogId"===this.props.type&&this.renderBlogIds(),"taxonomy"===this.props.type&&this.renderTaxonomies())))}}const f=(0,c.Ng)((e=>({blogIdFilteringLabels:e.serverOptions.blogIdFilteringLabels})))(d)},1503:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(7723),n=r(1609),a=r.n(n),o=r(4952),i=r(3089),c=r(8924),l=r(999),u=r(5450);const __=s.__;class p extends n.Component{static defaultProps={showClearFiltersButton:!0,showTitle:!0};onChangeFilter=(e,t)=>{this.props.setFilter(e,t),this.props.onChange&&this.props.onChange()};onChangeStaticFilter=(e,t)=>{(0,c.oD)({filterName:e,filterValue:t}),this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};onClearFilters=e=>{e.preventDefault(),this.props.clearFilters(),this.props.onChange&&this.props.onChange()};hasActiveFilters(){return Object.keys(this.props.filters).length>0}renderFilterComponent=({configuration:e,results:t})=>t&&a().createElement(u.A,{aggregation:t,configuration:e,locale:this.props.locale,onChange:this.onChangeFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.filters[(0,i.xf)(e)]});renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:a().createElement(u.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.staticFilters[(0,i.xf)(e)]});render(){if(!this.props.widget)return null;const e=(0,i.PM)("sidebar"),t=this.props.results?.aggregations;return a().createElement("div",{className:"jetpack-instant-search__search-filters"},this.props.showTitle&&a().createElement("h2",{className:"jetpack-instant-search__search-filters-title"},__("Filter options","jetpack-search-pkg")),this.props.showClearFiltersButton&&this.hasActiveFilters()&&a().createElement("button",{className:"jetpack-instant-search__clear-filters-link",onClick:this.onClearFilters},__("Clear filters","jetpack-search-pkg")),this.props.widget?.filters&&this.props.widget.filters.length>0&&e.map(this.renderStaticFilterComponent),this.props.widget?.filters?.map((e=>t?{configuration:e,results:t[e.filter_id]}:null)).filter((e=>!!e)).filter((({results:e})=>!!e&&Array.isArray(e.buckets)&&e.buckets.length>0)).map(this.renderFilterComponent))}}const h=(0,o.Ng)(null,{clearFilters:l.hi,setFilter:l.R6,setStaticFilter:l.$6})(p)},5846:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(1609),n=r.n(s),a=r(3297);const o=e=>e.preventDefault();class i extends s.Component{onClear=()=>this.props.onChangeSearch("");onChangeSearch=e=>this.props.onChangeSearch(e.currentTarget.value);render(){return n().createElement("form",{autoComplete:"off",onSubmit:o,role:"search",className:this.props.className},n().createElement("div",{className:"jetpack-instant-search__search-form"},n().createElement(a.A,{isVisible:this.props.isVisible,onChange:this.onChangeSearch,onClear:this.onClear,shouldRestoreFocus:!0,searchQuery:this.props.searchQuery})))}}const c=i},5260:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s),a=r(1539);const o=({comments:e,iconSize:t=18})=>e?n().createElement("div",{className:"jetpack-instant-search__search-result-comments"},n().createElement(a.A,{icon:"comment",size:t}),n().createElement("span",{className:"jetpack-instant-search__search-result-comments-text",dangerouslySetInnerHTML:{__html:e.join(" ... ")}})):null},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(3832),n=r(1609),a=r.n(n),o=r(413),i=r(2355),c=r(5450),l=r(5260);function u(e){const{isMultiSite:t,locale:r="en-US",showPostDate:n}=e,{result_type:u,fields:p,highlight:h}=e.result;if("post"!==u)return null;const d=Array.isArray(p["image.url.raw"])?p["image.url.raw"][0]:p["image.url.raw"];return Array.isArray(p.author)&&(p.author.length>3?p.author=p.author.slice(0,3).join(", ")+"...":p.author=p.author.join(", ")),a().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-expanded",`jetpack-instant-search__search-result-expanded--${p.post_type}`,d?"":"jetpack-instant-search__search-result-expanded--no-image",t?"is-multisite":"",(()=>{let e=p["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,s.cleanForSlug)(e))).join(" ")].join(" ")},a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content-container"},a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__copy-container"},a().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-expanded__title"},a().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-expanded__title-link",href:`//${p["permalink.url.raw"]}`,onClick:e.onClick},a().createElement("span",{dangerouslySetInnerHTML:{__html:h.title}}),"yes"===p["forum.topic_resolved"]&&a().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),!t&&a().createElement(o.A,{className:"jetpack-instant-search__search-result-expanded__path",onClick:e.onClick,url:`//${p["permalink.url.raw"]}`}),a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content",dangerouslySetInnerHTML:{__html:h&&"object"==typeof h?Object.entries(h).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}}),h.comments&&a().createElement(l.A,{comments:h.comments})),a().createElement("a",{className:"jetpack-instant-search__search-result-expanded__image-link",href:`//${p["permalink.url.raw"]}`,onClick:e.onClick,tabIndex:"-1","aria-hidden":"true"},a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__image-container"},d?a().createElement(i.A,{alt:p["image.alt_text"],className:"jetpack-instant-search__search-result-expanded__image",isPhotonEnabled:e.isPhotonEnabled,src:`//${d}`}):null))),(t||n)&&a().createElement("ul",{className:"jetpack-instant-search__search-result-expanded__footer"},t&&a().createElement(a().Fragment,null,a().createElement("li",null,a().createElement(i.A,{alt:p.blog_name,className:"jetpack-instant-search__search-result-expanded__footer-blog-image",isPhotonEnabled:!1,height:24,width:24,src:p.blog_icon_url,lazyLoad:!1}),a().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-blog"},p.blog_name)),a().createElement("li",null,a().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-author"},p.author))),n&&a().createElement("li",null,a().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-date"},new Date((0,c.t)(p.date)).toLocaleDateString(r,{year:"numeric",month:"short",day:"numeric"})))))}},6485:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(3832),n=r(1609),a=r.n(n),o=r(1539),i=r(413),c=r(7846),l=r(5260);class u extends n.Component{getIconSize(){return 18}getTags(){let e=this.props.result.fields["tag.name.default"];return e?(Array.isArray(e)||(e=[e]),e.slice(0,5)):[]}getCategories(e=!1){let t=this.props.result.fields["category.name.default"];return t?(Array.isArray(t)||(t=[t]),e?t:t.slice(0,5)):[]}renderNoMatchingContent(){const e=this.getTags(),t=this.getCategories(),r=0===e.length&&0===t.length;return a().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content"},r&&a().createElement(i.A,{url:this.props.result.fields["permalink.url.raw"]}),a().createElement("div",{className:"jetpack-instant-search__search-result-minimal-cats-and-tags"},0!==e.length&&a().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-tags"},e.map((e=>a().createElement("li",{className:"jetpack-instant-search__search-result-minimal-tag"},a().createElement(o.A,{icon:"tag",size:this.getIconSize()}),a().createElement("span",{className:"jetpack-instant-search__search-result-minimal-tag-text"},e))))),0!==t.length&&a().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-cats"},t.map((e=>a().createElement("li",{className:"jetpack-instant-search__search-result-minimal-cat"},a().createElement(o.A,{icon:"folder",size:this.getIconSize()}),a().createElement("span",{className:"jetpack-instant-search__search-result-minimal-cat-text"},e)))))))}renderMatchingContent(){return a().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content",dangerouslySetInnerHTML:{__html:this.props.result.highlight&&"object"==typeof this.props.result.highlight?Object.entries(this.props.result.highlight).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}})}render(){const{result_type:e,fields:t,highlight:r}=this.props.result;if("post"!==e)return null;const n=!r||"object"!=typeof r||Object.entries(r).every((([e,t])=>"comments"===e||"title"===e||!Array.isArray(t)||""===t[0]));return a().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-minimal",this.getCategories(!0).map((e=>"jetpack-instant-search__search-result-category--"+(0,s.cleanForSlug)(e))).join(" ")].join(" ")},a().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-minimal-title"},a().createElement(c.A,{postType:t.post_type,shortcodeTypes:t.shortcode_types}),a().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-minimal-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},a().createElement("span",{dangerouslySetInnerHTML:{__html:r.title}}),"yes"===t["forum.topic_resolved"]&&a().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),n?this.renderNoMatchingContent():this.renderMatchingContent(),a().createElement(l.A,{comments:r&&r.comments}))}}const p=u},9761:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(7723),n=r(3832),a=r(1609),o=r.n(a),i=r(1539),c=r(2355),l=r(2652),u=r(6777);const __=s.__;class p extends a.Component{render(){const{result_type:e,fields:t,highlight:r}=this.props.result;if("post"!==e)return null;const s=Array.isArray(t["image.url.raw"])?t["image.url.raw"][0]:t["image.url.raw"],a=Array.isArray(r.title)&&r.title[0].length>0?r.title[0]:__("No title","jetpack-search-pkg"),p="string"==typeof this.props.searchQuery&&""!==this.props.searchQuery.trim(),h=a.includes(""),d=p&&!h&&"object"==typeof r&&Object.entries(r).some((([e,t])=>"title"!==e&&"comments"!==e&&Array.isArray(t)&&t[0]?.length>0));return o().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-product",(()=>{let e=t["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,n.cleanForSlug)(e))).join(" ")].join(" ")},o().createElement("a",{className:"jetpack-instant-search__search-result-product-img-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},o().createElement("div",{className:"jetpack-instant-search__search-result-product-img-container "+(s?"":"jetpack-instant-search__search-result-product-img-container--placeholder")},s?o().createElement(c.A,{alt:t["image.alt_text"],className:"jetpack-instant-search__search-result-product-img",isPhotonEnabled:this.props.isPhotonEnabled,src:`//${s}`}):o().createElement("div",{className:"jetpack-instant-search__search-result-product-img"},o().createElement(i.A,{icon:"block",style:{}}),o().createElement(i.A,{icon:"image",style:{},title:__("Does not have an image","jetpack-search-pkg")})))),o().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-product-title"},o().createElement("a",{className:"jetpack-instant-search__search-result-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick,dangerouslySetInnerHTML:{__html:a}})),o().createElement(l.A,{price:t["wc.price"],salePrice:t["wc.sale_price"],formattedPrice:t["wc.formatted_price"],formattedRegularPrice:t["wc.formatted_regular_price"],formattedSalePrice:t["wc.formatted_sale_price"]}),!!t["meta._wc_average_rating.double"]&&o().createElement(u.A,{count:t["meta._wc_review_count.long"],rating:t["meta._wc_average_rating.double"],permalink:`//${t["permalink.url.raw"]}`}),d&&o().createElement("div",{className:"jetpack-instant-search__search-result-product-match"},o().createElement("mark",null,o().createElement(i.A,{icon:"search",style:{},title:!1}),o().createElement("span",null,"comment"in r?__("Matches comments","jetpack-search-pkg"):__("Matches content","jetpack-search-pkg",0)))))}}const h=p},3735:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6072),n=r.n(s),a=r(1609),o=r.n(a),i=r(7479),c=r(8924),l=r(829),u=r(6485),p=r(9761);class h extends a.Component{componentDidMount(){this.props.railcar&&(0,c.A8)(this.getCommonTrainTracksProps())}componentDidUpdate(e){this.props.railcar!==e.railcar&&this.props.railcar&&(0,c.A8)(this.getCommonTrainTracksProps())}getCommonTrainTracksProps(){return{fetch_algo:this.props.railcar.fetch_algo,fetch_position:this.props.railcar.fetch_position,fetch_query:this.props.railcar.fetch_query,railcar:this.props.railcar.railcar,rec_blog_id:this.props.railcar.rec_blog_id,rec_post_id:this.props.railcar.rec_post_id,session_id:this.props.railcar.session_id,ui_algo:"jetpack-instant-search-ui/v1",ui_position:this.props.index}}onClick=()=>{this.props.railcar&&(0,c.wH)({...this.getCommonTrainTracksProps(),action:"click"})};render(){return this.props.resultFormat===i.s6?o().createElement(p.A,n()({onClick:this.onClick},this.props)):this.props.resultFormat===i.yj?o().createElement(l.A,n()({onClick:this.onClick},this.props)):o().createElement(u.A,n()({onClick:this.onClick},this.props))}}const d=h},8568:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var s=r(7723),n=r(3022),a=r(1609),o=r.n(a),i=r(7084),c=r(7479),l=r(6299),u=r(3089),p=r(1539),h=r(4120),d=r(8961),f=r(3845),m=r(1242),g=r(5846),y=r(3735),v=r(6097),_=r(1080);const __=s.__,_n=s._n;class b extends a.Component{state={shouldShowMobileSecondary:!1};toggleMobileSecondary=e=>{"click"!==e.type&&("keydown"!==e.type||"Enter"!==e.key&&" "!==e.key)||(" "===e.key&&e.preventDefault(),this.setState((e=>({shouldShowMobileSecondary:!e.shouldShowMobileSecondary}))))};hasFilterOptions(){let e=[...this.props.widgets];return this.props.widgetOutsideOverlay?.filters?.length>0&&(e=[this.props.widgetOutsideOverlay,...e]),e.length>0}getSearchTitle(){const{total:e=0,corrected_query:t=!1}=this.props.response,r=""!==this.props.searchQuery,n=!1!==t,a=this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==c.$K;if(this.props.isLoading)return r?__("Searching…","jetpack-search-pkg",0):__("Loading popular results…","jetpack-search-pkg");if(0===e||this.props.hasError)return __("No results found","jetpack-search-pkg");const o=(new Intl.NumberFormat).format(e);if(r&&n)return(0,s.sprintf)(/* translators: %1$s: number of results. %2$s: the corrected search query. */
+i().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"),onClick:e.onClear}),i().createElement("button",{className:"screen-reader-text assistive-text",tabIndex:"-1"},__("Search","jetpack-search-pkg")))))}},1242:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s),a=r(1168);const o=e=>n().createElement("div",{className:"jetpack-instant-search__search-form-controls",role:"form"},e.children,e.enableSort&&n().createElement(a.A,{onChange:e.onChangeSort,resultFormat:e.resultFormat,value:e.sort}))},5450:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,t:()=>h});var s=r(3022),n=r(4436),a=r.n(n),o=r(1609),i=r.n(o),c=r(4952),l=r(1557),u=r.n(l),p=r(7574);const h=e=>e.split(" ").join("T");class d extends o.Component{filtersList=(0,o.createRef)();idPrefix=a()("jetpack-instant-search__search-filter-");getIdentifier(){return"postType"===this.props.type?"post_types":"author"===this.props.type?"authors":"blogId"===this.props.type?"blog_ids":"date"===this.props.type?`${this.props.configuration.interval}_${this.props.configuration.field}`:"taxonomy"===this.props.type?this.props.configuration.taxonomy:"group"===this.props.type?this.props.configuration.filter_id:void 0}isChecked(e){return Boolean(this.props.value&&this.props.value.includes(e))}toggleFilter=()=>{this.props.onChange(this.getIdentifier(),(0,p.e)(this.filtersList.current))};toggleStaticFilter=e=>{this.props.onChange(this.getIdentifier(),e.target.value)};renderDate=({key_as_string:e,doc_count:t})=>{const{locale:r="en-US"}=this.props;return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,className:"jetpack-instant-search__search-filter-list-label"},new Date(h(e)).toLocaleString(r,function(e){switch(e){case"day":return{year:"numeric",month:"long",day:"numeric"};case"month":return{year:"numeric",month:"long"};case"year":return{year:"numeric"}}return{year:"numeric",month:"long"}}(this.props.configuration.interval))," ","(",t,")"))};renderPostType=({key:e,doc_count:t})=>{const r=e in this.props.postTypes?this.props.postTypes[e].singular_name:e;return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-post-types-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-post-types-${e}`,className:"jetpack-instant-search__search-filter-list-label"},u()(r)," (",t,")"))};renderAuthor=({key:e,doc_count:t})=>{const[r,s]=e&&e.split(/\/(.+)/);return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(r),disabled:!this.isChecked(r)&&0===t,id:`${this.idPrefix}-authors-${r}`,name:r,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-authors-${r}`,className:"jetpack-instant-search__search-filter-list-label"},u()(s)," (",t,")"))};renderBlogId=({key:e,doc_count:t})=>{const r=e.toString(),s=this.props.blogIdFilteringLabels?.[e]||r;return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(r),disabled:!this.isChecked(r)&&0===t,id:`${this.idPrefix}-blog-ids-${r}`,name:r,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-blog-ids-${r}`,className:"jetpack-instant-search__search-filter-list-label"},u()(s)," (",t,")"))};renderTaxonomy=({key:e,doc_count:t})=>{const[r,s]=e&&e.split(/\/(.+)/);return i().createElement("div",null,i().createElement("input",{checked:this.isChecked(r),disabled:!this.isChecked(r)&&0===t,id:`${this.idPrefix}-taxonomies-${r}`,name:r,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-taxonomies-${r}`,className:"jetpack-instant-search__search-filter-list-label"},u()(s)," (",t,")"))};renderGroup=e=>i().createElement("div",{className:"jetpack-instant-search__search-filter-group-item"},i().createElement("input",{checked:this.isChecked(e.value),id:`${this.idPrefix}-groups-${e.value}`,name:this.props.configuration.filter_id,onChange:this.toggleStaticFilter,value:e.value,type:"radio",className:"jetpack-instant-search__search-filter-list-input"}),i().createElement("label",{htmlFor:`${this.idPrefix}-groups-${e.value}`,className:"jetpack-instant-search__search-filter-list-label"},e.name));renderDates(){return[...this.props.aggregation.buckets.filter((e=>!!e)).map(this.renderDate)].reverse().slice(0,this.props.configuration.count)}renderPostTypes(){return this.props.aggregation.buckets.map(this.renderPostType)}renderAuthors(){return this.props.aggregation.buckets.map(this.renderAuthor)}renderBlogIds(){return this.props.aggregation.buckets.map(this.renderBlogId)}renderTaxonomies(){return this.props.aggregation.buckets.map(this.renderTaxonomy)}renderGroups(){return this.props.configuration.values.map(this.renderGroup)}render(){return i().createElement("div",{id:`${this.idPrefix}-${this.props.type}`},i().createElement("h3",{className:"jetpack-instant-search__search-filter-sub-heading"},this.props.configuration.name),i().createElement("div",{ref:this.filtersList},i().createElement("div",{className:(0,s.A)("jetpack-instant-search__search-filter-list","jetpack-instant-search__search-static-filter-list",`jetpack-instant-search__search-static-filter-variation-${this.props.configuration.variation}`)},"group"===this.props.type&&this.renderGroups()),this.props.aggregation&&"buckets"in this.props.aggregation&&i().createElement("div",{className:"jetpack-instant-search__search-filter-list"},"date"===this.props.type&&this.renderDates(),"postType"===this.props.type&&this.renderPostTypes(),"author"===this.props.type&&this.renderAuthors(),"blogId"===this.props.type&&this.renderBlogIds(),"taxonomy"===this.props.type&&this.renderTaxonomies())))}}const f=(0,c.Ng)((e=>({blogIdFilteringLabels:e.serverOptions.blogIdFilteringLabels})))(d)},1503:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(7723),n=r(1609),a=r.n(n),o=r(4952),i=r(3089),c=r(8924),l=r(999),u=r(5450);const __=s.__;class p extends n.Component{static defaultProps={showClearFiltersButton:!0,showTitle:!0};onChangeFilter=(e,t)=>{this.props.setFilter(e,t),this.props.onChange&&this.props.onChange()};onChangeStaticFilter=(e,t)=>{(0,c.oD)({filterName:e,filterValue:t}),this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};onClearFilters=e=>{e.preventDefault(),this.props.clearFilters(),this.props.onChange&&this.props.onChange()};hasActiveFilters(){return Object.keys(this.props.filters).length>0}renderFilterComponent=({configuration:e,results:t})=>t&&a().createElement(u.A,{aggregation:t,configuration:e,locale:this.props.locale,onChange:this.onChangeFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.filters[(0,i.xf)(e)]});renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:a().createElement(u.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,i.sm)(e),value:this.props.staticFilters[(0,i.xf)(e)]});render(){if(!this.props.widget)return null;const e=(0,i.PM)("sidebar"),t=this.props.results?.aggregations;return a().createElement("div",{className:"jetpack-instant-search__search-filters"},this.props.showTitle&&a().createElement("h2",{className:"jetpack-instant-search__search-filters-title"},__("Filter options","jetpack-search-pkg")),this.props.showClearFiltersButton&&this.hasActiveFilters()&&a().createElement("button",{className:"jetpack-instant-search__clear-filters-link",onClick:this.onClearFilters},__("Clear filters","jetpack-search-pkg")),this.props.widget?.filters&&this.props.widget.filters.length>0&&e.map(this.renderStaticFilterComponent),this.props.widget?.filters?.map((e=>t?{configuration:e,results:t[e.filter_id]}:null)).filter((e=>!!e)).filter((({results:e})=>!!e&&Array.isArray(e.buckets)&&e.buckets.length>0)).map(this.renderFilterComponent))}}const h=(0,o.Ng)(null,{clearFilters:l.hi,setFilter:l.R6,setStaticFilter:l.$6})(p)},5846:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var s=r(1609),n=r.n(s),a=r(3297);const o=e=>e.preventDefault();class i extends s.Component{onClear=()=>this.props.onChangeSearch("");onChangeSearch=e=>this.props.onChangeSearch(e.currentTarget.value);render(){return n().createElement("form",{autoComplete:"off",onSubmit:o,role:"search",className:this.props.className},n().createElement("div",{className:"jetpack-instant-search__search-form"},n().createElement(a.A,{isVisible:this.props.isVisible,onChange:this.onChangeSearch,onClear:this.onClear,shouldRestoreFocus:!0,searchQuery:this.props.searchQuery})))}}const c=i},5260:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(1609),n=r.n(s),a=r(1539);const o=({comments:e,iconSize:t=18})=>e?n().createElement("div",{className:"jetpack-instant-search__search-result-comments"},n().createElement(a.A,{icon:"comment",size:t}),n().createElement("span",{className:"jetpack-instant-search__search-result-comments-text",dangerouslySetInnerHTML:{__html:e.join(" ... ")}})):null},829:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(3832),n=r(1609),a=r.n(n),o=r(413),i=r(2355),c=r(5450),l=r(5260);function u(e){const{isMultiSite:t,locale:r="en-US",showPostDate:n}=e,{result_type:u,fields:p,highlight:h}=e.result;if("post"!==u)return null;const d=Array.isArray(p["image.url.raw"])?p["image.url.raw"][0]:p["image.url.raw"];return Array.isArray(p.author)&&(p.author.length>3?p.author=p.author.slice(0,3).join(", ")+"...":p.author=p.author.join(", ")),a().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-expanded",`jetpack-instant-search__search-result-expanded--${p.post_type}`,d?"":"jetpack-instant-search__search-result-expanded--no-image",t?"is-multisite":"",(()=>{let e=p["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,s.cleanForSlug)(e))).join(" ")].join(" ")},a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content-container"},a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__copy-container"},a().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-expanded__title"},a().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-expanded__title-link",href:`//${p["permalink.url.raw"]}`,onClick:e.onClick},a().createElement("span",{dangerouslySetInnerHTML:{__html:h.title}}),"yes"===p["forum.topic_resolved"]&&a().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),!t&&a().createElement(o.A,{className:"jetpack-instant-search__search-result-expanded__path",onClick:e.onClick,url:`//${p["permalink.url.raw"]}`}),a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content",dangerouslySetInnerHTML:{__html:h&&"object"==typeof h?Object.entries(h).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}}),h.comments&&a().createElement(l.A,{comments:h.comments})),a().createElement("a",{className:"jetpack-instant-search__search-result-expanded__image-link",href:`//${p["permalink.url.raw"]}`,onClick:e.onClick,tabIndex:"-1","aria-hidden":"true"},a().createElement("div",{className:"jetpack-instant-search__search-result-expanded__image-container"},d?a().createElement(i.A,{alt:p["image.alt_text"],className:"jetpack-instant-search__search-result-expanded__image",isPhotonEnabled:e.isPhotonEnabled,src:`//${d}`}):null))),(t||n)&&a().createElement("ul",{className:"jetpack-instant-search__search-result-expanded__footer"},t&&a().createElement(a().Fragment,null,a().createElement("li",null,a().createElement(i.A,{alt:p.blog_name,className:"jetpack-instant-search__search-result-expanded__footer-blog-image",isPhotonEnabled:!1,height:24,width:24,src:p.blog_icon_url,lazyLoad:!1}),a().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-blog"},p.blog_name)),a().createElement("li",null,a().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-author"},p.author))),n&&a().createElement("li",null,a().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-date"},new Date((0,c.t)(p.date)).toLocaleDateString(r,{year:"numeric",month:"short",day:"numeric"})))))}},6485:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(3832),n=r(1609),a=r.n(n),o=r(1539),i=r(413),c=r(7846),l=r(5260);class u extends n.Component{getIconSize(){return 18}getTags(){let e=this.props.result.fields["tag.name.default"];return e?(Array.isArray(e)||(e=[e]),e.slice(0,5)):[]}getCategories(e=!1){let t=this.props.result.fields["category.name.default"];return t?(Array.isArray(t)||(t=[t]),e?t:t.slice(0,5)):[]}renderNoMatchingContent(){const e=this.getTags(),t=this.getCategories(),r=0===e.length&&0===t.length;return a().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content"},r&&a().createElement(i.A,{url:this.props.result.fields["permalink.url.raw"]}),a().createElement("div",{className:"jetpack-instant-search__search-result-minimal-cats-and-tags"},0!==e.length&&a().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-tags"},e.map((e=>a().createElement("li",{key:e,className:"jetpack-instant-search__search-result-minimal-tag"},a().createElement(o.A,{icon:"tag",size:this.getIconSize()}),a().createElement("span",{className:"jetpack-instant-search__search-result-minimal-tag-text"},e))))),0!==t.length&&a().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-cats"},t.map((e=>a().createElement("li",{key:e,className:"jetpack-instant-search__search-result-minimal-cat"},a().createElement(o.A,{icon:"folder",size:this.getIconSize()}),a().createElement("span",{className:"jetpack-instant-search__search-result-minimal-cat-text"},e)))))))}renderMatchingContent(){return a().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content",dangerouslySetInnerHTML:{__html:this.props.result.highlight&&"object"==typeof this.props.result.highlight?Object.entries(this.props.result.highlight).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}})}render(){const{result_type:e,fields:t,highlight:r}=this.props.result;if("post"!==e)return null;const n=!r||"object"!=typeof r||Object.entries(r).every((([e,t])=>"comments"===e||"title"===e||!Array.isArray(t)||""===t[0]));return a().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-minimal",this.getCategories(!0).map((e=>"jetpack-instant-search__search-result-category--"+(0,s.cleanForSlug)(e))).join(" ")].join(" ")},a().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-minimal-title"},a().createElement(c.A,{postType:t.post_type,shortcodeTypes:t.shortcode_types}),a().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-minimal-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},a().createElement("span",{dangerouslySetInnerHTML:{__html:r.title}}),"yes"===t["forum.topic_resolved"]&&a().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),n?this.renderNoMatchingContent():this.renderMatchingContent(),a().createElement(l.A,{comments:r&&r.comments}))}}const p=u},9761:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(7723),n=r(3832),a=r(1609),o=r.n(a),i=r(1539),c=r(2355),l=r(2652),u=r(6777);const __=s.__;class p extends a.Component{render(){const{result_type:e,fields:t,highlight:r}=this.props.result;if("post"!==e)return null;const s=Array.isArray(t["image.url.raw"])?t["image.url.raw"][0]:t["image.url.raw"],a=Array.isArray(r.title)&&r.title[0].length>0?r.title[0]:__("No title","jetpack-search-pkg"),p="string"==typeof this.props.searchQuery&&""!==this.props.searchQuery.trim(),h=a.includes(""),d=p&&!h&&"object"==typeof r&&Object.entries(r).some((([e,t])=>"title"!==e&&"comments"!==e&&Array.isArray(t)&&t[0]?.length>0));return o().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-product",(()=>{let e=t["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,n.cleanForSlug)(e))).join(" ")].join(" ")},o().createElement("a",{className:"jetpack-instant-search__search-result-product-img-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},o().createElement("div",{className:"jetpack-instant-search__search-result-product-img-container "+(s?"":"jetpack-instant-search__search-result-product-img-container--placeholder")},s?o().createElement(c.A,{alt:t["image.alt_text"],className:"jetpack-instant-search__search-result-product-img",isPhotonEnabled:this.props.isPhotonEnabled,src:`//${s}`}):o().createElement("div",{className:"jetpack-instant-search__search-result-product-img"},o().createElement(i.A,{icon:"block",style:{}}),o().createElement(i.A,{icon:"image",style:{},title:__("Does not have an image","jetpack-search-pkg")})))),o().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-product-title"},o().createElement("a",{className:"jetpack-instant-search__search-result-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick,dangerouslySetInnerHTML:{__html:a}})),o().createElement(l.A,{price:t["wc.price"],salePrice:t["wc.sale_price"],formattedPrice:t["wc.formatted_price"],formattedRegularPrice:t["wc.formatted_regular_price"],formattedSalePrice:t["wc.formatted_sale_price"]}),!!t["meta._wc_average_rating.double"]&&o().createElement(u.A,{count:t["meta._wc_review_count.long"],rating:t["meta._wc_average_rating.double"],permalink:`//${t["permalink.url.raw"]}`}),d&&o().createElement("div",{className:"jetpack-instant-search__search-result-product-match"},o().createElement("mark",null,o().createElement(i.A,{icon:"search",style:{},title:!1}),o().createElement("span",null,"comment"in r?__("Matches comments","jetpack-search-pkg"):__("Matches content","jetpack-search-pkg",0)))))}}const h=p},3735:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(6072),n=r.n(s),a=r(1609),o=r.n(a),i=r(7479),c=r(8924),l=r(829),u=r(6485),p=r(9761);class h extends a.Component{componentDidMount(){this.props.railcar&&(0,c.A8)(this.getCommonTrainTracksProps())}componentDidUpdate(e){this.props.railcar!==e.railcar&&this.props.railcar&&(0,c.A8)(this.getCommonTrainTracksProps())}getCommonTrainTracksProps(){return{fetch_algo:this.props.railcar.fetch_algo,fetch_position:this.props.railcar.fetch_position,fetch_query:this.props.railcar.fetch_query,railcar:this.props.railcar.railcar,rec_blog_id:this.props.railcar.rec_blog_id,rec_post_id:this.props.railcar.rec_post_id,session_id:this.props.railcar.session_id,ui_algo:"jetpack-instant-search-ui/v1",ui_position:this.props.index}}onClick=()=>{this.props.railcar&&(0,c.wH)({...this.getCommonTrainTracksProps(),action:"click"})};render(){return this.props.resultFormat===i.s6?o().createElement(p.A,n()({onClick:this.onClick},this.props)):this.props.resultFormat===i.yj?o().createElement(l.A,n()({onClick:this.onClick},this.props)):o().createElement(u.A,n()({onClick:this.onClick},this.props))}}const d=h},8568:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var s=r(7723),n=r(3022),a=r(1609),o=r.n(a),i=r(7084),c=r(7479),l=r(6299),u=r(3089),p=r(1539),h=r(4120),d=r(8961),f=r(3845),m=r(1242),g=r(5846),y=r(3735),v=r(6097),_=r(1080);const __=s.__,_n=s._n;class b extends a.Component{state={shouldShowMobileSecondary:!1};toggleMobileSecondary=e=>{"click"!==e.type&&("keydown"!==e.type||"Enter"!==e.key&&" "!==e.key)||(" "===e.key&&e.preventDefault(),this.setState((e=>({shouldShowMobileSecondary:!e.shouldShowMobileSecondary}))))};hasFilterOptions(){let e=[...this.props.widgets];return this.props.widgetOutsideOverlay?.filters?.length>0&&(e=[this.props.widgetOutsideOverlay,...e]),e.length>0}getSearchTitle(){const{total:e=0,corrected_query:t=!1}=this.props.response,r=""!==this.props.searchQuery,n=!1!==t,a=this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==c.$K;if(this.props.isLoading)return r?__("Searching…","jetpack-search-pkg",0):__("Loading popular results…","jetpack-search-pkg");if(0===e||this.props.hasError)return __("No results found","jetpack-search-pkg");const o=(new Intl.NumberFormat).format(e);if(r&&n)return(0,s.sprintf)(/* translators: %1$s: number of results. %2$s: the corrected search query. */
_n('Found %1$s result for "%2$s"','Found %1$s results for "%2$s"',e,"jetpack-search-pkg"),o,t);if(a){const t=(0,u.PM)().find((e=>"group_id"===e.filter_id)),r=t?.filter_id,n=this.props.staticFilters[r],a=t?.selected,i=t?.values?.[0],c=n||a||i?.value,l=t?.values?.find?.((e=>e.value===c));return l?.name?(0,s.sprintf)(/* translators: %1$s: number of results. - %2$s: site name. */
_n("Found %1$s result in %2$s","Found %1$s results in %2$s",e,"jetpack-search-pkg"),o,l?.name):(0,s.sprintf)(/* translators: %s: number of results. */
_n("Found %s result","Found %s results",e,"jetpack-search-pkg"),o)}return __("Showing popular results","jetpack-search-pkg")}renderPrimarySection(){const{highlightColor:e,searchQuery:t}=this.props,{results:r=[],total:n=0,corrected_query:u=!1}=this.props.response,p=(0,i.d)(e),h=!1!==u,m=n>0,g=this.props.additionalBlogIds?.length>0||this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==c.$K;return o().createElement(a.Fragment,null,o().createElement("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t\t\t\t\t.jetpack-instant-search *::selection,\n\t\t\t\t\t\t\t.jetpack-instant-search .jetpack-instant-search__search-results .jetpack-instant-search__search-results-primary .jetpack-instant-search__search-result mark {\n\t\t\t\t\t\t\t\tcolor: ${p};\n\t\t\t\t\t\t\t\tbackground-color: ${e};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`}}),o().createElement(_.A,null),o().createElement("h2",{className:"jetpack-instant-search__search-results-title"},this.getSearchTitle()),m&&h&&o().createElement("p",{className:"jetpack-instant-search__search-results-unused-query"},/* translators: %s: Search query. */ /* translators: %s: Search query. */
diff --git a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php
index d97fd894..7f1e104f 100644
--- a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php
+++ b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.asset.php
@@ -1 +1 @@
- array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => 'ed5f0bf26bb40618865e');
+ array('wp-i18n', 'wp-jp-i18n-loader', 'wp-polyfill', 'wp-url'), 'version' => '2b91c6a8150537fa6728');
diff --git a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js
index cfd29e33..2cc10205 100644
--- a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js
+++ b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.chunk-main-payload.js
@@ -2,7 +2,7 @@
_n("%d review","%d reviews",t,"jetpack-search-pkg"),t)),n().createElement("span",{className:"screen-reader-text"},(0,r.sprintf)(/* Translators: the first placeholder is the average product rating out of 5; the second is the number of product reviews. */
_n("Average rating of %1$d out of 5 from %2$d review.","Average rating of %1$d out of 5 from %2$d reviews.",t,"jetpack-search-pkg"),Number(e).toFixed(2),t)))}},3845:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(7723),a=s(3257),n=s.n(a),i=s(9362),o=s.n(i),l=s(7479);const __=r.__;class c extends i.Component{scrollElement=document.getElementsByClassName(l.tr)[0];componentDidMount(){this.scrollElement.addEventListener("scroll",this.checkScroll)}componentDidUnmount(){this.scrollElement.removeEventListener("scroll",this.checkScroll)}checkScroll=n()((()=>{const e=this.scrollElement.clientHeight+this.scrollElement.scrollTop+l.ZJ;this.props.enableLoadOnScroll&&e>=this.scrollElement.scrollHeight&&this.props.onLoadNextPage()}),100);render(){return o().createElement("button",{className:"jetpack-instant-search__scroll-button",disabled:this.props.isLoading,onClick:this.props.onLoadNextPage},this.props.isLoading?o().createElement("span",null,__("Loading…","jetpack-search-pkg")):o().createElement("span",null,__("Load more","jetpack-search-pkg")))}}const p=c},459:(e,t,s)=>{s.d(t,{A:()=>k});var r=s(4224),a=s.n(r),n=s(3257),i=s.n(n),o=s(9362),l=s.n(o),c=s(4952),p=s(7479),h=s(3089),u=s(6122),d=s(8924),m=s(999),g=s(538),_=s(6084),y=s(8165),f=s(6973),E=s(8568);class v extends o.Component{static defaultProps={overlayOptions:{},widgets:[]};constructor(){super(...arguments),this.state={isVisible:!!this.props.initialIsVisible,overlayOptionsCustomizerOverride:{}},this.getResults=i()(this.getResults,200),this.props.enableAnalytics?this.initializeAnalytics():(0,d.Re)(),this.props.shouldIntegrateWithDom?this.props.initializeQueryValues():this.props.disableQueryStringIntegration()}static getDerivedStateFromProps(e,t){return{overlayOptions:{...e.overlayOptions,...t.overlayOptionsCustomizerOverride}}}componentDidMount(){(this.props.initialShowResults&&this.props.initialIsVisible||this.props.isInCustomizer)&&this.getResults(),this.props.hasActiveQuery&&this.props.overlayOptions.enableFilteringOpensOverlay&&this.showResults()}componentDidUpdate(e,t){e.searchQuery===this.props.searchQuery&&e.sort===this.props.sort&&a()(e.filters)===a()(this.props.filters)&&a()(e.staticFilters)===a()(this.props.staticFilters)||this.onChangeQueryString(this.props.isHistoryNavigation),t.overlayOptions.defaultSort!==this.state.overlayOptions.defaultSort&&this.props.setSort(this.state.overlayOptions.defaultSort),a()(t.overlayOptions.excludedPostTypes)!==a()(this.state.overlayOptions.excludedPostTypes)&&this.getResults()}initializeAnalytics(){(0,d.ze)(),!window[p.O5].preventTrackingCookiesReset&&(0,d.kX)(),(0,d.wk)(this.props.options.siteId)}getResultFormat=()=>{if(this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==p.$K)return p.yj;return(0,u.lz)()||this.state.overlayOptions.resultFormat};initializeStaticFilters=()=>{const e=(0,h.PM)();e.length>0&&0===Object.keys(this.props.staticFilters).length&&e.forEach((e=>this.props.setStaticFilter(e.filter_id,e.selected,!0)))};hideResults=e=>{this.props.shouldIntegrateWithDom&&(0,u.fX)(this.props.initialHref,(()=>{this.setState({isVisible:!1}),this.props.clearQueryValues()}),e)};toggleResults=e=>{this.props.shouldIntegrateWithDom&&this.state.isVisible!==e&&(e&&this.initializeStaticFilters(),this.setState({isVisible:e}))};showResults=this.toggleResults.bind(this,!0);onChangeQueryString=e=>{this.getResults(),this.props.hasActiveQuery&&!this.state.isVisible&&this.showResults(),!this.props.hasActiveQuery&&e&&this.hideResults(e),null!==this.props.searchQuery&&document.querySelectorAll(this.props.themeOptions.searchInputSelector).forEach((e=>{e.value=this.props.searchQuery}))};loadNextPage=()=>{this.props.hasNextPage&&this.getResults({pageHandle:this.props.response.page_handle})};getResults=({pageHandle:e}={})=>{this.props.makeSearchRequest({aggregations:e?{}:this.props.aggregations,excludedPostTypes:this.state.overlayOptions.excludedPostTypes,filter:this.props.filters,staticFilters:this.props.staticFilters,pageHandle:e,query:this.props.searchQuery,resultFormat:this.getResultFormat(),siteId:this.props.options.siteId,additionalBlogIds:this.props.options.additionalBlogIds,sort:this.props.sort,postsPerPage:this.props.options.postsPerPage,adminQueryFilter:this.props.options.adminQueryFilter,highlightFields:this.props.options.highlightFields,isInCustomizer:this.props.isInCustomizer})};updateOverlayOptions=(e,t)=>{this.setState((t=>({overlayOptionsCustomizerOverride:{...t.overlayOptionsCustomizerOverride,...e}})),t)};render(){const e=this.getResultFormat(),t=this.props.shouldCreatePortal?o.createPortal:e=>e;return l().createElement(o.Fragment,null,this.props.isInCustomizer&&l().createElement(_.A,{showResults:this.showResults,toggleResults:this.toggleResults,updateOverlayOptions:this.updateOverlayOptions}),this.props.shouldIntegrateWithDom&&l().createElement(y.A,{initializeQueryValues:this.props.initializeQueryValues,isVisible:this.state.isVisible,overlayOptions:this.state.overlayOptions,setFilter:this.props.setFilter,setSearchQuery:this.props.setSearchQuery,showResults:this.showResults,themeOptions:this.props.themeOptions}),t(l().createElement(f.A,{closeColor:this.state.overlayOptions.closeColor,closeOverlay:this.hideResults,colorTheme:this.state.overlayOptions.colorTheme,hasOverlayWidgets:this.props.hasOverlayWidgets,isVisible:this.state.isVisible},l().createElement(E.A,{closeOverlay:this.hideResults,enableLoadOnScroll:this.state.overlayOptions.enableInfScroll,enableFilteringOpensOverlay:this.state.overlayOptions.enableFilteringOpensOverlay,enableSort:this.state.overlayOptions.enableSort,filters:this.props.filters,staticFilters:this.props.staticFilters,hasError:this.props.hasError,hasNextPage:this.props.hasNextPage,highlightColor:this.state.overlayOptions.highlightColor,isLoading:this.props.isLoading,isPhotonEnabled:this.props.options.isPhotonEnabled,isPrivateSite:this.props.options.isPrivateSite,isVisible:this.state.isVisible,locale:this.props.options.locale,onChangeSearch:this.props.setSearchQuery,onChangeSort:this.props.setSort,onLoadNextPage:this.loadNextPage,overlayTrigger:this.state.overlayOptions.overlayTrigger,postTypes:this.props.options.postTypes,response:this.props.response,resultFormat:e,searchQuery:this.props.searchQuery,showPoweredBy:this.state.overlayOptions.showPoweredBy,sort:this.props.sort,widgets:this.props.options.widgets,widgetOutsideOverlay:this.props.widgetOutsideOverlay,hasNonSearchWidgets:this.props.options.hasNonSearchWidgets,additionalBlogIds:this.props.options.additionalBlogIds,showPostDate:this.state.overlayOptions.enablePostDate})),document.body))}}const k=(0,c.Ng)(((e,t)=>({filters:(0,g.gA)(e),staticFilters:(0,g.kJ)(e),hasActiveQuery:(0,g.xp)(e),hasError:(0,g.JD)(e),isHistoryNavigation:(0,g.xk)(e),hasNextPage:(0,g.rB)(e),isLoading:(0,g.VP)(e),response:(0,g.mi)(e),searchQuery:(0,g.V8)(e),sort:(0,g.FD)(e,t.overlayOptions.defaultSort),widgetOutsideOverlay:(0,g.S7)(e)})),{clearQueryValues:m.Qt,disableQueryStringIntegration:m.go,initializeQueryValues:m.JF,makeSearchRequest:m.oZ,setStaticFilter:m.$6,setFilter:m.R6,setSearchQuery:m.Ri,setSort:m.d1})(v)},3297:(e,t,s)=>{s.d(t,{A:()=>h});var r=s(7723),a=s(4436),n=s.n(a),i=s(9362),o=s.n(i),l=s(7479),c=s(1539);const __=r.__;let p=null;const h=e=>{const[t]=(0,i.useState)((()=>n()("jetpack-instant-search__box-input-"))),s=(0,i.useRef)(null);return(0,i.useEffect)((()=>{var t;e.isVisible?(t=s.current,()=>{p=t.ownerDocument.activeElement,t.focus()})():e.shouldRestoreFocus&&p&&p.focus()}),[e.isVisible,e.shouldRestoreFocus]),o().createElement(i.Fragment,null,o().createElement("div",{className:"jetpack-instant-search__box"},o().createElement("label",{className:"jetpack-instant-search__box-label",htmlFor:t},o().createElement("div",{className:"jetpack-instant-search__box-gridicon"},o().createElement(c.A,{icon:"search",size:24})),o().createElement("input",{autoComplete:"off",id:t,className:"search-field "+l.Md,inputMode:"search",onChange:e.isVisible?e.onChange:null,ref:s,placeholder:__("Search…","jetpack-search-pkg"),type:"search",value:e.searchQuery??""}),"string"==typeof e.searchQuery&&e.searchQuery.length>0&&
/* Translators: Button is used to clear the search input query. */
-o().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"),onClick:e.onClear}),o().createElement("button",{className:"screen-reader-text assistive-text",tabIndex:"-1"},__("Search","jetpack-search-pkg")))))}},1242:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r),n=s(1168);const i=e=>a().createElement("div",{className:"jetpack-instant-search__search-form-controls",role:"form"},e.children,e.enableSort&&a().createElement(n.A,{onChange:e.onChangeSort,resultFormat:e.resultFormat,value:e.sort}))},5450:(e,t,s)=>{s.d(t,{A:()=>m,t:()=>u});var r=s(3022),a=s(4436),n=s.n(a),i=s(9362),o=s.n(i),l=s(4952),c=s(1557),p=s.n(c),h=s(7574);const u=e=>e.split(" ").join("T");class d extends i.Component{filtersList=(0,i.createRef)();idPrefix=n()("jetpack-instant-search__search-filter-");getIdentifier(){return"postType"===this.props.type?"post_types":"author"===this.props.type?"authors":"blogId"===this.props.type?"blog_ids":"date"===this.props.type?`${this.props.configuration.interval}_${this.props.configuration.field}`:"taxonomy"===this.props.type?this.props.configuration.taxonomy:"group"===this.props.type?this.props.configuration.filter_id:void 0}isChecked(e){return Boolean(this.props.value&&this.props.value.includes(e))}toggleFilter=()=>{this.props.onChange(this.getIdentifier(),(0,h.e)(this.filtersList.current))};toggleStaticFilter=e=>{this.props.onChange(this.getIdentifier(),e.target.value)};renderDate=({key_as_string:e,doc_count:t})=>{const{locale:s="en-US"}=this.props;return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,className:"jetpack-instant-search__search-filter-list-label"},new Date(u(e)).toLocaleString(s,function(e){switch(e){case"day":return{year:"numeric",month:"long",day:"numeric"};case"month":return{year:"numeric",month:"long"};case"year":return{year:"numeric"}}return{year:"numeric",month:"long"}}(this.props.configuration.interval))," ","(",t,")"))};renderPostType=({key:e,doc_count:t})=>{const s=e in this.props.postTypes?this.props.postTypes[e].singular_name:e;return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-post-types-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-post-types-${e}`,className:"jetpack-instant-search__search-filter-list-label"},p()(s)," (",t,")"))};renderAuthor=({key:e,doc_count:t})=>{const[s,r]=e&&e.split(/\/(.+)/);return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(s),disabled:!this.isChecked(s)&&0===t,id:`${this.idPrefix}-authors-${s}`,name:s,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-authors-${s}`,className:"jetpack-instant-search__search-filter-list-label"},p()(r)," (",t,")"))};renderBlogId=({key:e,doc_count:t})=>{const s=e.toString(),r=this.props.blogIdFilteringLabels?.[e]||s;return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(s),disabled:!this.isChecked(s)&&0===t,id:`${this.idPrefix}-blog-ids-${s}`,name:s,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-blog-ids-${s}`,className:"jetpack-instant-search__search-filter-list-label"},p()(r)," (",t,")"))};renderTaxonomy=({key:e,doc_count:t})=>{const[s,r]=e&&e.split(/\/(.+)/);return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(s),disabled:!this.isChecked(s)&&0===t,id:`${this.idPrefix}-taxonomies-${s}`,name:s,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-taxonomies-${s}`,className:"jetpack-instant-search__search-filter-list-label"},p()(r)," (",t,")"))};renderGroup=e=>o().createElement("div",{className:"jetpack-instant-search__search-filter-group-item"},o().createElement("input",{checked:this.isChecked(e.value),id:`${this.idPrefix}-groups-${e.value}`,name:this.props.configuration.filter_id,onChange:this.toggleStaticFilter,value:e.value,type:"radio",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-groups-${e.value}`,className:"jetpack-instant-search__search-filter-list-label"},e.name));renderDates(){return[...this.props.aggregation.buckets.filter((e=>!!e)).map(this.renderDate)].reverse().slice(0,this.props.configuration.count)}renderPostTypes(){return this.props.aggregation.buckets.map(this.renderPostType)}renderAuthors(){return this.props.aggregation.buckets.map(this.renderAuthor)}renderBlogIds(){return this.props.aggregation.buckets.map(this.renderBlogId)}renderTaxonomies(){return this.props.aggregation.buckets.map(this.renderTaxonomy)}renderGroups(){return this.props.configuration.values.map(this.renderGroup)}render(){return o().createElement("div",{id:`${this.idPrefix}-${this.props.type}`},o().createElement("h3",{className:"jetpack-instant-search__search-filter-sub-heading"},this.props.configuration.name),o().createElement("div",{ref:this.filtersList},o().createElement("div",{className:(0,r.A)("jetpack-instant-search__search-filter-list","jetpack-instant-search__search-static-filter-list",`jetpack-instant-search__search-static-filter-variation-${this.props.configuration.variation}`)},"group"===this.props.type&&this.renderGroups()),this.props.aggregation&&"buckets"in this.props.aggregation&&o().createElement("div",{className:"jetpack-instant-search__search-filter-list"},"date"===this.props.type&&this.renderDates(),"postType"===this.props.type&&this.renderPostTypes(),"author"===this.props.type&&this.renderAuthors(),"blogId"===this.props.type&&this.renderBlogIds(),"taxonomy"===this.props.type&&this.renderTaxonomies())))}}const m=(0,l.Ng)((e=>({blogIdFilteringLabels:e.serverOptions.blogIdFilteringLabels})))(d)},1503:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(7723),a=s(9362),n=s.n(a),i=s(4952),o=s(3089),l=s(8924),c=s(999),p=s(5450);const __=r.__;class h extends a.Component{static defaultProps={showClearFiltersButton:!0,showTitle:!0};onChangeFilter=(e,t)=>{this.props.setFilter(e,t),this.props.onChange&&this.props.onChange()};onChangeStaticFilter=(e,t)=>{(0,l.oD)({filterName:e,filterValue:t}),this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};onClearFilters=e=>{e.preventDefault(),this.props.clearFilters(),this.props.onChange&&this.props.onChange()};hasActiveFilters(){return Object.keys(this.props.filters).length>0}renderFilterComponent=({configuration:e,results:t})=>t&&n().createElement(p.A,{aggregation:t,configuration:e,locale:this.props.locale,onChange:this.onChangeFilter,postTypes:this.props.postTypes,type:(0,o.sm)(e),value:this.props.filters[(0,o.xf)(e)]});renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:n().createElement(p.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,o.sm)(e),value:this.props.staticFilters[(0,o.xf)(e)]});render(){if(!this.props.widget)return null;const e=(0,o.PM)("sidebar"),t=this.props.results?.aggregations;return n().createElement("div",{className:"jetpack-instant-search__search-filters"},this.props.showTitle&&n().createElement("h2",{className:"jetpack-instant-search__search-filters-title"},__("Filter options","jetpack-search-pkg")),this.props.showClearFiltersButton&&this.hasActiveFilters()&&n().createElement("button",{className:"jetpack-instant-search__clear-filters-link",onClick:this.onClearFilters},__("Clear filters","jetpack-search-pkg")),this.props.widget?.filters&&this.props.widget.filters.length>0&&e.map(this.renderStaticFilterComponent),this.props.widget?.filters?.map((e=>t?{configuration:e,results:t[e.filter_id]}:null)).filter((e=>!!e)).filter((({results:e})=>!!e&&Array.isArray(e.buckets)&&e.buckets.length>0)).map(this.renderFilterComponent))}}const u=(0,i.Ng)(null,{clearFilters:c.hi,setFilter:c.R6,setStaticFilter:c.$6})(h)},5846:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(9362),a=s.n(r),n=s(3297);const i=e=>e.preventDefault();class o extends r.Component{onClear=()=>this.props.onChangeSearch("");onChangeSearch=e=>this.props.onChangeSearch(e.currentTarget.value);render(){return a().createElement("form",{autoComplete:"off",onSubmit:i,role:"search",className:this.props.className},a().createElement("div",{className:"jetpack-instant-search__search-form"},a().createElement(n.A,{isVisible:this.props.isVisible,onChange:this.onChangeSearch,onClear:this.onClear,shouldRestoreFocus:!0,searchQuery:this.props.searchQuery})))}}const l=o},5260:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r),n=s(1539);const i=({comments:e,iconSize:t=18})=>e?a().createElement("div",{className:"jetpack-instant-search__search-result-comments"},a().createElement(n.A,{icon:"comment",size:t}),a().createElement("span",{className:"jetpack-instant-search__search-result-comments-text",dangerouslySetInnerHTML:{__html:e.join(" ... ")}})):null},829:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(3832),a=s(9362),n=s.n(a),i=s(413),o=s(2355),l=s(5450),c=s(5260);function p(e){const{isMultiSite:t,locale:s="en-US",showPostDate:a}=e,{result_type:p,fields:h,highlight:u}=e.result;if("post"!==p)return null;const d=Array.isArray(h["image.url.raw"])?h["image.url.raw"][0]:h["image.url.raw"];return Array.isArray(h.author)&&(h.author.length>3?h.author=h.author.slice(0,3).join(", ")+"...":h.author=h.author.join(", ")),n().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-expanded",`jetpack-instant-search__search-result-expanded--${h.post_type}`,d?"":"jetpack-instant-search__search-result-expanded--no-image",t?"is-multisite":"",(()=>{let e=h["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,r.cleanForSlug)(e))).join(" ")].join(" ")},n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content-container"},n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__copy-container"},n().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-expanded__title"},n().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-expanded__title-link",href:`//${h["permalink.url.raw"]}`,onClick:e.onClick},n().createElement("span",{dangerouslySetInnerHTML:{__html:u.title}}),"yes"===h["forum.topic_resolved"]&&n().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),!t&&n().createElement(i.A,{className:"jetpack-instant-search__search-result-expanded__path",onClick:e.onClick,url:`//${h["permalink.url.raw"]}`}),n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content",dangerouslySetInnerHTML:{__html:u&&"object"==typeof u?Object.entries(u).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}}),u.comments&&n().createElement(c.A,{comments:u.comments})),n().createElement("a",{className:"jetpack-instant-search__search-result-expanded__image-link",href:`//${h["permalink.url.raw"]}`,onClick:e.onClick,tabIndex:"-1","aria-hidden":"true"},n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__image-container"},d?n().createElement(o.A,{alt:h["image.alt_text"],className:"jetpack-instant-search__search-result-expanded__image",isPhotonEnabled:e.isPhotonEnabled,src:`//${d}`}):null))),(t||a)&&n().createElement("ul",{className:"jetpack-instant-search__search-result-expanded__footer"},t&&n().createElement(n().Fragment,null,n().createElement("li",null,n().createElement(o.A,{alt:h.blog_name,className:"jetpack-instant-search__search-result-expanded__footer-blog-image",isPhotonEnabled:!1,height:24,width:24,src:h.blog_icon_url,lazyLoad:!1}),n().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-blog"},h.blog_name)),n().createElement("li",null,n().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-author"},h.author))),a&&n().createElement("li",null,n().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-date"},new Date((0,l.t)(h.date)).toLocaleDateString(s,{year:"numeric",month:"short",day:"numeric"})))))}},6485:(e,t,s)=>{s.d(t,{A:()=>h});var r=s(3832),a=s(9362),n=s.n(a),i=s(1539),o=s(413),l=s(7846),c=s(5260);class p extends a.Component{getIconSize(){return 18}getTags(){let e=this.props.result.fields["tag.name.default"];return e?(Array.isArray(e)||(e=[e]),e.slice(0,5)):[]}getCategories(e=!1){let t=this.props.result.fields["category.name.default"];return t?(Array.isArray(t)||(t=[t]),e?t:t.slice(0,5)):[]}renderNoMatchingContent(){const e=this.getTags(),t=this.getCategories(),s=0===e.length&&0===t.length;return n().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content"},s&&n().createElement(o.A,{url:this.props.result.fields["permalink.url.raw"]}),n().createElement("div",{className:"jetpack-instant-search__search-result-minimal-cats-and-tags"},0!==e.length&&n().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-tags"},e.map((e=>n().createElement("li",{className:"jetpack-instant-search__search-result-minimal-tag"},n().createElement(i.A,{icon:"tag",size:this.getIconSize()}),n().createElement("span",{className:"jetpack-instant-search__search-result-minimal-tag-text"},e))))),0!==t.length&&n().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-cats"},t.map((e=>n().createElement("li",{className:"jetpack-instant-search__search-result-minimal-cat"},n().createElement(i.A,{icon:"folder",size:this.getIconSize()}),n().createElement("span",{className:"jetpack-instant-search__search-result-minimal-cat-text"},e)))))))}renderMatchingContent(){return n().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content",dangerouslySetInnerHTML:{__html:this.props.result.highlight&&"object"==typeof this.props.result.highlight?Object.entries(this.props.result.highlight).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}})}render(){const{result_type:e,fields:t,highlight:s}=this.props.result;if("post"!==e)return null;const a=!s||"object"!=typeof s||Object.entries(s).every((([e,t])=>"comments"===e||"title"===e||!Array.isArray(t)||""===t[0]));return n().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-minimal",this.getCategories(!0).map((e=>"jetpack-instant-search__search-result-category--"+(0,r.cleanForSlug)(e))).join(" ")].join(" ")},n().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-minimal-title"},n().createElement(l.A,{postType:t.post_type,shortcodeTypes:t.shortcode_types}),n().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-minimal-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},n().createElement("span",{dangerouslySetInnerHTML:{__html:s.title}}),"yes"===t["forum.topic_resolved"]&&n().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),a?this.renderNoMatchingContent():this.renderMatchingContent(),n().createElement(c.A,{comments:s&&s.comments}))}}const h=p},9761:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(7723),a=s(3832),n=s(9362),i=s.n(n),o=s(1539),l=s(2355),c=s(2652),p=s(6777);const __=r.__;class h extends n.Component{render(){const{result_type:e,fields:t,highlight:s}=this.props.result;if("post"!==e)return null;const r=Array.isArray(t["image.url.raw"])?t["image.url.raw"][0]:t["image.url.raw"],n=Array.isArray(s.title)&&s.title[0].length>0?s.title[0]:__("No title","jetpack-search-pkg"),h="string"==typeof this.props.searchQuery&&""!==this.props.searchQuery.trim(),u=n.includes(""),d=h&&!u&&"object"==typeof s&&Object.entries(s).some((([e,t])=>"title"!==e&&"comments"!==e&&Array.isArray(t)&&t[0]?.length>0));return i().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-product",(()=>{let e=t["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,a.cleanForSlug)(e))).join(" ")].join(" ")},i().createElement("a",{className:"jetpack-instant-search__search-result-product-img-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},i().createElement("div",{className:"jetpack-instant-search__search-result-product-img-container "+(r?"":"jetpack-instant-search__search-result-product-img-container--placeholder")},r?i().createElement(l.A,{alt:t["image.alt_text"],className:"jetpack-instant-search__search-result-product-img",isPhotonEnabled:this.props.isPhotonEnabled,src:`//${r}`}):i().createElement("div",{className:"jetpack-instant-search__search-result-product-img"},i().createElement(o.A,{icon:"block",style:{}}),i().createElement(o.A,{icon:"image",style:{},title:__("Does not have an image","jetpack-search-pkg")})))),i().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-product-title"},i().createElement("a",{className:"jetpack-instant-search__search-result-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick,dangerouslySetInnerHTML:{__html:n}})),i().createElement(c.A,{price:t["wc.price"],salePrice:t["wc.sale_price"],formattedPrice:t["wc.formatted_price"],formattedRegularPrice:t["wc.formatted_regular_price"],formattedSalePrice:t["wc.formatted_sale_price"]}),!!t["meta._wc_average_rating.double"]&&i().createElement(p.A,{count:t["meta._wc_review_count.long"],rating:t["meta._wc_average_rating.double"],permalink:`//${t["permalink.url.raw"]}`}),d&&i().createElement("div",{className:"jetpack-instant-search__search-result-product-match"},i().createElement("mark",null,i().createElement(o.A,{icon:"search",style:{},title:!1}),i().createElement("span",null,"comment"in s?__("Matches comments","jetpack-search-pkg"):__("Matches content","jetpack-search-pkg",0)))))}}const u=h},3735:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(3691),a=s.n(r),n=s(9362),i=s.n(n),o=s(7479),l=s(8924),c=s(829),p=s(6485),h=s(9761);class u extends n.Component{componentDidMount(){this.props.railcar&&(0,l.A8)(this.getCommonTrainTracksProps())}componentDidUpdate(e){this.props.railcar!==e.railcar&&this.props.railcar&&(0,l.A8)(this.getCommonTrainTracksProps())}getCommonTrainTracksProps(){return{fetch_algo:this.props.railcar.fetch_algo,fetch_position:this.props.railcar.fetch_position,fetch_query:this.props.railcar.fetch_query,railcar:this.props.railcar.railcar,rec_blog_id:this.props.railcar.rec_blog_id,rec_post_id:this.props.railcar.rec_post_id,session_id:this.props.railcar.session_id,ui_algo:"jetpack-instant-search-ui/v1",ui_position:this.props.index}}onClick=()=>{this.props.railcar&&(0,l.wH)({...this.getCommonTrainTracksProps(),action:"click"})};render(){return this.props.resultFormat===o.s6?i().createElement(h.A,a()({onClick:this.onClick},this.props)):this.props.resultFormat===o.yj?i().createElement(c.A,a()({onClick:this.onClick},this.props)):i().createElement(p.A,a()({onClick:this.onClick},this.props))}}const d=u},8568:(e,t,s)=>{s.d(t,{A:()=>k});var r=s(7723),a=s(3022),n=s(9362),i=s.n(n),o=s(7084),l=s(7479),c=s(6299),p=s(3089),h=s(1539),u=s(4120),d=s(8961),m=s(3845),g=s(1242),_=s(5846),y=s(3735),f=s(6097),E=s(1080);const __=r.__,_n=r._n;class v extends n.Component{state={shouldShowMobileSecondary:!1};toggleMobileSecondary=e=>{"click"!==e.type&&("keydown"!==e.type||"Enter"!==e.key&&" "!==e.key)||(" "===e.key&&e.preventDefault(),this.setState((e=>({shouldShowMobileSecondary:!e.shouldShowMobileSecondary}))))};hasFilterOptions(){let e=[...this.props.widgets];return this.props.widgetOutsideOverlay?.filters?.length>0&&(e=[this.props.widgetOutsideOverlay,...e]),e.length>0}getSearchTitle(){const{total:e=0,corrected_query:t=!1}=this.props.response,s=""!==this.props.searchQuery,a=!1!==t,n=this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==l.$K;if(this.props.isLoading)return s?__("Searching…","jetpack-search-pkg",0):__("Loading popular results…","jetpack-search-pkg");if(0===e||this.props.hasError)return __("No results found","jetpack-search-pkg");const i=(new Intl.NumberFormat).format(e);if(s&&a)return(0,r.sprintf)(/* translators: %1$s: number of results. %2$s: the corrected search query. */
+o().createElement("input",{type:"button",value:__("clear","jetpack-search-pkg"),onClick:e.onClear}),o().createElement("button",{className:"screen-reader-text assistive-text",tabIndex:"-1"},__("Search","jetpack-search-pkg")))))}},1242:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r),n=s(1168);const i=e=>a().createElement("div",{className:"jetpack-instant-search__search-form-controls",role:"form"},e.children,e.enableSort&&a().createElement(n.A,{onChange:e.onChangeSort,resultFormat:e.resultFormat,value:e.sort}))},5450:(e,t,s)=>{s.d(t,{A:()=>m,t:()=>u});var r=s(3022),a=s(4436),n=s.n(a),i=s(9362),o=s.n(i),l=s(4952),c=s(1557),p=s.n(c),h=s(7574);const u=e=>e.split(" ").join("T");class d extends i.Component{filtersList=(0,i.createRef)();idPrefix=n()("jetpack-instant-search__search-filter-");getIdentifier(){return"postType"===this.props.type?"post_types":"author"===this.props.type?"authors":"blogId"===this.props.type?"blog_ids":"date"===this.props.type?`${this.props.configuration.interval}_${this.props.configuration.field}`:"taxonomy"===this.props.type?this.props.configuration.taxonomy:"group"===this.props.type?this.props.configuration.filter_id:void 0}isChecked(e){return Boolean(this.props.value&&this.props.value.includes(e))}toggleFilter=()=>{this.props.onChange(this.getIdentifier(),(0,h.e)(this.filtersList.current))};toggleStaticFilter=e=>{this.props.onChange(this.getIdentifier(),e.target.value)};renderDate=({key_as_string:e,doc_count:t})=>{const{locale:s="en-US"}=this.props;return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-dates-${this.getIdentifier()}-${e}`,className:"jetpack-instant-search__search-filter-list-label"},new Date(u(e)).toLocaleString(s,function(e){switch(e){case"day":return{year:"numeric",month:"long",day:"numeric"};case"month":return{year:"numeric",month:"long"};case"year":return{year:"numeric"}}return{year:"numeric",month:"long"}}(this.props.configuration.interval))," ","(",t,")"))};renderPostType=({key:e,doc_count:t})=>{const s=e in this.props.postTypes?this.props.postTypes[e].singular_name:e;return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(e),disabled:!this.isChecked(e)&&0===t,id:`${this.idPrefix}-post-types-${e}`,name:e,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-post-types-${e}`,className:"jetpack-instant-search__search-filter-list-label"},p()(s)," (",t,")"))};renderAuthor=({key:e,doc_count:t})=>{const[s,r]=e&&e.split(/\/(.+)/);return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(s),disabled:!this.isChecked(s)&&0===t,id:`${this.idPrefix}-authors-${s}`,name:s,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-authors-${s}`,className:"jetpack-instant-search__search-filter-list-label"},p()(r)," (",t,")"))};renderBlogId=({key:e,doc_count:t})=>{const s=e.toString(),r=this.props.blogIdFilteringLabels?.[e]||s;return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(s),disabled:!this.isChecked(s)&&0===t,id:`${this.idPrefix}-blog-ids-${s}`,name:s,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-blog-ids-${s}`,className:"jetpack-instant-search__search-filter-list-label"},p()(r)," (",t,")"))};renderTaxonomy=({key:e,doc_count:t})=>{const[s,r]=e&&e.split(/\/(.+)/);return o().createElement("div",null,o().createElement("input",{checked:this.isChecked(s),disabled:!this.isChecked(s)&&0===t,id:`${this.idPrefix}-taxonomies-${s}`,name:s,onChange:this.toggleFilter,type:"checkbox",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-taxonomies-${s}`,className:"jetpack-instant-search__search-filter-list-label"},p()(r)," (",t,")"))};renderGroup=e=>o().createElement("div",{className:"jetpack-instant-search__search-filter-group-item"},o().createElement("input",{checked:this.isChecked(e.value),id:`${this.idPrefix}-groups-${e.value}`,name:this.props.configuration.filter_id,onChange:this.toggleStaticFilter,value:e.value,type:"radio",className:"jetpack-instant-search__search-filter-list-input"}),o().createElement("label",{htmlFor:`${this.idPrefix}-groups-${e.value}`,className:"jetpack-instant-search__search-filter-list-label"},e.name));renderDates(){return[...this.props.aggregation.buckets.filter((e=>!!e)).map(this.renderDate)].reverse().slice(0,this.props.configuration.count)}renderPostTypes(){return this.props.aggregation.buckets.map(this.renderPostType)}renderAuthors(){return this.props.aggregation.buckets.map(this.renderAuthor)}renderBlogIds(){return this.props.aggregation.buckets.map(this.renderBlogId)}renderTaxonomies(){return this.props.aggregation.buckets.map(this.renderTaxonomy)}renderGroups(){return this.props.configuration.values.map(this.renderGroup)}render(){return o().createElement("div",{id:`${this.idPrefix}-${this.props.type}`},o().createElement("h3",{className:"jetpack-instant-search__search-filter-sub-heading"},this.props.configuration.name),o().createElement("div",{ref:this.filtersList},o().createElement("div",{className:(0,r.A)("jetpack-instant-search__search-filter-list","jetpack-instant-search__search-static-filter-list",`jetpack-instant-search__search-static-filter-variation-${this.props.configuration.variation}`)},"group"===this.props.type&&this.renderGroups()),this.props.aggregation&&"buckets"in this.props.aggregation&&o().createElement("div",{className:"jetpack-instant-search__search-filter-list"},"date"===this.props.type&&this.renderDates(),"postType"===this.props.type&&this.renderPostTypes(),"author"===this.props.type&&this.renderAuthors(),"blogId"===this.props.type&&this.renderBlogIds(),"taxonomy"===this.props.type&&this.renderTaxonomies())))}}const m=(0,l.Ng)((e=>({blogIdFilteringLabels:e.serverOptions.blogIdFilteringLabels})))(d)},1503:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(7723),a=s(9362),n=s.n(a),i=s(4952),o=s(3089),l=s(8924),c=s(999),p=s(5450);const __=r.__;class h extends a.Component{static defaultProps={showClearFiltersButton:!0,showTitle:!0};onChangeFilter=(e,t)=>{this.props.setFilter(e,t),this.props.onChange&&this.props.onChange()};onChangeStaticFilter=(e,t)=>{(0,l.oD)({filterName:e,filterValue:t}),this.props.setStaticFilter(e,t),this.props.onChange&&this.props.onChange()};onClearFilters=e=>{e.preventDefault(),this.props.clearFilters(),this.props.onChange&&this.props.onChange()};hasActiveFilters(){return Object.keys(this.props.filters).length>0}renderFilterComponent=({configuration:e,results:t})=>t&&n().createElement(p.A,{aggregation:t,configuration:e,locale:this.props.locale,onChange:this.onChangeFilter,postTypes:this.props.postTypes,type:(0,o.sm)(e),value:this.props.filters[(0,o.xf)(e)]});renderStaticFilterComponent=e=>Object.hasOwn(e,"visible")&&!e.visible?null:n().createElement(p.A,{aggregation:[],configuration:e,locale:this.props.locale,onChange:this.onChangeStaticFilter,postTypes:this.props.postTypes,type:(0,o.sm)(e),value:this.props.staticFilters[(0,o.xf)(e)]});render(){if(!this.props.widget)return null;const e=(0,o.PM)("sidebar"),t=this.props.results?.aggregations;return n().createElement("div",{className:"jetpack-instant-search__search-filters"},this.props.showTitle&&n().createElement("h2",{className:"jetpack-instant-search__search-filters-title"},__("Filter options","jetpack-search-pkg")),this.props.showClearFiltersButton&&this.hasActiveFilters()&&n().createElement("button",{className:"jetpack-instant-search__clear-filters-link",onClick:this.onClearFilters},__("Clear filters","jetpack-search-pkg")),this.props.widget?.filters&&this.props.widget.filters.length>0&&e.map(this.renderStaticFilterComponent),this.props.widget?.filters?.map((e=>t?{configuration:e,results:t[e.filter_id]}:null)).filter((e=>!!e)).filter((({results:e})=>!!e&&Array.isArray(e.buckets)&&e.buckets.length>0)).map(this.renderFilterComponent))}}const u=(0,i.Ng)(null,{clearFilters:c.hi,setFilter:c.R6,setStaticFilter:c.$6})(h)},5846:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(9362),a=s.n(r),n=s(3297);const i=e=>e.preventDefault();class o extends r.Component{onClear=()=>this.props.onChangeSearch("");onChangeSearch=e=>this.props.onChangeSearch(e.currentTarget.value);render(){return a().createElement("form",{autoComplete:"off",onSubmit:i,role:"search",className:this.props.className},a().createElement("div",{className:"jetpack-instant-search__search-form"},a().createElement(n.A,{isVisible:this.props.isVisible,onChange:this.onChangeSearch,onClear:this.onClear,shouldRestoreFocus:!0,searchQuery:this.props.searchQuery})))}}const l=o},5260:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(9362),a=s.n(r),n=s(1539);const i=({comments:e,iconSize:t=18})=>e?a().createElement("div",{className:"jetpack-instant-search__search-result-comments"},a().createElement(n.A,{icon:"comment",size:t}),a().createElement("span",{className:"jetpack-instant-search__search-result-comments-text",dangerouslySetInnerHTML:{__html:e.join(" ... ")}})):null},829:(e,t,s)=>{s.d(t,{A:()=>p});var r=s(3832),a=s(9362),n=s.n(a),i=s(413),o=s(2355),l=s(5450),c=s(5260);function p(e){const{isMultiSite:t,locale:s="en-US",showPostDate:a}=e,{result_type:p,fields:h,highlight:u}=e.result;if("post"!==p)return null;const d=Array.isArray(h["image.url.raw"])?h["image.url.raw"][0]:h["image.url.raw"];return Array.isArray(h.author)&&(h.author.length>3?h.author=h.author.slice(0,3).join(", ")+"...":h.author=h.author.join(", ")),n().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-expanded",`jetpack-instant-search__search-result-expanded--${h.post_type}`,d?"":"jetpack-instant-search__search-result-expanded--no-image",t?"is-multisite":"",(()=>{let e=h["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,r.cleanForSlug)(e))).join(" ")].join(" ")},n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content-container"},n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__copy-container"},n().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-expanded__title"},n().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-expanded__title-link",href:`//${h["permalink.url.raw"]}`,onClick:e.onClick},n().createElement("span",{dangerouslySetInnerHTML:{__html:u.title}}),"yes"===h["forum.topic_resolved"]&&n().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),!t&&n().createElement(i.A,{className:"jetpack-instant-search__search-result-expanded__path",onClick:e.onClick,url:`//${h["permalink.url.raw"]}`}),n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__content",dangerouslySetInnerHTML:{__html:u&&"object"==typeof u?Object.entries(u).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}}),u.comments&&n().createElement(c.A,{comments:u.comments})),n().createElement("a",{className:"jetpack-instant-search__search-result-expanded__image-link",href:`//${h["permalink.url.raw"]}`,onClick:e.onClick,tabIndex:"-1","aria-hidden":"true"},n().createElement("div",{className:"jetpack-instant-search__search-result-expanded__image-container"},d?n().createElement(o.A,{alt:h["image.alt_text"],className:"jetpack-instant-search__search-result-expanded__image",isPhotonEnabled:e.isPhotonEnabled,src:`//${d}`}):null))),(t||a)&&n().createElement("ul",{className:"jetpack-instant-search__search-result-expanded__footer"},t&&n().createElement(n().Fragment,null,n().createElement("li",null,n().createElement(o.A,{alt:h.blog_name,className:"jetpack-instant-search__search-result-expanded__footer-blog-image",isPhotonEnabled:!1,height:24,width:24,src:h.blog_icon_url,lazyLoad:!1}),n().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-blog"},h.blog_name)),n().createElement("li",null,n().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-author"},h.author))),a&&n().createElement("li",null,n().createElement("span",{className:"jetpack-instant-search__search-result-expanded__footer-date"},new Date((0,l.t)(h.date)).toLocaleDateString(s,{year:"numeric",month:"short",day:"numeric"})))))}},6485:(e,t,s)=>{s.d(t,{A:()=>h});var r=s(3832),a=s(9362),n=s.n(a),i=s(1539),o=s(413),l=s(7846),c=s(5260);class p extends a.Component{getIconSize(){return 18}getTags(){let e=this.props.result.fields["tag.name.default"];return e?(Array.isArray(e)||(e=[e]),e.slice(0,5)):[]}getCategories(e=!1){let t=this.props.result.fields["category.name.default"];return t?(Array.isArray(t)||(t=[t]),e?t:t.slice(0,5)):[]}renderNoMatchingContent(){const e=this.getTags(),t=this.getCategories(),s=0===e.length&&0===t.length;return n().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content"},s&&n().createElement(o.A,{url:this.props.result.fields["permalink.url.raw"]}),n().createElement("div",{className:"jetpack-instant-search__search-result-minimal-cats-and-tags"},0!==e.length&&n().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-tags"},e.map((e=>n().createElement("li",{key:e,className:"jetpack-instant-search__search-result-minimal-tag"},n().createElement(i.A,{icon:"tag",size:this.getIconSize()}),n().createElement("span",{className:"jetpack-instant-search__search-result-minimal-tag-text"},e))))),0!==t.length&&n().createElement("ul",{className:"jetpack-instant-search__search-result-minimal-cats"},t.map((e=>n().createElement("li",{key:e,className:"jetpack-instant-search__search-result-minimal-cat"},n().createElement(i.A,{icon:"folder",size:this.getIconSize()}),n().createElement("span",{className:"jetpack-instant-search__search-result-minimal-cat-text"},e)))))))}renderMatchingContent(){return n().createElement("div",{className:"jetpack-instant-search__search-result-minimal-content",dangerouslySetInnerHTML:{__html:this.props.result.highlight&&"object"==typeof this.props.result.highlight?Object.entries(this.props.result.highlight).filter((([e,t])=>"comments"!==e&&"title"!==e&&Array.isArray(t))).map((([,e])=>e.join(" ... "))).join(" ... "):""}})}render(){const{result_type:e,fields:t,highlight:s}=this.props.result;if("post"!==e)return null;const a=!s||"object"!=typeof s||Object.entries(s).every((([e,t])=>"comments"===e||"title"===e||!Array.isArray(t)||""===t[0]));return n().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-minimal",this.getCategories(!0).map((e=>"jetpack-instant-search__search-result-category--"+(0,r.cleanForSlug)(e))).join(" ")].join(" ")},n().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-minimal-title"},n().createElement(l.A,{postType:t.post_type,shortcodeTypes:t.shortcode_types}),n().createElement("a",{className:"jetpack-instant-search__search-result-title-link jetpack-instant-search__search-result-minimal-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},n().createElement("span",{dangerouslySetInnerHTML:{__html:s.title}}),"yes"===t["forum.topic_resolved"]&&n().createElement("span",{className:"jetpack-instant-search__search-result-title-checkmark"}))),a?this.renderNoMatchingContent():this.renderMatchingContent(),n().createElement(c.A,{comments:s&&s.comments}))}}const h=p},9761:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(7723),a=s(3832),n=s(9362),i=s.n(n),o=s(1539),l=s(2355),c=s(2652),p=s(6777);const __=r.__;class h extends n.Component{render(){const{result_type:e,fields:t,highlight:s}=this.props.result;if("post"!==e)return null;const r=Array.isArray(t["image.url.raw"])?t["image.url.raw"][0]:t["image.url.raw"],n=Array.isArray(s.title)&&s.title[0].length>0?s.title[0]:__("No title","jetpack-search-pkg"),h="string"==typeof this.props.searchQuery&&""!==this.props.searchQuery.trim(),u=n.includes(""),d=h&&!u&&"object"==typeof s&&Object.entries(s).some((([e,t])=>"title"!==e&&"comments"!==e&&Array.isArray(t)&&t[0]?.length>0));return i().createElement("li",{className:["jetpack-instant-search__search-result","jetpack-instant-search__search-result-product",(()=>{let e=t["category.name.default"];return e?(Array.isArray(e)||(e=[e]),e):[]})().map((e=>"jetpack-instant-search__search-result-category--"+(0,a.cleanForSlug)(e))).join(" ")].join(" ")},i().createElement("a",{className:"jetpack-instant-search__search-result-product-img-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick},i().createElement("div",{className:"jetpack-instant-search__search-result-product-img-container "+(r?"":"jetpack-instant-search__search-result-product-img-container--placeholder")},r?i().createElement(l.A,{alt:t["image.alt_text"],className:"jetpack-instant-search__search-result-product-img",isPhotonEnabled:this.props.isPhotonEnabled,src:`//${r}`}):i().createElement("div",{className:"jetpack-instant-search__search-result-product-img"},i().createElement(o.A,{icon:"block",style:{}}),i().createElement(o.A,{icon:"image",style:{},title:__("Does not have an image","jetpack-search-pkg")})))),i().createElement("h3",{className:"jetpack-instant-search__search-result-title jetpack-instant-search__search-result-product-title"},i().createElement("a",{className:"jetpack-instant-search__search-result-title-link",href:`//${t["permalink.url.raw"]}`,onClick:this.props.onClick,dangerouslySetInnerHTML:{__html:n}})),i().createElement(c.A,{price:t["wc.price"],salePrice:t["wc.sale_price"],formattedPrice:t["wc.formatted_price"],formattedRegularPrice:t["wc.formatted_regular_price"],formattedSalePrice:t["wc.formatted_sale_price"]}),!!t["meta._wc_average_rating.double"]&&i().createElement(p.A,{count:t["meta._wc_review_count.long"],rating:t["meta._wc_average_rating.double"],permalink:`//${t["permalink.url.raw"]}`}),d&&i().createElement("div",{className:"jetpack-instant-search__search-result-product-match"},i().createElement("mark",null,i().createElement(o.A,{icon:"search",style:{},title:!1}),i().createElement("span",null,"comment"in s?__("Matches comments","jetpack-search-pkg"):__("Matches content","jetpack-search-pkg",0)))))}}const u=h},3735:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(3691),a=s.n(r),n=s(9362),i=s.n(n),o=s(7479),l=s(8924),c=s(829),p=s(6485),h=s(9761);class u extends n.Component{componentDidMount(){this.props.railcar&&(0,l.A8)(this.getCommonTrainTracksProps())}componentDidUpdate(e){this.props.railcar!==e.railcar&&this.props.railcar&&(0,l.A8)(this.getCommonTrainTracksProps())}getCommonTrainTracksProps(){return{fetch_algo:this.props.railcar.fetch_algo,fetch_position:this.props.railcar.fetch_position,fetch_query:this.props.railcar.fetch_query,railcar:this.props.railcar.railcar,rec_blog_id:this.props.railcar.rec_blog_id,rec_post_id:this.props.railcar.rec_post_id,session_id:this.props.railcar.session_id,ui_algo:"jetpack-instant-search-ui/v1",ui_position:this.props.index}}onClick=()=>{this.props.railcar&&(0,l.wH)({...this.getCommonTrainTracksProps(),action:"click"})};render(){return this.props.resultFormat===o.s6?i().createElement(h.A,a()({onClick:this.onClick},this.props)):this.props.resultFormat===o.yj?i().createElement(c.A,a()({onClick:this.onClick},this.props)):i().createElement(p.A,a()({onClick:this.onClick},this.props))}}const d=u},8568:(e,t,s)=>{s.d(t,{A:()=>k});var r=s(7723),a=s(3022),n=s(9362),i=s.n(n),o=s(7084),l=s(7479),c=s(6299),p=s(3089),h=s(1539),u=s(4120),d=s(8961),m=s(3845),g=s(1242),_=s(5846),y=s(3735),f=s(6097),E=s(1080);const __=r.__,_n=r._n;class v extends n.Component{state={shouldShowMobileSecondary:!1};toggleMobileSecondary=e=>{"click"!==e.type&&("keydown"!==e.type||"Enter"!==e.key&&" "!==e.key)||(" "===e.key&&e.preventDefault(),this.setState((e=>({shouldShowMobileSecondary:!e.shouldShowMobileSecondary}))))};hasFilterOptions(){let e=[...this.props.widgets];return this.props.widgetOutsideOverlay?.filters?.length>0&&(e=[this.props.widgetOutsideOverlay,...e]),e.length>0}getSearchTitle(){const{total:e=0,corrected_query:t=!1}=this.props.response,s=""!==this.props.searchQuery,a=!1!==t,n=this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==l.$K;if(this.props.isLoading)return s?__("Searching…","jetpack-search-pkg",0):__("Loading popular results…","jetpack-search-pkg");if(0===e||this.props.hasError)return __("No results found","jetpack-search-pkg");const i=(new Intl.NumberFormat).format(e);if(s&&a)return(0,r.sprintf)(/* translators: %1$s: number of results. %2$s: the corrected search query. */
_n('Found %1$s result for "%2$s"','Found %1$s results for "%2$s"',e,"jetpack-search-pkg"),i,t);if(n){const t=(0,p.PM)().find((e=>"group_id"===e.filter_id)),s=t?.filter_id,a=this.props.staticFilters[s],n=t?.selected,o=t?.values?.[0],l=a||n||o?.value,c=t?.values?.find?.((e=>e.value===l));return c?.name?(0,r.sprintf)(/* translators: %1$s: number of results. - %2$s: site name. */
_n("Found %1$s result in %2$s","Found %1$s results in %2$s",e,"jetpack-search-pkg"),i,c?.name):(0,r.sprintf)(/* translators: %s: number of results. */
_n("Found %s result","Found %s results",e,"jetpack-search-pkg"),i)}return __("Showing popular results","jetpack-search-pkg")}renderPrimarySection(){const{highlightColor:e,searchQuery:t}=this.props,{results:s=[],total:a=0,corrected_query:p=!1}=this.props.response,h=(0,o.d)(e),u=!1!==p,g=a>0,_=this.props.additionalBlogIds?.length>0||this.props.staticFilters&&this.props.staticFilters.group_id&&this.props.staticFilters.group_id!==l.$K;return i().createElement(n.Fragment,null,i().createElement("style",{dangerouslySetInnerHTML:{__html:`\n\t\t\t\t\t\t\t.jetpack-instant-search *::selection,\n\t\t\t\t\t\t\t.jetpack-instant-search .jetpack-instant-search__search-results .jetpack-instant-search__search-results-primary .jetpack-instant-search__search-result mark {\n\t\t\t\t\t\t\t\tcolor: ${h};\n\t\t\t\t\t\t\t\tbackground-color: ${e};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t`}}),i().createElement(E.A,null),i().createElement("h2",{className:"jetpack-instant-search__search-results-title"},this.getSearchTitle()),g&&u&&i().createElement("p",{className:"jetpack-instant-search__search-results-unused-query"},/* translators: %s: Search query. */ /* translators: %s: Search query. */
diff --git a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js
index 7a60a85e..7a1dc558 100644
--- a/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js
+++ b/jetpack_vendor/automattic/jetpack-search/build/instant-search/jp-search.js
@@ -1 +1 @@
-(()=>{var e,t,r,a={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>w,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>k,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>b,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>g,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",w=6e4,g="relevance",m=1e3,_=["newest","oldest",g,"price_asc","price_desc","rating_desc"],v=[u,h,f],k=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),b=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}o.m=a,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"b76aceb125954a15d827",344:"de2ca6483f4333240053"}[e]),o.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!o.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;o.miniCssF=(e=o.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",o.l=(r,a,n,i)=>{if(e[r])e[r].push(a);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},r={106:0},o.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=o(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+o.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var a=o.miniCssF(e),n=o.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)a();else{var o=r&&r.type,s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,i.parentNode&&i.parentNode.removeChild(i),n(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,n,null,t,r)})),t={498:0};o.f.miniCss=(r,a)=>{t[r]?a.push(t[r]):0!==t[r]&&{106:1}[r]&&a.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={498:0};o.f.j=(t,r)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",s.name="ChunkLoadError",s.type=n,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,i=r[0],s=r[1],c=r[2],l=0;if(i.some((t=>0!==e[t]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(c)c(o)}for(t&&t(r);l{"use strict";o(7778);var e=o(7479),t=o(1017);function r(){Promise.all([o.e(344),o.e(106)]).then(o.bind(o,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})();
\ No newline at end of file
+(()=>{var e,t,r,a={7479:(e,t,r)=>{"use strict";r.d(t,{$J:()=>m,$K:()=>n,Az:()=>w,Hs:()=>_,Md:()=>l,O5:()=>o,QB:()=>k,Ri:()=>d,SK:()=>v,UM:()=>h,Wq:()=>b,ZJ:()=>c,m2:()=>p,s6:()=>f,tr:()=>s,w4:()=>i,x6:()=>g,yj:()=>u});var a=r(7723);const __=a.__,n="__NO_GROUP__",o="JetpackInstantSearchOptions",i="jetpack-instant-search__overlay",s="jetpack-instant-search__search-results",c=70,l="jetpack-instant-search__box-input",p="jetpack-instant-search__overlay-focus-anchor",d="ASC",u="expanded",h="minimal",f="product",w=6e4,g="relevance",m=1e3,_=["newest","oldest",g,"price_asc","price_desc","rating_desc"],v=[u,h,f],k=new Map([[g,__("Relevance","jetpack-search-pkg")],["newest",__("Newest","jetpack-search-pkg")],["oldest",__("Oldest","jetpack-search-pkg")]]),b=new Map([["price_asc",__("Price: low to high","jetpack-search-pkg")],["price_desc",__("Price: high to low","jetpack-search-pkg")],["rating_desc",__("Rating","jetpack-search-pkg")]])},1017:(e,t,r)=>{"use strict";r.d(t,{Tx:()=>i,UC:()=>s,XH:()=>o});var a=r(7479);const n=new Map([["jetpack_search_color_theme","colorTheme"],["jetpack_search_enable_sort","enableSort"],["jetpack_search_highlight_color","highlightColor"],["jetpack_search_inf_scroll","enableInfScroll"],["jetpack_search_filtering_opens_overlay","enableFilteringOpensOverlay"],["jetpack_search_show_post_date","enablePostDate"],["jetpack_search_overlay_trigger","overlayTrigger"],["jetpack_search_show_powered_by","showPoweredBy"],["jetpack_search_result_format","resultFormat"]]);function o(){return"function"==typeof window?.wp?.customize}function i(e){o()&&window.addEventListener("message",(t=>{t.data&&t.target===window&&"jetpackSearchSectionOpen"===t.data?.key&&"expanded"in t.data&&e(t.data.expanded)}))}function s(e){o()&&n.forEach(((t,r)=>{window.wp.customize(r,(r=>{r.bind((function(r){const n={[t]:r};window[a.O5].showResults=!0,window[a.O5].overlayOptions={...window[a.O5].overlayOptions,...n},e&&e(n)}))}))}))}},7778:(e,t,r)=>{r.p=window.JetpackInstantSearchOptions.webpackPublicPath},7723:e=>{"use strict";e.exports=window.wp.i18n},4252:e=>{"use strict";e.exports=window.wp.jpI18nLoader},3832:e=>{"use strict";e.exports=window.wp.url}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}o.m=a,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({106:"jp-search.chunk-main-payload",344:"jp-search.defaultVendors"}[e]+".js?minify=false&ver="+{106:"0f41dd5f8c16fb9fab1e",344:"de2ca6483f4333240053"}[e]),o.miniCssF=e=>"jp-search.chunk-main-payload.css?minify=false&ver=9d1725f327b1ce30525f",(()=>{if(!o.miniCssF)throw new Error("MiniCSSWithRTLPlugin was loaded before MiniCSSExtractPlugin");var e;o.miniCssF=(e=o.miniCssF,t=>{var r="rtl"===document.dir,a=e(t);return r?a.replace(/\.css(?:$|\?)/,".rtl$&"):a})})(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="jetpack-search:",o.l=(r,a,n,i)=>{if(e[r])e[r].push(a);else{var s,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),p=0;p{s.onerror=s.onload=null,clearTimeout(h);var n=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(a))),t)return t(a)},h=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),c&&document.head.appendChild(s)}},r={106:0},o.f.wpI18n=(e,t)=>{r[e]?t.push(r[e]):0===r[e]&&t.push(r[e]=(e=>{var t=o(4252);return t&&t.downloadI18n?t.downloadI18n("build/instant-search/"+o.u(e),"jetpack-search-pkg","plugin"):Promise.reject(new Error("I18n loader is not available. Check that WordPress is exporting wp.jpI18nLoader."))})(e).then((()=>{r[e]=!1}),(t=>{r[e]=0,console.error("Failed to fetch i18n data: ",t)})))},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var a=o.miniCssF(e),n=o.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc),i.onerror=i.onload=r=>{if(i.onerror=i.onload=null,"load"===r.type)a();else{var o=r&&r.type,s=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=s,i.parentNode&&i.parentNode.removeChild(i),n(c)}},i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i)})(e,n,null,t,r)})),t={498:0};o.f.miniCss=(r,a)=>{t[r]?a.push(t[r]):0!==t[r]&&{106:1}[r]&&a.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={498:0};o.f.j=(t,r)=>{var a=o.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var n=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=n);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",s.name="ChunkLoadError",s.type=n,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,n,i=r[0],s=r[1],c=r[2],l=0;if(i.some((t=>0!==e[t]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(c)c(o)}for(t&&t(r);l{"use strict";o(7778);var e=o(7479),t=o(1017);function r(){Promise.all([o.e(344),o.e(106)]).then(o.bind(o,9470)).then((e=>e.initialize()))}window[e.O5]&&(0,t.UC)(),"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)})()})();
\ No newline at end of file
diff --git a/jetpack_vendor/automattic/jetpack-search/composer.json b/jetpack_vendor/automattic/jetpack-search/composer.json
index 0d06672a..398b25d5 100644
--- a/jetpack_vendor/automattic/jetpack-search/composer.json
+++ b/jetpack_vendor/automattic/jetpack-search/composer.json
@@ -10,7 +10,7 @@
"automattic/jetpack-constants": "^2.0.4",
"automattic/jetpack-status": "^4.0.2",
"automattic/jetpack-config": "^2.0.4",
- "automattic/jetpack-my-jetpack": "^4.35.12",
+ "automattic/jetpack-my-jetpack": "^4.35.13-alpha",
"automattic/jetpack-sync": "^3.14.0"
},
"require-dev": {
diff --git a/jetpack_vendor/i18n-map.php b/jetpack_vendor/i18n-map.php
index a9f0dd9f..a8f1b846 100644
--- a/jetpack_vendor/i18n-map.php
+++ b/jetpack_vendor/i18n-map.php
@@ -46,7 +46,7 @@
),
'jetpack-my-jetpack' => array(
'path' => 'jetpack_vendor/automattic/jetpack-my-jetpack',
- 'ver' => '4.35.12',
+ 'ver' => '4.35.13-alpha1728573025',
),
'jetpack-password-checker' => array(
'path' => 'jetpack_vendor/automattic/jetpack-password-checker',
@@ -66,7 +66,7 @@
),
'jetpack-search-pkg' => array(
'path' => 'jetpack_vendor/automattic/jetpack-search',
- 'ver' => '0.45.8-alpha1728505205',
+ 'ver' => '0.45.8-alpha1728573025',
),
'jetpack-stats' => array(
'path' => 'jetpack_vendor/automattic/jetpack-stats',
diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json
index 86d34cb0..357187a8 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": "0b8e597afadd31a6ecdfc62dd0b87162548d7404"
+ "reference": "e1b5657082841f0fdefa4d445d23c2df4963ae84"
},
"require": {
"php": ">=7.0"
@@ -60,7 +60,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
- "reference": "f10d9fc5e23de60e132f29ddeb27a09754370137"
+ "reference": "bd6b59253f0b5c02e6e4a9961701706a71e78241"
},
"require": {
"php": ">=7.0"
@@ -125,7 +125,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
- "reference": "3886c72194a95b630966a90d9889d007ab64f4de"
+ "reference": "dcf68b461375e5483ecb28581108280104289394"
},
"require": {
"automattic/jetpack-constants": "^2.0.4",
@@ -194,7 +194,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
- "reference": "51d4e74f76be06f2ed67523269562d8fa08e56d1"
+ "reference": "35dc710821f9475b0e62fe2e4b79942e1ea3c110"
},
"require": {
"composer-plugin-api": "^1.1 || ^2.0",
@@ -261,7 +261,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-core",
- "reference": "826bc84823d5684e3e99356db0b2bfa412a519bb"
+ "reference": "5c234364444a58379345c202e8ee9d5baa514e13"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
@@ -329,7 +329,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
- "reference": "44d51744157fb48109d93d1ad4bd4d4885bf4825"
+ "reference": "77fccf59107b0384c21f19893f3fae949d565fe5"
},
"require": {
"automattic/jetpack-boost-core": "^0.2.12",
@@ -405,7 +405,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
- "reference": "8ee7498bf16543752267c661d2a014e07a2bf01c"
+ "reference": "1c57d91a860c041b9df7e34ce2ec02d6c1830ced"
},
"require": {
"composer-plugin-api": "^2.1.0",
@@ -465,7 +465,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
- "reference": "26ae907f7f8a04010e77649627935fffdee2c708"
+ "reference": "b97b36dc1eb5c5407be507ad4cbea350973e8bc8"
},
"require": {
"php": ">=7.0"
@@ -540,7 +540,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
- "reference": "7367b545fa78bd809f6d33207a82d12129948f46"
+ "reference": "e124d1b3c8b430698753918be337279825fd177c"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^2.0.3",
@@ -630,7 +630,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
- "reference": "10ae247a0e45ffe373780cd6c4988514260bd0a9"
+ "reference": "1d77a1765bcd68ddf204c1d47b0360e3f4466019"
},
"require": {
"php": ">=7.0"
@@ -684,7 +684,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
- "reference": "823751ddd88b87965228431ead7fc9aeb7075f39"
+ "reference": "b30fb2c251bbab5317ed1d7472144ad17e802cdc"
},
"require": {
"php": ">=7.0"
@@ -737,7 +737,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
- "reference": "def690c6c5075e906a1f11639c1a3237b85e401e"
+ "reference": "7fb2e1cf1c97bc2fa1c0f8aefdfe9a4d98ad7aae"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
@@ -812,7 +812,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
- "reference": "02469a101c75d391f695a53da01c3d6b50416600"
+ "reference": "29f5143dabbaea22aa19e50bc5289df6d3e13e8d"
},
"require": {
"php": ">=7.0"
@@ -870,7 +870,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
- "reference": "ba360a0bd2aeed96c8c863faf876be4caf40c557"
+ "reference": "e3fee50085de0ba14c1d39bdf812b4a22554b912"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^2.0.3",
@@ -945,7 +945,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
- "reference": "d50e5136f54085521d3b39c078e870d51d17d166"
+ "reference": "e85386d01ba01a434552b461a5f7094e34f5779a"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
@@ -1007,7 +1007,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
- "reference": "5068b1d5fcb60e392538cb173e305e52f6b41502"
+ "reference": "ebbefc4e957dd01b0ce6f006bf36bbbc9938ebec"
},
"require": {
"php": ">=7.0"
@@ -1055,12 +1055,12 @@
},
{
"name": "automattic/jetpack-my-jetpack",
- "version": "4.35.12",
- "version_normalized": "4.35.12.0",
+ "version": "4.35.13-alpha.1728573025",
+ "version_normalized": "4.35.13.0-alpha1728573025",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
- "reference": "4106b320a7856d36068220d0f0c6ced4798164aa"
+ "reference": "35f75a82d0a851f668ea0e61a931305e6a2121f8"
},
"require": {
"automattic/jetpack-admin-ui": "^0.4.5",
@@ -1162,7 +1162,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
- "reference": "6973d6048e2f2f104f0baf9127ec02289919f037"
+ "reference": "6be7d7134c47ddcff75e4c52049d7640942f4107"
},
"require": {
"php": ">=7.0"
@@ -1223,7 +1223,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
- "reference": "8e05d137ab2314068fce17cb3bbae5a156de8405"
+ "reference": "3e90d4160f8cac4fc38ca4959a9c8bd9234f9585"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
@@ -1291,7 +1291,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
- "reference": "b746b380c1e92f45cdbe9aee30ce8470d1cb9a13"
+ "reference": "d0be052850bbb7f42a028cfbd9945e1118b7491f"
},
"require": {
"automattic/jetpack-a8c-mc-stats": "^2.0.3",
@@ -1347,7 +1347,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
- "reference": "0e3f0d8bfafbdc704e047c2edb5cdc0c3d0863b6"
+ "reference": "9b314fee7066ed3480760df4f5e8ff2d3b47d13c"
},
"require": {
"php": ">=7.0"
@@ -1417,7 +1417,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
- "reference": "f6774c3aab957f669df20221af0004c95d76bfae"
+ "reference": "a32a8526f4594f8151a59e9d067e520dea3f88b9"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
@@ -1492,7 +1492,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
- "reference": "a3cc4634c3c07496a5d8cd661a0790d9ecb1e134"
+ "reference": "7dddac3c74ad90ccc5e8558cabfde646c2092267"
},
"require": {
"automattic/jetpack-status": "^4.0.2",
@@ -1547,7 +1547,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
- "reference": "065a0408e060b2eebe53bf497584ffede63b5d3a"
+ "reference": "acd808e23ac51ebec8cfff77472d4d2a69e070fe"
},
"require": {
"php": ">=7.0"
@@ -1596,19 +1596,19 @@
},
{
"name": "automattic/jetpack-search",
- "version": "0.45.8-alpha.1728505205",
- "version_normalized": "0.45.8.0-alpha1728505205",
+ "version": "0.45.8-alpha.1728573025",
+ "version_normalized": "0.45.8.0-alpha1728573025",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-search",
- "reference": "b51768edad639399048b13233cb61139e969fb5b"
+ "reference": "d5b8d991a48e1f83958e272bbd1742f8618f6a4f"
},
"require": {
"automattic/jetpack-assets": "^2.3.10",
"automattic/jetpack-config": "^2.0.4",
"automattic/jetpack-connection": "^5.1.3",
"automattic/jetpack-constants": "^2.0.4",
- "automattic/jetpack-my-jetpack": "^4.35.12",
+ "automattic/jetpack-my-jetpack": "^4.35.13-alpha",
"automattic/jetpack-status": "^4.0.2",
"automattic/jetpack-sync": "^3.14.0",
"php": ">=7.0"
@@ -1689,7 +1689,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-stats",
- "reference": "ad38621f7e328e9594da19a8d6ad240c0c507306"
+ "reference": "aef33bd7e15cc6c93a6cb7beffdfc0b8a8be9799"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
@@ -1756,7 +1756,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
- "reference": "a70108edf0146e99441ddc423bc17aa4e94a6b0a"
+ "reference": "80b75c108c37c01c46e9c23cacdee4742f0410ce"
},
"require": {
"automattic/jetpack-constants": "^2.0.4",
@@ -1820,7 +1820,7 @@
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
- "reference": "2b6a7171e72d7a3e91aab48087830546d47361eb"
+ "reference": "af34b6ab71f08da5f0ee56c6e8d819def576a79d"
},
"require": {
"automattic/jetpack-connection": "^5.1.3",
diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php
index d34e3403..74b26071 100644
--- a/vendor/composer/installed.php
+++ b/vendor/composer/installed.php
@@ -13,7 +13,7 @@
'automattic/jetpack-a8c-mc-stats' => array(
'pretty_version' => '2.0.3',
'version' => '2.0.3.0',
- 'reference' => '0b8e597afadd31a6ecdfc62dd0b87162548d7404',
+ 'reference' => 'e1b5657082841f0fdefa4d445d23c2df4963ae84',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-a8c-mc-stats',
'aliases' => array(),
@@ -22,7 +22,7 @@
'automattic/jetpack-admin-ui' => array(
'pretty_version' => '0.4.5',
'version' => '0.4.5.0',
- 'reference' => 'f10d9fc5e23de60e132f29ddeb27a09754370137',
+ 'reference' => 'bd6b59253f0b5c02e6e4a9961701706a71e78241',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-admin-ui',
'aliases' => array(),
@@ -31,7 +31,7 @@
'automattic/jetpack-assets' => array(
'pretty_version' => '2.3.10',
'version' => '2.3.10.0',
- 'reference' => '3886c72194a95b630966a90d9889d007ab64f4de',
+ 'reference' => 'dcf68b461375e5483ecb28581108280104289394',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets',
'aliases' => array(),
@@ -40,7 +40,7 @@
'automattic/jetpack-autoloader' => array(
'pretty_version' => '3.1.1',
'version' => '3.1.1.0',
- 'reference' => '51d4e74f76be06f2ed67523269562d8fa08e56d1',
+ 'reference' => '35dc710821f9475b0e62fe2e4b79942e1ea3c110',
'type' => 'composer-plugin',
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
'aliases' => array(),
@@ -49,7 +49,7 @@
'automattic/jetpack-boost-core' => array(
'pretty_version' => '0.2.12',
'version' => '0.2.12.0',
- 'reference' => '826bc84823d5684e3e99356db0b2bfa412a519bb',
+ 'reference' => '5c234364444a58379345c202e8ee9d5baa514e13',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-core',
'aliases' => array(),
@@ -58,7 +58,7 @@
'automattic/jetpack-boost-speed-score' => array(
'pretty_version' => '0.3.12',
'version' => '0.3.12.0',
- 'reference' => '44d51744157fb48109d93d1ad4bd4d4885bf4825',
+ 'reference' => '77fccf59107b0384c21f19893f3fae949d565fe5',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-boost-speed-score',
'aliases' => array(),
@@ -67,7 +67,7 @@
'automattic/jetpack-composer-plugin' => array(
'pretty_version' => '2.0.3',
'version' => '2.0.3.0',
- 'reference' => '8ee7498bf16543752267c661d2a014e07a2bf01c',
+ 'reference' => '1c57d91a860c041b9df7e34ce2ec02d6c1830ced',
'type' => 'composer-plugin',
'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin',
'aliases' => array(),
@@ -76,7 +76,7 @@
'automattic/jetpack-config' => array(
'pretty_version' => '2.0.4',
'version' => '2.0.4.0',
- 'reference' => '26ae907f7f8a04010e77649627935fffdee2c708',
+ 'reference' => 'b97b36dc1eb5c5407be507ad4cbea350973e8bc8',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-config',
'aliases' => array(),
@@ -85,7 +85,7 @@
'automattic/jetpack-connection' => array(
'pretty_version' => '5.1.3',
'version' => '5.1.3.0',
- 'reference' => '7367b545fa78bd809f6d33207a82d12129948f46',
+ 'reference' => 'e124d1b3c8b430698753918be337279825fd177c',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-connection',
'aliases' => array(),
@@ -94,7 +94,7 @@
'automattic/jetpack-constants' => array(
'pretty_version' => '2.0.4',
'version' => '2.0.4.0',
- 'reference' => '10ae247a0e45ffe373780cd6c4988514260bd0a9',
+ 'reference' => '1d77a1765bcd68ddf204c1d47b0360e3f4466019',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants',
'aliases' => array(),
@@ -103,7 +103,7 @@
'automattic/jetpack-device-detection' => array(
'pretty_version' => '2.1.5',
'version' => '2.1.5.0',
- 'reference' => '823751ddd88b87965228431ead7fc9aeb7075f39',
+ 'reference' => 'b30fb2c251bbab5317ed1d7472144ad17e802cdc',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-device-detection',
'aliases' => array(),
@@ -112,7 +112,7 @@
'automattic/jetpack-explat' => array(
'pretty_version' => '0.1.11',
'version' => '0.1.11.0',
- 'reference' => 'def690c6c5075e906a1f11639c1a3237b85e401e',
+ 'reference' => '7fb2e1cf1c97bc2fa1c0f8aefdfe9a4d98ad7aae',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-explat',
'aliases' => array(),
@@ -121,7 +121,7 @@
'automattic/jetpack-ip' => array(
'pretty_version' => '0.3.0',
'version' => '0.3.0.0',
- 'reference' => '02469a101c75d391f695a53da01c3d6b50416600',
+ 'reference' => '29f5143dabbaea22aa19e50bc5289df6d3e13e8d',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-ip',
'aliases' => array(),
@@ -130,7 +130,7 @@
'automattic/jetpack-jitm' => array(
'pretty_version' => '3.1.25',
'version' => '3.1.25.0',
- 'reference' => 'ba360a0bd2aeed96c8c863faf876be4caf40c557',
+ 'reference' => 'e3fee50085de0ba14c1d39bdf812b4a22554b912',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-jitm',
'aliases' => array(),
@@ -139,7 +139,7 @@
'automattic/jetpack-licensing' => array(
'pretty_version' => '2.0.10',
'version' => '2.0.10.0',
- 'reference' => 'd50e5136f54085521d3b39c078e870d51d17d166',
+ 'reference' => 'e85386d01ba01a434552b461a5f7094e34f5779a',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-licensing',
'aliases' => array(),
@@ -148,16 +148,16 @@
'automattic/jetpack-logo' => array(
'pretty_version' => '2.0.4',
'version' => '2.0.4.0',
- 'reference' => '5068b1d5fcb60e392538cb173e305e52f6b41502',
+ 'reference' => 'ebbefc4e957dd01b0ce6f006bf36bbbc9938ebec',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-logo',
'aliases' => array(),
'dev_requirement' => false,
),
'automattic/jetpack-my-jetpack' => array(
- 'pretty_version' => '4.35.12',
- 'version' => '4.35.12.0',
- 'reference' => '4106b320a7856d36068220d0f0c6ced4798164aa',
+ 'pretty_version' => '4.35.13-alpha.1728573025',
+ 'version' => '4.35.13.0-alpha1728573025',
+ 'reference' => '35f75a82d0a851f668ea0e61a931305e6a2121f8',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-my-jetpack',
'aliases' => array(),
@@ -166,7 +166,7 @@
'automattic/jetpack-password-checker' => array(
'pretty_version' => '0.3.2',
'version' => '0.3.2.0',
- 'reference' => '6973d6048e2f2f104f0baf9127ec02289919f037',
+ 'reference' => '6be7d7134c47ddcff75e4c52049d7640942f4107',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-password-checker',
'aliases' => array(),
@@ -175,7 +175,7 @@
'automattic/jetpack-plans' => array(
'pretty_version' => '0.4.11',
'version' => '0.4.11.0',
- 'reference' => '8e05d137ab2314068fce17cb3bbae5a156de8405',
+ 'reference' => '3e90d4160f8cac4fc38ca4959a9c8bd9234f9585',
'type' => 'library',
'install_path' => __DIR__ . '/../automattic/jetpack-plans',
'aliases' => array(),
@@ -184,7 +184,7 @@
'automattic/jetpack-plugins-installer' => array(
'pretty_version' => '0.4.3',
'version' => '0.4.3.0',
- 'reference' => 'b746b380c1e92f45cdbe9aee30ce8470d1cb9a13',
+ 'reference' => 'd0be052850bbb7f42a028cfbd9945e1118b7491f',
'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.3.0',
'version' => '0.3.0.0',
- 'reference' => '0e3f0d8bfafbdc704e047c2edb5cdc0c3d0863b6',
+ 'reference' => '9b314fee7066ed3480760df4f5e8ff2d3b47d13c',
'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.2.0',
'version' => '0.2.0.0',
- 'reference' => 'f6774c3aab957f669df20221af0004c95d76bfae',
+ 'reference' => 'a32a8526f4594f8151a59e9d067e520dea3f88b9',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-protect-status',
'aliases' => array(),
@@ -211,7 +211,7 @@
'automattic/jetpack-redirect' => array(
'pretty_version' => '2.0.4',
'version' => '2.0.4.0',
- 'reference' => 'a3cc4634c3c07496a5d8cd661a0790d9ecb1e134',
+ 'reference' => '7dddac3c74ad90ccc5e8558cabfde646c2092267',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-redirect',
'aliases' => array(),
@@ -220,16 +220,16 @@
'automattic/jetpack-roles' => array(
'pretty_version' => '2.0.3',
'version' => '2.0.3.0',
- 'reference' => '065a0408e060b2eebe53bf497584ffede63b5d3a',
+ 'reference' => 'acd808e23ac51ebec8cfff77472d4d2a69e070fe',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-roles',
'aliases' => array(),
'dev_requirement' => false,
),
'automattic/jetpack-search' => array(
- 'pretty_version' => '0.45.8-alpha.1728505205',
- 'version' => '0.45.8.0-alpha1728505205',
- 'reference' => 'b51768edad639399048b13233cb61139e969fb5b',
+ 'pretty_version' => '0.45.8-alpha.1728573025',
+ 'version' => '0.45.8.0-alpha1728573025',
+ 'reference' => 'd5b8d991a48e1f83958e272bbd1742f8618f6a4f',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-search',
'aliases' => array(),
@@ -247,7 +247,7 @@
'automattic/jetpack-stats' => array(
'pretty_version' => '0.13.3',
'version' => '0.13.3.0',
- 'reference' => 'ad38621f7e328e9594da19a8d6ad240c0c507306',
+ 'reference' => 'aef33bd7e15cc6c93a6cb7beffdfc0b8a8be9799',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-stats',
'aliases' => array(),
@@ -256,7 +256,7 @@
'automattic/jetpack-status' => array(
'pretty_version' => '4.0.2',
'version' => '4.0.2.0',
- 'reference' => 'a70108edf0146e99441ddc423bc17aa4e94a6b0a',
+ 'reference' => '80b75c108c37c01c46e9c23cacdee4742f0410ce',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-status',
'aliases' => array(),
@@ -265,7 +265,7 @@
'automattic/jetpack-sync' => array(
'pretty_version' => '3.14.0',
'version' => '3.14.0.0',
- 'reference' => '2b6a7171e72d7a3e91aab48087830546d47361eb',
+ 'reference' => 'af34b6ab71f08da5f0ee56c6e8d819def576a79d',
'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 d2017781..acaadefb 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' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-activitylog.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Hybrid_Product' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-hybrid-product.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Initializer' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-initializer.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Jetpack_Manage' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-jetpack-manage.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Module_Product' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-module-product.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Product' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-product.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-products.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Anti_Spam' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-anti-spam.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Backup' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-backup.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Boost' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-boost.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Creator' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-creator.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Crm' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-crm.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Extras' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-extras.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Jetpack_Ai' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-jetpack-ai.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Protect' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-protect.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Scan' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-scan.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Search' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Search_Stats' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-search-stats.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Security' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-security.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Social' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-social.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Starter' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-starter.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Stats' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-stats.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Products\\Videopress' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/products/class-videopress.php'
),
'Automattic\\Jetpack\\My_Jetpack\\REST_AI' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-ai.php'
),
'Automattic\\Jetpack\\My_Jetpack\\REST_Product_Data' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-product-data.php'
),
'Automattic\\Jetpack\\My_Jetpack\\REST_Products' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-products.php'
),
'Automattic\\Jetpack\\My_Jetpack\\REST_Purchases' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-purchases.php'
),
'Automattic\\Jetpack\\My_Jetpack\\REST_Recommendations_Evaluation' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-recommendations-evaluation.php'
),
'Automattic\\Jetpack\\My_Jetpack\\REST_Zendesk_Chat' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-rest-zendesk-chat.php'
),
'Automattic\\Jetpack\\My_Jetpack\\Wpcom_Products' => array(
- 'version' => '4.35.12.0',
+ 'version' => '4.35.13.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-my-jetpack/src/class-wpcom-products.php'
),
'Automattic\\Jetpack\\Partner' => array(
@@ -531,91 +531,91 @@
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-roles/src/class-roles.php'
),
'Automattic\\Jetpack\\Search\\CLI' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-cli.php'
),
'Automattic\\Jetpack\\Search\\Classic_Search' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/classic-search/class-classic-search.php'
),
'Automattic\\Jetpack\\Search\\Customberg' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customberg/class-customberg.php'
),
'Automattic\\Jetpack\\Search\\Customizer' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/class-customizer.php'
),
'Automattic\\Jetpack\\Search\\Dashboard' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-dashboard.php'
),
'Automattic\\Jetpack\\Search\\Excluded_Post_Types_Control' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-excluded-post-types-control.php'
),
'Automattic\\Jetpack\\Search\\Helper' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-helper.php'
),
'Automattic\\Jetpack\\Search\\Initial_State' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/dashboard/class-initial-state.php'
),
'Automattic\\Jetpack\\Search\\Initializer' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/initializers/class-initializer.php'
),
'Automattic\\Jetpack\\Search\\Instant_Search' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/instant-search/class-instant-search.php'
),
'Automattic\\Jetpack\\Search\\Label_Control' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/customizer/customize-controls/class-label-control.php'
),
'Automattic\\Jetpack\\Search\\Module_Control' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-module-control.php'
),
'Automattic\\Jetpack\\Search\\Options' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-options.php'
),
'Automattic\\Jetpack\\Search\\Package' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-package.php'
),
'Automattic\\Jetpack\\Search\\Plan' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-plan.php'
),
'Automattic\\Jetpack\\Search\\REST_Controller' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-rest-controller.php'
),
'Automattic\\Jetpack\\Search\\Search_Widget' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/widgets/class-search-widget.php'
),
'Automattic\\Jetpack\\Search\\Settings' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-settings.php'
),
'Automattic\\Jetpack\\Search\\Stats' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-stats.php'
),
'Automattic\\Jetpack\\Search\\Template_Tags' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/class-template-tags.php'
),
'Automattic\\Jetpack\\Search\\WPES\\Query_Builder' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-builder.php'
),
'Automattic\\Jetpack\\Search\\WPES\\Query_Parser' => array(
- 'version' => '0.45.8.0-alpha1728505205',
+ 'version' => '0.45.8.0-alpha1728573025',
'path' => $baseDir . '/jetpack_vendor/automattic/jetpack-search/src/wpes/class-query-parser.php'
),
'Automattic\\Jetpack\\Search_Plugin\\Jetpack_Search_Plugin' => array(