芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/dist/pages/site-scan.min.js
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[2645],{79612:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(90071),s=n(17563),a=n(92819);function i(e,t){const n=(0,r.lX)(),i=n=>{const a="string"==typeof n?(0,r.cP)(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)}))}}}},61384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProgressBarBeforeFill:()=>Se,ScanComponentPromo:()=>it,ScanIssueDetailColumn:()=>kt,ScanIssueDetailContent:()=>Ct,ScanIssueText:()=>At,ScanResultActionButtons:()=>ht,SiteScanIssue:()=>Pt,SiteScanIssueActions:()=>Bt,SiteScanIssuesFill:()=>he,SiteScanMutedIssuesFill:()=>Ee,store:()=>pe});var r={};n.r(r),n.d(r,{FAILED_ACTION:()=>H,FAILED_COMPONENT_SCAN:()=>F,FAILED_GROUP_SCAN:()=>P,FINISH_ACTION:()=>G,FINISH_COMPONENT_SCAN:()=>L,FINISH_SCAN:()=>z,RECEIVE_ISSUE:()=>B,REGISTER_COMPONENT:()=>O,REGISTER_COMPONENT_GROUP:()=>Z,START_ACTION:()=>M,START_COMPONENT_SCAN:()=>T,START_SCAN:()=>D,applyIssueAction:()=>R,registerScanComponent:()=>_,registerScanComponentGroup:()=>I,startScan:()=>N});var s={};n.r(s),n.d(s,{componentHasIssues:()=>Q,getComponentBySlug:()=>K,getCurrentScanComponent:()=>ae,getErrorForComponent:()=>ne,getErrors:()=>te,getIssue:()=>J,getIssueActions:()=>ce,getIssues:()=>X,getIssuesForComponent:()=>Y,getIssuesForComponentGroup:()=>ee,getPreviousScanComponent:()=>ie,getScanComponentStatus:()=>q,getScanComponents:()=>$,getScanGroup:()=>W,getUpcomingScanComponent:()=>oe,hasCompletedScan:()=>se,isApplyingAction:()=>le,isScanRunning:()=>re});var a=n(6293),i=n(25993),o=n.n(i),c=n(95122),l=n(16550),u=n(42236),m=n(12614),p=n(64893),d=n(3571),g=n(48015),h=n(25703),f=n(13173),E=n(87514),x=n.n(E),S=n(31511);const y="waiting",v="busy",w="done",b="failed";function _(e){return{type:O,args:e}}function I(e){return{type:Z,args:e}}const N=()=>async({select:e,dispatch:t})=>{t({type:D});const n=e.getScanComponents(),r={};for(let s=0;s
e[0]))}catch(e){t(A(a.group,e));continue}else await j(2500);const n=r[a.group];Array.isArray(n)&&t(C(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(C(a.slug,e))}catch(e){t(k(a.slug,e))}s
async({dispatch:n,select:r})=>{const s=(0,S.Rg)(e,t);if(s){n({type:M,rel:t,issue:e});try{var a;const i=await x()({url:s,method:"POST"});n({type:G,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:B,issue:l}),i}catch(r){return n({type:H,rel:t,issue:e,error:r}),r}}},O="REGISTER_COMPONENT",Z="REGISTER_COMPONENT_GROUP",T="START_SCAN_COMPONENT",F="FAILED_COMPONENT_SCAN",L="FINISH_COMPONENT_SCAN",P="FAILED_GROUP_SCAN",D="START_SCAN",z="FINISH_SCAN",M="START_ACTION",G="FINISH_ACTION",B="RECEIVE_ISSUE",H="FAILED_ACTION",j=e=>new Promise((t=>setTimeout(t,e)));var U=n(28306),V=n(92819);const $=(0,U.Z)((e=>(0,V.sortBy)(e.components,"priority")),(e=>[e.components]));function K(e,t){return e.components[t]}function W(e,t){return e.componentGroups[t]}function q(e,t){return e.componentStatus[t]||y}function X(e){return e.issues}function J(e,t){return e.bySelf[t]?.item}function Q(e,t){return e.issues.some((e=>e.component===t&&!e.muted))}const Y=(0,U.Z)(((e,t)=>e.issues.filter((e=>e.component===t))),(e=>[e.issues])),ee=(0,U.Z)(((e,t)=>e.issues.filter((n=>K(e,n.component)?.group===t))),(e=>[e.issues])),te=(0,U.Z)((e=>Object.values(e.componentErrors).concat(Object.values(e.groupErrors))),(e=>[e.componentErrors,e.groupErrors]));function ne(e,t){const n=e.components[t]?.group;return n?e.groupErrors[n]:e.componentErrors[t]}function re(e){return e.isRunning}function se(e){return!re(e)&&Object.keys(e.componentStatus).length>0}function ae(e){return(0,V.findKey)(e.componentStatus,(function(e){return e===v}))}function ie(e){const t=$(e),n=t.findLastIndex((t=>q(e,t.slug)===w||q(e,t.slug)===b));return t[n]?.slug}function oe(e){if(ae(e))return;const t=$(e),n=t.findIndex((t=>q(e,t.slug)===y));return t[n]?.slug}function ce(e,t){return(0,V.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 le(e,t,n){return e.actions.includes(`${n}:${t.component}:${t.id}`)}const ue={components:{},componentGroups:{},componentStatus:{},componentErrors:{},groupErrors:{},issues:[],isRunning:!1,actions:[]},me=(0,g.createReduxStore)("ithemes-security/site-scan-ui",{actions:r,selectors:s,reducer:function(e=ue,t){switch(t.type){case O:return{...e,components:{...e.components,[t.args.slug]:t.args}};case Z:return{...e,componentGroups:{...e.componentGroups,[t.args.slug]:t.args}};case T:return{...e,componentStatus:{...e.componentStatus,[t.component]:v}};case F:return{...e,componentStatus:{...e.componentStatus,[t.component]:b},componentErrors:{...e.componentErrors,[t.component]:t.error}};case L:return{...e,componentStatus:{...e.componentStatus,[t.component]:w},issues:[...e.issues,...t.issues]};case P: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 D:return{...e,componentStatus:{},componentErrors:{},groupErrors:{},issues:[],isRunning:!0};case z:return{...e,isRunning:!1};case M:return{...e,actions:[...e.actions,`${t.rel}:${t.issue.component}:${t.issue.id}`]};case G:case H:return{...e,actions:e.actions.filter((e=>e!==`${t.rel}:${t.issue.component}:${t.issue.id}`))};case B: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,g.register)(me);const pe=me;var de=n(20567),ge=n(9576);const{Fill:he,Slot:fe}=(0,p.createSlotFill)("SiteScanIssues"),{Fill:Ee,Slot:xe}=(0,p.createSlotFill)("SiteScanMutedIssues"),{Fill:Se,Slot:ye}=(0,p.createSlotFill)("ProgressBarBefore");var ve=n(60976),we=n(52117);const be=(0,we.Z)("div",{target:"edgf2if4"})({name:"1gcahmj",styles:"padding:1rem 1.5rem;border-radius:2px 2px 0 0"}),_e=(0,we.Z)("div",{target:"edgf2if3"})("border:1px solid ",(({theme:e})=>e.colors.border.normal),";margin-top:1.25rem;"),Ie=(0,we.Z)(f.xv,{target:"edgf2if2"})({name:"1cy4go1",styles:"width:15%"}),Ne=(0,we.Z)(f.xv,{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),";"),Ce=(0,we.Z)(f.Tg,{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,g.useSelect)((e=>({isScanRunning:e(pe).isScanRunning()})),[]),r=(0,ge.useViewportMatch)("small","<"),s=(0,ge.useViewportMatch)("large");return(0,a.createElement)(_e,null,(0,a.createElement)(be,null,(0,a.createElement)(f.X6,{level:3,size:f.yH.LARGE,weight:600,text:(0,c.__)("Scan Results","it-l10n-ithemes-security-pro")})),r?(0,a.createElement)(Ae,{hasIssues:e,isScanRunning:n,type:t}):(0,a.createElement)(Re,{hasIssues:e,isScanRunning:n,isLarge:s,type:t}))}function Ae({hasIssues:e,isScanRunning:t,type:n}){return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(Ne,null,(0,a.createElement)(f.xv,{textTransform:"uppercase",variant:f.rK.DARK,text:(0,c.__)("Type and Scan Info","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{textTransform:"uppercase",variant:f.rK.DARK,text:(0,c.__)("Severity","it-l10n-ithemes-security-pro")})),t||e?(0,a.createElement)(React.Fragment,null,"active"===n&&(0,a.createElement)(fe,null),"muted"===n&&(0,a.createElement)(xe,null)):(0,a.createElement)(Oe,null))}function Re({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,c.__)("Type","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Scan Info","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Severity","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Action","it-l10n-ithemes-security-pro"),align:"right"})):(0,a.createElement)("tr",null,(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Type","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Scan Info","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Severity","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.xv,{as:"th",text:(0,c.__)("Action","it-l10n-ithemes-security-pro"),align:"right"}))),t||e?(0,a.createElement)("tbody",null,"active"===r&&(0,a.createElement)(fe,null),"muted"===r&&(0,a.createElement)(xe,null)):(0,a.createElement)("tbody",null,(0,a.createElement)("tr",null,(0,a.createElement)("td",{colSpan:"6"},(0,a.createElement)(Oe,null)))))}function Oe(){const{startScan:e}=(0,g.useDispatch)(pe),{hasRunScan:t}=(0,g.useSelect)((e=>({hasRunScan:e(pe).hasCompletedScan()})),[]);return(0,a.createElement)(Ce,null,(0,a.createElement)(de.nU,{icon:(0,a.createElement)(ve.AE,null)}),(0,a.createElement)(f.xv,{variant:f.rK.DARK,weight:700,text:t?(0,c.__)("No scan results found!","it-l10n-ithemes-security-pro"):(0,c.__)("Scan to find issues with your site’s security.","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.zx,{onClick:()=>{e()},variant:"primary",text:(0,c.__)("Start Site Scan","it-l10n-ithemes-security-pro")}))}function Ze({issues:e}){const{hasScanRun:t}=(0,g.useSelect)((e=>({hasScanRun:e(pe).hasCompletedScan()})),[]),n=e.filter((e=>!e.muted)).length,r=e.filter((e=>e.muted)).length,s=(0,a.useMemo)((()=>[{name:"scan-results",title:t?(0,c.sprintf)((0,c.__)("Scan Results (%d)","it-l10n-ithemes-security-pro"),n):(0,c.__)("Scan Results","it-l10n-ithemes-security-pro"),render:()=>(0,a.createElement)(ke,{hasIssues:n>0,type:"active"})},{name:"ignored-results",title:t?(0,c.sprintf)((0,c.__)("Muted Results (%d)","it-l10n-ithemes-security-pro"),r):(0,c.__)("Muted Results","it-l10n-ithemes-security-pro"),render:()=>(0,a.createElement)(ke,{hasIssues:r>0,type:"muted"})}]),[t,n,r]);return(0,a.createElement)(f.x4,{tabs:s},(({render:e})=>(0,a.createElement)(e,null)))}var Te=n(31600),Fe=n(70917),Le=n(61),Pe=n(87329),De=n(28184),ze=n(65202);const Me=Fe.F4` from { opacity: 0; } to { opacity: 1; } `;function Ge({status:e,hasIssues:t,isStep:n}){switch(e){case"upgrade":return(0,a.createElement)(Qe,{icon:Le.Z,size:16,isStep:n});case y:return(0,a.createElement)(qe,{isStep:n});case v:return(0,a.createElement)(Xe,{isStep:n});case w:return t?(0,a.createElement)(Ye,{icon:Pe.Z,size:16,isStep:n}):(0,a.createElement)(et,{icon:De.Z,size:16,isStep:n});default:return(0,a.createElement)(tt,{icon:ze.Z,size:16,isStep:n})}}function Be(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 y:return"#cecece";case"upgrade":return"#333333";default:return"#6817C5"}}const He=(0,we.Z)("div",{target:"e107mwd516"})({name:"146trfc",styles:"position:relative;display:flex;flex-direction:column;align-items:center;padding:0.5rem 0;overflow:auto"}),je=(0,we.Z)("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,Fe.iv)(Me,";","")),";"),Ue=(0,we.Z)("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,Fe.iv)(Me,";","")),";@media screen and (min-width: ",(({theme:e})=>e.breaks.small),"px){gap:1rem;}"),Ve=(0,we.Z)("div",{target:"e107mwd513"})({name:"1qic15g",styles:"position:relative;height:120px"}),$e=(0,we.Z)("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;}"),Ke=(0,we.Z)("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,Fe.iv)("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;}",""),qe=(0,we.Z)("div",{target:"e107mwd510"})(We,";background:#cecece;border-radius:50%;border-color:",(({theme:e})=>e.colors.surface.primary),";"),Xe=(0,we.Z)(p.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,Fe.iv)(Me,";","")),";"),Je=(0,we.Z)(p.Icon,{shouldForwardProp:e=>"isStep"!==e,target:"e107mwd58"})(We,";fill:white;border-radius:50%;animation:ease-in 250ms;animation-name:",(({isStep:e})=>e&&(0,Fe.iv)(Me,";","")),";"),Qe=(0,we.Z)(Je,{target:"e107mwd57"})("background:",(({theme:e})=>e.colors.surface.dark),";"),Ye=(0,we.Z)(Je,{target:"e107mwd56"})({name:"17ktdlk",styles:"background:#FFC518"}),et=(0,we.Z)(Je,{target:"e107mwd55"})("background:",(({theme:e})=>e.colors.surface.primaryAccent),";"),tt=(0,we.Z)(Je,{target:"e107mwd54"})({name:"rdog0l",styles:"background:#D63638"}),nt=(0,we.Z)("div",{target:"e107mwd53"})({name:"1musbqr",styles:"display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:-0.5rem"}),rt=(0,we.Z)("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),";"),st=(0,we.Z)(f.xv,{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;}"),at=(0,we.Z)(f.zx,{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 it({label:e,description:t,index:n}){const r="upgrade";return(0,a.createElement)(Ue,null,(0,a.createElement)($e,null,(0,a.createElement)(Ke,{background:Be(r,n,50,"left","free")}),(0,a.createElement)(Ge,{status:r}),(0,a.createElement)(Ke,{background:Be(r,n,50,"right","free")})),(0,a.createElement)(p.Tooltip,{text:t},(0,a.createElement)(nt,null,(0,a.createElement)(rt,{status:r}),(0,a.createElement)(st,{status:r,text:e}))),(0,a.createElement)(at,{variant:"tertiary",href:"https://go.solidwp.com/upgrade-to-solid-security-pro",target:"_blank",text:(0,c.__)("Unlock","it-l10n-ithemes-security-pro")}))}function ot({slug:e,index:t,length:n,isStep:r,installType:s}){const{component:i,status:o,hasIssues:c}=(0,g.useSelect)((t=>({component:t(pe).getComponentBySlug(e),status:t(pe).getScanComponentStatus(e),hasIssues:t(pe).componentHasIssues(e)})),[e]);return(0,a.createElement)(Ue,{isStep:r},r?(0,a.createElement)(Ge,{isStep:r,status:o,hasIssues:c}):(0,a.createElement)($e,null,(0,a.createElement)(Ke,{background:Be(o,t,n,"left",s)}),(0,a.createElement)(Ge,{status:o,hasIssues:c}),(0,a.createElement)(Ke,{background:Be(o,t,n,"right",s)})),(0,a.createElement)(p.Tooltip,{text:i.description},(0,a.createElement)(nt,null,(0,a.createElement)(rt,{status:o}),(0,a.createElement)(st,{status:o,text:i.label}))))}function ct({components:e,isComplete:t}){const{installType:n}=(0,g.useSelect)((e=>({installType:e(Te.coreStore).getInstallType()})),[]);return(0,a.createElement)(je,{isComplete:t},(0,a.createElement)(ye,null),e.map(((t,r)=>(0,a.createElement)(ot,{key:t.slug,slug:t.slug,index:r,length:e.length,installType:n}))))}function lt(){const{currentStep:e,previousStep:t,nextStep:n}=(0,g.useSelect)((e=>({currentStep:e(pe).getCurrentScanComponent(),previousStep:e(pe).getPreviousScanComponent(),nextStep:e(pe).getUpcomingScanComponent()})),[]);return(0,a.createElement)(Ve,null,t&&(0,a.createElement)(ot,{slug:t,isStep:"previous",key:t}),e&&(0,a.createElement)(ot,{slug:e,isStep:"current",key:e}),n&&(0,a.createElement)(ot,{slug:n,isStep:"next",key:n}))}function ut({components:e}){const{isScanRunning:t,hasCompletedScan:n}=(0,g.useSelect)((e=>({isScanRunning:e(pe).isScanRunning(),hasCompletedScan:e(pe).hasCompletedScan()})),[]);return(0,a.createElement)(He,null,!t&&(0,a.createElement)(ct,{components:e,isComplete:n}),t&&(0,a.createElement)(lt,{components:e}))}const mt=(0,we.Z)(f.Tg,{target:"ebxa02v5"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),pt=(0,we.Z)("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)}`),";"),dt=(0,we.Z)("div",{target:"ebxa02v3"})("display:flex;justify-content:space-between;align-items:center;padding-bottom:",(({theme:{getSize:e}})=>e(1)),";"),gt=(0,we.Z)(f.Tg,{target:"ebxa02v2"})("display:flex;flex-direction:column;gap:",(({theme:{getSize:e}})=>`${e(2.5)} 0`),";padding:",(({theme:{getSize:e}})=>`${e(1)} ${e(1.25)}`),";"),ht=(0,we.Z)("div",{target:"ebxa02v1"})({name:"r2g86h",styles:"display:flex;align-items:center;gap:1rem"}),ft=(0,we.Z)(p.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 Et({history:e}){const{startScan:t}=(0,g.useDispatch)(pe),{removeNotice:n}=(0,g.useDispatch)(h.store),{components:r,issues:s,snackbarNotices:i}=(0,g.useSelect)((e=>({components:e(pe).getScanComponents(),issues:e(pe).getIssues(),snackbarNotices:e(h.store).getNotices("ithemes-security")})),[]);return(0,a.createElement)(m.a,{theme:f.U1},(0,a.createElement)(l.F0,{history:e},(0,a.createElement)(u.Fz,{ReactRouterRoute:l.AW},(0,a.createElement)(mt,{className:"itsec-site-scan",variant:f.h1.UNDER_PAGE},(0,a.createElement)(p.SlotFillProvider,null,(0,a.createElement)(d.PluginArea,null),(0,a.createElement)(p.Popover.Slot,null),(0,a.createElement)(de.Qf,null),(0,a.createElement)(l.rs,null,(0,a.createElement)(pt,null,(0,a.createElement)(f.X6,{level:1,weight:f.fs.NORMAL,text:(0,c.__)("Site Scans","it-l10n-ithemes-security-pro")}),(0,a.createElement)(dt,null,(0,a.createElement)(f.xv,{size:f.yH.SMALL,variant:f.rK.MUTED,text:(0,c.__)("Scan your site for security issues and find out how fix them.","it-l10n-ithemes-security-pro")}),(0,a.createElement)(f.zx,{onClick:()=>{t()},variant:"primary",text:(0,c.__)("Start Site Scan","it-l10n-ithemes-security-pro")})),(0,a.createElement)(gt,{variant:f.h1.PRIMARY},(0,a.createElement)("div",null,(0,a.createElement)(f.X6,{level:2,size:f.yH.LARGE,weight:600,text:(0,c.__)("Scan","it-l10n-ithemes-security-pro")})),(0,a.createElement)(ut,{components:r}),(0,a.createElement)(Ze,{issues:s})))),(0,a.createElement)(ft,{notices:i,onRemove:e=>n(e,"ithemes-security")}))))))}var xt=n(79612),St=n(96015),yt=n(83904);function vt(e){switch(e){case"low":return"#B8E6BF";case"medium":return"#FFC518";case"high":return"#FFABAF";default:return"#D63638"}}function wt(e){switch(e){case"low":return(0,c.__)("Low","it-l10n-ithemes-security-pro");case"medium":return(0,c.__)("Medium","it-l10n-ithemes-security-pro");case"high":return(0,c.__)("High","it-l10n-ithemes-security-pro");default:return(0,c.__)("Critical","it-l10n-ithemes-security-pro")}}const bt=(0,we.Z)("div",{target:"ee9gv7n10"})({name:"1dt2p9p",styles:"display:grid;grid-column-gap:2rem;grid-template-columns:0.5fr 1fr;overflow-wrap:anywhere"}),_t=(0,we.Z)(f.xv,{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,we.Z)("div",{target:"ee9gv7n8"})({name:"1xj2l20",styles:"display:flex;gap:2rem;flex-wrap:wrap;justify-content:space-between"}),Nt=(0,we.Z)(f.Tg,{target:"ee9gv7n7"})("display:",(({isExpanded:e})=>e?"table-row":"none"),";"),Ct=(0,we.Z)("div",{target:"ee9gv7n6"})({name:"w1xf4t",styles:"display:flex;flex-wrap:wrap;gap:2rem"}),kt=(0,we.Z)("div",{target:"ee9gv7n5"})({name:"9ffgsy",styles:"display:flex;flex-direction:column;justify-content:space-between;max-width:70ch"}),At=(0,we.Z)(f.xv,{target:"ee9gv7n4"})({name:"aeppwa",styles:"line-height:1.3rem;margin-top:.4rem"}),Rt=(0,we.Z)("div",{target:"ee9gv7n3"})({name:"p2oy12",styles:"display:flex;flex-direction:column;gap:0.25rem"}),Ot=(0,we.Z)("td",{target:"ee9gv7n2"})({name:"2qga7i",styles:"text-align:right"}),Zt=(0,we.Z)("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,we.Z)(f.Tg,{target:"ee9gv7n0"})("display:",(({isExpanded:e})=>!e&&"none"),";padding:1rem;");function Ft({icon:e,issue:t,isLarge:n,children:r}){const{component:s}=(0,g.useSelect)((e=>({component:e(pe).getComponentBySlug(t.component)})),[t.component]),[i,o]=(0,a.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.xv,{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.xv,{weight:600,text:t.title}),t.description&&(0,a.createElement)(f.xv,{text:t.description})))),(0,a.createElement)("td",null,(0,a.createElement)(_t,{weight:600,backgroundColor:vt(t.severity),text:wt(t.severity)}))),!n&&(0,a.createElement)(React.Fragment,null,(0,a.createElement)("td",{colSpan:"2"},(0,a.createElement)(Rt,null,(0,a.createElement)(f.xv,{icon:e,text:s.label}),(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.xv,{as:"p",weight:600,text:t.title}),t.description&&(0,a.createElement)(f.xv,{as:"p",text:t.description})))),(0,a.createElement)("td",null,(0,a.createElement)(_t,{weight:600,backgroundColor:vt(t.severity),text:wt(t.severity)}))),(0,a.createElement)(Ot,null,(0,a.createElement)(f.zx,{"aria-controls":"solid-scan-result-"+t.component+"-"+t.id,"aria-expanded":i,icon:i?St.Z:yt.Z,iconPosition:"right",iconGap:0,onClick:()=>o(!i),variant:"tertiary",label:(0,c.__)("View Details","it-l10n-ithemes-security-pro"),text:n&&(0,c.__)("View Details","it-l10n-ithemes-security-pro")}))),(0,a.createElement)(Nt,{as:"tr",id:"solid-scan-result-"+t.component+"-"+t.id,isExpanded:i,variant:"tertiary"},(0,a.createElement)("td",{colSpan:n?5:4},(0,a.createElement)(It,null,r))))}function Lt({icon:e,issue:t,children:n}){const{component:r}=(0,g.useSelect)((e=>({component:e(pe).getComponentBySlug(t.component)})),[t.component]),[s,i]=(0,a.useState)(!1);return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(Zt,null,(0,a.createElement)("div",null,(0,a.createElement)(f.xv,{icon:e,text:r.label}),(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.xv,{as:"p",weight:600,text:t.title}),t.description&&(0,a.createElement)(f.xv,{as:"p",text:t.description}))),(0,a.createElement)("div",null,(0,a.createElement)(_t,{backgroundColor:vt(t.severity),weight:600,text:wt(t.severity)})),(0,a.createElement)(f.zx,{"aria-controls":"solid-scan-result-"+t.component+"-"+t.id,"aria-expanded":s,icon:s?St.Z:yt.Z,iconPosition:"right",onClick:()=>i(!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 Pt({issue:e,icon:t,children:n}){const r=(0,ge.useViewportMatch)("small","<"),s=(0,ge.useViewportMatch)("large");return r?(0,a.createElement)(Lt,{issue:e,icon:t,children:n}):(0,a.createElement)(Ft,{issue:e,icon:t,children:n,isLarge:s})}var Dt=n(11984);function zt({action:e,isApplying:t,onApply:n,isDisabled:r}){return(0,a.createElement)(f.zx,{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 Mt({action:e,isApplying:t,onApply:n}){const r={title:(0,c.__)("Confirm your action","it-l10n-ithemes-security-pro"),body:(0,c.__)("Are you sure you want to do this?","it-l10n-ithemes-security-pro"),onContinue:n,continueText:e.title},[s,i]=(0,f.HW)(r);return(0,a.createElement)(React.Fragment,null,(0,a.createElement)(f.zx,{isDestructive:e.isDestructive,isBusy:t,onClick:s,text:e.title}),i)}function Gt({action:e,issue:t}){const{applyIssueAction:n}=(0,g.useDispatch)(pe),{createNotice:r}=(0,g.useDispatch)("core/notices"),{isApplying:s}=(0,g.useSelect)((n=>({isApplying:n(pe).isApplyingAction(t,e.rel)})),[e.rel,t]),[i,o]=(0,a.useState)(!1),c=async()=>{await n(t,e.rel),e.snackbar&&(r("success",e.snackbar,{type:"snackbar",context:"ithemes-security",icon:(0,a.createElement)(Dt.Z,{icon:De.Z,fill:"#fff"})}),o(!0),setTimeout((function(){o(!1)}),5e3))};return e.isDestructive?(0,a.createElement)(Mt,{action:e,isApplying:s,onApply:c}):(0,a.createElement)(zt,{action:e,isApplying:s,onApply:c,isDisabled:i})}function Bt({issue:e,allowedActions:t}){const{actions:n}=(0,g.useSelect)((t=>({actions:t(pe).getIssueActions(e)})),[e]),r=t?n.filter((e=>t?.includes(e.rel))):n;return r?(0,a.createElement)(ht,null,r.map((t=>(0,a.createElement)(Gt,{key:t.rel,action:t,issue:e})))):null}n.p=window.itsecWebpackPublicPath,(0,c.setLocaleData)({"":{}},"ithemes-security-pro");const Ht=(0,xt.f)(document.location,{page:"itsec-site-scan"});o()((()=>{const e=document.getElementById("itsec-site-scan-root");(0,a.render)((0,a.createElement)(Et,{history:Ht}),e)}))},11984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6293);const s=function({icon:e,size:t=24,...n}){return(0,r.cloneElement)(e,{width:t,height:t,...n})}},83904:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),s=n(14776);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"}))},96015:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),s=n(14776);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"}))},61:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),s=n(14776);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"}))},87329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6293),s=n(14776);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"}))},28306:(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
c}),r={},s="undefined"!=typeof WeakMap},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},87514:e=>{e.exports=function(){return this.wp.apiFetch}()},64893:e=>{e.exports=function(){return this.wp.components}()},9576:e=>{e.exports=function(){return this.wp.compose}()},48015:e=>{e.exports=function(){return this.wp.data}()},82521:e=>{e.exports=function(){return this.wp.date}()},25993:e=>{e.exports=function(){return this.wp.domReady}()},6293:e=>{e.exports=function(){return this.wp.element}()},95122:e=>{e.exports=function(){return this.wp.i18n}()},81019:e=>{e.exports=function(){return this.wp.keycodes}()},25703:e=>{e.exports=function(){return this.wp.notices}()},3571:e=>{e.exports=function(){return this.wp.plugins}()},14776:e=>{e.exports=function(){return this.wp.primitives}()},73470:e=>{e.exports=function(){return this.wp.url}()},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},76292:e=>{"use strict";e.exports=window.moment}},e=>{e.O(0,[7271,3173,5307,5257,3627,3828,976,1511,567],(()=>(61384,e(e.s=61384))));var t=e.O();((window.itsec=window.itsec||{}).pages=window.itsec.pages||{})["site-scan"]=t}]);