Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
better-wp-security
/
dist
/
core
:
dashboard.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[5072],{98854:(e,t,r)=>{"use strict";r.r(t);var n={};r.r(n),r.d(n,{default:()=>v,settings:()=>m,slug:()=>h});var s={};r.r(s),r.d(s,{settings:()=>C,slug:()=>I});var i=r(6293),a=r(3571),c=r(95122),o=r(48015),l=r(65813),u=r(1528),d=r(179),p=r(52117),f=r(71930);const g=(0,p.Z)(f.Tg,{target:"ed2ujrb0"})({name:"1x7nnnc",styles:"display:flex;flex-direction:column;justify-content:space-between;height:100%"});function v({card:e,config:t}){const{isCreating:r,setCreating:n,isSaving:s,setSaving:a,isQuerying:c,createBan:o,afterSave:l,query:p,selected:f,onSelect:v}=(0,d.useBanHosts)("dashboard"),h=`itsec-ban-card-create-form__${e.id}`;return(0,i.createElement)(g,null,(0,i.createElement)(u.CardHeader,null,(0,i.createElement)(u.CardHeaderTitle,{card:e,config:t})),!r&&(0,i.createElement)(React.Fragment,null,(0,i.createElement)(d.List,{selected:!r&&f,onSelect:v,querying:c,query:p,queryId:"dashboard"})),r&&(0,i.createElement)(d.AddNew,{id:h,createForm:r,save:o,setSaving:a,afterSave:l}),(0,i.createElement)(d.BanHostsActions,{isCreating:r,isSaving:s,setCreating:n,formId:h}))}const h="banned-users-list",m={render:v};var b=r(92819),x=r(59588),w=r.n(x),y=r(9576),k=r(70835);const E=(0,p.Z)(f.Tg,{target:"e1pw40vw0"})({name:"1973lfh",styles:"display:flex;flex-direction:column;overflow:hidden;height:100%;position:relative"}),S=w()((function(e,t){return e.map((e=>({...e,links:t})))})),I="active-lockouts",C={render:(0,y.compose)([(0,l.gU)("query",500,{leading:!0}),y.pure])((function({card:e,config:t}){const{selectedId:r,searchTerm:n,setSearchTerm:s,isQuerying:a,query:o,select:l,getDetails:d,onBan:p,onRelease:g,isBanAvailable:v,isReleaseAvailable:h,releasingIds:m,banningIds:x}=(0,k.useActiveLockouts)(e),w=(0,b.find)(e.data.lockouts,["id",r]),y=w?.bannable&&v;return(0,i.createElement)(E,{className:"itsec-card--type-active-lockouts"},(0,i.createElement)(u.CardHeader,{align:"left"},(0,i.createElement)(f.Oy,{isSinglePane:!0,onSelect:l,selectedId:w?.id||0}),(0,i.createElement)(u.CardHeaderTitle,{card:e,config:t})),!w?.id&&(0,i.createElement)(k.Search,{searchTerm:n,setSearchTerm:s,isQuerying:a,query:o,queryId:e.id}),(0,b.isEmpty)(e.data.lockouts)?(0,i.createElement)(u.CardHappy,{title:(0,c.__)("All Clear!","better-wp-security"),text:(0,c.__)("No users are currently locked out of your site.","better-wp-security")}):(0,i.createElement)(k.List,{lockouts:S(e.data.lockouts,e._links),select:l,selectedLockout:w,fetchLockoutDetails:d}),w?.id>0&&(h||y)&&(0,i.createElement)(k.ActiveLockoutActions,{isReleaseAvailable:h,selectedId:r,releasingIds:m,onRelease:g,isBannable:y,banningIds:x,onBan:p}))}))};function T(){const{registerCard:e}=(0,o.useDispatch)("ithemes-security/dashboard");return(0,l.eH)(T,(()=>[n,s].forEach((({slug:t,settings:r})=>e(t,r))))),null}r.p=window.itsecWebpackPublicPath,(0,c.setLocaleData)({"":{}},"ithemes-security-pro"),(0,a.registerPlugin)("itsec-core-dashboard",{render:()=>(0,i.createElement)(T,null)})},59588:e=>{e.exports=function(e,t){var r,n,s=0;function i(){var i,a,c=r,o=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a<o;a++)if(c.args[a]!==arguments[a]){c=c.next;continue e}return c!==r&&(c===n&&(n=c.prev),c.prev.next=c.next,c.next&&(c.next.prev=c.prev),c.next=r,c.prev=null,r.prev=c,r=c),c.val}c=c.next}for(i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return c={args:i,val:e.apply(null,i)},r?(r.prev=c,c.next=r):n=c,s===t.maxSize?(n=n.prev).next=null:s++,r=c,c.val}return t=t||{},i.clear=function(){r=null,n=null,s=0},i}},70835:e=>{e.exports=function(){return this.itsec.core["active-lockouts"]}()},179:e=>{e.exports=function(){return this.itsec.core["ban-hosts"]}()},1528:e=>{e.exports=function(){return this.itsec.dashboard.dashboard}()},31600:e=>{e.exports=function(){return this.itsec.packages.data}()},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}()},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}()},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},92819:e=>{"use strict";e.exports=window.lodash},4942:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(49142);function s(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},49142:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(71002);function s(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,"string");if("object"!==(0,n.Z)(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}}},e=>{e.O(0,[1930,5813],(()=>(98854,e(e.s=98854))));var t=e.O();((window.itsec=window.itsec||{}).core=window.itsec.core||{}).dashboard=t}]);