System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./public-legacy.js?v=1764233927359"],function(e,a){"use strict";var s,l,t,n,u,r,o,d,p,i,c,_,m,v;return{setters:[e=>{s=e._},e=>{l=e.hC},e=>{t=e.k,n=e.P,u=e.n,r=e.e,o=e.r,d=e.R,p=e.V,i=e.W,c=e.a3,_=e.U},e=>{m=e.dR,v=e.au},null,null,null],execute:function(){const a={class:"p-16px"};e("default",t({__name:"index",props:{data:{}},setup(e,{expose:t}){const{t:f}=n(),g=e,{onRefresh:w,params:x}=g.data;u(()=>{b.username=x.username,b.host=x.host});const y=o(null),b=r({sid:0,username:"",password:"",host:"127.0.0.1"}),h={password:{required:!0,message:f("Config.Panel.index_67"),trigger:["blur","input"]}};return t({onConfirm:async()=>{await(y.value?.validate()),await l({sid:b.sid,username:b.username,password:b.password,host:b.host}),w?.()}}),(e,l)=>{const t=v,n=m,u=s;return p(),d("div",a,[i(u,{ref_key:"formRef",ref:y,model:_(b),rules:h},{default:c(()=>[i(n,{label:e.$t("Database.index_13")},{default:c(()=>[i(t,{class:"w-250px!",value:_(b).username,"onUpdate:value":l[0]||(l[0]=e=>_(b).username=e),disabled:""},null,8,["value"])]),_:1},8,["label"]),i(n,{label:e.$t("Database.Mysql.index_4")},{default:c(()=>[i(t,{class:"w-250px!",value:_(b).host,"onUpdate:value":l[1]||(l[1]=e=>_(b).host=e),disabled:""},null,8,["value"])]),_:1},8,["label"]),i(n,{label:e.$t("Password.index_2"),path:"password"},{default:c(()=>[i(t,{class:"w-250px!",value:_(b).password,"onUpdate:value":l[2]||(l[2]=e=>_(b).password=e),placeholder:e.$t("Config.Panel.index_67")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])])}}}))}}});
