System.register(["./index-legacy-tP3UZPmW.js","./tmagic-dep-legacy-Bcp-VA6U.js","./plugin-vueexport-helper-legacy-BYKHBkp1.js"],(function(e,n){"use strict";var t,i,s,c,a,o,r;return{setters:[null,e=>{t=e.I,i=e.a,s=e.b},e=>{c=e.u,a=e.a,o=e.b,r=e._}],execute:function(){const n=VueDemi.defineComponent({name:"tmagic-page",props:{config:{type:Object,required:!0},model:{type:Object,default:()=>({})}},setup(e){const n=VueDemi.inject("app");var r;"browser"===n?.jsEngine&&((e=>{if(e.cssFile&&i(e.cssFile),Array.isArray(e.cssFiles)&&e.cssFiles.map((e=>i(e.url))),e.css){const n=window.document.createElement("style");n.innerHTML=e.css,window.document.head.appendChild(n)}})(e.config),r=e.config,Array.isArray(r.jsFiles)&&r.jsFiles.map((e=>s(e.url))));const l=c({componentType:"container",app:n}),{style:m,className:d}=a(e),u=()=>{window.location.reload()};return VueDemi.watch((()=>e.config),(async(e,i)=>{const s=o({config:{...e,[t]:!0}},n);if(e.id!==i?.id&&(s?.registerMethod({refresh:u}),s?.emit("created")),await VueDemi.nextTick(),e.id!==i?.id){s?.emit("mounted");const e=o({config:{...i,[t]:!0}},n);e?.emit("destroy")}}),{immediate:!0}),{style:m,className:d,containerComponent:l,IS_DSL_NODE_KEY:t}}});e("default",r(n,[["render",function(e,n,t,i,s,c){return Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.containerComponent),{class:Vue.normalizeClass(e.className),style:Vue.normalizeStyle(e.style),"data-tmagic-id":e.config.id,config:{...e.config,[e.IS_DSL_NODE_KEY]:!1}},null,8,["class","style","data-tmagic-id","config"])}]]))}}}));
//# sourceMappingURL=index-legacy-B6FZX6Yc.js.map
