import{h as a}from"./public.js?v=1764233927359";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=1764233927359";import{_ as P,i as j,n as v,bO as k,bP as z,p as L}from"./page_layout.js?v=1764233927359";import{k as $,c as B,W as O,R as F,V as H,a3 as q,an as A,U as D,a2 as I}from"./vue.js?v=1764233927359";import{da as N,dh as R}from"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./soft.js?v=1764233927359";import"./site.js?v=1764233927359";const W=$({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)}}),E=$({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(N,{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(R,{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(W,{table:this.table},null):""]})}}),U=L($({__name:"backup-info",setup:t=>(t,S)=>{const T=a,P=k,j=z;return H(),F("div",null,[O(j,{"arrow-placement":"right",accordion:"",class:"w-full","display-directive":"show"},{default:q(()=>[O(P,null,{header:q(()=>[O(D(E),{title:t.$t("Layout.Sider.site_1"),showProblem:"",table:D(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:D(l),data:D(e).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:t.$t("Layout.Sider.database_1"),table:D(s),showTotalSize:!0},null,8,["title","table"])]),default:q(()=>[O(T,{columns:D(n),data:D(s).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:t.$t("Layout.Sider.wp_3"),table:D(o),showTotalSize:!0},null,8,["title","table"])]),default:q(()=>[O(T,{columns:D(u),data:D(o).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:"FTP",showProblem:"",table:D(i),problemText:"Only backup FTP account and password, not backup FTP directory"},null,8,["table"])]),default:q(()=>[O(T,{columns:D(r),data:D(i).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:t.$t("Layout.Sider.crontab_1"),table:D(d)},null,8,["title","table"])]),default:q(()=>[O(T,{columns:D(c),data:D(d).data,"max-height":150},null,8,["columns","data"])]),_:1}),A("",!0),O(P,null,{header:q(()=>[O(D(E),{title:t.$t("Layout.Sider.mail_1"),table:D(m)},null,8,["title","table"])]),default:q(()=>[O(T,{columns:D(p),data:D(m).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:"SSL",table:D(b)},null,8,["table"])]),default:q(()=>[O(T,{columns:D(h),data:D(b).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:t.$t("Layout.Sider.security_2"),table:D(f)},null,8,["title","table"])]),default:q(()=>[O(T,{columns:D(g),data:D(f).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:t.$t("WP.TableRow.index_5"),table:D(x)},null,8,["title","table"])]),default:q(()=>[O(T,{columns:D(_),data:D(x).data,"max-height":150},null,8,["columns","data"])]),_:1}),O(P,null,{header:q(()=>[O(D(E),{title:"Environment",showProblem:"",table:D(y),problemText:"PHP extension does not currently support backup"},null,8,["table"])]),default:q(()=>[O(T,{columns:D(w),data:D(y).data,"max-height":150},null,8,["columns","data"])]),_:1})]),_:1})])}}),[["__scopeId","data-v-45e92e92"]]);export{U as default};
