import{h as m}from"./axios--FnjuHWf.js";import{d as y,r as a,e as u,o as v,c as f,a as e,f as o,w,h as b}from"./index-go251NJo.js";const V={style:{"background-color":"#d2d2fa",height:"100vh",display:"grid","place-items":"center"}},x={style:{"background-color":"#fff",width:"70%",height:"70%","border-radius":"10px",padding:"20px",overflow:"auto"}},g=e("div",{style:{display:"flex","justify-content":"space-between","align-items":"center"}},[e("div",{style:{"font-size":"20px","font-weight":"bold"}},"解密-微信数据库"),e("div",{style:{display:"flex","justify-content":"space-between","align-items":"center"}})],-1),k={style:{"margin-top":"20px"}},C=e("label",null,"密钥（key）: ",-1),P=e("br",null,null,-1),U=e("label",null,"微信数据库路径: ",-1),B=e("br",null,null,-1),N=e("label",null,"解密后输出文件夹路径: ",-1),j=e("br",null,null,-1),R=y({__name:"DecryptView",setup(E){const s=a(""),d=a(""),r=a(""),i=a(""),p=async()=>{try{i.value=await m.post("/api/decrypt",{wxdbPath:s.value,key:d.value,outPath:r.value})}catch(c){return console.error("Error fetching data:",c),[]}};return(c,t)=>{const n=u("el-input"),_=u("el-button"),h=u("el-divider");return v(),f("div",V,[e("div",x,[g,e("div",k,[C,o(n,{placeholder:"请输入密钥（key）",modelValue:d.value,"onUpdate:modelValue":t[0]||(t[0]=l=>d.value=l),style:{width:"50%"}},null,8,["modelValue"]),P,U,o(n,{placeholder:"请输入微信数据库路径",modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=l=>s.value=l),style:{width:"50%"}},null,8,["modelValue"]),B,N,o(n,{placeholder:"请输入解密后输出文件夹路径",modelValue:r.value,"onUpdate:modelValue":t[2]||(t[2]=l=>r.value=l),style:{width:"50%"}},null,8,["modelValue"]),j,o(_,{style:{"margin-top":"10px",width:"50%"},type:"success",onClick:p},{default:w(()=>[b("解密")]),_:1}),o(h),o(n,{type:"textarea",rows:10,readonly:"",placeholder:"解密后数据库路径",modelValue:i.value,"onUpdate:modelValue":t[3]||(t[3]=l=>i.value=l),style:{width:"100%"}},null,8,["modelValue"])])])])}}});export{R as default};
