(globalThis.itsecWebpackJsonP=globalThis.itsecWebpackJsonP||[]).push([[9772],{3075:e=>{e.exports=function(){return this.wp.i18n}()},8601:e=>{e.exports=function(){return this.wp.element}()},10424:e=>{e.exports=function(){return this.itsec.dashboard.dashboard}()},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}()},46627:e=>{e.exports=function(){return this.itsec.packages.data}()},51609:e=>{"use strict";e.exports=window.React},53948:(e,t,a)=>{"use strict";var n=a(51609),r=a(3075),s=a(38125),c=a(31987),i=a(98883),o=a(81923),l=a(66087),u=a(89959),d=a(88356),p=a(10424),m=a(62932);const h=(0,o.A)(d.ui,{target:"e1jcup595"})({name:"1byzgs2",styles:"display:flex;flex-direction:column;justify-content:space-between;height:100%;overflow:hidden"}),f=(0,o.A)(d.EY,{target:"e1jcup594"})({name:"1dvcxr3",styles:"padding:1rem"}),g=(0,o.A)("div",{target:"e1jcup593"})("flex-grow:1;display:flex;align-items:center;justify-content:center;padding:",(({theme:{getSize:e}})=>e(.5)),";"),w=(0,o.A)(d.ui,{target:"e1jcup592"})({name:"1dkakdy",styles:"display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;justify-content:center;align-items:center;border-radius:50%;height:120px;width:120px"}),E=(0,o.A)(d.EY,{target:"e1jcup591"})({name:"15xxqxm",styles:"& sup{position:absolute;font-size:.5em;line-height:1;}"}),x=(0,o.A)("section",{target:"e1jcup590"})({name:"tsr3y4",styles:"flex-shrink:1;overflow-y:auto;position:relative"}),b={render:(0,c.withDispatch)((e=>({addNotice(t,a){e("core/notices").createSuccessNotice(t,{id:a,context:"ithemes-security"}),setTimeout((()=>e("core/notices").removeNotice(a,"ithemes-security")),1e4)}})))((function({card:e,config:t,addNotice:a}){const s=(0,r._n)("Backup","Backups",e.data.total,"better-wp-security");return(0,n.createElement)(h,null,(0,n.createElement)(p.CardHeader,null,(0,n.createElement)(p.CardHeaderTitle,{card:e,config:t})),(0,l.isEmpty)(e.data)?(0,n.createElement)(f,{as:"p",text:(0,r.__)("Enable database logging or file backups to see a history of completed backups","better-wp-security")}):(0,n.createElement)(React.Fragment,null,(0,n.createElement)(g,null,(0,n.createElement)(w,{as:"section",variant:"secondary"},(0,n.createElement)(E,{size:d.$C.GIGANTIC,variant:d.J3.DARK},(0,m.z6)(e.data.total),e.data.total>99&&(0,n.createElement)("sup",null,"+")),(0,n.createElement)(d.EY,{size:d.$C.LARGE,variant:d.J3.DARK,weight:600,text:s}))),e.data.backups.length>0&&(0,n.createElement)(x,{"aria-label":(0,r.__)("Recent Backups","better-wp-security")},(0,n.createElement)("table",{className:"itsec-card-database-backup__recent-backups"},(0,n.createElement)("thead",null,(0,n.createElement)("tr",null,(0,n.createElement)("th",{scope:"column"},(0,r.__)("Date","better-wp-security")),(0,n.createElement)("th",{scope:"column"},(0,r.__)("Size","better-wp-security")),"files"===e.data.source&&(0,n.createElement)("th",{scope:"column"},(0,n.createElement)("span",{className:"screen-reader-text"},(0,r.__)("Download","better-wp-security"))))),(0,n.createElement)("tbody",null,(0,l.take)(e.data.backups,50).map((t=>(0,n.createElement)("tr",{key:t.url||t.time},(0,n.createElement)("th",{scope:"row"},(0,n.createElement)(d.EY,{weight:600,text:(0,u.dateI18n)("M d, Y g:i A",t.time)})),(0,n.createElement)("td",null,(0,n.createElement)(d.EY,{weight:600,text:t.size_format})),"files"===e.data.source&&(0,n.createElement)("td",null,t.url&&(0,n.createElement)("a",{href:t.url,download:!0},(0,r.__)("Download","better-wp-security")))))))))),(0,n.createElement)(p.CardFooterSchemaActions,{card:e,onComplete:(e,t)=>{e.endsWith("/backup")&&a(t.message,"backup-complete")}}))}))};function k(){const{registerCard:e}=(0,c.useDispatch)("ithemes-security/dashboard");return(0,i.ee)(k,(()=>e("database-backup",b))),null}a.p=window.itsecWebpackPublicPath,(0,r.setLocaleData)({"":{}},"ithemes-security-pro"),(0,s.registerPlugin)("itsec-backup-dashboard",{render:()=>(0,n.createElement)(k,null)})},55933:e=>{e.exports=function(){return this.wp.primitives}()},66087:e=>{"use strict";e.exports=window.lodash},77172:e=>{e.exports=function(){return this.wp.url}()},79860:e=>{e.exports=function(){return this.wp.keycodes}()},89897:e=>{e.exports=function(){return this.wp.compose}()},89959:e=>{e.exports=function(){return this.wp.date}()}},e=>{e.O(0,[8356,2038,2932,8883],(()=>e(e.s=53948)));var t=e.O();((window.itsec=window.itsec||{}).backup=window.itsec.backup||{}).dashboard=t}]);