This commit is contained in:
zbatte committed 2026-07-02 15:54:39 -06:00
commit 9883323161
17470 files changed
+4470592

No files matched your search

@@ -0,0 +1,17 @@
<svg width="380" height="183" viewBox="0 0 380 183" fill="none" xmlns="http://www.w3.org/2000/svg">
<g opacity="0.75" filter="url(#filter0_f_5953_11924)">
<path d="M360 -60C360 7.93102 304.931 63 237 63C169.069 63 114 7.93102 114 -60C114 -127.931 169.069 -183 237 -183C304.931 -183 360 -127.931 360 -60Z" fill="url(#paint0_linear_5953_11924)"/>
</g>
<defs>
<filter id="filter0_f_5953_11924" x="-6" y="-303" width="486" height="486" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="60" result="effect1_foregroundBlur_5953_11924"/>
</filter>
<linearGradient id="paint0_linear_5953_11924" x1="360" y1="-60" x2="114" y2="-60" gradientUnits="userSpaceOnUse">
<stop stop-color="#48FF50"/>
<stop offset="0.471846" stop-color="#108642"/>
<stop offset="1" stop-color="#2E38FA"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 990 B

@@ -0,0 +1 @@
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'moment', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '3146a6f91e54a1fdb28d');
@@ -0,0 +1 @@
:where(._fUXxnSp5pagKBp9gSN7) *{box-sizing:border-box}.WQVtrU6q0L1Igcj7wCrQ{margin:0;padding:0}.UujoBFTnQNY2cWU2SIsH{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.TeGO5V_thHw5lDAm1_2M{font-weight:700}.TeGO5V_thHw5lDAm1_2M,.WolQzb2MsSgiNmLtc7_j{font-size:var(--font-headline-small);line-height:40px}.WolQzb2MsSgiNmLtc7_j{font-weight:400}.hUB0JT8p1T2Hw28N6qC8{font-weight:500}.gKZWDv5chz3_O3Syp74H,.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);line-height:32px}.gKZWDv5chz3_O3Syp74H{font-weight:600}.zY2No8Ga4b8shbOQGhnv{font-size:var(--font-title-small);font-weight:500;line-height:30px}.tIj0D1t8Cc892ikmgFPZ{font-size:var(--font-body);font-weight:400;line-height:24px}.KdcN0BnOaVeVhyLRKqhS{font-size:var(--font-body-small);font-weight:400;line-height:24px}.dso3Rh3tl3Xv1GumBktz{font-weight:400}.dso3Rh3tl3Xv1GumBktz,.mQ1UlbN9u4Mg9byO8m7v{font-size:var(--font-body-extra-small);line-height:20px}.mQ1UlbN9u4Mg9byO8m7v{font-weight:700}.PItlW5vRExLnTj4a8eLE{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.TwRpPlktzxhmFVeua7P5{margin:calc(var(--spacing-base)*0)}.zVfqx7gyb3o9mxfGynn1{margin-left:calc(var(--spacing-base)*0);margin-right:calc(var(--spacing-base)*0)}.iSHVzNiB9iVleGljaQxy{margin-bottom:calc(var(--spacing-base)*0)}.iSHVzNiB9iVleGljaQxy,.xqDIp6cNVr_E6RXaiPyD{margin-top:calc(var(--spacing-base)*0)}.S8EwaXk1kyPizt6x4WH2{margin-right:calc(var(--spacing-base)*0)}.ODX5Vr1TARoLFkDDFooD{margin-bottom:calc(var(--spacing-base)*0)}.cphJ8dCpfimnky7P2FHg{margin-left:calc(var(--spacing-base)*0)}.PFgIhNxIyiSuNvQjAIYj{margin:calc(var(--spacing-base)*1)}.M2jKmUzDxvJjjVEPU3zn{margin-left:calc(var(--spacing-base)*1);margin-right:calc(var(--spacing-base)*1)}.io15gAh8tMTNbSEfwJKk{margin-bottom:calc(var(--spacing-base)*1)}.io15gAh8tMTNbSEfwJKk,.rcTN5uw9xIEeMEGL3Xi_{margin-top:calc(var(--spacing-base)*1)}.CQSkybjq2TcRM1Xo9COV{margin-right:calc(var(--spacing-base)*1)}.hfqOWgq6_MEGdFE82eOY{margin-bottom:calc(var(--spacing-base)*1)}.I8MxZQYTbuu595yfesWA{margin-left:calc(var(--spacing-base)*1)}.kQkc6rmdpvLKPkyoJtVQ{margin:calc(var(--spacing-base)*2)}.j6vFPxWuu4Jan2ldoxpp{margin-left:calc(var(--spacing-base)*2);margin-right:calc(var(--spacing-base)*2)}.hqr39dC4H_AbactPAkCG{margin-bottom:calc(var(--spacing-base)*2)}.c3dQnMi16C6J6Ecy4283,.hqr39dC4H_AbactPAkCG{margin-top:calc(var(--spacing-base)*2)}.YNZmHOuRo6hU7zzKfPdP{margin-right:calc(var(--spacing-base)*2)}.Db8lbak1_wunpPk8NwKU{margin-bottom:calc(var(--spacing-base)*2)}.ftsYE5J9hLzquQ0tA5dY{margin-left:calc(var(--spacing-base)*2)}.Det4MHzLUW7EeDnafPzq{margin:calc(var(--spacing-base)*3)}.h_8EEAztC29Vve1datb5{margin-left:calc(var(--spacing-base)*3);margin-right:calc(var(--spacing-base)*3)}.YXIXJ0h1k47u6hzK8KcM{margin-bottom:calc(var(--spacing-base)*3)}.YXIXJ0h1k47u6hzK8KcM,.soADBBkcIKCBXzCTuV9_{margin-top:calc(var(--spacing-base)*3)}.zSX59ziEaEWGjnpZa4uV{margin-right:calc(var(--spacing-base)*3)}.yrVTnq_WBMbejg89c2ZQ{margin-bottom:calc(var(--spacing-base)*3)}.UKtHPJnI2cXBWtPDm5hM{margin-left:calc(var(--spacing-base)*3)}.guexok_Tqd5Tf52hRlbT{margin:calc(var(--spacing-base)*4)}.oS1E2KfTBZkJ3F0tN7T6{margin-left:calc(var(--spacing-base)*4);margin-right:calc(var(--spacing-base)*4)}.DN1OhhXi6AoBgEdDSbGd{margin-bottom:calc(var(--spacing-base)*4)}.DN1OhhXi6AoBgEdDSbGd,.ot2kkMcYHv53hLZ4LSn0{margin-top:calc(var(--spacing-base)*4)}.A1krOZZhlQ6Sp8Cy4bly{margin-right:calc(var(--spacing-base)*4)}.pkDbXXXL32237M0hokEh{margin-bottom:calc(var(--spacing-base)*4)}.XXv4kDTGvEnQeuGKOPU3{margin-left:calc(var(--spacing-base)*4)}.yGqHk1a57gaISwkXwXe6{margin:calc(var(--spacing-base)*5)}.X8cghM358X3DkXLc9aNK{margin-left:calc(var(--spacing-base)*5);margin-right:calc(var(--spacing-base)*5)}.GdfSmGwHlFnN2S6xBn1f{margin-bottom:calc(var(--spacing-base)*5)}.GdfSmGwHlFnN2S6xBn1f,.yqeuzwyGQ7zG0avrGqi_{margin-top:calc(var(--spacing-base)*5)}.g9emeCkuHvYhveiJbfXO{margin-right:calc(var(--spacing-base)*5)}.Lvk3dqcyHbZ07QCRlrUQ{margin-bottom:calc(var(--spacing-base)*5)}.r3yQECDQ9qX0XZzXlVAg{margin-left:calc(var(--spacing-base)*5)}.aQhlPwht2Cz1X_63Miw0{margin:calc(var(--spacing-base)*6)}.JyHb0vK3wJgpblL9s5j8{margin-left:calc(var(--spacing-base)*6);margin-right:calc(var(--spacing-base)*6)}.cY2gULL1lAv6WPNIRuf3{margin-bottom:calc(var(--spacing-base)*6)}.NBWQ9Lwhh_fnry3lg_p7,.cY2gULL1lAv6WPNIRuf3{margin-top:calc(var(--spacing-base)*6)}.yIOniNe5E40C8fWvBm5V{margin-right:calc(var(--spacing-base)*6)}.t30usboNSyqfQWIwHvT3{margin-bottom:calc(var(--spacing-base)*6)}.Nm_TyFkYCMhOoghoToKJ{margin-left:calc(var(--spacing-base)*6)}.C4qJKoBXpgKtpmrqtEKB{margin:calc(var(--spacing-base)*7)}.S93Srbu6NQ_PBr7DmTiD{margin-left:calc(var(--spacing-base)*7);margin-right:calc(var(--spacing-base)*7)}.fJj8k6gGJDks3crUZxOS{margin-bottom:calc(var(--spacing-base)*7)}.cW6D6djs7Ppm7fD7TeoV,.fJj8k6gGJDks3crUZxOS{margin-top:calc(var(--spacing-base)*7)}.DuCnqNfcxcP3Z__Yo5Ro{margin-right:calc(var(--spacing-base)*7)}.im8407m2fw5vOg7O2zsw{margin-bottom:calc(var(--spacing-base)*7)}.G0fbeBgvz2sh3uTP9gNl{margin-lLine truncated
@@ -0,0 +1,78 @@
/*! For license information please see index.js.LICENSE.txt */
(()=>{var e,t,s={6185(e){"use strict";function t(e){return e&&"object"==typeof e?n(e)||a(e)?e:r(e)?function(e,t){if(e.map)return e.map(t);for(var s=[],r=0;r<e.length;r++)s.push(t(e[r],r));return s}(e,t):function(e,t,s){if(e.reduce)return e.reduce(t,s);for(var r=0;r<e.length;r++)s=t(s,e[r],r);return s}(o(e),function(r,n){return r[s(n)]=t(e[n]),r},{}):e}function s(e){return e.replace(/[_.-](\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=function(e){return"string"==typeof e?s(e):t(e)};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=function(e){return"[object Date]"===Object.prototype.toString.call(e)},a=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},i=Object.prototype.hasOwnProperty,o=Object.keys||function(e){var t=[];for(var s in e)i.call(e,s)&&t.push(s);return t}},6941(e,t,s){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(n=r))}),t.splice(n,0,s)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=s(3212)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3212(e,t,s){e.exports=function(e){function t(e){let s,n,a,i=null;function o(...e){if(!o.enabled)return;const r=o,n=Number(new Date),a=n-(s||n);r.diff=a,r.prev=s,r.curr=n,s=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(s,n)=>{if("%%"===s)return"%";i++;const a=t.formatters[n];if("function"==typeof a){const t=e[i];s=a.call(r,t),e.splice(i,1),i--}return s}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==t.namespaces&&(n=t.namespaces,a=t.enabled(e)),a),set:e=>{i=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,s){const r=t(this.namespace+(void 0===s?":":s)+e);return r.log=this.log,r}function n(e,t){let s=0,r=0,n=-1,a=0;for(;s<e.length;)if(r<t.length&&(t[r]===e[s]||"*"===t[r]))"*"===t[r]?(n=r,a=s,r++):(s++,r++);else{if(-1===n)return!1;r=n+1,a++,s=a}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of s)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(eLine truncated
__("%1$d of %2$d","jetpack-protect"),h,p)),(0,u.jsx)(r.Popover,{...A,children:(0,u.jsx)(l.Ay,{children:(0,u.jsxs)("div",{className:d.A.wrapper,children:[(0,u.jsxs)("div",{className:d.A.header,children:[(0,u.jsx)(c.Ay,{variant:"title-small",className:d.A.title,children:t}),!e&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(i.A,{size:"small",variant:"tertiary","aria-label":"close",className:d.A["close-button"],icon:a.A,iconSize:16,onClick:y})})]}),s,(0,u.jsxs)("div",{className:d.A.footer,children:[k&&(0,u.jsx)(c.Ay,{variant:"body",className:d.A.steps,children:_}),(0,u.jsx)(i.A,{variant:"primary",className:d.A["action-button"],disabled:f,onClick:j,isExternalLink:v,href:g,children:m})]})]})})})}},2947(e,t,s){"use strict";s.d(t,{A:()=>f});var r=s(5932),n=s(1753),a=(s(2095),s(6427)),i=s(7723),o=s(3022),c=s(1609),l=s(8250),d=s(7142),u=s(8509),h=s(5918),p=s(8796),m=s(790);const __=i.__,f=({children:e,className:t,showHeader:s=!0,showFooter:f=!0,showBackground:g=!0,sandboxedDomain:v="",apiRoot:x="",apiNonce:y="",optionalMenuItems:j,header:b,title:w,subTitle:A,logo:k,actions:_,breadcrumbs:C,tabs:S,showBottomBorder:N=!0})=>{(0,c.useEffect)(()=>{r.Ay.setApiRoot(x),r.Ay.setApiNonce(y)},[x,y]);const M=(0,o.A)(p.A["admin-page"],t,{[p.A.background]:g,[p.A["without-bottom-border"]]:S||!N}),E=(0,c.useCallback)(async()=>{try{const e=await r.Ay.fetchSiteConnectionTest();window.alert(e.message)}catch(e){window.alert((0,i.sprintf)(/* translators: %s: an error message. */
__("There was an error testing Jetpack. Error: %s","jetpack-protect"),e.message))}},[]),L=w?(0,m.jsxs)(a.__experimentalHStack,{spacing:2,justify:"left",children:[k||(0,m.jsx)(d.A,{showText:!1,height:20}),(0,m.jsx)("span",{children:w})]}):void 0;return s&&(L||C)?(0,m.jsx)("div",{className:M,children:(0,m.jsxs)(n.A,{ariaLabel:w,breadcrumbs:C,title:L,subTitle:A,actions:_,showSidebarToggle:!1,children:[S,(0,m.jsx)(h.A,{fluid:!0,horizontalSpacing:0,children:(0,m.jsx)(u.A,{children:e})}),f&&(0,m.jsx)(l.A,{menu:j})]})}):(0,m.jsxs)("div",{className:M,children:[s&&(0,m.jsx)(h.A,{horizontalSpacing:5,children:(0,m.jsxs)(u.A,{className:(0,o.A)(p.A["admin-page-header"],"jp-admin-page-header"),children:[b||(0,m.jsx)(d.A,{}),v&&(0,m.jsx)("code",{className:p.A["sandbox-domain-badge"],onClick:E,onKeyDown:E,role:"button",tabIndex:0,title:`Sandboxing via ${v}. Click to test connection.`,children:"API Sandboxed"})]})}),(0,m.jsx)(h.A,{fluid:!0,horizontalSpacing:0,children:(0,m.jsx)(u.A,{children:e})}),f&&(0,m.jsx)(l.A,{menu:j})]})}},5640(e,t,s){"use strict";s.d(t,{A:()=>a});var r=s(3609),n=s(790);const a=({children:e})=>(0,n.jsx)("div",{className:r.A.section,children:e})},766(e,t,s){"use strict";s.d(t,{A:()=>a});var r=s(9661),n=s(790);const a=({children:e})=>(0,n.jsx)("div",{className:r.A["section-hero"],children:e})},8907(e,t,s){"use strict";s.d(t,{A:()=>i});var r=s(7723),n=s(3022),a=s(790);const __=r.__,i=({title:e=__("An Automattic Airline","jetpack-protect"),height:t=7,className:s,...r})=>(0,a.jsxs)("svg",{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,n.A)("jp-automattic-byline-logo",s),...r,children:[(0,a.jsx)("desc",{id:"jp-automattic-byline-logo-title",children:e}),(0,a.jsx)("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"}),(0,a.jsx)("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"}),(0,a.jsx)("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 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"})]})},6486(e,t,s){"use strict";s.d(t,{A:()=>i});var r=s(3022),n=s(1448),a=s(790);const i=({children:e,className:t,variant:s,...i})=>{const o=(0,r.A)(n.A.badge,{[n.A["is-success"]]:"success"===s,[n.A["is-warning"]]:"warning"===s,[n.A["is-danger"]]:"danger"===s},t);return(0,a.jsx)("span",{className:o,...i,children:e})}},1112(e,t,s){"use strict";s.d(t,{A:()=>h});var r=s(6427),n=s(7723),a=s(3109),i=s(1866),o=s(3022),c=s(1609),l=s(9595),d=s(790);const __=n.__,u=(0,c.forwardRef)((e,t)=>{const{children:s,variant:n="primary",size:c="normal",weight:u="bold",icon:h,iconSize:p,disabled:m,isDestructive:f,isLoading:g,isExternalLink:v,className:x,text:y,fullWidth:j,...b}=e,w=(0,o.A)(l.A.button,x,{[l.A.normal]:"normal"===c,[l.A.small]:"small"===c,[l.A.icon]:Boolean(h),[l.A.loading]:g,[l.A.regular]:"regular"===u,[l.A["full-width"]]:j,[l.A["is-icon-button"]]:Boolean(h)&&!s}),A="normal"===c?20:16,k=v&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.A,{size:A,icon:i.A,className:l.A["external-icon"]}),(0,d.jsx)(r.VisuallyHidden,{as:"span",children:/* translators: accessibility text */
__("(opens in a new tab)","jetpack-protect")})]}),_=v?"_blank":void 0,C=s?.[0]&&null!==s[0]&&"components-tooltip"!==s?.[0]?.props?.className,S={ref:t,target:_,variant:n,className:(0,o.A)(w,{"has-text":!!h&&C}),icon:v?void 0:h,iconSize:p,disabled:m,"aria-disabled":m,isDestructive:f,text:y,...b};return(0,d.jsxs)(r.Button,{...S,children:[g&&(0,d.jsx)(r.Spinner,{}),(0,d.jsx)("span",{children:s}),k]})});u.displayName="Button";const h=u},4437(e,t,s){"use strict";s.d(t,{A:()=>d});var r=s(3109),n=s(8595),a=s(3022),i=s(597),o=s(7425),c=s(6186),l=s(790);const d=({description:e,cta:t,onClick:s,href:d,openInNewTab:u=!1,className:h,tooltipText:p=""})=>{const m=void 0!==d?"a":"button",f="a"===m?{href:d,...u&&{target:"_blank"}}:{onClick:s};return(0,l.jsxs)("div",{className:(0,a.A)(c.A.cut,h),children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(o.Ay,{className:c.A.description,children:e}),p&&(0,l.jsx)(i.A,{className:c.A.iconContainer,iconSize:16,offset:4,children:(0,l.jsx)(o.Ay,{variant:"body-small",children:p})})]}),(0,l.jsx)("div",{children:(0,l.jsx)(m,{...f,children:(0,l.jsx)(o.Ay,{className:c.A.cta,children:t})})})]}),(0,l.jsx)(r.A,{icon:n.A,className:c.A.icon,size:30})]})}},4741(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(7297),n=s(790);const a=e=>e.replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`),i=e=>null===e||"object"!=typeof e?e:Array.isArray(e)?e.map(e=>i(e)):Object.entries(e).reduce((e,[t,s])=>(e[a(t)]=i(s),e),{}),o=({details:e})=>e&&"object"==typeof e?(0,n.jsx)("div",{className:r.A["details-viewer"],children:Object.entries(e).map(([e,t])=>(0,n.jsxs)("div",{className:r.A["details-viewer__item"],children:[(0,n.jsxs)("div",{className:r.A["details-viewer__key"],children:[a(e),":"]}),(0,n.jsx)("div",{className:r.A["details-viewer__value"],children:(0,n.jsx)("pre",{children:"object"==typeof t&&null!==t?JSON.stringify(i(t),null,2):String(t)})})]},e))}):null},4252(e,t,s){"use strict";s.d(t,{A:()=>l});var r=s(1609),n=s(4433),a=s(680),i=s(7392),o=s(790);const c=({oldFileName:e,newFileName:t})=>{const{prev:s,next:a}=(0,n.A)(e,t);return s.prefix+s.path===a.prefix+a.path?(0,o.jsxs)(r.Fragment,{children:[s.prefix&&(0,o.jsx)("span",{className:i.A["diff-viewer__path-prefix"],children:s.prefix}),(0,o.jsx)("span",{className:i.A["diff-viewer__path"],children:s.path})]}):(0,o.jsxs)(r.Fragment,{children:[!!s.prefix&&(0,o.jsx)("span",{className:i.A["diff-viewer__path-prefix"],children:s.prefix}),(0,o.jsx)("span",{className:i.A["diff-viewer__path"],children:s.path})," → ",!!a.prefix&&(0,o.jsx)("span",{className:i.A["diff-viewer__path-prefix"],children:a.prefix}),(0,o.jsx)("span",{className:i.A["diff-viewer__path"],children:a.path})]})},l=({diff:e})=>(0,o.jsx)("div",{className:i.A["diff-viewer"],children:(0,a.A)(e).map((e,t)=>(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)("div",{className:i.A["diff-viewer__filename"],children:c(e)},`file-${t}`),(0,o.jsxs)("div",{className:i.A["diff-viewer__file"],children:[(0,o.jsx)("div",{className:i.A["diff-viewer__line-numbers"],children:e.hunks.map((e,t)=>{let s=0;return e.lines.map((r,n)=>(0,o.jsx)("div",{children:"+"===r[0]?" ":e.oldStart+s++},`${t}-${n}`))})},"left-numbers"),(0,o.jsx)("div",{className:i.A["diff-viewer__line-numbers"],children:e.hunks.map((e,t)=>{let s=0;return e.lines.map((r,n)=>(0,o.jsx)("div",{children:"-"===r[0]?" ":e.newStart+s++},`${t}-${n}`))})},"right-numbers"),(0,o.jsx)("div",{className:i.A["diff-viewer__lines"],children:e.hunks.map((e,t)=>e.lines.map((e,s)=>{const r=e.slice(1).replace(/^\s*$/," "),n=`${t}-${s}`;switch(e[0]){case" ":return(0,o.jsx)("div",{children:r},n);case"-":return(0,o.jsx)("del",{children:r},n);case"+":return(0,o.jsx)("ins",{children:r},n);default:return}}))})]},`diff-${t}`)]},t))})},4433(e,t,s){"use strict";s.d(t,{A:()=>n});const r=e=>{const t=e.lastIndexOf("/");return t>-1?{prefix:e.slice(0,t),path:e.slice(t)}:{prefix:"",path:e}};function n(e,t){const s=e.startsWith("a/")&&t.startsWith("b/");if((e=s?e.slice(2):e)===(t=s?t.slice(2):t)){const{prefix:t,path:s}=r(e);return{prev:{prefix:t,path:s},next:{prefix:t,path:s}}}const n=Math.max(e.length,t.length);for(let s=0,r=0;s<n;s++)if("/"===e[s]&&"/"===t[s]&&(r=s),e[s]!==t[s])return{prev:{prefix:e.slice(0,r),path:e.slice(r)},next:{prefix:t.slice(0,r),path:t.slice(r)}};return{prev:r(e),next:r(t)}}},680(e,t,s){"use strict";function r(e){const t=e.split(/\n/),s=[];let r=0;function n(){const e={};for(s.push(e);r<t.length;){const s=t[r];if(/^(---|\+\+\+|@@)\s/.test(s))break;const n=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(s);n&&(e.index=n[1]),r++}for(a(e),a(e),e.hunks=[];r<t.length;){const s=t[r];if(/^(Index:\s|diff\s|---\s|\+\+\+\s|===================================================================)/.test(s))break;if(/^@@/.test(s))e.hunks.push(i());else{if(s)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(s));r++}}}function a(e){const s=/^(---|\+\+\+)\s+(.*)\r?$/.exec(t[r]);if(s){const t="---"===s[1]?"old":"new",n=s[2].split("\t",2);let a=n[0].replace(/\\\\/g,"\\");/^".*"$/Line truncated
// translators: %s: Name of the current feature
default:(0,r.sprintf)(__("%s coming soon","jetpack-protect"),s)}:{lg:t?f:g,default:t?s:(0,r.sprintf)(/* translators: %s: Name of the current feature */
__("%s not included","jetpack-protect"),s)})(t,e,C),L=w?E.lg:E.default;return k?(0,m.jsx)("div",{className:(0,o.A)(p.A.item,p.A.value,p.A.empty)}):(0,m.jsxs)("div",{className:(0,o.A)(p.A.item,p.A.value),children:[(0,m.jsx)(n.A,{className:(0,o.A)(p.A.icon,_?p.A["icon-check"]:p.A["icon-cross"]),size:32,icon:_?a.A:i.A}),(0,m.jsx)(h.Ay,{variant:"body-small",children:u||L}),M&&(0,m.jsx)(l.A,{title:j||N,iconClassName:p.A["popover-icon"],className:(0,o.A)(p.A.popover,b),placement:"bottom-end",iconSize:14,offset:4,wide:Boolean(j&&y),children:(0,m.jsx)(h.Ay,{variant:"body-small",component:"div",children:y||S})})]})},j=({title:e,children:t})=>(0,m.jsxs)("div",{className:p.A.headerContainer,children:[e&&(0,m.jsx)(h.Ay,{variant:"headline-small",className:p.A.title,children:e}),(0,m.jsx)("div",{className:p.A.header,children:t})]}),b=({primary:e=!1,children:t,className:s})=>{let r=0;return(0,m.jsx)("div",{className:(0,o.A)(p.A.card,{[p.A["is-primary"]]:e},s),children:c.Children.map(t,e=>{const t=e;return t.type===y?(r++,(0,c.cloneElement)(t,{index:r-1})):t})})},w=({title:e,headerLogo:t,items:s,children:r,showIntroOfferDisclaimer:n=!1})=>{const[a]=(0,d.A)("lg");return(0,m.jsxs)(x.Provider,{value:s,children:[(0,m.jsx)("div",{className:(0,o.A)(p.A.container,{[p.A["is-viewport-large"]]:a}),style:{"--rows":s.length+1,"--columns":c.Children.toArray(r).length+1},children:(0,m.jsxs)("div",{className:p.A.table,children:[(0,m.jsxs)("div",{children:[t&&(0,m.jsx)("div",{className:p.A["header-logo"],children:t}),(0,m.jsx)(h.Ay,{variant:"headline-small",className:p.A.tableTitle,children:e})]}),a&&s.map((e,t)=>e.name?(0,m.jsxs)("div",{className:(0,o.A)(p.A.item,p.A.feature,{[p.A["last-feature"]]:t===s.length-1}),children:[(0,m.jsx)(h.Ay,{variant:"body-small",children:(0,m.jsx)("strong",{children:e.name})}),e.tooltipInfo&&(0,m.jsx)(l.A,{title:e.tooltipTitle,iconClassName:p.A["popover-icon"],className:p.A.popover,placement:e.tooltipPlacement?e.tooltipPlacement:"bottom-end",iconSize:14,offset:4,wide:Boolean(e.tooltipTitle&&e.tooltipInfo),children:(0,m.jsx)(h.Ay,{variant:"body-small",children:e.tooltipInfo})})]},t):(0,m.jsx)("div",{className:(0,o.A)(p.A.item,p.A.feature,p.A.empty)},t)),r]})}),(0,m.jsx)("div",{className:p.A["tos-container"],children:(0,m.jsxs)("div",{className:p.A.tos,children:[n&&(0,m.jsx)(h.Ay,{variant:"body-small",children:__("Reduced pricing is a limited offer for the first year and renews at regular price.","jetpack-protect")}),(0,m.jsx)(u.A,{multipleButtons:!0})]})})]})}},489(e,t,s){"use strict";s.d(t,{A:()=>l});var r=s(7723),n=s(3022),a=s(7425),i=s(2746),o=s(5304),c=s(790);const __=r.__,l=({price:e,offPrice:t,currency:s="",showNotOffPrice:r=!0,hideDiscountLabel:l=!0,promoLabel:d="",legend:u=__("/month, paid yearly","jetpack-protect"),isNotConvenientPrice:h=!1,hidePriceFraction:p=!1,children:m,variant:f="default"})=>{if(null==e&&null==t||!s)return null;r=r&&null!=t;const g="number"==typeof e&&"number"==typeof t?Math.floor((e-t)/e*100):0,v=!l&&g&&g>0?g+__("% off","jetpack-protect"):null;return"simple"===f?(0,c.jsxs)("div",{className:o.A.simple,children:[(0,c.jsxs)("div",{className:o.A.currentPrice,children:[(0,c.jsx)(i.g,{value:t??e,currency:s,isOff:!h,hidePriceFraction:p,inline:!0}),(0,c.jsx)("div",{children:u})]}),r&&(0,c.jsxs)("div",{className:o.A.originalPrice,children:[(0,c.jsx)(i.g,{value:e,currency:s,isOff:!1,hidePriceFraction:p,inline:!0}),(0,c.jsx)("div",{children:g&&g>0&&g+__("% off the first year","jetpack-protect")})]})]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:o.A.container,children:(0,c.jsxs)("div",{className:(0,n.A)(o.A["price-container"],"product-price_container"),children:[(0,c.jsx)(i.g,{value:t??e,currency:s,isOff:!h,hidePriceFraction:p}),r&&(0,c.jsx)(i.g,{value:e,currency:s,isOff:!1,hidePriceFraction:p}),v&&(0,c.jsx)(a.Ay,{className:(0,n.A)(o.A["promo-label"],"product-price_promo_label"),children:v})]})}),(0,c.jsxs)("div",{className:o.A.footer,children:[m||(0,c.jsx)(a.Ay,{className:(0,n.A)(o.A.legend,"product-price_legend"),children:u}),d&&(0,c.jsx)(a.Ay,{className:(0,n.A)(o.A["promo-label"],"product-price_promo_label"),children:d})]})]})}},2746(e,t,s){"use strict";s.d(t,{g:()=>c});var r=s(4268),n=s(3022),a=s(7425),i=s(5304),o=s(790);const c=({value:e,currency:t,isOff:s,hidePriceFraction:c,inline:l=!1})=>{const d=(0,n.A)(i.A.price,"product-price_price",{[i.A["is-not-off-price"]]:!s,[i.A["price-inline"]]:l}),{symbol:u,integer:h,fraction:p}=(0,r.vA)(e,t),m=!c||!p.endsWith("00");return(0,o.jsxs)(a.Ay,{className:d,variant:"headline-medium",component:"p",children:[l?(0,o.jsxs)(o.Fragment,{children:[u,h]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Ay,{className:i.A.symbol,component:"sup",variant:"title-medium",children:u}),h]}),m&&(0,o.jsx)(a.Ay,{component:"sup",variant:"body-small","data-testid":"PriceFraction",children:(0,o.jsx)("strong",{children:p})})]})}},6951(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(8120),n=s.n(r),a=(s(9752),s(790));const i=({color:e="#FFFFFF",className:tLine truncated
__("By clicking <strong>%1$s</strong> or <strong>%2$s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-protect"),e[0],e[1]),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(p,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}):(0,n.createInterpolateElement)(__("By clicking the buttons above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-protect"),{tosLink:(0,l.jsx)(p,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),u=({agreeButtonLabel:e})=>(0,n.createInterpolateElement)((0,a.sprintf)(/* translators: %s is a button label */
__("By clicking <strong>%s</strong>, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site‘s data</shareDetailsLink> with us.","jetpack-protect"),e),{strong:(0,l.jsx)("strong",{}),tosLink:(0,l.jsx)(p,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),h=()=>(0,n.createInterpolateElement)(__("By continuing you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>sync your site’s data</shareDetailsLink> with us. We’ll check if that email is linked to an existing WordPress.com account or create a new one instantly.","jetpack-protect"),{tosLink:(0,l.jsx)(p,{slug:"wpcom-tos"}),shareDetailsLink:(0,l.jsx)(p,{slug:"jetpack-support-what-data-does-jetpack-sync"})}),p=({slug:e,children:t})=>(0,l.jsx)(r.ExternalLink,{className:"terms-of-service__link",href:(0,o.A)(e),children:t}),m=({className:e,multipleButtons:t,agreeButtonLabel:s,isTextOnly:r,...n})=>(0,l.jsx)(c.Ay,{className:(0,i.A)(e,"terms-of-service"),...n,children:r?(0,l.jsx)(h,{}):t?(0,l.jsx)(d,{multipleButtonsLabels:t}):(0,l.jsx)(u,{agreeButtonLabel:s})})},110(e,t,s){"use strict";s.d(t,{Q:()=>r,Z:()=>n});const r={"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,s){"use strict";s.d(t,{Ay:()=>l,H3:()=>d,hE:()=>u});var r=s(3022),n=s(1609),a=s(110),i=s(2642),o=s(790);const c=(0,n.forwardRef)(({variant:e="body",children:t,component:s,className:c,...l},d)=>{const u=s||a.Q[e]||"span",h=(0,n.useMemo)(()=>a.Z.reduce((e,t)=>(void 0!==l[t]&&(e+=i.A[`${t}-${l[t]}`]+" ",delete l[t]),e),""),[l]);return(0,o.jsx)(u,{className:(0,r.A)(i.A.reset,i.A[e],c,h),...l,ref:d,children:t})});c.displayName="Text";const l=c,d=({children:e,weight:t="bold",...s})=>{const r="headline-small"+("bold"===t?"":`-${t}`);return(0,o.jsx)(c,{variant:r,mb:3,...s,children:e})},u=({children:e,size:t="medium",...s})=>(0,o.jsx)(c,{variant:`title-${t}`,mb:1,...s,children:e})},723(e,t,s){"use strict";s.d(t,{Ay:()=>h});var r=s(1609),n=s(215),a=s(790);const i={"--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-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 )"},c={"--jp-border-radius":"4px","--jp-menu-border-height":"1px","--jp-underline-thickness":"2px"},l={"--spacing-base":"8px"},d={},u=(e,t,s)=>{const r={...i,...o,...c,...l};for(const t in r)e.style.setProperty(t,r[t]);s&&e.classList.add(n.A.global),t&&(d[t]={provided:!0,root:e})},h=({children:e=null,targetDom:t,id:s,withGlobalStyles:n=!0})=>{const i=(0,r.useRef)(),o=d?.[s]?.provided;return(0,r.useLayoutEffect)(()=>{if(!o)return t?u(t,s,n):void(i?.current&&u(i.current,s,n))},[t,i,o,s,n]),t?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsx)("div",{ref:i,children:e})}},8316(e,t,s){"use strict";s.d(t,{A:()=>c});var r=s(6427),n=s(3022),a=s(1609),i=s(7558),o=s(790);const c=({checked:e,className:t,disabled:s,help:c,toggling:l,label:d,size:u="normal",onChange:h})=>{const p=void 0!==l?e&&!l||!e&&l:e,m=(0,a.useCallback)(e=>{l||h(e)},[l,h]);return(0,o.jsx)(r.ToggleControl,{__nextHasNoMarginBottom:!0,checked:p,className:(0,n.A)(i.A.toggle,t,{[i.A["is-toggling"]]:l,[i.A["is-small"]]:"small"===u,[i.A["no-label"]]:!d}),disabled:s,help:c,label:d,onChange:m})}},3924(e,t,s){"use strict";function r(e,t={}){const s={};let r;if("undefined"!=typeof window&&(r=wiLine truncated
// translators: %d is the number of threats found.
__("Scan (%d)","jetpack-protect"),f):__("Scan","jetpack-protect")})}),(0,p.jsx)(u.o,{link:"/firewall",label:(0,p.jsx)("span",{className:h.A.tab,children:__("Firewall","jetpack-protect")})}),(0,p.jsx)(u.o,{link:"/settings",label:(0,p.jsx)("span",{className:h.A.tab,children:__("Settings","jetpack-protect")})})]}),children:[t&&(0,p.jsx)(d.A,{floating:!0,dismissable:!0,...t}),e]}):null}},7715(e,t,s){"use strict";s.d(t,{A:()=>c});var r=s(8509),n=s(5918),a=s(9384),i=s(3747),o=s(790);const c=()=>{const{hasConnectionError:e}=(0,a.useConnectionErrorNotice)();return(0,o.jsxs)(n.A,{horizontalSpacing:0,children:[e&&(0,o.jsx)(r.A,{className:i.A["connection-error-col"],children:(0,o.jsx)(a.ConnectionError,{})}),(0,o.jsx)(r.A,{children:(0,o.jsx)("div",{id:"jp-admin-notices",className:"my-jetpack-jitm-card"})})]})}},7031(e,t,s){"use strict";s.d(t,{A:()=>u});var r=s(766),n=s(8478),a=s(7425),i=s(3127),o=s(7715),c=s(3747),l=s(790);const d=({main:e,secondary:t,preserveSecondaryOnMobile:s=!0,spacing:n=7})=>(0,l.jsxs)(r.A,{children:[(0,l.jsx)(o.A,{}),(0,l.jsx)(i.A,{spacing:n,gap:0,main:e,mainClassName:c.A["header-main"],secondary:t,secondaryClassName:c.A["header-secondary"],preserveSecondaryOnMobile:s,fluid:!1})]});d.Heading=({children:e,showIcon:t=!1})=>{const s=(0,n.Wy)("protect");return(0,l.jsxs)(a.H3,{className:c.A.heading,mt:2,mb:2,children:[e,t&&(0,l.jsx)(s,{className:c.A["heading-icon"],size:32})]})},d.Subheading=({children:e})=>(0,l.jsx)("div",{className:c.A.subheading,children:e});const u=d},4907(e,t,s){"use strict";s.d(t,{A:()=>c});var r=s(1112),n=s(6427),a=s(9253),i=s(790);function o({children:e,...t}){return(0,i.jsx)(n.Flex,{gap:0,className:`components-button-group ${a.A["button-group"]}`,...t,children:e})}o.Button=({onClick:e,variant:t="secondary",children:s,...n})=>(0,i.jsx)(r.A,{onClick:e,variant:t,className:"components-button",...n,children:(0,i.jsx)("span",{children:s})});const c=o},2652(e,t,s){"use strict";s.d(t,{A:()=>u});var r=s(7425),n=s(7723),a=s(3109),i=s(4699),o=s(7031),c=s(9889),l=s(4426),d=s(790);const __=n.__,u=({baseErrorMessage:e,errorMessage:t,errorCode:s})=>{let n=t?`${t} (${s}).`:e;return n+=" "+__("Try again in a few minutes.","jetpack-protect"),(0,d.jsx)(o.A,{main:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.A.Heading,{children:(0,d.jsxs)("div",{className:l.A.heading,children:[(0,d.jsx)(a.A,{className:l.A.warning,icon:i.A,size:54}),__("An error occurred","jetpack-protect")]})}),(0,d.jsx)(o.A.Subheading,{children:(0,d.jsx)(r.Ay,{children:n})}),(0,d.jsx)("div",{className:l.A["scan-navigation"],children:(0,d.jsx)(c.A,{})})]}),preserveSecondaryOnMobile:!1})}},8680(e,t,s){"use strict";s.d(t,{A:()=>p});var r=s(7425),n=s(1112),a=s(7723),i=s(1609),o=s(3657),c=s(1009),l=s(1571),d=s(4031),u=s(1938),h=s(790);const __=a.__,p=({threatList:e=[]})=>{const{setModal:t}=(0,c.A)(),{fixThreats:s,isLoading:a}=(0,o.Ay)(),p=(0,i.useMemo)(()=>e.filter(e=>e.fixable&&!1!==e.fixable.extras?.isBulkFixable),[e]),m=(0,i.useMemo)(()=>e.filter(e=>!e.fixable||!1===e.fixable.extras?.isBulkFixable),[e]),[f,g]=(0,i.useState)(p.map(({id:e})=>parseInt(e))),v=(0,i.useCallback)(e=>{e.preventDefault(),t({type:null})},[t]),x=(0,i.useCallback)(async e=>{e.preventDefault(),await s(f),t({type:null})},[s,t,f]),y=(0,i.useCallback)((e,t)=>{g(e?[...f,t.id]:f.filter(e=>e!==t.id))},[f]);return(0,h.jsxs)(d.A,{children:[(0,h.jsx)(r.Ay,{variant:"title-medium",mb:2,children:__("Fix all threats","jetpack-protect")}),p.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r.Ay,{mb:3,children:__("Jetpack will be fixing the selected threats:","jetpack-protect")}),(0,h.jsx)("div",{className:u.A.list,children:p.map(e=>(0,h.jsx)(l.A,{threat:e,fixAllDialog:!0,onCheckFix:y},e.id))})]}),m.length>0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r.Ay,{mb:3,mr:6,children:__("These threats cannot be fixed in bulk because individual confirmation is required:","jetpack-protect")}),(0,h.jsx)("div",{className:u.A.list,children:m.map(e=>(0,h.jsx)(l.A,{threat:e,fixAllDialog:!1,onCheckFix:y},e.id))})]}),(0,h.jsxs)("div",{className:u.A.footer,children:[(0,h.jsx)(n.A,{variant:"secondary",onClick:v,children:__("Cancel","jetpack-protect")}),p.length>0&&(0,h.jsx)(n.A,{isLoading:a,onClick:x,disabled:!f.length,children:__("Fix all threats","jetpack-protect")})]})]})}},2607(e,t,s){"use strict";s.d(t,{A:()=>g});var r=s(7425),n=s(1112),a=s(6427),i=s(6087),o=s(7723),c=s(1609),l=s(3657),d=s(1009),u=s(3041),h=s(1571),p=s(4031),m=s(3401),f=s(790);const __=o.__,g=({id:e,signature:t,extension:s,fixable:g,label:v,icon:x,severity:y})=>{const{setModal:j}=(0,d.A)(),{fixThreats:b,isLoading:w}=(0,l.Ay)(),A="Vulnerable.WP.Extension"===t&&g&&"delete"===g.fixer,k=s?.slug||"unknown-slug",[_,C]=(0,c.useState)("");(0,c.useEffect)(()=>{C("")},[e]);const S=()=>async t=>{t.preventDefault(),await b([e]),j({type:null})};return(0,f.jsxs)(p.A,{children:[(0,f.jsx)(r.Ay,{variant:"title-medium",mb:2,children:__("Fix Threat","jetpack-protect")}),(0,f.jsx)(r.Ay,{mb:3,children:__("Jetpack will be fixing the selecLine truncated
__("To confirm you have read and understood the consequences, please enter the plugin slug <code>%s</code> in the field below.","jetpack-protect"),k),{code:(0,f.jsx)("code",{})}):(0,i.createInterpolateElement)((0,o.sprintf)(/* translators: %s is the theme slug itself, e.g. twentytwentyfive. */
__("To confirm you have read and understood the consequences, please enter the theme slug <code>%s</code> in the field below.","jetpack-protect"),k),{code:(0,f.jsx)("code",{})})}),(0,f.jsx)(a.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,help:"",label:"",onChange:e=>{C(e)},value:_,className:"deletion-confirmation",autoComplete:"off"})]}),(0,f.jsxs)("div",{className:m.A.footer,children:[(0,f.jsx)(n.A,{variant:"secondary",onClick:e=>{e.preventDefault(),j({type:null})},children:__("Cancel","jetpack-protect")}),A?(0,f.jsx)(n.A,{variant:"primary",isDestructive:!0,disabled:_!==k,isLoading:w,onClick:S(),children:__("Delete now","jetpack-protect")}):(0,f.jsx)(n.A,{isLoading:w,onClick:S(),children:__("Fix threat","jetpack-protect")})]})]})}},4114(e,t,s){"use strict";s.d(t,{A:()=>p,E:()=>h});var r=s(7425),n=s(3109),a=s(5673),i=s(5462),o=s(3022),c=s(1609),l=s(8162),d=s(790);const u=(0,c.createContext)(),h=({id:e,title:t,label:s,icon:h,children:p,onOpen:m})=>{const f=(0,c.useContext)(u),g=f?.open===e,v=f?.setOpen,x=(0,o.A)(l.A["accordion-body"],{[l.A["accordion-body-open"]]:g,[l.A["accordion-body-close"]]:!g}),y=(0,c.useCallback)(()=>{g||m?.(),v(t=>t===e?null:e)},[g,m,v,e]);return(0,d.jsxs)("div",{className:l.A["accordion-item"],children:[(0,d.jsxs)("button",{className:l.A["accordion-header"],onClick:y,children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(r.Ay,{className:l.A["accordion-header-label"],mb:1,children:[(0,d.jsx)(n.A,{icon:h,className:l.A["accordion-header-label-icon"]}),s]}),(0,d.jsx)(r.Ay,{className:l.A["accordion-header-description"],variant:g?"title-small":"body",children:t})]}),(0,d.jsx)("div",{className:l.A["accordion-header-button"],children:(0,d.jsx)(n.A,{icon:g?i.A:a.A,size:38})})]}),(0,d.jsx)("div",{className:x,"aria-hidden":g?"false":"true",children:p})]})},p=({children:e})=>{const[t,s]=(0,c.useState)();return(0,d.jsx)(u.Provider,{value:{open:t,setOpen:s},children:(0,d.jsx)("div",{className:l.A.accordion,children:e})})}},5920(e,t,s){"use strict";s.d(t,{A:()=>f});var r=s(3924),n=s(7425),a=s(1112),i=s(8418),o=s(6087),c=s(7723),l=s(3109),d=s(1228),u=s(1009),h=s(4031),p=s(7278),m=s(790);const __=c.__,f=({id:e,title:t,label:s,icon:c,severity:f})=>{const{setModal:g}=(0,u.A)(),v=(0,d.A)(),x=(0,r.A)("jetpack-protect-codeable-referral"),[y,j]=(0,o.useState)(!1);return(0,m.jsxs)(h.A,{children:[(0,m.jsx)(n.Ay,{variant:"title-medium",mb:2,children:__("Do you really want to ignore this threat?","jetpack-protect")}),(0,m.jsx)(n.Ay,{mb:3,children:__("Jetpack will ignore the threat:","jetpack-protect")}),(0,m.jsxs)("div",{className:p.A.threat,children:[(0,m.jsx)(l.A,{icon:c,className:p.A.threat__icon}),(0,m.jsxs)("div",{className:p.A.threat__summary,children:[(0,m.jsx)(n.Ay,{className:p.A.threat__summary__label,mb:1,children:s}),(0,m.jsx)(n.Ay,{className:p.A.threat__summary__title,children:t})]}),(0,m.jsx)("div",{className:p.A.threat__severity,children:(0,m.jsx)(i.Z6,{severity:f})})]}),(0,m.jsx)(n.Ay,{mb:4,children:(0,o.createInterpolateElement)(__("By choosing to ignore this threat, you acknowledge that you have reviewed the detected code. You are accepting the risks of maintaining a potentially malicious or vulnerable file on your site. If you are unsure, please request an estimate with <codeableLink>Codeable</codeableLink>.","jetpack-protect"),{codeableLink:(0,m.jsx)(a.A,{variant:"link",isExternalLink:!0,href:x})})}),(0,m.jsxs)("div",{className:p.A.footer,children:[(0,m.jsx)(a.A,{variant:"secondary",onClick:e=>{e.preventDefault(),g({type:null})},children:__("Cancel","jetpack-protect")}),(0,m.jsx)(a.A,{isDestructive:!0,isLoading:y,onClick:async t=>{t.preventDefault(),j(!0),await v.mutateAsync(e),g({type:null}),j(!1)},children:__("Ignore threat","jetpack-protect")})]})]})}},9671(e,t,s){"use strict";s.d(t,{A:()=>a});var r=s(7865),n=s(790);const a=()=>(0,n.jsxs)("svg",{width:"440",height:"367",viewBox:"0 0 440 367",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r.A.inProgressAnimation,children:[(0,n.jsxs)("g",{className:r.A.inProgressAnimation__el,children:[(0,n.jsx)("g",{filter:"url(#filter_wordpress_el)",children:(0,n.jsx)("rect",{className:"rect-1",x:"40",y:"211",width:"360",height:"116",rx:"4",fill:"white"})}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M127 269C127 253.572 114.428 241 99 241C83.544 241 71 253.572 71 269C71 284.456 83.544 297 99 297C114.428 297 127 284.456 127 269ZM92.784 284.036L83.236 258.416C84.776 258.36 86.512 258.192 86.512 258.192C87.912 258.024 87.744 255.028 86.344 255.084C86.344 255.084 82.284 255.392 79.708 255.392C79.204 255.392 78.672 255.392 78.084 255.364C82.536 248.532 90.236 244.108 99 244.108C105.524 244.108 111.46 246.544 115.94 250.66C114.036 250.352 111.32 251.752 111.32 255.084C111.32 256.898 112.286 258.455 113.372 260.205L113.372 260.205C113.527 260.454 113.683 260.706 113.84 260.964C114.82 262.672 115.38 264.772 115.38 267.852C115.38 272.024 111.46 281.852 111.46 281.852L102.976 258.416C104.488 258.36 105.272 257.94 105.272 257.Line truncated
__("Show %s more","jetpack-protect"),f):(0,n.sprintf)(/* translators: %s: Number of hide items */
__("Hide %s items","jetpack-protect"),f)})})]})]})}},59(e,t,s){"use strict";s.d(t,{Ay:()=>v,Me:()=>d.A,s$:()=>u.A});var r=s(7425),n=s(6427),a=s(7723),i=s(3109),o=s(5673),c=s(5462),l=s(1609),d=s(5498),u=s(7366),h=s(665),p=s(43),m=s(790);const __=a.__,f=({children:e})=>(0,m.jsx)("ul",{className:h.A.navigation,role:"menu",children:e}),g=({children:e,data:t})=>{const s=(0,l.useRef)(void 0),[a,d]=(0,l.useState)(!1),u=t?.items?.find(e=>e?.id===t?.selectedItem)??{label:__("See all results","jetpack-protect")},{label:p,icon:f}=u,g=(0,l.useCallback)(()=>{d(e=>!e)},[]);return(0,m.jsxs)("button",{className:h.A["navigation-dropdown-button"],onClick:g,ref:s,children:[(0,m.jsxs)("div",{className:h.A["navigation-dropdown-label"],children:[f&&(0,m.jsx)(i.A,{icon:f,className:h.A["navigation-dropdown-icon"]}),(0,m.jsx)(r.Ay,{children:p})]}),(0,m.jsx)(i.A,{icon:a?c.A:o.A,size:32}),(0,m.jsx)(n.Popover,{position:"bottom center",anchorRef:s?.current,inline:!0,children:(0,m.jsx)("div",{style:{display:a?"block":"none",width:s?.current?.getBoundingClientRect?.()?.width},children:e})})]})},v=({children:e,selected:t,onSelect:s,mode:r="list"})=>{const n=(0,p.A)({selected:t,onSelect:s}),a=(e=>{switch(e){case"list":default:return f;case"dropdown":return g}})(r);return(0,m.jsx)(p._.Provider,{value:{...n,mode:r},children:(0,m.jsx)(a,{data:n,children:e})})}},7366(e,t,s){"use strict";s.d(t,{A:()=>d});var r=s(3022),n=s(1609),a=s(9278),i=s(1549),o=s(665),c=s(43),l=s(790);const d=({id:e,label:t,icon:s,badge:d,disabled:u,onClick:h,onKeyDown:p,onFocus:m,checked:f})=>{const g=(0,n.useContext)(c._),v=g?.selectedItem===e,x=g?.registerItem,y=g?.registerRef,j=g?.handleClickItem,b=g?.handleKeyDownItem,w=g?.handleFocusItem,A=(0,r.A)(o.A["navigation-item"],{[o.A.clickable]:!u,[o.A.selected]:v}),k=(0,n.useCallback)(t=>{h?.(t),j?.(e)},[j,e,h]),_=(0,n.useCallback)(e=>{p?.(e),b?.(e)},[b,p]),C=(0,n.useCallback)(t=>{y(t,e)},[y,e]),S=(0,n.useCallback)(t=>{m?.(t),w?.(e)},[w,e,m]);return(0,n.useEffect)(()=>{x({id:e,disabled:u,label:t,icon:s})},[]),(0,l.jsxs)("li",{className:A,onClick:u?null:k,onKeyDown:_,onFocus:u?null:S,role:"menuitem",tabIndex:u?-1:0,ref:C,children:[(0,l.jsx)(i.A,{icon:s,children:t}),(0,l.jsx)(a.A,{count:d,checked:f})]})}},1549(e,t,s){"use strict";s.d(t,{A:()=>u});var r=s(7425),n=s(3109),a=s(3022),i=s(8120),o=s.n(i),c=s(665),l=s(790);const d=({icon:e,children:t,className:s})=>(0,l.jsxs)(r.Ay,{className:(0,a.A)(c.A["navigation-item-label"],s),children:[e&&(0,l.jsx)(n.A,{icon:e,className:c.A["navigation-item-icon"],size:28}),(0,l.jsx)("span",{className:c.A["navigation-item-label-content"],children:t})]});d.propTypes={icon:o().node,children:o().node.isRequired};const u=d},43(e,t,s){"use strict";s.d(t,{A:()=>a,_:()=>n});var r=s(1609);const n=(0,r.createContext)(),a=({selected:e,onSelect:t})=>{const[s,n]=(0,r.useState)([]),[a,i]=(0,r.useState)([]),[o,c]=(0,r.useState)(),l=(e,t)=>{const r=e-1,n=r<0?t:r,a=s[n];return a?.disabled?l(n,t):a},d=(e,t)=>{const r=e+1,n=r>t?0:r,a=s[n];return a?.disabled?d(n,t):a};return{selectedItem:e,handleClickItem:e=>{t(e)},handleKeyDownItem:r=>{const n=r?.code,i=s.findIndex(t=>t?.id===e),c=s.length-1;let u;if("ArrowUp"===n){const e=l(i,c);u=e?.id}else if("ArrowDown"===n){const e=d(i,c);u=e?.id}else"Enter"!==n&&"Space"!==n||!o||(u=o);if(u){const e=a[u];e?.focus(),t(u)}},handleFocusItem:e=>{c(e)},registerRef:(e,t)=>{i(s=>!s[t]&&e?{...s,[t]:e}:s)},registerItem:e=>{n(t=>{const s=[...t],r=e?.id,n=s.findIndex(e=>e?.id===r);return n>=0?s[n]=e:s.push(e),s})},items:s}}},3041(e,t,s){"use strict";s.d(t,{A:()=>p});var r=s(7723),n=s(3109),a=s(4699),i=s(8901),o=s(1489),c=s(8847),l=s(1609),d=s(4537),u=s(3827),h=s(790);const __=r.__,p=({dismissable:e=!1,duration:t=null,floating:s=!1,message:r,type:p="success"})=>{const{clearNotice:m}=(0,d.A)();let f;switch(p){case"success":f=i.A;break;case"error":f=a.A;break;default:f=c.A}const g=(0,l.useCallback)(()=>{m()},[m]);return(0,l.useEffect)(()=>{let e;return t&&(e=setTimeout(m,t)),()=>clearTimeout(e)},[m,t,r]),(0,h.jsxs)("div",{className:`${u.A.notice} ${u.A[`notice--${p}`]} ${s?u.A["notice--floating"]:""}`,children:[(0,h.jsx)("div",{className:u.A.notice__icon,children:(0,h.jsx)(n.A,{icon:f})}),(0,h.jsx)("div",{className:u.A.notice__message,children:r}),e&&(0,h.jsx)("button",{className:u.A.notice__close,"aria-label":__("Dismiss notice.","jetpack-protect"),onClick:g,children:(0,h.jsx)(n.A,{icon:o.A})})]})}},4254(e,t,s){"use strict";s.d(t,{A:()=>c});var r=s(1330),n=s(7723),a=s(1609),i=s(1936),o=s(790);const __=n.__,c=({id:e,anchor:t,position:s})=>{const{stepsCount:n,currentStep:c,currentStepCount:l,completeCurrentStep:d,completeAllCurrentSteps:u}=(0,i.Ay)(),{setRenderedSteps:h}=(0,a.useContext)(i.OC);return(0,a.useEffect)(()=>(h(t=>[...t,e]),()=>{h(t=>t.filter(t=>t!==e))}),[e,h]),c?.id!==e?null:(0,o.jsx)(r.A,{anchor:t,title:c.title,noArrow:!1,children:c.description,buttonContent:l<n?__("Next","jetpack-protect"):__("Finish","jetpack-protect",0),onClick:l<n?d:u,onClose:u,position:s,step:l,totalStLine truncated
__("Threat fixed %s","jetpack-protect"),(0,l.dateI18n)("M j, Y",t)):"ignored"===s?__("Threat ignored","jetpack-protect"):null,[s,t]);return e&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(i.Ay,{className:j.A["accordion-header-status"],children:[(0,u.sprintf)(/* translators: %s: First detected date */
__("Threat found %s","jetpack-protect"),(0,l.dateI18n)("M j, Y",e)),r&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:j.A["accordion-header-status-separator"]}),(0,b.jsx)("span",{className:j.A[`is-${s}`],children:r})]})]}),["fixed","ignored"].includes(s)&&(0,b.jsx)(k,{status:s})]})},k=({status:e})=>(0,b.jsx)("div",{className:`${j.A["status-badge"]} ${j.A[e]}`,children:"fixed"===e?__("Fixed","jetpack-protect"):__("Ignored","jetpack-protect",0)}),_=({id:e,title:t,label:s,icon:l,fixable:u,severity:k,children:_,firstDetected:C,fixedOn:S,onOpen:N,status:M,hideAutoFixColumn:E=!1})=>{const{open:L,setOpen:P}=(0,v.useContext)(w),R=L===e,{isThreatFixInProgress:z,isThreatFixStale:O}=(0,y.Ay)(),F=(0,v.useCallback)(()=>{R||N?.(),P(t=>t===e?null:e)},[R,N,P,e]),[I]=(0,a.A)(["sm","lg"],[null,"<"]);return(0,b.jsxs)("div",{className:j.A["accordion-item"],children:[(0,b.jsxs)("button",{className:j.A["accordion-header"],onClick:F,children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)(i.Ay,{className:j.A["accordion-header-label"],mb:1,children:[(0,b.jsx)(h.A,{icon:l,className:j.A["accordion-header-label-icon"]}),s]}),(0,b.jsx)(i.Ay,{className:j.A["accordion-header-description"],variant:R?"title-small":"body",children:t}),["fixed","ignored"].includes(M)&&(0,b.jsx)(A,{firstDetected:C,fixedOn:S,status:M})]}),(0,b.jsx)("div",{children:(0,b.jsx)(o.Z6,{severity:k})}),!E&&u&&(0,b.jsxs)("div",{children:[(T=z(e),D=O(e),D?(0,b.jsx)(n.A,{className:j.A["icon-tooltip"],iconClassName:j.A["icon-tooltip__icon"],iconSize:20,placement:"top",hoverShow:!0,children:(0,b.jsx)(i.Ay,{className:j.A["icon-tooltip__content"],children:(0,d.createInterpolateElement)(__("The fixer is taking longer than expected. Please try again or <supportLink>contact support</supportLink>.","jetpack-protect"),{supportLink:(0,b.jsx)(c.ExternalLink,{className:j.A["support-link"],href:x.NW})})})}):T?(0,b.jsx)(r.A,{color:"black"}):(0,b.jsx)(h.A,{icon:p.A,className:j.A["icon-check"],size:28})),I&&(0,b.jsx)("span",{children:__("Auto-fix","jetpack-protect")})]}),(0,b.jsx)("div",{className:j.A["accordion-header-button"],children:(0,b.jsx)(h.A,{icon:R?f.A:m.A,size:38})})]}),(0,b.jsx)("div",{className:(0,g.A)(j.A["accordion-body"],{[j.A["accordion-body-open"]]:R,[j.A["accordion-body-close"]]:!R}),"aria-hidden":!R,children:_})]});var T,D},C=({children:e})=>{const[t,s]=(0,v.useState)();return(0,b.jsx)(w.Provider,{value:{open:t,setOpen:s},children:(0,b.jsx)("div",{className:j.A.accordion,children:e})})}},5409(e,t,s){"use strict";s.d(t,{A:()=>i});var r=s(3287),n=s(5925),a=s(790);function i({children:e,redirect:t="/"}){const{hasPlan:s}=(0,n.Ay)();return s?e:(0,a.jsx)(r.C5,{to:t,replace:!0})}},9374(e,t,s){"use strict";s.d(t,{A:()=>m});var r=s(1112),n=s(9245),a=s(489),i=s(9384),o=s(7723),c=s(1609),l=s(740),d=s(4537),u=s(5925),h=s(9701),p=s(790);const __=o.__,m=()=>{const{showErrorNotice:e}=(0,d.A)(),{recordEvent:t}=(0,l.A)(),{upgradePlan:s,isLoading:o}=(0,u.Ay)(),{handleRegisterSite:m,registrationError:f}=(0,i.useConnection)({from:"protect",skipUserConnection:!0,redirectUri:"admin.php?page=jetpack-protect"}),[g,v]=(0,c.useState)(!1),[x,y]=(0,c.useState)(!1),{jetpackScan:j}=(0,h.A)(),{pricingForUi:b}=j,{introductoryOffer:w,currencyCode:A="USD"}=b,k=b.cost?Math.ceil(b.cost/12*100)/100:null,_=w?.costPerInterval?Math.ceil(w.costPerInterval/12*100)/100:null,C=(0,c.useCallback)(()=>{y(!0),t("jetpack_protect_pricing_table_get_scan_link_click"),s()},[t,s]),S=(0,c.useCallback)(async()=>{v(!0),t("jetpack_protect_connected_product_activated");try{await m()}catch{e(__("Could not connect site.","jetpack-protect")),v(!1)}},[m,t,e]),N={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:__("Account 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(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(n.Ay,{...N,children:[(0,p.jsxs)(n.N0,{primary:!0,children:[(0,p.jsxs)(n.i7,{children:[(0,p.jsx)(a.A,{price:k,offPrice:_,leyend:__("/month, billed yearly","jetpack-protect"),currency:A,hideDiscountLabel:!1}),(0,p.jsx)(r.A,{fullWidth:!0,onClick:C,isLoading:x,disabled:o||x,children:__("Get Jetpack Protect","jetpack-protect")})]}),(0,p.jsx)(n.eY,{isIncluded:!0,label:(0,p.jsx)("strong",{children:__("Line by line malware scanning","jetpack-protect")})}),(0,p.jsx)(n.eY,{isIncluded:!0,label:(0,p.jsx)("strong",{children:__("Plus on-demand manual scans","jetpack-protect")})}),(0,p.jsx)(n.eY,{isIncluded:!0,label:(0,p.jsx)("strong",{children:__("Automatic protection and rule updates","jetpack-protect")})}),(0,p.jsx)(n.eY,{isIncluded:!0}),(0,p.jsx)(n.eY,{isIncluded:!0}),(0,p.jsx)(n.eY,{isILine truncated
__("Jetpack Scan will update the vulnerable extension to a newer version %s.","jetpack-protect"),e.target):__("Jetpack Scan will update the vulnerable extension 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,a.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 u({threat:e,fixAllDialog:t,onCheckFix:s}){const[a,u]=(0,o.useState)(!0),h=(0,o.useCallback)(t=>{u(t.target.checked),s(t.target.checked,e)},[s,e]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:c.A.threat,children:[(0,l.jsx)(i.A,{icon:e.icon,className:c.A.threat__icon}),(0,l.jsxs)("div",{className:c.A.threat__summary,children:[(0,l.jsx)(r.Ay,{className:c.A.threat__summary__label,mb:1,children:e.label}),(0,l.jsx)(r.Ay,{className:c.A.threat__summary__title,children:d(e.fixable)})]}),(0,l.jsx)("div",{className:c.A.threat__severity,children:(0,l.jsx)(n.Z6,{severity:e.severity})}),t&&(0,l.jsx)("div",{className:c.A.threat__checkbox,children:(0,l.jsx)("input",{type:"checkbox",checked:a,onChange:h,value:e.id})})]})})}},9314(e,t,s){"use strict";s.d(t,{A:()=>f});var r=s(7425),n=s(6087),a=s(7723),i=s(1609),o=s(2425),c=s(5925),l=s(9701),d=s(4254),u=s(3535),h=s(4035),p=s(790);const __=a.__,_n=a._n,m=()=>(0,p.jsxs)("svg",{width:"80",height:"96",viewBox:"0 0 80 96",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("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"}),(0,p.jsx)("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"})]}),f=()=>{const{lastChecked:e}=(0,l.A)(),{hasPlan:t}=(0,c.Ay)(),{data:s}=(0,o.Ay)(),[f,g]=(0,i.useState)(null),v=(0,i.useMemo)(()=>e?(e=>{const t=new Date,s=6e4*t.getTimezoneOffset(),r=Math.floor((new Date(t.getTime()+s).getTime()-e)/1e3);let n=r/31536e3;return n>1?(0,a.sprintf)(
// translators: %s: number of years (e.g. "5 years ago")
_n("%s year ago","%s years ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=r/2592e3,n>1?(0,a.sprintf)(
// translators: %s: number of months (e.g. "5 months ago")
_n("%s month ago","%s months ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=r/86400,n>1?(0,a.sprintf)(
// translators: %s: number of days (e.g. "5 days ago")
_n("%s day ago","%s days ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=r/3600,n>1?(0,a.sprintf)(
// translators: %s: number of hours (e.g. "5 hours ago")
_n("%s hour ago","%s hours ago",Math.floor(n),"jetpack-protect"),Math.floor(n)):(n=r/60,n>1?(0,a.sprintf)(
// translators: %s: number of minutes (e.g. "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(0,p.jsxs)("div",{className:h.A.empty,children:[(0,p.jsx)(m,{}),(0,p.jsx)(r.H3,{weight:"bold",mt:8,children:__("Don't worry about a thing","jetpack-protect")}),(0,p.jsx)(r.Ay,{mb:4,children:v?(0,n.createInterpolateElement)((0,a.sprintf)(
// translators: %s: amount of time since the last scan (e.g. "5 minutes ago")
__("The last Protect scan ran <strong>%s</strong> and everything looked great.","jetpack-protect"),v),{strong:(0,p.jsx)("strong",{})}):__("No threats have been detected by the current scan.","jetpack-protect")}),t&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.A,{ref:g}),!(0,o.EV)(s)&&(0,p.jsx)(d.A,{id:"paid-daily-and-manual-scans",position:"bottom middle",anchor:f})]})]})}},5190(e,t,s){"use strict";s.d(t,{A:()=>f});var r=s(7425),n=s(1112),a=s(4437),i=s(7723),o=s(1609),c=s(740),l=s(5925),d=s(4114),u=s(4569),h=s(4035),p=s(790);const __=i.__,m=({description:e,fixedIn:t,icon:s,id:u,label:m,name:f,source:g,title:v,type:x})=>{const{recordEvent:y}=(0,c.A)(),{upgradePlan:j}=(0,l.Ay)(),b=(0,o.useCallback)(()=>{y("jetpack_protect_threat_list_get_scan_link_click"),j()},[y,j]),w=g?(0,p.jsx)(n.A,{variant:"link",isExternalLink:!0,weight:"regular",href:g,children:__("See more technical details of this threat","jetpack-protect")}):null;return(0,p.jsxs)(d.E,{id:u,label:m,title:v,icon:s,onOpen:(0,o.useCallback)(()=>{["core","plugin","theme"].includes(x)&&y(`jetpack_protect_${x}_threat_open`)},[y,x]),children:[e&&(0,p.jsxs)("div",{className:h.A["threat-section"],children:[(0,p.jsx)(r.Ay,{variant:"title-small",mb:2,children:__("What is the problem?","jetpack-protect")}),(0,p.jsx)(r.Ay,{mb:2,children:e}),w]}),t&&(0,p.jsxs)("div",{className:h.A["threat-section"],children:[(0,p.jsx)(r.Ay,{variant:"title-small",mb:2,children:__("How to fix it?","jetpack-protect")}),(0,p.jsx)(r.Ay,{mb:2,children:/* 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,i.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),f,t)}),(0,p.jsx)(a.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&&(0,p.jsx)("div",{className:h.A["threat-section"],children:w})]})},f=({list:e})=>(0,p.jsx)(u.A,{list:e,children:({currentItems:e})=>(0,p.jsx)(d.A,{children:e.map(({description:e,fixedIn:t,icon:s,id:r,label:n,name:a,source:i,table:o,title:c,type:l,version:d})=>(0,p.jsx)(m,{description:e,fixedIn:t,icon:s,id:r,label:n,name:a,source:i,table:o,title:c,type:l,version:d},r))})})},5661(e,t,s){"use strict";s.d(t,{A:()=>A});var r=s(8509),n=s(5918),a=s(442),i=s(7425),o=s(1112),c=s(7723),l=s(1609),d=s(2425),u=s(3657),h=s(1009),p=s(5925),m=s(4254),f=s(3535),g=s(9314),v=s(5190),x=s(9395),y=s(6742),j=s(4035),b=s(993),w=s(790);const __=c.__,A=()=>{const{hasPlan:e}=(0,p.Ay)(),{item:t,list:s,selected:A,setSelected:k}=(0,b.A)(),[_]=(0,a.A)("sm"),{isThreatFixInProgress:C,isThreatFixStale:S}=(0,u.Ay)(),{data:N}=(0,d.Ay)(),M=(0,d.EV)(N),E=(0,l.useMemo)(()=>s.filter(e=>{const t=parseInt(e.id);return e.fixable&&!C(t)&&!S(t)}),[s,C,S]),[L,P]=(0,l.useState)(null),[R,z]=(0,l.useState)(null),[O,F]=(0,l.useState)(null),[I,T]=(0,l.useState)(null),{setModal:D}=(0,h.A)(),H=(0,l.useCallback)(()=>{switch(A){case"all":return 1===s.length?__("All threats","jetpack-protect"):(0,c.sprintf)(/* translators: %s: count of threats found on the site. */
__("All %s threats","jetpack-protect"),s.length);case"core":return(0,c.sprintf)(/* translators: %1$s: count of WordPress threats found on the site, %2$s: singular or plural of "threats". */
__("%1$s WordPress %2$s","jetpack-protect"),s.length,1===s.length?"threat":"threats");case"files":return(0,c.sprintf)(/* translators: %1$s: count of file threats found on the site, %2$s: singular or plural of "threats". */
__("%1$s file %2$s","jetpack-protect"),s.length,1===s.length?"threat":"threats");case"database":return(0,c.sprintf)(/* translators: %1$s: count of database threats found on the site, %2$s: singular or plural of "threats". */
__("%1$s database %2$s","jetpack-protect"),s.length,1===s.length?"threat":"threats");default:return(0,c.sprintf)(/* translators: %1$s: Count of threats, %2$s: singular or plural of "threats", %3$s: name, %4$s: version */
__("%1$s %2$s in %3$s %4$s","jetpack-protect"),s.length,1===s.length?"threat":"threats",t?.name,t?.version)}},[A,s,t]);return(0,w.jsxs)(n.A,{fluid:!0,horizontalSpacing:0,horizontalGap:3,children:[(0,w.jsxs)(r.A,{lg:4,children:[(0,w.jsx)("div",{ref:P,children:(0,w.jsx)(x.A,{selected:A,onSelect:k})}),!M&&(0,w.jsx)(m.A,{id:e?"paid-scan-results":"free-scan-results",position:"top",anchor:L})]}),(0,w.jsx)(r.A,{lg:8,children:s?.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:j.A["list-header"],children:[(0,w.jsx)(i.hE,{className:j.A["list-title"],children:H()}),e&&(0,w.jsx)("div",{className:j.A["list-header__controls"],children:E.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(o.A,{ref:F,variant:"primary",onClick:(B=E,e=>{e.preventDefault(),D({type:"FIX_ALL_THREATS",props:{threatList:B}})}),children:(0,c.sprintf)(/* translators: Translates to Show auto fixers. %s: Number of fixable threats. */
__("Show auto fixers (%s)","jetpack-protect"),E.length)}),!M&&(0,w.jsx)(m.A,{id:"paid-fix-all-threats",position:_?"bottom right":"middle left",anchor:O}),(0,w.jsx)(f.A,{ref:T}),!M&&(0,w.jsx)(m.A,{id:"paid-daily-and-manual-scans",position:_?"bottom left":"middle left",anchor:I})]})})]}),e?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{ref:z,children:[(0,w.jsx)(y.A,{list:s}),(0,w.jsxs)("div",{className:j.A["manual-scan"],children:[(0,w.jsx)(i.Ay,{variant:"body-small",mb:4,children:__("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")}),(0,w.jsx)(f.A,{})]})]}),!M&&(0,w.jsx)(m.A,{id:"paid-understand-severity",position:"top",anchor:R})]}):(0,w.jsx)(v.A,{list:s})]}):(0,w.jsx)(g.A,{})})]});var B}},9395(e,t,s){"use strict";s.d(t,{A:()=>v});var r=s(442),n=s(7723),a=s(4699),i=s(8756),o=s(4532),c=s(2711),l=s(6257),d=s(6168),u=s(1609),h=s(740),p=s(5925),m=s(9701),f=s(59),g=s(790);const __=n.__,v=({selected:e,onSelect:t,sourceType:s="scan",statusFilter:n="all"})=>{const{hasPlan:v}=(0,p.Ay)(),{results:{plugins:x,themes:y},counts:{current:{threats:j,core:b,files:w,database:A}}}=(0,m.A)({sourceType:s,filter:{status:n}}),{recordEvent:k}=(0,h.A)(),[_]=(0,r.A)("lg","<"),C=(0,u.useCallback)(()=>{k("jetpack_protect_navigation_all_click")},[k]),S=(0,u.useCallback)(()=>{k("jetpack_protect_navigation_core_click")},[k]),N=(0,u.useCallback)(()=>{k("jetpack_protect_navigation_database_click")},[k]),M=(0,u.useCallback)(()=>{k("jetpack_protect_navigation_plugin_click")},[k]),E=(0,u.useCallback)(()=>{k("jetpack_protect_navigation_theme_click")},[k]),L=(0,u.useCallback)(()=>{k("jetpack_protect_navigation_file_click")},[k]),P=(0,u.useMemo)(()=>"fixed"===n?__("All fixed threats","jetpack-protect"):"ignored"===n?__("All ignored threats","jetpack-protect",0):__("All threats","jetpack-protect"),[n]);return(0,g.jsxs)(f.Ay,{selected:e,onSelect:t,mode:_?"dropdown":"list",children:[(0,g.jsx)(f.s$,{initial:!0,id:"all",label:P,icon:a.A,badge:j,disabled:j<=0,onClick:C,checked:!0}),(0,g.jsx)(f.s$,{id:"core",label:__("WordPress","jetpack-protect"),icon:d.A,badge:b,disabled:b<=0,onClick:S,checked:!0}),(0,g.jsx)(f.s$,{id:"database",label:__("Database","jetpack-protect"),icon:c.A,badge:A,disabled:A<=0,onClick:N,checked:!0}),(0,g.jsx)(f.Me,{label:__("Plugins","jetpack-protect"),icon:l.A,children:x.map(({name:e,threats:t,checked:s})=>(0,g.jsx)(f.s$,{id:e,label:e,checked:s,badge:t?.length,disabled:t?.length<=0,onClick:M},e))}),(0,g.jsx)(f.Me,{label:__("Themes","jetpack-protect"),icon:o.A,children:y.map(({name:e,threats:t,checked:s})=>(0,g.jsx)(f.s$,{id:e,label:e,checked:s,badge:t?.length,disabled:t?.length<=0,onClick:E},e))}),v&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(f.s$,{id:"files",label:__("Files","jetpack-protect"),icon:i.A,badge:w,disabled:w<=0,onClick:L,checked:!0})})]})}},4569(e,t,s){"use strict";s.d(t,{A:()=>h});var r=s(442),n=s(1112),a=s(7723),i=s(9558),o=s(8329),c=s(1609),l=s(4035),d=s(790);const __=a.__,u=({pageNumber:e,currentPage:t,onPageChange:s})=>{const r=(0,c.useMemo)(()=>t===e,[t,e]),i=(0,c.useCallback)(()=>{s(e)},[s,e]);return(0,d.jsx)(n.A,{size:"medium",className:r?null:l.A.unfocused,onClick:i,"aria-current":r?"page":void 0,"aria-label":(0,a.sprintf)(/* translators: %d: the page number (e.g. "Page 123") */
__("Page %d","jetpack-protect"),e),children:e})},h=({list:e,itemPerPage:t=10,children:s})=>{const[a]=(0,r.A)("sm"),[h,p]=(0,c.useState)(1),m=(0,c.useCallback)(()=>p(h-1),[h,p]),f=(0,c.useCallback)(()=>p(h+1),[h,p]),g=(0,c.useMemo)(()=>Math.ceil(e.length/t),[e,t]),v=(0,c.useMemo)(()=>{const s=h*t,r=s-t;return e.slice(r,s)},[h,e,t]),x=(0,c.useMemo)(()=>{if(a)return[h];const e=[1];return h>3&&g>4&&e.push("…"),1===h?e.push(h+1,h+2,h+3):2===h?e.push(h,h+1,h+2):h<g-1?e.push(h-1,h,h+1):h===g-1?(h>3&&e.push(h-2),h>2&&e.push(h-1),e.push(h)):h===g&&(h>=5&&e.push(h-3),h>=4&&e.push(h-2),e.push(h-1)),e[e.length-1]<g-1?(e.push("…"),e.push(g)):e[e.length-1]<g&&e.push(g),e.filter(e=>e<=g||isNaN(e))},[h,a,g]);return(0,d.jsxs)(d.Fragment,{children:[s({currentItems:v}),g>1&&(0,d.jsxs)("nav",{role:"navigation","aria-label":__("Threat list pages","jetpack-protect"),className:l.A["pagination-container"],children:[(0,d.jsx)(n.A,{onClick:m,disabled:1===h,variant:"link",icon:i.A,iconSize:24,"aria-label":__("Previous page","jetpack-protect")}),x.map((e,t)=>"number"==typeof e?(0,d.jsx)(u,{pageNumber:e,currentPage:h,onPageChange:p},e):(0,d.jsx)("span",{children:e},`ellipses_${t}`)),(0,d.jsx)(n.A,{onClick:f,disabled:h===g,variant:"link",icon:o.A,iconSize:24,"aria-label":__("Next page","jetpack-protect")})]})]})}},6742(e,t,s){"use strict";s.d(t,{A:()=>y});var r=s(442),n=s(7425),a=s(1112),i=s(4252),o=s(5734),c=s(4741),l=s(7723),d=s(1609),u=s(740),h=s(3657),p=s(1009),m=s(2006),f=s(4569),g=s(4035),v=s(790);const __=l.__,x=({context:e,description:t,diff:s,extension:r,signature:f,filename:x,firstDetected:y,fixedIn:j,fixedOn:b,icon:w,fixable:A,id:k,label:_,name:C,source:S,title:N,details:M,type:E,severity:L,status:P,hideAutoFixColumn:R=!1})=>{const{setModal:z}=(0,p.A)(),{recordEvent:O}=(0,u.A)(),{isThreatFixInProgress:F,isThreatFixStale:I}=(0,h.Ay)(),T=F(k),D=I(k),H=S?(0,v.jsx)(a.A,{variant:"link",isExternalLink:!0,weight:"regular",href:S,children:__("See more technical details of this threat","jetpack-protect")}):null;return(0,v.jsxs)(m.S,{id:k,label:_,title:N,icon:w,fixable:A,severity:L,firstDetected:y,fixedOn:b,status:P,onOpen:(0,d.useCallback)(()=>{["core","plugin","theme","file","database"].includes(E)&&O(`jetpack_protect_${E}_threat_open`)},[O,E]),hideAutoFixColumn:R,children:[t&&(0,v.jsxs)("div",{className:g.A["threat-section"],children:[(0,v.jsx)(n.Ay,{variant:"title-small",mb:2,children:"fixed"!==P?__("What is the problem?","jetpack-protect"):__("What was the problem?","jetpack-protect",0)}),(0,v.jsx)(n.Ay,{mb:2,children:t}),H]}),(x||e||s||M)&&(0,v.jsx)(n.Ay,{variant:"title-small",mb:2,children:__("The technical details","jetpack-protect")}),x&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(n.Ay,{mb:2,children:/* translators: filename follows in separate line; e.g. "PHP.Injection.5 in: `post.php`" */
__("Threat found in file:","jetpack-protect")}),(0,v.jsx)("pre",{className:g.A["threat-filename"],children:x})]}),e&&(0,v.jsx)(o.A,{context:e}),M&&(0,v.jsx)(c.A,{details:M}),s&&(0,v.jsx)(i.A,{diff:s}),j&&"fixed"!==P&&(0,v.jsxs)("div",{className:g.A["threat-section"],children:[(0,v.jsx)(n.Ay,{variant:"title-small",mb:2,children:__("How to fix it?","jetpack-protect")}),(0,v.jsx)(n.Ay,{mb:2,children:/* 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,l.sprintf)(__("Update to %1$s %2$s","jetpack-protect"),C,j)})]}),!t&&(0,v.jsx)("div",{className:g.A["threat-section"],children:H}),["ignored","current"].includes(P)&&(0,v.jsxs)("div",{className:g.A["threat-footer"],children:["ignored"===P&&(0,v.jsx)(a.A,{isDestructive:!0,variant:"secondary",onClick:e=>{e.preventDefault(),z({type:"UNIGNORE_THREAT",props:{id:k,label:_,title:N,icon:w,severity:L}})},children:__("Unignore threat","jetpack-protect")}),"current"===P&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a.A,{isDestructive:!0,variant:"secondary",onClick:e=>{e.preventDefault(),z({type:"IGNORE_THREAT",props:{id:k,label:_,title:N,icon:w,severity:L}})},disabled:T||D,children:__("Ignore threat","jetpack-protect")}),A&&(0,v.jsx)(a.A,{disabled:T||D,onClick:e=>{e.preventDefault(),z({type:"FIX_THREAT",props:{id:k,signature:f,extension:r,fixable:A,label:_,icon:w,severity:L}})},children:__("Fix threat","jetpack-protect")})]})]})]})},y=({list:e,hideAutoFixColumn:t=!1})=>{const[s]=(0,r.A)(["sm","lg"],[null,"<"]);return(0,v.jsxs)(v.Fragment,{children:[!s&&(0,v.jsxs)("div",{className:g.A["accordion-header"],children:[(0,v.jsx)("span",{children:__("Details","jetpack-protect")}),(0,v.jsx)("span",{children:__("Severity","jetpack-protect")}),!t&&(0,v.jsx)("span",{children:__("Auto-fix","jetpack-protect")}),(0,v.jsx)("span",{})]}),(0,v.jsx)(f.A,{list:e,children:({currentItems:e})=>(0,v.jsx)(m.A,{children:e.map(({context:e,description:s,diff:r,extension:n,signature:a,filename:i,firstDetected:o,fixedIn:c,fixedOn:l,icon:d,fixable:u,id:h,label:p,name:m,severity:f,source:g,details:y,title:j,type:b,version:w,status:A})=>(0,v.jsx)(x,{context:e,description:s,diff:r,extension:n,signature:a,filename:i,firstDetected:o,fixedIn:c,fixedOn:l,icon:d,fixable:u,id:h,label:p,name:m,severity:f,source:g,details:y,title:j,type:b,version:w,status:A,hideAutoFixColumn:t},h))})})]})}},993(e,t,s){"use strict";s.d(t,{A:()=>h});var r=s(8756),n=s(4532),a=s(2711),i=s(6257),o=s(6168),c=s(1609),l=s(9701);const d=(e,t)=>t.severity-e.severity,u=(e,t)=>"object"==typeof e&&0===Object.keys(e).length?[]:Array.isArray(e)?e.map(e=>u(e,t)).flat():e?.threats.map(s=>({...s,...e,...t})),h=({source:e,status:t}={source:"scan",status:"all"})=>{const[s,h]=(0,c.useState)("all"),{results:{plugins:p,themes:m,core:f,files:g,database:v}}=(0,l.A)({sourceType:e,filter:{status:t,key:s}}),{unsortedList:x,item:y}=(0,c.useMemo)(()=>{if(s&&"all"!==s){switch(s){case"core":return{unsortedList:u(f,{icon:o.A}),item:f};case"files":return{unsortedList:u({threats:g},{icon:r.A}),item:g};case"database":return{unsortedList:u({threats:v},{icon:a.A}),item:v}}const e=p.find(e=>e?.name===s);if(e)return{unsortedList:u(e,{icon:i.A}),item:e};const t=m.find(e=>e?.name===s);if(t)return{unsortedList:u(t,{icon:n.A}),item:t}}return{unsortedList:[...u(f,{icon:o.A}),...u(p,{icon:i.A}),...u(m,{icon:n.A}),...u({threats:g},{icon:r.A}),...u({threats:v},{icon:a.A})],item:null}},[f,v,g,p,s,m]),j=e=>e.name&&e.version?`${e.name} (${e.version})`:e.filename?e.filename.split("/").pop():e.table?e.table:void 0,b=(0,c.useMemo)(()=>x.sort(d).map(e=>({label:j(e),...e})),[x]);return(0,c.useEffect)(()=>{"all"!==s&&"all"!==t&&0===b.length&&h("all")},[s,t,y,b]),{item:y,list:b,selected:s,setSelected:h}}},9623(e,t,s){"use strict";s.d(t,{A:()=>m});var r=s(7425),n=s(1112),a=s(8418),i=s(7723),o=s(3109),c=s(1609),l=s(7208),d=s(1009),u=s(4031),h=s(999),p=s(790);const __=i.__,m=({id:e,title:t,label:s,icon:i,severity:m})=>{const{setModal:f}=(0,d.A)(),g=(0,l.A)(),[v,x]=(0,c.useState)(!1);return(0,p.jsxs)(u.A,{children:[(0,p.jsx)(r.Ay,{variant:"title-medium",mb:2,children:__("Do you really want to unignore this threat?","jetpack-protect")}),(0,p.jsx)(r.Ay,{mb:3,children:__("Jetpack will unignore the threat:","jetpack-protect")}),(0,p.jsxs)("div",{className:h.A.threat,children:[(0,p.jsx)(o.A,{icon:i,className:h.A.threat__icon}),(0,p.jsxs)("div",{className:h.A.threat__summary,children:[(0,p.jsx)(r.Ay,{className:h.A.threat__summary__label,mb:1,children:s}),(0,p.jsx)(r.Ay,{className:h.A.threat__summary__title,children:t})]}),(0,p.jsx)("div",{className:h.A.threat__severity,children:(0,p.jsx)(a.Z6,{severity:m})})]}),(0,p.jsxs)("div",{className:h.A.footer,children:[(0,p.jsx)(n.A,{variant:"secondary",onClick:e=>{e.preventDefault(),f({type:null})},children:__("Cancel","jetpack-protect")}),(0,p.jsx)(n.A,{isDestructive:!0,isLoading:v,onClick:async t=>{t.preventDefault(),x(!0),await g.mutateAsync(e),f({type:null}),x(!1)},children:__("Unignore threat","jetpack-protect")})]})]})}},4031(e,t,s){"use strict";s.d(t,{A:()=>i});var r=s(9384),n=s(1221),a=s(790);const i=({children:e})=>{const{isUserConnected:t,hasConnectedOwner:s}=(0,r.useConnection)();return t&&s?e:(0,a.jsx)(n.A,{})}},1221(e,t,s){"use strict";s.d(t,{A:()=>u});var r=s(7425),n=s(1112),a=s(9384),i=s(7723),o=s(1009),c=s(3041),l=s(3135),d=s(790);const __=i.__,u=()=>{const{setModal:e}=(0,o.A)(),{userIsConnecting:t,handleConnectUser:s}=(0,a.useConnection)({redirectUri:"admin.php?page=jetpack-protectLine truncated
// Translators: %d: the number of threats that could not be fixed.
const t=_n("A threat could not be fixed.","%d threats could not be fixed.",e.length,"jetpack-protect");m((0,i.sprintf)(t,e.length))}else if(t.length>0){
// Translators: %d: the number of threats fixed.
const e=_n("Threat fixed successfully.","%d threats fixed successfully.",t.length,"jetpack-protect");p((0,i.sprintf)(e,t.length))}},[m,p]),v=(0,n.I)({queryKey:[l.X9,e],queryFn:async()=>{const t=await c.A.getFixersStatus(e),r=s.getQueryData([l.X9]);if(!1===t.ok)throw new Error(t.error);const n=[],a=[];return Object.keys(t.threats||{}).forEach(e=>{const i=t.threats[e];if(!0===r.ok){const t=r.threats?.[e];t&&"in_progress"===t.status&&("in_progress"===i.status?!(0,d.UM)(t.lastUpdated)&&(0,d.UM)(i.lastUpdated)&&a.push(e):(s.invalidateQueries({queryKey:[l.Gs]}),s.invalidateQueries({queryKey:[l.Ss]}),"fixed"===i.status?n.push(e):a.push(e)))}}),g(a,n),t},retry:!1,refetchInterval(e){if(!t||!e.state.data)return!1;const s=e.state.data;if(!0===s.ok){if(Object.values(s.threats).some(e=>"status"in e&&"in_progress"===e.status&&!(0,d.UM)(e.lastUpdated)))return e.state.dataUpdateCount<5?5e3:15e3}return!1},initialData:h,enabled:f});return(0,o.useEffect)(()=>{v.isError&&v.error&&(s.setQueryData([l.X9],h),m(__("An error occurred while fetching fixers status.","jetpack-protect")))},[v.isError,v.error,s,m]),v}},1859(e,t,s){"use strict";s.d(t,{A:()=>l});var r=s(9384),n=s(5104),a=s(6185),i=s.n(a),o=s(295),c=s(8140);function l(){const{isRegistered:e}=(0,r.useConnection)({autoTrigger:!1,from:"protect",redirectUri:null,skipUserConnection:!0});return(0,n.I)({queryKey:[c.Ss],queryFn:o.A.getScanHistory,initialData:i()(window.jetpackProtectInitialState?.scanHistory),enabled:e})}},1228(e,t,s){"use strict";s.d(t,{A:()=>l});var r=s(7115),n=s(4613),a=s(7723),i=s(295),o=s(8140),c=s(4537);const __=a.__;function l(){const e=(0,r.jE)(),{showSuccessNotice:t,showErrorNotice:s}=(0,c.A)();return(0,n.n)({mutationFn:async t=>{const s=await i.A.ignoreThreat(t);return await Promise.all([e.refetchQueries({queryKey:[o.Gs]}),e.refetchQueries({queryKey:[o.Ss]})]),s},onSuccess:()=>{t(__("Threat ignored.","jetpack-protect"))},onError:()=>{s(__("An error occurred ignoring the threat.","jetpack-protect"))}})}},2425(e,t,s){"use strict";s.d(t,{Ay:()=>u,EV:()=>d});var r=s(9384),n=s(5104),a=s(7115),i=s(6185),o=s.n(i),c=s(295),l=s(8140);const d=e=>{const t=!e?.lastChecked&&[l._R,l.Mm].includes(e?.status),s=l.vI.indexOf(e?.status)>=0;return t||s};function u({usePolling:e}={}){const t=(0,a.jE)(),{isRegistered:s}=(0,r.useConnection)({autoTrigger:!1,from:"protect",redirectUri:null,skipUserConnection:!0});return(0,n.I)({queryKey:[l.Gs],queryFn:async()=>{const e=await c.A.getScanStatus();return(e=>{if("idle"!==e.status)return!1;const t=Number(localStorage.getItem("last_requested_scan"));return!!t&&(!(t<Date.now()-3e5)&&!(new Date(e.lastChecked+" UTC").getTime()>t))})(e)?t.getQueryData([l.Gs]):e},initialData:o()(window?.jetpackProtectInitialState?.status),enabled:s,refetchInterval(t){if(!e)return!1;const s=t.state.dataUpdateCount<5?5e3:15e3;return!!d(t.state.data)&&s}})}},240(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(7115),n=s(4613),a=s(295),i=s(8140);function o(){const e=(0,r.jE)();return(0,n.n)({mutationFn:a.A.scan,onMutate(){e.setQueryData([i.Gs],e=>({...e,status:i.JD}))},onSuccess(){e.setQueryData([i.Gs],e=>({...e,status:i.JD})),localStorage.setItem("last_requested_scan",Date.now().toString())},onError(){e.invalidateQueries({queryKey:[i.Gs]})}})}},7208(e,t,s){"use strict";s.d(t,{A:()=>l});var r=s(7115),n=s(4613),a=s(7723),i=s(295),o=s(8140),c=s(4537);const __=a.__;function l(){const e=(0,r.jE)(),{showSuccessNotice:t,showErrorNotice:s}=(0,c.A)();return(0,n.n)({mutationFn:async t=>{const s=await i.A.unIgnoreThreat(t);return await Promise.all([e.refetchQueries({queryKey:[o.Gs]}),e.refetchQueries({queryKey:[o.Ss]})]),s},onSuccess:()=>{t(__("Threat is no longer ignored.","jetpack-protect"))},onError:()=>{s(__("An error occurred un-ignoring the threat.","jetpack-protect"))}})}},6829(e,t,s){"use strict";s.d(t,{A:()=>o});var r=s(9384),n=s(5104),a=s(295),i=s(8140);function o(){const{isRegistered:e}=(0,r.useConnection)({autoTrigger:!1,from:"protect",redirectUri:null,skipUserConnection:!0});return(0,n.I)({queryKey:[i.Oz],queryFn:a.A.checkPlan,initialData:!!window?.jetpackProtectInitialState?.hasPlan,enabled:e})}},7651(e,t,s){"use strict";s.d(t,{A:()=>c});var r=s(5104),n=s(6185),a=s.n(n),i=s(295),o=s(8140);function c(){return(0,r.I)({queryKey:[o.kD],queryFn:i.A.getProductData,initialData:a()(window?.jetpackProtectInitialState?.jetpackScan)})}},9481(e,t,s){"use strict";s.d(t,{A:()=>l});var r=s(7115),n=s(4613),a=s(7723),i=s(295),o=s(8140),c=s(4537);const __=a.__;function l(){const e=(0,r.jE)(),{showSuccessNotice:t,showErrorNotice:s}=(0,c.A)();return(0,n.n)({mutationFn:i.A.toggleWaf,onSuccess:()=>{t(__("WAF module enabled.","jetpack-protect"))},onError:()=>{s(__("An error occurred enabling the WAF module.","jetpack-protect"))},onSettled:()=>{e.invalidateQueries({queryKey:[o.yN]})}})}},3990(e,t,s){"use strict";s.d(t,{A:()=>h});var r=s(7115),n=s(4613),a=s(6087),i=s(7723),o=s(6185),c=s.n(o),l=s(295),d=s(8140),u=s(4537);const __=i.__;function h(){const e=(0,r.jE)(),{showSuccessNoticeLine truncated
__("Blocked requests last %1$d %2$s","jetpack-protect"),e,t)}):(0,m.jsxs)("span",{className:p.A["stat-card-label"],children:[(0,m.jsx)("span",{children:__("Blocked requests","jetpack-protect")}),(0,m.jsx)("br",{}),(0,m.jsx)("span",{children:(0,i.sprintf)(/* translators: Translates to Last %1$d: Number of units. %2$s: Unit of time (hours, days, etc) */
__("Last %1$d %2$s","jetpack-protect"),e,t)})]}),[v]),_=(0,d.useMemo)(()=>({...w,icon:(0,m.jsx)(A,{icon:l.A}),label:(0,m.jsx)(k,{period:24,units:"hours"}),value:b?0:y}),[w,A,k,b,y]),C=(0,d.useMemo)(()=>({...w,icon:(0,m.jsx)(A,{icon:c.A}),label:(0,m.jsx)(k,{period:30,units:"days"}),value:b?0:j}),[w,A,k,b,j]);return(0,m.jsxs)("div",{className:p.A["stat-card-wrapper"],children:[(0,m.jsx)(a.A,{..._}),(0,m.jsx)(a.A,{...C})]})}},5546(e,t,s){"use strict";s.d(t,{A:()=>h});var r=s(597),n=s(7425),a=s(7723),i=s(1609),o=s(5925),c=s(2394),l=s(3969),d=s(2345),u=s(790);const __=a.__,h=()=>{const{hasPlan:e}=(0,o.Ay)(),{config:{jetpackWafAutomaticRules:t,jetpackWafIpBlockListEnabled:s,jetpackWafIpAllowListEnabled:a,automaticRulesAvailable:h,bruteForceProtection:p},wafSupported:m}=(0,c.A)(),f=s||a,g=(0,i.useMemo)(()=>({allRules:m&&t&&f,automaticRules:m&&t&&!f,manualRules:m&&!t&&f,noRules:m&&!t&&!f}),[m,t,f]),v=(0,i.useMemo)(()=>{const e=[];return m&&p&&e.push(__("Brute force protection is active.","jetpack-protect")),g.noRules&&e.push(__("There are no firewall rules applied.","jetpack-protect")),g.automaticRules&&e.push(__("Automatic firewall rules apply.","jetpack-protect")),g.manualRules&&e.push(__("Only manual IP list rules apply.","jetpack-protect")),g.allRules&&e.push(__("All firewall rules apply.","jetpack-protect")),e.join(" ")},[m,p,g]),x=(0,i.useMemo)(()=>h?__("The free version of the firewall does not receive updates to automatic security rules.","jetpack-protect",0):__("The free version of the firewall only allows for use of manual rules.","jetpack-protect"),[h]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:d.A["firewall-subheading"],children:[(0,u.jsx)(n.Ay,{children:v}),!e&&(g.automaticRules||g.manualRules||g.allRules)?(0,u.jsx)(r.A,{className:d.A["icon-tooltip"],iconCode:"help-outline",iconSize:20,iconClassName:d.A["icon-tooltip__icon"],placement:"top",hoverShow:!0,children:(0,u.jsx)(n.Ay,{children:x})}):null]}),!e&&m&&(0,u.jsx)(l.A,{})]})}},3969(e,t,s){"use strict";s.d(t,{A:()=>u});var r=s(1112),n=s(7723),a=s(1609),i=s(740),o=s(5925),c=s(2394),l=s(2345),d=s(790);const __=n.__,u=()=>{const{recordEvent:e}=(0,i.A)(),{adminUrl:t}=window.jetpackProtectInitialState||{},s=t+"#/firewall",{upgradePlan:n}=(0,o.Ay)({redirectUrl:s}),{config:{automaticRulesAvailable:u}}=(0,c.A)(),h=(0,a.useCallback)(()=>{e("jetpack_protect_waf_header_get_scan_link_click"),n()},[e,n]);return(0,d.jsx)(r.A,{className:l.A["upgrade-prompt-button"],onClick:h,children:u?__("Upgrade to update automatic security rules","jetpack-protect",0):__("Upgrade to enable automatic firewall protection","jetpack-protect")})}},1671(e,t,s){"use strict";s.d(t,{A:()=>P});var r=s(8509),n=s(5918),a=s(442),i=s(7425),o=s(8316),c=s(1112),l=s(4437),d=s(7656),u=s(6427),h=s(6087),p=s(7723),m=s(3109),f=s(5995),g=s(6154),v=s.n(g),x=s(1609),y=s(1186),j=s(4491),b=s(8140),w=s(5632),A=s(740),k=s(5925),_=s(2394),C=s(5285),S=s(6088),N=s(8567),M=s(2345),E=s(790);const __=p.__,L=window?.jetpackProtectInitialState?.adminUrl,P=()=>{const[e]=(0,a.A)(["sm","lg"],[null,"<"]),{config:{jetpackWafAutomaticRules:t,jetpackWafIpBlockListEnabled:s,jetpackWafIpAllowListEnabled:g,jetpackWafIpBlockList:P,jetpackWafIpAllowList:R,automaticRulesAvailable:z,bruteForceProtection:O},currentIp:F,isEnabled:I,upgradeIsSeen:T,displayUpgradeBadge:D,wafSupported:H,isUpdating:B,stats:V,toggleAutomaticRules:$,toggleIpAllowList:q,saveIpAllowList:U,toggleIpBlockList:Q,saveIpBlockList:W,toggleBruteForceProtection:J,toggleWaf:G}=(0,_.A)(),{hasPlan:Z}=(0,k.Ay)(),{upgradePlan:K}=(0,k.Ay)({redirectUrl:`${L}#/firewall`}),{recordEvent:X}=(0,A.A)(),Y=(0,w.A)(),{automaticRulesLastUpdated:ee}=V,[te,se]=(0,x.useState)(!1),[re,ne]=(0,x.useState)({jetpack_waf_ip_block_list:P,jetpack_waf_ip_allow_list:R}),ae=I&&!B,ie=I&&(Z||z),oe=!B&&g,ce=re.jetpack_waf_ip_block_list!==P,le=re.jetpack_waf_ip_allow_list!==R,de=!!re.jetpack_waf_ip_block_list,ue=!!re.jetpack_waf_ip_allow_list,he=I&&s,pe=(0,x.useCallback)(()=>{X("jetpack_protect_waf_page_get_scan_link_click"),K()},[X,K]),me=(0,x.useCallback)(e=>{const{value:t,id:s}=e.target;ne({...re,[s]:t})},[re]),fe=(0,x.useCallback)(()=>{ne(e=>({...e,jetpack_waf_automatic_rules:!e.jetpack_waf_automatic_rules}));try{$(),se(!1)}catch{se(!0),ne(e=>({...e,jetpack_waf_automatic_rules:!e.jetpack_waf_automatic_rules}))}},[$]),ge=(0,x.useCallback)(async()=>{await W(re.jetpack_waf_ip_block_list)},[W,re.jetpack_waf_ip_block_list]),ve=(0,x.useCallback)(async()=>{await U(re.jetpack_waf_ip_allow_list)},[U,re.jetpack_waf_ip_allow_list]),xe=(0,x.useCallback)(()=>{Y.mutate()},[Y]),ye=(0,x.useMemo)(()=>re.jetpack_waf_ip_allow_list?.includes(F),[re.jetpack_waf_ip_allow_list,F]),je=(0,x.useCallback)(()=>{const e=re.jetpack_waf_ip_allow_list.length>0?`${re.jetpack_waf_ip_allow_list}\n${F}`:F;ne(t=>({...t,jetpack_waf_ip_allow_list:e}))},[re.jetpack_waf_ip_allow_list,F]);(0,x.useEffect)(()=>{B||ne({jetpack_waf_ip_block_list:P,jetpack_waf_ip_allow_list:R})},[P,R,B]),(0,A.A)({pageViewEventName:Line truncated
// translators: %s the date latest rules were updated (e.g. "September 23, 2022").
__("Last updated on %s.","jetpack-protect"),v().unix(ee).format("MMMM D, YYYY"))})]}),te&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(i.Ay,{className:M.A["automatic-rules-stats__failed-install"],variant:"body-small",mt:2,children:__("Failed to update automatic firewall rules.","jetpack-protect")}),(0,E.jsx)(c.A,{variant:"link",href:Z?b.NW:b.pQ,children:(0,E.jsx)(i.Ay,{variant:"body-small",children:__("Contact support","jetpack-protect")})})]})]})]})]}),!Z&&(0,E.jsx)("div",{className:M.A["upgrade-trigger-section"],children:(0,E.jsx)(l.A,{className:M.A["upgrade-trigger"],description:ie?__("Your site is not receiving the latest updates to automatic rules","jetpack-protect",0):__("Set up automatic rules with one click","jetpack-protect"),cta:ie?__("Upgrade to keep your site secure with up-to-date firewall rules","jetpack-protect",0):__("Upgrade to enable automatic firewall protection","jetpack-protect"),onClick:pe})})]}),Ae=(0,E.jsxs)("div",{className:M.A["toggle-section"],children:[(0,E.jsx)("div",{className:M.A["toggle-section__control"],children:(0,E.jsx)(o.A,{checked:O,onChange:J,disabled:B})}),(0,E.jsxs)("div",{className:M.A["toggle-section__content"],children:[(0,E.jsx)(i.Ay,{variant:"title-medium",mb:2,children:__("Brute force protection","jetpack-protect")}),(0,E.jsx)(i.Ay,{children:__("Prevent bots and hackers from attempting to log in to your website with common username and password combinations.","jetpack-protect")})]})]}),ke=(0,E.jsxs)("div",{className:`${M.A["toggle-section"]} ${I?"":M.A["toggle-section--disabled"]}`,children:[(0,E.jsx)("div",{className:M.A["toggle-section__control"],children:(0,E.jsx)(o.A,{checked:he,onChange:Q,disabled:!ae})}),(0,E.jsxs)("div",{className:M.A["toggle-section__content"],children:[(0,E.jsx)(i.Ay,{variant:"title-medium",mb:2,children:__("Block IP addresses","jetpack-protect")}),(0,E.jsx)(i.Ay,{mb:1,children:__("Stop specific visitors from accessing your site by their IP address.","jetpack-protect")}),(he||de)&&(0,E.jsxs)("div",{className:M.A["manual-rules-section"],children:[(0,E.jsx)(j.A,{id:"jetpack_waf_ip_block_list",placeholder:__("Example:","jetpack-protect")+"\n12.12.12.1\n12.12.12.2",rows:3,value:re.jetpack_waf_ip_block_list,onChange:me,disabled:!ae||!he}),he&&(0,E.jsx)(i.Ay,{variant:"body-extra-small",mt:1,children:__("IPv4 and IPv6 supported. Separate IPs with commas, spaces, or new lines. To specify a range, use CIDR notation (i.e. 12.12.12.0/24) or enter the low value and high value separated by a dash (i.e. 12.12.12.0–12.12.12.255).","jetpack-protect")})]}),he&&(0,E.jsx)("div",{className:M.A["block-list-button-container"],children:(0,E.jsx)(c.A,{onClick:ge,isLoading:B,disabled:!ae||!ce,children:__("Save block list","jetpack-protect")})})]})]}),_e=(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:M.A["toggle-section"],children:[(0,E.jsx)("div",{className:M.A["toggle-section__control"],children:(0,E.jsx)(o.A,{checked:g,onChange:q,disabled:B})}),(0,E.jsxs)("div",{className:M.A["toggle-section__content"],children:[(0,E.jsx)(i.Ay,{variant:"title-medium",mb:2,children:__("Trusted IP addresses","jetpack-protect")}),(0,E.jsx)(i.Ay,{mb:1,children:__("IP addresses added to this list are always allowed to access your site, regardless of any other Jetpack security settings.","jetpack-protect")}),(g||ue)&&(0,E.jsxs)("div",{className:M.A["manual-rules-section"],children:[(0,E.jsx)(j.A,{id:"jetpack_waf_ip_allow_list",placeholder:__("Example:","jetpack-protect")+"\n12.12.12.1\n12.12.12.2",rows:3,value:re.jetpack_waf_ip_allow_list,onChange:me,disabled:!oe}),g&&(0,E.jsx)(i.Ay,{variant:"body-extra-small",mt:1,children:__("IPv4 and IPv6 supported. Separate IPs with commas, spaces, or new lines. To specify a range, use CIDR notation (i.e. 12.12.12.0/24) or enter the low value and high value separated by a dash (i.e. 12.12.12.0–12.12.12.255).","jetpack-protect")})]}),g&&(0,E.jsxs)("div",{className:M.A["allow-list-button-container"],children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(i.Ay,{variant:"body-small",className:M.A["allow-list-current-ip"],children:(0,h.createInterpolateElement)((0,p.sprintf)(
// translators: %s: current IP address of the user
__("Your current IP: <strong>%s</strong>","jetpack-protect"),F),{strong:(0,E.jsx)("strong",{})})}),(0,E.jsx)(c.A,{variant:"secondary",size:"small",onClick:je,disabled:!oe||ye||B,children:__("+ Add to Allow List","jetpack-protect")})]}),(0,E.jsx)(c.A,{onClick:ve,isLoading:B,disabled:B||!le,children:__("Save allow list","jetpack-protect")})]})]})]})});return(0,E.jsxs)(y.A,{children:[(0,E.jsx)(S.A,{}),(0,E.jsxs)(n.A,{className:M.A.container,horizontalSpacing:8,horizontalGap:4,children:[H&&!I&&(0,E.jsxs)(r.A,{children:[be," "]}),(0,E.jsx)(r.A,{children:(0,E.jsxs)("div",{className:M.A["toggle-wrapper"],children:[H&&we,Ae,H&&(0,E.jsxs)(E.Fragment,{children:[ke,(0,E.jsx)("div",{className:M.A.divider})]}),_e]})})]}),H?(0,E.jsx)(N.A,{}):(0,E.jsx)(C.A,{})]})}},2014(e,t,s){"use strict";s.d(t,{A:()=>g});var r=s(7425),n=s(1158),a=s(8443),i=s(7723),o=s(1609),c=s(3287),l=s(7031),d=s(2652),u=s(9889),h=s(993),p=s(9701),m=s(96),f=s(790);const __=i.__,g=()=>{const{filter:e="all"}=(0,c.g)(),{list:t}=(0,h.A)({source:"history",status:e}),{counts:s,error:g}=(0,p.A)({sourceType:"history",filter:{status:e,key:null}}),{threats:v}=s.all,x=(0,o.useMemo)(()=>t.length?t.reduce((e,t)=>new Date(t.firstDetected)<new Date(e.firstDetected)?t:e).firstDetected:null,[t]);return g?(0,f.jsx)(d.A,{baseErrorMessage:__("We are having problems loading your history.","jetpack-protect"),errorMessage:g?.message,errorCode:g?.code}):(0,f.jsx)(l.A,{main:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(n.A,{status:"active",label:__("Active","jetpack-protect")}),(0,f.jsx)(l.A.Heading,{showIcon:!0,children:v>0?(0,i.sprintf)(/* translators: %1$s: Total number of threats, %2$s: singular or plural form of "threat" */
__("%1$s previously active %2$s","jetpack-protect"),v.toString(),1===v?"threat":"threats"):__("No previously active threats","jetpack-protect")}),(0,f.jsx)(l.A.Subheading,{children:(0,f.jsx)(r.Ay,{children:x?(0,f.jsx)("span",{className:m.A["subheading-content"],children:(0,i.sprintf)(/* translators: %s: Oldest first detected date */
__("%s - Today","jetpack-protect"),(0,a.dateI18n)("F jS g:i A",x,!1))}):__("Most recent results","jetpack-protect")})}),(0,f.jsx)("div",{className:m.A["scan-navigation"],children:(0,f.jsx)(u.A,{})})]})})}},5717(e,t,s){"use strict";s.d(t,{A:()=>A});var r=s(5640),n=s(8509),a=s(5918),i=s(7425),o=s(7723),c=s(1609),l=s(3287),d=s(1186),u=s(7827),h=s(9395),p=s(6742),m=s(993),f=s(740),g=s(5925),v=s(9701),x=s(5285),y=s(2014),j=s(2621),b=s(96),w=s(790);const __=o.__,_n=o._n,A=()=>{(0,f.A)({pageViewEventName:"protect_scan_history"});const{hasPlan:e}=(0,g.Ay)(),{filter:t="all"}=(0,l.g)(),{item:s,list:A,selected:k,setSelected:_}=(0,m.A)({source:"history",status:t}),{counts:C,error:S}=(0,v.A)({sourceType:"history",filter:{status:t}}),{threats:N}=C.all,{counts:M}=(0,v.A)({sourceType:"history",filter:{status:"fixed",key:k}}),{threats:E}=M.current,{counts:L}=(0,v.A)({sourceType:"history",filter:{status:"ignored",key:k}}),{threats:P}=L.current,R=(0,c.useCallback)(()=>{switch(k){case"all":if(1===A.length)switch(t){case"fixed":return __("All fixed threats","jetpack-protect");case"ignored":return __("All ignored threats","jetpack-protect",0);default:return __("All threats","jetpack-protect")}switch(t){case"fixed":return(0,o.sprintf)(/* translators: %s: count of fixed threats found on the site. */
__("All %s fixed threats","jetpack-protect"),A.length);case"ignored":return(0,o.sprintf)(/* translators: %s: count of ignored threats found on the site. */
__("All %s ignored threats","jetpack-protect"),A.length);default:return(0,o.sprintf)(/* translators: %s: count of threats found on the site. */
__("All %s threats","jetpack-protect"),A.length)}case"core":switch(t){case"fixed":return(0,o.sprintf)(/* translators: %1$s: count 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,o.sprintf)(/* translators: %1$s: count 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,o.sprintf)(/* translators: %1$s: count 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(t){case"fixed":return(0,o.sprintf)(/* translators: %1$s: count 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,o.sprintf)(/* translators: %1$s: count 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,o.sprintf)(/* translators: %1$s: count 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(t){case"fixed":return(0,o.sprintf)(/* translators: %1$s: count 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,o.sprintf)(/* translators: %1$s: count 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,o.sprintf)(/* translators: %1$s: count of database threats found on the site. */
_n("%1$s database threat","%1$s database threats",A.length,"jetpack-protect"),A.length)}default:switch(t){case"fixed":return(0,o.sprintf)(/* translators: Translates to "123 fixed threats in Example Plugin (1.2.3)". %1$s: count of threats, %2$s: plugin name, %3$s: plugin version */
_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,s?.name,s?.version);case"ignored":return(0,o.sprintf)(/* translators: Translates to "123 ignored threats in Example Plugin (1.2.3)". %1$s: count of threats, %2$s: plugin name, %3$s: plugin version */
_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,s?.name,s?.version);default:return(0,o.sprintf)(/* translators: Translates to "123 threats in Example Plugin (1.2.3)". %1$s: count of threats, %2$s: plugin name, %3$s: plugin version */
_n("%1$s threat in %2$s %3$s","%1$s threats in %2$s %3$s",A.length,"jetpack-protect"),A.length,s?.name,s?.version)}}},[k,A.length,t,s?.name,s?.version]);return e?0===A.length&&"all"!==t?(0,w.jsx)(l.C5,{to:"/scan/history"}):(0,w.jsxs)(d.A,{children:[(0,w.jsx)(y.A,{}),(!S||N)&&(0,w.jsx)(r.A,{children:(0,w.jsx)(a.A,{horizontalSpacing:7,horizontalGap:4,children:(0,w.jsx)(n.A,{children:(0,w.jsxs)(a.A,{fluid:!0,horizontalSpacing:0,horizontalGap:3,children:[(0,w.jsx)(n.A,{lg:4,children:(0,w.jsx)(h.A,{selected:k,onSelect:_,sourceType:"history",statusFilter:t})}),(0,w.jsx)(n.A,{lg:8,children:A.length>0?(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{className:b.A["list-header"],children:[(0,w.jsx)(i.hE,{className:b.A["list-title"],children:R()}),(0,w.jsx)("div",{className:b.A["list-header__controls"],children:(0,w.jsx)(j.A,{numFixed:E,numIgnored:P})})]}),(0,w.jsx)(p.A,{list:A,hideAutoFixColumn:!0})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:b.A["list-header"],children:(0,w.jsx)("div",{className:b.A["list-header__controls"],children:(0,w.jsx)(j.A,{})})}),(0,w.jsxs)("div",{className:b.A.empty,children:[(0,w.jsx)(u.A,{}),(0,w.jsx)(i.H3,{weight:"bold",mt:8,children:__("Don't worry about a thing","jetpack-protect")}),(0,w.jsx)(i.Ay,{mb:4,children:(0,o.sprintf)(/* translators: %s: Filter type */
__("There are no%sthreats in your scan history.","jetpack-protect"),"all"===t?" ":` ${t} `)})]})]})})]})})})}),(0,w.jsx)(x.A,{})]}):(0,w.jsx)(l.C5,{to:"/scan"})}},2621(e,t,s){"use strict";s.d(t,{A:()=>c});var r=s(7723),n=s(1609),a=s(3287),i=s(4907),o=s(790);const __=r.__;function c({numFixed:e,numIgnored:t}){const s=(0,a.Zp)(),{filter:r="all"}=(0,a.g)(),c=(0,n.useCallback)(e=>()=>s(e),[s]);return(0,o.jsxs)(i.A,{children:[(0,o.jsx)(i.A.Button,{variant:"all"===r?"primary":"secondary",onClick:c("/scan/history"),children:__("All","jetpack-protect")}),(0,o.jsx)(i.A.Button,{variant:"fixed"===r?"primary":"secondary",onClick:c("/scan/history/fixed"),disabled:!e,children:__("Fixed","jetpack-protect")}),(0,o.jsx)(i.A.Button,{variant:"ignored"===r?"primary":"secondary",onClick:c("/scan/history/ignored"),disabled:!t,children:__("Ignored","jetpack-protect")})]})}},5148(e,t,s){"use strict";s.d(t,{A:()=>v});var r=s(5640),n=s(8509),a=s(5918),i=s(1186),o=s(5661),c=s(2425),l=s(740),d=s(1936),u=s(5925),h=s(9701),p=s(3411),m=s(4446),f=s(5285),g=s(790);const v=()=>{const{hasPlan:e}=(0,u.Ay)(),{counts:{current:{threats:t}},lastChecked:s}=(0,h.A)(),{data:v}=(0,c.Ay)({usePolling:!0});let x;return x=v.error?"error":s?"active":"in_progress",(0,l.A)({pageViewEventName:"protect_admin",pageViewEventProperties:{check_status:x,has_plan:e}}),(0,g.jsx)(d.dn.Provider,{value:p.A,children:(0,g.jsxs)(i.A,{children:[(0,g.jsx)(m.A,{}),(!v.error||t)&&(0,g.jsx)(r.A,{children:(0,g.jsx)(a.A,{horizontalSpacing:7,horizontalGap:4,children:(0,g.jsx)(n.A,{children:(0,g.jsx)(o.A,{})})})}),(0,g.jsx)(f.A,{})]})})}},3411(e,t,s){"use strict";s.d(t,{A:()=>f});var r=s(3924),n=s(7425),a=s(1112),i=s(6087),o=s(7723),c=s(740),l=s(5925),d=s(790);const __=o.__,{siteSuffix:u}=window.jetpackProtectInitialState,h=__("Your scan results","jetpack-protect"),p=(0,d.jsx)(n.Ay,{children:__("Navigate through the results of the scan on your WordPress installation, plugins, themes, and other files","jetpack-protect")}),m=e=>{const{upgradePlan:t}=(0,l.Ay)(),{recordEvent:s}=(0,c.A)(),r=(0,i.useCallback)(()=>{s("jetpack_protect_onboarding_get_scan_link_click"),t()},[s,t]);return(0,d.jsx)(a.A,{variant:"link",weight:"regular",onClick:r,...e})},f=[{id:"free-scan-results",title:h,description:p},{id:"free-daily-scans",title:__("Daily automated scans","jetpack-protect"),description:(0,d.jsx)(n.Ay,{children:(0,i.createInterpolateElement)(__("We run daily automated scans. Do you want to be able to scan manually? <upgradeLink>Upgrade</upgradeLink>","jetpack-protect"),{upgradeLink:(0,d.jsx)(m,{})})})},{id:"paid-scan-results",title:h,description:p},{id:"paid-fix-all-threats",title:__("Auto-fix with one click","jetpack-protect"),description:(0,d.jsxs)(n.Ay,{children:[__("Jetpack Protect offers one-click fixes for most threats. Press this button to be safe again.","jetpack-protect"),(0,d.jsx)("br",{}),(0,d.jsx)("br",{}),(0,i.createInterpolateElement)(__("Note that you'll have to <credentialsLink>input your server credentials</credentialsLink> first.","jetpack-protect"),{credentialsLink:(0,d.jsx)(a.A,{variant:"link",weight:"regular",href:(0,r.A)("jetpack-settings-security-credentials",{site:u})})})]})},{id:"paid-understand-severity",title:__("Understand severity","jetpack-protect"),description:(0,d.jsx)(n.Ay,{children:__("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:(0,d.jsx)(n.Ay,{children:__("We run daily automated scans but you can also run on-demand scans if you want to check the latest status.","jetpack-protect")})}]},4446(e,t,s){"use strict";s.d(t,{A:()=>y});var r=s(442),n=s(7425),a=s(1158),i=s(8443),o=s(7723),c=s(1609),l=s(7031),d=s(2652),u=s(4254),h=s(9889),p=s(2425),m=s(5925),f=s(9701),g=s(3752),v=s(1180),x=s(790);const __=o.__,_n=o._n,_x=o._x,y=()=>{const{hasPlan:e}=(0,m.Ay)(),[t]=(0,r.A)("sm"),{counts:{current:{threats:s}},lastChecked:y}=(0,f.A)(),{data:j}=(0,p.Ay)(),[b,w]=(0,c.useState)(null);let A=null;return y&&(A=new Date(y+" UTC").getTime()),(0,p.EV)(j)?(0,x.jsx)(g.A,{}):j.error?(0,x.jsx)(d.A,{baseErrorMessage:__("We are having problems scanning your site.","jetpack-protect"),errorMessage:j.errorMessage,errorCode:j.errorCode}):(0,x.jsx)(l.A,{main:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(a.A,{status:"active",label:__("Active","jetpack-protect")}),(0,x.jsx)(l.A.Heading,{showIcon:!0,children:s>0?(0,o.sprintf)(/* translators: %1$s: the total number of threats/vulnerabilities, %2$s: the singular or plural form of "threat" or "vulnerability". */
__("%1$s %2$s found","jetpack-protect"),s.toString(),e?_n("threat","threats",s,"jetpack-protect"):_n("vulnerability","vulnerabilities",s,"jetpack-protect")):(0,o.sprintf)(/* translators: %s: the pluralized type of threat/vulnerability. */
__("No %s found","jetpack-protect"),e?__("threats","jetpack-protect"):_x("vulnerabilities","Plural of vulnerability","jetpack-protect"))}),(0,x.jsx)(l.A.Subheading,{children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n.Ay,{ref:w,children:A?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("span",{className:v.A["subheading-content"],children:(0,i.dateI18n)("F jS g:i A",A,!1)})," ",__("results","jetpack-protect")]}):__("Most recent results","jetpack-protect")}),!e&&(0,x.jsx)(u.A,{id:"free-daily-scans",position:t?"bottom":"middle right",anchor:b})]})}),(0,x.jsx)("div",{className:v.A["scan-navigation"],children:(0,x.jsx)(h.A,{})})]})})}},5285(e,t,s){"use strict";s.d(t,{A:()=>y});var r=s(3924),n=s(8509),a=s(5918),i=s(7425),o=s(1112),c=s(4437),l=s(7723),d=s(1609),u=s(3127),h=s(740),p=s(5925),m=s(2394),f=s(1180),g=s(790);const __=l.__,v=()=>{const{recordEvent:e}=(0,h.A)(),{hasPlan:t,upgradePlan:s}=(0,p.Ay)(),{siteSuffix:n,blogID:a}=window.jetpackProtectInitialState||{},l=(0,d.useCallback)(()=>{e("jetpack_protect_footer_get_scan_link_click"),s()},[e,s]);if(t){const e=(0,r.A)("jetpack-scan-dash",{site:a??n});return(0,g.jsxs)("div",{className:f.A["product-section"],children:[(0,g.jsx)(i.hE,{children:__("Get access to our Cloud","jetpack-protect")}),(0,g.jsx)(i.Ay,{mb:3,children:__("With your Protect upgrade, you have free access to scan your site on our Cloud, so you can be aware and fix your threats even if your site goes down.","jetpack-protect")}),(0,g.jsx)(o.A,{variant:"secondary",weight:"regular",href:e,children:__("Go to Cloud","jetpack-protect")})]})}return(0,g.jsxs)("div",{className:f.A["product-section"],children:[(0,g.jsx)(i.hE,{children:__("Advanced scan results","jetpack-protect")}),(0,g.jsx)(i.Ay,{mb:3,children:__("Upgrade Jetpack Protect to get advanced scan tools, including one-click fixes for most threats and malware scanning.","jetpack-protect")}),(0,g.jsx)(c.A,{description:__("Looking for advanced scan results and one-click fixes?","jetpack-protect"),cta:__("Upgrade Jetpack Protect now","jetpack-protect"),onClick:l})]})},x=()=>{const{hasPlan:e}=(0,p.Ay)(),{globalStats:t}=(0,m.A)(),s=parseInt(t?.totalVulnerabilities),n=isNaN(s)?"50,000":s.toLocaleString();if(e){const e=(0,r.A)("protect-footer-learn-more-scan");return(0,g.jsxs)("div",{className:f.A["info-section"],children:[(0,g.jsx)(i.hE,{children:__("Line-by-line scanning","jetpack-protect")}),(0,g.jsxs)(i.Ay,{mb:2,children:[__("We actively review line-by-line of your site files to identify threats and vulnerabilities. Jetpack monitors millions of websites to keep your site secure all the time.","jetpack-protect")," ",(0,g.jsx)(o.A,{variant:"link",target:"_blank",weight:"regular",href:e,children:__("Learn more","jetpack-protect")})]})]})}const a=(0,r.A)("jetpack-protect-footer-learn-more");return(0,g.jsxs)("div",{className:f.A["info-section"],children:[(0,g.jsx)(i.hE,{children:(0,l.sprintf)(
// translators: %s: the number of total vulnerabilities listed (e.g. "22,000").
__("Over %s listed vulnerabilities","jetpack-protect"),n)}),(0,g.jsx)(i.Ay,{mb:3,children:(0,l.sprintf)(
// translators: %s: the number of total vulnerabilities listed (e.g. "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"),n)}),(0,g.jsx)(o.A,{variant:"link",isExternalLink:!0,href:a,weight:"regular",children:__("Learn more","jetpack-protect")})]})},y=()=>{const{waf:e}=window.jetpackProtectInitialState||{};return e.wafSupported?(0,g.jsx)(u.A,{main:(0,g.jsx)(v,{}),secondary:(0,g.jsx)(x,{}),preserveSecondaryOnMobile:!0}):(0,g.jsx)(a.A,{horizontalSpacing:0,horizontalGap:0,fluid:!1,children:(0,g.jsx)(n.A,{children:(0,g.jsx)(x,{})})})}},3752(e,t,s){"use strict";s.d(t,{A:()=>m});var r=s(7425),n=s(7723),a=s(7031),i=s(9671),o=s(4256),c=s(9889),l=s(2425),d=s(5925),u=s(2394),h=s(1180),p=s(790);const __=n.__,m=()=>{const{hasPlan:e}=(0,d.Ay)(),{globalStats:t}=(0,u.A)(),{data:s}=(0,l.Ay)({usePolling:!0}),m=parseInt(t?.totalVulnerabilities||"0"),f=isNaN(m)?"50,000":m.toLocaleString();return(0,p.jsx)(a.A,{main:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.A.Heading,{children:__("Your results will be ready soon","jetpack-protect")}),(0,p.jsx)(a.A.Subheading,{children:(0,p.jsxs)(p.Fragment,{children:[e&&(0,p.jsx)(o.A,{className:h.A.progress,value:s?.currentProgress,total:100}),(0,p.jsx)(r.Ay,{children:(0,n.sprintf)(
// translators: %s: the number of total vulnerabilities listed (e.g. "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"),f)})]})}),(0,p.jsx)("div",{className:h.A["scan-navigation"],children:(0,p.jsx)(c.A,{})})]}),secondary:(0,p.jsx)(i.A,{}),preserveSecondaryOnMobile:!1,spacing:4})}},9580(e,t,s){"use strict";s.d(t,{A:()=>k});var r=s(3924),n=s(766),a=s(8509),i=s(5918),o=s(7425),c=s(8316),l=s(1112),d=s(7656),u=s(6427),h=s(6087),p=s(7723),m=s(3109),f=s(8847),g=s(1609),v=s(1186),x=s(9676),y=s(1729),j=s(740),b=s(5925),w=s(2096),A=s(790);const __=p.__,k=()=>{const{hasPlan:e}=(0,b.Ay)(),{data:t}=(0,x.A)(),s=(0,y.A)(),p=(0,g.useCallback)(async()=>{s.mutate()},[s]);(0,j.A)({pageViewEventName:"protect_account_protection",pageViewEventProperties:{has_plan:e}});const k=(0,A.jsxs)("div",{className:w.A["toggle-section"],children:[(0,A.jsx)("div",{className:w.A["toggle-section__control"],children:(0,A.jsx)(c.A,{checked:t.isSupported&&!t.hasUnsupportedJetpackVersion&&t.isEnabled,onChange:p,disabled:!t.isSupported||t.hasUnsupportedJetpackVersion||s.isPending})}),(0,A.jsxs)("div",{className:w.A["toggle-section__content"],children:[(0,A.jsx)(o.Ay,{variant:"title-medium",children:__("Account protection","jetpack-protect")}),!t.isSupported&&(0,A.jsx)(d.A,{level:"warning",hideCloseButton:!0,className:w.A["toggle-section__alert"],title:(0,A.jsx)(o.Ay,{children:__("This feature has been disabled by your site administrator or hosting provider.","jetpack-protect")}),actions:[(0,A.jsx)(l.A,{variant:"link",isExternalLink:!0,href:(0,r.A)("jetpack-account-protection",{anchor:"unsupported-environments"}),children:__("Learn more","jetpack-protect")},"learn-more")]}),t.isSupported&&t.hasUnsupportedJetpackVersion&&(0,A.jsx)(d.A,{level:"warning",hideCloseButton:!0,className:w.A["toggle-section__alert"],title:(0,A.jsx)(o.Ay,{children:__("This feature has been disabled because the Jetpack Protect plugin is installed with an unsupported version of the Jetpack plugin. Please update the Jetpack plugin to version 14.5 or later to enable this feature.","jetpack-protect")}),actions:[(0,A.jsx)(l.A,{variant:"link",isExternalLink:!0,href:(0,r.A)("jetpack-account-protection",{anchor:"requirements"}),children:__("Learn more","jetpack-protect")},"learn-more")]}),(0,A.jsx)(o.Ay,{className:w.A["toggle-section__description"],children:(0,h.createInterpolateElement)(__("Enabling this setting enhances account security by detecting compromised passwords and enforcing additional verification when needed. Learn more about <link>how this protects your site</link>.","jetpack-protect"),{link:(0,A.jsx)(u.ExternalLink,{href:(0,r.A)("jetpack-account-protection")})})}),(0,A.jsx)(o.Ay,{children:__("Protect your site with advanced password detection and profile management protection.","jetpack-protect")}),!t.isEnabled&&t.isSupported&&(0,A.jsxs)(o.Ay,{className:w.A["toggle-section__info"],children:[(0,A.jsx)(m.A,{icon:f.A}),(0,h.createInterpolateElement)(__("Jetpack recommends enabling this feature to enhance account security. <link>Learn about the risks</link>.","jetpack-protect"),{link:(0,A.jsx)(u.ExternalLink,{href:(0,r.A)("jetpack-account-protection-risks")})})]})]})]});return(0,A.jsx)(v.A,{children:(0,A.jsx)(n.A,{children:(0,A.jsx)(i.A,{className:w.A.container,horizontalSpacing:8,horizontalGap:4,children:(0,A.jsx)(a.A,{children:(0,A.jsx)("div",{className:w.A["toggle-wrapper"],children:k})})})})})}},2970(e,t,s){"use strict";s.d(t,{A:()=>h});var r=s(766),n=s(2947),a=s(8509),i=s(5918),o=s(6427),c=s(7723),l=s(9374),d=s(740),u=s(790);const __=c.__,h=()=>((0,d.A)({pageViewEventName:"protect_interstitial"}),(0,u.jsx)(n.A,{title:"Protect",subTitle:__("Automated malware scanning and firewall protection.","jetpack-protect"),actions:(0,u.jsx)(o.Button,{variant:"secondary",href:"admin.php?page=my-jetpack#/add-license",children:__("Use license key","jetpack-protect")}),children:(0,u.jsx)(r.A,{children:(0,u.jsx)(i.A,{horizontalSpacing:3,horizontalGap:3,children:(0,u.jsx)(a.A,{sm:4,md:8,lg:12,children:(0,u.jsx)(l.A,{})})})})}))},6992(e){"use strict";e.exports={consumer_slug:"jetpack-protect"}},9384(e){"use strict";e.exports=window.JetpackConnection},7999(e){"use strict";e.exports=window.JetpackScriptDataModule},1609(e){"use strict";e.exports=window.React},790(e){"use strict";e.exports=window.ReactJSXRuntime},6154(e){"use strict";e.exports=window.moment},1455(e){"use strict";e.exports=window.wp.apiFetch},6427(e){"use strict";e.exports=window.wp.components},9491(e){"use strict";e.exports=window.wp.compose},8443(e){"use strict";e.exports=window.wp.date},6087(e){"use strict";e.exports=window.wp.element},7723(e){"use strict";e.exports=window.wp.i18n},5573(e){"use strict";e.exports=window.wp.primitives},3832(e){"use strict";e.exports=window.wp.url},9300(e,t,s){"use strict";s.d(t,{VN:()=>h,lZ:()=>i,v6:()=>a});var r=s(6504);const n={};function a(e,t,s,r,a){let i={...d(e,n)};return t&&(i=o(i,t)),s&&(i=o(i,s)),r&&(i=o(i,r)),a&&(i=o(i,a)),i}function i(e){ifLine truncated
@@ -0,0 +1,10 @@
/**
* react-router v7.12.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
@@ -0,0 +1 @@
:where(._fUXxnSp5pagKBp9gSN7) *{box-sizing:border-box}.WQVtrU6q0L1Igcj7wCrQ{margin:0;padding:0}.UujoBFTnQNY2cWU2SIsH{font-size:var(--font-headline-medium);font-weight:700;line-height:52px}.TeGO5V_thHw5lDAm1_2M{font-weight:700}.TeGO5V_thHw5lDAm1_2M,.WolQzb2MsSgiNmLtc7_j{font-size:var(--font-headline-small);line-height:40px}.WolQzb2MsSgiNmLtc7_j{font-weight:400}.hUB0JT8p1T2Hw28N6qC8{font-weight:500}.gKZWDv5chz3_O3Syp74H,.hUB0JT8p1T2Hw28N6qC8{font-size:var(--font-title-medium);line-height:32px}.gKZWDv5chz3_O3Syp74H{font-weight:600}.zY2No8Ga4b8shbOQGhnv{font-size:var(--font-title-small);font-weight:500;line-height:30px}.tIj0D1t8Cc892ikmgFPZ{font-size:var(--font-body);font-weight:400;line-height:24px}.KdcN0BnOaVeVhyLRKqhS{font-size:var(--font-body-small);font-weight:400;line-height:24px}.dso3Rh3tl3Xv1GumBktz{font-weight:400}.dso3Rh3tl3Xv1GumBktz,.mQ1UlbN9u4Mg9byO8m7v{font-size:var(--font-body-extra-small);line-height:20px}.mQ1UlbN9u4Mg9byO8m7v{font-weight:700}.PItlW5vRExLnTj4a8eLE{font-size:var(--font-body-extra-small);font-weight:600;line-height:16px}.TwRpPlktzxhmFVeua7P5{margin:calc(var(--spacing-base)*0)}.zVfqx7gyb3o9mxfGynn1{margin-left:calc(var(--spacing-base)*0);margin-right:calc(var(--spacing-base)*0)}.iSHVzNiB9iVleGljaQxy{margin-bottom:calc(var(--spacing-base)*0)}.iSHVzNiB9iVleGljaQxy,.xqDIp6cNVr_E6RXaiPyD{margin-top:calc(var(--spacing-base)*0)}.S8EwaXk1kyPizt6x4WH2{margin-left:calc(var(--spacing-base)*0)}.ODX5Vr1TARoLFkDDFooD{margin-bottom:calc(var(--spacing-base)*0)}.cphJ8dCpfimnky7P2FHg{margin-right:calc(var(--spacing-base)*0)}.PFgIhNxIyiSuNvQjAIYj{margin:calc(var(--spacing-base)*1)}.M2jKmUzDxvJjjVEPU3zn{margin-left:calc(var(--spacing-base)*1);margin-right:calc(var(--spacing-base)*1)}.io15gAh8tMTNbSEfwJKk{margin-bottom:calc(var(--spacing-base)*1)}.io15gAh8tMTNbSEfwJKk,.rcTN5uw9xIEeMEGL3Xi_{margin-top:calc(var(--spacing-base)*1)}.CQSkybjq2TcRM1Xo9COV{margin-left:calc(var(--spacing-base)*1)}.hfqOWgq6_MEGdFE82eOY{margin-bottom:calc(var(--spacing-base)*1)}.I8MxZQYTbuu595yfesWA{margin-right:calc(var(--spacing-base)*1)}.kQkc6rmdpvLKPkyoJtVQ{margin:calc(var(--spacing-base)*2)}.j6vFPxWuu4Jan2ldoxpp{margin-left:calc(var(--spacing-base)*2);margin-right:calc(var(--spacing-base)*2)}.hqr39dC4H_AbactPAkCG{margin-bottom:calc(var(--spacing-base)*2)}.c3dQnMi16C6J6Ecy4283,.hqr39dC4H_AbactPAkCG{margin-top:calc(var(--spacing-base)*2)}.YNZmHOuRo6hU7zzKfPdP{margin-left:calc(var(--spacing-base)*2)}.Db8lbak1_wunpPk8NwKU{margin-bottom:calc(var(--spacing-base)*2)}.ftsYE5J9hLzquQ0tA5dY{margin-right:calc(var(--spacing-base)*2)}.Det4MHzLUW7EeDnafPzq{margin:calc(var(--spacing-base)*3)}.h_8EEAztC29Vve1datb5{margin-left:calc(var(--spacing-base)*3);margin-right:calc(var(--spacing-base)*3)}.YXIXJ0h1k47u6hzK8KcM{margin-bottom:calc(var(--spacing-base)*3)}.YXIXJ0h1k47u6hzK8KcM,.soADBBkcIKCBXzCTuV9_{margin-top:calc(var(--spacing-base)*3)}.zSX59ziEaEWGjnpZa4uV{margin-left:calc(var(--spacing-base)*3)}.yrVTnq_WBMbejg89c2ZQ{margin-bottom:calc(var(--spacing-base)*3)}.UKtHPJnI2cXBWtPDm5hM{margin-right:calc(var(--spacing-base)*3)}.guexok_Tqd5Tf52hRlbT{margin:calc(var(--spacing-base)*4)}.oS1E2KfTBZkJ3F0tN7T6{margin-left:calc(var(--spacing-base)*4);margin-right:calc(var(--spacing-base)*4)}.DN1OhhXi6AoBgEdDSbGd{margin-bottom:calc(var(--spacing-base)*4)}.DN1OhhXi6AoBgEdDSbGd,.ot2kkMcYHv53hLZ4LSn0{margin-top:calc(var(--spacing-base)*4)}.A1krOZZhlQ6Sp8Cy4bly{margin-left:calc(var(--spacing-base)*4)}.pkDbXXXL32237M0hokEh{margin-bottom:calc(var(--spacing-base)*4)}.XXv4kDTGvEnQeuGKOPU3{margin-right:calc(var(--spacing-base)*4)}.yGqHk1a57gaISwkXwXe6{margin:calc(var(--spacing-base)*5)}.X8cghM358X3DkXLc9aNK{margin-left:calc(var(--spacing-base)*5);margin-right:calc(var(--spacing-base)*5)}.GdfSmGwHlFnN2S6xBn1f{margin-bottom:calc(var(--spacing-base)*5)}.GdfSmGwHlFnN2S6xBn1f,.yqeuzwyGQ7zG0avrGqi_{margin-top:calc(var(--spacing-base)*5)}.g9emeCkuHvYhveiJbfXO{margin-left:calc(var(--spacing-base)*5)}.Lvk3dqcyHbZ07QCRlrUQ{margin-bottom:calc(var(--spacing-base)*5)}.r3yQECDQ9qX0XZzXlVAg{margin-right:calc(var(--spacing-base)*5)}.aQhlPwht2Cz1X_63Miw0{margin:calc(var(--spacing-base)*6)}.JyHb0vK3wJgpblL9s5j8{margin-left:calc(var(--spacing-base)*6);margin-right:calc(var(--spacing-base)*6)}.cY2gULL1lAv6WPNIRuf3{margin-bottom:calc(var(--spacing-base)*6)}.NBWQ9Lwhh_fnry3lg_p7,.cY2gULL1lAv6WPNIRuf3{margin-top:calc(var(--spacing-base)*6)}.yIOniNe5E40C8fWvBm5V{margin-left:calc(var(--spacing-base)*6)}.t30usboNSyqfQWIwHvT3{margin-bottom:calc(var(--spacing-base)*6)}.Nm_TyFkYCMhOoghoToKJ{margin-right:calc(var(--spacing-base)*6)}.C4qJKoBXpgKtpmrqtEKB{margin:calc(var(--spacing-base)*7)}.S93Srbu6NQ_PBr7DmTiD{margin-left:calc(var(--spacing-base)*7);margin-right:calc(var(--spacing-base)*7)}.fJj8k6gGJDks3crUZxOS{margin-bottom:calc(var(--spacing-base)*7)}.cW6D6djs7Ppm7fD7TeoV,.fJj8k6gGJDks3crUZxOS{margin-top:calc(var(--spacing-base)*7)}.DuCnqNfcxcP3Z__Yo5Ro{margin-left:calc(var(--spacing-base)*7)}.im8407m2fw5vOg7O2zsw{margin-bottom:calc(var(--spacing-base)*7)}.G0fbeBgvz2sh3uTP9gNl{margin-riLine truncated