System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index-legacy69.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./index-legacy102.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./index-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./xterm-legacy.js?v=1753954525509","./xterm-addon-canvas-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,t,r,s,u,n,p,d,o,c,i,_,y,m,v,x,g,w,b,k,f,h;return{setters:[e=>{l=e._},e=>{t=e.a,r=e.g},e=>{s=e.cR,u=e.c},null,e=>{n=e.k,p=e.P,d=e.r,o=e.e,c=e.w,i=e.U,_=e.V,y=e.Q,m=e.a2,v=e.X,x=e.a1},e=>{g=e.aq,w=e.cA,b=e.c1,k=e.bY,f=e.cJ,h=e.cE},null,null,null,null,null,null,null,null],execute:function(){const a={class:"p-20px"},j={key:1};e("default",n({__name:"form",props:{data:{}},setup(e,{expose:n}){const $=s(),{t:T}=p(),U=e,{isEdit:C,row:q}=U.data,P=d(null),S=o({ip:"",port:22,account:"root",type:1,password:"",key:"",keyPassword:"",remark:""});c((()=>S.ip),(e=>{C||(S.remark=e)}));const I={ip:{required:!0,message:T("Security.Conf.Index_28"),trigger:["blur","input"]},port:{required:!0,type:"number",message:T("Security.Conf.Index_28"),trigger:["blur","input"]},account:{required:!0,message:T("Security.Conf.Index_28"),trigger:["blur","input"]},password:{required:!0,message:T("Security.Conf.Index_28"),trigger:["blur","input"]},key:{required:!0,message:T("Security.Conf.Index_28"),trigger:["blur","input"]}};return(async()=>{if(C&&q){const{message:e}=await r({host:q.host});u(e)&&(S.ip=e.host,S.port=e.port,S.account=e.username,S.type=e.password?1:2,S.password=e.password,S.key=e.pkey,S.keyPassword=e.pkey_passwd,S.remark=e.ps)}})(),n({onConfirm:async({hide:e})=>{await(P.value?.validate()),await t({host:S.ip,port:S.port,username:S.account,password:1===S.type?S.password:"",pkey:2===S.type?S.key:"",pkey_passwd:2===S.type?S.keyPassword:"",ps:S.remark}),$.setRefresh(!0),e()}}),(e,t)=>{const r=g,s=w,u=b,n=k,p=f,d=h,o=l;return i(),_("div",a,[y(o,{ref_key:"formRef",ref:P,model:v(S),rules:I},{default:m((()=>[y(n,null,{default:m((()=>[y(s,{label:e.$t("Term.index_8"),path:"ip"},{default:m((()=>[y(r,{class:"w-190px!",value:v(S).ip,"onUpdate:value":t[0]||(t[0]=e=>v(S).ip=e),placeholder:e.$t("Term.index_9")},null,8,["value","placeholder"])])),_:1},8,["label"]),y(s,{path:"port"},{default:m((()=>[y(u,{"show-button":!1,class:"w-80px!",value:v(S).port,"onUpdate:value":t[1]||(t[1]=e=>v(S).port=e),placeholder:e.$t("Docker.Container.create.index_7")},null,8,["value","placeholder"])])),_:1})])),_:1}),y(s,{label:e.$t("Term.index_10"),path:"account"},{default:m((()=>[y(r,{class:"w-280px!",value:v(S).account,"onUpdate:value":t[2]||(t[2]=e=>v(S).account=e),placeholder:e.$t("Term.index_11")},null,8,["value","placeholder"])])),_:1},8,["label"]),y(s,{label:e.$t("Term.index_12")},{default:m((()=>[y(d,{value:v(S).type,"onUpdate:value":t[3]||(t[3]=e=>v(S).type=e)},{default:m((()=>[y(p,{label:e.$t("Database.index_14"),value:1},null,8,["label"]),y(p,{label:e.$t("Term.index_13"),value:2},null,8,["label"])])),_:1},8,["value"])])),_:1},8,["label"]),1===v(S).type?(i(),x(s,{key:0,label:e.$t("Database.index_14"),path:"password"},{default:m((()=>[y(r,{class:"w-280px!",value:v(S).password,"onUpdate:value":t[4]||(t[4]=e=>v(S).password=e),placeholder:e.$t("Term.index_14")},null,8,["value","placeholder"])])),_:1},8,["label"])):(i(),_("div",j,[y(s,{label:e.$t("Term.index_13"),path:"key"},{default:m((()=>[y(r,{class:"w-280px!",type:"textarea",value:v(S).key,"onUpdate:value":t[5]||(t[5]=e=>v(S).key=e),placeholder:e.$t("Term.index_15")},null,8,["value","placeholder"])])),_:1},8,["label"]),y(s,{label:e.$t("Term.index_16")},{default:m((()=>[y(r,{class:"w-280px!",value:v(S).keyPassword,"onUpdate:value":t[6]||(t[6]=e=>v(S).keyPassword=e),placeholder:e.$t("Term.index_17")},null,8,["value","placeholder"])])),_:1},8,["label"])])),y(s,{label:"Remarks"},{default:m((()=>[y(r,{class:"w-280px!",value:v(S).remark,"onUpdate:value":t[7]||(t[7]=e=>v(S).remark=e),placeholder:e.$t("Term.index_18")},null,8,["value","placeholder"])])),_:1})])),_:1},8,["model"])])}}}))}}}));
