System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,a){"use strict";var s,l,t,n,r,u,d,o,i,p,c,_,v,m;return{setters:[e=>{s=e._},e=>{l=e.ii},e=>{t=e.k,n=e.R,r=e.n,u=e.r,d=e.e,o=e.$,i=e.Z,p=e.a0,c=e.a9,_=e.S},e=>{v=e.a1,m=e.b},null],execute:function(){const a={class:"p-16px"};e("default",t({__name:"index",props:{data:{}},setup(e,{expose:t}){const{t:f}=n(),x=e,{onRefresh:w,params:b}=x.data;r((()=>{h.username=b.username,h.host=b.host}));const g=u(null),h=d({sid:0,username:"",password:"",host:"127.0.0.1"}),y={password:{required:!0,message:f("Config.Panel.index_67"),trigger:["blur","input"]}};return t({onConfirm:async()=>{await(g.value?.validate()),await l({sid:h.sid,username:h.username,password:h.password,host:h.host}),w?.()}}),(e,l)=>{const t=m,n=v,r=s;return o(),i("div",a,[p(r,{ref_key:"formRef",ref:g,model:_(h),rules:y},{default:c((()=>[p(n,{label:e.$t("Database.index_13")},{default:c((()=>[p(t,{class:"w-250px!",value:_(h).username,"onUpdate:value":l[0]||(l[0]=e=>_(h).username=e),disabled:""},null,8,["value"])])),_:1},8,["label"]),p(n,{label:e.$t("Database.Mysql.index_4")},{default:c((()=>[p(t,{class:"w-250px!",value:_(h).host,"onUpdate:value":l[1]||(l[1]=e=>_(h).host=e),disabled:""},null,8,["value"])])),_:1},8,["label"]),p(n,{label:e.$t("Password.index_2"),path:"password"},{default:c((()=>[p(t,{class:"w-250px!",value:_(h).password,"onUpdate:value":l[2]||(l[2]=e=>_(h).password=e),placeholder:e.$t("Config.Panel.index_67")},null,8,["value","placeholder"])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
