const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-CwSAuTE4.js","./vue-CAMRmZ-8.js"])))=>i.map(i=>d[i]);
var C=Object.defineProperty;var E=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?C(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))R.call(e,t)&&w(o,t,e[t]);if(E)for(var t of E(e))k.call(e,t)&&w(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-BnTtZo-x.js";import{useRoute as P}from"./vue-router-CwSAuTE4.js";import"./element-plus-BCa6Zci8.js";import"./vxe-CiIRgvGK.js";import{O as I,k as O,E as V,A as g,w as T,I as b,Y as B,b as D}from"./Editor-CrAfk7jY-Cd4xhKAl.js";import{a as L,n as h,l as S,E as Y}from"./utils-Bu28oKnh.js";import{x as z}from"./@vueuse-CFu7Lllw.js";import{d as H,az as x,b as J,J as N,O as j,P as q,o as F,k as G}from"./vue-CAMRmZ-8.js";import"./dayjs-BGdj-UA2.js";import"./@element-plus-icons-vue-BKci8WR4.js";import"./lodash-es-DyZ5XK_i.js";import"./shared-CcA2kMdO.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D1skojwT.js";import"./marked-BQZxLJfc.js";const pe=H({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new I(O(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:S,notify:h,useTitle:z,alert:L,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new Y(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-CAMRmZ-8.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-CwSAuTE4.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=J(),l=G();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(B),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),y=>{D(r,v,y)}))})),(m,r)=>u.value?(F(),N(q(u.value),{key:0})):j("",!0)})}});export{pe as default};
