"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const t=e.defineComponent({__name:"index",props:["isGroup"],emits:["openGroupManagement"],setup(t,{emit:n}){const o=e.ref(),a=e.ref(!1),u=e.ref("Global");function r(){e.index.navigateBack({delta:1})}const i=e=>{u.value=e||"Global"};function l(e){var t;o.value=e,a.value||i(null==(t=null==o?void 0:o.value)?void 0:t.getShowName())}function v(t){var n;a.value=t,a.value?i(e.Wt.t("TUIChat.对方正在输入...")):i(null==(n=o.value)?void 0:n.getShowName())}return e.onMounted((()=>{e.Jt.watch(e.o.CONV,{currentConversation:l}),e.Jt.watch(e.o.CHAT,{typingStatus:v})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CONV,{currentConversation:l}),e.Jt.unwatch(e.o.CHAT,{typingStatus:v})})),e.onLoad((()=>{var e;i(null==(e=o.value)?void 0:e.getShowName())})),(t,n)=>({a:e.t(e.unref(u)),b:e.o$1(r)})}});wx.createComponent(t);
