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