System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSBh0Le2.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-y1mYB81o.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,a){"use strict";var s,t,r,l,n,u,i,o,d,p,c,g,_,y,x,v,w,f,m,j;return{setters:[e=>{s=e._},e=>{t=e._},e=>{r=e.gq,l=e.gr,n=e.i,u=e.ao},e=>{i=e.u},e=>{o=e.u},e=>{d=e.k,p=e.R,c=e.r,g=e.e,_=e.$,y=e.Z,x=e.a0,v=e.a9,w=e._,f=e.S,m=e.N},e=>{j=e.a1},null,null],execute:function(){const a={class:"px-20px pt-24px pb-8px"},b={class:"w-280px"};e("default",d({__name:"index",setup(e,{expose:d}){const{t:h}=p(),D=i(),$=c(null),k=g({password:""}),E={password:{trigger:["blur","input"],validator:()=>k.password?!(k.password.length<6)||new Error(h("Database.form.index_20")):new Error(h("Database.form.index_17"))}},{loading:L,setLoading:R}=o();return(async()=>{try{R(!0);const{message:e}=await l(D.type);n(e)&&(k.password=u(e.result)?e.result:"")}finally{R(!1)}})(),d({onConfirm:async({hide:e})=>{await($.value?.validate()),await r(D.type,m(k)),e()}}),(e,r)=>{const l=t,n=j,u=s;return _(),y("div",a,[x(u,{ref_key:"formRef",ref:$,model:f(k),rules:E},{default:v((()=>[x(n,{label:e.$t("Database.tools.index_75"),path:"password"},{default:v((()=>[w("div",b,[x(l,{value:f(k).password,"onUpdate:value":r[0]||(r[0]=e=>f(k).password=e),loading:f(L),default:!1,"input-props":{name:"password"}},null,8,["value","loading"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}}))}}}));
