import{az as c,d as v,r as u,b as C,o as y,A as k,B as o,C as L,f as r,E as i,a as _,k as B,D,_ as H,K as T,Z as W,__tla as j}from"./index-92ad187a.js";import{_ as R,__tla as U}from"./ContentWrap.vue_vue_type_script_setup_true_lang-c7ede7df.js";import{_ as z,__tla as A}from"./IFrame.vue_vue_type_script_setup_true_lang-f46650d2.js";import{d as m}from"./download-20922b56.js";import{__tla as E}from"./el-card-93209b1d.js";let h,I=Promise.all([(()=>{try{return j}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{let n,p;n=()=>c.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},h=v({name:"InfraDBDoc",__name:"index",setup(K){const l=u(!0),w=u(""),d=async t=>{if(t==="HTML"){const a=await n();m.html(a,"\u6570\u636E\u5E93\u6587\u6863.html")}if(t==="Word"){const a=await c.download({url:"/infra/db-doc/export-word"});m.word(a,"\u6570\u636E\u5E93\u6587\u6863.doc")}if(t==="Markdown"){const a=await c.download({url:"/infra/db-doc/export-markdown"});m.markdown(a,"\u6570\u636E\u5E93\u6587\u6863.md")}};return C(async()=>{await(async()=>{try{const t=await n(),a=new Blob([t],{type:"text/html"});w.value=window.URL.createObjectURL(a)}finally{l.value=!1}})()}),(t,a)=>{const e=H,s=T,x=z,b=R,M=W;return y(),k(b,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:o(()=>[L("div",p,[r(s,{type:"primary",plain:"",onClick:a[0]||(a[0]=f=>d("HTML"))},{default:o(()=>[r(e,{icon:"ep:download"}),i(" \u5BFC\u51FA HTML ")]),_:1}),r(s,{type:"primary",plain:"",onClick:a[1]||(a[1]=f=>d("Word"))},{default:o(()=>[r(e,{icon:"ep:download"}),i(" \u5BFC\u51FA Word ")]),_:1}),r(s,{type:"primary",plain:"",onClick:a[2]||(a[2]=f=>d("Markdown"))},{default:o(()=>[r(e,{icon:"ep:download"}),i(" \u5BFC\u51FA Markdown ")]),_:1})]),_(l)?D("",!0):B((y(),k(x,{key:0,src:_(w)},null,8,["src"])),[[M,_(l)]])]),_:1})}}})});export{I as __tla,h as default};
