芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/dist/567.min.js
"use strict";(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[567],{20567:(e,t,a)=>{a.d(t,{U9:()=>_e,qb:()=>B,a7:()=>A,kS:()=>he,fv:()=>u,KM:()=>h,Xp:()=>E,nU:()=>ee,TR:()=>oe,Lu:()=>_,uC:()=>X,$J:()=>ke,qd:()=>fe,ru:()=>Le,Ph:()=>D,_g:()=>Q,ge:()=>U,Qf:()=>Y,oB:()=>Ie,SZ:()=>Te});var r=a(6293),n=a(62845),o=a(92819),l=a(87514),s=a.n(l),i=a(73470),c=a(64893),m=a(9576);const{useGlobalState:d}=(0,n.r8)({cache:{}});function u({id:e,value:t,disabled:a,readonly:n,onChange:l,label:p,description:g,isMultiple:h=!1,path:f,query:b={},labelAttr:E,idAttr:y="id",searchArg:v="search"}){const[x,I]=d("cache"),N=(0,m.useInstanceId)(u,"itsec-entity-select-control");e=e||N;const[w,C]=(0,r.useState)(""),k=function(e,t,a,n,l,c,m){return(0,r.useCallback)((r=>s()({path:(0,i.addQueryArgs)(e,{...t,[l]:r})}).then((e=>e.map((e=>({value:e[n],label:e[a]}))))).then((t=>(m({...c,[e]:{...c[e]||{},...(0,o.mapValues)((0,o.keyBy)(t,"value"),"label")}}),t)))),[e,t,a,n,l,c,m])}(f,b,E,y,v,x,I);let S;return h?S=(t||[]).filter((e=>void 0!==e)).map((e=>({value:e,label:x[f]?.[e]||e}))):t&&(S={value:t,label:x[f]?.[t]||t}),(0,r.createElement)(c.BaseControl,{className:"itsec-entity-select-control",label:p,help:g&&(0,r.createElement)(_,{noWrap:!0,content:g}),id:e,__nextHasNoMarginBottom:!0},(0,r.createElement)(B,{"aria-label":p,"aria-describedby":g?e+"__help":void 0,classNamePrefix:"itsec-entity-select-control-as",inputId:e,isDisabled:a||n,isMulti:h,isClearable:!0,cacheOptions:!0,defaultOptions:!0,loadOptions:k,value:S,onChange:e=>l(h?(e||[]).map((e=>e.value)):e?.value),inputValue:w,onInputChange:C}))}var p=a(13173),g=a(31511);function h({errors:e,apiError:t,schemaError:a,title:n,className:o,hasBorder:l}){const s=[...e||[],...(0,g.Y3)(t),...(a||[]).map((e=>e.stack))];return s.length?(0,r.createElement)(p.rN,{messages:s,heading:n,className:o,hasBorder:l,type:"danger"}):null}var f=a(52117);const b=(0,f.Z)("div",{target:"eq12dkg0"})({name:"1ff36h2",styles:"flex-grow:1"});function E(){return(0,r.createElement)(b,{"aria-hidden":!0})}var y=a(87462),v=a(63108),x=a(73727);function _({transform:e,...t}){return(0,r.createElement)(v.Lu,(0,y.Z)({},t,{transform:(a,n)=>{if(e){const t=e(a,n);if(void 0!==t)return t}if("a"===a.tagName.toLowerCase()&&a.dataset.itsecPath&&!t.noHtml)return(0,r.createElement)(x.rU,{to:a.dataset.itsecPath},n)}}))}var I=a(99196),N=a(35800),w=a(12614),C=a(29508),k=a(95122);const S=(0,I.lazy)((()=>Promise.all([a.e(4699),a.e(3157)]).then(a.bind(a,23157)))),O=(0,I.lazy)((()=>Promise.all([a.e(4699),a.e(4136)]).then(a.bind(a,64136)))),L=(0,I.lazy)((()=>Promise.all([a.e(4699),a.e(1323)]).then(a.bind(a,31323))));function T(){return(0,r.createElement)("span",null,(0,k.__)("Error when loading. Please refresh.","it-l10n-ithemes-security-pro"))}const P=(0,C.iv)({name:"1nml846",styles:"input{min-height:0;}input:focus{box-shadow:none;}"});function Z(){const e=(0,w.u)();return(0,r.useCallback)((t=>({...t,colors:{...t.colors,primary:e.colors.primary.base,primary75:e.colors.secondary.base,primary50:e.colors.tertiary.base,primary25:e.colors.surface.secondary}})),[e])}function z(){return(0,r.useMemo)((()=>({control:(e,t)=>({...e,minHeight:36,borderColor:t.isFocused?e.borderColor:"rgb(148, 148, 148)",borderRadius:2}),dropdownIndicator:e=>({...e,padding:6}),clearIndicator:e=>({...e,padding:6}),loadingIndicator:e=>({...e,padding:6}),valueContainer:e=>({...e,paddingTop:0,paddingBottom:0}),input:e=>({...e,paddingTop:0,paddingBottom:0})})),[])}function D({addErrorBoundary:e=!0,className:t,...a}){const n=Z(),o=z(),l=(0,r.createElement)(I.Suspense,{fallback:(0,r.createElement)(c.Spinner,null)},(0,r.createElement)(S,(0,y.Z)({},a,{className:(0,C.cx)(t,P),theme:n,styles:o})));return e?(0,r.createElement)(N.ErrorBoundary,{FallbackComponent:T},l):l}function B({addErrorBoundary:e=!0,className:t,...a}){const n=Z(),o=z(),l=(0,r.createElement)(I.Suspense,{fallback:(0,r.createElement)(c.Spinner,null)},(0,r.createElement)(O,(0,y.Z)({},a,{className:(0,C.cx)(t,P),theme:n,styles:o})));return e?(0,r.createElement)(N.ErrorBoundary,{FallbackComponent:T},l):l}function A({addErrorBoundary:e=!0,className:t,...a}){const n=Z(),o=z(),l=(0,r.createElement)(I.Suspense,{fallback:(0,r.createElement)(c.Spinner,null)},(0,r.createElement)(L,(0,y.Z)({},a,{className:(0,C.cx)(t,P),theme:n,styles:o})));return e?(0,r.createElement)(N.ErrorBoundary,{FallbackComponent:T},l):l}var F=a(32010),M=a(60976);const j=(0,f.Z)(p.Tg,{target:"ewfm7an3"})({name:"1x94tvs",styles:"display:flex;align-items:center;flex-shrink:0;padding:.5rem 1.5rem;min-height:calc(30px + 1rem);& .components-button:focus{box-shadow:none;}"}),$=(0,f.Z)(c.Toolbar,{target:"ewfm7an2"})({name:"gxzf6f",styles:"border:none;max-width:100%;margin-left:auto"}),H=(0,f.Z)("div",{target:"ewfm7an1"})({name:"hlx1h5",styles:"display:flex;gap:0.5rem;margin:0 2rem 0 1rem;flex-grow:1"}),R=(0,f.Z)(M.Ae,{target:"ewfm7an0"})({name:"1jxlbx4",styles:"height:2rem;width:2rem"});function V({area:e,...t}){return(0,r.createElement)(c.Slot,(0,y.Z)({name:`Toolbar${e}`},t))}function U({area:e="actions",...t}){return(0,r.createElement)(c.Fill,(0,y.Z)({name:`Toolbar${e}`},t))}function Y(){const e=(0,g.bv)("dashboard"),t=(0,m.useViewportMatch)("medium","<");return(0,r.createElement)(j,{role:"region","aria-label":(0,k.__)("Toolbar","it-l10n-ithemes-security-pro")},t?(0,r.createElement)(R,null):(0,r.createElement)(oe,null),(0,r.createElement)(V,{area:"main"},(e=>(0,r.createElement)(H,null,e))),(0,r.createElement)($,{label:(0,k.__)("Toolbar Actions","it-l10n-ithemes-security-pro")},(0,r.createElement)(c.ToolbarButton,{icon:F.Z,href:e,text:(0,k.__)("Dashboard","it-l10n-ithemes-security-pro")}),(0,r.createElement)(V,{area:"actions"})))}const q=(0,f.Z)("nav",{target:"edhe72i2"})("display:flex;border-bottom:1px solid ",(({theme:e})=>e.colors.border.normal),";"),G=(0,f.Z)(x.OL,{target:"edhe72i1"})("display:flex;text-decoration:none;align-items:center;&.active{box-shadow:inset 0 -4px 0 0 ",(({theme:e})=>e.colors.border.info),";}&:focus{color:",(({theme:e})=>e.colors.text.dark),";box-shadow:inset 0 0 0 2px ",(({theme:e})=>e.colors.border.info),",inset 0 -4px 0 0 ",(({theme:e})=>e.colors.border.info),"!important;border-radius:3px!important;}"),W=(0,f.Z)(p.xv,{target:"edhe72i0"})({name:"1i2l0vb",styles:"padding:.75rem 1.25rem"}),J=(0,r.createContext)({size:p.yH.LARGE});function Q({className:e,size:t=p.yH.LARGE,children:a}){const n=(0,r.useMemo)((()=>({size:t})),[t]);return(0,r.createElement)(q,{className:e},(0,r.createElement)(J.Provider,{value:n},a))}function X({title:e,...t}){const{size:a}=(0,r.useContext)(J);return(0,r.createElement)(G,t,(0,r.createElement)(W,{size:a,weight:p.fs.HEAVY,text:e,align:"center"}))}const K=(0,f.Z)(M.Ae,{shouldForwardProp:e=>"isSmall"!==e,target:"ec6rts80"})("height:",(({isSmall:e})=>e?"56px":"120px"),";width:",(({isSmall:e})=>e?"56px":"120px"),";");function ee({icon:e,isSmall:t=!1}){return(0,m.useMediaQuery)("(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)")?e:(0,r.createElement)(K,{isSmall:t})}var te=a(48015),ae=a(31600);const re=(0,f.Z)(M.sX,{target:"es1l7u91"})("height:",(({size:e})=>e),"px;width:auto;max-width:100%;"),ne=(0,f.Z)(M.Pb,{target:"es1l7u90"})("height:",(({size:e})=>e),"px;width:auto;max-width:100%;");function oe({size:e=25,className:t}){const{installType:a}=(0,te.useSelect)((e=>({installType:e(ae.coreStore).getInstallType()})),[]);return"free"===a?(0,r.createElement)(re,{size:e,className:t}):(0,r.createElement)(ne,{size:e,className:t})}var le=a(59588),se=a.n(le),ie=a(76292),ce=a.n(ie),me=a(82506),de=a(82521);const ue=(0,f.Z)("div",{target:"e1pwp6dm1"})({name:"aj6rbz",styles:"display:flex;gap:0.5rem"}),pe=(0,f.Z)(p.zx,{target:"e1pwp6dm0"})({name:"1o3nkn",styles:"margin-left:auto"}),ge=se()((()=>[{value:"24-hours",label:(0,k.__)("24 Hours","it-l10n-ithemes-security-pro")},{value:"week",label:(0,k.__)("7 Days","it-l10n-ithemes-security-pro")},{value:"30-days",label:(0,k.__)("30 Days","it-l10n-ithemes-security-pro")},{value:"custom",label:(0,k.__)("Custom","it-l10n-ithemes-security-pro")}]));function he({value:e,onChange:t}){const[a,n]=(0,r.useState)(!1),[l,s]=(0,r.useState)(void 0),[i,m]=(0,r.useState)(void 0);let[d,u]=(0,r.useState)(void 0);const g=e,h=function(e){if(!e)return"No dates chosen";const t=new window.Date;let a,r;switch(e){case"24-hours":return(0,k.__)("24 Hours","it-l10n-ithemes-security-pro");case"30-days":a=(0,de.dateI18n)("M j",t.setDate(t.getDate()-30)),r=(0,de.dateI18n)("M j, Y");break;case"week":a=(0,de.dateI18n)("M j",t.setDate(t.getDate()-7)),r=(0,de.dateI18n)("M j, Y");break;default:a=(0,de.dateI18n)("M j",e.start),r=(0,de.dateI18n)("M j, Y",e.end)}return(0,k.sprintf)((0,k.__)("%1$s - %2$s","it-l10n-ithemes-security-pro"),a,r)}(g);return d=d||((0,o.isString)(g)?g:"custom"),(0,r.createElement)("div",null,(0,r.createElement)(p.zx,{onClick:()=>n(!a),title:h,"aria-expanded":a,"aria-label":(0,k.sprintf)((0,k.__)("%s (click to edit)","it-l10n-ithemes-security-pro"),h),variant:"tertiary",text:h,icon:me.Z,iconPosition:"right"}),a&&(0,r.createElement)(c.Modal,{title:(0,k.__)("Change Date Period","it-l10n-ithemes-security-pro"),onRequestClose:()=>n(!1)},(0,r.createElement)(c.SelectControl,{options:ge(),value:d,onChange:e=>u(e)}),(0,r.createElement)(ue,null,"custom"===d&&(0,r.createElement)(React.Fragment,null,(0,r.createElement)(c.Dropdown,{renderToggle:({isOpen:e,onToggle:t})=>(0,r.createElement)(p.zx,{variant:"secondary",onClick:t,"aria-expanded":e,"aria-label":(0,k.sprintf)((0,k.__)("From: %s (click to edit","it-l10n-ithemes-security-pro"),(0,de.dateI18n)("M j",l)),text:(0,k.sprintf)((0,k.__)("From %s","it-l10n-ithemes-security-pro"),(0,de.dateI18n)("M j",l))}),renderContent:()=>(0,r.createElement)(c.DatePicker,{currentDate:l,onChange:s,isInvalidDate:e=>{if((0,de.isInTheFuture)(e))return!0;const t=new window.Date;return t.setDate(t.getDate()-60),e
(0,r.createElement)(p.zx,{variant:"secondary",onClick:t,"aria-expanded":e,"aria-label":(0,k.sprintf)((0,k.__)("To: %s (click to edit","it-l10n-ithemes-security-pro"),(0,de.dateI18n)("M j",i)),text:(0,k.sprintf)((0,k.__)("To: %s (click to edit","it-l10n-ithemes-security-pro"),(0,de.dateI18n)("M j",i))}),renderContent:()=>(0,r.createElement)(c.DatePicker,{currentDate:i,onChange:m,isInvalidDate:e=>!!(0,de.isInTheFuture)(e)||(0,de.getDate)(l)>e})})),(0,r.createElement)(pe,{variant:"primary",onClick:e=>{let a;if(e.preventDefault(),"custom"===d){const e=ce()(l).set({hour:0,minute:0,second:0}),t=ce()(i).set({hour:23,minute:59,second:59});a={start:(0,de.format)("Y-m-d\\TH:i:s",e),end:(0,de.format)("Y-m-d\\TH:i:s",t)}}else a=d;t(a),n(!1)},text:(0,k.__)("Apply","it-l10n-ithemes-security-pro")}))))}function fe({result:e,hasBorder:t,schemaError:a,errors:n}){return(0,r.createElement)(React.Fragment,null,(0,r.createElement)(h,{apiError:e?.error,schemaError:a,errors:n,hasBorder:t}),e?.success&&(0,r.createElement)(p.rN,{messages:e.success,type:"success",hasBorder:t}),e?.warning&&(0,r.createElement)(p.rN,{messages:e.warning,type:"warning",hasBorder:t}),e?.info&&(0,r.createElement)(p.rN,{messages:e.info,type:"info",hasBorder:t}))}const be=(0,f.Z)(c.Icon,{target:"ebvjfo71"})({name:"1svyz14",styles:"background-color:#438C56;border-radius:2rem"}),Ee=(0,f.Z)(c.Icon,{target:"ebvjfo70"})({name:"x749hy",styles:"background-color:#E6505466;border-radius:2rem;height:0.813rem!important;width:0.813rem!important;padding:2px"});var ye=a(28184),ve=a(65202),xe=a(67527);function _e(){const{versionActive:e,versionSettings:t,installType:a}=(0,te.useSelect)((e=>({versionActive:e(ae.modulesStore).isActive("version-management"),versionSettings:e(ae.modulesStore).getSettings("version-management"),installType:e(ae.coreStore).getInstallType()})),[]),n=e&&t.update_if_vulnerable,o="free"===a,l=n?(0,k.__)("Real-Time Updates Active","it-l10n-ithemes-security-pro"):(0,k.__)("Real-Time Updates Inactive","it-l10n-ithemes-security-pro"),s=o?(0,k.__)("Upgrade","it-l10n-ithemes-security-pro"):(0,k.__)("Enable “Auto Update If Fixes Vulnerability” in Version Management","it-l10n-ithemes-security-pro"),i=n?(0,r.createElement)(be,{icon:ye.Z}):(0,r.createElement)(Ee,{icon:ve.Z,style:{fill:"#8A2424"}});return(0,r.createElement)(p.Ct,{text:l,icon:i,iconColor:"#FFFFFF",tooltip:s})}function Ie(){const{hasPatchstack:e,installType:t}=(0,te.useSelect)((e=>({hasPatchstack:e(ae.coreStore).hasPatchstack(),installType:e(ae.coreStore).getInstallType()})),[]),a="free"===t,n=e?(0,k.__)("Virtual Patching Active","it-l10n-ithemes-security-pro"):(0,k.__)("Virtual Patching Inactive","it-l10n-ithemes-security-pro"),o=a?(0,k.__)("Upgrade","it-l10n-ithemes-security-pro"):null,l=e?xe.Z:(0,r.createElement)(Ee,{icon:ve.Z,style:{fill:"#8A2424"}});return(0,r.createElement)(p.Ct,{text:n,icon:l,iconColor:"#6817C5",tooltip:o})}var Ne=a(14776);const we=(0,f.Z)(c.Flex,{target:"e12ydfb40"})({name:"y8n2z8",styles:"margin-top:2.5rem"}),Ce=()=>(0,r.createElement)(Ne.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(Ne.Circle,{cx:"4",cy:"4",r:"4"}));function ke({currentPage:e,numberOfPages:t,setCurrentPage:a,onClose:n,allowNavigation:o=!0}){return(0,r.createElement)(we,{expand:!1,direction:"column",gap:"2.5rem",align:"center"},o&&(e
{a(e+1)},text:(0,k.__)("Next","it-l10n-ithemes-security-pro")}):(0,r.createElement)(p.zx,{variant:"primary",onClick:n,text:(0,k.__)("Done","it-l10n-ithemes-security-pro")})),(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,k.__)("Guide controls","it-l10n-ithemes-security-pro")},Array.from({length:t}).map(((n,l)=>(0,r.createElement)("li",{key:l,"aria-current":l===e?"step":void 0},(0,r.createElement)(p.zx,{variant:"link",key:l,icon:(0,r.createElement)(Ce,null),"aria-label":(0,k.sprintf)((0,k.__)("Page %1$d of %2$d","it-l10n-ithemes-security-pro"),l+1,t),onClick:()=>a(l),disabled:!o}))))))}var Se=a(25889);const Oe=(0,r.createContext)({preloaded:{}});function Le({preload:e,children:t}){const[a,n]=(0,r.useState)({preloaded:{}}),o=(0,r.useCallback)(((e,t)=>{n((a=>({...a,preloaded:{...a.preloaded,[e]:t}})))}),[n]);return(0,r.useEffect)((()=>{for(const t of e)a.preloaded.hasOwnProperty(t)||(o(t,void 0),fetch(Pe(t)).then((e=>e.arrayBuffer())).then((e=>o(t,e))).catch((e=>{console.error(`[Solid Security] Could not load rive graphic '${t}': ${e}`),o(t,null)})))}),[e,a.preloaded,o]),(0,r.createElement)(Oe.Provider,{value:a},t)}function Te(e,t,a){const{preloaded:n}=(0,r.useContext)(Oe);return n[e]?t.buffer=n[e]:t.src=Pe(e),(0,Se.useRive)(t,a)}function Pe(e){return`${itsecWebpackPublicPath}../core/img/rive/${e}.riv`}}}]);