"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),a={class:"shj-for-ue"},d=n.defineComponent({name:"zv-scene-ue-shj"}),v=n.defineComponent({...d,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},emits:["ue-scene-on-message"],setup(c,{emit:u}){const t=c,i=u;return(()=>{n.onMounted(()=>{t.useEvents.length>0&&t.useEvents.forEach(e=>{e&&e.receivingMethod&&(window.ue.interface[e.receivingMethod]=s=>{try{if(!JSON.parse(s).data)throw new Error("");const o=t.useEvents.filter(r=>r.receivingMethod===e.receivingMethod&&r.eventType==="on-message");i("ue-scene-on-message",JSON.parse(s).data),window.SHJParseEvent(o,"ue-scene-on-message",JSON.parse(s).data)}catch{}})})})})(),(e,s)=>(n.openBlock(),n.createElementBlock("div",a))}});exports.default=v;
