"use strict";const e=require("../../../../../../common/vendor.js");require("../../../../../adapter-vue.js");const n=require("../../../../../../common/assets.js");Math||(o+t)();const t=()=>"../../../../common/Icon.js",o=()=>"./translation-content.js",s=e.defineComponent({__name:"index",props:{message:{default:()=>({})}},setup(t){const o=t,s=e.ref(!1),a=e.ref(!1),r=e.ref();let u=!0;function c(e){a.value=e}function f(e){if(void 0===e)return;u=!1;const n=e.get(o.message.conversationID)||[];for(let t=0;t<n.length;++t){const{messageID:e,visible:r}=n[t];if(e===o.message.ID&&void 0!==r){1===n.length&&r&&(u=!0),a.value=!1,s.value=r;break}}}return e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{translateTextInfo:f})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{translateTextInfo:f})})),(t,f)=>e.e({a:e.unref(s)},e.unref(s)?{b:e.o$1(c),c:e.p({message:o.message,translationContentVisible:e.unref(s),translationWrapperRef:e.unref(r),isSingleTranslation:e.unref(u)}),d:e.p({file:e.unref(n.checkIcon),size:"13px"}),e:e.t(e.unref(e.Wt).t("TUIChat.由IM提供翻译支持")),f:"out"===o.message.flow?1:"",g:e.unref(a)?1:""}:{})}}),a=e._export_sfc(s,[["__scopeId","data-v-8bab923c"]]);wx.createComponent(a);
