@vtj/pro 0.8.140 → 0.8.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- var y=Object.defineProperty;var u=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var f=(o,t,e)=>t in o?y(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,h=(o,t)=>{for(var e in t||(t={}))g.call(t,e)&&f(o,e,t[e]);if(u)for(var e of u(t))k.call(t,e)&&f(o,e,t[e]);return o};var w=(o,t,e)=>new Promise((s,r)=>{var m=n=>{try{c(e.next(n))}catch(i){r(i)}},p=n=>{try{c(e.throw(n))}catch(i){r(i)}},c=n=>n.done?s(n.value):Promise.resolve(n.value).then(m,p);c((e=e.apply(o,t)).next())});import{useRoute as E}from"./vue-router-D9jePgS-.js";import"./element-plus-CwWYvzvB.js";import{M as v,i as $,l as P,E as A}from"./extension-DpsigRdO.js";import{d as B,e as C,bX as x,f as F,c as b,o as q}from"./@vue-DuG_dK-o.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-BzNxVifS.js";import"./@element-plus-CYBimet3.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-rQ6ln_M2.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DG3QGZyI.js";import"./vue-BQ07tEkC.js";import"./monaco-editor-WNIdoi5y.js";import"./mockjs-Aegw53wM.js";const M=B({__name:"index",setup(o){return w(this,null,function*(){let t,e;const s=E(),r=C(),m=new P,p=([t,e]=x(()=>m.getExtension().catch(()=>null)),t=yield t,e(),t),c=p?([t,e]=x(()=>new A(p).load()),t=yield t,e(),t):void 0,{__BASE_PATH__:n="/"}=p||{};v.set("Switcher",{props:{onClick:a=>{const _=location.pathname;let d=_===`${n}__vtj__/`?n:_;const l=a.currentFile;l&&l.type==="page"&&a.homepage!==l.id&&(d=`${d}#/page/${l.id}`),window.open(d,"VTJProject")}}}),v.set("Previewer",{props:{path:a=>`${location.pathname}#/preview/${a.id}`}});const i=new $(h({container:r,service:m,materialPath:n},c));return i.ready(()=>{i.openFile(s.query.id)}),F(()=>s.query.id,a=>{i.openFile(a)}),(a,_)=>(q(),b("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),S=(o,t)=>{const e=o.__vccOpts||o;for(const[s,r]of t)e[s]=r;return e},Y=S(M,[["__scopeId","data-v-9a3b4555"]]);export{Y as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-BQ07tEkC.js","./@vue-DuG_dK-o.js","./vue-router-D9jePgS-.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty,C=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,f=(o,t)=>{for(var e in t||(t={}))y.call(t,e)&&v(o,e,t[e]);if(l)for(var e of l(t))h.call(t,e)&&v(o,e,t[e]);return o},E=(o,t)=>C(o,V(t));var d=(o,t,e)=>new Promise((s,n)=>{var m=r=>{try{a(e.next(r))}catch(p){n(p)}},_=r=>{try{a(e.throw(r))}catch(p){n(p)}},a=r=>r.done?s(r.value):Promise.resolve(r.value).then(m,_);a((e=e.apply(o,t)).next())});import{_ as R}from"./monaco-editor-WNIdoi5y.js";import{useRoute as A}from"./vue-router-D9jePgS-.js";import"./element-plus-CwWYvzvB.js";import{o as P,S as g,b,l as k,E as B}from"./extension-DpsigRdO.js";import{d as D,bX as w,e as I,i as S,R as T,V as L,W as O,o as H}from"./@vue-DuG_dK-o.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-BzNxVifS.js";import"./@element-plus-CYBimet3.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-rQ6ln_M2.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-DG3QGZyI.js";import"./vue-BQ07tEkC.js";import"./mockjs-Aegw53wM.js";const rt=D({__name:"preview",setup(o){return d(this,null,function*(){let t,e;const s=new k,n=([t,e]=w(()=>s.getExtension().catch(()=>null)),t=yield t,e(),t),m=n?([t,e]=w(()=>new B(n).load()),t=yield t,e(),t):void 0,{__BASE_PATH__:_="/"}=n||{},{provider:a,onReady:r}=P(E(f({mode:g.Runtime,service:s,materialPath:_},m||{}),{dependencies:{Vue:()=>R(()=>import("./vue-BQ07tEkC.js").then(i=>i.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>R(()=>import("./vue-router-D9jePgS-.js"),__vite__mapDeps([2,1]),import.meta.url)}})),p=A(),c=I(),u=S();return r(()=>d(this,null,function*(){const i=u==null?void 0:u.appContext.app;i&&(i.use(b),i.use(a)),c.value=yield a.getRenderComponent(p.params.id.toString())})),(i,N)=>c.value?(H(),T(L(c.value),{key:0})):O("",!0)})}});export{rt as default};