"use strict";var e=Object.defineProperty,t=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(t,o,a)=>o in t?e(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,c=require("../../../../../../common/vendor.js"),l=require("../../../../../../common/assets.js");const d=c.index.createInnerAudioContext(),i=c.defineComponent({props:{data:{type:Object,default:()=>({})},messageData:{type:Object,default:()=>({})}},setup(e,l){const i=c.reactive({data:{},message:{},isPlay:!1});c.watchEffect((()=>{i.data=e.data,i.message=e.messageData})),c.onMounted((()=>{d.onPlay((()=>{console.log("开始播放")})),d.onEnded((()=>{console.log("停止播放")})),d.onError((e=>{console.error(e,"onError")}))}));return p=((e,t)=>{for(var o in t||(t={}))r.call(t,o)&&s(e,o,t[o]);if(a)for(var o of a(t))n.call(t,o)&&s(e,o,t[o]);return e})({},c.toRefs(i)),t(p,o({audio:d,handlePlay:()=>{i.data.url&&(d.src=i.data.url,d.play()),i.isPlay=!0}}));var p}});var p=c._export_sfc(i,[["render",function(e,t,o,a,r,n){return c.e({a:"in"===e.message.flow},"in"===e.message.flow?{b:l._imports_0$5}:{},{c:c.t(e.data.second),d:"out"===e.message.flow},"out"===e.message.flow?{e:l._imports_0$5}:{},{f:c.n("content content-"+e.message.flow),g:c.o(((...t)=>e.handlePlay&&e.handlePlay(...t)))})}],["__scopeId","data-v-5573c1f9"]]);wx.createComponent(p);
