import{_ as B}from"./AdminLayout.vue_vue_type_script_setup_true_lang-DtHb-1yq.js";import{_ as v}from"./Button.vue_vue_type_script_setup_true_lang-CKPSvBok.js";import{_ as n}from"./Card.vue_vue_type_script_setup_true_lang-D4PxcbNb.js";import{_ as p}from"./Badge.vue_vue_type_script_setup_true_lang-Ciy8TpTM.js";import{i as w,m as l,b,E as a,a as s,h as o,v as d,w as i,e as r,t as z,g as u,d as c,F as G,s as _}from"./index-DF5uCdwt.js";import{_ as V}from"./Switch.vue_vue_type_script_setup_true_lang-J_gM7TPs.js";import"./cn-2dOUpm6k.js";const $={class:"grid grid-cols-4 gap-4 mb-6"},C={class:"text-2xl font-black"},N={class:"text-2xl font-black"},S={class:"text-2xl font-black"},E={class:"text-sm font-bold mt-1.5"},F={class:"flex items-center justify-between"},L={class:"divide-y divide-[var(--wdot-border)]"},R={class:"flex-1"},T={class:"font-semibold text-sm"},j={class:"text-[10px] text-[var(--wdot-fg-muted)] mt-0.5"},D={key:0,class:"ml-2"},K={key:0,class:"text-[12px] text-[var(--wdot-color-primary-600)] font-semibold"},U=["onClick"],W=w({__name:"BackupList",setup(q){const f=_(!0),y=_([{id:1,type:"auto",date:"2026-05-20 03:00",size:"2.4 GB",duration:"4분 18초",status:"success"},{id:2,type:"auto",date:"2026-05-19 03:00",size:"2.4 GB",duration:"4분 12초",status:"success"},{id:3,type:"manual",date:"2026-05-18 14:23",size:"2.3 GB",duration:"4분 08초",status:"success",note:"기능 배포 전"},{id:4,type:"auto",date:"2026-05-18 03:00",size:"2.3 GB",duration:"4분 22초",status:"success"},{id:5,type:"auto",date:"2026-05-17 03:00",size:"2.3 GB",duration:"4분 17초",status:"success"},{id:6,type:"auto",date:"2026-05-16 03:00",size:"2.3 GB",duration:"4분 31초",status:"success"},{id:7,type:"auto",date:"2026-05-15 03:00",size:"0",duration:"0초",status:"failed",note:"디스크 공간 부족"}]),k=x=>{confirm("복원하시겠습니까? 현재 데이터가 덮어씌워집니다.")&&alert(`백업 #${x} 복원 시작 (백그라운드)`)},g=()=>alert("수동 백업 시작 — 약 4분 소요"),m={total:47,totalSize:"112 GB",retention:"30일",nextRun:"2026-05-21 03:00"};return(x,t)=>(l(),b(B,null,{breadcrumb:a(()=>[...t[1]||(t[1]=[s("b",null,"백업",-1)])]),title:a(()=>[...t[2]||(t[2]=[u("백업 관리",-1)])]),actions:a(()=>[o(i(v),{variant:"outline",onClick:g},{default:a(()=>[...t[3]||(t[3]=[u("수동 백업",-1)])]),_:1}),o(i(v),{variant:"primary"},{default:a(()=>[...t[4]||(t[4]=[u("설정",-1)])]),_:1})]),default:a(()=>[s("div",$,[o(i(n),null,{default:a(()=>[t[5]||(t[5]=s("div",{class:"text-xs text-[var(--wdot-fg-muted)] mb-1"},"백업 개수",-1)),s("div",C,d(m.total),1)]),_:1}),o(i(n),null,{default:a(()=>[t[6]||(t[6]=s("div",{class:"text-xs text-[var(--wdot-fg-muted)] mb-1"},"총 용량",-1)),s("div",N,d(m.totalSize),1)]),_:1}),o(i(n),null,{default:a(()=>[t[7]||(t[7]=s("div",{class:"text-xs text-[var(--wdot-fg-muted)] mb-1"},"보관 기간",-1)),s("div",S,d(m.retention),1)]),_:1}),o(i(n),null,{default:a(()=>[t[8]||(t[8]=s("div",{class:"text-xs text-[var(--wdot-fg-muted)] mb-1"},"다음 자동 백업",-1)),s("div",E,d(m.nextRun),1)]),_:1})]),o(i(n),{class:"mb-4"},{default:a(()=>[s("div",F,[t[9]||(t[9]=s("div",null,[s("b",{class:"text-sm"},"자동 백업"),s("div",{class:"text-xs text-[var(--wdot-fg-muted)] mt-0.5"},"매일 03:00 KST 실행 · 30일간 보관")],-1)),o(i(V),{modelValue:f.value,"onUpdate:modelValue":t[0]||(t[0]=e=>f.value=e)},null,8,["modelValue"])])]),_:1}),o(i(n),null,{header:a(()=>[...t[10]||(t[10]=[s("b",null,"백업 이력",-1)])]),default:a(()=>[s("div",L,[(l(!0),r(G,null,z(y.value,e=>(l(),r("div",{key:e.id,class:"py-3 flex items-center gap-4"},[o(i(p),{variant:e.type==="auto"?"neutral":"primary"},{default:a(()=>[u(d(e.type==="auto"?"자동":"수동"),1)]),_:2},1032,["variant"]),s("div",R,[s("div",T,d(e.date),1),s("div",j,[u(" 크기 "+d(e.size)+" · 소요 "+d(e.duration)+" ",1),e.note?(l(),r("span",D,"· "+d(e.note),1)):c("",!0)])]),o(i(p),{variant:e.status==="success"?"success":"error"},{default:a(()=>[u(d(e.status==="success"?"성공":"실패"),1)]),_:2},1032,["variant"]),e.status==="success"?(l(),r("button",K,"⬇ 다운로드")):c("",!0),e.status==="success"?(l(),r("button",{key:1,class:"text-[12px] text-[var(--wdot-color-warning)] font-semibold",onClick:A=>k(e.id)},"↩ 복원",8,U)):c("",!0)]))),128))])]),_:1})]),_:1}))}});export{W as default};
