import{c as a,h as e}from"./public.js?v=1763625242172";import{a as t}from"./index17.js?v=1763625242172";import{aC as s,d9 as r}from"./naive.js?v=1763625242172";import{k as o,P as i,X as l,j as n,R as p,S as m,a3 as _,V as d,a4 as u}from"./vue.js?v=1763625242172";import{a7 as c,a8 as f}from"./page_layout.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import"./backup-info.js?v=1763625242172";import"./utils.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";const j={class:"p-16px"},g=o({__name:"migrate-error",props:{errData:{},onRetry:{type:Function}},emits:["close"],setup(o,{emit:g}){const{t:x}=i(),y=g,{table:b,columns:C}=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(" ")])}]),D=o,v=()=>{const a={server_ip:D.errData.server_ip,ssh_port:D.errData.ssh_port,ssh_user:D.errData.ssh_user,password:D.errData.password};D.onRetry(a)},h=async()=>{await t(),y("close")};return b.data=D.errData.errData,(a,t)=>{const o=c,i=f,g=e,y=s,D=r;return p(),m("div",j,[l(i,{column:1,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:_((()=>[l(o,{label:d(x)("Config.Migrate.index_19")},{default:_((()=>[n(u(a.errData.start_time),1)])),_:1},8,["label"]),l(o,{label:d(x)("Config.Migrate.index_20")},{default:_((()=>[n(u(a.errData.last_update_time),1)])),_:1},8,["label"])])),_:1}),l(g,{class:"my-16px",columns:d(C),data:d(b).data},null,8,["columns","data"]),l(D,{class:"justify-end!"},{default:_((()=>[l(y,{type:"error",onClick:v},{default:_((()=>[n(u(d(x)("Config.Migrate.index_21")),1)])),_:1}),l(y,{onClick:h},{default:_((()=>t[0]||(t[0]=[n("Close")]))),_:1,__:[0]})])),_:1})])}}});export{g as default};
