"use strict";const e=require("../../adapter-vue.js"),t=require("../../utils/index.js"),s=require("../../constant.js"),a=require("../../../../common/vendor.js"),{computed:n}=e.vue,r={components:{RatingStar:()=>"./message-rating-star.js",RatingNumber:()=>"./message-rating-number.js"},props:{message:{type:Object,default:()=>({})}},emits:["sendMessage"],setup:(e,{emit:a})=>({sendCustomMessage:e=>{a("sendMessage",e)},ratingTemplate:n((()=>{const s=e.message&&t.JSONToObject(e.message.payload.data);return null==s?void 0:s.menuContent})),RATING_TEMPLATE_TYPE:s.RATING_TEMPLATE_TYPE})};if(!Array){(a.resolveComponent("RatingStar")+a.resolveComponent("RatingNumber"))()}const o=a._export_sfc(r,[["render",function(e,t,s,n,r,o){return a.e({a:n.ratingTemplate.type===n.RATING_TEMPLATE_TYPE.STAR},n.ratingTemplate.type===n.RATING_TEMPLATE_TYPE.STAR?{b:a.o$1(n.sendCustomMessage),c:a.p({ratingTemplate:n.ratingTemplate})}:{d:a.o$1(n.sendCustomMessage),e:a.p({ratingTemplate:n.ratingTemplate})})}]]);wx.createComponent(o);
