import{b as a,f as e}from"./public.js?v=1753954525509";import{a as t}from"./index17.js?v=1753954525509";import{ay as s,bY as r}from"./naive.js?v=1753954525509";import{k as o,P as i,Q as l,j as n,U as p,V as m,a2 as _,X as u,a3 as d}from"./vue.js?v=1753954525509";import{V as c,W as f}from"./page_layout.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./index.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./backup-info.js?v=1753954525509";import"./utils.js?v=1753954525509";import"./soft.js?v=1753954525509";const g={class:"p-16px"},j=o({__name:"migrate-error",props:{errData:{},onRetry:{type:Function}},emits:["close"],setup(o,{emit:j}){const{t:x}=i(),y=j,{table:b,columns:D}=a([{title:x("Config.Migrate.index_22"),key:"name"},{title:x("Config.Migrate.index_23"),key:"msg",render:a=>l("span",{class:"text-error"},[n(" "),a.msg,n(" ")])}]),C=o,v=()=>{const a={server_ip:C.errData.server_ip,ssh_port:C.errData.ssh_port,ssh_user:C.errData.ssh_user,password:C.errData.password};C.onRetry(a)},k=async()=>{await t(),y("close")};return b.data=C.errData.errData,(a,t)=>{const o=c,i=f,j=e,y=s,C=r;return p(),m("div",g,[l(i,{column:1,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:_((()=>[l(o,{label:u(x)("Config.Migrate.index_19")},{default:_((()=>[n(d(a.errData.start_time),1)])),_:1},8,["label"]),l(o,{label:u(x)("Config.Migrate.index_20")},{default:_((()=>[n(d(a.errData.last_update_time),1)])),_:1},8,["label"])])),_:1}),l(j,{class:"my-16px",columns:u(D),data:u(b).data},null,8,["columns","data"]),l(C,{class:"justify-end!"},{default:_((()=>[l(y,{type:"error",onClick:v},{default:_((()=>[n(d(u(x)("Config.Migrate.index_21")),1)])),_:1}),l(y,{onClick:k},{default:_((()=>t[0]||(t[0]=[n("Close")]))),_:1,__:[0]})])),_:1})])}}});export{j as default};
