System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172"],(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.hA},e=>{t=e.k,n=e.P,u=e.n,r=e.r,o=e.e,d=e.R,p=e.S,i=e.X,c=e.a3,_=e.V},e=>{m=e.au,v=e.dP},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=r(null),b=o({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=m,n=v,u=s;return d(),p("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"])])}}}))}}}));
