"use strict";const e=require("../../../common/vendor.js");require("../../adapter-vue.js");const s=require("./message-customer/index.js"),l=require("./index.js"),n=require("../../tui-customer-service-plugin/utils/index.js");Math||(u+o+g+t+a)();const a=()=>"./message-plugin-layout.js",u=()=>"./message-call/message-call-group.js",o=()=>"./message-call/message-call-c2c.js",g=()=>"./message-customer/message-customer-service.js",t=()=>"./message-room/message-room-default.js",r=e.defineComponent({__name:"message-plugin",props:{message:{default:()=>({})},blinkMessageIDList:{default:()=>[]}},emits:["resendMessage","handleToggleMessageItem","handleH5LongPress"],setup(a,{emit:u}){const o=a,g=u,t=e.computed((()=>e.Jt.getMessageModel(o.message.ID))),r=e.computed((()=>{var e;return null==(e=null==t?void 0:t.value)?void 0:e.getSignalingInfo()})),i=e.computed((()=>{var e;return null==(e=null==t?void 0:t.value)?void 0:e.getMessageContent()})),m=e.computed((()=>{var a;let u={pluginType:"",showStyle:""};return l.isCallMessage(t.value)?u={pluginType:"call",showStyle:(null==(a=t.value)?void 0:a.conversationType)===e.qt.TYPES.CONV_GROUP?"tip":"bubble"}:l.isRoomCardMessage(t.value)?u={pluginType:"room",showStyle:"bubble"}:s.isCustomerServicePluginMessage(t.value)&&(u={pluginType:"customer",showStyle:n.isMessageInvisible(t.value)?"":"bubble"}),u})),p=e=>{g("resendMessage",e)},c=(e,s,l=!1)=>{g("handleToggleMessageItem",e,s,l)},d=(e,s,l)=>{g("handleH5LongPress",e,s,l)};return(s,l)=>e.e({a:e.p({message:o.message,signalingInfo:e.unref(r),customContent:e.unref(i),blinkMessageIDList:o.blinkMessageIDList}),b:"call"===e.unref(m).pluginType},"call"===e.unref(m).pluginType?{c:e.p({message:o.message,signalingInfo:e.unref(r),customContent:e.unref(i)})}:{},{d:"customer"===e.unref(m).pluginType},"customer"===e.unref(m).pluginType?{e:e.p({message:o.message})}:{},{f:"room"===e.unref(m).pluginType},"room"===e.unref(m).pluginType?{g:e.p({message:o.message})}:{},{h:e.o$1(p),i:e.o$1(c),j:e.o$1(d),k:e.p({message:o.message,showStyle:e.unref(m).showStyle,bubbleClassNameList:["room"===e.unref(m).pluginType?"message-bubble-room":""]})})}}),i=e._export_sfc(r,[["__scopeId","data-v-d3135755"]]);wx.createComponent(i);
