"use strict";const e=require("../../common/vendor.js"),s=require("./utils/index.js"),a={components:{MessageCustomerService:()=>"./components/message-customer-service.js",MessageRating:()=>"./components/message-rating/index.js"},props:{message:{type:Object,default:()=>({})}},setup:a=>({props:a,sendTextMessage:s=>{e.R.callService({serviceName:e.E.TUIChat.SERVICE.NAME,method:e.E.TUIChat.SERVICE.METHOD.SEND_TEXT_MESSAGE,params:{payload:s}})},sendCustomMessage:s=>{e.R.callService({serviceName:e.E.TUIChat.SERVICE.NAME,method:e.E.TUIChat.SERVICE.METHOD.SEND_CUSTOM_MESSAGE,params:{payload:s}})},isCustomerServiceMessage:s.isCustomerServiceMessage,isMessageRating:s.isMessageRating})};if(!Array){(e.resolveComponent("MessageRating")+e.resolveComponent("MessageCustomerService"))()}const r=e._export_sfc(a,[["render",function(s,a,r,o,t,g){return e.e({a:o.isMessageRating(o.props.message)},o.isMessageRating(o.props.message)?{b:e.o$1(o.sendCustomMessage),c:e.p({message:o.props.message})}:o.isCustomerServiceMessage(o.props.message)?{e:e.o$1(o.sendTextMessage),f:e.p({message:o.props.message})}:{},{d:o.isCustomerServiceMessage(o.props.message)})}]]);wx.createComponent(r);
