"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/convertVoiceToText.js"),r=e.defineComponent({__name:"convert-content",props:{message:{default:()=>({})},contentVisible:{type:Boolean}},emits:["toggleErrorStatus"],setup(r,{emit:n}){const o=n,a=r,s=e.ref(!1),u=e.ref("");return e.watch((()=>a.contentVisible),(e=>{e&&t.convertor.get(a.message).then((e=>{s.value=!0,u.value=e})).catch((e=>{s.value=!0,o("toggleErrorStatus",!0),u.value=e.message}))}),{immediate:!0}),(t,r)=>e.e({a:e.unref(s)},e.unref(s)?{b:e.t(e.unref(u))}:{},{c:e.t(e.unref(e.Wt).t("TUIChat.转换中")),d:e.unref(s)?1:""})}}),n=e._export_sfc(r,[["__scopeId","data-v-baaba9e9"]]);wx.createComponent(n);
