const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
var R=Object.defineProperty;var x=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var C=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&C(o,t,e[t]);if(x)for(var t of x(e))T.call(e,t)&&C(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(p){s(p)}},n=a=>{try{i(t.throw(a))}catch(p){s(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as E}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as g}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{B,x as I,I as P,M as V,_ as D,T as k,Y as S,C as L}from"./Editor-DIkkoBrq-1sBJeaGq.js";import{a as M,n as w,l as O,E as Y}from"./utils-DgXOVItp.js";import{y as z}from"./@vueuse-DGhgU4Wj.js";import{x as H,az as y,E as N,S as U,U as b,r as j,D as q,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-CtuJnEp1.js";import"./marked--VTVY_DP.js";const pe=H({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new B(I(w)),s=([e,t]=y(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=P({loading:O,notify:w,useTitle:z,alert:M,access:s==null?void 0:s.access}),n=s?([e,t]=y(()=>new Y(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=V({mode:D.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>E(()=>import("./vue-Cs4cahp0.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>E(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=g(),u=j(),l=F();return p(()=>f(null,null,function*(){const m=yield k(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(S),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),h=>{L(r,v,h)}))})),(m,r)=>u.value?(q(),N(U(u.value),{key:0})):b("",!0)})}});export{pe as default};
