"use strict";const e=require("../adapter-vue.js"),a=require("../utils/index.js"),s=require("../constant.js"),o=require("../../../common/vendor.js"),{computed:S}=e.vue,M={components:{MessageBranch:()=>"./message-branch.js",MessageForm:()=>"./message-form/index.js",MessageProductCard:()=>"./message-product-card.js",MessageRichText:()=>"./message-rich-text.js",MessageIMRobotWelcome:()=>"./message-robot-welcome.js",MessageStream:()=>"./message-stream.js"},props:{message:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:o})=>({payload:S((()=>{var s,o;return e.message&&a.JSONToObject(null==(o=null==(s=e.message)?void 0:s.payload)?void 0:o.data)})),sendTextMessage:e=>{o("sendMessage",e)},CUSTOM_MESSAGE_SRC:s.CUSTOM_MESSAGE_SRC})};if(!Array){(o.resolveComponent("MessageBranch")+o.resolveComponent("MessageIMRobotWelcome")+o.resolveComponent("MessageForm")+o.resolveComponent("MessageProductCard")+o.resolveComponent("MessageRichText")+o.resolveComponent("MessageStream"))()}const r=o._export_sfc(M,[["render",function(e,a,s,S,M,r){return o.e({a:S.payload.src===S.CUSTOM_MESSAGE_SRC.BRANCH||S.payload.src===S.CUSTOM_MESSAGE_SRC.BRANCH_NUMBER||S.payload.src===S.CUSTOM_MESSAGE_SRC.ROBOT_MSG&&"welcome_msg"!==S.payload.subtype},S.payload.src===S.CUSTOM_MESSAGE_SRC.BRANCH||S.payload.src===S.CUSTOM_MESSAGE_SRC.BRANCH_NUMBER||S.payload.src===S.CUSTOM_MESSAGE_SRC.ROBOT_MSG&&"welcome_msg"!==S.payload.subtype?{b:o.o$1(S.sendTextMessage),c:o.p({payload:S.payload})}:{},{d:S.payload.src===S.CUSTOM_MESSAGE_SRC.ROBOT_MSG&&"welcome_msg"===S.payload.subtype},S.payload.src===S.CUSTOM_MESSAGE_SRC.ROBOT_MSG&&"welcome_msg"===S.payload.subtype?{e:o.o$1(S.sendTextMessage),f:o.p({payload:S.payload})}:{},{g:S.payload.src===S.CUSTOM_MESSAGE_SRC.FROM_INPUT},S.payload.src===S.CUSTOM_MESSAGE_SRC.FROM_INPUT?{h:o.o$1(S.sendTextMessage),i:o.p({payload:S.payload})}:{},{j:S.payload.src===S.CUSTOM_MESSAGE_SRC.PRODUCT_CARD},S.payload.src===S.CUSTOM_MESSAGE_SRC.PRODUCT_CARD?{k:o.p({payload:S.payload})}:{},{l:S.payload.src===S.CUSTOM_MESSAGE_SRC.RICH_TEXT},S.payload.src===S.CUSTOM_MESSAGE_SRC.RICH_TEXT?{m:o.p({payload:S.payload})}:{},{n:S.payload.src===S.CUSTOM_MESSAGE_SRC.STREAM_TEXT},S.payload.src===S.CUSTOM_MESSAGE_SRC.STREAM_TEXT?{o:o.p({payload:S.payload})}:{})}]]);wx.createComponent(r);
