"use strict";const e=require("../adapter-vue.js"),n=require("../../../common/vendor.js"),{ref:l,watchEffect:o,onBeforeUnmount:t,onMounted:a}=e.vue,u={props:{payload:{type:Object,default:()=>({})}},setup(e){const n=l(""),u=l(""),i=l(!1);let d=null,r=0;return a((()=>{var l,o;n.value=(null==(o=null==(l=null==e?void 0:e.payload)?void 0:l.chunks)?void 0:o.join(""))??"",u.value=n.value,r=n.value.length})),o((()=>{var l,o;const t=(null==(o=null==(l=null==e?void 0:e.payload)?void 0:l.chunks)?void 0:o.join(""))??"";t.length>r&&(n.value=t,d&&window.clearInterval(d),d=window.setInterval((()=>{r<n.value.length?(u.value+=n.value[r],r++):(window.clearInterval(d),d=null)}),50))})),o((()=>{var n;i.value=1===(null==(n=null==e?void 0:e.payload)?void 0:n.isFinished)})),t((()=>{d&&window.clearInterval(d)})),{content:n,props:e,isFinished:i,displayedContent:u}}};const i=n._export_sfc(u,[["render",function(e,l,o,t,a,u){return n.e({a:n.t(t.displayedContent),b:!t.isFinished},(t.isFinished,{}))}],["__scopeId","data-v-b32e81bc"]]);wx.createComponent(i);
