import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as k,s as m,a as S,c as d,e as C,w as p,f as B,h as b,j as v,t as _,k as $,v as h,l as P,m as f,n as z,o as g,p as L,q as T,r as N,x,y as D}from"./utils-fCmtiQ1f.js?v=1773287522785";import{l as r,a3 as V,C as j,c as F}from"./index-BTglIPU2.js?v=1773287522785";import{k as c,c as I,a0 as e,$ as O,Z as q,a9 as a,S as t,ak as A}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a5 as E,k as H,aC as R,aD as U}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./useTableData-BmkIKQ_R.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const W=c({props:{table:{type:Object,required:!0}},setup(u){const l=I(()=>u.table.data.filter(i=>i.status===3).length);return()=>l.value===u.table.data.length&&l.value>0?e(r,{name:"base-error",class:"text-error",size:"16"},null):l.value>0?e(r,{name:"base-warning",class:"text-warning",size:"16"},null):e(r,{name:"base-success",class:"text-primary",size:"16"},null)}}),o=c({name:"BackupTopic",props:{title:{type:String,default:""},showProblem:{type:Boolean,default:!1},problemText:{type:String,default:""},showTotalSize:{type:Boolean,default:!1},table:{type:Object,default:()=>({data:[]})}},setup(u){const l=k();return{getDisplayText:()=>"（".concat(V.global.t("Security.Anti.Index_7")," ").concat(u.table.data.length).concat(u.showTotalSize?"，".concat(j(u.table.data.reduce((n,s)=>n+Number(s.size||0),0))):"","）"),store:l}},render(){return e(H,{class:"items-center! p-10px",size:3},{default:()=>[e("span",{class:"website"},null),e("span",{class:"font-bold",style:{color:"var(--setting-back-create-collapse-title)"}},[this.title]),this.showProblem?e(E,{placement:"top-start"},{trigger:()=>e(r,{name:"base-problem",class:"text-16px"},null),default:()=>this.problemText}):"",e("span",null,[this.getDisplayText()]),this.store.showBackupStatus?e(W,{table:this.table},null):""]})}}),Z=c({__name:"backup-info",setup(u){return(l,i)=>{const n=y,s=R,w=U;return O(),q("div",null,[e(w,{"arrow-placement":"right",accordion:"",class:"w-full","display-directive":"show"},{default:a(()=>[e(s,null,{header:a(()=>[e(t(o),{title:l.$t("Layout.Sider.site_1"),showProblem:"",table:t(m),problemText:"Backing up a website will automatically back up Nginx configuration, SSL certificate, PHP configuration, redirection and reverse proxy, and other configurations related to the website except plugins.",showTotalSize:!0},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t(S),data:t(m).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:l.$t("Layout.Sider.database_1"),table:t(d),showTotalSize:!0},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t(C),data:t(d).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:l.$t("Layout.Sider.wp_3"),table:t(p),showTotalSize:!0},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t(B),data:t(p).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:"FTP",showProblem:"",table:t(b),problemText:"Only backup FTP account and password, not backup FTP directory"},null,8,["table"])]),default:a(()=>[e(n,{columns:t(v),data:t(b).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:l.$t("Layout.Sider.crontab_1"),table:t(_)},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t($),data:t(_).data,"max-height":150},null,8,["columns","data"])]),_:1}),A("",!0),e(s,null,{header:a(()=>[e(t(o),{title:l.$t("Layout.Sider.mail_1"),table:t(h)},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t(P),data:t(h).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:"SSL",table:t(f)},null,8,["table"])]),default:a(()=>[e(n,{columns:t(z),data:t(f).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:l.$t("Layout.Sider.security_2"),table:t(g)},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t(L),data:t(g).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:l.$t("WP.TableRow.index_5"),table:t(T)},null,8,["title","table"])]),default:a(()=>[e(n,{columns:t(N),data:t(T).data,"max-height":150},null,8,["columns","data"])]),_:1}),e(s,null,{header:a(()=>[e(t(o),{title:"Environment",showProblem:"",table:t(x),problemText:"PHP extension does not currently support backup"},null,8,["table"])]),default:a(()=>[e(n,{columns:t(D),data:t(x).data,"max-height":150},null,8,["columns","data"])]),_:1})]),_:1})])}}}),ne=F(Z,[["__scopeId","data-v-32c8eff7"]]);export{ne as default};
