import{h as a}from"./public.js?v=1763625242172";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 p,m as b,n as h,o as f,p as g,q as x,r as _,x as y,y as w,z as S,A as T}from"./utils.js?v=1763625242172";import{_ as P,i as j,n as v,bO as k,bP as z,p as L}from"./page_layout.js?v=1763625242172";import{k as $,c as B,X as O,R as F,S as H,a3 as q,V as A,an as D,a2 as I}from"./vue.js?v=1763625242172";import{dh as N,d9 as R}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";const E=$({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?O(P,{name:"base-error",class:"text-error",size:"16"},null):t.value>0?O(P,{name:"base-warning",class:"text-warning",size:"16"},null):O(P,{name:"base-success",class:"text-#20a53a",size:"16"},null)}}),V=$({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(v(a.table.data.reduce(((a,t)=>a+Number(t.size||0)),0))):"","）"),store:t()}),render(){return O(R,{class:"items-center! p-10px",size:3},{default:()=>[O("span",{class:"website"},null),O("span",{class:"font-bold",style:{color:"var(--setting-back-create-collapse-title)"}},[this.title]),this.showProblem?O(N,{placement:"top-start"},{trigger:()=>O(P,{name:"base-problem",class:"text-16px"},null),default:()=>this.problemText}):"",O("span",null,[this.getDisplayText()]),this.store.showBackupStatus?O(E,{table:this.table},null):""]})}}),W=L($({__name:"backup-info",setup:t=>(t,S)=>{const T=a,P=k,j=z;return F(),H("div",null,[O(j,{"arrow-placement":"right",accordion:"",class:"w-full","display-directive":"show"},{default:q((()=>[O(P,null,{header:q((()=>[O(A(V),{title:t.$t("Layout.Sider.site_1"),showProblem:"",table:A(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:q((()=>[O(T,{columns:A(l),data:A(e).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:t.$t("Layout.Sider.database_1"),table:A(s),showTotalSize:!0},null,8,["title","table"])])),default:q((()=>[O(T,{columns:A(n),data:A(s).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:t.$t("Layout.Sider.wp_3"),table:A(o),showTotalSize:!0},null,8,["title","table"])])),default:q((()=>[O(T,{columns:A(u),data:A(o).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:"FTP",showProblem:"",table:A(i),problemText:"Only backup FTP account and password, not backup FTP directory"},null,8,["table"])])),default:q((()=>[O(T,{columns:A(r),data:A(i).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:t.$t("Layout.Sider.crontab_1"),table:A(d)},null,8,["title","table"])])),default:q((()=>[O(T,{columns:A(c),data:A(d).data,"max-height":150},null,8,["columns","data"])])),_:1}),D("",!0),O(P,null,{header:q((()=>[O(A(V),{title:t.$t("Layout.Sider.mail_1"),table:A(m)},null,8,["title","table"])])),default:q((()=>[O(T,{columns:A(p),data:A(m).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:"SSL",table:A(b)},null,8,["table"])])),default:q((()=>[O(T,{columns:A(h),data:A(b).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:t.$t("Layout.Sider.security_2"),table:A(f)},null,8,["title","table"])])),default:q((()=>[O(T,{columns:A(g),data:A(f).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:t.$t("WP.TableRow.index_5"),table:A(x)},null,8,["title","table"])])),default:q((()=>[O(T,{columns:A(_),data:A(x).data,"max-height":150},null,8,["columns","data"])])),_:1}),O(P,null,{header:q((()=>[O(A(V),{title:"Environment",showProblem:"",table:A(y),problemText:"PHP extension does not currently support backup"},null,8,["table"])])),default:q((()=>[O(T,{columns:A(w),data:A(y).data,"max-height":150},null,8,["columns","data"])])),_:1})])),_:1})])}}),[["__scopeId","data-v-45e92e92"]]);export{W as default};
