import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1753954525509";import{b1 as e,eQ as r,eR as o,c as t,f as p}from"./page_layout.js?v=1753954525509";import{c as l}from"./public.js?v=1753954525509";import{k as i,P as n,r as d,e as u,U as m,V as _,Q as f,a2 as c,W as v,X as w,N as x}from"./vue.js?v=1753954525509";import{cA as g}from"./naive.js?v=1753954525509";import"./index96.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";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(),k=d(null),E=u({password:""}),Q={password:{trigger:["blur","input"],validator:()=>E.password?!(E.password.length<6)||new Error(h("Database.form.index_20")):new Error(h("Database.form.index_17"))}},{loading:R,setLoading:U}=l();return(async()=>{try{U(!0);const{message:a}=await o(D.type);t(a)&&(E.password=p(a.result)?a.result:"")}finally{U(!1)}})(),b({onConfirm:async({hide:a})=>{var s;await(null==(s=k.value)?void 0:s.validate()),await r(D.type,x(E)),a()}}),(e,r)=>{const o=s,t=g,p=a;return m(),_("div",j,[f(p,{ref_key:"formRef",ref:k,model:w(E),rules:Q},{default:c((()=>[f(t,{label:e.$t("Database.tools.index_75"),path:"password"},{default:c((()=>[v("div",y,[f(o,{value:w(E).password,"onUpdate:value":r[0]||(r[0]=a=>w(E).password=a),loading:w(R),default:!1,"input-props":{name:"password"}},null,8,["value","loading"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{b as default};
