laipower/wp-content/plugins/jetpack-protect/build/index.js

69 lines
310 KiB
JavaScript
Raw Normal View History

/*! For license information please see index.js.LICENSE.txt */
(()=>{var e={9826:(e,t,a)=>{"use strict";a.d(t,{i:()=>n});const c={AED:{symbol:"د.إ.",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},
__("%1$d of %2$d","jetpack-protect"),p,d)),React.createElement(c.Popover,k,React.createElement(o.Ay,null,React.createElement("div",{className:m.A.wrapper},React.createElement("div",{className:m.A.header},React.createElement(i.Ay,{variant:"title-small",className:m.A.title},t),!e&&React.createElement(React.Fragment,null,React.createElement(l.A,{size:"small",variant:"tertiary","aria-label":"close",className:m.A["close-button"],icon:r.A,iconSize:16,onClick:E}))),a,React.createElement("div",{className:m.A.footer},b&&React.createElement(i.Ay,{variant:"body",className:m.A.steps},_),React.createElement(l.A,{variant:"primary",className:m.A["action-button"],disabled:h,onClick:A,isExternalLink:v,href:g},u)))))}},2947:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var c=a(7723),n=a(3022),r=a(8250),l=a(7142),s=a(8509),i=a(5918),o=a(2021);const __=c.__,m=({children:e,moduleName:t=__("Jetpack","jetpack-protect"),moduleNameHref:a,showHeader:c=!0,showFooter:m=!0,showBackground:p=!0,header:d})=>{const u=(0,n.A)(o.A["admin-page"],{[o.A.background]:p});return React.createElement("div",{className:u},c&&React.createElement(i.A,{horizontalSpacing:5},React.createElement(s.A,null,d||React.createElement(l.A,null))),React.createElement(i.A,{fluid:!0,horizontalSpacing:0},React.createElement(s.A,null,e)),m&&React.createElement(i.A,{horizontalSpacing:5},React.createElement(s.A,null,React.createElement(r.A,{moduleName:t,moduleNameHref:a}))))}},766:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var c=a(1609),n=a.n(c),r=a(6888);const l=({children:e})=>n().createElement("div",{className:r.A["section-hero"]},e)},8907:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var c=a(6072),n=a.n(c),r=a(7723),l=a(3022),s=a(1609),i=a.n(s);const __=r.__,o=({title:e=__("An Automattic Airline","jetpack-protect"),height:t=7,className:a,...c})=>i().createElement("svg",n()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:t,className:(0,l.A)("jp-automattic-byline-logo",a)},c),i().createElement("desc",{id:"jp-automattic-byline-logo-title"},e),i().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),i().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),i().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 3
__("(opens in a new tab)","jetpack-protect"))),C=E?"_blank":void 0,j=a?.[0]&&null!==a[0]&&"components-tooltip"!==a?.[0]?.props?.className;return p().createElement(r.Button,n()({target:C,variant:c,className:(0,o.A)(b,{"has-text":!!u&&j}),icon:E?void 0:u,iconSize:h,disabled:g,"aria-disabled":g,isDestructive:v,text:y},k),f&&p().createElement(r.Spinner,null),p().createElement("span",null,a),R)}));u.displayName="Button";const h=u},4437:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var c=a(1113),n=a(1797),r=a(3022),l=a(597),s=a(7425),i=a(2127);const o=({description:e,cta:t,onClick:a,href:o,openInNewTab:m=!1,className:p,tooltipText:d=""})=>{const u=void 0!==o?"a":"button",h="a"===u?{href:o,...m&&{target:"_blank"}}:{onClick:a};return React.createElement("div",{className:(0,r.A)(i.A.cut,p)},React.createElement("div",null,React.createElement("div",null,React.createElement(s.Ay,{className:i.A.description},e),d&&React.createElement(l.A,{className:i.A.iconContainer,iconSize:16,offset:4},React.createElement(s.Ay,{variant:"body-small"},d))),React.createElement("div",null,React.createElement(u,h,React.createElement(s.Ay,{className:i.A.cta},t)))),React.createElement(c.A,{icon:n.A,className:i.A.icon,size:30}))}},1883:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var c=a(7723),n=a(3022),r=a(1609);a(3689);const __=c.__;class l extends r.Component{static defaultProps={"aria-hidden":"false",focusable:"true"};needsOffset(e,t){return["gridicons-arrow-left","gridicons-arrow-right","gridicons-calendar","gridicons-cart","gridicons-folder","gridicons-info","gridicons-info-outline","gridicons-posts","gridicons-star-outline","gridicons-star"].indexOf(e)>=0&&t%18==0}getSVGDescription(e){if("description"in this.props)return this.props.description;switch(e){default:return"";case"gridicons-audio":return __("Has audio.","jetpack-protect");case"gridicons-arrow-left":return __("Arrow left","jetpack-protect");case"gridicons-arrow-right":return __("Arrow right","jetpack-protect");case"gridicons-calendar":return __("Is an event.","jetpack-protect");case"gridicons-cart":return __("Is a product.","jetpack-protect");case"chevron-down":return __("Show filters","jetpack-protect");case"gridicons-comment":return __("Matching comment.","jetpack-protect");case"gridicons-cross":return __("Close.","jetpack-protect");case"gridicons-filter":return __("Toggle search filters.","jetpack-protect");case"gridicons-folder":return __("Category","jetpack-protect");case"gridicons-info":case"gridicons-info-outline":return __("Information.","jetpack-protect");case"gridicons-image-multiple":return __("Has multiple images.","jetpack-protect");case"gridicons-image":return __("Has an image.","jetpack-protect");case"gridicons-page":return __("Page","jetpack-protect");case"gridicons-post":return __("Post","jetpack-protect");case"gridicons-jetpack-search":case"gridicons-search":return __("Magnifying Glass","jetpack-protect");case"gridicons-tag":return __("Tag","jetpack-protect");case"gridicons-video":return __("Has a video.","jetpack-protect")}}renderIcon(e){switch(e){default:return null;case"gridicons-audio":return React.createElement("g",null,React.createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"}));case"gridicons-arrow-left":return React.createElement("g",null,React.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}));case"gridicons-arrow-right":return React.createElement("g",null,React.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"}));case"gridicons-block":return React.createElement("g",null,React.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"}));case"gridicons-calendar":return React.createElement("g",null,React.createElement("path",{d:"M19 4h
__("(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=>{const t=e(u.a);return{connectedPlugins:t?.getConnectedPlugins(),...t.getConnectionStatus()}}),[u.a]),_=(0,h.A)(),R=_&&k&&b?.some((({slug:e})=>"jetpack"===e));let C=[{label:_x("About","Link to learn more about Jetpack.","jetpack-protect"),title:__("About Jetpack","jetpack-protect"),href:R?new URL("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?new URL("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]);const j=p().createElement(p().Fragment,null,p().createElement(E,null),e);return p().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=>{const t="button"===e.role,a=!t&&"_blank"===e.target;return p().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":void 0,tabIndex:t?0:void 0},e.label,a&&p().createElement(A,null)))})),p().createElement("li",{className:"jp-dashboard-footer__a8c-item"},p().createElement("a",{href:R?new URL("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});var c=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})=>{const s=t?"0 0 118 32":"0 0 32 32";return i().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
// translators: Name of the current feature
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;return o().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})=>{let a=0;return o().createElement("div",{className:(0,s.A)(h.A.card,{[h.A["is-primary"]]:e})},i.Children.map(t,(e=>{const t=e;return t.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");return o().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});var c=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)return null;c=c&&null!=t;const h="number"==typeof e&&"number"==typeof t?Math.floor((e-t)/e*100):0,g=!i&&h&&h>0?h+__("% off","jetpack-protect"):null;return React.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});var c=a(7397),n=a(3022),r=a(7425),l=a(3407);const s=({value:e,currency:t,isOff:a,hidePriceFraction:s})=>{const i=(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");return React.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});var c=a(8120),n=a.n(c),r=a(1609),l=a.n(r);a(8325);const s=({color:e="#FFFFFF",className:t="",size:a=20})=>{const c=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 sites 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 sites 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 sites 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});const c={"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});var c=a(6072),n=a.n(c),r=a(3022),l=a(1609),s=a.n(l),i=a(110),o=a(4495);const m=(0,l.forwardRef)((({variant:e="body",children:t,component:a,className:c,...m},p)=>{const d=a||i.Q[e]||"span",u=(0,l.useMemo)((()=>i.Z.reduce(((e,t)=>(void 0!==m[t]&&(e+=o.A[`${t}-${m[t]}`]+" ",delete m[t]),e)),"")),[m]);return m.ref=p,s().createElement(d,n()({className:(0,r.A)(o.A.reset,o.A[e],c,u)},m),t)}));m.displayName="Text";const p=m,d=({children:e,weight:t="bold",...a})=>{const c="headline-small"+("bold"===t?"":`-${t}`);return s().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});var c=a(1609),n=a.n(c),r=a(9422);const l={"--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)=>{const c={...l,...s,...i,...o};for(const t in c)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})=>{const l=(0,c.useRef)(),s=m?.[a]?.provided;return(0,c.useLayoutEffect)((()=>{if(!s)return t?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 */
__("Hide %s items","jetpack-protect"),g)))))}},59:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>f,Me:()=>p.A,s$:()=>d.A});var c=a(7425),n=a(6427),r=a(7723),l=a(1113),s=a(8248),i=a(7350),o=a(1609),m=a.n(o),p=a(5498),d=a(7366),u=a(3066),h=a(43);const __=r.__,g=({children:e})=>m().createElement("ul",{className:u.A.navigation,role:"menu"},e),v=({children:e,data:t})=>{const a=(0,o.useRef)(void 0),[r,p]=(0,o.useState)(!1),d=t?.items?.find((e=>e?.id===t?.selectedItem))??{label:__("See all results","jetpack-protect")},{label:h,icon:g}=d,v=(0,o.useCallback)((()=>{p((e=>!e))}),[]);return m().createElement("button",{className:u.A["navigation-dropdown-button"],onClick:v,ref:a},m().createElement("div",{className:u.A["navigation-dropdown-label"]},g&&m().createElement(l.A,{icon:g,className:u.A["navigation-dropdown-icon"]}),m().createElement(c.Ay,null,h)),m().createElement(l.A,{icon:r?s.A:i.A,size:32}),m().createElement(n.Popover,{position:"bottom center",anchorRef:a?.current,inline:!0},m().createElement("div",{style:{display:r?"block":"none",width:a?.current?.getBoundingClientRect?.()?.width}},e)))},f=({children:e,selected:t,onSelect:a,mode:c="list"})=>{const n=(0,h.A)({selected:t,onSelect:a}),r=(e=>{switch(e){case"list":default:return g;case"dropdown":return v}})(c);return m().createElement(h._.Provider,{value:{...n,mode:c}},m().createElement(r,{data:n},e))}},7366:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var c=a(3022),n=a(1609),r=a.n(n),l=a(9278),s=a(1549),i=a(3066),o=a(43);const m=({id:e,label:t,icon:a,badge:m,disabled:p,onClick:d,onKeyDown:u,onFocus:h,checked:g})=>{const v=(0,n.useContext)(o._),f=v?.selectedItem===e,E=v?.registerItem,A=v?.registerRef,y=v?.handleClickItem,w=v?.handleKeyDownItem,k=v?.handleFocusItem,b=(0,c.A)(i.A["navigation-item"],{[i.A.clickable]:!p,[i.A.selected]:f}),_=(0,n.useCallback)((t=>{d?.(t),y?.(e)}),[y,e,d]),R=(0,n.useCallback)((e=>{u?.(e),w?.(e)}),[w,u]),C=(0,n.useCallback)((t=>{A(t,e)}),[A,e]),j=(0,n.useCallback)((t=>{h?.(t),k?.(e)}),[k,e,h]);return(0,n.useEffect)((()=>{E({id:e,disabled:p,label:t,icon:a})}),[]),r().createElement("li",{className:b,onClick:p?null:_,onKeyDown:R,onFocus:p?null:j,role:"menuitem",tabIndex:p?-1:0,ref:C},r().createElement(s.A,{icon:a},t),r().createElement(l.A,{count:m,checked:g}))}},1549:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var c=a(7425),n=a(1113),r=a(3022),l=a(8120),s=a.n(l),i=a(1609),o=a.n(i),m=a(3066);const p=({icon:e,children:t,className:a})=>o().createElement(c.Ay,{className:(0,r.A)(m.A["navigation-item-label"],a)},e&&o().createElement(n.A,{icon:e,className:m.A["navigation-item-icon"],size:28}),o().createElement("span",{className:m.A["navigation-item-label-content"]},t));p.propTypes={icon:s().node,children:s().node.isRequired};const d=p},43:(e,t,a)=>{"use strict";a.d(t,{A:()=>r,_:()=>n});var c=a(1609);const n=a.n(c)().createContext(),r=({selected:e,onSelect:t})=>{const[a,n]=(0,c.useState)([]),[r,l]=(0,c.useState)([]),[s,i]=(0,c.useState)(),o=(e,t)=>{const c=e-1,n=c<0?t:c,r=a[n];return r?.disabled?o(n,t):r},m=(e,t)=>{const c=e+1,n=c>t?0:c,r=a[n];return r?.disabled?m(n,t):r};return{selectedItem:e,handleClickItem:e=>{t(e)},handleKeyDownItem:c=>{const n=c?.code,l=a.findIndex((t=>t?.id===e)),i=a.length-1;let p;if("ArrowUp"===n){const e=o(l,i);p=e?.id}else if("ArrowDown"===n){const e=m(l,i);p=e?.id}else"Enter"!==n&&"Space"!==n||!s||(p=s);if(p){const e=r[p];e?.focus(),t(p)}},handleFocusItem:e=>{i(e)},registerRef:(e,t)=>{l((a=>!a[t]&&e?{...a,[t]:e}:a))},registerItem:e=>{n((t=>{const a=[...t],c=e?.id,n=a.findIndex((e=>e?.id===c));return n>=0?a[n]=e:a.push(e),a}))},items:a}}},3041:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var c=a(7143),n=a(7723),r=a(3883),l=a(311),s=a(9783),i=a(1113),o=a(991),m=a(1609),p=a(7478),d=a(600);const __=n.__,u=({dismissable:e=!1,duration:t=null,floating:a=!1,message:n,type:u="success"})=>{const{clearNotice:h}=(0,c.useDispatch)(p.a);let g;switch(u){case"success":g=r.A;break;case"error":g=l.A;break;default:g=s.A}const v=(0,m.useCallback)((()=>{h()}),[h]);return(0,m.useEffect)((()=>{let e;return t&&(e=setTimeout(h,t)),()=>clearTimeout(e)}),[h,t,n]),React.createElement(
__("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})=>{const S=(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,"<"]);return g().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)();return g().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});var c=a(726),n=a(727);function r({children:e,redirect:t="/"}){const{hasRequiredPlan:a}=(0,n.A)();return a?e:React.createElement(c.C5,{to:t,replace:!0})}},9374:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var c=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{await t(),v(),await i(),await k(),await g(!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")}]};return m().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".
__("Over %s listed vulnerabilities","jetpack-protect"),l)),d().createElement(n.Ay,{mb:3},(0,m.sprintf)(
// 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||{};return e.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});var c=a(442),n=a(5918),r=a(8509),l=a(1609),s=a.n(l);const i=({main:e,secondary:t,preserveSecondaryOnMobile:a=!1})=>{const[l,i]=(0,c.A)(["sm","lg"]),o=!a&&l;return s().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});var c=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=>{const t=__("Critical","jetpack-protect"),a=__("High","jetpack-protect"),c=__("Low","jetpack-protect");return e>=5?t:e>=3&&e<5?a:c})(e))},3144:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var c=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});var c=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);return s().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"):void 0,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});var c=a(9959),n=a(4356);const r=({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});var c=a(6578);const n=({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});var c=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":return e.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":return e.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")}};function p({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]);return s().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});var c=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=>{const t=new Date,a=6e4*t.getTimezoneOffset(),c=Math.floor((new Date(t.getTime()+a).getTime()-e)/1e3);let n=c/31536e3;return n>1?(0,r.sprintf)(
// translators: placeholder is a number amount of years i.e. "5 years ago".
_n("%s year ago","%s years ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=c/2592e3,n>1?(0,r.sprintf)(
// translators: placeholder is a number amount of months i.e. "5 months ago".
_n("%s month ago","%s months ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=c/86400,n>1?(0,r.sprintf)(
// translators: placeholder is a number amount of days i.e. "5 days ago".
_n("%s day ago","%s days ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=c/3600,n>1?(0,r.sprintf)(
// translators: placeholder is a number amount of hours i.e. "5 hours ago".
_n("%s hour ago","%s hours ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=c/60,n>1?(0,r.sprintf)(
// translators: placeholder is a number amount of minutes i.e. "5 minutes ago".
_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]);return React.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)(
// translators: placeholder is the amount of time since the last scan, i.e. "5 minutes ago".
__("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});var c=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;return o().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});var c=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":return 1===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]);return p().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)));var T}},9395:(e,t,a)=>{"use strict";a.d(t,{A:()=>g});var c=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]);return React.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});var c=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})=>{const n=(0,i.useMemo)((()=>t===e),[t,e]),l=(0,i.useCallback)((()=>{a(e)}),[a,e]);return o().createElement(c.A,{size:"medium",className:n?null:m.A.unfocused,onClick:l,"aria-current":n?"page":void 0,"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)((()=>{const a=d*t,c=a-t;return e.slice(c,a)}),[d,e,t]),E=(0,i.useMemo)((()=>{if(r)return[d];const e=[1];return d>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]);return o().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"==typeof e?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});var c=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})=>{const N=(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;return o().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,"<"]);return o().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});var c=a(4648),n=a(4314),r=a(1651),l=a(435),s=a(2072),i=a(1609),o=a(727);const m=(e,t)=>t.severity-e.severity,p=(e,t)=>"object"==typeof e&&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}}const e=u.find((e=>e?.name===a));if(e)return{unsortedList:p(e,{icon:l.A}),item:e};const t=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:void 0,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});var c=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()));return React.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"))))));return React.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});var c=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]);return C?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});var c=a(7723),n=a(1609),r=a.n(n),l=a(726),s=a(4907);const __=c.__;function i({numFixed:e,numIgnored:t}){const a=(0,l.Zp)(),{filter:c="all"}=(0,l.g)(),i=(0,n.useCallback)((e=>()=>a(e)),[a]);return r().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});var c=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)();return d().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();return 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(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()})));let m;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]);const u=(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]);return d().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});var c=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);return React.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});var c=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);const d=({title:e,subtitle:t,controls:a})=>{const s=(0,c.Wy)("protect"),{hasRequiredPlan:d}=(0,o.A)();return i().createElement(n.A,{fluid:!0},i().createElement(r.A,null,i().createElement("div",{className:p.A["scan-section-head
// translators: placeholder is the number amount of fixed threats.
_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})=>await new Promise(((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)),await new Promise((()=>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)),await new Promise((()=>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))})),await new Promise((()=>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)),await new Promise((()=>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});var c=a(7143),n=a(6185),r=a.n(n),l=a(8140),s=a(3772);const i={wafSupported:null,bruteForceSupported:null,isSeen:!1,upgradeIsSeen:!1,isEnabled:!1,isUpdating:!1,isToggling:!1,config:void 0,stats:void 0},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){case s.mD:return t.status;case s.yA:return{...e,currentProgress:t.currentProgress};case s.pW:return{...e,currentProgress:0,status:l.JD}}return e},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)=>