"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const t=require("../../../utils/translation.js"),n=e.defineComponent({__name:"translation-content",props:{message:{default:()=>({})},translationContentVisible:{type:Boolean},isSingleTranslation:{type:Boolean},translationWrapperRef:{}},setup(n){const a=n,r=e.ref(!1),s=e.ref(""),o=e.ref([]);return e.watch((()=>a.translationContentVisible),(e=>{e&&t.translator.get(a.message).then((e=>{r.value=!0,o.value=e})).catch((e=>{r.value=!0,emits("toggleErrorStatus",!0),s.value=e.message}))}),{immediate:!0}),(t,n)=>e.e({a:e.unref(r)},e.unref(r)?e.e({b:e.unref(o).length>0},e.unref(o).length>0?{c:e.f(e.unref(o),((t,n,a)=>e.e({a:"face"===t.type},"face"===t.type?{b:t.value}:{c:e.t(t.value)},{d:n})))}:{d:e.t(e.unref(s))},{e:`translation-content-${a.message.ID}`}):{},{f:e.t(e.unref(e.Wt).t("TUIChat.翻译中")),g:e.unref(r)?1:""})}}),a=e._export_sfc(n,[["__scopeId","data-v-937aa6a8"]]);wx.createComponent(a);
