import{_ as D}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{u as k}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{a as h}from"./index-DbJBn-i5.js?v=1773287522785";import{aj as M,ak as w,B,k as R}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as j,R as v,a0 as t,j as o,$ as N,Z as S,a9 as n,S as r,aa as i}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./backup-info-oSTuIzgU.js?v=1773287522785";import"./utils-fCmtiQ1f.js?v=1773287522785";const T={class:"p-16px"},L=j({__name:"migrate-error",props:{errData:{},onRetry:{type:Function}},emits:["close"],setup(c,{emit:d}){const{t:s}=v(),u=d,{table:_,columns:f}=k([{title:s("Config.Migrate.index_22"),key:"name"},{title:s("Config.Migrate.index_23"),key:"msg",render:a=>t("span",{class:"text-error"},[o(" "),a.msg,o(" ")])}]),e=c,g=()=>{const a={server_ip:e.errData.server_ip,ssh_port:e.errData.ssh_port,ssh_user:e.errData.ssh_user,password:e.errData.password};e.onRetry(a)},b=async()=>{await h(),u("close")};return _.data=e.errData.errData,(a,l)=>{const p=M,x=w,y=D,m=B,C=R;return N(),S("div",T,[t(x,{column:1,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:n(()=>[t(p,{label:r(s)("Config.Migrate.index_19")},{default:n(()=>[o(i(a.errData.start_time),1)]),_:1},8,["label"]),t(p,{label:r(s)("Config.Migrate.index_20")},{default:n(()=>[o(i(a.errData.last_update_time),1)]),_:1},8,["label"])]),_:1}),t(y,{class:"my-16px",columns:r(f),data:r(_).data},null,8,["columns","data"]),t(C,{class:"justify-end!"},{default:n(()=>[t(m,{type:"error",onClick:g},{default:n(()=>[o(i(r(s)("Config.Migrate.index_21")),1)]),_:1}),t(m,{onClick:b},{default:n(()=>l[0]||(l[0]=[o("Close")])),_:1,__:[0]})]),_:1})])}}});export{L as default};
