@vtj/pro 0.8.71 → 0.8.73

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.
@@ -0,0 +1 @@
1
+ var y=Object.defineProperty;var f=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var u=(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)&&u(o,e,t[e]);if(f)for(var e of f(t))k.call(t,e)&&u(o,e,t[e]);return o};var w=(o,t,e)=>new Promise((s,r)=>{var m=n=>{try{c(e.next(n))}catch(a){r(a)}},p=n=>{try{c(e.throw(n))}catch(a){r(a)}},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-CbemHIRz.js";import"./element-plus-BftS3Kgj.js";import{N as v,s as $,a as P,E as A}from"./extension-CPMJIpDy.js";import{d as B,r as C,bN as x,f as F,c as N,o as q}from"./@vue-CBNdbwf4.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-Cpfo139p.js";import"./@element-plus-DOIBKHWA.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-D61SyGJ0.js";import"./vue-BEpF3lV5.js";import"./monaco-editor-DcvjtjDx.js";import"./mockjs-lxjp2n0w.js";const S=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:i=>{const _=location.pathname;let d=_===`${n}@vtj/pro/`?n:_;const l=i.currentFile;l&&l.type==="page"&&i.homepage!==l.id&&(d=`${d}#/page/${l.id}`),window.open(d,"VTJProject")}}}),v.set("Previewer",{props:{path:i=>`${location.pathname}#/preview/${i.id}`}});const a=new $(h({container:r,service:m,materialPath:n},c));return a.ready(()=>{a.openFile(s.query.id)}),F(()=>s.query.id,i=>{a.openFile(i)}),(i,_)=>(q(),N("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),T=(o,t)=>{const e=o.__vccOpts||o;for(const[s,r]of t)e[s]=r;return e},Y=T(S,[["__scopeId","data-v-2eff5221"]]);export{Y as default};
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./index-kKO4l5SY.js","./vue-router-CbemHIRz.js","./@vue-CBNdbwf4.js","./element-plus-BftS3Kgj.js","./lodash-es-iLqVnzBD.js","./@vueuse-Cpfo139p.js","./@element-plus-DOIBKHWA.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-D61SyGJ0.js","./element-plus-DzZXHC44.css","./extension-DGLjWfMp.js","./vue-BEpF3lV5.js","./monaco-editor-DcvjtjDx.js","./monaco-editor-BgBQhOSF.css","./mockjs-lxjp2n0w.js","./extension-U-V_G3f_.css","./index-D2IJveMn.css","./preview-Dla0QEk9.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{d as f,R as n,u as p,ah as d,o as a,S as c,aF as _,Z as h,at as y}from"./@vue-CBNdbwf4.js";import{z as v,E as g}from"./element-plus-BftS3Kgj.js";import{_ as m}from"./monaco-editor-DcvjtjDx.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-CbemHIRz.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-Cpfo139p.js";import"./@element-plus-DOIBKHWA.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-D61SyGJ0.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-kKO4l5SY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-Dla0QEk9.js"),__vite__mapDeps([22,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
1
+ const __vite__fileDeps=["./index-BEdy-Cd4.js","./vue-router-CbemHIRz.js","./@vue-CBNdbwf4.js","./element-plus-BftS3Kgj.js","./lodash-es-iLqVnzBD.js","./@vueuse-Cpfo139p.js","./@element-plus-DOIBKHWA.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-D61SyGJ0.js","./element-plus-DzZXHC44.css","./extension-CPMJIpDy.js","./vue-BEpF3lV5.js","./monaco-editor-DcvjtjDx.js","./monaco-editor-BgBQhOSF.css","./mockjs-lxjp2n0w.js","./extension-U-V_G3f_.css","./index-DVfLpypc.css","./preview-o_LlSqNo.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{d as f,R as n,u as p,ah as d,o as a,S as c,aF as _,Z as h,at as y}from"./@vue-CBNdbwf4.js";import{z as v,E as g}from"./element-plus-BftS3Kgj.js";import{_ as m}from"./monaco-editor-DcvjtjDx.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-CbemHIRz.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-Cpfo139p.js";import"./@element-plus-DOIBKHWA.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-D61SyGJ0.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-BEdy-Cd4.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-o_LlSqNo.js"),__vite__mapDeps([22,17,18,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
@@ -0,0 +1 @@
1
+ .designer[data-v-2eff5221]{width:100%;height:100%}
@@ -0,0 +1,2 @@
1
+ const __vite__fileDeps=["./vue-BEpF3lV5.js","./@vue-CBNdbwf4.js","./vue-router-CbemHIRz.js","./element-plus-BftS3Kgj.js","./lodash-es-iLqVnzBD.js","./@vueuse-Cpfo139p.js","./@element-plus-DOIBKHWA.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-D61SyGJ0.js","./element-plus-DzZXHC44.css","./extension-CPMJIpDy.js","./monaco-editor-DcvjtjDx.js","./monaco-editor-BgBQhOSF.css","./mockjs-lxjp2n0w.js","./extension-U-V_G3f_.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ var P=Object.defineProperty,h=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?P(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,V=(o,t)=>{for(var e in t||(t={}))x.call(t,e)&&E(o,e,t[e]);if(v)for(var e of v(t))A.call(t,e)&&E(o,e,t[e]);return o},R=(o,t)=>h(o,w(t));var l=(o,t,e)=>new Promise((p,a)=>{var _=n=>{try{i(e.next(n))}catch(m){a(m)}},c=n=>{try{i(e.throw(n))}catch(m){a(m)}},i=n=>n.done?p(n.value):Promise.resolve(n.value).then(_,c);i((e=e.apply(o,t)).next())});import{_ as s}from"./monaco-editor-DcvjtjDx.js";import{useRoute as C}from"./vue-router-CbemHIRz.js";import"./element-plus-BftS3Kgj.js";import{r as y,_ as I,b as D,a as T,E as g}from"./extension-CPMJIpDy.js";import{d as L,bN as f,r as O,i as b,R as k,V as B,W as N,o as S}from"./@vue-CBNdbwf4.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-Cpfo139p.js";import"./@element-plus-DOIBKHWA.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-D61SyGJ0.js";import"./vue-BEpF3lV5.js";import"./mockjs-lxjp2n0w.js";const rt=L({__name:"preview",setup(o){return l(this,null,function*(){let t,e;const p=new T,a=([t,e]=f(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),_=a?([t,e]=f(()=>new g(a).load()),t=yield t,e(),t):void 0,{__BASE_PATH__:c="/"}=a||{},{provider:i,onReady:n}=y(R(V({mode:I.Runtime,service:p,materialPath:c},_||{}),{dependencies:{Vue:()=>s(()=>import("./vue-BEpF3lV5.js").then(r=>r.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>s(()=>import("./vue-router-CbemHIRz.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>s(()=>import("./element-plus-BftS3Kgj.js").then(r=>r.ae),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),VtjIcons:()=>s(()=>import("./extension-CPMJIpDy.js").then(r=>r.V),__vite__mapDeps([15,0,1,6,5,2,3,4,7,8,9,10,11,12,13,14,16,17,18,19]),import.meta.url)}})),m=C(),u=O(),d=b();return n(()=>l(this,null,function*(){const r=d==null?void 0:d.appContext.app;r&&(r.use(D),r.use(i)),u.value=yield i.getRenderComponent(m.params.id.toString())})),(r,j)=>u.value?(S(),k(B(u.value),{key:0})):N("",!0)})}});export{rt as default};
package/dist/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <meta http-equiv="Pragma" content="no-cache"/>
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
- <script type="module" crossorigin src="./assets/index-Bz3b13jp.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-BMiBO4DK.js"></script>
12
12
  <link rel="modulepreload" crossorigin href="./assets/@vue-CBNdbwf4.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-iLqVnzBD.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-Cpfo139p.js">
package/package.json CHANGED
@@ -2,23 +2,23 @@
2
2
  "name": "@vtj/pro",
3
3
  "description": "VTJ.PRO",
4
4
  "private": false,
5
- "version": "0.8.71",
5
+ "version": "0.8.73",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@vtj/core": "~0.8.71",
9
- "@vtj/designer": "~0.8.71",
10
- "@vtj/local": "~0.8.71",
11
- "@vtj/materials": "~0.8.71",
12
- "@vtj/renderer": "~0.8.71"
8
+ "@vtj/core": "~0.8.73",
9
+ "@vtj/designer": "~0.8.73",
10
+ "@vtj/local": "~0.8.73",
11
+ "@vtj/renderer": "~0.8.73",
12
+ "@vtj/materials": "~0.8.73"
13
13
  },
14
14
  "devDependencies": {
15
15
  "vue": "~3.4.15",
16
16
  "vue-router": "~4.4.0",
17
- "@vtj/charts": "~0.8.71",
18
- "@vtj/icons": "~0.8.71",
17
+ "@vtj/charts": "~0.8.73",
18
+ "@vtj/icons": "~0.8.73",
19
19
  "@vtj/cli": "~0.8.17",
20
- "@vtj/utils": "~0.8.71",
21
- "@vtj/ui": "~0.8.71"
20
+ "@vtj/ui": "~0.8.73",
21
+ "@vtj/utils": "~0.8.73"
22
22
  },
23
23
  "exports": {
24
24
  "./vite": {
package/src/extension.ts CHANGED
@@ -6,21 +6,17 @@ import * as designer from '@vtj/designer';
6
6
  import * as renderer from '@vtj/renderer';
7
7
  import * as VtjIcons from '@vtj/icons';
8
8
  import * as ElementPlus from 'element-plus';
9
-
9
+ import type { ExtensionConfig } from '@vtj/core';
10
10
  import type { EngineOptions } from '@vtj/designer';
11
11
 
12
- export interface ExtensionOptions {
13
- urls: string[];
14
- library: string;
15
- params?: any[];
16
- }
17
-
12
+ export type ExtensionOptions = ExtensionConfig;
18
13
  export type ExtensionFactory = () => Partial<EngineOptions> | void;
19
14
 
20
15
  export class Extension {
21
16
  private urls: string[] = [];
22
17
  private library: string = '';
23
18
  private params: any[] = [];
19
+ private __BASE_PATH__: string = '/';
24
20
  constructor(options: ExtensionOptions) {
25
21
  const __VTJ_PRO__ = {
26
22
  ...core,
@@ -34,14 +30,21 @@ export class Extension {
34
30
  (window as any).VtjIcons = VtjIcons;
35
31
  (window as any).VtjUI = VtjUI;
36
32
  (window as any).ElementPlus = ElementPlus;
37
- const { urls, library, params = [] } = options;
33
+ const { urls = [], library, params = [], __BASE_PATH__ = '/' } = options;
38
34
  this.urls = urls;
39
35
  this.library = library;
40
36
  this.params = params;
37
+ this.__BASE_PATH__ = __BASE_PATH__;
41
38
  }
42
39
  async load(): Promise<Partial<EngineOptions> | undefined> {
43
- const css = this.urls.filter((n) => renderer.isCSSUrl(n));
44
- const scripts: string[] = this.urls.filter((n) => renderer.isJSUrl(n));
40
+ if (!this.library) return;
41
+ const base = this.__BASE_PATH__;
42
+ const css = this.urls
43
+ .filter((n) => renderer.isCSSUrl(n))
44
+ .map((n) => `${base}${n}`);
45
+ const scripts: string[] = this.urls
46
+ .filter((n) => renderer.isJSUrl(n))
47
+ .map((n) => `${base}${n}`);
45
48
  renderer.loadCssUrl(css);
46
49
  if (scripts.length) {
47
50
  const output = await renderer
@@ -1 +0,0 @@
1
- .designer[data-v-a6eb2daf]{width:100%;height:100%}
@@ -1 +0,0 @@
1
- var x=Object.defineProperty;var _=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var f=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))y.call(e,t)&&f(o,t,e[t]);if(_)for(var t of _(e))g.call(e,t)&&f(o,t,e[t]);return o};var h=(o,e,t)=>new Promise((i,a)=>{var p=n=>{try{s(t.next(n))}catch(r){a(r)}},c=n=>{try{s(t.throw(n))}catch(r){a(r)}},s=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,c);s((t=t.apply(o,e)).next())});import{useRoute as k}from"./vue-router-CbemHIRz.js";import"./element-plus-BftS3Kgj.js";import{N as w,s as E,a as $,E as C}from"./extension-DGLjWfMp.js";import{d as F,r as N,bN as v,f as b,c as q,o as B}from"./@vue-CBNdbwf4.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-Cpfo139p.js";import"./@element-plus-DOIBKHWA.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-D61SyGJ0.js";import"./vue-BEpF3lV5.js";import"./monaco-editor-DcvjtjDx.js";import"./mockjs-lxjp2n0w.js";const P=F({__name:"index",setup(o){return h(this,null,function*(){let e,t;const i=k(),a=N(),p=new $,c=([e,t]=v(()=>p.getExtension().catch(()=>null)),e=yield e,t(),e),s=c?([e,t]=v(()=>new C(c).load()),e=yield e,t(),e):void 0;w.set("Switcher",{props:{onClick:r=>{const m=location.pathname;let d=m==="/@vtj/pro/"?"/":m;const l=r.currentFile;l&&l.type==="page"&&r.homepage!==l.id&&(d=`${d}#/page/${l.id}`),window.open(d,"VTJProject")}}}),w.set("Previewer",{props:{path:r=>`${location.pathname}#/preview/${r.id}`}});const n=new E(u({container:a,service:p},s));return n.ready(()=>{n.openFile(i.query.id)}),b(()=>i.query.id,r=>{n.openFile(r)}),(r,m)=>(B(),q("div",{class:"designer",ref_key:"container",ref:a},null,512))})}}),j=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},X=j(P,[["__scopeId","data-v-a6eb2daf"]]);export{X as default};
@@ -1,2 +0,0 @@
1
- const __vite__fileDeps=["./vue-BEpF3lV5.js","./@vue-CBNdbwf4.js","./vue-router-CbemHIRz.js","./element-plus-BftS3Kgj.js","./lodash-es-iLqVnzBD.js","./@vueuse-Cpfo139p.js","./@element-plus-DOIBKHWA.js","./@popperjs-egqNnATr.js","./@ctrl-riLredlm.js","./dayjs-6gUf-wcg.js","./async-validator-7GrF_zuj.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-D61SyGJ0.js","./element-plus-DzZXHC44.css","./extension-DGLjWfMp.js","./monaco-editor-DcvjtjDx.js","./monaco-editor-BgBQhOSF.css","./mockjs-lxjp2n0w.js","./extension-U-V_G3f_.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- var f=Object.defineProperty,w=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var v=(o,t,e)=>t in o?f(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,E=(o,t)=>{for(var e in t||(t={}))C.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},V=(o,t)=>w(o,x(t));var d=(o,t,e)=>new Promise((p,a)=>{var u=n=>{try{m(e.next(n))}catch(i){a(i)}},s=n=>{try{m(e.throw(n))}catch(i){a(i)}},m=n=>n.done?p(n.value):Promise.resolve(n.value).then(u,s);m((e=e.apply(o,t)).next())});import{_}from"./monaco-editor-DcvjtjDx.js";import{useRoute as y}from"./vue-router-CbemHIRz.js";import"./element-plus-BftS3Kgj.js";import{r as I,_ as P,b as A,a as D,E as g}from"./extension-DGLjWfMp.js";import{d as L,bN as R,r as O,i as T,R as b,V as k,W as B,o as N}from"./@vue-CBNdbwf4.js";import"./lodash-es-iLqVnzBD.js";import"./@vueuse-Cpfo139p.js";import"./@element-plus-DOIBKHWA.js";import"./@popperjs-egqNnATr.js";import"./@ctrl-riLredlm.js";import"./dayjs-6gUf-wcg.js";import"./async-validator-7GrF_zuj.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-D61SyGJ0.js";import"./vue-BEpF3lV5.js";import"./mockjs-lxjp2n0w.js";const ot=L({__name:"preview",setup(o){return d(this,null,function*(){let t,e;const p=new D,a=([t,e]=R(()=>p.getExtension().catch(()=>null)),t=yield t,e(),t),u=a?([t,e]=R(()=>new g(a).load()),t=yield t,e(),t):void 0,{provider:s,onReady:m}=I(V(E({mode:P.Runtime,service:p},u||{}),{dependencies:{Vue:()=>_(()=>import("./vue-BEpF3lV5.js").then(r=>r.V),__vite__mapDeps([0,1]),import.meta.url),VueRouter:()=>_(()=>import("./vue-router-CbemHIRz.js"),__vite__mapDeps([2,1]),import.meta.url),ElementPlus:()=>_(()=>import("./element-plus-BftS3Kgj.js").then(r=>r.ae),__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url),VtjIcons:()=>_(()=>import("./extension-DGLjWfMp.js").then(r=>r.V),__vite__mapDeps([15,0,1,6,5,2,3,4,7,8,9,10,11,12,13,14,16,17,18,19]),import.meta.url)}})),n=y(),i=O(),c=T();return m(()=>d(this,null,function*(){const r=c==null?void 0:c.appContext.app;r&&(r.use(A),r.use(s)),i.value=yield s.getRenderComponent(n.params.id.toString())})),(r,j)=>i.value?(N(),b(k(i.value),{key:0})):B("",!0)})}});export{ot as default};