import{f as a}from"./public.js?v=1753954525509";import{u as t,s as e,a as l,c as s,e as n,w as o,f as u,h as i,j as r,t as d,k as c,v as m,l as b,m as p,n as h,o as f,p as x,q as g,r as _,x as w,y,z as S,A as T}from"./utils.js?v=1753954525509";import{_ as P,i as j,n as z,bz as v,bA as k,e as L}from"./page_layout.js?v=1753954525509";import{k as $,c as B,Q as A,U as F,V as H,a2 as O,X as q,al as D,a1 as I}from"./vue.js?v=1753954525509";import{c3 as N,bY as E}from"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./soft.js?v=1753954525509";const Q=$({props:{table:{type:Object,required:!0}},setup(a){const t=B((()=>a.table.data.filter((a=>3===a.status)).length));return()=>t.value===a.table.data.length&&t.value>0?A(P,{name:"base-error",class:"text-error",size:"16"},null):t.value>0?A(P,{name:"base-warning",class:"text-warning",size:"16"},null):A(P,{name:"base-success",class:"text-#20a53a",size:"16"},null)}}),R=$({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:a=>({getDisplayText:()=>"（".concat(j.global.t("Security.Anti.Index_7")," ").concat(a.table.data.length).concat(a.showTotalSize?"，".concat(z(a.table.data.reduce(((a,t)=>a+Number(t.size||0)),0))):"","）"),store:t()}),render(){return A(E,{class:"items-center! p-10px",size:3},{default:()=>[A("span",{class:"website"},null),A("span",{class:"font-bold color-#666"},[this.title]),this.showProblem?A(N,{placement:"top-start"},{trigger:()=>A(P,{name:"base-problem",class:"text-16px"},null),default:()=>this.problemText}):"",A("span",null,[this.getDisplayText()]),this.store.showBackupStatus?A(Q,{table:this.table},null):""]})}}),U=L($({__name:"backup-info",setup:t=>(t,S)=>{const T=a,P=v,j=k;return F(),H("div",null,[A(j,{"arrow-placement":"right",accordion:"",class:"w-full","display-directive":"show"},{default:O((()=>[A(P,null,{header:O((()=>[A(q(R),{title:t.$t("Layout.Sider.site_1"),showProblem:"",table:q(e),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:O((()=>[A(T,{columns:q(l),data:q(e).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:t.$t("Layout.Sider.database_1"),table:q(s),showTotalSize:!0},null,8,["title","table"])])),default:O((()=>[A(T,{columns:q(n),data:q(s).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:t.$t("Layout.Sider.wp_3"),table:q(o),showTotalSize:!0},null,8,["title","table"])])),default:O((()=>[A(T,{columns:q(u),data:q(o).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:"FTP",showProblem:"",table:q(i),problemText:"Only backup FTP account and password, not backup FTP directory"},null,8,["table"])])),default:O((()=>[A(T,{columns:q(r),data:q(i).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:t.$t("Layout.Sider.crontab_1"),table:q(d)},null,8,["title","table"])])),default:O((()=>[A(T,{columns:q(c),data:q(d).data,"max-height":150},null,8,["columns","data"])])),_:1}),D("",!0),A(P,null,{header:O((()=>[A(q(R),{title:t.$t("Layout.Sider.mail_1"),table:q(m)},null,8,["title","table"])])),default:O((()=>[A(T,{columns:q(b),data:q(m).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:"SSL",table:q(p)},null,8,["table"])])),default:O((()=>[A(T,{columns:q(h),data:q(p).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:t.$t("Layout.Sider.security_2"),table:q(f)},null,8,["title","table"])])),default:O((()=>[A(T,{columns:q(x),data:q(f).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:t.$t("WP.TableRow.index_5"),table:q(g)},null,8,["title","table"])])),default:O((()=>[A(T,{columns:q(_),data:q(g).data,"max-height":150},null,8,["columns","data"])])),_:1}),A(P,null,{header:O((()=>[A(q(R),{title:"Environment",showProblem:"",table:q(w),problemText:"PHP extension does not currently support backup"},null,8,["table"])])),default:O((()=>[A(T,{columns:q(y),data:q(w).data,"max-height":150},null,8,["columns","data"])])),_:1})])),_:1})])}}),[["__scopeId","data-v-52f94a90"]]);export{U as default};
