"use strict";const e=require("../adapter-vue.js"),t=require("../../../common/assets.js"),o=require("../../../common/vendor.js"),{reactive:n,toRefs:s}=e.vue,i={components:{Icon:()=>"./customer-icon.js"},props:{payload:{type:Object,default:()=>({content:{title:"",items:[]}})}},emits:["sendMessage"],setup(e,{emit:o}){var i,r,c,l,a,u;const m=n({title:(null==(r=null==(i=e.payload)?void 0:i.content)?void 0:r.title)||"",list:(null==(l=null==(c=e.payload)?void 0:c.content)?void 0:l.items)||[],showList:((null==(u=null==(a=e.payload)?void 0:a.content)?void 0:u.items)||[]).slice(0,5),pageNumber:1});return{...s(m),handleContentListItemClick:e=>{o("sendMessage",{text:e.content})},imRobotGuess:t.imRobotGuess,refresh:t.refresh,iconRight:t.iconRight,changeBranchList:()=>{var e,t;5*m.pageNumber>=(null==(e=m.list)?void 0:e.length)&&(m.pageNumber=0),m.showList=null==(t=m.list)?void 0:t.slice(5*m.pageNumber,5*m.pageNumber+5),m.pageNumber+=1}}}};if(!Array){o.resolveComponent("Icon")()}const r=o._export_sfc(i,[["render",function(e,t,n,s,i,r){return o.e({a:o.p({src:s.imRobotGuess}),b:e.title},e.title?{c:o.t(e.title)}:{},{d:o.p({src:s.refresh}),e:o.o$1((e=>s.changeBranchList())),f:o.f(e.showList,((e,t,n)=>({a:o.t(e.content),b:"4cb3a3d1-2-"+n,c:t,d:o.o$1((t=>s.handleContentListItemClick(e)),t)}))),g:o.p({src:s.iconRight})})}]]);wx.createComponent(r);
