"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=["src"],f=e.defineComponent({name:"zv-scene-unity-webgl"}),m=e.defineComponent({...f,props:{basicOption:{},sources:{},useEvents:{},uuid:{},isPreview:{type:Boolean},disableDrag:{type:Boolean}},emits:["on-message"],setup(s,{emit:o}){const a=s,r=o,i=()=>{const n=e.ref();return e.onMounted(()=>{window.SHJSceneUnityIframeInstance=n.value}),e.onBeforeUnmount(()=>{window.SHJSceneUnityIframeInstance&&(window.SHJSceneUnityIframeInstance=null)}),window.addEventListener("message",t=>{r("on-message",t.data),window.SHJParseEvent(a.useEvents,"on-message",t.data)},!1),{unityIframeRef:n}},{unityIframeRef:u}=i();return(n,t)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"unityIframeRef",ref:u,class:"unity-wrap",src:`${n.basicOption.url}/index.html`,frameborder:"0"},null,8,c))}});exports.default=m;
