"use strict";const e=require("../../../../../common/vendor.js");require("../../../../adapter-vue.js");const t=require("../../../../../common/assets.js"),a=require("../../../../utils/env.js"),o=require("../../emoji-config/index.js");Math||s();const s=()=>"../../../common/Icon.js",n=e.defineComponent({__name:"index",props:{displayType:{default:"editor"}},setup(s){const n=s,r=e.qt.TYPES,u=e.ref();e.onMounted((()=>{e.Jt.watch(e.o.CHAT,{quoteMessage:d})})),e.onUnmounted((()=>{e.Jt.unwatch(e.o.CHAT,{quoteMessage:d})}));const i=e.computed((()=>{var t,a;let s;switch(null==(t=u.value)?void 0:t.type){case r.MSG_TEXT:s=o.transformTextWithKeysToEmojiNames(null==(a=u.value.payload)?void 0:a.text);break;case r.MSG_IMAGE:s=e.Wt.t("TUIChat.图片");break;case r.MSG_AUDIO:s=e.Wt.t("TUIChat.语音");break;case r.MSG_VIDEO:s=e.Wt.t("TUIChat.视频");break;case r.MSG_FILE:s=e.Wt.t("TUIChat.文件");break;case r.MSG_CUSTOM:s=e.Wt.t("TUIChat.自定义");break;case r.MSG_FACE:s=e.Wt.t("TUIChat.表情");break;case r.MSG_MERGER:s=e.Wt.t("TUIChat.聊天记录");break;default:s=e.Wt.t("TUIChat.消息")}return s}));function c(){e.Jt.update(e.o.CHAT,"quoteMessage",{message:void 0,type:"quote"})}function d(e){(null==e?void 0:e.message)&&"quote"===(null==e?void 0:e.type)?u.value=e.message:u.value=void 0}return(o,s)=>e.e({a:Boolean(e.unref(u))&&"audio"!==n.displayType},Boolean(e.unref(u))&&"audio"!==n.displayType?{b:e.t(e.unref(u).nick||e.unref(u).from),c:e.t(e.unref(i)),d:e.o$1(c),e:e.p({file:e.unref(t.closeIcon$2),width:"11px",height:"11px"}),f:e.unref(a.isUniFrameWork)?1:"",g:e.unref(a.isH5)?1:""}:{})}}),r=e._export_sfc(n,[["__scopeId","data-v-5f71863a"]]);wx.createComponent(r);
