default:(0,a.sprintf)(__("%s coming soon","jetpack-protect"),n)}:{lg:t?f:v,default:t?n:(0,a.sprintf)(/* translators: Name of the current feature */
__("%s not included","jetpack-protect"),n)})(n,t,_),P=Z?N.lg:N.default;returnu().createElement("div",{className:l()(g.Z.item,g.Z.value)},u().createElement(c.Z,{className:l()(g.Z.icon,w?g.Z["icon-check"]:g.Z["icon-cross"]),size:32,icon:w?r.Z:i.Z}),u().createElement(h.ZP,{variant:"body-small"},d||P),j&&u().createElement(m.Z,{title:b||S,iconClassName:g.Z["popover-icon"],className:g.Z.popover,placement:"bottom-end",iconSize:14,offset:4},u().createElement(h.ZP,{variant:"body-small"},y||R)))},b=e=>{let{children:t}=e;returnu().createElement("div",{className:g.Z.header},t)},Z=e=>{let{primary:t=!1,children:n}=e,a=0;returnu().createElement("div",{className:l()(g.Z.card,{[g.Z["is-primary"]]:t})},s.Children.map(n,(e=>{constt=e;returnt.type===y?(a++,(0,s.cloneElement)(t,{index:a-1})):t})))};t.ZP=e=>{let{title:t,items:n,children:a,showIntroOfferDisclaimer:c=!1}=e;const[r]=(0,p.Z)("lg");returnu().createElement(k.Provider,{value:n},u().createElement("div",{className:l()(g.Z.container,{[g.Z["is-viewport-large"]]:r}),style:{"--rows":n.length+1,"--columns":s.Children.toArray(a).length+1}},u().createElement("div",{className:g.Z.table},u().createElement(h.ZP,{variant:"headline-small"},t),r&&n.map(((e,t)=>u().createElement("div",{className:l()(g.Z.item,{[g.Z["last-feature"]]:t===n.length-1}),key:t},u().createElement(h.ZP,{variant:"body-small"},u().createElement("strong",null,e.name)),e.tooltipInfo&&u().createElement(m.Z,{title:e.tooltipTitle,iconClassName:g.Z["popover-icon"],className:g.Z.popover,placement:"bottom-end",iconSize:14,offset:4},u().createElement(h.ZP,{variant:"body-small"},e.tooltipInfo))))),a)),u().createElement("div",{className:g.Z["tos-container"]},u().createElement("div",{className:g.Z.tos},c&&u().createElement(h.ZP,{variant:"body-small"},__("Reduced pricing is a limited offer for the first year and renews at regular price.","jetpack-protect")),u().createElement(d.Z,{multipleButtons:!0}))))}},5347:function(e,t,n){"use strict";vara=n(5736),c=n(5235),r=n.n(c),i=n(5106),o=n(3789),l=n(9184);const__=a.__;t.Z=e=>{let{price:t,offPrice:n,currency:a="",showNotOffPrice:c=!0,hideDiscountLabel:s=!0,promoLabel:u="",legend:m=__("/month, paid yearly","jetpack-protect"),isNotConvenientPrice:p=!1,hidePriceFraction:d=!1,children:h}=e;if(null==t&&null==n||!a)returnnull;c=c&&null!=n;constg="number"==typeoft&&"number"==typeofn?Math.floor((t-n)/t*100):0,f=!s&&g&&g>0?g+__("% off","jetpack-protect"):null;returnReact.createElement(React.Fragment,null,React.createElement("div",{className:l.Z.container},React.createElement("div",{className:r()(l.Z["price-container"],"product-price_container")},React.createElement(o.t,{value:n??t,currency:a,isOff:!p,hidePriceFraction:d}),c&&React.createElement(o.t,{value:t,currency:a,isOff:!1,hidePriceFraction:d}))),React.createElement("div",{className:l.Z.footer},h||React.createElement(i.ZP,{className:r()(l.Z.legend,"product-price_legend")},m),u&&React.createElement(i.ZP,{className:r()(l.Z["promo-label"],"product-price_promo_label")},u),f&&React.createElement(i.ZP,{className:r()(l.Z["promo-label"],"product-price_promo_label")},f)))}},3789:function(e,t,n){"use strict";n.d(t,{t:function(){returnl}});vara=n(8899),c=n(5235),r=n.n(c),i=n(5106),o=n(9184);constl=e=>{let{value:t,currency:n,isOff:c,hidePriceFraction:l}=e;consts=r()(o.Z.price,"product-price_price",{[o.Z["is-not-off-price"]]:!c}),{symbol:u,integer:m,fraction:p}=(0,a.LR)(t,n),d=!l||!p.endsWith("00");returnReact.createElement(i.ZP,{className:s,variant:"headline-medium",component:"p"},React.createElement(i.ZP,{className:o.Z.symbol,component:"sup",variant:"title-medium"},u),m,d&&React.createElement(i.ZP,{component:"sup",variant:"body-small","data-testid":"PriceFraction"},React.createElement("strong",null,p)))}},5033:function(e,t,n){"use strict";vara=n(5162),c=n.n(a),r=n(9196),i=n.n(r);n(1683);consto=e=>{constt=e.className+" jp-components-spinner",n={width:e.size,height:e.size,fontSize:e.size,borderTopColor:e.color},a={borderTopColor:e.color,borderRightColor:e.color};returni().createElement("div",{className:t},i().createElement("div",{className:
__("By clicking the <strong>%s</strong> button, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack-protect"),t),{strong:React.createElement("strong",null),tosLink:React.createElement(m,{slug:"wpcom-tos"}),shareDetailsLink:React.createElement(m,{slug:"jetpack-support-what-data-does-jetpack-sync"})})},m=e=>{let{slug:t,children:n}=e;returnReact.createElement("a",{className:"terms-of-service__link",href:(0,o.Z)(t),rel:"noopener noreferrer",target:"_blank"},n)};t.Z=e=>{let{className:t,multipleButtons:n,agreeButtonLabel:a}=e;returnReact.createElement(l.ZP,{className:i()(t,"terms-of-service")},n?React.createElement(s,null):React.createElement(u,{agreeButtonLabel:a}))}},6017:function(e,t,n){"use strict";n.d(t,{h:function(){returna},s:function(){returnc}});consta={"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"},c=["mt","mr","mb","ml","mx","my","m","pt","pr","pb","pl","px","py","p"]},5106:function(e,t,n){"use strict";n.d(t,{Dx:function(){returnd},H3:function(){returnp}});vara=n(2674),c=n.n(a),r=n(5235),i=n.n(r),o=n(9196),l=n.n(o),s=n(6017),u=n(3280);constm=(0,o.forwardRef)(((e,t)=>{let{variant:n="body",children:a,component:r,className:m,...p}=e;constd=r||s.h[n]||"span",h=(0,o.useMemo)((()=>s.s.reduce(((e,t)=>(void0!==p[t]&&(e+=u.Z[`${t}-${p[t]}`]+" ",deletep[t]),e)),"")),[p]);returnp.ref=t,l().createElement(d,c()({className:i()(u.Z.reset,u.Z[n],m,h)},p),a)}));t.ZP=m;constp=e=>{let{children:t,weight:n="bold",...a}=e;constr="headline-small"+("bold"===n?"":`-${n}`);returnl().createElement(m,c()({variant:r,mb:3},a),t)},d=e=>{let{children:t,size:n="medium",...a}=e;returnl().createElement(m,c()({variant:`title-${n}`,mb:1},a),t)}},8275:function(e,t,n){"use strict";vara=n(9196),c=n.n(a),r=n(3591);consti={"--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)"},o={"--jp-black":"#000000","--jp-black-80":"#2c3338","--jp-white":"#ffffff","--jp-white-off":"#f9f9f6","--jp-gray":"#dcdcde","--jp-gray-0":"#F6F7F7","--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 )"},l={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},s={"--spacing-base":"8px"},u={},m=(e,t,n)=>{consta={...i,...o,...l,...s};for(consttina)e.style.setProperty(t,a[t]);n&&e.classList.add(r.Z.global),t&&(u[t]={provided:!0,root:e})};t.ZP=e=>{let{children:t=null,targetDom:n,id:r,withGlobalStyles:i=!0}=e;consto=(0,a.useRef)(),l=u?.[r]?.provided;return(0,a.useLayoutEffect)((()=>{if(!l)returnn?m(n,r,i):void(o?.current&&m(o.current,r,i))}),[n,o,l,r,i]),n?t:c().createElement("div",{ref:o},t)}},41
__("There was an error reconnecting Jetpack. Error: %s","jetpack-protect"),l))):null;returnu().createElement(u().Fragment,null,h,u().createElement(r.Notice,{status:"error",isDismissible:!1,className:p},u().createElement("div",{className:m.Z.message},d,t),o&&u().createElement("a",{onClick:o,onKeyDown:o,className:m.Z.button,href:"#"},__("Restore Connection","jetpack-protect"))))};p.propTypes={message:l().string.isRequired,restoreConnectionCallback:l().func,isRestoringConnection:l().bool,restoreConnectionError:l().string},t.Z=p},1294:function(e,t,n){"use strict";vara=n(4743),c=n(9818),r=n(9196),i=n(428);consto=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};t.Z=function(){let{registrationNonce:e=o.registrationNonce,apiRoot:t=o.apiRoot,apiNonce:n=o.apiNonce,redirectUri:l,autoTrigger:s,from:u,skipUserConnection:m}=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};const{registerSite:p,connectUser:d,refreshConnectedPlugins:h}=(0,c.useDispatch)(i.t),g=(0,c.useSelect)((e=>e(i.t).getRegistrationError())),{siteIsRegistering:f,userIsConnecting:v,userConnectionData:E,connectedPlugins:k,connectionErrors:y,isRegistered:b,isUserConnected:Z,hasConnectedOwner:C}=(0,c.useSelect)((e=>({siteIsRegistering:e(i.t).getSiteIsRegistering(),userIsConnecting:e(i.t).getUserIsConnecting(),userConnectionData:e(i.t).getUserConnectionData(),connectedPlugins:e(i.t).getConnectedPlugins(),connectionErrors:e(i.t).getConnectionErrors(),...e(i.t).getConnectionStatus()}))),w=()=>m?l?(window.location=l,Promise.resolve(l)):Promise.resolve():d({from:u,redirectUri:l}),_=t=>(t&&t.preventDefault(),b?w():p({registrationNonce:e,redirectUri:l}).then((()=>w())));return(0,r.useEffect)((()=>{a.ZP.setApiRoot(t),a.ZP.setApiNonce(n)}),[t,n]),(0,r.useEffect)((()=>{!s||f||v||_()}),[]),{handleRegisterSite:_,handleConnectUser:w,refreshConnectedPlugins:h,isRegistered:b,isUserConnected:Z,siteIsRegistering:f,userIsConnecting:v,registrationError:g,userConnectionData:E,hasConnectedOwner:C,connectedPlugins:k,connectionErrors:y}}},3329:function(e,t,n){"use strict";n.d(t,{Z:function(){returni},h:function(){returno}});vara=n(6186),c=n(1294),r=n(1045);functioni(){const{connectionErrors:e}=(0,c.Z)({}),t=Object.values(e).shift(),n=t&&Object.values(t).length&&Object.values(t).shift().error_message;return{hasConnectionError:Boolean(n),connectionErrorMessage:n}}consto=()=>{const{hasConnectionError:e,connectionErrorMessage:t}=i(),{restoreConnection:n,isRestoringConnection:c,restoreConnectionError:o}=(0,r.Z)();returne?React.createElement(a.Z,{isRestoringConnection:c,restoreConnectionError:o,restoreConnectionCallback:n,message:t}):null}},8258:function(e,t,n){"use strict";n.d(t,{Z:function(){returnd}});vara=n(4743),c=n(4153),r=n(9818),i=n(9196),o=n(1294),l=n(428);const{registrationNonce:s,apiRoot:u,apiNonce:m,siteSuffix:p}=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};functiond(){let{productSlug:e,redirectUrl:t,siteSuffix:n=p,siteProductAvailabilityHandler:d=null,from:h}=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};const[g,f]=(0,i.useState)(!1),{registerSite:v}=(0,r.useDispatch)(l.t),{isUserConnected:E,isRegistered:k,handleConnectUser:y}=(0,o.Z)({redirectUri:t,from:h}),b=(0,c.Z)(e,n,t,E),Z=()=>Promise.resolve(d&&d()).then((e=>{if(e)returny();window.location.href=b}));return(0,i.useEffect)((()=>{a.ZP.setApiRoot(u),a.ZP.setApiNonce(m)}),[]),{run:e=>{if(e&&e.preventDefault(),f(!0),k)returnZ();v({registrationNonce:s,redirectUri:t}).then(Z)},isRegistered:k,hasCheckoutStarted:g}}},1045:function(e,t,n){"use strict";n.d(t,{Z:function(){returns}});vara=n(4743),c=n(9818),r=n(9196),i=n(428);const{apiRoot:o,apiNonce:l}=window?.JP_CONNECTION_INITIAL_STATE?window.JP_CONNECTION_INITIAL_STATE:{};functions(){const[e,t]=(0,r.useState)(!1),[n,s]=(0,r.useState)(null),{disconnectUserSuccess:u}=(0,c.useDispatch)(i.t),m="/wp-admin/admin.php?page=my-jetpack#/connection";return(0,r.useEffect)((()=>{a.ZP.setApiRoot(o),a.ZP.setApiNonce(l)}),[]),{restoreConnection:function(){lete=!(arguments.length>0&&void0!==arguments[0])||argument
// translators: placeholder is the latest rules version i.e. "v2.0".
// translators: placeholder is the date latest rules were updated i.e. "September 23, 2022".
__("Last updated on %s.","jetpack-protect"),b().unix(ce).format("MMMM D, YYYY")))),se&&React.createElement(React.Fragment,null,React.createElement(o.ZP,{className:z.Z["automatic-rules-stats__failed-install"],variant:"body-small",mt:2},__("Failed to update automatic rules.","jetpack-protect")," ",ve(se)),React.createElement(l.Z,{variant:"link",href:_.K},React.createElement(o.ZP,{variant:"body-small"},__("Contact support","jetpack-protect"))))))),!re&&React.createElement("div",{className:z.Z["upgrade-trigger-section"]},React.createElement(s.Z,{className:z.Z["upgrade-trigger"],description:le?__("Your site is not receiving the latest updates to automatic rules","jetpack-protect",0):__("Setup automatic rules with one click","jetpack-protect"),cta:le?__("Upgrade to keep your site secure with up-to-date firewall rules","jetpack-protect",0):__("Upgrade to enable automatic rules","jetpack-protect"),onClick:ke})),React.createElement("div",{className:`${z.Z["toggle-section"]}${B?"":z.Z["toggle-section--disabled"]}`},React.createElement("div",{className:z.Z["toggle-section__control"]},React.createElement(M.Z,{id:"jetpack_waf_ip_list",checked:B&&me.jetpack_waf_ip_list,onChange:Ce,disabled:de||!B})),React.createElement("div",{className:z.Z["toggle-section__content"]},React.createElement(o.ZP,{variant:"title-medium",mb:2},__("Enable manual rules","jetpack-protect")),React.createElement(o.ZP,null,__("Allows you to add manual rules to block or allow traffic from specific IPs.","jetpack-protect")),V&&React.createElement("div",{className:z.Z["toggle-section__details"]},React.createElement("div",{className:z.Z["manual-rules-stats"]},0===te&&0===ne&&React.createElement(o.ZP,{className:z.Z["manual-rules-stats__no-rules"],variant:"body-small",mt:2},__("No manual rules are being applied.","jetpack-protect")),ne>0&&React.createElement(o.ZP,{className:z.Z["manual-rules-stats__block-list-count"],variant:"body-small",mt:2},(0,f.sprintf)(
// translators: placeholder is a number of blocked IP addresses i.e. "5 IPs are being blocked".
_n("%s IP is being blocked. ","%s IPs are being blocked. ",ne,"jetpack-protect"),1===ne?"One":ne)),te>0&&React.createElement(o.ZP,{className:z.Z["manual-rules-stats__allow-list-count"],variant:"body-small",mt:2},(0,f.sprintf)(
// translators: placeholder is a number of allowed IP addresses i.e. "5 IPs are being allowed".
_n("%s IP is being allowed.","%s IPs are being allowed.",te,"jetpack-protect"),1===te?"One":te))),React.createElement(l.Z,{variant:"link",disabled:!B},React.createElement(o.ZP,{variant:"body-small",onClick:we},__("Edit manual rules","jetpack-protect"))))))),je=React.createElement("div",null,React.createElement(l.Z,{className:z.Z["go-back-button"],variant:"icon",icon:k.Z,onClick:we},React.createElement(o.ZP,null,__("Go back","jetpack-protect"))),React.createElement(o.ZP,{variant:"title-medium",mt:4,mb:2},__("Manual rules","jetpack-protect")),React.createElement(o.ZP,{mb:4},__("Add manual rules for what IP traffic the Jetpack Firewall should block or allow.","jetpack-protect")),React.createElement("div",{className:z.Z["manual-rules-section"]},React.createElement(L.Z,{id:"jetpack_waf_ip_block_list",label:__("Blocked IP addresses","jetpack-protect"),placeholder:__("Example:","jetpack-protect")+"\n12.12.12.1\n12.12.12.2",rows:3,value:me.jetpack_waf_ip_block_list,onChange:be,disabled:de})),React.createElement("div",{className:z.Z["manual-rules-section"]},React.createElement(L.Z,{id:"jetpack_waf_ip_allow_list",label:__("Always allowed IP addresses","jetpack-protect"),placeholder:__("Example:","jetpack-protect")+"\n12.12.12.1\n12.12.12.2",rows:3,value:me.jetpack_waf_ip_allow_list,onChange:be,disabled:de})),React.createElement(l.Z,{onClick:ye,isLoading:de,disabled:de},__("Save changes","jetpack-protect")));return$?React.createElement(P.Z,null,t.message&&React.createElement(T.Z,c()({floating:!0,dismissable:!0},t)),React.createElement(I.Z,null),React.createElement(u.Z,{className:z.Z.container,horizontalSpacing:8,horizontalGap:4},!B&&React.createElement(m.Z,null,Re," "),React.createElement(m.Z,null,ge?je:Se)),React.createElement(x.Z,null)):React.createElement(C.Fg,{replace:!0,to:"/"})}},8840:function(e,t,n){"use strict";vara=n(5106),c=n(526),r=n(9818),i=n(5736),o=n(9196),l=n(4633),s=n(9974),u=n(8891),m=n(2854),p=n(5823);const__=i.__;t.Z=e=>{let{threatList:t=[]}=e;const{setModal:n,fixThreats:i}=(0,r.useDispatch)(l.t),{threatsUpdating:d}=(0,r.useSelect)((e=>e(l.t).getThreatsUpdating())),[h,g]=(0,o.useState)(t.map((e=>{let{id:t}=e;returnt}))),f=(0,o.useCallback)(((e,t)=>{g(e?h.push(t.id):h.filter((e=>e!==t.id)))}),[h]);returnReact.createElement(m.Z,null,React.createElement(s.Z,null,React.createElement(a.ZP,{variant:"title-medium",mb:2},__("Fix all threats","jetpack-protect")),React.createElement(a.ZP,{mb:3},__("Jetpack will be fixing the selected threats:","jetpack-protect")),React.createElement("div",{className:p.Z.list},t.map((e=>React.createElement(u.Z,{key:e.id,threat:e,fixAllDialog:!0,onCheckFix:f})))),React.createElement("div",{className:p.Z.footer},React.createElement(c.Z,{variant:"secondary",onClick:e=>{e.preventDefault(),n({type:null})}},__("Cancel","jetpack-protect")),React.createElement(c.Z,{isLoading:Boolean(d)&&d[h[0]],onClick:asynce=>{e.preventDefault(),i(h,(()=>{n({type:null})}))}},__("Fix all threats","jetpack-protect")))))}},1593:function(e,t,n){"use strict";vara=n(5106),c=n(526),r=n(9818),i=n(5736),o=n(4633),l=n(9974),s=n(8891),u=n(2854),m=n(7279);const__=i.__;t.Z=e=>{let{id:t,fixable:n,label:i,icon:p,severity:d}=e;const{setModal:h,fixThreats:g}=(0,r.useDispatch)(o.t),f=(0,r.useSelect)((e=>e(o.t).getThreatsUpdating()));returnReact.createElement(u.Z,null,React.createElement(l.Z,null,React.createElement(a.ZP,{variant:"title-medium",mb:2},__("Fix Threat","jetpack-protect")),React.createElement(a.ZP,{mb:3},__("Jetpack will be fixing the selected threat:","jetpack-protect")),React.createElement("div",{className:m.Z.list},React.createElement(s.Z,{threat:{id:t,fixable:n,label:i,icon:p,severity:d},fixAllDialog:!1})),React.createElement("div",{className:m.Z.footer},React.createElement(c.Z,{variant:"secondary",onClick:e=>{e.preventDefault(),h({type:null})}},__("Cancel","jetpack-protect")),React.createElement(c.Z,{isLoading:Boolean(f&&f[t]),onClick:asynce=>{e.preventDefault(),g([t],(()=>{h({type:null})}))}},__("Fix threat","jetpack-protect")))))}},5678:function(e,t,n){"use strict";vara=n(9196),c=n(1234);t.Z=e=>{let{a
__("Show %s more","jetpack-protect"),f):(0,c.sprintf)(/* translators: %s: Number of hide items */
__("Latest results as of %s","jetpack-protect"),(0,s.dateI18n)("F jS",t))),e>0&&p().createElement(i.ZP,{variant:"headline-small",component:"h1"},(0,u.sprintf)(/* translators: %s: Total number of threats */
__("%1$s %2$s found","jetpack-protect"),e,1===e?"threat":"threats"))),p().createElement("div",{className:f.Z.summary__notice},m&&m.message&&p().createElement(g.Z,m)),n&&0===e&&p().createElement(o.Z,{variant:"secondary",className:f.Z["summary__scan-button"],isLoading:v,onClick:e=>{e.preventDefault(),E()}},__("Scan now","jetpack-protect")))))}},3324:function(e,t,n){"use strict";n.d(t,{O:function(){returnr}});vara=n(554),c=n(5714);constr=e=>{let{label:t,link:n}=e;returnReact.createElement(a.OL,{to:n,className:e=>{let{isActive:t}=e;returnt?`${c.Z.tab}${c.Z["tab--active"]}`:c.Z.tab}},t)};t.Z=e=>{let{children:t,className:n=""}=e;returnReact.createElement("nav",{className:`${c.Z.tabs}${n}`},t)}},9265:function(e,t,n){"use strict";vara=n(8063);t.Z=e=>{let{disabled:t=!1,id:n,label:c="",placeholder:r="",rows:i=3,value:o="",onChange:l=(()=>{})}=e;returnReact.createElement("div",null,Boolean(c)&&React.createElement("label",{className:a.Z.label,htmlFor:n},c),React.createElement("textarea",{className:a.Z.textarea,disabled:t,placeholder:r,rows:i,id:n,name:n,onChange:l,value:o||""}))}},8891:function(e,t,n){"use strict";n.d(t,{Z:function(){returnm}});vara=n(5106),c=n(5736),r=n(1074),i=n(9196),o=n.n(i),l=n(2251),s=n(9971);const__=c.__,u=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,c.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,c.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")}};functionm(e){let{threat:t,fixAllDialog:n,onCheckFix:c}=e;const[m,p]=(0,i.useState)(!0),d=(0,i.useCallback)((e=>{p(e.target.checked),c(e.target.checked,t)}),[c,t]);returno().createElement(o().Fragment,null,o().createElement("div",{className:s.Z.threat},o().createElement(r.Z,{icon:t.icon,className:s.Z.threat__icon}),o().createElement("div",{className:s.Z.threat__summary},o().createElement(a.ZP,{className:s.Z.threat__summary__label,mb:1},t.label),o().createElement(a.ZP,{className:s.Z.threat__summary__title},u(t.fixable))),o().createElement("div",{className:s.Z.threat__severity},o().createElement(l.Z,{severity:t.severity})),n&&o().createElement("div",{className:s.Z.threat__checkbox},o().createElement("input",{type:"checkbox",checked:m,onChange:d,value:t.id}))))}},5658:function(e,t,n){"use strict";vara=n(5106),c=n(9307),r=n(5736),i=n(9196),o=n(5773),l=n(9709);const__=r.__,_n=r._n,s=()=>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"}));t.Z=()=>{const{lastChecked:e}=(0,o.Z)(),t=(0,i.useMemo)((()=>e?(e=>{constt=newDate,n=6e4*t.getTimezoneOffset(),a=Math.floor((newDate(t.getTime()+n).getTime()-e)/1e3);letc=a/31536e3;returnc>1?(0,r.sprintf)(
_n("%s minute ago","%s minutes ago",Math.floor(c),"jetpack-protect"),Math.floor(c)):__("a few seconds ago","jetpack-protect")))))})(Date.parse(e)):null),[e]);returnReact.createElement("div",{className:l.Z.empty},React.createElement(s,null),React.createElement(a.H3,{weight:"bold",mt:8},__("Don't worry about a thing","jetpack-protect")),React.createElement(a.ZP,null,(0,c.createInterpolateElement)((0,r.sprintf)(
__("The last Protect scan ran <strong>%s</strong> and everything looked great.","jetpack-protect"),t),{strong:React.createElement("strong",null)})))}},2831:function(e,t,n){"use strict";vara=n(526),c=n(5106),r=n(857),i=n(8258),o=n(5736),l=n(9196),s=n.n(l),u=n(3898),m=n(6477),p=n(3584),d=n(9709);const__=o.__,h=e=>{let{description:t,filename:n,fixedIn:h,icon:g,id:f,name:v,source:E,table:k,title:y,type:b,version:Z}=e;const{adminUrl:C}=window.jetpackProtectInitialState||{},{run:w}=(0,i.Z)({productSlug:u.o,redirectUrl:C}),{recordEventHandler:_}=(0,m.Z)(),R=_("jetpack_protect_threat_list_get_scan_link_click",w),S=E?s().createElement(a.Z,{variant:"link",isExternalLink:!0,weight:"regular",href:E},__("See more technical details of this threat","jetpack-protect")):null,j=(0,l.useCallback)((()=>v&&Z?`${v} (${Z})`:n?n.split("/").pop():k||void0),[n,v,k,Z]);returns().createElement(p.U,{id:f,label:j(),title:y,icon:g,onOpen:(0,l.useCallback)((()=>{["core","plugin","theme"].includes(b)&&_(`jetpack_protect_${b}_threat_open`)}),[_,b])},t&&s().createElement("div",{className:d.Z["threat-section"]},s().createElement(c.ZP,{variant:"title-small",mb:2},__("What is the problem?","jetpack-protect")),s().createElement(c.ZP,{mb:2},t),S),h&&s().createElement("div",{className:d.Z["threat-section"]},s().createElement(c.ZP,{variant:"title-small",mb:2},__("How to fix it?","jetpack-protect")),s().createElement(c.ZP,{mb:2},/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
(0,o.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),v,h)),s().createElement(r.Z,{description:__("Looking for advanced scan results and one-click fixes?","jetpack-protect"),cta:__("Upgrade Jetpack Protect now","jetpack-protect"),onClick:R,className:d.Z["threat-item-cta"]})),!t&&s().createElement("div",{className:d.Z["threat-section"]},S))};t.Z=e=>{let{list:t}=e;returns().createElement(p.Z,null,t.map((e=>{let{description:t,fixedIn:n,icon:a,id:c,name:r,source:i,table:o,title:l,type:u,version:m}=e;returns().createElement(h,{description:t,fixedIn:n,icon:a,id:c,key:c,name:r,source:i,table:o,title:l,type:u,version:m})})))}},5207:function(e,t,n){"use strict";vara=n(3363),c=n(3846),r=n(5106),i=n(526),o=n(9818),l=n(5736),s=n(9196),u=n.n(s),m=n(5773),p=n(4633),d=n(5658),h=n(2831),g=n(4289),f=n(1400),v=n(9709),E=n(7930);const__=l.__;t.Z=()=>{const{hasRequiredPlan:e}=(0,m.Z)(),{item:t,list:n,selected:k,setSelected:y}=(0,E.Z)(),b=n.filter((e=>e.fixable)),{setModal:Z}=(0,o.useDispatch)(p.t),{scan:C}=(0,o.useDispatch)(p.t),w=(0,o.useSelect)((e=>e(p.t).getScanIsEnqueuing())),_=(0,s.useCallback)((()=>{switch(k){case"all":return1===n.length?__("All threats","jetpack-protect"):(0,l.sprintf)(/* translators: placeholder is the amount of threats found on the site. */
__("All %s threats","jetpack-protect"),n.length);case"files":return(0,l.sprintf)(/* translators: placeholder is the amount of file threats found on the site. */
__("%1$s file %2$s","jetpack-protect"),n.length,1===n.length?"threat":"threats");case"database":return(0,l.sprintf)(/* translators: placeholder is the amount of database threats found on the site. */
__("%1$s database %2$s","jetpack-protect"),n.length,1===n.length?"threat":"threats");default:return(0,l.sprintf)(/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
__("%1$s %2$s in your %3$s %4$s","jetpack-protect"),n.length,1===n.length?"threat":"threats",t?.name,t?.version)}}),[k,n,t]);returnu().createElement(a.Z,{fluid:!0,horizontalSpacing:0,horizontalGap:3},u().createElement(c.Z,{lg:4},u().createElement(g.Z,{selected:k,onSelect:y})),u().createElement(c.Z,{lg:8},n?.length>0?u().createElement(u().Fragment,null,u().createElement("div",{className:v.Z["list-header"]},u().createElement(r.Dx,{className:v.Z["list-title"]},_()),e&&u().createElement(u().Fragment,null,b.length>0&&u().createElement(i.Z,{variant:"primary",className:v.Z["list-header-button"],onClick:(R=b,e=>{e.preventDefault(),Z({type:"FIX_ALL_THREATS",props:{threatList:R}})})},/* translators: Translates to Auto fix all. $s: Number of fixable threats. */
(0,l.sprintf)(__("Auto fix all (%s)","jetpack-protect"),b.length)),u().createElement(i.Z,{variant:"secondary",className:v.Z["list-header-button"],isLoading:w,onClick:e=>{e.preventDefault(),C()}},__("Scan now","jetpack-protect")))),e?u().createElement(f.Z,{list:n}):u().createElement(h.Z,{list:n})):u().createElement(d.Z,null)));varR}},4289:function(e,t,n){"use strict";vara=n(2054),c=n(5736),r=n(797),i=n(2817),o=n(7663),l=n(8960),s=n(4160),u=n(6376),m=n(9196),p=n(6477),d=n(5773),h=n(5338);const__=c.__;t.Z=e=>{let{selected:t,onSelect:n}=e;const{plugins:c,themes:g,numThreats:f,numCoreThreats:v,numFilesThreats:E,numDatabaseThreats:k,hasRequiredPlan:y}=(0,d.Z)(),{recordEvent:b}=(0,p.Z)(),[Z]=(0,a.Z)("lg","<"),C=(0,m.useCallback)((()=>{b("jetpack_protect_navigation_all_click")}),[b]),w=(0,m.useCallback)((()=>{b("jetpack_protect_navigation_core_click")}),[b]),_=(0,m.useCallback)((()=>{b("jetpack_protect_navigation_plugin_click")}),[b]),R=(0,m.useCallback)((()=>{b("jetpack_protect_navigation_theme_click")}),[b]),S=(0,m.useCallback)((()=>{b("jetpack_protect_navigation_file_click")}),[b]),j=(0,m.useCallback)((()=>{b("jetpack_protect_navigation_database_click")}),[b]);returnReact.createElement(h.ZP,{selected:t,onSelect:n,mode:Z?"dropdown":"list"},React.createElement(h.Dx,{initial:!0,id:"all",label:__("All threats","jetpack-protect"),icon:r.Z,badge:f,disabled:f<=0,onClick:C,checked:!0}),React.createElement(h.Dx,{id:"wordpress",label:__("WordPress","jetpack-protect"),icon:i.Z,badge:v,disabled:v<=0,onClick:w,checked:!0}),React.createElement(h.KB,{label:__("Plugins","jetpack-protect"),icon:o.Z},c.map((e=>{let{name:t,threats:n,checked:a}=e;returnReact.createElement(h.Dx,{key:t,id:t,label:t,checked:a,badge:n?.length,disabled:n?.length<=0,onClick:_})}))),React.createElement(h.KB,{label:__("Themes","jetpack-protect"),icon:l.Z},g.map((e=>{let{name:t,threats:n,checked:a}=e;returnReact.createElement(h.Dx,{key:t,id:t,label:t,checked:a,badge:n?.length,disabled:n?.length<=0,onClick:R})}))),y&&React.createElement(React.Fragment,null,React.createElement(h.Dx,{id:"files",label:__("Files","jetpack-protect"),icon:s.Z,badge:E,disabled:E<=0,onClick:S,checked:!0}),React.createElement(h.Dx,{id:"database",label:__("Database","jetpack-protect"),icon:u.Z,badge:k,disabled:k<=0,onClick:j,checked:!0})))}},1400:function(e,t,n){"use strict";vara=n(526),c=n(5106),r=n(2054),i=n(9818),o=n(9307),l=n(5736),s=n(9196),u=n.n(s),m=n(6477),p=n(4633),d=n(7127),h=n(4257),g=n(289),f=n(9709);const__=l.__,v=e=>{let{context:t,description:n,diff:r,filename:o,fixedIn:v,icon:E,fixable:k,id:y,label:b,name:Z,source:C,title:w,type:_,severity:R}=e;const{setModal:S}=(0,i.useDispatch)(p.t),{recordEvent:j}=(0,m.Z)(),N=C?u().createElement(a.Z,{variant:"link",isExternalLink:!0,weight:"regular",href:C},__("See more technical details of this threat","jetpack-protect")):null;returnu().createElement(g.c,{id:y,label:b,title:w,icon:E,fixable:k,severity:R,onOpen:(0,s.useCallback)((()=>{["core","plugin","theme","file","database"].includes(_)&&j(`jetpack_protect_${_}_threat_open`)}),[j,_])},n&&u().createElement("div",{className:f.Z["threat-section"]},u().createElement(c.ZP,{variant:"title-small",mb:2},__("What is the problem?","jetpack-protect")),u().createElement(c.ZP,{mb:2},n),N),(o||t||r)&&u().createElement(c.ZP,{variant:"title-small",mb:2},__("The technical details","jetpack-protect")),o&&u().createElement(u().Fragment,null,u().createElement(c.ZP,{mb:2},/* translators: filename follows in separate line; e.g. "PHP.Injection.5 in: `post.php`" */
__("Threat found in file:","jetpack-protect")),u().createElement("pre",{className:f.Z["threat-filename"]},o)),t&&u().createElement(h.Z,{context:t}),r&&u().createElement(d.C,{diff:r}),v&&u().createElement("div",{className:f.Z["threat-section"]},u().createElement(c.ZP,{variant:"title-small",mb:2},__("How to fix it?","jetpack-protect")),u().createElement(c.ZP,{mb:2},/* translators: Translates to Update to. %1$s: Name. %2$s: Fixed version */
(0,l.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),Z,v))),!n&&u().createElement("div",{className:f.Z["threat-section"]},N),u().createElement("div",{className:f.Z["threat-footer"]},u().createElement(a.Z,{isDestructive:!0,variant:"secondary",onClick:e=>{e.preventDefault(),S({type:"IGNORE_THREAT",props:{id:y,label:b,title:w,icon:E,severity:R}})}},__("Ignore threat","jetpack-protect")),k&&u().createElement(a.Z,{onClick:e=>{e.preventDefault(),S({type:"FIX_THREAT",props:{id:y,label:b,title:w,icon:E,severity:R,fixable:k}})}},__("Fix threat","jetpack-protect"))))};t.Z=e=>{let{list:t}=e;const{scan:n}=(0,i.useDispatch)(p.t),l=(0,o.createInterpolateElement)(__("If you have manually fixed any of the threats listed above, <manualScanLink>you can run a manual scan now</manualScanLink> or wait for Jetpack to scan your site later today.","jetpack-protect"),{manualScanLink:u().createElement(a.Z,{variant:"link",onClick:e=>{e.preventDefault(),n()}})}),[s]=(0,r.Z)(["sm","lg"],[null,"<"]),m=e=>e.name&&e.version?`${e.name} (${e.version})`:e.filename?e.filename.split("/").pop():e.table?e.table:void0;returnt=t.map((e=>({label:m(e),...e}))),u().createElement(u().Fragment,null,!s&&u().createElement("div",{className:f.Z["accordion-heading"]},u().createElement("span",null,__("Details","jetpack-protect")),u().createElement("span",null,__("Severity","jetpack-protect")),u().createElement("span",null,__("Auto-fix","jetpack-protect")),u().createElement("span",null)),u().createElement(g.Z,null,t.map((e=>{let{context:t,description:n,diff:a,filename:c,fixedIn:r,icon:i,fixable:o,id:l,label:s,name:m,severity:p,source:d,table:h,title:g,type:f,version:E}=e;returnu().createElement(v,{context:t,description:n,diff:a,filename:c,fixedIn:r,icon:i,fixable:o,id:l,key:l,label:s,name:m,severity:p,source:d,table:h,title:g,type:f,version:E})}))),u().createElement(c.ZP,{className:f.Z["manual-scan"],variant:"body-small"},l))}},7930:function(e,t,n){"use strict";vara=n(2817),c=n(7663),r=n(8960),i=n(4160),o=n(6376),l=n(9196),s=n(5773);constu=(e,t)=>Array.isArray(e)?e.map((e=>u(e,t))).flat():e?.threats?.map((n=>({...n,...e,icon:t}))),m=e=>{let{core:t,plugins:n,themes:l,files:s,database:m}=e;return[...u(t,a.Z),...u(n,c.Z),...u(l,r.Z),...u(s,i.Z),...u(m,o.Z)]};t.Z=()=>{const{plugins:e,themes:t,core:n,files:p,database:d}=(0,s.Z)();leth=m({core:n,plugins:e,themes:t,files:p,database:d}),g={};const[f,v]=(0,l.useState)(h.length?"all":null);switch(f){case"all":h=m({core:n,plugins:e,themes:t,files:p,database:d});break;case"wordpress":h=u(n,a.Z),g=n;break;case"files":h=u(p,i.Z),g=p;break;case"database":h=u(d,o.Z),g=d}constE=e.find((e=>e?.name===f));E&&(h=u(E,c.Z),g=E);constk=t.find((e=>e?.name===f));returnk&&(h=u(k,r.Z),g=k),{item:g,list:h,selected:f,setSelected:v}}},2854:function(e,t,n){"use strict";vara=n(1294),c=n(8227);t.Z=e=>{let{children:t}=e;const{isUserConnected:n,hasConnectedOwner:r}=(0,a.Z)();returnn&&r?t:React.createElement(c.Z,null)}},8227:function(e,t,n){"use strict";vara=n(5106),c=n(526),r=n(1294),i=n(9818),o=n(5736),l=n(4633),s=n(291),u=n(541);const__=o.__;t.Z=()=>{const{setModal:e}=(0,i.useDispatch)(l.t),{userIsConnecting:t,handleConnectUser:n}=(0,r.Z)({redirectUri:"admin.php?page=jetpack-protect"});returnReact.createElement(React.Fragment,null,React.createElement(a.ZP,{variant:"title-medium",mb:2},__("User connection needed","jetpack-protect")),React.createElement(s.Z,{type:"info",message:__("Before Jetpack Protect can ignore and auto-fix threats on your site, a user connection is needed.","jetpack-protect")}),React.createElement(a.ZP,{mb:3},__("A user connection provides Jetpack Protect the access necessary to perform these tasks.","jetpack-protect")),React.createElement(a.ZP,{mb:3},__("Once you’ve secured a user connection, all Jetpack Protect features will be available for use.","jetpack-protect")),React.createElement("div",{className:u.Z.footer},React.createElement(c.Z,{variant:"secondary",onClick:t=>{t.preventDefault(),e({type:null})}},__("Not now","jetpack-protect")),React.createElement(c.Z,{isExternalLink:!0,weight:"regular",isLoading:t,onC
_n("%s threat was fixed successfully","%s threats were fixed successfully",e.length,"jetpack-protect"),e.length)}))})).catch((()=>{n(J({type:"error",message:__("Not all threats could be fixed. Please contact our support.","jetpack-protect")}))})).finally((()=>{n(B([]))}))},J=e=>({type:C,payload:e}),G=e=>({type:_,hasRequiredPlan:e}),$={checkCredentials:()=>asynce=>{let{dispatch:t}=e;returnawaitnewPromise(((e,n)=>(t(F(!0)),c()({path:"jetpack-protect/v1/check-credentials",method:"POST"}).then((n=>{t(O(n)),e(n)})).catch((e=>{n(e)})).finally((()=>{t(F(!1))})))))},setCredentials:O,setCredentialsIsFetching:F,setStatus:M,setStatusProgress:e=>({type:m,currentProgress:e}),startScanOptimistically:T,refreshStatus:z,setStatusIsFetching:V,setScanIsEnqueuing:H,setInstalledPlugins:e=>({type:f,plugins:e}),setInstalledThemes:e=>({type:v,themes:e}),setwpVersion:e=>({type:E,version:e}),setJetpackScan:e=>({type:k,scan:e}),ignoreThreat:function(e){lett=arguments.length>1&&void0!==arguments[1]?arguments[1]:()=>{};returnasyncn=>{let{dispatch:a}=n;returna(U(e,!0)),awaitnewPromise((()=>c()({path:`jetpack-protect/v1/ignore-threat?threat_id=${e}`,method:"POST"}).then((()=>a(z()))).then((()=>a(J({type:"success",message:__("Threat ignored","jetpack-protect")})))).catch((()=>a(J({type:"error",message:__("An error ocurred ignoring the threat.","jetpack-protect")})))).finally((()=>{a(U(e,!1)),t()}))))}},setModal:e=>({type:Z,payload:e}),setNotice:J,clearNotice:()=>({type:w}),fixThreats:function(e){lett=arguments.length>1&&void0!==arguments[1]?arguments[1]:()=>{};returnasyncn=>{let{dispatch:a}=n;returne.forEach((e=>{a(U(e,!0))})),awaitnewPromise((()=>c()({path:`jetpack-protect/v1/fix-threats?threat_ids=${e}`,method:"POST",data:{threatIds:e}}).then((()=>a(J({type:"success",message:__("We're hard at work fixing this threat in the background. Please check back shortly.","jetpack-protect")})))).then((()=>{setTimeout((()=>a(W(e))),1e3)})).catch((()=>a(J({type:"error",message:__("Error fixing threats. Please contact support.","jetpack-protect")})))).finally((()=>{e.forEach((e=>{a(U(e,!1))})),t()}))))}},scan:function(){lete=arguments.length>0&&void0!==arguments[0]?arguments[0]:()=>{};returnasynct=>{let{dispatch:n}=t;returnn(H(!0)),awaitnewPromise((()=>c()({path:"jetpack-protect/v1/scan",method:"POST"}).then((()=>{n(T()),setTimeout((()=>n(z(!0))),5e3)})).catch((()=>n(J({type:"error",message:__("An error ocurred enqueuing the scan","jetpack-protect")})))).finally((()=>{n(H(!1)),e()}))))}},setThreatsAreFixing:B,refreshPlan:()=>e=>{let{dispatch:t}=e;c()({path:"jetpack-protect/v1/check-plan",method:"GET"}).then((e=>t(G(e))))},setHasRequiredPlan:G,setScanIsUnavailable:D,setWafIsEnabled:e=>({type:j,isEnabled:e}),setWafIsSeen:e=>({type:R,isSeen:e}),setWafUpgradeIsSeen:e=>({type:S,upgradeIsSeen:e}),setWafIsUpdating:e=>({type:N,isUpdating:e}),setWafIsToggling:e=>({type:P,isToggling:e}),setWafConfig:e=>({type:x,config:e}),setWafStats:e=>({type:I,stats:e})}},3638:function(e,t,n){"use strict";vara=n(9818),c=n(5230);constr={isSupported:null,isSeen:!1,upgradeIsSeen:!1,isEnabled:!1,isUpdating:!1,isToggling:!1,config:void0,stats:void0},i=(0,a.combineReducers)({credentials:function(){lete=arguments.length>0&&void0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void0;returnt.type===c.jA?t.credentials:e},credentialsIsFetching:function(){lete=arguments.length>0&&void0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void0;returnt.type===c._N?t.isFetching:e},status:function(){lete=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void0;switch(t.type){casec.d0:returnt.status;casec.o9:return{...e,currentProgress:t.currentProgress};casec.Y2:return{...e,currentProgress:0,status:"optimistically_scanning"}}returne},statusIsFetching:function(){lete=arguments.length>0&&void0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void0;returnt.type===c.Gk?t.status:e},scanIsUnavailable:function(){lete=arguments.length>0&&void0!==arguments[0]&&arguments[0],t=arg