const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DhSsrCnR.js","./vue-BCeUdUZW.js"])))=>i.map(i=>d[i]);
var R=Object.defineProperty;var w=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(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={}))k.call(e,t)&&E(o,t,e[t]);if(w)for(var t of w(e))x.call(e,t)&&E(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 A}from"./monaco-editor-xcHgnT1C.js";import{useRoute as P}from"./vue-router-DhSsrCnR.js";import"./element-plus-DzGjmbPT.js";import"./vxe-B6nyV_6w.js";import{O as I,k as O,E as V,A as g,w as T,I as B,J as D,j as J}from"./Editor-BMuQppe5-CHXZ3yZL.js";import{a as j,n as h,l as L,E as S}from"./utils-PnTZyUOd.js";import{w as b}from"./@vueuse--GEK18_Y.js";import{d as z,az as y,b as H,J as N,O as q,P as F,o as G,k as K}from"./vue-BCeUdUZW.js";import"./dayjs-C1e0w4cr.js";import"./@element-plus-icons-vue-Wht5hDuw.js";import"./lodash-es-BOeLjWVX.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-DKzs-0ke.js";import"./marked-BQZxLJfc.js";const pe=z({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new I(O(h)),s=([e,t]=y(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:L,notify:h,useTitle:b,alert:j,access:s==null?void 0:s.access}),n=s?([e,t]=y(()=>new S(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=g({mode:T.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>A(()=>import("./vue-BCeUdUZW.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-DhSsrCnR.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=H(),l=K();return p(()=>f(null,null,function*(){const m=yield B(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(D),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{J(r,v,C)}))})),(m,r)=>u.value?(G(),N(F(u.value),{key:0})):q("",!0)})}});export{pe as default};
