System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./index-legacy129.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","./index-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1763625242172"],(function(e,a){"use strict";var l,s,t,u,n,r,i,d,p,o,_,c,v,g,x,b,y,m,f;return{setters:[e=>{l=e._},e=>{s=e.by,t=e.hx},e=>{u=e._},e=>{n=e.k,r=e.P,i=e.r,d=e.e,p=e.R,o=e.S,_=e.X,c=e.a3,v=e.V,g=e.a2,x=e.an},e=>{b=e.dP,y=e.au,m=e.dV,f=e.d9},null,null,null,null,null,null,null],execute:function(){const a={class:"p-16px"};e("default",n({__name:"index",props:{data:{}},setup(e,{expose:n}){const{t:h}=r(),w=e,{getList:j}=w.data,D=i(null),$=d({sid:0,username:"",password:s(10),host:"127.0.0.1",ip:""}),q={username:{required:!0,message:h("Config.Panel.index_60"),trigger:["blur","input"]},password:{required:!0,message:h("Config.Panel.index_67"),trigger:["blur","input"]},ip:{trigger:["blur","input"],validator:()=>"ip"!==$.host||""!==$.ip||new Error(h("Database.Mysql.index_6"))}},P=i([{label:h("Database.form.index_13"),value:"%"},{label:h("Database.form.index_12"),value:"127.0.0.1"},{label:h("Database.form.index_14"),value:"ip"}]);return n({onConfirm:async()=>{await(D.value?.validate()),await t({sid:$.sid,username:$.username,password:$.password,host:"ip"===$.host?$.ip:$.host,db_name:"*",tb_name:"*"}),j?.()}}),(e,s)=>{const t=b,n=y,r=m,i=f,d=l;return p(),o("div",a,[_(d,{ref_key:"formRef",ref:D,model:v($),rules:q},{default:c((()=>[_(t,{label:e.$t("Database.Mysql.index_5"),path:"server"},{default:c((()=>[_(u,{class:"w-200px",value:v($).sid,"onUpdate:value":s[0]||(s[0]=e=>v($).sid=e)},null,8,["value"])])),_:1},8,["label"]),_(t,{label:e.$t("Database.index_13"),path:"username"},{default:c((()=>[_(n,{class:"w-350px!",value:v($).username,"onUpdate:value":s[1]||(s[1]=e=>v($).username=e),placeholder:e.$t("Config.Panel.index_60")},null,8,["value","placeholder"])])),_:1},8,["label"]),_(t,{label:e.$t("Database.index_14"),path:"password"},{default:c((()=>[_(n,{class:"w-350px!",value:v($).password,"onUpdate:value":s[2]||(s[2]=e=>v($).password=e),placeholder:e.$t("Config.Panel.index_67")},null,8,["value","placeholder"])])),_:1},8,["label"]),_(i,null,{default:c((()=>[_(t,{label:e.$t("Database.Mysql.index_4")},{default:c((()=>[_(r,{class:"w-200px",value:v($).host,"onUpdate:value":s[3]||(s[3]=e=>v($).host=e),options:v(P)},null,8,["value","options"])])),_:1},8,["label"]),_(t,{"show-label":!1,path:"ip"},{default:c((()=>["ip"===v($).host?(p(),g(n,{key:0,class:"w-150px!",value:v($).ip,"onUpdate:value":s[4]||(s[4]=e=>v($).ip=e),placeholder:e.$t("Database.Mysql.index_6")},null,8,["value","placeholder"])):x("",!0)])),_:1})])),_:1})])),_:1},8,["model"])])}}}))}}}));
