import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1764830988434";import{aL as e,fE as r,fF as o,d as t,h as p}from"./page_layout.js?v=1764830988434";import{d as l}from"./public.js?v=1764830988434";import{k as i,P as n,r as d,e as u,R as m,V as _,W as f,a3 as v,S as w,U as x,N as c}from"./vue.js?v=1764830988434";import{dR as g}from"./naive.js?v=1764830988434";import"./index96.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";const j={class:"px-20px pt-24px pb-8px"},y={class:"w-280px"},b=i({__name:"index",setup(i,{expose:b}){const{t:h}=n(),D=e(),E=d(null),R=u({password:""}),k={password:{trigger:["blur","input"],validator:()=>R.password?!(R.password.length<6)||new Error(h("Database.form.index_20")):new Error(h("Database.form.index_17"))}},{loading:L,setLoading:U}=l();return(async()=>{try{U(!0);const{message:a}=await o(D.type);t(a)&&(R.password=p(a.result)?a.result:"")}finally{U(!1)}})(),b({onConfirm:async({hide:a})=>{var s;await(null==(s=E.value)?void 0:s.validate()),await r(D.type,c(R)),a()}}),(e,r)=>{const o=s,t=g,p=a;return _(),m("div",j,[f(p,{ref_key:"formRef",ref:E,model:x(R),rules:k},{default:v(()=>[f(t,{label:e.$t("Database.tools.index_75"),path:"password"},{default:v(()=>[w("div",y,[f(o,{value:x(R).password,"onUpdate:value":r[0]||(r[0]=a=>x(R).password=a),loading:x(L),default:!1,"input-props":{name:"password"}},null,8,["value","loading"])])]),_:1},8,["label"])]),_:1},8,["model"])])}}});export{b as default};
