__("(opens in a new tab)","jetpack-protect"))),y=({moduleName:e=__("Jetpack","jetpack-protect"),className:t,moduleNameHref:a="https://jetpack.com",menu:c,onAboutClick:l,onPrivacyClick:s,onTermsClick:i,...m})=>{const[v]=(0,f.A)("sm","<="),[y]=(0,f.A)("md","<="),[w]=(0,f.A)("lg",">"),{isActive:k,connectedPlugins:b}=(0,r.useSelect)((e=>{constt=e(u.a);return{connectedPlugins:t?.getConnectedPlugins(),...t.getConnectionStatus()}}),[u.a]),_=(0,h.A)(),R=_&&k&&b?.some((({slug:e})=>"jetpack"===e));letC=[{label:_x("About","Link to learn more about Jetpack.","jetpack-protect"),title:__("About Jetpack","jetpack-protect"),href:R?newURL("admin.php?page=jetpack_about",_).href:(0,d.A)("jetpack-about"),target:R?"_self":"_blank",onClick:l},{label:_x("Privacy","Shorthand for Privacy Policy.","jetpack-protect"),title:__("Automattic's Privacy Policy","jetpack-protect"),href:R?newURL("admin.php?page=jetpack#/privacy",_).href:(0,d.A)("a8c-privacy"),target:R?"_self":"_blank",onClick:s},{label:_x("Terms","Shorthand for Terms of Service.","jetpack-protect"),title:__("WordPress.com Terms of Service","jetpack-protect"),href:(0,d.A)("wpcom-tos"),target:"_blank",onClick:i}];c&&(C=[...C,...c]);constj=p().createElement(p().Fragment,null,p().createElement(E,null),e);returnp().createElement("footer",n()({className:(0,o.A)("jp-dashboard-footer",{"is-sm":v,"is-md":y,"is-lg":w},t),"aria-label":__("Jetpack","jetpack-protect")},m),p().createElement("ul",null,p().createElement("li",{className:"jp-dashboard-footer__jp-item"},a?p().createElement("a",{href:a},j):j),C.map((e=>{constt="button"===e.role,a=!t&&"_blank"===e.target;returnp().createElement("li",{key:e.label},p().createElement("a",{href:e.href,title:e.title,target:e.target,onClick:e.onClick,onKeyDown:e.onKeyDown,className:(0,o.A)("jp-dashboard-footer__menu-item",{"is-external":a}),role:e.role,rel:a?"noopener noreferrer":void0,tabIndex:t?0:void0},e.label,a&&p().createElement(A,null)))})),p().createElement("li",{className:"jp-dashboard-footer__a8c-item"},p().createElement("a",{href:R?newURL("admin.php?page=jetpack_about",_).href:(0,d.A)("a8c-about"),"aria-label":__("An Automattic Airline","jetpack-protect")},p().createElement(g.A,{"aria-hidden":"true"})))))}},7142:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});varc=a(6072),n=a.n(c),r=a(7723),l=a(3022),s=a(1609),i=a.n(s);const__=r.__,o=({logoColor:e="#069e08",showText:t=!0,className:a,height:c=32,...r})=>{consts=t?"0 0 118 32":"0 0 32 32";returni().createElement("svg",n()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:s,className:(0,l.A)("jetpack-logo",a),"aria-labelledby":"jetpack-logo-title",height:c},r,{role:"img"}),i().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack-protect")),i().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&i().createElement(i().Fragment,null,i().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),i().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),i().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),i().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),i().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),i().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3
default:(0,c.sprintf)(__("%s coming soon","jetpack-protect"),a)}:{lg:t?g:v,default:t?a:(0,c.sprintf)(/* translators: Name of the current feature */
__("%s not included","jetpack-protect"),a)})(t,e,R),N=k?x.lg:x.default;returno().createElement("div",{className:(0,s.A)(h.A.item,h.A.value)},o().createElement(n.A,{className:(0,s.A)(h.A.icon,_?h.A["icon-check"]:h.A["icon-cross"]),size:32,icon:_?r.A:l.A}),o().createElement(u.Ay,{variant:"body-small"},d||N),S&&o().createElement(m.A,{title:y||j,iconClassName:h.A["popover-icon"],className:(0,s.A)(h.A.popover,w),placement:"bottom-end",iconSize:14,offset:4,wide:Boolean(y&&A)},o().createElement(u.Ay,{variant:"body-small",component:"div"},A||C)))},y=({children:e})=>o().createElement("div",{className:h.A.header},e),w=({primary:e=!1,children:t})=>{leta=0;returno().createElement("div",{className:(0,s.A)(h.A.card,{[h.A["is-primary"]]:e})},i.Children.map(t,(e=>{constt=e;returnt.type===A?(a++,(0,i.cloneElement)(t,{index:a-1})):t})))},k=({title:e,items:t,children:a,showIntroOfferDisclaimer:c=!1})=>{const[n]=(0,p.A)("lg");returno().createElement(E.Provider,{value:t},o().createElement("div",{className:(0,s.A)(h.A.container,{[h.A["is-viewport-large"]]:n}),style:{"--rows":t.length+1,"--columns":i.Children.toArray(a).length+1}},o().createElement("div",{className:h.A.table},o().createElement(u.Ay,{variant:"headline-small"},e),n&&t.map(((e,a)=>o().createElement("div",{className:(0,s.A)(h.A.item,{[h.A["last-feature"]]:a===t.length-1}),key:a},o().createElement(u.Ay,{variant:"body-small"},o().createElement("strong",null,e.name)),e.tooltipInfo&&o().createElement(m.A,{title:e.tooltipTitle,iconClassName:h.A["popover-icon"],className:h.A.popover,placement:e.tooltipPlacement?e.tooltipPlacement:"bottom-end",iconSize:14,offset:4,wide:Boolean(e.tooltipTitle&&e.tooltipInfo)},o().createElement(u.Ay,{variant:"body-small"},e.tooltipInfo))))),a)),o().createElement("div",{className:h.A["tos-container"]},o().createElement("div",{className:h.A.tos},c&&o().createElement(u.Ay,{variant:"body-small"},__("Reduced pricing is a limited offer for the first year and renews at regular price.","jetpack-protect")),o().createElement(d.A,{multipleButtons:!0}))))}},489:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});varc=a(7723),n=a(3022),r=a(7425),l=a(2746),s=a(3407);const__=c.__,i=({price:e,offPrice:t,currency:a="",showNotOffPrice:c=!0,hideDiscountLabel:i=!0,promoLabel:o="",legend:m=__("/month, paid yearly","jetpack-protect"),isNotConvenientPrice:p=!1,hidePriceFraction:d=!1,children:u})=>{if(null==e&&null==t||!a)returnnull;c=c&&null!=t;consth="number"==typeofe&&"number"==typeoft?Math.floor((e-t)/e*100):0,g=!i&&h&&h>0?h+__("% off","jetpack-protect"):null;returnReact.createElement(React.Fragment,null,React.createElement("div",{className:s.A.container},React.createElement("div",{className:(0,n.A)(s.A["price-container"],"product-price_container")},React.createElement(l.g,{value:t??e,currency:a,isOff:!p,hidePriceFraction:d}),c&&React.createElement(l.g,{value:e,currency:a,isOff:!1,hidePriceFraction:d}),g&&React.createElement(r.Ay,{className:(0,n.A)(s.A["promo-label"],"product-price_promo_label")},g))),React.createElement("div",{className:s.A.footer},u||React.createElement(r.Ay,{className:(0,n.A)(s.A.legend,"product-price_legend")},m),o&&React.createElement(r.Ay,{className:(0,n.A)(s.A["promo-label"],"product-price_promo_label")},o)))}},2746:(e,t,a)=>{"use strict";a.d(t,{g:()=>s});varc=a(7397),n=a(3022),r=a(7425),l=a(3407);consts=({value:e,currency:t,isOff:a,hidePriceFraction:s})=>{consti=(0,n.A)(l.A.price,"product-price_price",{[l.A["is-not-off-price"]]:!a}),{symbol:o,integer:m,fraction:p}=(0,c.vA)(e,t),d=!s||!p.endsWith("00");returnReact.createElement(r.Ay,{className:i,variant:"headline-medium",component:"p"},React.createElement(r.Ay,{className:l.A.symbol,component:"sup",variant:"title-medium"},o),m,d&&React.createElement(r.Ay,{component:"sup",variant:"body-small","data-testid":"PriceFraction"},React.createElement("strong",null,p)))}},6461:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});varc=a(8120),n=a.n(c),r=a(1609),l=a.n(r);a(8325);consts=({color:e="#FFFFFF",className:t="",size:a=20})=>{constc=t+" jp-components-spinner",n={width:a,height:a,fontSize:a,borderTopColor:e},r={
__("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-protect"),e[0],e[1]),{strong:React.createElement("strong",null),tosLink:React.createElement(d,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(d,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,r.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-protect"),{tosLink:React.createElement(d,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(d,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=({agreeButtonLabel:e})=>(0,r.createInterpolateElement)((0,l.sprintf)(/* translators: %s is a button label */
__("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-protect"),e),{strong:React.createElement("strong",null),tosLink:React.createElement(d,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(d,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),d=({slug:e,children:t})=>React.createElement("a",{className:"terms-of-service__link",href:(0,i.A)(e),rel:"noopener noreferrer",target:"_blank"},t),u=({className:e,multipleButtons:t,agreeButtonLabel:a,...c})=>React.createElement(o.Ay,n()({className:(0,s.A)(e,"terms-of-service")},c),t?React.createElement(m,{multipleButtonsLabels:t}):React.createElement(p,{agreeButtonLabel:a}))},110:(e,t,a)=>{"use strict";a.d(t,{Q:()=>c,Z:()=>n});constc={"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"},n=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},7425:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>p,H3:()=>d,hE:()=>u});varc=a(6072),n=a.n(c),r=a(3022),l=a(1609),s=a.n(l),i=a(110),o=a(4495);constm=(0,l.forwardRef)((({variant:e="body",children:t,component:a,className:c,...m},p)=>{constd=a||i.Q[e]||"span",u=(0,l.useMemo)((()=>i.Z.reduce(((e,t)=>(void0!==m[t]&&(e+=o.A[`${t}-${m[t]}`]+" ",deletem[t]),e)),"")),[m]);returnm.ref=p,s().createElement(d,n()({className:(0,r.A)(o.A.reset,o.A[e],c,u)},m),t)}));m.displayName="Text";constp=m,d=({children:e,weight:t="bold",...a})=>{constc="headline-small"+("bold"===t?"":`-${t}`);returns().createElement(m,n()({variant:c,mb:3},a),e)},u=({children:e,size:t="medium",...a})=>s().createElement(m,n()({variant:`title-${t}`,mb:1},a),e)},723:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>d});varc=a(1609),n=a.n(c),r=a(9422);constl={"--font-headline-medium":"48px","--font-headline-small":"36px","--font-title-medium":"24px","--font-title-small":"20px","--font-body":"16px","--font-body-small":"14px","--font-body-extra-small":"12px","--font-title-large":"var(--font-headline-small)","--font-label":"var(--font-body-extra-small)"},s={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--jp-gray-5":"var(--jp-gray)","--jp-gray-10":"#C3C4C7","--jp-gray-20":"#A7AAAD","--jp-gray-40":"#787C82","--jp-gray-50":"#646970","--jp-gray-60":"#50575E","--jp-gray-70":"#3C434A","--jp-gray-80":"#2C3338","--jp-gray-90":"#1d2327","--jp-gray-off":"#e2e2df","--jp-red-0":"#F7EBEC","--jp-red-5":"#FACFD2","--jp-red-40":"#E65054","--jp-red-50":"#D63638","--jp-red-60":"#B32D2E","--jp-red-70":"#8A2424","--jp-red-80":"#691C1C","--jp-red":"#d63639","--jp-yellow-5":"#F5E6B3","--jp-yellow-10":"#F2CF75","--jp-yellow-20":"#F0C930","--jp-yellow-30":"#DEB100","--jp-yellow-40":"#C08C00","--jp-yellow-50":"#9D6E00","--jp-yellow-60":"#7D5600","--jp-blue-20":"#68B3E8","--jp-blue-40":"#1689DB","--jp-pink":"#C9356E","--jp-green-0":"#f0f2eb","--jp-green-5":"#d0e6b8","--jp-green-10":"#9dd977","--jp-green-20":"#64ca43","--jp-green-30":"#2fb41f","--jp-green-40":"#069e08","--jp-green-50":"#008710","--jp-green-60":"#007117","--jp-green-70":"#005b18","--jp-green-80":"#004515","--jp-green-90":"#003010","--jp-green-100":"#001c09","--jp-green":"#069e08","--jp-green-primary":"var( --jp-green-40 )","--jp-green-secondary":"var( --jp-green-30 )"},i={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},o={"--spacing-base":"8px"},m={},p=(e,t,a)=>{constc={...l,...s,...i,...o};for(consttinc)e.style.setProperty(t,c[t]);a&&e.classList.add(r.A.global),t&&(m[t]={provided:!0,root:e})},d=({children:e=null,targetDom:t,id:a,withGlobalStyles:r=!0})=>{constl=(0,c.useRef)(),s=m?.[a]?.provided;return(0,c.useLayoutEffect)((()=>{if(!s)returnt?p(t,a,r):void(l?.current&&p(l.current,a,r))}),[t,l,s,a,r]),t?n().createElement(n().Fragment,null,e):n().createElement("div",{ref:l},e)}},1069:(e,t,a)=>{
__("Show %s more","jetpack-protect"),g):(0,n.sprintf)(/* translators: %s: Number of hide items */
__("Threat found %s","jetpack-protect"),(0,s.dateI18n)("M j, Y",e)),"fixed"===a&&g().createElement(g().Fragment,null,g().createElement("span",{className:E.A["accordion-header-status-separator"]}),g().createElement("span",{className:E.A["is-fixed"]},(0,i.sprintf)(/* translators: %s: Fixed on date */
__("Threat fixed %s","jetpack-protect"),(0,s.dateI18n)("M j, Y",t)))),"ignored"===a&&g().createElement(g().Fragment,null,g().createElement("span",{className:E.A["accordion-header-status-separator"]}),g().createElement("span",{className:E.A["is-ignored"]},__("Threat ignored","jetpack-protect")))),("fixed"===a||"ignored"===a)&&g().createElement(w,{status:"fixed"===a?"fixed":"ignored"})),w=({status:e})=>g().createElement("div",{className:`${E.A["status-badge"]}${E.A[e]}`},"fixed"===e?__("Fixed","jetpack-protect"):__("Ignored","jetpack-protect",0)),k=({id:e,title:t,label:a,icon:s,fixable:i,severity:w,children:k,firstDetected:b,fixedOn:_,onOpen:R,status:C,hideAutoFixColumn:j=!1})=>{constS=(0,h.useContext)(A),x=S?.open===e,N=S?.setOpen,M=(0,l.useSelect)((e=>e(v.a).getThreatsAreFixing())),L=(0,u.A)(E.A["accordion-body"],{[E.A["accordion-body-open"]]:x,[E.A["accordion-body-close"]]:!x}),z=(0,h.useCallback)((()=>{x||R?.(),N((t=>t===e?null:e))}),[x,R,N,e]),[P]=(0,n.A)(["sm","lg"],[null,"<"]);returng().createElement("div",{className:E.A["accordion-item"]},g().createElement("button",{className:E.A["accordion-header"],onClick:z},g().createElement("div",null,g().createElement(c.Ay,{className:E.A["accordion-header-label"],mb:1},g().createElement(o.A,{icon:s,className:E.A["accordion-header-label-icon"]}),a),g().createElement(c.Ay,{className:E.A["accordion-header-description"],variant:x?"title-small":"body"},t),("fixed"===C||"ignored"===C)&&g().createElement(y,{firstDetected:b,status:C,fixedOn:_})),g().createElement("div",null,g().createElement(f.A,{severity:w})),!j&&g().createElement("div",null,i&&g().createElement(g().Fragment,null,M.indexOf(e)>=0?g().createElement(r.A,{color:"black"}):g().createElement(o.A,{icon:m.A,className:E.A["icon-check"],size:28}),P&&g().createElement("span",null,__("Auto-fix","jetpack-protect")))),g().createElement("div",{className:E.A["accordion-header-button"]},g().createElement(o.A,{icon:x?p.A:d.A,size:38}))),g().createElement("div",{className:L,"aria-hidden":x?"false":"true"},k))},b=({children:e})=>{const[t,a]=(0,h.useState)();returng().createElement(A.Provider,{value:{open:t,setOpen:a}},g().createElement("div",{className:E.A.accordion},e))}},5409:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});varc=a(726),n=a(727);functionr({children:e,redirect:t="/"}){const{hasRequiredPlan:a}=(0,n.A)();returna?e:React.createElement(c.C5,{to:t,replace:!0})}},9374:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});varc=a(9245),n=a(489),r=a(1112),l=a(9384),s=a(7143),i=a(7723),o=a(1609),m=a.n(o),p=a(1226),d=a(727),u=a(6516),h=a(7478);const__=i.__,g=({onScanAdd:e})=>{const{handleRegisterSite:t,registrationError:a}=(0,l.useConnection)({skipUserConnection:!0}),{refreshPlan:i,refreshStatus:g,startScanOptimistically:v}=(0,s.useDispatch)(h.a),[f,E]=(0,o.useState)(!1),[A,y]=(0,o.useState)(!1),{jetpackScan:w}=(0,d.A)(),{refreshWaf:k}=(0,u.A)(),{pricingForUi:b}=w,{introductoryOffer:_,currencyCode:R="USD"}=b,C=b.cost?Math.ceil(b.cost/12*100)/100:null,j=_?.costPerInterval?Math.ceil(_.costPerInterval/12*100)/100:null,{recordEvent:S,recordEventHandler:x}=(0,p.A)(),N=x("jetpack_protect_pricing_table_get_scan_link_click",(()=>{y(!0),e()})),M=(0,o.useCallback)((async()=>{S("jetpack_protect_connected_product_activated"),E(!0);try{awaitt(),v(),awaiti(),awaitk(),awaitg(!0)}finally{E(!1)}}),[t,S,k,i,g,v]),L={title:__("Stay one step ahead of threats","jetpack-protect"),items:[{name:__("Scan for threats and vulnerabilities","jetpack-protect")},{name:__("Daily automated scans","jetpack-protect")},{name:__("Web Application Firewall","jetpack-protect")},{name:__("Brute force protection","jetpack-protect")},{name:__("Access to scan on Cloud","jetpack-protect")},{name:__("One-click auto fixes","jetpack-protect")},{name:__("Notifications","jetpack-protect")},{name:__("Severity labels","jetpack-protect")}]};returnm().createElement(m().Fragment,null,m().createElement(c.Ay,L,m().createElement(c.N0,{primary:!0},m().createElement(c.i7,null,m().createElement(n.A,{price:C,offPrice:j,leyend:__("/month, billed yearly","jetpack-protect"),currency:R,hideDiscountLabel:
// translators: placeholder is the number of total vulnerabilities i.e. "22,000".
// translators: placeholder is the number of total vulnerabilities i.e. "22,000".
__("Every day we check your plugin, theme, and WordPress versions against our %s listed vulnerabilities powered by WPScan, an Automattic brand.","jetpack-protect"),l)),d().createElement(r.A,{variant:"link",isExternalLink:!0,href:s,weight:"regular"},__("Learn more","jetpack-protect")))},w=()=>{const{waf:e}=window.jetpackProtectInitialState||{};returne.wafSupported?d().createElement(f.A,{main:d().createElement(A,null),secondary:d().createElement(y,null),preserveSecondaryOnMobile:!0}):d().createElement(s.A,{horizontalSpacing:0,horizontalGap:0,fluid:!1},d().createElement(i.A,null,d().createElement(y,null)))}},5165:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});varc=a(442),n=a(5918),r=a(8509),l=a(1609),s=a.n(l);consti=({main:e,secondary:t,preserveSecondaryOnMobile:a=!1})=>{const[l,i]=(0,c.A)(["sm","lg"]),o=!a&&l;returns().createElement(n.A,{horizontalSpacing:0,horizontalGap:0,fluid:!1},!o&&s().createElement(s().Fragment,null,s().createElement(r.A,{sm:12,md:4,lg:6},e),i&&s().createElement(r.A,{lg:1}),s().createElement(r.A,{sm:12,md:4,lg:5},t)),o&&s().createElement(r.A,null,e))}},5576:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});varc=a(7723),n=a(2399);const__=c.__,r=e=>e>=5?"is-critical":e>=3&&e<5?"is-high":"is-low",l=({severity:e})=>React.createElement("div",{className:`${n.A["threat-severity-badge"]}${n.A[r(e)]}`},(e=>{constt=__("Critical","jetpack-protect"),a=__("High","jetpack-protect"),c=__("Low","jetpack-protect");returne>=5?t:e>=3&&e<5?a:c})(e))},3144:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});varc=a(7425),n=a(6087),r=a(7723),l=a(1847);const__=r.__,s=()=>React.createElement(React.Fragment,null,React.createElement(c.Ay,{variant:"title-medium-semi-bold",mb:2},__("Enhanced protection","jetpack-protect")),React.createElement(c.Ay,{mb:2},__("Learn how you can execute Jetpack Firewall before WordPress initializes. This mode offers the most protection.","jetpack-protect")),React.createElement("ul",{className:l.A.list},React.createElement("li",{className:l.A["list-item"]},React.createElement(c.Ay,{variant:"body-small"},(0,n.createInterpolateElement)(__("To ensure the firewall can best protect your site, please update: <mark>auto_prepend_file</mark> PHP directive to point to <mark>wp-content/jetpack-waf/bootstrap.php</mark> Typically this is set either in an .htaccess file or in the global PHP configuration; contact your host for further assistance.","jetpack-protect"),{mark:React.createElement("mark",{className:l.A.mark})}))),React.createElement("li",{className:l.A["list-item"]},React.createElement(c.Ay,{variant:"body-small"},__("Don't forget to undo this action when Firewall is turned off, or when you uninstall Jetpack.","jetpack-protect")))))},147:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});varc=a(442),n=a(8443),r=a(7723),l=a(1609),s=a.n(l),i=a(727),o=a(7115),m=a(4254);const__=r.__,p=()=>{const[e]=(0,c.A)("sm"),{counts:{current:{threats:t}},lastChecked:a,hasRequiredPlan:p}=(0,i.A)(),[d,u]=(0,l.useState)(null);returns().createElement(o.A,{title:t>0?(0,r.sprintf)(/* translators: %s: Total number of threats */
__("%1$s %2$s found","jetpack-protect"),t,1===t?"threat":"threats"):void0,subtitle:s().createElement(s().Fragment,null,s().createElement("div",{ref:u},(0,r.sprintf)(/* translators: %s: Latest check date */
__("Latest results as of %s","jetpack-protect"),(0,n.dateI18n)("F jS",a))),!p&&s().createElement(m.A,{id:"free-daily-scans",position:e?"bottom":"middle right",anchor:d}))})}},241:(e,t,a)=>{"use strict";a.d(t,{A:()=>l,o:()=>r});varc=a(9959),n=a(4356);constr=({label:e,link:t})=>React.createElement(c.k2,{to:t,className:({isActive:e})=>e?`${n.A.tab}${n.A["tab--active"]}`:n.A.tab},e),l=({children:e,className:t=""})=>React.createElement("nav",{className:`${n.A.tabs}${t}`},e)},4491:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});varc=a(6578);constn=({disabled:e=!1,id:t,label:a="",description:n="",placeholder:r="",rows:l=3,value:s="",onChange:i=()=>{}})=>React.createElement("div",null,Boolean(a)&&React.createElement("label",{className:c.A.label,htmlFor:t},a),Boolean(n)&&n,React.createElement("textarea",{className:c.A.textarea,disabled:e,placeholder:r,rows:l,id:t,name:t,onChange:i,value:s||""}))},1571:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});varc=a(7425),n=a(7723),r=a(1113),l=a(1609),s=a.n(l),i=a(5576),o=a(9054);const__=n.__,m=e=>{switch(e.fixer){case"replace":return__("Jetpack Scan will replace the affected file or directory.","jetpack-protect");case"delete":return__("Jetpack Scan will delete the affected file or directory.","jetpack-protect");case"update":returne.target?(0,n.sprintf)(/* translators: %s: Version that the plugin will be upgraded to */
__("Jetpack Scan will update to a newer version %s.","jetpack-protect"),e.target):__("Jetpack Scan will update to a newer version.","jetpack-protect");case"edit":return__("Jetpack Scan will edit the affected file or directory.","jetpack-protect");case"rollback":returne.target?(0,n.sprintf)(/* translators: %s: Version that the plugin will be upgraded to */
__("Jetpack Scan will rollback the affected file to the version from %s.","jetpack-protect"),e.target):__("Jetpack Scan will rollback the affected file to an older (clean) version.","jetpack-protect");default:return__("Jetpack Scan will resolve the threat.","jetpack-protect")}};functionp({threat:e,fixAllDialog:t,onCheckFix:a}){const[n,p]=(0,l.useState)(!0),d=(0,l.useCallback)((t=>{p(t.target.checked),a(t.target.checked,e)}),[a,e]);returns().createElement(s().Fragment,null,s().createElement("div",{className:o.A.threat},s().createElement(r.A,{icon:e.icon,className:o.A.threat__icon}),s().createElement("div",{className:o.A.threat__summary},s().createElement(c.Ay,{className:o.A.threat__summary__label,mb:1},e.label),s().createElement(c.Ay,{className:o.A.threat__summary__title},m(e.fixable))),s().createElement("div",{className:o.A.threat__severity},s().createElement(i.A,{severity:e.severity})),t&&s().createElement("div",{className:o.A.threat__checkbox},s().createElement("input",{type:"checkbox",checked:n,onChange:d,value:e.id}))))}},9314:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});varc=a(7425),n=a(6087),r=a(7723),l=a(1609),s=a(727),i=a(4254),o=a(3535),m=a(1476);const__=r.__,_n=r._n,p=()=>React.createElement("svg",{width:"80",height:"96",viewBox:"0 0 80 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 0.00634766L80 17.7891V44.2985C80 66.8965 65.1605 88.2927 44.2352 95.0425C41.4856 95.9295 38.5144 95.9295 35.7648 95.0425C14.8395 88.2927 0 66.8965 0 44.2985V17.7891L40 0.00634766Z",fill:"#069E08"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.9 33.6909L35.375 67.9124L19.2047 55.9263L22.7848 51.1264L34.1403 59.5436L56.0851 30.122L60.9 33.6909Z",fill:"white"})),d=()=>{const{lastChecked:e,hasRequiredPlan:t}=(0,s.A)(),[a,d]=(0,l.useState)(null),u=(0,l.useMemo)((()=>e?(e=>{constt=newDate,a=6e4*t.getTimezoneOffset(),c=Math.floor((newDate(t.getTime()+a).getTime()-e)/1e3);letn=c/31536e3;returnn>1?(0,r.sprintf)(
_n("%s minute ago","%s minutes ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):__("a few seconds ago","jetpack-protect")))))})(Date.parse(e)):null),[e]);returnReact.createElement("div",{className:m.A.empty},React.createElement(p,null),React.createElement(c.H3,{weight:"bold",mt:8},__("Don't worry about a thing","jetpack-protect")),React.createElement(c.Ay,{mb:4},(0,n.createInterpolateElement)((0,r.sprintf)(
__("The last Protect scan ran <strong>%s</strong> and everything looked great.","jetpack-protect"),u),{strong:React.createElement("strong",null)})),t&&React.createElement(React.Fragment,null,React.createElement(o.A,{ref:d}),React.createElement(i.A,{id:"paid-daily-and-manual-scans",position:"bottom middle",anchor:a})))}},5190:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});varc=a(1112),n=a(7425),r=a(4437),l=a(9384),s=a(7723),i=a(1609),o=a.n(i),m=a(8140),p=a(1226),d=a(4114),u=a(4569),h=a(1476);const__=s.__,g=({description:e,fixedIn:t,icon:a,id:u,label:g,name:v,source:f,title:E,type:A})=>{const{adminUrl:y}=window.jetpackProtectInitialState||{},{run:w}=(0,l.useProductCheckoutWorkflow)({productSlug:m.J3,redirectUrl:y,useBlogIdSuffix:!0}),{recordEventHandler:k}=(0,p.A)(),b=k("jetpack_protect_threat_list_get_scan_link_click",w),_=f?o().createElement(c.A,{variant:"link",isExternalLink:!0,weight:"regular",href:f},__("See more technical details of this threat","jetpack-protect")):null;returno().createElement(d.E,{id:u,label:g,title:E,icon:a,onOpen:(0,i.useCallback)((()=>{["core","plugin","theme"].includes(A)&&k(`jetpack_protect_${A}_threat_open`)}),[k,A])},e&&o().createElement("div",{className:h.A["threat-section"]},o().createElement(n.Ay,{variant:"title-small",mb:2},__("What is the problem?","jetpack-protect")),o().createElement(n.Ay,{mb:2},e),_),t&&o().createElement("div",{className:h.A["threat-section"]},o().createElement(n.Ay,{variant:"title-small",mb:2},__("How to fix it?","jetpack-protect")),o().createElement(n.Ay,{mb:2},/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version *//* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
(0,s.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),v,t)),o().createElement(r.A,{description:__("Looking for advanced scan results and one-click fixes?","jetpack-protect"),cta:__("Upgrade Jetpack Protect now","jetpack-protect"),onClick:b,className:h.A["threat-item-cta"]})),!e&&o().createElement("div",{className:h.A["threat-section"]},_))},v=({list:e})=>o().createElement(u.A,{list:e},(({currentItems:e})=>o().createElement(d.A,null,e.map((({description:e,fixedIn:t,icon:a,id:c,label:n,name:r,source:l,table:s,title:i,type:m,version:p})=>o().createElement(g,{description:e,fixedIn:t,icon:a,id:c,label:n,key:c,name:r,source:l,table:s,title:i,type:m,version:p}))))))},5661:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});varc=a(442),n=a(5918),r=a(8509),l=a(7425),s=a(1112),i=a(7143),o=a(7723),m=a(1609),p=a.n(m),d=a(727),u=a(7478),h=a(4254),g=a(3535),v=a(9314),f=a(5190),E=a(9395),A=a(6742),y=a(1476),w=a(993);const__=o.__,k=()=>{const{hasRequiredPlan:e}=(0,d.A)(),{item:t,list:a,selected:k,setSelected:b}=(0,w.A)(),_=a.filter((e=>e.fixable)),[R]=(0,c.A)("sm"),[C,j]=(0,m.useState)(null),[S,x]=(0,m.useState)(null),{setModal:N}=(0,i.useDispatch)(u.a),[M,L]=(0,m.useState)(null),[z,P]=(0,m.useState)(null),I=(0,m.useCallback)((()=>{switch(k){case"all":return1===a.length?__("All threats","jetpack-protect"):(0,o.sprintf)(/* translators: placeholder is the amount of threats found on the site. */
__("All %s threats","jetpack-protect"),a.length);case"core":return(0,o.sprintf)(/* translators: placeholder is the amount of WordPress threats found on the site. */
__("%1$s WordPress %2$s","jetpack-protect"),a.length,1===a.length?"threat":"threats");case"files":return(0,o.sprintf)(/* translators: placeholder is the amount of file threats found on the site. */
__("%1$s file %2$s","jetpack-protect"),a.length,1===a.length?"threat":"threats");case"database":return(0,o.sprintf)(/* translators: placeholder is the amount of database threats found on the site. */
__("%1$s database %2$s","jetpack-protect"),a.length,1===a.length?"threat":"threats");default:return(0,o.sprintf)(/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
__("%1$s %2$s in %3$s %4$s","jetpack-protect"),a.length,1===a.length?"threat":"threats",t?.name,t?.version)}}),[k,a,t]);returnp().createElement(n.A,{fluid:!0,horizontalSpacing:0,horizontalGap:3},p().createElement(r.A,{lg:4},p().createElement("div",{ref:j},p().createElement(E.A,{selected:k,onSelect:b})),p().createElement(h.A,{id:e?"paid-scan-results":"free-scan-results",position:"top",anchor:C})),p().createElement(r.A,{lg:8},a?.length>0?p().createElement(p().Fragment,null,p().createElement("div",{className:y.A["list-header"]},p().createElement(l.hE,{className:y.A["list-title"]},I()),e&&p().createElement("div",{className:y.A["list-header__controls"]},_.length>0&&p().createElement(p().Fragment,null,p().createElement(s.A,{ref:L,variant:"primary",onClick:(T=_,e=>{e.preventDefault(),N({type:"FIX_ALL_THREATS",props:{threatList:T}})})},(0,o.sprintf)(/* translators: Translates to Show auto fixers $s: Number of fixable threats. */
__("Show auto fixers (%s)","jetpack-protect"),_.length)),p().createElement(h.A,{id:"paid-fix-all-threats",position:R?"bottom right":"middle left",anchor:M})),p().createElement("div",null,p().createElement(g.A,{ref:P}),p().createElement(h.A,{id:"paid-daily-and-manual-scans",position:R?"bottom left":"middle left",anchor:z})))),e?p().createElement(p().Fragment,null,p().createElement("div",{ref:x},p().createElement(A.A,{list:a}),p().createElement("div",{className:y.A["manual-scan"]},p().createElement(l.Ay,{variant:"body-small",mb:4},__("If you have manually fixed any of the threats listed above, you can run a manual scan now or wait for Jetpack to scan your site later today.","jetpack-protect")),p().createElement(g.A,null))),p().createElement(h.A,{id:"paid-understand-severity",position:"top",anchor:S})):p().createElement(f.A,{list:a})):p().createElement(v.A,null)));varT}},9395:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});varc=a(442),n=a(7723),r=a(311),l=a(4648),s=a(435),i=a(2072),o=a(4314),m=a(1651),p=a(1609),d=a(1226),u=a(727),h=a(59);const__=n.__,g=({selected:e,onSelect:t,sourceType:a="scan",statusFilter:n="all"})=>{const{results:{plugins:g,themes:v},counts:{current:{threats:f,core:E,files:A,database:y}},hasRequiredPlan:w}=(0,u.A)({sourceType:a,filter:{status:n}}),{recordEvent:k}=(0,d.A)(),[b]=(0,c.A)("lg","<"),_=(0,p.useCallback)((()=>{k("jetpack_protect_navigation_all_click")}),[k]),R=(0,p.useCallback)((()=>{k("jetpack_protect_navigation_core_click")}),[k]),C=(0,p.useCallback)((()=>{k("jetpack_protect_navigation_plugin_click")}),[k]),j=(0,p.useCallback)((()=>{k("jetpack_protect_navigation_theme_click")}),[k]),S=(0,p.useCallback)((()=>{k("jetpack_protect_navigation_file_click")}),[k]),x=(0,p.useCallback)((()=>{k("jetpack_protect_navigation_database_click")}),[k]),N=(0,p.useMemo)((()=>"fixed"===n?__("All fixed threats","jetpack-protect"):"ignored"===n?__("All ignored threats","jetpack-protect",0):__("All threats","jetpack-protect")),[n]);returnReact.createElement(h.Ay,{selected:e,onSelect:t,mode:b?"dropdown":"list"},React.createElement(h.s$,{initial:!0,id:"all",label:N,icon:r.A,badge:f,disabled:f<=0,onClick:_,checked:!0}),React.createElement(h.s$,{id:"core",label:__("WordPress","jetpack-protect"),icon:l.A,badge:E,disabled:E<=0,onClick:R,checked:!0}),React.createElement(h.Me,{label:__("Plugins","jetpack-protect"),icon:s.A},g.map((({name:e,threats:t,checked:a})=>React.createElement(h.s$,{key:e,id:e,label:e,checked:a,badge:t?.length,disabled:t?.length<=0,onClick:C})))),React.createElement(h.Me,{label:__("Themes","jetpack-protect"),icon:i.A},v.map((({name:e,threats:t,checked:a})=>React.createElement(h.s$,{key:e,id:e,label:e,checked:a,badge:t?.length,disabled:t?.length<=0,onClick:j})))),w&&React.createElement(React.Fragment,null,React.createElement(h.s$,{id:"files",label:__("Files","jetpack-protect"),icon:o.A,badge:A,disabled:A<=0,onClick:S,checked:!0}),React.createElement(h.s$,{id:"database",label:__("Database","jetpack-protect"),icon:m.A,badge:y,disabled:y<=0,onClick:x,checked:!0})))}},4569:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});varc=a(1112),n=a(442),r=a(7723),l=a(8888),s=a(9115),i=a(1609),o=a.n(i),m=a(1476);const__=r.__,p=({pageNumber:e,currentPage:t,onPageChange:a})=>{constn=(0,i.useMemo)((()=>t===e),[t,e]),l=(0,i.useCallback)((()=>{a(e)}),[a,e]);returno().createElement(c.A,{size:"medium",className:n?null:m.A.unfocused,onClick:l,"aria-current":n?"page":void0,"aria-label":(0,r.sprintf)(/* translators: placeholder is a page number, i.e. "Page 123" */
__("Page %d","jetpack-protect"),e)},e)},d=({list:e,itemPerPage:t=10,children:a})=>{const[r]=(0,n.A)("sm"),[d,u]=(0,i.useState)(1),h=(0,i.useCallback)((()=>u(d-1)),[d,u]),g=(0,i.useCallback)((()=>u(d+1)),[d,u]),v=(0,i.useMemo)((()=>Math.ceil(e.length/t)),[e,t]),f=(0,i.useMemo)((()=>{consta=d*t,c=a-t;returne.slice(c,a)}),[d,e,t]),E=(0,i.useMemo)((()=>{if(r)return[d];conste=[1];returnd>3&&v>4&&e.push("…"),1===d?e.push(d+1,d+2,d+3):2===d?e.push(d,d+1,d+2):d<v-1?e.push(d-1,d,d+1):d===v-1?(d>3&&e.push(d-2),d>2&&e.push(d-1),e.push(d)):d===v&&(d>=5&&e.push(d-3),d>=4&&e.push(d-2),e.push(d-1)),e[e.length-1]<v-1?(e.push("…"),e.push(v)):e[e.length-1]<v&&e.push(v),e.filter((e=>e<=v||isNaN(e)))}),[d,r,v]);returno().createElement(o().Fragment,null,a({currentItems:f}),v>1&&o().createElement("nav",{role:"navigation","aria-label":__("Threat list pages","jetpack-protect"),className:m.A["pagination-container"]},o().createElement(c.A,{onClick:h,disabled:1===d,variant:"link",icon:l.A,iconSize:24,"aria-label":__("Previous page","jetpack-protect")}),E.map(((e,t)=>"number"==typeofe?o().createElement(p,{key:e,pageNumber:e,currentPage:d,onPageChange:u}):o().createElement("span",{key:`ellipses_${t}`},e))),o().createElement(c.A,{onClick:g,disabled:d===v,variant:"link",icon:s.A,iconSize:24,"aria-label":__("Next page","jetpack-protect")})))}},6742:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});varc=a(1112),n=a(7425),r=a(442),l=a(7143),s=a(7723),i=a(1609),o=a.n(i),m=a(1226),p=a(7478),d=a(9627),u=a(8331),h=a(2006),g=a(4569),v=a(1476);const__=s.__,f=({context:e,description:t,diff:a,filename:r,firstDetected:g,fixedIn:f,fixedOn:E,icon:A,fixable:y,id:w,label:k,name:b,source:_,title:R,type:C,severity:j,status:S,hideAutoFixColumn:x=!1})=>{constN=(0,l.useSelect)((e=>e(p.a).getThreatsAreFixing())),{setModal:M}=(0,l.useDispatch)(p.a),{recordEvent:L}=(0,m.A)(),z=N.indexOf(w)>=0,P=_?o().createElement(c.A,{variant:"link",isExternalLink:!0,weight:"regular",href:_},__("See more technical details of this threat","jetpack-protect")):null;returno().createElement(h.S,{id:w,label:k,title:R,icon:A,fixable:y,severity:j,firstDetected:g,fixedOn:E,status:S,onOpen:(0,i.useCallback)((()=>{["core","plugin","theme","file","database"].includes(C)&&L(`jetpack_protect_${C}_threat_open`)}),[L,C]),hideAutoFixColumn:x},t&&o().createElement("div",{className:v.A["threat-section"]},o().createElement(n.Ay,{variant:"title-small",mb:2},"fixed"!==S?__("What is the problem?","jetpack-protect"):__("What was the problem?","jetpack-protect",0)),o().createElement(n.Ay,{mb:2},t),P),(r||e||a)&&o().createElement(n.Ay,{variant:"title-small",mb:2},__("The technical details","jetpack-protect")),r&&o().createElement(o().Fragment,null,o().createElement(n.Ay,{mb:2},/* translators: filename follows in separate line; e.g. "PHP.Injection.5 in: `post.php`" */
__("Threat found in file:","jetpack-protect")),o().createElement("pre",{className:v.A["threat-filename"]},r)),e&&o().createElement(u.A,{context:e}),a&&o().createElement(d.A,{diff:a}),f&&"fixed"!==S&&o().createElement("div",{className:v.A["threat-section"]},o().createElement(n.Ay,{variant:"title-small",mb:2},__("How to fix it?","jetpack-protect")),o().createElement(n.Ay,{mb:2},/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version *//* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
(0,s.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),b,f))),!t&&o().createElement("div",{className:v.A["threat-section"]},P),["ignored","current"].includes(S)&&o().createElement("div",{className:v.A["threat-footer"]},"ignored"===S&&o().createElement(c.A,{isDestructive:!0,variant:"secondary",onClick:e=>{e.preventDefault(),M({type:"UNIGNORE_THREAT",props:{id:w,label:k,title:R,icon:A,severity:j}})},disabled:z},__("Unignore threat","jetpack-protect")),"current"===S&&o().createElement(o().Fragment,null,o().createElement(c.A,{isDestructive:!0,variant:"secondary",onClick:e=>{e.preventDefault(),M({type:"IGNORE_THREAT",props:{id:w,label:k,title:R,icon:A,severity:j}})}},__("Ignore threat","jetpack-protect")),y&&o().createElement(c.A,{disabled:z,onClick:e=>{e.preventDefault(),M({type:"FIX_THREAT",props:{id:w,fixable:y,label:k,icon:A,severity:j}})}},__("Fix threat","jetpack-protect")))))},E=({list:e,hideAutoFixColumn:t=!1})=>{const[a]=(0,r.A)(["sm","lg"],[null,"<"]);returno().createElement(o().Fragment,null,!a&&o().createElement("div",{className:v.A["accordion-header"]},o().createElement("span",null,__("Details","jetpack-protect")),o().createElement("span",null,__("Severity","jetpack-protect")),!t&&o().createElement("span",null,__("Auto-fix","jetpack-protect")),o().createElement("span",null)),o().createElement(g.A,{list:e},(({currentItems:e})=>o().createElement(h.A,null,e.map((({context:e,description:a,diff:c,filename:n,firstDetected:r,fixedIn:l,fixedOn:s,icon:i,fixable:m,id:p,label:d,name:u,severity:h,source:g,table:v,title:E,type:A,version:y,status:w})=>o().createElement(f,{context:e,description:a,diff:c,filename:n,firstDetected:r,fixedIn:l,fixedOn:s,icon:i,fixable:m,id:p,key:p,label:d,name:u,severity:h,source:g,table:v,title:E,type:A,version:y,status:w,hideAutoFixColumn:t})))))))}},993:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});varc=a(4648),n=a(4314),r=a(1651),l=a(435),s=a(2072),i=a(1609),o=a(727);constm=(e,t)=>t.severity-e.severity,p=(e,t)=>"object"==typeofe&&0===Object.keys(e).length?[]:Array.isArray(e)?e.map((e=>p(e,t))).flat():e?.threats.map((a=>({...a,...e,...t}))),d=({source:e,status:t}={source:"scan",status:"all"})=>{const[a,d]=(0,i.useState)("all"),{results:{plugins:u,themes:h,core:g,files:v,database:f}}=(0,o.A)({sourceType:e,filter:{status:t,key:a}}),{unsortedList:E,item:A}=(0,i.useMemo)((()=>{if(a&&"all"!==a){switch(a){case"core":return{unsortedList:p(g,{icon:c.A}),item:g};case"files":return{unsortedList:p({threats:v},{icon:n.A}),item:v};case"database":return{unsortedList:p({threats:f},{icon:r.A}),item:f}}conste=u.find((e=>e?.name===a));if(e)return{unsortedList:p(e,{icon:l.A}),item:e};constt=h.find((e=>e?.name===a));if(t)return{unsortedList:p(t,{icon:s.A}),item:t}}return{unsortedList:[...p(g,{icon:c.A}),...p(u,{icon:l.A}),...p(h,{icon:s.A}),...p({threats:v},{icon:n.A}),...p({threats:f},{icon:r.A})],item:null}}),[g,f,v,u,a,h]),y=e=>e.name&&e.version?`${e.name} (${e.version})`:e.filename?e.filename.split("/").pop():e.table?e.table:void0,w=(0,i.useMemo)((()=>E.sort(m).map((e=>({label:y(e),...e})))),[E]);return(0,i.useEffect)((()=>{"all"!==a&&"all"!==t&&0===w.length&&d("all")}),[a,t,A,w]),{item:A,list:w,selected:a,setSelected:d}}},9623:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});varc=a(7425),n=a(1112),r=a(7143),l=a(7723),s=a(1113),i=a(7478),o=a(5576),m=a(4031),p=a(6834);const__=l.__,d=({id:e,title:t,label:a,icon:l,severity:d})=>{const{setModal:u,unignoreThreat:h}=(0,r.useDispatch)(i.a),g=(0,r.useSelect)((e=>e(i.a).getThreatsUpdating()));returnReact.createElement(m.A,null,React.createElement(c.Ay,{variant:"title-medium",mb:2},__("Do you really want to unignore this threat?","jetpack-protect")),React.createElement(c.Ay,{mb:3},__("Jetpack will unignore the threat:","jetpack-protect")),React.createElement("div",{className:p.A.threat},React.createElement(s.A,{icon:l,className:p.A.threat__icon}),React.createElement("div",{className:p.A.threat__summary},React.createElement(c.Ay,{className:p.A.threat__summary__label,mb:1},a),React.createElement(c.Ay,{className:p.A.threat__summary__title},t)),React.createElement("div",{clas
// translators: placeholder is the date latest rules were updated i.e. "September 23, 2022".
__("Last updated on %s.","jetpack-protect"),E().unix(Z).format("MMMM D, YYYY")))),le&&React.createElement(React.Fragment,null,React.createElement(r.Ay,{className:L.A["automatic-rules-stats__failed-install"],variant:"body-small",mt:2},__("Failed to update automatic firewall rules.","jetpack-protect")," ",_e(le)),React.createElement(l.A,{variant:"link",href:ae?j.NW:j.pQ},React.createElement(r.Ay,{variant:"body-small"},__("Contact support","jetpack-protect"))))))),!ae&&React.createElement("div",{className:L.A["upgrade-trigger-section"]},React.createElement(s.A,{className:L.A["upgrade-trigger"],description:fe?__("Your site is not receiving the latest updates to automatic rules","jetpack-protect",0):__("Set up automatic rules with one click","jetpack-protect"),cta:fe?__("Upgrade to keep your site secure with up-to-date firewall rules","jetpack-protect",0):__("Upgrade to enable automatic firewall protection","jetpack-protect"),onClick:Ce}))),He=React.createElement("div",{className:L.A["toggle-section"]},React.createElement("div",{className:L.A["toggle-section__control"]},React.createElement(_.A,{id:"brute_force_protection",checked:ie.brute_force_protection,onChange:Me,disabled:me})),React.createElement("div",{className:L.A["toggle-section__content"]},React.createElement(r.Ay,{variant:"title-medium",mb:2},__("Brute force protection","jetpack-protect")),React.createElement(r.Ay,null,__("Prevent bots and hackers from attempting to log in to your website with common username and password combinations.","jetpack-protect")))),Be=React.createElement("div",{className:`${L.A["toggle-section"]}${U?"":L.A["toggle-section--disabled"]}`},React.createElement("div",{className:L.A["toggle-section__control"]},React.createElement(_.A,{id:"jetpack_waf_ip_block_list_enabled",checked:be,onChange:ze,disabled:!ve})),React.createElement("div",{className:L.A["toggle-section__content"]},React.createElement(r.Ay,{variant:"title-medium",mb:2},__("Block IP addresses","jetpack-protect")),React.createElement(r.Ay,{mb:1},__("Stop specific visitors from accessing your site by their IP address.","jetpack-protect")),(be||we)&&React.createElement("div",{className:L.A["manual-rules-section"]},React.createElement(C.A,{id:"jetpack_waf_ip_block_list",placeholder:__("Example:","jetpack-protect")+"\n12.12.12.1\n12.12.12.2",rows:3,value:ie.jetpack_waf_ip_block_list,onChange:xe,disabled:!ve||!be})),be&&React.createElement("div",{className:L.A["block-list-button-container"]},React.createElement(l.A,{onClick:Se,isLoading:he,disabled:!ve||!Ae},__("Save block list","jetpack-protect"))))),Oe=React.createElement(React.Fragment,null,React.createElement("div",{className:L.A["toggle-section"]},React.createElement("div",{className:L.A["toggle-section__control"]},React.createElement(_.A,{id:"jetpack_waf_ip_allow_list_enabled",checked:ie.jetpack_waf_ip_allow_list_enabled,onChange:Le,disabled:me})),React.createElement("div",{className:L.A["toggle-section__content"]},React.createElement(r.Ay,{variant:"title-medium",mb:2},__("Trusted IP addresses","jetpack-protect")),React.createElement(r.Ay,{mb:1},__("IP addresses added to this list are always allowed by Jetpack.","jetpack-protect")),(ie.jetpack_waf_ip_allow_list_enabled||ke)&&React.createElement("div",{className:L.A["manual-rules-section"]},React.createElement(C.A,{id:"jetpack_waf_ip_allow_list",placeholder:__("Example:","jetpack-protect")+"\n12.12.12.1\n12.12.12.2",rows:3,value:ie.jetpack_waf_ip_allow_list,onChange:xe,disabled:!Ee}),React.createElement(r.Ay,{variant:"body-extra-small",mt:1},__("Add IP addresses here to ensure they always have access to your site, regardless of Jetpack's security features.","jetpack-protect"))),ie.jetpack_waf_ip_allow_list_enabled&&React.createElement("div",{className:L.A["allow-list-button-container"]},React.createElement("div",null,React.createElement(r.Ay,{variant:"body-small",className:L.A["allow-list-current-ip"]},(0,u.createInterpolateElement)((0,h.sprintf)(
// translators: placeholder is the user's current IP address.
__("Your current IP: <strong>%s</strong>","jetpack-protect"),D),{strong:React.createElement("strong",null)})),React.createElement(l.A,{variant:"secondary",size:"small",onClick:Te,disabled:!Ee||Ie||me},__("+ Add to Allow List","jetpack-protect"))),React.createElement(l.A,{onClick:je,isLoading:de,disabled:me||!ye},__("Save allow list","jetpack-protect"))))));returnReact.createElement(w.A,null,React.createElement(b.A,null),React.createElement(i.A,{className:L.A.container,horizontalSpacing:8,horizontalGap:4},J&&!U&&React.createElement(o.A,null,Ve," "),React.createElement(o.A,null,React.createElement("div",{className:L.A["toggle-wrapper"]},J&&Fe,He,J&&React.createElement(React.Fragment,null,Be,React.createElement("div",{className:L.A.divider})),Oe))),J?React.createElement(k.A,null):React.createElement(R.A,null))}},5717:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});varc=a(766),n=a(5918),r=a(8509),l=a(7425),s=a(7723),i=a(1609),o=a(726),m=a(1186),p=a(7137),d=a(7827),u=a(9454),h=a(9395),g=a(6742),v=a(993),f=a(1226),E=a(727),A=a(7115),y=a(2621),w=a(5960);const__=s.__,_n=s._n,k=()=>{(0,f.A)({pageViewEventName:"protect_scan_history"});const{filter:e="all"}=(0,o.g)(),{item:t,list:a,selected:k,setSelected:b}=(0,v.A)({source:"history",status:e}),{counts:_,error:R,hasRequiredPlan:C}=(0,E.A)({sourceType:"history",filter:{status:e}}),{threats:j}=_.all,{counts:S}=(0,E.A)({sourceType:"history",filter:{status:"fixed",key:k}}),{threats:x}=S.current,{counts:N}=(0,E.A)({sourceType:"history",filter:{status:"ignored",key:k}}),{threats:M}=N.current,L=(0,i.useCallback)((()=>{switch(k){case"all":if(1===a.length)switch(e){case"fixed":return__("All fixed threats","jetpack-protect");case"ignored":return__("All ignored threats","jetpack-protect",0);default:return__("All threats","jetpack-protect")}switch(e){case"fixed":return(0,s.sprintf)(/* translators: placeholder is the amount of fixed threats found on the site. */
__("All %s fixed threats","jetpack-protect"),a.length);case"ignored":return(0,s.sprintf)(/* translators: placeholder is the amount of ignored threats found on the site. */
__("All %s ignored threats","jetpack-protect"),a.length);default:return(0,s.sprintf)(/* translators: placeholder is the amount of threats found on the site. */
__("All %s threats","jetpack-protect"),a.length)}case"core":switch(e){case"fixed":return(0,s.sprintf)(/* translators: placeholder is the amount of fixed WordPress threats found on the site. */
_n("%1$s fixed WordPress threat","%1$s fixed WordPress threats",a.length,"jetpack-protect"),a.length);case"ignored":return(0,s.sprintf)(/* translators: placeholder is the amount of ignored WordPress threats found on the site. */
_n("%1$s ignored WordPress threat","%1$s ignored WordPress threats",a.length,"jetpack-protect"),a.length);default:return(0,s.sprintf)(/* translators: placeholder is the amount of WordPress threats found on the site. */
_n("%1$s WordPress threat","%1$s WordPress threats",a.length,"jetpack-protect"),a.length)}case"files":switch(e){case"fixed":return(0,s.sprintf)(/* translators: placeholder is the amount of fixed file threats found on the site. */
_n("%1$s fixed file threat","%1$s fixed file threats",a.length,"jetpack-protect"),a.length);case"ignored":return(0,s.sprintf)(/* translators: placeholder is the amount of ignored file threats found on the site. */
_n("%1$s ignored file threat","%1$s ignored file threats",a.length,"jetpack-protect"),a.length);default:return(0,s.sprintf)(/* translators: placeholder is the amount of file threats found on the site. */
_n("%1$s file threat","%1$s file threats",a.length,"jetpack-protect"),a.length)}case"database":switch(e){case"fixed":return(0,s.sprintf)(/* translators: placeholder is the amount of fixed database threats found on the site. */
_n("%1$s fixed database threat","%1$s fixed database threats",a.length,"jetpack-protect"),a.length);case"ignored":return(0,s.sprintf)(/* translators: placeholder is the amount of ignored database threats found on the site. */
_n("%1$s ignored database threat","%1$s ignored database threats",a.length,"jetpack-protect"),a.length);default:return(0,s.sprintf)(/* translators: placeholder is the amount of database threats found on the site. */
_n("%1$s database threat","%1$s database threats",a.length,"jetpack-protect"),a.length)}default:switch(e){case"fixed":return(0,s.sprintf)(/* translators: Translates to "123 fixed threats in Example Plugin (1.2.3)" */
_n("%1$s fixed threat in %2$s %3$s","%1$s fixed threats in %2$s %3$s",a.length,"jetpack-protect"),a.length,t?.name,t?.version);case"ignored":return(0,s.sprintf)(/* translators: Translates to "123 ignored threats in Example Plugin (1.2.3)" */
_n("%1$s ignored threat in %2$s %3$s","%1$s ignored threats in %2$s %3$s",a.length,"jetpack-protect"),a.length,t?.name,t?.version);default:return(0,s.sprintf)(/* translators: Translates to "123 threats in Example Plugin (1.2.3)" */
_n("%1$s threat in %2$s %3$s","%1$s threats in %2$s %3$s",a.length,"jetpack-protect"),a.length,t?.name,t?.version)}}}),[k,a.length,e,t?.name,t?.version]);returnC?0===a.length&&"all"!==e?React.createElement(o.C5,{to:"/scan/history"}):React.createElement(m.A,null,React.createElement(c.A,null,React.createElement(n.A,{horizontalSpacing:3,horizontalGap:4},React.createElement(r.A,null,React.createElement(A.A,{subtitle:R?null:__("Threat history","jetpack-protect"),title:R?null:(0,s.sprintf)(/* translators: %s: Total number of threats */
__("%1$s previously active %2$s","jetpack-protect"),j,1===j?"threat":"threats")})),R?React.createElement(r.A,null,React.createElement(p.A,{baseErrorMessage:__("An error occurred loading your site's threat history.","jetpack-protect"),errorMessage:R.message,errorCode:R.code})):React.createElement(r.A,null,React.createElement(n.A,{fluid:!0,horizontalSpacing:0,horizontalGap:3},React.createElement(r.A,{lg:4},React.createElement(h.A,{selected:k,onSelect:b,sourceType:"history",statusFilter:e})),React.createElement(r.A,{lg:8},a.length>0?React.createElement("div",null,React.createElement("div",{className:w.A["list-header"]},React.createElement(l.hE,{className:w.A["list-title"]},L()),React.createElement("div",{className:w.A["list-header__controls"]},React.createElement(y.A,{numFixed:x,numIgnored:M}))),React.createElement(g.A,{list:a,hideAutoFixColumn:!0})):React.createElement(React.Fragment,null,React.createElement("div",{className:w.A["list-header"]},React.createElement("div",{className:w.A["list-header__controls"]},React.createElement(y.A,null))),React.createElement("div",{className:w.A.empty},React.createElement(d.A,null),React.createElement(l.H3,{weight:"bold",mt:8},__("Don't worry about a thing","jetpack-protect")),React.createElement(l.Ay,{mb:4},(0,s.sprintf)(/* translators: %s: Filter type */
__("There are no%sthreats in your scan history.","jetpack-protect"),"all"===e?" ":`${e}`))))))))),React.createElement(u.A,null)):React.createElement(o.C5,{to:"/scan"})}},2621:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});varc=a(7723),n=a(1609),r=a.n(n),l=a(726),s=a(4907);const__=c.__;functioni({numFixed:e,numIgnored:t}){consta=(0,l.Zp)(),{filter:c="all"}=(0,l.g)(),i=(0,n.useCallback)((e=>()=>a(e)),[a]);returnr().createElement(s.A,null,r().createElement(s.A.Button,{variant:"all"===c?"primary":"secondary",onClick:i("/scan/history")},__("All","jetpack-protect")),r().createElement(s.A.Button,{variant:"fixed"===c?"primary":"secondary",onClick:i("/scan/history/fixed"),disabled:!e},__("Fixed","jetpack-protect")),r().createElement(s.A.Button,{variant:"ignored"===c?"primary":"secondary",onClick:i("/scan/history/ignored"),disabled:!t},__("Ignored","jetpack-protect")))}},5148:(e,t,a)=>{"use strict";a.d(t,{A:()=>V});varc=a(8509),n=a(5918),r=a(7425),l=a(766),s=a(9384),i=a(6427),o=a(7143),m=a(7723),p=a(1609),d=a.n(p),u=a(5242),h=a(1186),g=a(7137),v=a(4256),f=a(9454),E=a(5165),A=a(147),y=a(5661),w=a(8140),k=a(1226),b=a(1936),_=a(727),R=a(6516),C=a(7478),j=a(3411),S=a(7115),x=a(6359),N=a(3396),M=a(4404);const__=m.__,L=()=>{const{hasConnectionError:e}=(0,s.useConnectionErrorNotice)();returnd().createElement(d().Fragment,null,e&&d().createElement(c.A,{className:x.A["connection-error-col"]},d().createElement(s.ConnectionError,null)),d().createElement(c.A,null,d().createElement("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"})))},z=()=>d().createElement(n.A,{horizontalSpacing:0},d().createElement(L,null)),P=({errorMessage:e,errorCode:t})=>d().createElement(d().Fragment,null,d().createElement(z,null),d().createElement(n.A,{horizontalSpacing:3,horizontalGap:4},d().createElement(c.A,null,d().createElement(S.A,null)),d().createElement(c.A,null,d().createElement(g.A,{baseErrorMessage:__("We are having problems scanning your site.","jetpack-protect"),errorMessage:e,errorCode:t})))),I=({currentProgress:e})=>{const{hasRequiredPlan:t}=(0,_.A)(),{globalStats:a}=(0,R.A)(),l=parseInt(a?.totalVulnerabilities),s=isNaN(l)?"50,000":l.toLocaleString();returnd().createElement(d().Fragment,null,d().createElement(z,null),d().createElement(n.A,{horizontalSpacing:3,horizontalGap:4},d().createElement(c.A,null,d().createElement(S.A,null)),d().createElement(c.A,null,d().createElement(E.A,{main:d().createElement("div",{className:x.A["main-content"]},d().createElement(n.A,{horizontalSpacing:3,horizontalGap:7},d().createElement(c.A,{className:x.A["loading-content"]},d().createElement(i.Spinner,{style:{color:"black",marginTop:0,marginLeft:0}}),d().createElement("span",null,__("Scanning your site…","jetpack-protect"))),d().createElement(c.A,null,d().createElement(r.H3,{style:{textWrap:"balance"}},__("Your results will be ready soon","jetpack-protect")),t&&null!==e&&e>=0&&d().createElement(v.A,{value:e}),d().createElement(r.Ay,null,(0,m.sprintf)(
// translators: placeholder is the number of total vulnerabilities i.e. "22,000".
__("We are scanning for security threats from our more than %s listed vulnerabilities, powered by WPScan. This could take a minute or two.","jetpack-protect"),s))))),secondary:d().createElement("div",{className:x.A.illustration},d().createElement("img",{src:u,alt:""})),preserveSecondaryOnMobile:!1}))))},T=()=>d().createElement(d().Fragment,null,d().createElement(z,null),d().createElement(n.A,{horizontalSpacing:3,horizontalGap:4},d().createElement(c.A,null,d().createElement(A.A,null)),d().createElement(c.A,null,d().createElement(y.A,null)))),V=()=>{const{lastChecked:e,hasRequiredPlan:t}=(0,_.A)(),{refreshStatus:a}=(0,o.useDispatch)(C.a),{scanInProgress:c,statusIsFetching:n,scanIsUnavailable:r,status:s,scanError:i}=(0,o.useSelect)((e=>({scanError:e(C.a).scanError(),scanInProgress:e(C.a).scanInProgress(),scanIsUnavailable:e(C.a).getScanIsUnavailable(),status:e(C.a).getStatus(),statusIsFetching:e(C.a).getStatusIsFetching()})));letm;m=i?"error":e?"active":"in_progress",(0,k.A)({pageViewEventName:"protect_admin",pageViewEventProperties:{check_status:m,has_plan:t}}),(0,M.A)(),(0,N.A)(),(0,p.useEffect)((()=>{n||w.Mm!==s.status||r||a(!0)}),[n,s.status,a,r]);constu=(0,p.useMemo)((()=>c?d().createElement(I,{currentProgress:s.currentProgress}):i?d().createElement(P,{errorMessage:i.message,errorCode:i.code}):d().createElement(T,null)),[c,s.currentProgress,i]);returnd().createElement(b.dn.Provider,{value:j.A},d().createElement(h.A,null,d().createElement(l.A,null,u),d().createElement(f.A,null)))}},3411:(e,t,a)=>{"use strict";a.d(t,{A:()=>E});varc=a(6072),n=a.n(c),r=a(7425),l=a(1112),s=a(3924),i=a(9384),o=a(6087),m=a(7723),p=a(8140),d=a(1226);const__=m.__,{adminUrl:u,siteSuffix:h}=window.jetpackProtectInitialState,g=__("Your scan results","jetpack-protect"),v=React.createElement(r.Ay,null,__("Navigate through the results of the scan on your WordPress installation, plugins, themes, and other files","jetpack-protect")),f=e=>{const{run:t}=(0,i.useProductCheckoutWorkflow)({productSlug:p.J3,redirectUrl:u}),{recordEventHandler:a}=(0,d.A)(),c=a("jetpack_protect_onboarding_get_scan_link_click",t);returnReact.createElement(l.A,n()({variant:"link",weight:"regular",onClick:c},e))},E=[{id:"free-scan-results",title:g,description:v},{id:"free-daily-scans",title:__("Daily automated scans","jetpack-protect"),description:React.createElement(r.Ay,null,(0,o.createInterpolateElement)(__("We run daily automated scans. Do you want to be able to scan manually? <upgradeLink>Upgrade</upgradeLink>","jetpack-protect"),{upgradeLink:React.createElement(f,null)}))},{id:"paid-scan-results",title:g,description:v},{id:"paid-fix-all-threats",title:__("Auto-fix with one click","jetpack-protect"),description:React.createElement(r.Ay,null,__("Jetpack Protect offers one-click fixes for most threats. Press this button to be safe again.","jetpack-protect"),React.createElement("br",null),React.createElement("br",null),(0,o.createInterpolateElement)(__("Note that you'll have to <credentialsLink>input your server credentials</credentialsLink> first.","jetpack-protect"),{credentialsLink:React.createElement(l.A,{variant:"link",weight:"regular",href:(0,s.A)("jetpack-settings-security-credentials",{site:h})})}))},{id:"paid-understand-severity",title:__("Understand severity","jetpack-protect"),description:React.createElement(r.Ay,null,__("Learn how critical these threats are for the security of your site by glancing at the severity labels.","jetpack-protect"))},{id:"paid-daily-and-manual-scans",title:__("Daily & manual scanning","jetpack-protect"),description:React.createElement(r.Ay,null,__("We run daily automated scans but you can also run on-demand scans if you want to check the latest status.","jetpack-protect"))}]},7115:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});varc=a(8478),n=a(5918),r=a(8509),l=a(7425),s=a(1609),i=a.n(s),o=a(727),m=a(5412),p=a(6359);constd=({title:e,subtitle:t,controls:a})=>{consts=(0,c.Wy)("protect"),{hasRequiredPlan:d}=(0,o.A)();returni().createElement(n.A,{fluid:!0},i().createElement(r.A,null,i().createElement("div",{className:p.A["scan-section-head
_n("%s threat was fixed successfully","%s threats were fixed successfully",e.length,"jetpack-protect"),e.length)}))})).catch((()=>{t(Y({type:"error",message:__("Not all threats could be fixed. Please contact our support.","jetpack-protect")}))})).finally((()=>{t(K([]))}))},Y=e=>({type:C,payload:e}),X=e=>({type:S,hasRequiredPlan:e}),ee={checkCredentials:()=>async({dispatch:e})=>awaitnewPromise(((t,a)=>(e(W(!0)),n()({path:"jetpack-protect/v1/check-credentials",method:"POST"}).then((a=>{e(q(a)),t(a)})).catch((e=>{a(e)})).finally((()=>{e(W(!1))}))))),setCredentials:q,setCredentialsIsFetching:W,setScanHistory:V,setStatus:F,setStatusProgress:e=>({type:h,currentProgress:e}),startScanOptimistically:H,refreshStatus:O,refreshScanHistory:D,setStatusIsFetching:$,setScanIsEnqueuing:G,setInstalledPlugins:e=>({type:A,plugins:e}),setInstalledThemes:e=>({type:y,themes:e}),setwpVersion:e=>({type:w,version:e}),setJetpackScan:e=>({type:k,scan:e}),ignoreThreat:(e,t=()=>{})=>async({dispatch:a})=>(a(Z(e,!0)),awaitnewPromise((()=>n()({path:`jetpack-protect/v1/ignore-threat?threat_id=${e}`,method:"POST"}).then((()=>a(O()))).then((()=>a(D()))).then((()=>a(Y({type:"success",message:__("Threat ignored","jetpack-protect")})))).catch((()=>a(Y({type:"error",message:__("An error ocurred ignoring the threat.","jetpack-protect")})))).finally((()=>{a(Z(e,!1)),t()}))))),unignoreThreat:(e,t=()=>{})=>async({dispatch:a})=>(a(Z(e,!0)),awaitnewPromise((()=>n()({path:`jetpack-protect/v1/unignore-threat?threat_id=${e}`,method:"POST"}).then((()=>a(D()))).then((()=>a(O()))).then((()=>a(Y({type:"success",message:__("Threat unignored","jetpack-protect")})))).catch((()=>a(Y({type:"error",message:__("An error ocurred unignoring the threat.","jetpack-protect")})))).finally((()=>{a(Z(e,!1)),t()}))))),setModal:e=>({type:R,payload:e}),setNotice:Y,clearNotice:()=>({type:j}),fixThreats:(e,t=()=>{})=>async({dispatch:a})=>(e.forEach((e=>{a(Z(e,!0))})),awaitnewPromise((()=>n()({path:`jetpack-protect/v1/fix-threats?threat_ids=${e}`,method:"POST",data:{threatIds:e}}).then((()=>a(Y({type:"success",message:__("We're hard at work fixing this threat in the background. Please check back shortly.","jetpack-protect")})))).then((()=>{setTimeout((()=>a(Q(e))),1e3)})).catch((()=>a(Y({type:"error",message:__("Error fixing threats. Please contact support.","jetpack-protect")})))).finally((()=>{e.forEach((e=>{a(Z(e,!1))})),t()}))))),scan:(e=()=>{})=>async({dispatch:t})=>(t(G(!0)),awaitnewPromise((()=>n()({path:"jetpack-protect/v1/scan",method:"POST"}).then((()=>{t(H()),setTimeout((()=>t(O(!0))),5e3)})).catch((()=>t(Y({type:"error",message:__("An error ocurred enqueuing the scan","jetpack-protect")})))).finally((()=>{t(G(!1)),e()}))))),setThreatsAreFixing:K,refreshPlan:()=>({dispatch:e})=>{n()({path:"jetpack-protect/v1/check-plan",method:"GET"}).then((t=>e(X(t))))},setHasRequiredPlan:X,setScanIsUnavailable:J,setOnboardingProgress:e=>({type:x,progress:e}),setWafIsEnabled:e=>({type:L,isEnabled:e}),setWafIsSeen:e=>({type:N,isSeen:e}),setWafUpgradeIsSeen:e=>({type:M,upgradeIsSeen:e}),setWafIsUpdating:e=>({type:z,isUpdating:e}),setWafIsToggling:e=>({type:P,isToggling:e}),setWafConfig:e=>({type:I,config:e}),setWafStats:e=>({type:T,stats:e})}},3010:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});varc=a(7143),n=a(6185),r=a.n(n),l=a(8140),s=a(3772);consti={wafSupported:null,bruteForceSupported:null,isSeen:!1,upgradeIsSeen:!1,isEnabled:!1,isUpdating:!1,isToggling:!1,config:void0,stats:void0},o=(0,c.combineReducers)({credentials:(e=null,t)=>t.type===s.A1?t.credentials:e,credentialsIsFetching:(e=!1,t)=>t.type===s.id?t.isFetching:e,scanHistory:(e={},t)=>t.type===s.Wl?r()(t.scanHistory):e,status:(e={},t)=>{switch(t.type){cases.mD:returnt.status;cases.yA:return{...e,currentProgress:t.currentProgress};cases.pW:return{...e,currentProgress:0,status:l.JD}}returne},statusIsFetching:(e=!1,t)=>t.type===s.wd?t.status:e,scanIsUnavailable:(e=!1,t)=>t.type===s.bK?t.status:e,scanIsEnqueuing:(e=!1,t)=>t.type===s.iS?t.isEnqueuing:e,installedPlugins:(e={},t)=>t.type===s.hk?t.plugins:e,installedThemes:(e={},t)=>