HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/linde/wp-content/plugins/better-wp-security/dist/pages/site-scan.js
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[8165],{3075:e=>{e.exports=function(){return this.wp.i18n}()},8601:e=>{e.exports=function(){return this.wp.element}()},15603:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(51609),s=n(55933);const a=(0,r.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,r.createElement)(s.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}))},17232:e=>{e.exports=function(){return this.wp.domReady}()},29672:e=>{e.exports=function(){return this.wp.notices}()},31987:e=>{e.exports=function(){return this.wp.data}()},38125:e=>{e.exports=function(){return this.wp.plugins}()},39959:e=>{e.exports=function(){return this.wp.components}()},42700:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(51609),s=n(55933);const a=(0,r.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"}))},46627:e=>{e.exports=function(){return this.itsec.packages.data}()},51609:e=>{"use strict";e.exports=window.React},52485:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(51609),s=n(55933);const a=(0,r.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}))},53756:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(51609),s=n(55933);const a=(0,r.createElement)(s.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}))},55271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProgressBarBeforeFill:()=>xe,ScanComponentPromo:()=>ot,ScanIssueDetailColumn:()=>kt,ScanIssueDetailContent:()=>Nt,ScanIssueText:()=>Rt,ScanResultActionButtons:()=>Et,SiteScanIssue:()=>Mt,SiteScanIssueActions:()=>$t,SiteScanIssuesFill:()=>Ee,SiteScanMutedIssuesFill:()=>Se,store:()=>de});var r={};n.r(r),n.d(r,{FAILED_ACTION:()=>H,FAILED_COMPONENT_SCAN:()=>D,FAILED_GROUP_SCAN:()=>M,FINISH_ACTION:()=>B,FINISH_COMPONENT_SCAN:()=>P,FINISH_SCAN:()=>G,RECEIVE_ISSUE:()=>$,REGISTER_COMPONENT:()=>L,REGISTER_COMPONENT_GROUP:()=>F,START_ACTION:()=>Y,START_COMPONENT_SCAN:()=>T,START_SCAN:()=>z,applyIssueAction:()=>O,registerScanComponent:()=>_,registerScanComponentGroup:()=>I,startScan:()=>C});var s={};n.r(s),n.d(s,{componentHasIssues:()=>Q,getComponentBySlug:()=>J,getCurrentScanComponent:()=>ie,getErrorForComponent:()=>re,getErrors:()=>ne,getIssue:()=>X,getIssueActions:()=>le,getIssues:()=>Z,getIssuesForComponent:()=>ee,getIssuesForComponentGroup:()=>te,getPreviousScanComponent:()=>oe,getScanComponentStatus:()=>K,getScanComponents:()=>q,getScanGroup:()=>W,getUpcomingScanComponent:()=>ce,hasCompletedScan:()=>ae,isApplyingAction:()=>ue,isScanRunning:()=>se});var a=n(51609),i=n(8601),o=n(17232),c=n.n(o),l=n(3075),u=n(56347),m=n(7e3),p=n(79487),d=n(39959),g=n(38125),h=n(31987),E=n(29672),f=n(88356),S=n(85631),y=n.n(S),x=n(62932);const w="waiting",v="busy",A="done",b="failed";function _(e){return{type:L,args:e}}function I(e){return{type:F,args:e}}const C=()=>async({select:e,dispatch:t})=>{t({type:z});const n=e.getScanComponents(),r={};for(let s=0;s<n.length;s++){const a=n[s];if(e.getScanComponentStatus(a.slug)===w){if(t({type:T,component:a.slug}),a.group){if(void 0===r[a.group])try{r[a.group]=await Promise.all([e.getScanGroup(a.group).execute(),j(2500)]).then((e=>e[0]))}catch(e){t(R(a.group,e));continue}else await j(2500);const n=r[a.group];Array.isArray(n)&&t(N(a.slug,n.filter((e=>e.component===a.slug))))}else try{const e=await Promise.all([a.execute(),j(2500)]).then((e=>e[0]));t(N(a.slug,e))}catch(e){t(k(a.slug,e))}s<n.length-1?await j(3750):await j(2e3)}}return t({type:G}),e.getIssues()};function N(e,t){return{type:P,component:e,issues:t}}function k(e,t){return{type:D,component:e,error:t}}function R(e,t){return{type:M,group:e,error:t}}const O=(e,t)=>async({dispatch:n,select:r})=>{const s=(0,x.TE)(e,t);if(s){n({type:Y,rel:t,issue:e});try{var a;const i=await y()({url:s,method:"POST"});n({type:B,rel:t,issue:e});const o=r.getComponentBySlug(e.component),c=r.getScanGroup(o.group),l=null!==(a=c?.transform?.(i))&&void 0!==a?a:i;return n({type:$,issue:l}),i}catch(r){return n({type:H,rel:t,issue:e,error:r}),r}}},L="REGISTER_COMPONENT",F="REGISTER_COMPONENT_GROUP",T="START_SCAN_COMPONENT",D="FAILED_COMPONENT_SCAN",P="FINISH_COMPONENT_SCAN",M="FAILED_GROUP_SCAN",z="START_SCAN",G="FINISH_SCAN",Y="START_ACTION",B="FINISH_ACTION",$="RECEIVE_ISSUE",H="FAILED_ACTION",j=e=>new Promise((t=>setTimeout(t,e)));var V=n(84156),U=n(66087);const q=(0,V.A)((e=>(0,U.sortBy)(e.components,"priority")),(e=>[e.components]));function J(e,t){return e.components[t]}function W(e,t){return e.componentGroups[t]}function K(e,t){return e.componentStatus[t]||w}function Z(e){return e.issues}function X(e,t){return e.bySelf[t]?.item}function Q(e,t){return e.issues.some((e=>e.component===t&&!e.muted))}const ee=(0,V.A)(((e,t)=>e.issues.filter((e=>e.component===t))),(e=>[e.issues])),te=(0,V.A)(((e,t)=>e.issues.filter((n=>J(e,n.component)?.group===t))),(e=>[e.issues])),ne=(0,V.A)((e=>Object.values(e.componentErrors).concat(Object.values(e.groupErrors))),(e=>[e.componentErrors,e.groupErrors]));function re(e,t){const n=e.components[t]?.group;return n?e.groupErrors[n]:e.componentErrors[t]}function se(e){return e.isRunning}function ae(e){return!se(e)&&Object.keys(e.componentStatus).length>0}function ie(e){return(0,U.findKey)(e.componentStatus,(function(e){return e===v}))}function oe(e){const t=q(e),n=t.findLastIndex((t=>K(e,t.slug)===A||K(e,t.slug)===b));return t[n]?.slug}function ce(e){if(ie(e))return;const t=q(e),n=t.findIndex((t=>K(e,t.slug)===w));return t[n]?.slug}function le(e,t){return(0,U.reduce)(t._links,((e,t,n)=>t.reduce(((e,t)=>t.title?(e.push({rel:n,title:t.title,isDestructive:t.isDestructive||!1,snackbar:t.snackbar||!1}),e):e),e)),[])}function ue(e,t,n){return e.actions.includes(`${n}:${t.component}:${t.id}`)}const me={components:{},componentGroups:{},componentStatus:{},componentErrors:{},groupErrors:{},issues:[],isRunning:!1,actions:[]},pe=(0,h.createReduxStore)("ithemes-security/site-scan-ui",{actions:r,selectors:s,reducer:function(e=me,t){switch(t.type){case L:return{...e,components:{...e.components,[t.args.slug]:t.args}};case F:return{...e,componentGroups:{...e.componentGroups,[t.args.slug]:t.args}};case T:return{...e,componentStatus:{...e.componentStatus,[t.component]:v}};case D:return{...e,componentStatus:{...e.componentStatus,[t.component]:b},componentErrors:{...e.componentErrors,[t.component]:t.error}};case P:return{...e,componentStatus:{...e.componentStatus,[t.component]:A},issues:[...e.issues,...t.issues]};case M:return{...e,groupErrors:{...e.groupErrors,[t.group]:t.error},componentStatus:{...e.componentStatus,...e.componentGroups[t.group]?.components.reduce(((e,t)=>(e[t]=b,e)),{})||{}}};case z:return{...e,componentStatus:{},componentErrors:{},groupErrors:{},issues:[],isRunning:!0};case G:return{...e,isRunning:!1};case Y:return{...e,actions:[...e.actions,`${t.rel}:${t.issue.component}:${t.issue.id}`]};case B:case H:return{...e,actions:e.actions.filter((e=>e!==`${t.rel}:${t.issue.component}:${t.issue.id}`))};case $:const n=e.issues.findIndex((e=>e.id===t.issue.id&&e.component===t.issue.component));if(-1===n)return{...e,issues:[...e.issues,t.issue]};const r=[...e.issues];return r.splice(n,1,t.issue),{...e,issues:r};default:return e}}});(0,h.register)(pe);const de=pe;var ge=n(48620),he=n(89897);const{Fill:Ee,Slot:fe}=(0,d.createSlotFill)("SiteScanIssues"),{Fill:Se,Slot:ye}=(0,d.createSlotFill)("SiteScanMutedIssues"),{Fill:xe,Slot:we}=(0,d.createSlotFill)("ProgressBarBefore");var ve=n(41588),Ae=n(81923);const be=(0,Ae.A)("div",{target:"edgf2if4"})({name:"1gcahmj",styles:"padding:1rem 1.5rem;border-radius:2px 2px 0 0"}),_e=(0,Ae.A)("div",{target:"edgf2if3"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";margin-top:1.25rem;"),Ie=(0,Ae.A)(f.EY,{target:"edgf2if2"})({name:"1cy4go1",styles:"width:15%"}),Ce=(0,Ae.A)(f.EY,{target:"edgf2if1"})("display:flex;justify-content:space-between;padding:0.875rem;text-transform:uppercase;background-color:",(({theme:e})=>e.colors.surface.tertiary),";border-top:1px solid ",(({theme:e})=>e.colors.border.normal),";border-bottom:1px solid ",(({theme:e})=>e.colors.border.normal),";"),Ne=(0,Ae.A)(f.ui,{target:"edgf2if0"})({name:"113otod",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;padding:2rem;max-width:1680px"});function ke({hasIssues:e,type:t}){const{isScanRunning:n}=(0,h.useSelect)((e=>({isScanRunning:e(de).isScanRunning()})),[]),r=(0,he.useViewportMatch)("small","<"),s=(0,he.useViewportMatch)("large");return(0,a.createElement)(_e,null,(0,a.createElement)(be,null,(0,a.createElement)(f.DZ,{level:3,size:f.$C.LARGE,weight:600,text:(0,l.__)("Scan Results","better-wp-security")})),r?(0,a.createElement)(Re,{hasIssues:e,isScanRunning:n,type:t}):(0,a.createElement)(Oe,{hasIssues:e,isScanRunning:n,isLarge:s,type:t}))}function Re({hasIssues:e,isScanRunning:t,type:n}){return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(Ce,null,(0,a.createElement)(f.EY,{textTransform:"uppercase",variant:f.J3.DARK,text:(0,l.__)("Type and Scan Info","better-wp-security")}),(0,a.createElement)(f.EY,{textTransform:"uppercase",variant:f.J3.DARK,text:(0,l.__)("Severity","better-wp-security")})),t||e?(0,a.createElement)(React.Fragment,null,"active"===n&&(0,a.createElement)(fe,null),"muted"===n&&(0,a.createElement)(ye,null)):(0,a.createElement)(Le,null))}function Oe({hasIssues:e,isScanRunning:t,isLarge:n,type:r}){return(0,a.createElement)("table",{className:"itsec-scan__table"},(0,a.createElement)("thead",null,n?(0,a.createElement)("tr",null,(0,a.createElement)(Ie,{as:"th",text:(0,l.__)("Type","better-wp-security")}),(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Scan Info","better-wp-security")}),(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Severity","better-wp-security")}),(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Action","better-wp-security"),align:"right"})):(0,a.createElement)("tr",null,(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Type","better-wp-security")}),(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Scan Info","better-wp-security")}),(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Severity","better-wp-security")}),(0,a.createElement)(f.EY,{as:"th",text:(0,l.__)("Action","better-wp-security"),align:"right"}))),t||e?(0,a.createElement)("tbody",null,"active"===r&&(0,a.createElement)(fe,null),"muted"===r&&(0,a.createElement)(ye,null)):(0,a.createElement)("tbody",null,(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"6"},(0,a.createElement)(Le,null)))))}function Le(){const{startScan:e}=(0,h.useDispatch)(de),{hasRunScan:t}=(0,h.useSelect)((e=>({hasRunScan:e(de).hasCompletedScan()})),[]);return(0,a.createElement)(Ne,null,(0,a.createElement)(ge.zf,{icon:(0,a.createElement)(ve._v,null)}),(0,a.createElement)(f.EY,{variant:f.J3.DARK,weight:700,text:t?(0,l.__)("No scan results found!","better-wp-security"):(0,l.__)("Scan to find issues with your site’s security.","better-wp-security")}),(0,a.createElement)(f.$n,{onClick:()=>{e()},variant:"primary",text:(0,l.__)("Start Site Scan","better-wp-security")}))}function Fe({issues:e}){const{hasScanRun:t}=(0,h.useSelect)((e=>({hasScanRun:e(de).hasCompletedScan()})),[]),n=e.filter((e=>!e.muted)).length,r=e.filter((e=>e.muted)).length,s=(0,i.useMemo)((()=>[{name:"scan-results",title:t?(0,l.sprintf)((0,l.__)("Scan Results (%d)","better-wp-security"),n):(0,l.__)("Scan Results","better-wp-security"),render:()=>(0,a.createElement)(ke,{hasIssues:n>0,type:"active"})},{name:"ignored-results",title:t?(0,l.sprintf)((0,l.__)("Muted Results (%d)","better-wp-security"),r):(0,l.__)("Muted Results","better-wp-security"),render:()=>(0,a.createElement)(ke,{hasIssues:r>0,type:"muted"})}]),[t,n,r]);return(0,a.createElement)(f.Kp,{tabs:s},(({render:e})=>(0,a.createElement)(e,null)))}var Te=n(46627),De=n(91699),Pe=n(42700),Me=n(15603),ze=n(28351),Ge=n(14707);const Ye=De.i7`
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
`;function Be({status:e,hasIssues:t,isStep:n}){switch(e){case"upgrade":return(0,a.createElement)(Qe,{icon:Pe.A,size:16,isStep:n});case w:return(0,a.createElement)(Ke,{isStep:n});case v:return(0,a.createElement)(Ze,{isStep:n});case A:return t?(0,a.createElement)(et,{icon:Me.A,size:16,isStep:n}):(0,a.createElement)(tt,{icon:ze.A,size:16,isStep:n});default:return(0,a.createElement)(nt,{icon:Ge.A,size:16,isStep:n})}}function $e(e,t,n,r,s="pro"){if("free"===s&&"left"===r){if(0===t)return"#333333";if(20===t)return""}else{if(0===t&&"left"===r)return"";if(t===n-1&&"right"===r)return""}switch(e){case w:return"#cecece";case"upgrade":return"#333333";default:return"#6817C5"}}const He=(0,Ae.A)("div",{target:"e107mwd516"})({name:"146trfc",styles:"position:relative;display:flex;flex-direction:column;align-items:center;padding:0.5rem 0;overflow:auto"}),je=(0,Ae.A)("div",{target:"e107mwd515"})("display:grid;grid-auto-columns:min-content;grid-auto-flow:column;margin:0 auto;opacity:1;animation:0.5s forwards;animation-name:",(({isComplete:e})=>e&&(0,De.AH)(Ye,";","")),";"),Ve=(0,Ae.A)("div",{target:"e107mwd514"})("display:flex;flex-direction:column;align-items:center;gap:0.5rem;position:",(({isStep:e})=>e&&"absolute"),";left:",(({isStep:e})=>e&&"50%"),";transform:",(({isStep:e})=>e&&"translate(-50%, 0)"),";z-index:2;transition:opacity 1.25s ease-in-out .5s;opacity:",(({isStep:e})=>e&&"current"!==e?0:1),";animation:1.75s 1.75s forwards;animation-name:",(({isStep:e})=>"next"===e&&(0,De.AH)(Ye,";","")),";@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){gap:1rem;}"),Ue=(0,Ae.A)("div",{target:"e107mwd513"})({name:"1qic15g",styles:"position:relative;height:120px"}),qe=(0,Ae.A)("div",{target:"e107mwd512"})("display:flex;align-items:center;align-self:stretch;position:relative;height:20px;@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){height:40px;}"),Je=(0,Ae.A)("div",{target:"e107mwd511"})("background:",(({background:e})=>e),";border-top:",(({background:e})=>e&&"2px solid #F6F7F7"),";border-bottom:",(({background:e})=>e&&"2px solid #F6F7F7"),";min-width:50%;width:2rem;height:0.3rem;@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){height:1rem;width:2.75rem;border-width:4px;}@media screen and (min-width: ",(({theme:e})=>e.breaks.xlarge),"px){width:3.5rem;}@media screen and (min-width: ",(({theme:e})=>e.breaks.wide),"px){width:4.0rem;}"),We=({theme:e,isStep:t})=>(0,De.AH)("position:",t?"static":"absolute","!important;left:calc(50%);transform:",!t&&"translate(-50%, 0)",";height:20px!important;width:20px!important;border:2px solid ",e.colors.surface.tertiary,";@media screen and (min-width: ",e.breaks.small,"px){left:calc(50%);height:40px!important;width:40px!important;border-width:6px;}",""),Ke=(0,Ae.A)("div",{target:"e107mwd510"})(We,";background:#cecece;border-radius:50%;border-color:",(({theme:e})=>e.colors.surface.primary),";"),Ze=(0,Ae.A)(d.Spinner,{target:"e107mwd59"})(We,";color:",(({theme:e})=>e.colors.primary.darker20),"!important;background:white;border-radius:50%;margin:0!important;animation:ease-in 250ms;animation-name:",(({isStep:e})=>e&&(0,De.AH)(Ye,";","")),";"),Xe=(0,Ae.A)(d.Icon,{shouldForwardProp:e=>"isStep"!==e,target:"e107mwd58"})(We,";fill:white;border-radius:50%;animation:ease-in 250ms;animation-name:",(({isStep:e})=>e&&(0,De.AH)(Ye,";","")),";"),Qe=(0,Ae.A)(Xe,{target:"e107mwd57"})("background:",(({theme:e})=>e.colors.surface.dark),";"),et=(0,Ae.A)(Xe,{target:"e107mwd56"})({name:"17ktdlk",styles:"background:#FFC518"}),tt=(0,Ae.A)(Xe,{target:"e107mwd55"})("background:",(({theme:e})=>e.colors.surface.primaryAccent),";"),nt=(0,Ae.A)(Xe,{target:"e107mwd54"})({name:"rdog0l",styles:"background:#D63638"}),rt=(0,Ae.A)("div",{target:"e107mwd53"})({name:"1musbqr",styles:"display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:-0.5rem"}),st=(0,Ae.A)("span",{target:"e107mwd52"})("content:' ';height:0;border:0.5rem solid transparent;border-bottom-color:",(({status:e,theme:t})=>"upgrade"===e?t.colors.surface.dark:t.colors.surface.primaryAccent),";"),at=(0,Ae.A)(f.EY,{target:"e107mwd51"})("display:flex;text-align:center;justify-content:center;align-items:center;background:",(({status:e,theme:t})=>"upgrade"===e?t.colors.surface.dark:t.colors.surface.primaryAccent),";color:white;padding:0.5rem 0.875rem;width:56px;height:56px;border-radius:8px;font-size:11px;@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){font-size:0.875rem;width:80px;}@media screen and (min-width: ",(({theme:e})=>e.breaks.xlarge),"px){width:104px;}"),it=(0,Ae.A)(f.$n,{target:"e107mwd50"})("border-radius:2px;padding:4px 2px;font-size:0.6875rem;&:hover{background:",(({theme:e})=>e.colors.surface.secondary),"!important;color:",(({theme:e})=>e.colors.text.accent),";}@media screen and (min-width: ",(({theme:e})=>e.breaks.medium),"px){font-size:",(({theme:e})=>e.sizes.text.normal),"rem;padding:0.5rem 0.875rem;}");function ot({label:e,description:t,index:n}){const r="upgrade";return(0,a.createElement)(Ve,null,(0,a.createElement)(qe,null,(0,a.createElement)(Je,{background:$e(r,n,50,"left","free")}),(0,a.createElement)(Be,{status:r}),(0,a.createElement)(Je,{background:$e(r,n,50,"right","free")})),(0,a.createElement)(d.Tooltip,{text:t},(0,a.createElement)(rt,null,(0,a.createElement)(st,{status:r}),(0,a.createElement)(at,{status:r,text:e}))),(0,a.createElement)(it,{variant:"tertiary",href:"https://go.solidwp.com/upgrade-to-solid-security-pro",target:"_blank",text:(0,l.__)("Unlock","better-wp-security")}))}function ct({slug:e,index:t,length:n,isStep:r,installType:s}){const{component:i,status:o,hasIssues:c}=(0,h.useSelect)((t=>({component:t(de).getComponentBySlug(e),status:t(de).getScanComponentStatus(e),hasIssues:t(de).componentHasIssues(e)})),[e]);return(0,a.createElement)(Ve,{isStep:r},r?(0,a.createElement)(Be,{isStep:r,status:o,hasIssues:c}):(0,a.createElement)(qe,null,(0,a.createElement)(Je,{background:$e(o,t,n,"left",s)}),(0,a.createElement)(Be,{status:o,hasIssues:c}),(0,a.createElement)(Je,{background:$e(o,t,n,"right",s)})),(0,a.createElement)(d.Tooltip,{text:i.description},(0,a.createElement)(rt,null,(0,a.createElement)(st,{status:o}),(0,a.createElement)(at,{status:o,text:i.label}))))}function lt({components:e,isComplete:t}){const{installType:n}=(0,h.useSelect)((e=>({installType:e(Te.coreStore).getInstallType()})),[]);return(0,a.createElement)(je,{isComplete:t},(0,a.createElement)(we,null),e.map(((t,r)=>(0,a.createElement)(ct,{key:t.slug,slug:t.slug,index:r,length:e.length,installType:n}))))}function ut(){const{currentStep:e,previousStep:t,nextStep:n}=(0,h.useSelect)((e=>({currentStep:e(de).getCurrentScanComponent(),previousStep:e(de).getPreviousScanComponent(),nextStep:e(de).getUpcomingScanComponent()})),[]);return(0,a.createElement)(Ue,null,t&&(0,a.createElement)(ct,{slug:t,isStep:"previous",key:t}),e&&(0,a.createElement)(ct,{slug:e,isStep:"current",key:e}),n&&(0,a.createElement)(ct,{slug:n,isStep:"next",key:n}))}function mt({components:e}){const{isScanRunning:t,hasCompletedScan:n}=(0,h.useSelect)((e=>({isScanRunning:e(de).isScanRunning(),hasCompletedScan:e(de).hasCompletedScan()})),[]);return(0,a.createElement)(He,null,!t&&(0,a.createElement)(lt,{components:e,isComplete:n}),t&&(0,a.createElement)(ut,{components:e}))}const pt=(0,Ae.A)(f.ui,{target:"ebxa02v5"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),dt=(0,Ae.A)("div",{target:"ebxa02v4"})("gap:",(({theme:{getSize:e}})=>e(1)),";width:100%;max-width:1680px;margin:0 auto 2rem;padding:",(({theme:{getSize:e}})=>`${e(1)} ${e(1.25)}`),";"),gt=(0,Ae.A)("div",{target:"ebxa02v3"})("display:flex;justify-content:space-between;align-items:center;padding-bottom:",(({theme:{getSize:e}})=>e(1)),";"),ht=(0,Ae.A)(f.ui,{target:"ebxa02v2"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>`${e(2.5)} 0`),";padding:",(({theme:{getSize:e}})=>`${e(1)} ${e(1.25)}`),";"),Et=(0,Ae.A)("div",{target:"ebxa02v1"})({name:"r2g86h",styles:"display:flex;align-items:center;gap:1rem"}),ft=(0,Ae.A)(d.SnackbarList,{target:"ebxa02v0"})({name:"f3gyrr",styles:".components-snackbar{margin:0 auto;}.components-snackbar__content{position:relative;gap:1rem;align-items:center;}.components-snackbar .components-snackbar__content-with-icon{margin-left:0;}.components-snackbar .components-snackbar__icon{position:relative;left:0;top:0;}"});function St({history:e}){const{startScan:t}=(0,h.useDispatch)(de),{removeNotice:n}=(0,h.useDispatch)(E.store),{components:r,issues:s,snackbarNotices:i}=(0,h.useSelect)((e=>({components:e(de).getScanComponents(),issues:e(de).getIssues(),snackbarNotices:e(E.store).getNotices("ithemes-security")})),[]);return(0,a.createElement)(p.b,{theme:f.$f},(0,a.createElement)(u.Ix,{history:e},(0,a.createElement)(m.HX,{ReactRouterRoute:u.qh},(0,a.createElement)(pt,{className:"itsec-site-scan",variant:f.ls.UNDER_PAGE},(0,a.createElement)(d.SlotFillProvider,null,(0,a.createElement)(g.PluginArea,null),(0,a.createElement)(d.Popover.Slot,null),(0,a.createElement)(ge.Nr,null),(0,a.createElement)(u.dO,null,(0,a.createElement)(dt,null,(0,a.createElement)(f.DZ,{level:1,weight:f.uL.NORMAL,text:(0,l.__)("Site Scans","better-wp-security")}),(0,a.createElement)(gt,null,(0,a.createElement)(f.EY,{size:f.$C.SMALL,variant:f.J3.MUTED,text:(0,l.__)("Scan your site for security issues and find out how fix them.","better-wp-security")}),(0,a.createElement)(f.$n,{onClick:()=>{t()},variant:"primary",text:(0,l.__)("Start Site Scan","better-wp-security")})),(0,a.createElement)(ht,{variant:f.ls.PRIMARY},(0,a.createElement)("div",null,(0,a.createElement)(f.DZ,{level:2,size:f.$C.LARGE,weight:600,text:(0,l.__)("Scan","better-wp-security")})),(0,a.createElement)(mt,{components:r}),(0,a.createElement)(Fe,{issues:s})))),(0,a.createElement)(ft,{notices:i,onRemove:e=>n(e,"ithemes-security")}))))))}var yt=n(75413),xt=n(53756),wt=n(52485);function vt(e){switch(e){case"low":return"#B8E6BF";case"medium":return"#FFC518";case"high":return"#FFABAF";default:return"#D63638"}}function At(e){switch(e){case"low":return(0,l.__)("Low","better-wp-security");case"medium":return(0,l.__)("Medium","better-wp-security");case"high":return(0,l.__)("High","better-wp-security");default:return(0,l.__)("Critical","better-wp-security")}}const bt=(0,Ae.A)("div",{target:"ee9gv7n10"})({name:"1dt2p9p",styles:"display:grid;grid-column-gap:2rem;grid-template-columns:0.5fr 1fr;overflow-wrap:anywhere"}),_t=(0,Ae.A)(f.EY,{target:"ee9gv7n9"})("display:flex;justify-content:center;align-items:center;padding:0.125rem 0.5rem;width:min-content;min-width:4.5rem;background-color:",(({backgroundColor:e})=>e),";border-radius:2px;"),It=(0,Ae.A)("div",{target:"ee9gv7n8"})({name:"1xj2l20",styles:"display:flex;gap:2rem;flex-wrap:wrap;justify-content:space-between"}),Ct=(0,Ae.A)(f.ui,{target:"ee9gv7n7"})("display:",(({isExpanded:e})=>e?"table-row":"none"),";"),Nt=(0,Ae.A)("div",{target:"ee9gv7n6"})({name:"w1xf4t",styles:"display:flex;flex-wrap:wrap;gap:2rem"}),kt=(0,Ae.A)("div",{target:"ee9gv7n5"})({name:"9ffgsy",styles:"display:flex;flex-direction:column;justify-content:space-between;max-width:70ch"}),Rt=(0,Ae.A)(f.EY,{target:"ee9gv7n4"})({name:"aeppwa",styles:"line-height:1.3rem;margin-top:.4rem"}),Ot=(0,Ae.A)("div",{target:"ee9gv7n3"})({name:"p2oy12",styles:"display:flex;flex-direction:column;gap:0.25rem"}),Lt=(0,Ae.A)("td",{target:"ee9gv7n2"})({name:"2qga7i",styles:"text-align:right"}),Ft=(0,Ae.A)("div",{target:"ee9gv7n1"})({name:"m9q4tf",styles:"display:grid;grid-template-columns:2fr 1fr 0.5fr;gap:1rem;overflow-wrap:anywhere;align-items:center;padding:1rem"}),Tt=(0,Ae.A)(f.ui,{target:"ee9gv7n0"})("display:",(({isExpanded:e})=>!e&&"none"),";padding:1rem;");function Dt({icon:e,issue:t,isLarge:n,children:r}){const{component:s}=(0,h.useSelect)((e=>({component:e(de).getComponentBySlug(t.component)})),[t.component]),[o,c]=(0,i.useState)(!1);return(0,a.createElement)(React.Fragment,null,(0,a.createElement)("tr",null,n&&(0,a.createElement)(React.Fragment,null,(0,a.createElement)("td",null,(0,a.createElement)(f.EY,{icon:e,text:s.label})),(0,a.createElement)("td",null,(0,a.createElement)(bt,null,(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.EY,{weight:600,text:t.title}),t.description&&(0,a.createElement)(f.EY,{text:t.description})))),(0,a.createElement)("td",null,(0,a.createElement)(_t,{weight:600,backgroundColor:vt(t.severity),text:At(t.severity)}))),!n&&(0,a.createElement)(React.Fragment,null,(0,a.createElement)("td",{colSpan:"2"},(0,a.createElement)(Ot,null,(0,a.createElement)(f.EY,{icon:e,text:s.label}),(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.EY,{as:"p",weight:600,text:t.title}),t.description&&(0,a.createElement)(f.EY,{as:"p",text:t.description})))),(0,a.createElement)("td",null,(0,a.createElement)(_t,{weight:600,backgroundColor:vt(t.severity),text:At(t.severity)}))),(0,a.createElement)(Lt,null,(0,a.createElement)(f.$n,{"aria-controls":"solid-scan-result-"+t.component+"-"+t.id,"aria-expanded":o,icon:o?xt.A:wt.A,iconPosition:"right",iconGap:0,onClick:()=>c(!o),variant:"tertiary",label:(0,l.__)("View Details","better-wp-security"),text:n&&(0,l.__)("View Details","better-wp-security")}))),(0,a.createElement)(Ct,{as:"tr",id:"solid-scan-result-"+t.component+"-"+t.id,isExpanded:o,variant:"tertiary"},(0,a.createElement)("td",{colSpan:n?5:4},(0,a.createElement)(It,null,r))))}function Pt({icon:e,issue:t,children:n}){const{component:r}=(0,h.useSelect)((e=>({component:e(de).getComponentBySlug(t.component)})),[t.component]),[s,o]=(0,i.useState)(!1);return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(Ft,null,(0,a.createElement)("div",null,(0,a.createElement)(f.EY,{icon:e,text:r.label}),(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.EY,{as:"p",weight:600,text:t.title}),t.description&&(0,a.createElement)(f.EY,{as:"p",text:t.description}))),(0,a.createElement)("div",null,(0,a.createElement)(_t,{backgroundColor:vt(t.severity),weight:600,text:At(t.severity)})),(0,a.createElement)(f.$n,{"aria-controls":"solid-scan-result-"+t.component+"-"+t.id,"aria-expanded":s,icon:s?xt.A:wt.A,iconPosition:"right",onClick:()=>o(!s),variant:"tertiary"})),(0,a.createElement)(Tt,{variant:"tertiary",isExpanded:s},(0,a.createElement)(It,{id:"solid-scan-result-"+t.component+"-"+t.id},n)))}function Mt({issue:e,icon:t,children:n}){const r=(0,he.useViewportMatch)("small","<"),s=(0,he.useViewportMatch)("large");return r?(0,a.createElement)(Pt,{issue:e,icon:t,children:n}):(0,a.createElement)(Dt,{issue:e,icon:t,children:n,isLarge:s})}var zt=n(57677);function Gt({action:e,isApplying:t,onApply:n,isDisabled:r}){return(0,a.createElement)(f.$n,{isBusy:t,onClick:n,variant:"ithemes-security:mute-vulnerability"===e.rel||"ithemes-security:mute-issue"===e.rel?"muted":"secondary",text:e.title,disabled:r})}function Yt({action:e,isApplying:t,onApply:n}){const r={title:(0,l.__)("Confirm your action","better-wp-security"),body:(0,l.__)("Are you sure you want to do this?","better-wp-security"),onContinue:n,continueText:e.title},[s,i]=(0,f.Jg)(r);return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.$n,{isDestructive:e.isDestructive,isBusy:t,onClick:s,text:e.title}),i)}function Bt({action:e,issue:t}){const{applyIssueAction:n}=(0,h.useDispatch)(de),{createNotice:r}=(0,h.useDispatch)("core/notices"),{isApplying:s}=(0,h.useSelect)((n=>({isApplying:n(de).isApplyingAction(t,e.rel)})),[e.rel,t]),[o,c]=(0,i.useState)(!1),l=async()=>{await n(t,e.rel),e.snackbar&&(r("success",e.snackbar,{type:"snackbar",context:"ithemes-security",icon:(0,a.createElement)(zt.A,{icon:ze.A,fill:"#fff"})}),c(!0),setTimeout((function(){c(!1)}),5e3))};return e.isDestructive?(0,a.createElement)(Yt,{action:e,isApplying:s,onApply:l}):(0,a.createElement)(Gt,{action:e,isApplying:s,onApply:l,isDisabled:o})}function $t({issue:e,allowedActions:t}){const{actions:n}=(0,h.useSelect)((t=>({actions:t(de).getIssueActions(e)})),[e]),r=t?n.filter((e=>t?.includes(e.rel))):n;return r?(0,a.createElement)(Et,null,r.map((t=>(0,a.createElement)(Bt,{key:t.rel,action:t,issue:e})))):null}n.p=window.itsecWebpackPublicPath,(0,l.setLocaleData)({"":{}},"ithemes-security-pro");const Ht=(0,yt.n)(document.location,{page:"itsec-site-scan"});c()((()=>{const e=document.getElementById("itsec-site-scan-root");(0,i.render)((0,a.createElement)(St,{history:Ht}),e)}))},55933:e=>{e.exports=function(){return this.wp.primitives}()},57677:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8601);const s=(0,r.forwardRef)((function({icon:e,size:t=24,...n},s){return(0,r.cloneElement)(e,{width:t,height:t,...n,ref:s})}))},66087:e=>{"use strict";e.exports=window.lodash},75413:(e,t,n)=>{"use strict";n.d(t,{n:()=>i});var r=n(17929),s=n(86663),a=n(66087);function i(e,t){const n=(0,r.zR)(),i=n=>{const a="string"==typeof n?(0,r.Rr)(n):n,i=(0,s.parse)(a.search?.substring(1))||{};return{...a,pathname:e.pathname,search:"?"+(0,s.stringify)({...i,path:a.pathname,...t})}};return{get length(){return n.length},get action(){return n.action},get location(){const e=(0,s.parse)(n.location.search.substring(1)),r=e.path||"/";return{...n.location,pathname:r,search:"?"+(0,s.stringify)((0,a.omit)(e,["path",Object.keys(t)]))}},createHref:e=>n.createHref(i(e)),push:(e,t)=>{n.push(i(e),t)},replace:(e,t)=>{n.replace(i(e),t)},go:(...e)=>n.go.apply(n,e),goBack:(...e)=>n.goBack.apply(n,e),goForward:(...e)=>n.goForward.apply(n,e),block:(...e)=>n.block.apply(n,e),listen(e){return n.listen((()=>{e(this.location,this.action)}))}}}},75795:e=>{"use strict";e.exports=window.ReactDOM},76154:e=>{"use strict";e.exports=window.moment},77172:e=>{e.exports=function(){return this.wp.url}()},79860:e=>{e.exports=function(){return this.wp.keycodes}()},84156:(e,t,n)=>{"use strict";var r,s;function a(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function o(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function c(e,t){var n,c;function l(){n=s?new WeakMap:i()}function u(){var n,r,s,a,i,l=arguments.length;for(a=new Array(l),s=0;s<l;s++)a[s]=arguments[s];for(i=t.apply(null,a),(n=c(i)).isUniqueByDependants||(n.lastDependants&&!o(i,n.lastDependants,0)&&n.clear(),n.lastDependants=i),r=n.head;r;){if(o(r.args,a,1))return r!==n.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=n.head,r.prev=null,n.head.prev=r,n.head=r),r.val;r=r.next}return r={val:e.apply(null,a)},a[0]=null,r.args=a,n.head&&(n.head.prev=r,r.next=n.head),n.head=r,r.val}return t||(t=a),c=s?function(e){var t,s,a,o,c,l=n,u=!0;for(t=0;t<e.length;t++){if(!(c=s=e[t])||"object"!=typeof c){u=!1;break}l.has(s)?l=l.get(s):(a=new WeakMap,l.set(s,a),l=a)}return l.has(r)||((o=i()).isUniqueByDependants=u,l.set(r,o)),l.get(r)}:function(){return n},u.getDependants=t,u.clear=l,l(),u}n.d(t,{A:()=>c}),r={},s="undefined"!=typeof WeakMap},85631:e=>{e.exports=function(){return this.wp.apiFetch}()},89897:e=>{e.exports=function(){return this.wp.compose}()},89959:e=>{e.exports=function(){return this.wp.date}()}},e=>{e.O(0,[9427,8356,222,3733,8363,5152,1588,2932,8620],(()=>e(e.s=55271)));var t=e.O();((window.itsec=window.itsec||{}).pages=window.itsec.pages||{})["site-scan"]=t}]);