import{_ as a}from"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import{_ as s}from"./index.vue_vue_type_script_setup_true_lang2.js?v=1763625242172";import{bn as e,fL as r,fM as o,c as t,h as p}from"./page_layout.js?v=1763625242172";import{d as l}from"./public.js?v=1763625242172";import{k as n,P as i,r as d,e as u,R as m,S as _,X as f,a3 as v,U as w,V as c,N as x}from"./vue.js?v=1763625242172";import{dP as g}from"./naive.js?v=1763625242172";import"./index98.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const j={class:"px-20px pt-24px pb-8px"},y={class:"w-280px"},b=n({__name:"index",setup(n,{expose:b}){const{t:h}=i(),D=e(),k=d(null),E=u({password:""}),L={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:P,setLoading:R}=l();return(async()=>{try{R(!0);const{message:a}=await o(D.type);t(a)&&(E.password=p(a.result)?a.result:"")}finally{R(!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:c(E),rules:L},{default:v((()=>[f(t,{label:e.$t("Database.tools.index_75"),path:"password"},{default:v((()=>[w("div",y,[f(o,{value:c(E).password,"onUpdate:value":r[0]||(r[0]=a=>c(E).password=a),loading:c(P),default:!1,"input-props":{name:"password"}},null,8,["value","loading"])])])),_:1},8,["label"])])),_:1},8,["model"])])}}});export{b as default};
