import{f as d,g as n,s as p,h as v,i as m,j as e,_ as w,Q as y}from"./app.b4113074.js";const g='',f='',k=t=>y({},{autoResize:!0,showCode:!1,showCompileOutput:!1,showImportMap:!0,clearConsole:!1,layout:"vertical",ssr:!1},JSON.parse(decodeURIComponent(t)));var C=d({name:"VuePlayground",props:{title:{type:String,default:""},files:{type:String,required:!0},settings:{type:String,default:"{}"}},setup(t){const o=n(!0),i=p(null),s=n(null),a=v(()=>k(t.settings)),l=n(a.value.showCode||!1),r=async()=>{const{ReplStore:c,Repl:u}=await w(()=>import("./vue-repl.9250c260.js"),["assets/vue-repl.9250c260.js","assets/app.b4113074.js"]);i.value=u,s.value=new c({serializedState:decodeURIComponent(t.files),showOutput:!0}),a.value.vueVersion&&await s.value.setVueVersion(a.value.vueVersion)};return m(async()=>{await r(),o.value=!1}),()=>[e("div",{class:"vue-playground-wrapper"},[e("div",{class:"title-wrapper"},[t.title?e("div",{class:"title"},decodeURIComponent(t.title)):null,e("div",{class:"actions"},[e("action",{class:"button",innerHTML:f,onClick:()=>{l.value=!l.value}})])]),e("div",{class:["repl-container",l.value?"show-code":"hide-code"]},[o.value?e("div",{class:["preview-loading-wrapper"],innerHTML:g}):null,i.value?e(i.value,{store:s.value,...a.value}):null])])]}});export{C as default};